:root {
  --ink: #f7f3e8;
  --ink-soft: #b9c2bb;
  --ink-muted: #75827a;
  --surface-0: #0b110e;
  --surface-1: #111a16;
  --surface-2: #18231e;
  --surface-3: #223029;
  --line: rgba(241, 239, 226, 0.1);
  --gold: #d7aa53;
  --gold-light: #f0d487;
  --sage: #92ad9b;
  --mint: #9fd4b3;
  --danger: #e26f64;
  --success: #68c08b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --nav-height: 78px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-0);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface-0);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% -10%, rgba(215, 170, 83, 0.12), transparent 28rem),
    linear-gradient(180deg, #111a16 0, #0b110e 32rem);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #111;
  background: var(--gold-light);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.boot-screen {
  display: grid;
  min-height: 100dvh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--ink-soft);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(240, 212, 135, 0.35);
  border-radius: 14px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(145deg, #2b3b33, #101713);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark span {
  margin: -1px 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}

.brand-mark i {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 9px;
  height: 5px;
  border-radius: 100% 0 100% 0;
  background: var(--gold);
  transform: rotate(-28deg);
}

.brand-mark--large {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  animation: breathe 2s ease-in-out infinite;
}

.brand-mark--large span {
  font-size: 40px;
}

.app-shell {
  width: min(100%, 1120px);
  min-height: 100dvh;
  margin: 0 auto;
}

.app-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: max(14px, env(safe-area-inset-top)) 20px 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.icon-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.icon-button:active {
  transform: scale(0.95);
}

.icon-button svg,
.nav-icon svg,
.card-icon svg,
.button-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 18px calc(var(--nav-height) + 34px + env(safe-area-inset-bottom));
}

.page {
  animation: page-in 240ms ease-out;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.page-title,
.hero h1,
.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero h1 {
  max-width: 480px;
  font-size: clamp(38px, 12vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--gold-light);
  font-weight: inherit;
}

.hero-subtitle {
  max-width: 460px;
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid rgba(215, 170, 83, 0.22);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.08);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.streak-pill b {
  font-size: 14px;
}

.section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 25px;
  letter-spacing: -0.025em;
}

.section-link {
  padding: 4px 0;
  border: 0;
  color: var(--gold-light);
  background: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.practice-card {
  position: relative;
  display: grid;
  min-height: 224px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(240, 212, 135, 0.15);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(15, 24, 19, 0.25), rgba(15, 24, 19, 0.82)),
    radial-gradient(circle at 80% 35%, rgba(215, 170, 83, 0.3), transparent 20%),
    linear-gradient(135deg, #31473b 0%, #1b2922 56%, #111a16 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.practice-card::before,
.practice-card::after {
  position: absolute;
  z-index: -1;
  right: -18px;
  content: "";
  border: 1px solid rgba(240, 212, 135, 0.15);
  border-radius: 50%;
}

.practice-card::before {
  top: -80px;
  width: 240px;
  height: 240px;
}

.practice-card::after {
  top: -27px;
  right: 35px;
  width: 132px;
  height: 132px;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lesson-meta span {
  width: 23px;
  height: 1px;
  background: currentColor;
}

.practice-card h2 {
  max-width: 300px;
  margin: 19px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.practice-card p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.chip-button,
.answer-button,
.tool-tab {
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    background 160ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 18px;
  border-radius: 15px;
  color: #172018;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 10px 30px rgba(200, 149, 54, 0.18);
  font-size: 13px;
  font-weight: 850;
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:hover {
  filter: brightness(1.06);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.3);
  opacity: 0.48;
  box-shadow: none;
}

.primary-button:disabled:active,
.secondary-button:disabled:active {
  transform: none;
}

.primary-button:active,
.secondary-button:active,
.chip-button:active,
.answer-button:active {
  transform: scale(0.97);
}

.primary-button--round {
  width: 58px;
  height: 58px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
}

.primary-button--round svg {
  width: 22px;
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.progress-caption {
  min-width: max-content;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.quick-card {
  position: relative;
  min-height: 137px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-align: left;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.quick-card:hover {
  border-color: rgba(215, 170, 83, 0.32);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  width: 39px;
  height: 39px;
  margin-bottom: 16px;
  border-radius: 13px;
  place-items: center;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.11);
}

.quick-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.quick-card small {
  display: block;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 17px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.metric {
  padding: 2px 12px;
  text-align: center;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
}

.metric span {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bottom-nav {
  position: fixed;
  z-index: 100;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--nav-height);
  max-width: 560px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(20, 29, 25, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav-button {
  display: grid;
  min-width: 0;
  padding: 7px 3px 5px;
  border: 0;
  border-radius: 17px;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
}

.nav-button span:last-child {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.nav-button.is-active {
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.1);
}

.nav-icon {
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.page-header {
  margin: 9px 0 26px;
}

.page-title {
  font-size: clamp(34px, 9vw, 51px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-description {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.tool-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 21px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
  scrollbar-width: none;
}

.tool-tabs::-webkit-scrollbar {
  display: none;
}

.tool-tab {
  flex: 1;
  min-width: max-content;
  min-height: 41px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--ink-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.tool-tab.is-active {
  color: var(--ink);
  background: var(--surface-3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.tool-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% -20%, rgba(215, 170, 83, 0.09), transparent 45%),
    rgba(255, 255, 255, 0.025);
}

.tuner-stage {
  display: grid;
  min-height: 360px;
  padding: 26px 20px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.tuner-stage--instrument {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  padding: 22px 16px 24px;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--instrument-accent-rgb), 0.11), transparent 36%),
    linear-gradient(180deg, rgba(var(--instrument-accent-rgb), 0.055), transparent 33%);
  isolation: isolate;
}

.tuner-stage--instrument::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.tuner-topline {
  display: flex;
  width: min(100%, 520px);
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}

.tuner-identity {
  min-width: 0;
}

.tuner-identity .tuner-label,
.tuner-identity > strong {
  display: block;
}

.tuner-label {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tuner-identity > strong {
  margin-top: 5px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.auto-toggle > span {
  text-align: right;
}

.auto-toggle > span strong,
.auto-toggle > span small {
  display: block;
}

.auto-toggle > span strong {
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.auto-toggle > span small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 7px;
  text-transform: uppercase;
}

.auto-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.auto-toggle > i {
  position: relative;
  display: block;
  width: 46px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: #29302d;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.32);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.auto-toggle > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  content: "";
  background: #eaf1ec;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.38);
  transition: transform 180ms ease;
}

.auto-toggle input:checked + i {
  border-color: rgba(64, 214, 164, 0.62);
  background: #35cf9c;
  box-shadow: 0 0 20px rgba(53, 207, 156, 0.18);
}

.auto-toggle input:checked + i::after {
  transform: translateX(19px);
}

.auto-toggle input:focus-visible + i {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.auto-toggle.is-locked {
  cursor: default;
  opacity: 0.78;
}

.pitch-orb {
  position: relative;
  display: grid;
  width: 121px;
  height: 121px;
  margin: 8px auto 0;
  border: 1px solid rgba(var(--instrument-accent-rgb), 0.5);
  border-radius: 50%;
  place-content: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(var(--instrument-accent-rgb), 0.19), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.13));
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.22),
    0 0 0 7px rgba(var(--instrument-accent-rgb), 0.035),
    0 18px 40px rgba(0, 0, 0, 0.25);
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.pitch-orb::before {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(var(--instrument-accent-rgb), 0.24);
  border-radius: inherit;
  content: "";
  animation: orbit-spin 18s linear infinite;
}

.pitch-orb::after {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 13px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.pitch-orb.is-good {
  border-color: var(--success);
  box-shadow:
    0 0 0 8px rgba(104, 192, 139, 0.07),
    0 0 44px rgba(104, 192, 139, 0.3);
  animation: tuned-pulse 900ms ease-in-out infinite alternate;
}

.pitch-orb.is-low {
  border-color: #6bc8ff;
  box-shadow: 0 0 34px rgba(107, 200, 255, 0.18);
}

.pitch-orb.is-high {
  border-color: #ff8a73;
  box-shadow: 0 0 34px rgba(255, 138, 115, 0.18);
}

.note-display {
  margin: 0 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 59px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.note-display sup {
  margin-left: 3px;
  color: var(--gold-light);
  font-family: inherit;
  font-size: 17px;
  vertical-align: top;
}

.frequency-display {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

.cents-display {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.headstock-visual {
  position: relative;
  width: min(100%, 430px);
  height: 305px;
  margin: -1px auto 3px;
}

.instrument-halo {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--instrument-accent-rgb), 0.16), transparent 65%),
    conic-gradient(from 90deg, transparent, rgba(var(--instrument-accent-rgb), 0.08), transparent 55%);
  filter: blur(1px);
  transform: translateX(-50%);
  animation: halo-breathe 4s ease-in-out infinite;
}

.instrument-halo::before,
.instrument-halo::after {
  position: absolute;
  border: 1px solid rgba(var(--instrument-accent-rgb), 0.15);
  border-radius: 50%;
  content: "";
}

.instrument-halo::before {
  inset: 21px;
}

.instrument-halo::after {
  inset: 48px;
}

.headstock-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 158px;
  height: 305px;
  overflow: visible;
  filter:
    drop-shadow(0 19px 18px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 13px rgba(var(--instrument-accent-rgb), 0.1));
  transform: translateX(-50%);
  transition:
    filter 250ms ease,
    transform 250ms ease;
}

.headstock-shadow {
  fill: #000;
  opacity: 0.35;
  transform: translate(5px, 8px);
}

.headstock-body,
.headstock-neck {
  stroke: url("#headstockEdge");
  stroke-width: 3;
  fill: url("#headstockWood");
}

.headstock-neck {
  fill: #281713;
}

.headstock-shine {
  fill: rgba(255, 255, 255, 0.12);
  filter: blur(1px);
}

.wood-grain {
  fill: none;
  stroke: rgba(255, 226, 178, 0.16);
  stroke-width: 2;
  stroke-linecap: round;
}

.headstock-emblem {
  fill: rgba(var(--instrument-accent-rgb), 0.85);
  filter: drop-shadow(0 0 7px rgba(var(--instrument-accent-rgb), 0.36));
}

.headstock-emblem path:last-child {
  fill: rgba(27, 24, 19, 0.72);
}

.headstock-nut {
  fill: #f0e6cb;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.42));
}

.headstock-fret {
  fill: none;
  stroke: rgba(234, 217, 184, 0.6);
  stroke-width: 3;
}

.headstock-pegs {
  fill: url("#pegMetal");
  stroke: #4b514e;
  stroke-width: 3;
}

.headstock-pegs path {
  fill: none;
  stroke: #8b908d;
  stroke-width: 6;
}

.headstock-strings {
  fill: none;
  stroke: rgba(239, 226, 197, 0.77);
  stroke-width: 1.35;
}

.headstock-strings.is-paired {
  stroke-width: 1;
}

.headstock-svg--electric .headstock-emblem {
  transform: rotate(-17deg);
  transform-origin: 110px 83px;
}

.headstock-svg--bass {
  width: 153px;
}

.headstock-svg--ukulele,
.headstock-svg--cavaco {
  width: 145px;
}

.headstock-svg--viola {
  width: 164px;
}

.headstock-svg--banjo .headstock-emblem path:first-child {
  d: path("m110 53 8 17 18 2-13 13 4 19-17-9-17 9 4-19-13-13 18-2z");
}

.string-note {
  position: absolute;
  z-index: 3;
  display: grid;
  top: var(--string-y);
  width: 55px;
  height: 55px;
  padding: 0;
  border: 1px solid rgba(var(--instrument-accent-rgb), 0.28);
  border-radius: 50%;
  place-content: center;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.11), transparent 42%),
    color-mix(in srgb, var(--surface-3) 88%, var(--instrument-accent));
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.025),
    0 10px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.string-note::after {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--line), rgba(var(--instrument-accent-rgb), 0.5));
}

.string-note--left {
  left: calc(50% - 142px);
}

.string-note--left::after {
  left: 53px;
}

.string-note--right {
  right: calc(50% - 142px);
}

.string-note--right::after {
  right: 53px;
  background: linear-gradient(90deg, rgba(var(--instrument-accent-rgb), 0.5), var(--line));
}

.string-note strong,
.string-note small {
  display: block;
}

.string-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 0.9;
}

.string-note small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.string-note:hover,
.string-note.is-previewing {
  color: var(--instrument-accent);
  border-color: rgba(var(--instrument-accent-rgb), 0.72);
  transform: scale(1.05);
}

.string-note.is-selected {
  border-color: var(--instrument-accent);
  color: var(--instrument-accent);
  box-shadow:
    0 0 0 4px rgba(var(--instrument-accent-rgb), 0.08),
    0 0 25px rgba(var(--instrument-accent-rgb), 0.16);
}

.string-note.is-active {
  color: #132018;
  border-color: var(--success);
  background: var(--mint);
  box-shadow:
    0 0 0 5px rgba(104, 192, 139, 0.08),
    0 0 28px rgba(104, 192, 139, 0.3);
  animation: string-listening 760ms ease-in-out infinite alternate;
}

.string-note.is-active small {
  color: #315d41;
}

.floating-note {
  position: absolute;
  z-index: 2;
  color: rgba(var(--instrument-accent-rgb), 0.5);
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 0 13px rgba(var(--instrument-accent-rgb), 0.2);
  animation: note-float 4.2s ease-in-out infinite;
}

.floating-note--one {
  top: 22px;
  left: calc(50% - 105px);
  font-size: 17px;
}

.floating-note--two {
  top: 105px;
  right: calc(50% - 113px);
  font-size: 13px;
  animation-delay: -2.1s;
}

.instrument-nameplate {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 50%;
  min-width: 84px;
  padding: 5px 9px 6px;
  border: 1px solid rgba(var(--instrument-accent-rgb), 0.28);
  border-radius: 10px;
  background: rgba(11, 17, 14, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

.instrument-nameplate span,
.instrument-nameplate strong {
  display: block;
}

.instrument-nameplate span {
  color: var(--instrument-accent);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instrument-nameplate strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 500;
}

.headstock-visual--chromatic {
  display: grid;
  height: 305px;
  place-items: center;
}

.chromatic-svg {
  position: relative;
  z-index: 1;
  width: 185px;
  height: 278px;
  overflow: visible;
  filter: drop-shadow(0 0 20px rgba(var(--instrument-accent-rgb), 0.15));
}

.sound-rings,
.chromatic-wave {
  fill: none;
  stroke: rgba(var(--instrument-accent-rgb), 0.42);
  stroke-width: 3;
  stroke-linecap: round;
}

.sound-rings {
  animation: sound-ring-pulse 1.8s ease-in-out infinite alternate;
}

.tuning-fork,
.tuning-fork-handle,
.tuning-fork-base {
  fill: url("#chromaticMetal");
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
}

.chromatic-wave {
  stroke-width: 4;
  filter: drop-shadow(0 0 5px rgba(var(--instrument-accent-rgb), 0.42));
}

.chromatic-caption {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 50%;
  padding: 7px 11px;
  border: 1px solid rgba(var(--instrument-accent-rgb), 0.3);
  border-radius: 11px;
  background: rgba(11, 17, 14, 0.88);
  transform: translateX(-50%);
}

.chromatic-caption strong,
.chromatic-caption small {
  display: block;
}

.chromatic-caption strong {
  color: var(--instrument-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
}

.chromatic-caption small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 7px;
  text-transform: uppercase;
}

.pitch-guidance {
  display: grid;
  width: min(100%, 430px);
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.guidance-card {
  display: grid;
  min-width: 0;
  min-height: 70px;
  grid-template-columns: 25px 1fr;
  grid-template-rows: 30px auto auto;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.guidance-arrow,
.guidance-target {
  display: grid;
  width: 24px;
  height: 28px;
  grid-row: 1;
  place-items: center;
  font-size: 20px;
  font-weight: 300;
}

.guidance-target {
  font-size: 11px;
}

.guidance-bars {
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.guidance-bars i {
  width: 3px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.35;
}

.guidance-bars i:nth-child(1) {
  height: 7px;
}

.guidance-bars i:nth-child(2) {
  height: 13px;
}

.guidance-bars i:nth-child(3) {
  height: 20px;
}

.guidance-bars i:nth-child(4) {
  height: 10px;
}

.guidance-card--loosen .guidance-bars {
  transform: scaleX(-1);
}

.guidance-card strong,
.guidance-card small {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guidance-card strong {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guidance-card small {
  margin-top: 1px;
  font-size: 7px;
}

.guidance-card--loosen.is-active {
  border-color: rgba(255, 138, 115, 0.65);
  color: #ff9f8b;
  background: rgba(255, 106, 83, 0.1);
  box-shadow: 0 0 24px rgba(255, 106, 83, 0.2);
  transform: translateY(-2px);
}

.guidance-card--tuned.is-active {
  border-color: rgba(104, 192, 139, 0.72);
  color: #8ee1ae;
  background: rgba(104, 192, 139, 0.11);
  box-shadow: 0 0 26px rgba(104, 192, 139, 0.18);
  transform: translateY(-2px);
}

.guidance-card--tighten.is-active {
  border-color: rgba(107, 200, 255, 0.68);
  color: #8fd7ff;
  background: rgba(73, 169, 229, 0.11);
  box-shadow: 0 0 24px rgba(73, 169, 229, 0.2);
  transform: translateY(-2px);
}

.guidance-card.is-active .guidance-bars i {
  opacity: 0.95;
  animation: guidance-bars 700ms ease-in-out infinite alternate;
}

.guidance-card.is-active .guidance-bars i:nth-child(2) {
  animation-delay: -180ms;
}

.guidance-card.is-active .guidance-bars i:nth-child(3) {
  animation-delay: -360ms;
}

.guidance-card.is-active .guidance-bars i:nth-child(4) {
  animation-delay: -520ms;
}

.tuner-stage--instrument.is-good .instrument-halo {
  background: radial-gradient(circle, rgba(104, 192, 139, 0.23), transparent 67%);
}

.tuner-stage--instrument.is-good .headstock-svg {
  filter:
    drop-shadow(0 19px 18px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 20px rgba(104, 192, 139, 0.23));
}

.tuner-status {
  min-height: 20px;
  margin: 11px 0 13px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.tuner-status.is-good {
  color: var(--success);
}

.tuner-status.is-low,
.tuner-status.is-high {
  color: var(--ink);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.select-control {
  min-height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface-2);
}

.tool-settings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.setting {
  padding: 17px 20px;
}

.setting + .setting {
  border-left: 1px solid var(--line);
}

.setting label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.setting strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.metronome-panel {
  padding: 28px 20px;
  text-align: center;
}

.tempo-orbit {
  position: relative;
  display: grid;
  width: min(270px, 76vw);
  aspect-ratio: 1;
  margin: 8px auto 27px;
  border: 1px solid rgba(240, 212, 135, 0.16);
  border-radius: 50%;
  place-items: center;
  background:
    radial-gradient(circle, rgba(215, 170, 83, 0.08), transparent 56%),
    rgba(255, 255, 255, 0.015);
}

.tempo-orbit::before,
.tempo-orbit::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.tempo-orbit::before {
  inset: 14px;
}

.tempo-orbit::after {
  inset: 32px;
}

.tempo-orbit.is-beat {
  border-color: var(--gold);
  box-shadow: 0 0 45px rgba(215, 170, 83, 0.16);
}

.tempo-number {
  position: relative;
  z-index: 2;
  width: 160px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 79px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}

.tempo-number::-webkit-inner-spin-button {
  appearance: none;
}

.tempo-unit {
  position: absolute;
  z-index: 2;
  bottom: 64px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.tempo-range {
  width: min(100%, 500px);
  margin: 0 auto 26px;
  accent-color: var(--gold);
}

.metronome-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}

.metronome-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.option-box {
  min-height: 69px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.option-box span,
.option-box strong {
  display: block;
}

.option-box span {
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.option-box strong {
  margin-top: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.ear-panel {
  padding: 27px 20px;
}

.ear-prompt {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.ear-visual {
  display: grid;
  width: 114px;
  height: 114px;
  margin: 13px auto 20px;
  border: 1px solid rgba(215, 170, 83, 0.28);
  border-radius: 50%;
  place-items: center;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.07);
}

.ear-visual svg {
  width: 38px;
  height: 38px;
}

.ear-prompt h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.ear-prompt p {
  color: var(--ink-soft);
  font-size: 13px;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 23px;
}

.answer-button {
  min-height: 53px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.answer-button.is-correct {
  border-color: var(--success);
  color: var(--success);
  background: rgba(104, 192, 139, 0.11);
}

.answer-button.is-wrong {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(226, 111, 100, 0.1);
}

.score-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.journey-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 27px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.journey-progress strong {
  font-size: 12px;
}

.journey-progress small {
  color: var(--ink-muted);
  font-size: 10px;
}

.journey-list {
  position: relative;
}

.journey-list::before {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 27px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--gold), var(--line) 20%, var(--line));
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 91px;
  margin-bottom: 10px;
  padding: 13px 13px 13px 0;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.module-card.is-current {
  border-color: rgba(215, 170, 83, 0.3);
  background: linear-gradient(100deg, rgba(215, 170, 83, 0.09), rgba(255, 255, 255, 0.02));
}

.module-card.is-locked {
  color: var(--ink-muted);
  cursor: default;
}

.module-number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  margin-left: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--ink-soft);
  background: var(--surface-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.is-current .module-number {
  border-color: var(--gold);
  color: #172018;
  background: var(--gold-light);
}

.is-complete .module-number {
  color: var(--surface-1);
  background: var(--success);
}

.module-copy strong,
.module-copy small {
  display: block;
}

.module-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.module-copy small {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 10px;
}

.module-lesson-progress {
  display: block;
  width: min(100%, 210px);
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.module-lesson-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.module-status {
  display: grid;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  place-items: center;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.module-status svg {
  width: 15px;
  height: 15px;
}

.library-grid {
  display: grid;
  gap: 11px;
}

.library-card {
  display: grid;
  grid-template-columns: 49px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 80px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.library-card .card-icon {
  width: 49px;
  height: 49px;
  margin: 0;
}

.library-card strong,
.library-card small {
  display: block;
}

.library-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.library-card small {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 10px;
}

.count-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  font-weight: 800;
}

.search-box {
  position: relative;
  margin-bottom: 18px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  color: var(--ink-muted);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.search-box input::placeholder {
  color: var(--ink-muted);
}

.mentor-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(215, 170, 83, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 170, 83, 0.18), transparent 35%),
    linear-gradient(145deg, #213128, #121a16);
}

.mentor-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 27px;
  border: 1px solid rgba(240, 212, 135, 0.35);
  border-radius: 18px;
  place-items: center;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.09);
}

.mentor-avatar svg {
  width: 27px;
  height: 27px;
}

.mentor-hero h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}

.mentor-hero p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.demo-badge {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.1);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.suggestion-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.suggestion-row::-webkit-scrollbar {
  display: none;
}

.chip-button {
  min-width: max-content;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 700;
}

.chat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.chat-messages {
  display: grid;
  min-height: 235px;
  max-height: 390px;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
  align-content: start;
}

.message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.55;
}

.message--assistant {
  border-bottom-left-radius: 4px;
  color: var(--ink-soft);
  background: var(--surface-3);
}

.message--user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  color: #182019;
  background: var(--gold-light);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 9px;
  padding: 11px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.16);
}

.chat-form button {
  display: grid;
  border: 0;
  border-radius: 13px;
  place-items: center;
  color: #182019;
  background: var(--gold-light);
  cursor: pointer;
}

.chat-form button svg {
  width: 19px;
}

.profile-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(215, 170, 83, 0.3);
  border-radius: 19px;
  place-items: center;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.profile-card span {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 11px;
}

.settings-list {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dmt-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dmt-credit span {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dmt-credit img {
  width: 108px;
  height: auto;
  filter: saturate(0.8) brightness(1.35);
}

.settings-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
}

.settings-row + .settings-row {
  border-top: 1px solid var(--line);
}

.settings-row .card-icon {
  width: 35px;
  height: 35px;
  margin: 0;
  border-radius: 11px;
}

.settings-row strong,
.settings-row small {
  display: block;
}

.settings-row strong {
  font-size: 12px;
}

.settings-row small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 9px;
}

.settings-row > span {
  color: var(--ink-muted);
  font-size: 15px;
}

.modal-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: end center;
  background: rgba(2, 7, 4, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 180ms ease;
}

.modal-card {
  width: min(100%, 560px);
  max-height: min(82dvh, 720px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  animation: modal-up 220ms ease;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.modal-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.modal-card p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.lesson-list {
  display: grid;
  gap: 8px;
  margin: 19px 0 22px;
}

.workbook-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 14px;
  align-items: center;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(215, 170, 83, 0.17);
  border-radius: 15px;
  color: var(--ink-soft);
  background: rgba(215, 170, 83, 0.055);
  font-size: 10px;
}

.workbook-progress strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.workbook-progress .progress-bar {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lesson-row {
  display: grid;
  width: 100%;
  grid-template-columns: 29px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.lesson-row--button {
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.lesson-row--button:hover:not(:disabled) {
  border-color: rgba(215, 170, 83, 0.34);
  background: rgba(215, 170, 83, 0.06);
  transform: translateY(-1px);
}

.lesson-row--button.is-current {
  border-color: rgba(215, 170, 83, 0.46);
  background: linear-gradient(100deg, rgba(215, 170, 83, 0.1), rgba(255, 255, 255, 0.025));
}

.lesson-row--button.is-complete > span:first-child {
  color: #122019;
  background: var(--success);
}

.lesson-row--button.is-complete > span:first-child svg {
  width: 14px;
}

.lesson-row--button.is-locked {
  color: var(--ink-muted);
  cursor: default;
  opacity: 0.58;
}

.lesson-row > span:first-child {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  place-items: center;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.lesson-row strong {
  font-size: 11px;
}

.lesson-row small {
  color: var(--ink-muted);
  font-size: 9px;
  white-space: nowrap;
}

.lesson-row small svg {
  width: 10px;
  height: 10px;
  margin-right: 3px;
  vertical-align: -2px;
}

.lesson-reader-modal {
  width: min(100%, 900px);
  max-height: min(92dvh, 900px);
}

.lesson-reader-head {
  position: sticky;
  z-index: 4;
  top: -24px;
  margin: -24px -24px 0;
  padding: 24px 24px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(24, 35, 30, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lesson-reader-head h2 {
  max-width: 680px;
}

.lesson-progress-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 19px 0 15px;
}

.lesson-progress-line small {
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.lesson-summary {
  display: grid;
  grid-template-columns: 43px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 13px;
  border: 1px solid rgba(215, 170, 83, 0.16);
  border-radius: 17px;
  background: rgba(215, 170, 83, 0.055);
}

.lesson-summary .card-icon {
  width: 43px;
  height: 43px;
  margin: 0;
}

.lesson-summary strong,
.lesson-summary p {
  display: block;
}

.lesson-summary strong {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-summary p,
.lesson-practice p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.lesson-duration {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.1);
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.lesson-reader-pages {
  display: grid;
  gap: 16px;
}

.lesson-page {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #eae8e2;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}

.lesson-page figcaption {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: #17221d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lesson-page figcaption small {
  color: var(--gold-light);
  font-size: 7px;
}

.lesson-page-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.lesson-page-image {
  display: block;
  width: 100%;
  min-width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.lesson-page-image img {
  display: block;
  width: 100%;
  height: auto;
}

.lesson-page-image.is-zoomed {
  width: 1092px;
  min-width: 1092px;
  cursor: zoom-out;
}

.lesson-page-image.is-zoomed img {
  width: 1092px;
  max-width: none;
}

.lesson-practice {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(104, 192, 139, 0.22);
  border-radius: 17px;
  background: rgba(104, 192, 139, 0.07);
}

.lesson-practice.is-approved {
  border-color: rgba(104, 192, 139, 0.46);
  background: linear-gradient(105deg, rgba(104, 192, 139, 0.12), rgba(104, 192, 139, 0.055));
}

.lesson-practice.needs-retry {
  border-color: rgba(240, 178, 91, 0.35);
  background: rgba(240, 178, 91, 0.07);
}

.lesson-practice > span {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  place-items: center;
  color: var(--success);
  background: rgba(104, 192, 139, 0.1);
}

.lesson-practice svg {
  width: 19px;
}

.lesson-practice strong {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-practice-copy {
  min-width: 0;
}

.practice-requirement {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(104, 192, 139, 0.16);
}

.practice-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.practice-status.is-approved {
  color: #8ee1ae;
}

.practice-status.needs-retry {
  color: #ffc078;
}

.practice-status svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.practice-open-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 10px;
}

.practice-gate-note {
  margin: 10px 0 0;
  color: var(--ink-muted) !important;
  font-size: 9px !important;
  text-align: right;
}

.lesson-reader-nav {
  position: sticky;
  z-index: 3;
  bottom: -24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 18px -24px -24px;
  padding: 15px 24px calc(15px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(24, 35, 30, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.practice-coach-modal {
  width: min(100%, 720px);
  max-height: min(92dvh, 820px);
}

.coach-lesson-context {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 13px;
  align-items: center;
  margin: 20px 0 17px;
  padding: 14px;
  border: 1px solid rgba(215, 170, 83, 0.19);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 30%, rgba(215, 170, 83, 0.12), transparent 28%),
    rgba(215, 170, 83, 0.045);
}

.coach-lesson-context .mentor-avatar {
  width: 52px;
  height: 52px;
  margin: 0;
}

.coach-lesson-context strong,
.coach-lesson-context p {
  display: block;
}

.coach-lesson-context strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.coach-lesson-context p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.coach-mode-badge {
  padding: 6px 8px;
  border: 1px solid rgba(104, 192, 139, 0.2);
  border-radius: 999px;
  color: #8ee1ae;
  background: rgba(104, 192, 139, 0.08);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.practice-capture {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(104, 192, 139, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.02);
}

.practice-recorder-visual {
  width: min(100%, 360px);
  margin: 0 auto 20px;
  text-align: center;
}

.practice-recorder-ring {
  position: relative;
  display: grid;
  width: 142px;
  height: 142px;
  margin: 0 auto 15px;
  border: 1px solid rgba(104, 192, 139, 0.36);
  border-radius: 50%;
  place-content: center;
  background:
    radial-gradient(circle, rgba(104, 192, 139, 0.13), rgba(13, 22, 17, 0.86) 67%),
    var(--surface-1);
  box-shadow:
    0 0 0 9px rgba(104, 192, 139, 0.025),
    0 18px 45px rgba(0, 0, 0, 0.28);
}

.practice-recorder-ring::before,
.practice-recorder-ring::after {
  position: absolute;
  border: 1px solid rgba(104, 192, 139, 0.12);
  border-radius: inherit;
  content: "";
}

.practice-recorder-ring::before {
  inset: 10px;
}

.practice-recorder-ring::after {
  inset: -17px;
  border-style: dashed;
  animation: orbit-spin 16s linear infinite;
}

.practice-recorder-time,
.practice-recorder-ring small {
  display: block;
  font-variant-numeric: tabular-nums;
}

.practice-recorder-time {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
}

.practice-recorder-ring small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-live-meter {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.practice-live-meter span {
  display: block;
  width: 3%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--success), var(--gold-light));
  box-shadow: 0 0 15px rgba(104, 192, 139, 0.28);
  transition: width 80ms linear;
}

.coach-criteria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.coach-criteria > div {
  display: grid;
  min-width: 0;
  min-height: 74px;
  grid-template-columns: 27px 1fr;
  gap: 2px 7px;
  align-content: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.coach-criteria span {
  display: grid;
  width: 27px;
  height: 27px;
  grid-row: 1 / 3;
  border-radius: 9px;
  place-items: center;
  color: var(--success);
  background: rgba(104, 192, 139, 0.08);
}

.coach-criteria svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.coach-criteria strong,
.coach-criteria small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-criteria strong {
  align-self: end;
  font-size: 9px;
}

.coach-criteria small {
  color: var(--ink-muted);
  font-size: 7px;
}

.practice-record-status {
  min-height: 42px;
  margin: 0 !important;
  color: var(--ink-soft);
  text-align: center;
  font-size: 10px !important;
}

.practice-coach-actions {
  justify-content: center;
  margin-top: 15px;
}

.primary-button.is-recording {
  color: #fff;
  background: linear-gradient(135deg, #d96155, #a93636);
  box-shadow: 0 10px 30px rgba(200, 58, 54, 0.2);
}

.practice-report {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.practice-report.is-approved {
  border-color: rgba(104, 192, 139, 0.33);
  background:
    radial-gradient(circle at 0 0, rgba(104, 192, 139, 0.11), transparent 34%),
    rgba(104, 192, 139, 0.025);
}

.practice-report.needs-retry {
  border-color: rgba(240, 178, 91, 0.25);
  background:
    radial-gradient(circle at 0 0, rgba(240, 178, 91, 0.09), transparent 34%),
    rgba(240, 178, 91, 0.02);
}

.practice-score {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: center;
}

.practice-score-ring {
  position: relative;
  display: grid;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle, var(--surface-2) 58%, transparent 60%),
    conic-gradient(var(--success) var(--score), rgba(255, 255, 255, 0.07) 0);
}

.needs-retry .practice-score-ring {
  background:
    radial-gradient(circle, var(--surface-2) 58%, transparent 60%),
    conic-gradient(var(--gold) var(--score), rgba(255, 255, 255, 0.07) 0);
}

.practice-score-ring strong,
.practice-score-ring small {
  display: block;
}

.practice-score-ring strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 0.95;
}

.practice-score-ring small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 8px;
}

.practice-score h3 {
  margin: 3px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.practice-score > div > small {
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.coach-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0 14px;
}

.coach-metric {
  display: grid;
  min-width: 0;
  grid-template-columns: 25px 1fr;
  gap: 2px 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.coach-metric > span {
  display: grid;
  width: 25px;
  height: 25px;
  grid-row: 1 / 3;
  border-radius: 8px;
  place-items: center;
  color: var(--gold-light);
  background: rgba(215, 170, 83, 0.08);
}

.coach-metric svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
}

.coach-metric strong {
  font-size: 13px;
}

.coach-metric small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-metric i {
  grid-column: 1 / -1;
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.coach-metric b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.coach-feedback,
.coach-transcript {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(104, 192, 139, 0.19);
  border-radius: 16px;
  background: rgba(104, 192, 139, 0.05);
}

.coach-feedback > span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  place-items: center;
  color: var(--success);
  background: rgba(104, 192, 139, 0.1);
}

.coach-feedback svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.coach-feedback strong,
.coach-transcript strong {
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coach-feedback p,
.coach-transcript p {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.coach-transcript {
  display: block;
  margin-top: 9px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.practice-audio {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  color-scheme: dark;
}

.coach-privacy {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 12px 2px 0 !important;
  color: var(--ink-muted) !important;
  font-size: 8px !important;
  line-height: 1.45 !important;
}

.coach-privacy svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
}

.toast-region {
  position: fixed;
  z-index: 500;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  left: 14px;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.toast {
  max-width: 450px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(34, 48, 41, 0.96);
  box-shadow: var(--shadow);
  font-size: 11px;
  line-height: 1.4;
  animation: toast-in 200ms ease;
}

.empty-state {
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  text-align: center;
  font-size: 12px;
}

.offline-indicator {
  position: fixed;
  z-index: 110;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  padding: 6px 10px;
  border-radius: 99px;
  color: #1b1b16;
  background: var(--gold-light);
  font-size: 9px;
  font-weight: 850;
  transform: translateX(-50%);
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tuned-pulse {
  to {
    transform: scale(1.025);
  }
}

@keyframes halo-breathe {
  50% {
    opacity: 0.65;
    transform: translateX(-50%) scale(1.07) rotate(8deg);
  }
}

@keyframes note-float {
  50% {
    opacity: 0.45;
    transform: translateY(-9px) rotate(7deg);
  }
}

@keyframes string-listening {
  to {
    transform: scale(1.055);
  }
}

@keyframes sound-ring-pulse {
  to {
    opacity: 0.45;
    transform: scale(1.035);
    transform-origin: center;
  }
}

@keyframes guidance-bars {
  to {
    opacity: 0.45;
    transform: scaleY(0.55);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 36px rgba(215, 170, 83, 0.18);
    transform: scale(1.03);
  }
}

@media (max-width: 560px) {
  .lesson-reader-modal {
    max-height: calc(100dvh - 18px);
    padding: 18px;
    border-radius: 24px 24px 0 0;
  }

  .lesson-reader-head {
    top: -18px;
    margin: -18px -18px 0;
    padding: 18px 18px 14px;
  }

  .lesson-reader-head h2 {
    font-size: 23px;
  }

  .lesson-summary {
    grid-template-columns: 39px 1fr;
  }

  .lesson-summary .card-icon {
    width: 39px;
    height: 39px;
  }

  .lesson-duration {
    grid-column: 2;
    width: max-content;
  }

  .lesson-page figcaption small {
    display: none;
  }

  .lesson-reader-nav {
    bottom: -18px;
    grid-template-columns: auto 1fr;
    margin: 16px -18px -18px;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }

  .lesson-reader-nav .primary-button {
    justify-content: center;
  }

  .lesson-practice {
    align-items: start;
  }

  .practice-requirement {
    align-items: stretch;
  }

  .practice-open-button {
    width: 100%;
  }

  .practice-gate-note {
    text-align: left;
  }

  .practice-coach-modal {
    max-height: calc(100dvh - 18px);
    padding: 18px;
    border-radius: 24px 24px 0 0;
  }

  .coach-lesson-context {
    grid-template-columns: 45px 1fr;
    margin-top: 17px;
    padding: 12px;
  }

  .coach-lesson-context .mentor-avatar {
    width: 45px;
    height: 45px;
  }

  .coach-mode-badge {
    grid-column: 2;
    width: max-content;
  }

  .practice-capture,
  .practice-report {
    padding: 15px;
  }

  .practice-recorder-ring {
    width: 124px;
    height: 124px;
  }

  .practice-recorder-time {
    font-size: 31px;
  }

  .coach-criteria {
    grid-template-columns: 1fr;
  }

  .coach-criteria > div {
    min-height: 55px;
  }

  .practice-score {
    grid-template-columns: 86px 1fr;
    gap: 13px;
  }

  .practice-score-ring {
    width: 84px;
    height: 84px;
  }

  .practice-score-ring strong {
    font-size: 26px;
  }

  .practice-score h3 {
    font-size: 20px;
  }

  .coach-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-coach-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .content-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-backdrop {
    place-items: center;
  }

  .modal-card {
    border-radius: 28px;
  }
}

@media (min-width: 980px) {
  body {
    background:
      radial-gradient(circle at 80% 0, rgba(215, 170, 83, 0.08), transparent 30rem),
      var(--surface-0);
  }

  .app-shell {
    width: min(calc(100% - 48px), 1120px);
  }

  .app-header {
    min-height: 92px;
    padding: 24px 24px 8px;
  }

  .app-header .brand-mark {
    width: 48px;
    height: 48px;
  }

  .app-header .brand-lockup strong {
    font-size: 20px;
  }

  .bottom-nav {
    right: 24px;
    bottom: 18px;
    left: 24px;
    height: 76px;
    max-width: 720px;
    padding: 8px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
      rgba(20, 29, 25, 0.94);
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(215, 170, 83, 0.025);
  }

  .bottom-nav .nav-button {
    grid-template-columns: 25px auto;
    align-content: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
  }

  .bottom-nav .nav-button span:last-child {
    font-size: 10px;
    letter-spacing: 0.015em;
  }

  .bottom-nav .nav-button.is-active {
    background:
      linear-gradient(135deg, rgba(215, 170, 83, 0.16), rgba(215, 170, 83, 0.07));
    box-shadow: inset 0 0 0 1px rgba(215, 170, 83, 0.08);
  }

  .content-shell {
    max-width: 930px;
    padding: 42px 24px calc(var(--nav-height) + 70px);
  }

  .hero h1 {
    font-size: 68px;
  }

  .practice-card {
    min-height: 250px;
    padding: 32px;
  }

  .quick-card {
    min-height: 155px;
  }

  .page-title {
    font-size: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Social sign-in */

body.auth-mode {
  background: #08100c;
}

.auth-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(420px, 1.08fr) minmax(400px, 0.92fr);
  background: #08100c;
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100dvh;
  padding: max(38px, env(safe-area-inset-top)) 48px max(34px, env(safe-area-inset-bottom));
  overflow: hidden;
  flex-direction: column;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 28%, rgba(215, 170, 83, 0.21), transparent 17rem),
    radial-gradient(circle at 10% 90%, rgba(76, 137, 98, 0.2), transparent 25rem),
    linear-gradient(145deg, #122019 0%, #0b1510 52%, #07100c 100%);
}

.auth-story::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 82%, transparent);
}

.auth-story::after {
  position: absolute;
  z-index: -1;
  right: -16%;
  bottom: -38%;
  width: 66vw;
  max-width: 880px;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 170, 83, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px rgba(215, 170, 83, 0.025),
    0 0 0 140px rgba(215, 170, 83, 0.015);
}

.auth-story .brand-lockup {
  position: relative;
  z-index: 4;
}

.auth-story .brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.09),
    0 12px 36px rgba(0, 0, 0, 0.24);
}

.auth-story .brand-mark span {
  font-size: 30px;
}

.auth-story .brand-lockup strong {
  font-size: 21px;
}

.auth-story .brand-lockup small {
  color: rgba(247, 243, 232, 0.52);
  letter-spacing: 0.13em;
}

.auth-story-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 670px);
  margin: auto 0;
  padding: 80px 0 120px;
}

.auth-story-copy .eyebrow {
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.auth-story-copy h1 {
  max-width: 680px;
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 5.6vw, 86px);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.auth-story-copy h1 em {
  color: var(--gold-light);
  font-weight: 400;
}

.auth-story-copy > p:last-child {
  width: min(100%, 470px);
  margin: 0;
  color: rgba(247, 243, 232, 0.66);
  font-size: 16px;
  line-height: 1.65;
}

.auth-instrument {
  position: absolute;
  z-index: 2;
  right: clamp(-96px, -5vw, -24px);
  bottom: -154px;
  width: 340px;
  height: 650px;
  opacity: 0.94;
  transform: rotate(-18deg);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.52));
}

.auth-guitar-neck {
  position: absolute;
  z-index: 2;
  top: -56px;
  left: 139px;
  width: 64px;
  height: 420px;
  border: 2px solid rgba(240, 212, 135, 0.35);
  border-radius: 24px 24px 5px 5px;
  background:
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.25) 13%, transparent 14%),
    linear-gradient(90deg, transparent 29%, rgba(255, 255, 255, 0.23) 30%, transparent 31%),
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.26) 47%, transparent 48%),
    linear-gradient(90deg, transparent 63%, rgba(255, 255, 255, 0.23) 64%, transparent 65%),
    linear-gradient(90deg, transparent 80%, rgba(255, 255, 255, 0.25) 81%, transparent 82%),
    linear-gradient(90deg, #472719, #25120d 53%, #402218);
  box-shadow:
    inset 6px 0 10px rgba(255, 255, 255, 0.08),
    inset -7px 0 12px rgba(0, 0, 0, 0.38);
}

.auth-guitar-neck::before {
  position: absolute;
  top: -52px;
  left: -18px;
  width: 96px;
  height: 84px;
  border: 2px solid rgba(240, 212, 135, 0.33);
  border-radius: 46% 46% 28% 28%;
  background: linear-gradient(135deg, #75482a, #3b2014 60%, #6d4024);
  content: "";
  clip-path: polygon(14% 0, 86% 0, 100% 72%, 69% 100%, 31% 100%, 0 72%);
}

.auth-guitar-neck i {
  position: absolute;
  z-index: 3;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(222, 209, 174, 0.55);
  box-shadow: 0 1px rgba(0, 0, 0, 0.5);
}

.auth-guitar-neck i:nth-child(1) { top: 54px; }
.auth-guitar-neck i:nth-child(2) { top: 112px; }
.auth-guitar-neck i:nth-child(3) { top: 170px; }
.auth-guitar-neck i:nth-child(4) { top: 228px; }
.auth-guitar-neck i:nth-child(5) { top: 286px; }
.auth-guitar-neck i:nth-child(6) { top: 344px; }

.auth-guitar-body {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 18px;
  width: 305px;
  height: 355px;
  border: 3px solid rgba(240, 212, 135, 0.43);
  border-radius: 44% 44% 47% 47% / 36% 36% 54% 54%;
  background:
    radial-gradient(circle at 50% 31%, #100907 0 10%, #bd8b58 10.7% 12.2%, transparent 12.8%),
    radial-gradient(ellipse at 30% 20%, rgba(255, 227, 173, 0.52), transparent 20%),
    repeating-radial-gradient(ellipse at 20% 100%, rgba(65, 29, 13, 0.16) 0 2px, transparent 3px 9px),
    linear-gradient(108deg, #6f371f, #bd7440 42%, #8a4526 62%, #552816);
  box-shadow:
    inset 14px 4px 32px rgba(255, 227, 173, 0.16),
    inset -18px -10px 30px rgba(40, 15, 7, 0.42),
    0 0 0 8px rgba(88, 45, 25, 0.25);
  clip-path: polygon(22% 0, 39% 5%, 50% 20%, 61% 5%, 78% 0, 94% 14%, 91% 36%, 100% 60%, 88% 89%, 65% 100%, 35% 100%, 12% 89%, 0 60%, 9% 36%, 6% 14%);
}

.auth-guitar-body::before {
  position: absolute;
  top: 88px;
  left: 150px;
  width: 2px;
  height: 238px;
  background: rgba(239, 231, 209, 0.6);
  content: "";
  box-shadow:
    -10px 0 rgba(239, 231, 209, 0.38),
    -20px 0 rgba(239, 231, 209, 0.32),
    10px 0 rgba(239, 231, 209, 0.38),
    20px 0 rgba(239, 231, 209, 0.32);
}

.auth-guitar-body span {
  position: absolute;
  right: 75px;
  bottom: 56px;
  left: 75px;
  height: 17px;
  border-radius: 8px;
  background: #24130d;
  box-shadow:
    inset 0 2px rgba(255, 255, 255, 0.09),
    0 4px 8px rgba(0, 0, 0, 0.35);
}

.auth-soundwave {
  position: absolute;
  z-index: 0;
  top: 188px;
  left: -12px;
  width: 315px;
  height: 315px;
  border: 1px solid rgba(240, 212, 135, 0.16);
  border-radius: 50%;
}

.auth-soundwave--two {
  inset: 150px auto auto -50px;
  width: 390px;
  height: 390px;
}

.auth-soundwave--three {
  inset: 112px auto auto -88px;
  width: 465px;
  height: 465px;
}

.auth-platforms {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-platforms span {
  padding: 7px 11px;
  border: 1px solid rgba(240, 212, 135, 0.13);
  border-radius: 999px;
  color: rgba(247, 243, 232, 0.58);
  background: rgba(6, 14, 10, 0.35);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.auth-panel {
  display: grid;
  min-width: 0;
  padding: max(34px, env(safe-area-inset-top)) clamp(28px, 5vw, 76px) max(24px, env(safe-area-inset-bottom));
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 170, 83, 0.08), transparent 18rem),
    #0c1410;
}

.auth-card {
  width: min(100%, 455px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(240, 212, 135, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
    #131d18;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.045);
}

.auth-mobile-brand {
  display: none;
}

.auth-kicker {
  margin: 0 0 13px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.8vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.auth-description {
  margin: 17px 0 27px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.auth-provider-list {
  display: grid;
  gap: 12px;
}

.auth-provider {
  display: grid;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 17px;
  grid-template-columns: 26px 1fr 26px;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.auth-provider::after {
  content: "";
}

.auth-provider:hover:not(:disabled) {
  transform: translateY(-2px);
}

.auth-provider:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.auth-provider:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-provider--google {
  color: #222521;
  background: #fbfaf6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.auth-provider--google:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.auth-provider--apple {
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  background: #050706;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.auth-provider-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
}

.auth-provider-mark--google {
  background: #fff;
}

.auth-provider-mark--google svg {
  width: 22px;
  height: 22px;
}

.auth-provider-mark--apple svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.auth-status,
.auth-alert {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.auth-status {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
}

.auth-alert {
  border: 1px solid rgba(226, 111, 100, 0.19);
  color: #ffc2ba;
  background: rgba(226, 111, 100, 0.08);
}

.auth-retry {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  color: var(--gold-light);
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.auth-trust {
  display: grid;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  grid-template-columns: 22px 1fr;
  gap: 9px;
  color: var(--ink-muted);
}

.auth-trust > span {
  color: var(--sage);
}

.auth-trust svg {
  width: 17px;
  height: 17px;
}

.auth-trust p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.auth-legal {
  margin: 17px 0 0;
  color: rgba(185, 194, 187, 0.5);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.auth-preview-link {
  display: block;
  margin-top: 13px;
  color: var(--gold-light);
  font-size: 11px;
  text-align: center;
}

.auth-credit {
  margin: 24px 0 0;
  color: rgba(185, 194, 187, 0.45);
  font-size: 10px;
  letter-spacing: 0.025em;
}

.auth-credit strong {
  color: rgba(247, 243, 232, 0.68);
}

.avatar--image {
  object-fit: cover;
}

.account-provider {
  display: flex;
  width: fit-content;
  margin: 12px 0 0 72px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 192, 139, 0.18);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  color: #a5dfbb;
  background: rgba(104, 192, 139, 0.07);
  font-size: 10px;
  font-weight: 800;
}

.account-provider svg {
  width: 13px;
  height: 13px;
}

.account-logout {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .auth-shell {
    display: block;
  }

  .auth-story {
    min-height: 40dvh;
    padding: max(26px, env(safe-area-inset-top)) 28px 98px;
  }

  .auth-story-copy {
    margin: 54px 0 0;
    padding: 0;
  }

  .auth-story-copy h1 {
    max-width: 500px;
    margin: 13px 0 15px;
    font-size: clamp(42px, 9vw, 68px);
  }

  .auth-story-copy > p:last-child {
    max-width: 420px;
    font-size: 14px;
  }

  .auth-instrument {
    right: -64px;
    bottom: -230px;
    transform: rotate(-18deg) scale(0.8);
  }

  .auth-platforms {
    display: none;
  }

  .auth-panel {
    position: relative;
    z-index: 5;
    min-height: 60dvh;
    margin-top: -58px;
    padding: 0 22px max(28px, env(safe-area-inset-bottom));
    border-radius: 34px 34px 0 0;
  }

  .auth-card {
    width: min(100%, 520px);
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .auth-story {
    min-height: 35dvh;
    padding: max(18px, env(safe-area-inset-top)) 19px 82px;
  }

  .auth-story .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .auth-story .brand-mark span {
    font-size: 25px;
  }

  .auth-story .brand-lockup strong {
    font-size: 18px;
  }

  .auth-story-copy {
    margin-top: 44px;
  }

  .auth-story-copy .eyebrow,
  .auth-story-copy > p:last-child {
    display: none;
  }

  .auth-story-copy h1 {
    width: 84%;
    margin: 0;
    font-size: clamp(35px, 11vw, 49px);
  }

  .auth-instrument {
    right: -122px;
    bottom: -274px;
    transform: rotate(-18deg) scale(0.63);
  }

  .auth-panel {
    min-height: 65dvh;
    margin-top: -46px;
    padding-right: 13px;
    padding-left: 13px;
    border-radius: 26px 26px 0 0;
    align-content: start;
  }

  .auth-card {
    padding: 27px 21px;
    border-radius: 24px;
  }

  .auth-card h2 {
    font-size: 34px;
  }

  .auth-description {
    margin-bottom: 22px;
  }

  .auth-provider {
    min-height: 56px;
    padding: 0 15px;
  }

  .auth-credit {
    margin-top: 18px;
  }
}

@media (max-height: 690px) and (min-width: 700px) {
  .auth-story-copy {
    padding-top: 45px;
    padding-bottom: 72px;
  }

  .auth-story-copy h1 {
    font-size: clamp(44px, 5vw, 66px);
  }

  .auth-card {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}
