/* =====================================================================
   gc.coach · by Careless Mistakes
   Same palette and type as the main site: charcoal, two blues, sage, cream.
   Inter for headings and labels, Latin Modern (KaTeX_Main fallback) for body.
   ===================================================================== */

:root {
  --ink: #424242;
  --ink-2: #575757;
  --muted: #767676;
  --blue: #8EB3D2;
  --blue-ink: #4E7BA3;
  --light: #C9D9E6;
  --sage: #BCC7B7;
  --sage-tint: #EEF1EC;
  --cream: #FFFBF1;
  --cream-edge: #E9E0C9;
  --tint: #EEF4F9;
  --rule: #DDE6EF;
  --paper: #FFFFFF;
  --key-2nd: #5aa2d8;
  --key-alpha: #86b383;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Latin Modern Roman", "LM Roman 10", "KaTeX_Main", "Computer Modern Serif", Georgia, serif;
  --mono: "Consolas", "SF Mono", "Menlo", "DejaVu Sans Mono", monospace;
  --gut: clamp(16px, 4vw, 40px);
  --shadow-1: 0 1px 2px rgba(66, 66, 66, .06), 0 8px 22px -12px rgba(66, 66, 66, .22);
  --shadow-2: 0 2px 4px rgba(66, 66, 66, .05), 0 28px 56px -28px rgba(66, 66, 66, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
h1, h2 { font-family: var(--sans); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.024em; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--blue-ink); outline-offset: 3px; border-radius: 4px; }
.katex { font-size: 1.04em; }

.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.label { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 12px; }
.label.ink { color: var(--ink); }
.lead { font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 34em; margin-top: 18px; }
.link { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1; padding: 15px 22px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, box-shadow .18s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #2f2f2f; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .55); }
.btn:hover .arr { transform: translateX(3px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- header ---------- */
.head { border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--sans); font-weight: 800; font-size: 26px; letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
.wordmark span, .cw span { color: var(--blue); }
.by { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; color: var(--ink); }
.by > span { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.by .mark { width: 30px; }

/* ---------- layout ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 388px; gap: clamp(28px, 5vw, 72px); padding-top: clamp(28px, 5vw, 56px); padding-bottom: 72px; align-items: start; }
.pane { display: none; min-width: 0; }
.work[data-state="start"] .pane-start, .work[data-state="wait"] .pane-wait, .work[data-state="coach"] .pane-coach { display: block; }
.calc-col { position: sticky; top: 16px; }
@media (max-width: 900px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .calc-col { position: static; max-width: 400px; margin: 0 auto; width: 100%; }
  .work[data-state="start"] .calc-col, .work[data-state="wait"] .calc-col { display: none; }
  .by b { display: none; }
  .steps { display: none; }
}

/* ---------- ask ---------- */
.ask { margin-top: 30px; display: grid; gap: 12px; max-width: 560px; justify-items: start; }
.drop { width: 100%; min-height: 168px; display: grid; place-items: center; border: 2px dashed var(--blue); border-radius: 12px; background: var(--tint); cursor: pointer; padding: 18px; text-align: center; transition: background-color .15s, border-color .15s; }
.drop:hover, .drop.over { background: #e3edf6; border-color: var(--blue-ink); }
.drop-text { display: grid; justify-items: center; gap: 4px; font-family: var(--sans); color: var(--ink); }
.drop-text svg { width: 38px; height: 38px; color: var(--blue-ink); margin-bottom: 4px; }
.drop-text b { font-size: 16px; font-weight: 700; }
.drop-text span { font-size: 13.5px; color: var(--muted); }
.drop img { max-height: 260px; border-radius: 6px; box-shadow: var(--shadow-1); }
.ask input[type="text"], .ask textarea { width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--light); border-radius: 8px; background: #fff; }
.ask textarea { resize: vertical; }
.ask input::placeholder, .ask textarea::placeholder { color: #9aa3ab; }
.warn { font-family: var(--sans); font-size: 14px; line-height: 1.45; background: var(--sage-tint); border-left: 4px solid var(--sage); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0; }
.warn.err { background: #fbeeee; border-left-color: #cf8a8a; }
.examples { margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--light); background: #fff; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip:hover { background: var(--tint); border-color: var(--blue); }

/* ---------- wait ---------- */
.wait-row { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-family: var(--sans); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--light); border-top-color: var(--blue-ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#wait-img { margin-top: 26px; max-height: 240px; border-radius: 8px; box-shadow: var(--shadow-1); }

/* ---------- coach ---------- */
.qcard { border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; background: #fff; box-shadow: var(--shadow-1); }
.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.q-top .label { margin-bottom: 8px; }
.q-body { display: flex; gap: 16px; align-items: flex-start; }
.q-body img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); flex: none; cursor: zoom-in; }
.q-body img.big { width: 100%; height: auto; cursor: zoom-out; }
.q-body:has(img.big) { flex-direction: column; }
.qcard .warn { margin-top: 12px; }
.q-links { display: flex; gap: 16px; white-space: nowrap; }
.q-text { flex: 1; min-width: 0; line-height: 1.6; }
.q-text p { margin: 0 0 8px; }
.q-text p:last-child { margin-bottom: 0; }
.q-text .qpart { display: grid; grid-template-columns: 2.4em 1fr auto; column-gap: 4px; align-items: baseline; }
.q-text .qpart > .lbl { font-weight: 600; }
.q-text .qpart.nolbl { grid-template-columns: 1fr auto; }
.q-text .mk { color: var(--ink-2); font-size: .9em; padding-left: 12px; white-space: nowrap; }
.q-text .disp { margin: 6px 0 10px; overflow-x: auto; text-align: center; }
.q-text .qpart .disp { text-align: left; }
.q-edit { margin-top: 14px; }
.q-edit-hint { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.q-edit textarea { width: 100%; box-sizing: border-box; font: 14px/1.5 ui-monospace, Consolas, monospace; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; resize: vertical; }
.q-edit-row { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.parts { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.parts:empty { display: none; }
.parts button { font-family: var(--sans); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--light); background: #fff; cursor: pointer; }
.parts button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.answer { margin: 16px 0 0; font-size: 1.05rem; }
.answer b { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 18px; }
.methods button { text-align: left; font-family: var(--sans); padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--light); background: #fff; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s, background-color .15s; }
.methods button:hover { border-color: var(--blue); }
.methods button[aria-selected="true"] { border-color: var(--blue-ink); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue-ink); }
.methods small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); }
.methods b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.methods em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.answer .src { display: block; margin-top: 6px; font-family: var(--sans); font-size: 12px; color: var(--ink-2); }
.answer .src.ai { color: var(--ink-2); font-style: italic; }
.nogc { font-family: var(--sans); font-size: 14px; line-height: 1.45; background: var(--sage-tint); border-left: 4px solid var(--sage); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 16px 0 0; }
.nogc b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.idea { margin: 16px 0 0; font-style: italic; color: var(--ink-2); }

.sticky { position: relative; margin-top: 26px; background: var(--cream); border: 1px solid var(--cream-edge); border-radius: 3px; padding: 26px 22px 20px; box-shadow: var(--shadow-1); min-height: 150px; }
.sticky::before { content: ""; position: absolute; top: -9px; left: 26px; width: 84px; height: 20px; background: rgba(142, 179, 210, .55); transform: rotate(-2deg); }
.sticky .label { margin-bottom: 8px; }
.sticky p { font-size: 1.12rem; line-height: 1.45; }
.sticky.swap p#note-text { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.shows { margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--cream-edge); font-family: var(--sans); font-size: 14.5px !important; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.shows b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.shows code { font-family: var(--mono); font-weight: 700; font-size: 14.5px; }
.tag { font-family: var(--sans); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--sage-tint); border: 1px solid var(--sage); white-space: nowrap; }
.tag.off { background: #fbeeee; border-color: #cf8a8a; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.steps button { width: 100%; display: grid; grid-template-columns: 26px auto 1fr; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; border-radius: 6px; padding: 7px 8px; font-family: var(--sans); font-size: 14px; cursor: pointer; color: var(--muted); }
.steps button:hover { background: var(--tint); }
.steps .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--light); display: grid; place-items: center; font-size: 12px; font-weight: 700; align-self: center; }
.steps .op { font-weight: 700; color: var(--ink); white-space: nowrap; }
.steps .res { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps li.now button { background: var(--tint); color: var(--ink); }
.steps li.now .n { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.steps li.done .n { background: var(--sage); border-color: var(--sage); color: var(--ink); }

.concl { margin-top: 22px; background: var(--sage-tint); border-left: 5px solid var(--sage); padding: 16px 20px; border-radius: 0 8px 8px 0; animation: swap .4s var(--ease); }
.concl .label { margin-bottom: 6px; }

/* ---------- the calculator ---------- */
.calc { container-type: inline-size; background: linear-gradient(#444, #363636); border-radius: 26px 26px 34px 34px; padding: 14px 16px 20px; box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .14); color: #fff; }
.calc-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 9px; }
.cw { font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.04em; }
.cm { font-family: var(--sans); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.bezel { background: #1d1d1f; border-radius: 12px; padding: 12px; }

.lcd { position: relative; aspect-ratio: 4 / 3; background: #fcfcfa; border-radius: 3px; overflow: hidden; container-type: inline-size; color: #151515; }
.lcd-in { position: absolute; inset: 0; display: flex; flex-direction: column; font: 700 6.1cqw/1.14 var(--mono); }
.lcd .katex { font-size: 1em; }
.sb { flex: none; display: flex; justify-content: space-between; align-items: center; background: #4b4b4b; color: #fff; font-size: .6em; padding: .28em .7em; letter-spacing: .02em; }
.sb i { width: .9em; height: 1.4em; border: .12em solid #fff; border-radius: .1em; background: linear-gradient(#4b4b4b 25%, #3fbf4a 25%); }
.scr { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.soft { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .15em; padding: .15em; font-size: .56em; }
.soft span { background: #4b4b4b; color: #fff; text-align: center; padding: .25em 0; border-radius: .2em; min-height: 1.5em; }
.soft span:empty { background: none; }
.inv { background: #1d1d1f; color: #fff; padding: 0 .12em; }
.cur::after { content: ""; display: inline-block; width: .5em; height: 1em; background: #2f6fde; vertical-align: -.12em; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.home { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: .15em .5em; }
.home.full { justify-content: flex-end; }
.h-in { padding: .12em 0; white-space: nowrap; }
.h-out { text-align: right; padding: .05em 0 .2em; border-bottom: .09em dotted #9a9a9a; white-space: nowrap; }
.h-out.err { color: #b3261e; font-size: .8em; }

.menu { padding: .1em .45em; }
.tabs { display: flex; gap: .7em; margin-bottom: .1em; white-space: nowrap; }
.menu .it { white-space: nowrap; overflow: hidden; }
.popup { position: absolute; left: 6%; right: 6%; top: 4%; background: #fff; border: .14em solid #1d1d1f; box-shadow: .25em .25em 0 rgba(0, 0, 0, .25); font-size: .88em; z-index: 3; }

.form { padding: .15em .5em; }
.form.dense { font-size: .68em; line-height: 1.2; }
.form .title { text-align: center; }
.form .row { white-space: nowrap; display: flex; gap: .45em; align-items: center; min-height: 1.14em; }
.form .row .hl { outline: .12em solid #2f6fde; outline-offset: .04em; }
.form .row.now::before { content: "▸"; color: #2f6fde; margin-left: -.45em; margin-right: -.3em; font-size: .8em; }

.yeq .hdr { display: flex; gap: .8em; padding: .1em .5em; }
.yeq .row { display: flex; align-items: center; gap: .15em; padding: .07em .5em; white-space: nowrap; min-height: 1.3em; }
.yeq .sq { width: .5em; height: .5em; flex: none; margin-right: .1em; }

.graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph .eq { position: absolute; top: .15em; left: .4em; font-size: .72em; background: rgba(255, 255, 255, .86); padding: 0 .2em; white-space: nowrap; }
.graph .bot { position: absolute; left: 0; right: 0; bottom: 0; padding: .1em .45em .15em; font-size: .78em; background: rgba(255, 255, 255, .86); }
.graph .bot div { display: flex; justify-content: space-between; gap: .6em; white-space: nowrap; }

.grid { display: grid; height: 100%; grid-auto-rows: 1fr; font-size: .82em; }
.grid > div { border-right: .08em solid #8b8b8b; padding: 0 .3em; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
.grid .hd { border-bottom: .12em solid #1d1d1f; justify-content: center; }
.grid .sel { background: #1d1d1f; color: #fff; }
.grid .foot { grid-column: 1 / -1; border-right: 0; border-top: .12em solid #1d1d1f; }
.text { padding: .15em .5em; }
.text .title { text-align: center; white-space: nowrap; font-size: .82em; }
.text div { white-space: nowrap; }
.error { padding: .6em .7em; }
.error b { display: block; color: #b3261e; margin-bottom: .5em; }

/* key trail under the screen */
.trail { display: flex; align-items: center; justify-content: flex-end; gap: 4px; height: 34px; margin: 8px 2px 4px; overflow: hidden; white-space: nowrap; }
.trail kbd { flex: none; font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--ink); background: #fff; border-radius: 6px; padding: 4px 7px 3px; border-bottom: 3px solid #c2cad2; }
.trail kbd.k2 { background: var(--key-2nd); color: #fff; border-color: #3c7fb2; }
.trail kbd.ka { background: var(--key-alpha); color: #fff; border-color: #5f8d5c; }
.trail kbd.as2 { color: #2d6da3; }
.trail kbd.asa { color: #3f7a3b; }
.trail kbd:last-of-type { animation: pop .18s var(--ease); }
.trail .hint { flex: none; font-family: var(--sans); font-size: 11.5px; color: rgba(255, 255, 255, .78); margin-left: 6px; max-width: 58%; overflow: hidden; text-overflow: ellipsis; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* keypad */
.pad { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1cqw 2.4cqw; padding: 0 1cqw; }
.kc { display: flex; flex-direction: column; min-width: 0; }
.lg { display: flex; justify-content: space-between; align-items: flex-end; height: 3.5cqw; padding: 0 .5cqw .3cqw; font: 600 2.35cqw/1 var(--sans); white-space: nowrap; }
.lg .s { color: #8ec3ee; }
.lg .a { color: #a9d3a5; }
.lg .on { background: #fff; color: #1d1d1f; border-radius: .6cqw; padding: .3cqw .7cqw; margin: -.3cqw -.7cqw; }
.key { height: 6.7cqw; border: 0; border-radius: 1.5cqw; font: 700 3.25cqw/1 var(--sans); background: #5b5b5b; color: #fff; box-shadow: 0 .55cqw 0 #232323; cursor: default; padding: 0; transition: transform .08s, box-shadow .08s, filter .08s; }
.key.num { background: #f4f4f1; color: #222; font-size: 3.8cqw; box-shadow: 0 .55cqw 0 #a9a9a4; }
.key.opk { background: #cfd6dc; color: #222; font-size: 3.9cqw; box-shadow: 0 .55cqw 0 #8d949a; }
.key.top { background: #dfe4e8; color: #222; height: 5.2cqw; font-size: 2.8cqw; box-shadow: 0 .45cqw 0 #8d949a; }
.key.k2 { background: var(--key-2nd); box-shadow: 0 .55cqw 0 #2f6c9c; }
.key.ka { background: var(--key-alpha); box-shadow: 0 .55cqw 0 #4f7a4c; }
.key.ent { background: #8EB3D2; color: #1d1d1f; box-shadow: 0 .55cqw 0 #4E7BA3; }
.key.hit { transform: translateY(.45cqw); box-shadow: 0 .1cqw 0 #111; filter: brightness(1.18); outline: .5cqw solid #fff; outline-offset: .3cqw; }
.dpad { grid-column: 4 / 6; grid-row: 2 / 4; position: relative; align-self: center; justify-self: center; width: 25cqw; height: 17cqw; }
.dpad .key { position: absolute; width: 7.6cqw; height: 5.6cqw; background: #dfe4e8; color: #222; box-shadow: 0 .45cqw 0 #8d949a; font-size: 2.6cqw; }
.dpad [data-k="up"] { left: 8.7cqw; top: .4cqw; }
.dpad [data-k="down"] { left: 8.7cqw; bottom: .9cqw; }
.dpad [data-k="left"] { left: 0; top: 5.5cqw; }
.dpad [data-k="right"] { right: 0; top: 5.5cqw; }
.finger { position: absolute; width: 10cqw; height: 10cqw; margin: -5cqw 0 0 -5cqw; border-radius: 50%; border: .5cqw solid #fff; background: rgba(142, 179, 210, .42); pointer-events: none; opacity: 0; transition: left .2s var(--ease), top .2s var(--ease), opacity .3s; z-index: 4; }
.finger.show { opacity: 1; }
.finger.tap { animation: tap .22s var(--ease); }
@keyframes tap { 40% { transform: scale(.72); background: rgba(142, 179, 210, .8); } }

/* player */
.player { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.player button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--light); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background-color .15s; }
.player button:hover { background: var(--tint); }
.player button.main { background: var(--ink); border-color: var(--ink); width: 46px; height: 46px; }
.player svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.player .main svg { stroke: #fff; }
.player .bar { flex: 1; height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.player .bar i { display: block; height: 100%; width: 0; background: var(--blue-ink); transition: width .25s linear; }
.player select { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 8px 8px; border: 1.5px solid var(--light); border-radius: 8px; background: #fff; }
.fine { font-family: var(--sans); font-size: 11.5px; line-height: 1.45; color: var(--muted); margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Numeric Solver screens */
.sb2 { flex: none; background: #4b4b4b; color: #fff; font-size: .6em; padding: 0 .7em .3em; letter-spacing: .02em; white-space: nowrap; }
.solver { padding: .2em .5em; }
.solver .ttl { text-align: center; margin-bottom: .25em; }
.solver .eqrow { display: flex; align-items: flex-start; gap: .25em; margin-bottom: .3em; }
.solver .box { flex: 1; min-width: 0; min-height: 2.75em; border: .11em solid #1d1d1f; padding: .1em .3em; white-space: nowrap; overflow: hidden; }
.solver .eqline { white-space: nowrap; overflow: hidden; padding: .1em 0 .2em; }
.solver .mk { display: inline-block; width: .8em; font-size: .7em; }

/* structured solution for each part */
.sol { border: 1px solid var(--rule); border-radius: 12px; background: #fff; padding: 16px 18px; font-size: 1rem; }
.sol .tag-k { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.sol-task { margin: 0 0 14px; }
.sol-steps { list-style: none; counter-reset: s; margin: 0 0 14px; padding: 0; }
.sol-steps li { counter-increment: s; position: relative; padding: 8px 0 8px 36px; border-top: 1px dashed var(--rule); }
.sol-steps li:first-child { border-top: 0; }
.sol-steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 12px/24px var(--sans); text-align: center; }
.sol-steps .ln { line-height: 1.5; }
.sol-steps .why { margin-top: 3px; font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.sol-final { margin: 0; padding: 10px 14px; background: var(--sage-tint); border-left: 4px solid var(--sage); border-radius: 0 8px 8px 0; font-size: 1.05rem; }
.gc-head { margin: 22px 0 0; font-family: var(--sans); font-size: 15px; font-weight: 700; }
.answer .gc-head + .src { margin-top: 2px; }

/* ---------- accounts, sign-in and plans ---------- */
.head-in { gap: 16px; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 14px; }
.acct-in { display: inline-flex; align-items: center; gap: 14px; }
.credits { border: 1px solid var(--rule); background: var(--tint); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; }
.credits.low { background: var(--cream); border-color: var(--cream-edge); }
.signin { margin-top: 24px; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; background: var(--tint); display: grid; gap: 12px; max-width: 640px; }
.signin-text { display: grid; gap: 2px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.signin-text b { font-size: 16px; color: var(--ink); }
.signin-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signin-form input { flex: 1 1 220px; font-family: var(--sans); font-size: 16px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.signin-form .btn { padding: 12px 18px; font-size: 15px; }
.signin-sent { margin: 0; font-family: var(--sans); font-size: 14px; }
.note-ok { margin: 18px 0 0; font-family: var(--sans); font-size: 14px; background: var(--sage-tint); border-left: 4px solid var(--sage); padding: 10px 14px; border-radius: 0 6px 6px 0; max-width: 640px; }
.work[data-state="plans"] .pane-plans { display: block; }
.work[data-state="plans"] .calc-col { display: none; }
.work[data-state="plans"] { grid-template-columns: minmax(0, 1fr); }
.back { margin-bottom: 18px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; max-width: 760px; }
.plan { border: 1px solid var(--rule); border-radius: 14px; padding: 22px; background: #fff; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.plan.best { border-color: var(--blue); box-shadow: var(--shadow-2); }
.plan .price { margin: 4px 0 0; font-family: var(--sans); font-size: 15px; }
.plan .price b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan .then { margin: 2px 0 0; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.plan .qty { margin: 14px 0 0; font-family: var(--sans); font-size: 15px; }
.plan ul { margin: 14px 0 20px; padding-left: 18px; font-size: 16px; color: var(--ink-2); flex: 1; }
.plan .btn { width: 100%; }
.fine-print { margin-top: 22px; font-family: var(--sans); font-size: 13px; color: var(--muted); max-width: 640px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
@media (max-width: 600px) { #acct-word { display: none; } .acct { gap: 10px; } }
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.legal h1 { margin-bottom: 18px; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
