/* earpath — stylesheet. Dark theme, one accent hue per module via --mc. */

:root {
  --bg: #0b0e14;
  --surface: #131825;
  --surface-2: #1a2132;
  --border: #232c42;
  --text: #e8ecf6;
  --text-dim: #8a94ad;
  --accent: #7c6cf0;
  --good: #34d399;
  --bad: #f87171;
  --ring-bg: #232c42;

  --c-sky: #38bdf8;
  --c-violet: #8b7cf6;
  --c-amber: #fbbf24;
  --c-emerald: #34d399;
  --c-rose: #fb7185;
  --c-cyan: #22d3ee;
  --c-fuchsia: #e879f9;

  --radius: 14px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(124, 108, 240, 0.10), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(34, 211, 238, 0.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

h1 { font-size: 1.7rem; font-weight: 800; margin: 1.2rem 0 0.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 0.7rem; }
h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
p { margin: 0.4rem 0; }
a { color: var(--c-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--text-dim); }
.tiny { font-size: 0.78rem; }

button {
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
}
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* ── chrome ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 0.8rem;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  background: linear-gradient(135deg, var(--accent), var(--c-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.1rem;
}
.nav { display: flex; gap: 0.25rem; }
.nav-link {
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-link:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--surface-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: filter 0.12s, transform 0.06s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--mc, var(--accent));
  border-color: transparent;
  color: #0b0e14;
}
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; border-radius: 8px; }
.btn.ghost { background: none; border-color: transparent; color: var(--text-dim); }
.btn.danger { color: var(--bad); border-color: rgba(248, 113, 113, 0.35); }

.iconbtn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  flex: none;
  display: grid;
  place-items: center;
}
.iconbtn:hover { background: var(--surface-2); }

/* ── home ── */
.streak-banner {
  display: inline-block;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.30);
  color: var(--c-amber);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.6rem;
}
.streak-banner .muted { color: rgba(251, 191, 36, 0.6); }

.hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0.6rem 0 1.4rem;
}
@media (min-width: 680px) {
  .hero-row { grid-template-columns: 3fr 2fr; }
}
.continue-card, .daily-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.15s, transform 0.1s;
}
.continue-card { border-color: color-mix(in srgb, var(--mc) 45%, var(--border)); }
.continue-card:hover, .daily-card:hover { transform: translateY(-2px); border-color: var(--mc, var(--c-amber)); }
.daily-card { --mc: var(--c-amber); }
.cc-icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--mc) 16%, transparent);
  color: var(--mc);
}
.cc-text { flex: 1; min-width: 0; }
.cc-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--mc);
}
.cc-title { font-weight: 700; font-size: 1.08rem; margin-top: 0.1rem; }
.cc-sub { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.15rem; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.8rem;
}
.module-card {
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.15s, transform 0.1s;
}
.module-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--mc) 60%, var(--border)); }
.mc-head { display: flex; align-items: center; gap: 0.6rem; }
.mc-icon {
  width: 36px; height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 1.1rem;
  background: color-mix(in srgb, var(--mc) 16%, transparent);
  color: var(--mc);
}
.mc-title { font-weight: 700; font-size: 1.05rem; flex: 1; }
.mc-count { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }
.mc-blurb { color: var(--text-dim); font-size: 0.88rem; min-height: 2.4em; }
.mc-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dot.done { background: var(--mc); border-color: var(--mc); }
.dot.current { border-color: var(--mc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mc) 30%, transparent); }
.dot.locked { opacity: 0.45; }

.foot {
  margin-top: 3rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* ── onboarding & overlays ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
  overflow-y: auto;
}
.overlay.hidden { display: none; }

