/* Tsumego — design in the style of Kepler Math: Inter + Space Grotesk, one accent, light and dark.
   Light: cool white, slate, deep teal. Dark: navy-black, cyan. The theme is set on <html data-theme>
   by index.html (system preference unless the visitor picked one with the header toggle). */

:root {
  --bg: #F5F7FA; --band: #EEF2F7; --surface: #FFFFFF; --surface-2: #F0F3F8;
  --ink: #0B1220; --text: #1F2A3D; --muted: #4A5568; --faint: #64748B;
  --line: #E2E8F0; --line-2: #CBD5E1;
  --accent: #0E7490; --accent-2: #155E75; --accent-soft: #E0F2F7; --accent-ink: #FFFFFF;
  --violet: #6D5BD0;
  --good: #137a55; --good-soft: #e8f6ef; --bad: #d92d3a; --bad-soft: #fdecee; --warn: #a16207;

  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 8px 24px rgba(20, 20, 30, .06);
  --shadow-lg: 0 2px 4px rgba(20, 20, 30, .04), 0 24px 60px rgba(20, 30, 60, .12);
  --glow-a: rgba(109, 91, 208, .16); --glow-b: rgba(14, 116, 144, .14);
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070A12; --band: #0A0E18; --surface: #0D1220; --surface-2: #111829;
  --ink: #F4F6FB; --text: #E6EAF2; --muted: #A9B3C7; --faint: #7C879E;
  --line: #1B2335; --line-2: #253049;
  --accent: #7DE3F4; --accent-2: #A6ECF8; --accent-soft: #0F2A33; --accent-ink: #04121A;
  --violet: #A78BFA;
  --good: #5cd3a2; --good-soft: #16302a; --bad: #f7808a; --bad-soft: #351b20; --warn: #ecc46b;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 30px 80px rgba(0, 0, 0, .5);
  --glow-a: rgba(59, 47, 154, .38); --glow-b: rgba(31, 95, 139, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: 1.9rem; font-weight: 600; margin: .2em 0 .4em; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }
.error { color: var(--bad); min-height: 1.2em; margin: 0; font-size: .92rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
       background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font: 700 1.2rem var(--display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.logo-b { fill: var(--ink); } .logo-w { fill: var(--accent); }
.logo-grid { fill: none; stroke: var(--line-2); stroke-width: 2.5; } .logo-edge { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav-links a { color: var(--muted); } .nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }
#account { display: flex; gap: 12px; align-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; }
.avatar.initial { display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.who { font-weight: 600; color: var(--ink); }
.theme-toggle { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
.theme-toggle svg { width: 18px; height: 18px; }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 32px 48px; }
body[data-page="landing"] main, body[data-page="auth"] main { max-width: none; padding: 0; }
body[data-page="auth"] .top, body[data-page="auth"] .foot { display: none; }

/* ------------------------------------------------------------------ controls */
button, .button { font: 600 .95rem var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; }
button:hover, .button:hover { border-color: var(--accent); color: var(--ink); }
button:active, .button:active { transform: translateY(1px); }
.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.primary:hover, .button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
:root[data-theme="dark"] .primary { box-shadow: 0 0 0 1px rgba(125, 227, 244, .18), 0 10px 30px rgba(125, 227, 244, .14); }
.btn-ghost, .button.btn-ghost { background: transparent; }
.big { min-height: 50px; padding: 0 26px; font-size: 1.02rem; border-radius: 12px; }
.small-btn { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent); background: none; }
input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
        color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); margin: 18px 0; font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pill { font-size: .76rem; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; color: var(--muted); }
.pill.premium { border-color: var(--warn); color: var(--warn); }
.pill.ok { border-color: color-mix(in srgb, var(--good) 50%, transparent); color: var(--good); background: var(--good-soft); }
.pill.warn { border-color: var(--warn); color: var(--warn); }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.back { color: var(--muted); font-size: .9rem; }

/* social logins */
.social { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 10px;
          font-weight: 600; font-size: .95rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s; }
.social:hover { border-color: var(--accent); color: var(--ink); background: var(--surface-2); }
.social svg { flex: none; }
.social.discord svg { color: #5865F2; } .social.linkedin svg { color: #0A66C2; } .social.github svg { color: var(--ink); }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .socials { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ landing */
.lp-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 520px at 85% 0%, var(--glow-a) 0%, transparent 60%),
              radial-gradient(800px 500px at -5% 90%, var(--glow-b) 0%, transparent 55%), var(--bg); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 900px) { .lp-hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 40px; } }
