:root {
  --ink: #192e27;
  --muted: #56685e;
  --line: #dfe5db;
  --paper: #f5f6f0;
  --white: #fff;
  --green: #27684f;
  --forest: #142f26;
  --lime: #d2eb99;
  --cream: #eaf0df;
  --danger: #983e31;
  --radius: 18px;
  --shadow: 0 10px 32px #263d2410;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-inline-size: 280px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.055em; }
h2 { font-size: 1.24rem; letter-spacing: -.03em; }
h3 { font-size: .98rem; }
p { color: var(--muted); }
small, .small-text { font-size: .83rem; }
button, a, input, [tabindex="0"] { -webkit-tap-highlight-color: #83ab742b; }
:focus-visible { outline: 3px solid #337c5f; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  border-radius: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--green);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.icon { display: inline-block; flex: none; width: 19px; height: 19px; vertical-align: middle; }
[dir="rtl"] .icon-directional { transform: scaleX(-1); }
.stack { display: grid; gap: 22px; }
.stack-tight { display: grid; align-content: start; gap: 14px; }
.center { display: flex; justify-content: center; }
.wrap-anywhere { overflow-wrap: anywhere; }
.tabular { font-variant-numeric: tabular-nums; }
.section-heading, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-heading { justify-content: space-between; }
.button-row { justify-content: flex-start; }
.card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.loading-screen { display: grid; min-height: 65vh; place-content: center; justify-items: center; gap: 13px; text-align: center; }

.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.button .icon { width: 17px; height: 17px; }
.button-primary { color: var(--white); background: var(--green); }
.button-primary:hover:not(:disabled) { background: #1e533e; }
.button-secondary { color: var(--ink); background: var(--white); border-color: #cbd7c7; }
.button-secondary:hover:not(:disabled) { background: #edf3e7; border-color: #a8bfaa; }
.button-lime { color: var(--forest); background: var(--lime); }
.button-lime:hover:not(:disabled) { background: #e0f2b9; }
.button-dark-outline { color: #edf5e8; background: transparent; border-color: #779182; }
.button-dark-outline:hover:not(:disabled) { background: #ffffff14; }
.button-text { padding-inline: 8px; color: var(--green); background: transparent; }
.button-text:hover:not(:disabled) { background: var(--cream); }
.button-danger { color: var(--white); background: var(--danger); }
.button-danger:hover:not(:disabled) { background: #7d3025; }
.button-danger-outline { color: var(--danger); background: var(--white); border-color: #d1a095; }
.button-danger-outline:hover:not(:disabled) { background: #fff1ed; }
.button:disabled { opacity: .62; }
.hero :focus-visible, .sidebar :focus-visible { outline-color: var(--lime); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.49rem;
  font-weight: 770;
  letter-spacing: -.075em;
  line-height: .92;
  text-align: start;
}
.brand img { display: block; flex: none; }
.brand small { display: block; margin-top: 6px; font-size: .6rem; letter-spacing: .13em; font-weight: 700; }

.public-page { max-width: 1216px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  gap: 16px;
}
.public-header-end, .session-toolbar-end { display: flex; align-items: center; gap: 9px; min-width: 0; }
.language-picker { position: relative; flex: none; }
.language-toggle { max-inline-size: 100%; white-space: nowrap; }
.language-form {
  position: absolute;
  z-index: 30;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  display: grid;
  gap: 10px;
  inline-size: min(300px, calc(100vw - 32px));
  padding: 15px;
  box-shadow: 0 8px 24px #223c1933;
}
.language-form label { font-weight: 700; }
.language-form select {
  inline-size: 100%;
  min-block-size: 44px;
  padding: 8px;
  border: 1px solid #bfcdbd;
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
}
.public-footer { padding: 28px 0 34px; color: var(--muted); font-size: .87rem; }
.feature-grid, .mode-grid, .metrics, .columns { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid, .metrics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid article h2 { margin: 12px 0 6px; }
.feature-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--cream); color: var(--green); border-radius: 10px; }
.how-it-works ol { margin-top: 10px; padding-inline-start: 24px; }
.how-it-works li { padding: 10px 0 9px 6px; }
.how-it-works li + li { border-top: 1px solid var(--line); }
.how-it-works li::marker { color: var(--green); font-weight: 750; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: var(--forest);
  color: #f2f7ec;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.hero::after {
  content: "";
  z-index: -1;
  width: 330px;
  height: 330px;
  position: absolute;
  top: -140px;
  right: -74px;
  border-radius: 50%;
  border: 1px solid #d2eb9928;
  box-shadow: 0 0 0 40px #d2eb9908, 0 0 0 80px #d2eb9906;
}
.public-hero { padding: clamp(28px, 4.5vw, 54px); min-height: 355px; }
.hero h1 { font-size: clamp(2.35rem, 4.2vw, 3.57rem); line-height: 1.035; }
.hero h2 { font-size: clamp(1.72rem, 3.5vw, 2.7rem); line-height: 1.08; letter-spacing: -.055em; }
.hero p { color: #c3d3c8; max-width: 410px; margin: 14px 0 20px; }
.hero .hero-duration { display: flex; align-items: center; gap: 7px; margin: 0 0 13px; color: var(--lime); font-size: .86rem; font-weight: 700; }
.hero-duration .icon { width: 16px; height: 16px; }
.neck-illustration { display: block; width: 100%; max-height: 240px; }
.guitar-hero { position: relative; min-inline-size: 0; }
.guitar-hero [data-guitar-stage] { position: absolute; inset: 0; }
.guitar-hero[data-guitar-ready] .neck-illustration { visibility: hidden; }

@font-face {
  font-family: "Google Sans";
  font-weight: 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/googlesans/v76/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrw2IJllpyk.woff2") format("woff2");
}
.auth-layout { min-height: min(680px, calc(100dvh - 88px)); padding-block: 24px 48px; display: grid; align-items: center; justify-items: center; }
.auth-card { width: min(100%, 450px); padding: clamp(22px, 4vw, 34px); }
.auth-card h1 { margin: 15px 0 9px; font-size: clamp(1.85rem, 4vw, 2.5rem); }
.auth-card .auth-form { display: grid; gap: 10px; margin-top: 23px; }
.auth-form label { font-size: .92rem; font-weight: 700; }
.auth-form input { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bfcdbd; border-radius: 9px; color: var(--ink); background: var(--white); font-size: 16px; }
.auth-form .code-input { font-variant-numeric: tabular-nums; letter-spacing: .22em; }
.auth-form .button { margin-top: 6px; }
.auth-card > .notice { margin-top: 14px; }
.auth-card > .button { margin-top: 14px; text-align: start; }
.auth-google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  inline-size: 100%;
  min-block-size: 44px;
  margin-block-start: 12px;
  padding: 8px 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  color: #1f1f1f;
  background: #fff;
  font: 500 14px/20px "Google Sans", system-ui, sans-serif;
}
.auth-google-button:hover:not(:disabled) { border-color: #1f1f1f; }
.auth-google-button:disabled { opacity: .62; }
.auth-google-logo {
  /* The official light web asset includes 10px of padding on each side. */
  display: grid;
  place-content: center;
  flex: none;
  inline-size: 20px;
  block-size: 20px;
  overflow: hidden;
}
.auth-google-logo img { max-inline-size: none; }

.workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.workspace-main { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100dvh; align-self: start; display: flex; flex-direction: column; gap: 23px; padding: 27px 16px 18px; background: #162f26; color: #f5f8ee; }
.sidebar .brand { padding: 0 7px; }
.sidebar .brand small { color: #acbfb0; }
.side-nav { display: grid; gap: 4px; }
.sidebar-end { margin-top: auto; }
.sidebar-end .nav-button { width: 100%; }
.nav-button { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #c1d0c3; font-size: .92rem; line-height: 1.2; text-align: start; }
.nav-button:hover { background: #ffffff0e; color: var(--white); }
.nav-button[aria-current="page"] { background: var(--lime); color: var(--forest); font-weight: 760; }

.app-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 7px clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); background: #fafbf6; }
.app-top-name { color: var(--muted); font-size: .85rem; font-weight: 600; }
.app-top-end { display: flex; align-items: center; gap: 14px; min-inline-size: 0; }
.avatar { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #d0deca; border-radius: 50%; color: #254737; background: #eaf0df; font-weight: 790; }
.avatar:hover { background: var(--lime); }
.sync-label { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-inline-size: 0; color: var(--muted); font-size: .79rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.sync-label .icon { width: 17px; height: 17px; }
.sync-success { color: #2b674e; }
.sync-warning { color: #785417; }
.mobile-brand, .mobile-nav { display: none; }

.content { max-width: 1240px; margin-inline: auto; padding: 26px clamp(20px, 3.8vw, 42px) 42px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.page-heading p { margin-top: 8px; }
.metric-card { display: grid; justify-items: start; gap: 5px; }
.metric-label, .metric-card small { color: var(--muted); }
.metric-label { font-size: .87rem; font-weight: 650; }
.metric-value { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.055em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.focus-list, .data-list { list-style: none; padding: 0; }
.focus-list li, .data-list li { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.focus-list p { font-size: .84rem; }
.focus-list li > :last-child.tabular { margin-inline-start: auto; }
.data-list li { justify-content: space-between; gap: 12px; }
.data-list li strong { text-align: end; }
.mini-map { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.mini-map span { height: 17px; border-radius: 4px; }

.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid #d2e0cc; border-radius: 11px; background: #edf4e7; color: #325044; }
.notice-warning { border-color: #ead7a7; background: #fcf4e0; color: #6e4f17; }
.notice-error { border-color: #edd0c9; background: #fff1ee; color: #7c3429; }
.notice .button { min-height: 38px; }

.tag { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border: 1px solid #d9e4d3; border-radius: 30px; color: #335647; background: #eef3e7; font-size: .76rem; font-weight: 680; }
.segmented { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; }
.segmented button { min-height: 38px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: .84rem; font-weight: 710; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { border-color: var(--line); background: var(--white); color: var(--green); box-shadow: 0 1px 4px #223c1914; }

.fret-scroll { max-width: 100%; overflow-x: auto; padding: 3px 3px 8px; border-radius: 9px; }
.fret-table { width: 100%; min-width: 576px; table-layout: fixed; border-spacing: 0; text-align: center; }
.fret-scroll-compact .fret-table { min-width: 0; }
.fret-scroll-wide .fret-table { min-width: 628px; }
.fret-table th { color: var(--muted); font-size: .75rem; font-weight: 650; padding: 3px 0 6px; }
.fret-table th:first-child { position: sticky; inset-inline-start: 0; z-index: 3; width: 40px; background: var(--white); }
.fret-table tbody th { padding: 0; }
.fret-table td { padding: 0; }
.fret-cell, .memory-cell {
  position: relative; display: grid; place-items: center; width: 100%; min-height: 45px;
  padding: 0; border: 0; border-right: 1px solid #c8cfc1; background: #f1efe4; line-height: 1;
}
.fret-cell::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: #818b7b; pointer-events: none; }
.fret-table tr:nth-child(n+4) .fret-cell::before { height: 2px; }
.fret-cell.fret-zero { background: #f8f8f1; border-right: 3px solid #87917d; }
.fret-cell.fret-inlay::after { content: ""; position: absolute; inset-block-end: 5px; width: 5px; height: 5px; border-radius: 50%; background: #a8ad9c; }
.fret-marker { position: relative; z-index: 1; display: grid; place-items: center; min-width: 24px; min-height: 24px; color: transparent; border-radius: 50%; font-size: .78rem; font-weight: 780; }
button.fret-cell:hover .fret-marker { background: #dae5cf; color: #2f634b; }
.fret-active .fret-marker, .fret-focus .fret-marker, .fret-reveal .fret-marker { background: var(--green); color: var(--white); box-shadow: 0 0 0 2px #f4f5e9; }
.fret-reveal .fret-marker { background: var(--lime); color: var(--forest); }
.fret-wrong .fret-marker { background: #edc1b2; color: #783d31; }
.fret-cell:focus-visible, .memory-cell:focus-visible { z-index: 2; outline-offset: -3px; }
.fret-table tr.guitar-active-string th { background: #e0edd1; color: #204f38; }
.guitar-active-string [data-guitar-state="selectable"] .fret-cell { background: #e6eed4; }
[data-guitar-active-string] [data-guitar-state="readonly"] .fret-cell { background: #f4f3ed; }
.fret-scroll-compact .fret-cell { min-height: 29px; }
.fret-scroll-compact .fret-marker { min-width: 21px; min-height: 21px; }
.guitar-board { min-inline-size: 0; position: relative; }
[data-guitar-stage] { overflow: hidden; touch-action: pan-y; }
.guitar-hero:not([data-guitar-ready]) [data-guitar-stage],
.guitar-board:not([data-guitar-ready]) [data-guitar-stage] { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.guitar-board[data-guitar-ready] [data-guitar-stage] {
  position: relative; inline-size: 100%; aspect-ratio: 3 / 1; min-block-size: 204px; border-radius: 12px 12px 0 0;
  background: radial-gradient(ellipse at 52% 43%, #22392b 0%, #14281e 58%, #0c1a14 100%);
}
.guitar-board[data-guitar-ready] [data-guitar-fallback]:not(:focus-within) {
  position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 1px; block-size: 1px;
  padding: 0; overflow: hidden; clip-path: inset(50%);
}
.guitar-board[data-guitar-ready] + .scroll-message { display: none; }
.guitar-controls {
  display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 9px 12px;
  border: 1px solid #d8dece; border-block-start: 0; border-radius: 0 0 12px 12px; background: #f3f3ea;
}
.guitar-board[data-guitar-ready] .guitar-controls { display: flex; }
.guitar-control, .guitar-zoom {
  display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-size: .86rem; font-weight: 700;
}
.guitar-control { justify-content: center; background: transparent; border: 0; min-inline-size: 44px; min-block-size: 44px; padding-inline: 10px; }
.guitar-control:hover { background: #e5ebda; }
.guitar-control .icon { width: 16px; height: 16px; }
.guitar-reset, .guitar-zoom, .guitar-view-choices { border: 1px solid #cbd3c2; border-radius: 10px; }
.guitar-reset { margin-inline-start: auto; padding-inline: 10px; }
.guitar-view-choices { display: flex; max-inline-size: 100%; }
.guitar-view-choice { min-inline-size: 0; padding-inline: 12px; border-radius: 9px; text-align: center; }
.guitar-view-choice[aria-pressed="true"] { background: #dfead4; color: #214e36; }
.guitar-zoom { gap: 0; }
.guitar-zoom .guitar-control { border-radius: 9px; }
.guitar-zoom [data-guitar-zoom-label] { min-inline-size: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.sound-toggle { inline-size: 44px; min-inline-size: 44px; padding-inline: 0; }
.memory-cell { min-height: 44px; border: 2px solid var(--white); border-radius: 6px; font-size: .88rem; font-weight: 780; }
.memory-cell:hover, .memory-cell[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #527861; }
.cell-due::after, .due-dot { width: 6px; height: 6px; border-radius: 50%; background: #a0362b; }
.cell-due::after { content: ""; position: absolute; inset-block-start: 4px; inset-inline-end: 4px; border: 1px solid #fff7; }
.state-unseen { background: #e9ece6; color: #4d5d52; }
.state-assisted { background: #dce7ee; color: #284e5a; }
.state-learning { background: #f1dfbd; color: #684c20; }
.state-consolidating { background: #e3e8b1; color: #485721; }
.state-proficient { background: #a5c6a8; color: #204d33; }
.state-stable { background: #36745a; color: var(--white); }
.state-relearning { background: #ebc0ae; color: #783d31; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; color: var(--muted); font-size: .76rem; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; }
.swatch-marked { display: inline-grid; place-items: center; width: 17px; height: 17px; font-style: normal; font-weight: 740; }
.position-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.position-units > div { display: grid; align-content: start; justify-items: start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.position-units p { font-size: .84rem; }
.state-label { display: inline-flex; border-radius: 6px; padding: 3px 7px; font-size: .77rem; font-weight: 720; }
.due-text { color: #84392f; font-weight: 650; }

.mode-card { display: grid; justify-items: start; gap: 9px; text-align: start; }
.mode-card:hover:not(:disabled) { border-color: #a2bda4; background: #fefffb; }
.mode-card:disabled { color: #53675a; }
.mode-title { font-size: 1.19rem; font-weight: 740; letter-spacing: -.025em; line-height: 1.15; }
.mode-description { color: var(--muted); }
.mode-action { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--green); font-size: .86rem; font-weight: 700; }
.mode-action .icon { width: 16px; height: 16px; }

.progress-item { display: grid; gap: 7px; }
.progress-item > div { display: flex; justify-content: space-between; gap: 10px; }
.progress-item span { color: var(--muted); font-size: .85rem; text-align: end; }
progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 30px; background: var(--cream); color: var(--green); }
progress::-webkit-progress-bar { border-radius: 30px; background: var(--cream); }
progress::-webkit-progress-value { border-radius: 30px; background: var(--green); }
progress::-moz-progress-bar { border-radius: 30px; background: var(--green); }
.empty-state { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.empty-state > div { flex: 1; min-width: min(230px, 100%); }
.empty-state h2 { margin-bottom: 4px; }
.danger-card { border-color: #e3c2ba; }
.danger-card h2 { color: var(--danger); }
.confirmation { display: grid; justify-items: start; gap: 10px; padding: 13px; border: 1px solid #e9c7bf; border-radius: 10px; background: #fff3ef; overflow-wrap: anywhere; }

.session-layout { max-width: 980px; margin-inline: auto; padding: 23px clamp(14px, 4vw, 38px) 38px; }
.session-heading { display: grid; gap: 13px; }
.session-meta { color: var(--muted); font-size: .87rem; }
.session-title { display: grid; gap: 8px; padding: 5px 0 0; text-align: center; }
.session-title h1 { font-size: clamp(1.65rem, 4vw, 2.65rem); }
.session-title .session-direction { color: var(--green); font-size: .78rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.session-card { gap: 17px; padding: clamp(14px, 4vw, 25px); }
.answer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 620px; width: 100%; margin-inline: auto; }
.answer-grid-natural { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.button-answer { min-height: 46px; padding-inline: 4px; border-color: #d2ddcb; background: #f8fbf4; font-size: 1rem; }
.button-answer:hover:not(:disabled) { border-color: #8aad95; background: #edf4e8; }
.button-answer.answer-right { border-color: #83b18b; background: #d9ecd4; color: #225c3f; opacity: 1; }
.button-answer.answer-wrong { border-color: #d6a08e; background: #f8e3da; color: #83382b; opacity: 1; }
.button-answer[aria-pressed="true"], .button-secondary[aria-pressed="true"] { border-color: #83ad87; background: #e5f0dc; color: #225b41; }
.session-actions { justify-content: center; }
.scroll-message { display: none; }
.hint-box, .feedback { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e9d7a9; border-radius: 10px; background: #fbf5e6; }
.hint-box { flex-wrap: wrap; justify-content: center; color: #6e4f17; }
.hint-box span { font-size: .85rem; }
.feedback-correct { border-color: #d2e0cc; background: #edf4e7; }
.feedback > div { flex: 1; min-width: 0; }
.feedback h2 { margin-bottom: 4px; }
.feedback p { color: #42574a; }
.breakdown-detail { display: grid; justify-items: end; }
.breakdown-detail small { color: var(--muted); text-align: end; }

.study-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.learning-shortcuts { display: none; }
.learning-shortcuts a { text-decoration: none; }
.course-list { list-style: none; padding: 0; }
.course-row { display: flex; align-items: start; flex-wrap: wrap; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.course-row-main { display: grid; gap: 5px; flex: 1 1 145px; min-width: 0; }
.course-row-main .tag { margin-top: 2px; }
.course-row .button { margin-inline-start: auto; }
.lesson-text + .lesson-text { border-top: 1px solid var(--line); padding-top: 14px; }
.lesson-text h2 { margin-bottom: 7px; }
.course-gate .tag { justify-self: start; }
.high-memory-cell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px; min-height: 33px; font-size: .8rem; font-weight: 750; }
.high-memory-cell span { display: grid; place-items: center; border-radius: 5px; }
.sequence-answers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sequence-answers span { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 700; }
.study-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.study-options .button { padding: 9px; }
.study-rules { padding-inline-start: 23px; color: var(--muted); }
.study-rules li + li { margin-top: 6px; }
.consent-label { display: flex; align-items: start; gap: 9px; font-weight: 650; }
.consent-label input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.study-withdraw summary { color: var(--danger); cursor: pointer; font-weight: 700; }
.study-withdraw p, .study-withdraw form { margin-top: 10px; }
.study-grid textarea, #study-feedback, .tempo-form input { padding: 8px 10px; border: 1px solid #bfcdbd; border-radius: 9px; color: var(--ink); background: var(--white); font-size: 16px; }
#study-feedback { width: 100%; min-width: 0; resize: vertical; }
.tempo-form { display: grid; gap: 7px; }
.tempo-form input { width: 92px; min-height: 44px; }
.audio-panel .session-title { padding: 24px 12px; border-radius: 12px; background: var(--forest); color: var(--white); }
.audio-panel .session-title p { color: #cadbcd; }
.audio-pitch { font-size: clamp(3.2rem, 10vw, 5rem); font-weight: 780; line-height: 1; color: var(--lime); }
.audio-meter, .audio-device-form { display: grid; gap: 5px; }
.audio-device-form, .audio-panel { grid-template-columns: minmax(0, 1fr); }
.audio-meter label, .audio-device-form label { font-size: .85rem; font-weight: 650; }
.audio-device-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.audio-device-controls select { flex: 1 1 140px; inline-size: 0; min-inline-size: 0; max-inline-size: 100%; min-block-size: 44px; padding: 7px 9px; border: 1px solid #bfcdbd; border-radius: 9px; color: var(--ink); background: var(--white); font-size: 16px; }
.audio-meter meter { inline-size: 100%; block-size: 14px; }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .hero { padding: 25px; gap: 17px; }
  .public-hero { padding: 37px; }
  .card { padding: 17px; }
}

@media (max-width: 767px) {
  .workspace { display: block; }
  .sidebar, .app-top-name { display: none; }
  .mobile-brand { display: block; }
  .mobile-brand .brand { font-size: 1.27rem; }
  .mobile-brand .brand img { width: 33px; height: 33px; }
  .app-top { padding-inline: 16px; min-height: 60px; }
  .app-top-end { gap: 9px; }
  .content { padding: 22px 16px calc(92px + env(safe-area-inset-bottom)); gap: 16px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 10; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #1f3e2310; }
  .mobile-nav .nav-button { min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 4px 1px; color: #51645a; font-size: .72rem; text-align: center; overflow-wrap: anywhere; }
  .mobile-nav .nav-button:hover { background: var(--paper); }
  .mobile-nav .nav-button[aria-current="page"] { background: #e9f2dc; color: var(--green); }
  .public-header { min-height: 72px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .hero .neck-illustration { justify-self: center; max-height: 170px; }
  .guitar-board[data-guitar-ready] [data-guitar-stage] { aspect-ratio: 10 / 17; min-block-size: 400px; max-block-size: 610px; }
  .public-hero { min-height: 0; padding: 25px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .study-grid { grid-template-columns: minmax(0, 1fr); }
  .learning-shortcuts { display: flex; }
  .metrics-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { gap: 12px; }
  .session-card { padding: 14px; }
  .scroll-message { display: block; text-align: center; }
}

@media (max-width: 480px) {
  .public-header { gap: 8px; }
  .public-header-end { gap: 6px; }
  .public-header-end > .button { min-inline-size: 0; padding-inline: 7px; overflow-wrap: anywhere; }
  .language-toggle { inline-size: 44px; padding-inline: 0; }
  .language-toggle span { display: none; }
  .language-form { position: fixed; inset-block-start: 74px; inset-inline: 16px; inline-size: auto; }
  .feature-grid, .mode-grid { grid-template-columns: minmax(0, 1fr); }
  .study-options { grid-template-columns: minmax(0, 1fr); }
  .metrics { gap: 8px; }
  .metric-card { padding: 11px; }
  .metric-card small { font-size: .74rem; line-height: 1.25; }
  .metric-label { font-size: .76rem; line-height: 1.25; }
  .metric-value small { font-size: .82rem; }
  .tag { font-size: .72rem; }
  .segmented button { padding-inline: 7px; font-size: .77rem; }
  .session-mode-label { order: 3; flex-basis: 100%; justify-content: center; }
  .session-toolbar { gap: 6px; }
  .session-toolbar-end { margin-inline-start: auto; }
  .answer-grid { gap: 5px; }
  .answer-grid-natural { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .answer-grid .button { font-size: .91rem; }
  .feedback { flex-wrap: wrap; }
  .feedback .button { margin-inline-start: auto; }
  .fret-scroll-compact .fret-table th:first-child { width: 26px; }
  .fret-scroll-compact .fret-marker { min-width: 17px; min-height: 17px; font-size: .68rem; }
  .guitar-view-choices { flex: 1 0 100%; }
  .guitar-view-choice { flex: 1 1 auto; padding-inline: 7px; overflow-wrap: anywhere; }
  .guitar-reset { margin-inline-start: 0; }
}

@media (max-width: 345px) {
  .app-top { padding-inline: 10px; }
  .app-top-end { gap: 5px; }
  .sync-label { font-size: .73rem; max-width: 94px; }
  .sync-label .icon { display: none; }
  .metrics-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-three .metric-card:last-child { grid-column: 1 / -1; }
  .position-units { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