.onboard { max-width: 560px; text-align: center; }
.onboard-logo {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--accent), var(--c-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.onboard h1 { margin: 0.4rem 0; }
.onboard-paths { display: grid; gap: 0.7rem; margin: 1.3rem 0 0.8rem; }
.path-card { padding: 1rem 1.2rem; transition: border-color 0.15s, transform 0.1s; }
.path-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.path-label { font-weight: 700; font-size: 1.05rem; }
.path-desc { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.2rem; }

.celebrate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem 2.4rem;
  text-align: center;
  max-width: 420px;
  animation: pop-in 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop-in {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.celebrate-emoji { font-size: 3rem; }
.celebrate-title { font-size: 1.5rem; font-weight: 800; margin-top: 0.4rem; }
.celebrate-sub { color: var(--text-dim); margin-top: 0.3rem; }
.celebrate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
@media (prefers-reduced-motion: reduce) {
  .celebrate { animation: none; }
}

/* ── module page ── */
.mod-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.8rem 0 0.9rem;
}
.mod-head h1 { margin: 0; }
.mod-head p { margin: 0.1rem 0 0; font-size: 0.92rem; }
.mod-icon {
  width: 52px; height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--mc) 16%, transparent);
  color: var(--mc);
}
.tipbox {
  background: color-mix(in srgb, var(--mc) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--mc) 25%, var(--border));
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.tipbox strong { color: var(--mc); }

.level-list { display: flex; flex-direction: column; gap: 0.6rem; }
.level-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  width: 100%;
  transition: border-color 0.15s;
}
.level-row:not(.locked):hover { border-color: color-mix(in srgb, var(--mc) 55%, var(--border)); }
.level-row.locked { opacity: 0.55; }
.level-row.complete .lv-num { background: var(--mc); color: #0b0e14; border-color: var(--mc); }
.lv-num {
  width: 32px; height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.9rem;
}
.lv-main { flex: 1; min-width: 0; }
.lv-name { font-weight: 700; }
.lv-hint { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.1rem; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.45rem; }
.chip {
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.lv-side { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.lv-acc { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }
.lv-status.done {
  color: var(--mc);
  font-size: 1.2rem;
  font-weight: 800;
}
.lv-status.locked { font-size: 0.95rem; }

/* ── session ── */
.session {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.s-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0 0.6rem;
}
.s-title { flex: 1; font-weight: 700; line-height: 1.25; }
.s-sub { color: var(--text-dim); font-size: 0.82rem; font-weight: 500; }
.s-score { color: var(--text-dim); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

.s-body { display: flex; flex-direction: column; flex: 1; }
.s-stage {
  text-align: center;
  padding: 1.6rem 0 1.1rem;
}
.playbtn {
  width: 86px; height: 86px;
  border-radius: 50%;
  font-size: 1.7rem;
  background: color-mix(in srgb, var(--mc) 18%, var(--surface));
  border: 2px solid color-mix(in srgb, var(--mc) 60%, var(--border));
  color: var(--mc);
  display: inline-grid;
  place-items: center;
  transition: transform 0.1s, box-shadow 0.2s;
}
.playbtn:hover { transform: scale(1.05); box-shadow: 0 0 28px color-mix(in srgb, var(--mc) 30%, transparent); }
.playbtn.playing { animation: pulse-ring 1s ease-out infinite; }
.session.awaiting-play .playbtn { animation: pulse-ring 1.6s ease-out infinite; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mc) 45%, transparent); }
  100% { box-shadow: 0 0 0 18px transparent; }
}
.session.awaiting-play .s-answers { opacity: 0.35; pointer-events: none; }
.s-chip {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mc);
  min-height: 1.1em;
}
.s-prompt { font-size: 1.25rem; font-weight: 700; margin-top: 0.35rem; }
.s-goal { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.3rem; min-height: 1.1em; }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
}
.opt-grid.numerals { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.opt {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem 0.8rem 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.12s, background 0.12s, transform 0.06s;
  min-height: 56px;
  justify-content: center;
}
.opt.numeral { padding: 0.8rem 0.4rem; align-items: center; font-size: 1.05rem; }
.opt:not(:disabled):hover { border-color: var(--mc); transform: translateY(-1px); }
.opt:disabled { cursor: default; }
.opt-kbd {
  position: absolute;
  top: 6px; left: 7px;
  font-size: 0.66rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 4px;
  line-height: 1.4;
}
.opt.numeral .opt-kbd { position: absolute; }
.opt-label { font-weight: 600; font-size: 0.97rem; }
.opt-sub { color: var(--text-dim); font-size: 0.76rem; margin-top: 1px; }
.opt.good {
  background: rgba(52, 211, 153, 0.12);
  border-color: var(--good);
}
.opt.good .opt-label { color: var(--good); }
.opt.bad {
  background: rgba(248, 113, 113, 0.12);
  border-color: var(--bad);
}
.opt.bad .opt-label { color: var(--bad); }
.opt.dim { opacity: 0.42; }

.s-feedback { margin-top: 0.9rem; min-height: 30px; }
.fb {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid;
  animation: fb-in 0.18s ease-out;
}
@keyframes fb-in {
  from { transform: translateY(4px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.fb.good { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.4); }
.fb.bad { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.4); }
.fb-line { font-weight: 700; }
.fb.good .fb-line { color: var(--good); }
.fb.bad .fb-line { color: var(--bad); }
.fb-detail { margin-top: 0.2rem; font-size: 0.95rem; }
.fb-mnemonic { margin-top: 0.35rem; color: var(--text-dim); font-size: 0.88rem; font-style: italic; }
.fb-compare { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }

.s-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 44px;
}
.s-kbd {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.74rem;
  margin-top: auto;
  padding-top: 1.6rem;
  opacity: 0.7;
}
@media (max-width: 640px) { .s-kbd { display: none; } }

/* slots (progressions & melodies) */
.slots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.slot {
  min-width: 52px;
  height: 46px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dim);
  padding: 0 0.5rem;
}
.slot.filled { border-style: solid; color: var(--text); border-color: color-mix(in srgb, var(--mc) 55%, var(--border)); }
.slot.given { border-style: solid; color: var(--mc); background: color-mix(in srgb, var(--mc) 10%, var(--surface)); }
.slot.good { border-color: var(--good); color: var(--good); border-style: solid; }
.slot.bad { border-color: var(--bad); color: var(--bad); border-style: solid; }
.seq-tools { display: flex; justify-content: center; margin-top: 0.7rem; }