.lp-hero-text { display: flex; flex-direction: column; gap: 24px; }
.lp-pill { align-self: flex-start; font: 600 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
           border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
           padding: 6px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.grad { background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lede { margin: 0; font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 33em; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-note { margin: 0; font-size: .88rem; color: var(--faint); }
.lp-note b { color: var(--muted); font-weight: 600; }

.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg);
        display: flex; flex-direction: column; gap: 16px; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--faint); }
.demo-top b { color: var(--ink); font-family: var(--display); font-size: 1.02rem; letter-spacing: -.01em; }
.demo .board { border-radius: 10px; cursor: pointer; }
.demo-track { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.demo-track > div { height: 100%; width: 38%; background: linear-gradient(90deg, var(--accent), var(--violet)); border-radius: 4px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.demo-foot .check { color: var(--good); font-weight: 600; }

.lp-band { background: var(--band); border-bottom: 1px solid var(--line); }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-stats > div { padding: 30px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.lp-stats > div:first-child { border-left: 0; padding-left: 0; }
.lp-stats b { font: 600 2.1rem var(--display); letter-spacing: -.03em; color: var(--ink); }
.lp-stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .lp-stats { grid-template-columns: 1fr 1fr; } .lp-stats > div { border-left: 0; padding-left: 0; } }

.lp-section { padding-top: 88px; padding-bottom: 40px; }
.eyebrow { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lp-section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 12px; }
.lp-sub { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 0 36px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.lp-step:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-3px); }
.lp-step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.lp-step .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.lp-step h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.lp-step p { margin: 0; color: var(--muted); }

.lp-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .lp-proof { grid-template-columns: 1fr; } }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.lp-checks .tick { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.lp-checks b { color: var(--ink); display: block; }
.lp-checks span { color: var(--muted); font-size: .95rem; }
.verdicts { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.verdicts .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .94rem; align-items: center; }
.verdicts .row:first-child { border-top: 0; background: var(--surface-2); font-weight: 600; color: var(--ink); }
.verdicts .tag { font: 600 .72rem var(--mono); padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.tag.ok { color: var(--good); background: var(--good-soft); } .tag.no { color: var(--bad); background: var(--bad-soft); }

.lp-final { margin: 72px 0 0; padding: 64px 32px; border-radius: 24px; text-align: center; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(600px 300px at 85% 0%, rgba(109, 91, 208, .55) 0%, transparent 60%),
              radial-gradient(500px 300px at 0% 100%, rgba(14, 116, 144, .5) 0%, transparent 60%), linear-gradient(135deg, #0B1022, #141a3a); }
.lp-final h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 12px; }
.lp-final p { color: #C9D2E6; margin: 0 auto 26px; max-width: 34em; font-size: 1.08rem; }
.lp-final .primary { background: #7DE3F4; border-color: #7DE3F4; color: #04121A; }
.lp-final .primary:hover { background: #A6ECF8; border-color: #A6ECF8; }

/* ------------------------------------------------------------------ sign in (split) */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 36px clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: 28px;
  background: radial-gradient(900px 500px at 80% 15%, rgba(59, 47, 154, .75) 0%, transparent 60%),
              radial-gradient(700px 420px at 5% 95%, rgba(31, 95, 139, .6) 0%, transparent 55%), linear-gradient(160deg, #070A12 0%, #111735 100%); }
.auth-art .brand, .auth-art .brand:hover { color: #fff; }
.auth-art .logo-b { fill: #fff; } .auth-art .logo-w { fill: #7DE3F4; } .auth-art .logo-edge { stroke: #fff; } .auth-art .logo-grid { stroke: rgba(255,255,255,.28); }
.auth-art h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.03em; margin: clamp(16px, 6vh, 64px) 0 0; max-width: 13em; }
.auth-art h1 .grad { background: linear-gradient(90deg, #7DE3F4, #A78BFA); -webkit-background-clip: text; background-clip: text; }
.auth-art p { color: #C9D2E6; margin: 0; max-width: 30em; }
.auth-board { margin-top: auto; max-width: 380px; width: 100%; align-self: center; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.auth-board .board { border-radius: 12px; }
.auth-quote { display: flex; gap: 18px; color: #AEB8CF; font-size: .86rem; flex-wrap: wrap; }
.auth-quote span::before { content: "✓ "; color: #7DE3F4; }
.auth-panel { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.auth-panel .theme-toggle { position: absolute; top: 20px; right: 20px; }
.auth-mobile-brand { display: none; }
@media (max-width: 900px) { .auth-mobile-brand { display: flex; position: absolute; top: 22px; left: 24px; } }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 1.9rem; letter-spacing: -.03em; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; }
.auth-switch { text-align: center; color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
.auth-guest { width: 100%; }
.auth-legal { color: var(--faint); font-size: .78rem; text-align: center; margin: 22px 0 0; }

/* ------------------------------------------------------------------ levels and problem lists */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
h1.serif { font-size: 2.1rem; letter-spacing: -.03em; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 1rem; }
.level { display: block; color: var(--text); transition: border-color .15s, transform .15s; }
.level:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.level.empty { opacity: .55; }
.level-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.range { color: var(--faint); font-weight: 500; font-size: .92rem; font-family: var(--sans); letter-spacing: 0; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: .9rem 0 .4rem; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--violet)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 1rem; }
.tile { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
        display: flex; flex-direction: column; align-items: center; justify-content: center; transition: border-color .15s, transform .15s; }
.tile .n { font: 600 1.15rem var(--display); }
.tile .r { font-size: .74rem; color: var(--faint); }
.tile .lock { position: absolute; top: 4px; right: 6px; font-size: .72rem; }
.tile .unv { position: absolute; top: 3px; left: 7px; font-size: .75rem; color: var(--warn); font-weight: 700; }
.tile.solved { border-color: var(--good); box-shadow: inset 0 -3px 0 var(--good); }
.tile.failed { border-color: var(--bad); box-shadow: inset 0 -3px 0 var(--bad); }
.tile.locked { opacity: .5; }
a.tile:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }

/* ------------------------------------------------------------------ player */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 14px; align-items: start; }
@media (max-width: 820px) { .player { grid-template-columns: 1fr; } }
.board-wrap { width: 100%; max-width: 680px; }
.board { width: 100%; height: auto; display: block; user-select: none; touch-action: manipulation; }
.board .wood { stroke: none; }
.board .bg0 { stop-color: var(--bd-bg0); } .board .bg1 { stop-color: var(--bd-bg1); }
.board .grid line { stroke: var(--bd-grid); stroke-width: 1.3; }
.board .grid line.edge { stroke: var(--bd-edge); stroke-width: 2.6; }
.board .star { fill: var(--bd-edge); }
.board .sb0 { stop-color: var(--sb0); } .board .sb1 { stop-color: #151A24; } .board .sb2 { stop-color: #05070C; }
.board .sw0 { stop-color: #FFFFFF; } .board .sw1 { stop-color: var(--sw1); } .board .sw2 { stop-color: var(--sw2); }
.stone.b { stroke: var(--sb-rim); stroke-width: var(--sb-rim-w); }
.stone.w { stroke: var(--sw-rim); stroke-width: .8; }
/* board styles: light slate (default), dark slate, wood */
:root, :root[data-board="light"] {
  --bd-bg0: #EEF2F8; --bd-bg1: #E1E8F1; --bd-grid: #B4C0D1; --bd-edge: #55657F;
  --sb0: #4A5568; --sb-rim: #000; --sb-rim-w: .6; --sw1: #EEF2F7; --sw2: #C3CDDA; --sw-rim: #98A4B6; }
:root[data-board="dark"] {
  --bd-bg0: #1E2A44; --bd-bg1: #252249; --bd-grid: #3C4C6E; --bd-edge: #8EA0C2;
  --sb0: #4A5568; --sb-rim: #6A7DA2; --sb-rim-w: 1.4; --sw1: #EEF2F7; --sw2: #C3CDDA; --sw-rim: #98A4B6; }
:root[data-board="wood"] {
  --bd-bg0: #E2B977; --bd-bg1: #D4A764; --bd-grid: #3b2a14; --bd-edge: #3b2a14;
  --sb0: #5a5a5a; --sb-rim: #000; --sb-rim-w: .6; --sw1: #f1eee6; --sw2: #cfc9bb; --sw-rim: #8a857a; }
.board-pick { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: .85rem; color: var(--muted); }
.board-pick .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; padding: 2px; gap: 2px; }
.board-pick .seg button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .82rem; box-shadow: none; }
.board-pick .seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.stone.pv { opacity: .42; }
.board .ghost { opacity: .45; pointer-events: none; }
.board .ghost.b { fill: #111; } .board .ghost.w { fill: #fff; }
.last { fill: none; stroke-width: 2.5; }
.last.on-b { stroke: #fff; } .last.on-w { stroke: #111; }
.ring { fill: none; stroke-width: 3.5; }
.ring.wrong { stroke: #e5484d; } .ring.right { stroke: #30a46c; }
.num { font: 700 17px var(--sans); text-anchor: middle; }
.num.on-b { fill: #fff; } .num.on-w { fill: #111; }
.player .board { max-height: calc(100vh - 150px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.side h1 { font-size: 1.35rem; margin-top: 0; }
.goal { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.status { min-height: 1.5em; font-weight: 600; color: var(--ink); }
.status.good { color: var(--good); } .status.bad { color: var(--bad); }
.free-note:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.find { flex-basis: 100%; margin-top: 8px; }
.find p { margin: 0 0 6px; }
.find-row { display: flex; gap: 6px; }
.find-cell { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; background: var(--surface-2); }
.find-cell b { display: block; color: var(--ink); } .find-cell small { color: var(--faint); }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); color: var(--faint); font-size: .86rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; }
.foot p { margin: 0; max-width: 46em; }

/* small screens: one-line header buttons */
button, .button { white-space: nowrap; }
@media (max-width: 520px) {
  .top-inner { gap: 10px; }
  #account { gap: 8px; }
  #account .btn-ghost, #account .who { display: none; }
  .brand { font-size: 1.05rem; }
}

button:disabled { opacity: .4; cursor: default; box-shadow: none; }
.sol-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.sol-count { flex-basis: 100%; order: -1; }

/* premium */
.premium-page { max-width: 880px; margin: 24px auto 48px; }
.premium-page h1 { font: 700 clamp(1.9rem, 4vw, 2.6rem) var(--display); letter-spacing: -.02em; margin: 6px 0 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 24px 0 16px; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .price { margin: 0; color: var(--muted); }
.plan .price b { font: 700 2.2rem var(--display); color: var(--ink); letter-spacing: -.02em; }
.plan .save { margin: 0; color: var(--accent); font-weight: 600; font-size: .9rem; }
.plan .lp-checks { margin: 6px 0 8px; }
.plan > .button, .plan > button { margin-top: auto; }
a.pill.premium { text-decoration: none; }