/* ── piano ── */
.piano-wrap { overflow-x: auto; padding-bottom: 4px; }
.piano {
  position: relative;
  height: 150px;
  min-width: 420px;
  user-select: none;
  touch-action: manipulation;
}
.pkey {
  position: absolute;
  top: 0;
  border: 1px solid #0a0c11;
  border-radius: 0 0 6px 6px;
  padding: 0;
  transition: filter 0.08s;
}
.pkey.white {
  height: 100%;
  background: linear-gradient(#f4f5f8, #dfe2ea);
  z-index: 1;
}
.pkey.black {
  height: 60%;
  background: linear-gradient(#2a2f3d, #11141c);
  z-index: 2;
}
.pkey.white:hover { filter: brightness(0.92); }
.pkey.black:hover { filter: brightness(1.5); }
.pkey.pressed.white { background: #c9cedb; }
.pkey.pressed.black { background: #3d4456; }
.pkey.hl.white { background: linear-gradient(#cfc8ff, #b3a8fb); }
.pkey.hl.black { background: linear-gradient(#6a5ae0, #4f41c0); }
.pkey.hl-good.white { background: linear-gradient(#b9f4dd, #86e8c2); }
.pkey.hl-good.black { background: linear-gradient(#1f9d6f, #157a55); }
.pkey.hl-bad.white { background: linear-gradient(#ffc9c9, #f8a3a3); }
.piano.disabled { opacity: 0.7; pointer-events: none; }
.tonic-dot {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mc, var(--accent));
}

/* ── stats ── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}
.stat-card { padding: 1rem; text-align: center; }
.sc-icon { font-size: 1.3rem; }
.sc-big { font-size: 1.6rem; font-weight: 800; margin-top: 0.15rem; }
.sc-label { color: var(--text-dim); font-size: 0.82rem; }

.agrid { display: flex; gap: 3px; }
.acol { display: flex; flex-direction: column; gap: 3px; }
.acell {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.acell.empty { background: none; border-color: transparent; }
.acell.l1 { background: #2a3f63; }
.acell.l2 { background: #3d5fa3; }
.acell.l3 { background: #6c8ff0; }

.stat-modules { display: flex; flex-direction: column; gap: 0.55rem; }
.stat-mod {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
}
.sm-main { flex: 1; min-width: 0; }
.sm-title { font-weight: 700; font-size: 0.95rem; }
.sm-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--surface-2);
  margin-top: 0.4rem;
  overflow: hidden;
}
.sm-fill { height: 100%; border-radius: 99px; background: var(--mc); transition: width 0.3s; }
.sm-side { text-align: right; font-weight: 700; font-size: 0.9rem; flex: none; }

.confusions { display: flex; flex-direction: column; gap: 0.55rem; }
.confusion-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}
.cf-main { flex: 1; min-width: 200px; font-size: 0.95rem; }
.cf-btns { display: flex; gap: 0.45rem; flex-wrap: wrap; }

/* ── settings ── */
.setting-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.55rem;
}
.set-main { flex: 1; min-width: 0; }
.set-label { font-weight: 600; }
.select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.45rem 0.6rem;
  font-family: var(--font);
  font-size: 0.9rem;
}
.slider { width: 160px; accent-color: var(--accent); }
.toggle {
  width: 48px; height: 28px;
  flex: none;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.15s;
}
.toggle .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: left 0.15s, background 0.15s;
}
.toggle.on { background: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); border-color: var(--accent); }
.toggle.on .knob { left: 23px; background: #fff; }

/* ── guide ── */
.guide .tipcard { padding: 0.95rem 1.15rem; margin-bottom: 0.65rem; }
.guide .tipcard h3 { color: var(--mc, var(--text)); }
.songs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.7rem 0 1rem;
}
.songs th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.6rem;
}
.songs td {
  padding: 0.5rem 0.6rem;
  border-top: 1px solid var(--border);
}

/* ── misc ── */
.ring { flex: none; }
noscript { display: block; padding: 2rem; text-align: center; color: var(--text-dim); }

/* ── feedback widget ── */
.feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.1s, border-color 0.15s;
}
.feedback-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.feedback-fab.hidden { display: none; }
.fab-label { font-size: 0.88rem; }
@media (max-width: 640px) {
  .fab-label { display: none; }
  .feedback-fab { padding: 0.55rem 0.7rem; }
}

.feedback-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  width: min(440px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: pop-in 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.feedback-modal h2 { margin: 0; font-size: 1.25rem; }
.feedback-modal p { margin: 0; }
.fb-close {
  position: absolute;
  top: 12px; right: 14px;
  color: var(--text-dim);
  font-size: 1rem;
}
.fb-close:hover { color: var(--text); }
.moods { display: flex; gap: 0.5rem; }
.mood {
  font-size: 1.5rem;
  width: 52px; height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 0.08s, border-color 0.12s;
}
.mood:hover { transform: scale(1.08); }
.mood.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); }
.fb-text, .fb-email {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
  resize: vertical;
}
.fb-text:focus, .fb-email:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.fb-status { color: var(--bad); font-size: 0.85rem; min-height: 1.1em; }
.fb-send-row { display: flex; justify-content: flex-end; }
.fb-alt { color: var(--text-dim); font-size: 0.82rem; }
.fb-thanks { font-size: 2.4rem; text-align: center; }
