:root {
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --ink: #1b2430;
  --ink-2: #3c4654;
  --muted: #6b6f74;
  --rule: #d6ccb8;
  --rule-strong: #1b2430;
  --accent: #b23a1f;        /* vermilion, for numbers and emphasis */
  --link: #1f4e79;
  --green: #2e6b45;
  --amber: #8c5a00;
  --blue: #1f4e79;
  --code-bg: #efe7d6;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14171c;
    --paper-2: #1a1e24;
    --ink: #ece6d8;
    --ink-2: #c9c2b3;
    --muted: #979287;
    --rule: #2f343c;
    --rule-strong: #ece6d8;
    --accent: #ef8a6a;
    --link: #8fb9e6;
    --green: #7fc79a;
    --amber: #e5b54a;
    --blue: #8fb9e6;
    --code-bg: #1d222a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.78em; background: var(--code-bg); padding: 1px 5px; border-radius: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow .faq { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 6px 10px; z-index: 20; font-family: var(--sans); font-size: 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.smallcaps, .issue, .kicker, .fig-label, dt, th, .status, .chip, .masthead nav a, .figno {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; font-weight: 600;
}

/* masthead */
.masthead { border-bottom: 3px double var(--rule-strong); padding-top: 22px; }
.masthead-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wordmark { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark i { font-weight: 400; color: var(--accent); }
.wordmark.small { font-size: 22px; margin: 0 0 8px; }
.masthead nav { display: flex; gap: 22px; flex-wrap: wrap; }
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover { color: var(--accent); }
.issue { display: flex; gap: 0; flex-wrap: wrap; margin: 12px 0 0; padding: 7px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.issue span + span::before { content: "·"; margin: 0 10px; color: var(--rule); }
.issue .unofficial { color: var(--accent); }

/* lead */
.lead { padding: 56px 0 48px; border-bottom: 1px solid var(--rule); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.kicker { color: var(--accent); margin: 0 0 14px; }
.lead h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 22px; }
.standfirst { font-size: 22px; line-height: 1.5; color: var(--ink-2); font-style: italic; margin: 0 0 18px; max-width: 680px; }
.note { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0; }
.figures { border-top: 2px solid var(--rule-strong); padding-top: 10px; }
.fig-label { color: var(--muted); margin: 0 0 4px; }
.figures dl { margin: 0; }
.figures dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.figures dt { color: var(--ink-2); }
.figures dd { margin: 0; font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }

/* sections */
.section { padding: 64px 0 24px; }
.sec-head { margin-bottom: 26px; max-width: 760px; }
h2 { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; display: flex; align-items: baseline; gap: 14px; }
.secno { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; width: 30px; height: 30px; display: inline-grid; place-items: center; flex: none; transform: translateY(-4px); }
h3 { font-size: 21px; font-weight: 600; margin: 0 0 6px; line-height: 1.25; }
.sec-sub { color: var(--ink-2); margin: 0; }
.caption, figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.figno { color: var(--ink); margin-right: 4px; }
figcaption .stale { color: var(--amber); }
figure { margin: 0; }

/* problems */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { cursor: pointer; border: 0; background: none; color: var(--muted); padding: 6px 10px; border-radius: 3px; }
.chip:hover { color: var(--ink); }
.chip.active { color: var(--paper); background: var(--ink); }
.chip .count { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: 0.75; }
.search input { width: 280px; font-family: var(--sans); font-size: 14px; }
.problems { list-style: none; margin: 0; padding: 0; }
.problem { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.problem-no { font-size: 30px; line-height: 1; color: var(--accent); font-weight: 500; font-variant-numeric: lining-nums; }
.problem-no small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 600; }
.problem-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 4px; }
.problem h3 { font-family: var(--mono); font-size: 15px; font-weight: 500; word-break: break-word; margin: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.verified { color: var(--green); }
.status.attempted { color: var(--amber); }
.status.open { color: var(--blue); }
.problem .src { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.problem .src a { color: var(--muted); }
.problem .src a:hover { color: var(--accent); }
.lean { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.65; background: var(--code-bg); border-left: 3px solid var(--rule-strong); padding: 12px 16px; white-space: pre-wrap; word-break: break-word; max-height: 8.6em; overflow: hidden; }
.lean.open { max-height: none; }
.textbtn { font-family: var(--sans); font-size: 13.5px; background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.textbtn:hover { color: var(--accent); }
.problem .lean-toggle { margin-top: 8px; }
.problem .log { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.problem .log em { font-style: normal; color: var(--ink-2); }
.problem details { margin-top: 10px; font-family: var(--sans); font-size: 13.5px; }
.more { display: flex; justify-content: center; padding: 20px 0 0; }
.more .textbtn { font-size: 15px; }
.empty { padding: 32px 0; color: var(--muted); font-style: italic; text-align: center; }

/* method */
.method { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); }
.method li { counter-increment: step; padding: 18px 20px 6px 0; }
.method li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.method li::before { content: counter(step, upper-roman) "."; display: block; font-size: 26px; color: var(--accent); margin-bottom: 8px; }
.method p { margin: 0; font-size: 17px; color: var(--ink-2); }

/* routing */
.strategies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.strategy { padding: 16px 20px 16px 0; }
.strategy + .strategy { padding-left: 20px; border-left: 1px solid var(--rule); }
.strategy .name { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--muted); }
.strategy.ours .name { color: var(--accent); }
.strategy b { display: block; font-size: 44px; font-weight: 500; line-height: 1.1; margin: 6px 0; font-variant-numeric: lining-nums tabular-nums; }
.strategy.ours b { color: var(--accent); }
.strategy p { margin: 0; font-size: 16px; color: var(--ink-2); }
.strategy-note { grid-column: 1 / -1; margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--muted); }
.aside { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 28px; }
.aside summary { cursor: pointer; font-style: italic; color: var(--ink-2); }
.aside ul { margin: 10px 0; padding-left: 20px; font-size: 17px; color: var(--ink-2); }
.aside p { margin: 0 0 6px; font-size: 17px; color: var(--ink-2); }
.bar { display: inline-block; height: 6px; background: var(--accent); vertical-align: middle; margin-right: 8px; }

/* tables (booktabs) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; border-top: 2px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); }
th { color: var(--ink); text-align: left; padding: 10px 12px 8px 0; border-bottom: 1px solid var(--rule-strong); font-size: 11px; white-space: nowrap; }
td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td code { font-size: 12.5px; }
tr.off td { color: var(--muted); }

/* calculator */
.calc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.calc-inputs { display: flex; flex-direction: column; gap: 16px; border-top: 2px solid var(--rule-strong); padding-top: 16px; }
.calc-results { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2); }
label small { font-weight: 400; font-size: 12px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input { font-family: var(--sans); font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0; padding: 6px 0; width: 100%; min-width: 0; }
input:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="search"] { border: 1px solid var(--rule); border-radius: 3px; padding: 7px 10px; background: var(--paper); }
input[type="search"]:focus { border: 1px solid var(--accent); padding: 7px 10px; }
.advanced summary { cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.stat { padding: 14px 16px 14px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--rule); }
.stat b { display: block; font-size: 32px; font-weight: 500; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.stat.main b { color: var(--accent); }
.stat span { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.path { margin: 0; padding-left: 24px; font-size: 17px; color: var(--ink-2); }
.path li { margin: 4px 0; padding-left: 4px; }
.path b { color: var(--ink); font-weight: 600; }

/* questions */
.faq { border-top: 2px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-size: 21px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }

.footer { margin-top: 56px; border-top: 3px double var(--rule-strong); padding: 26px 0 48px; color: var(--muted); font-family: var(--sans); font-size: 13px; }
.footer p { margin: 0; max-width: 760px; line-height: 1.6; }

@media (max-width: 900px) {
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method li:nth-child(3) { padding-left: 0; border-left: 0; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .masthead nav { display: none; }
  .wordmark { font-size: 30px; }
  .lead { padding: 36px 0 32px; }
  .standfirst { font-size: 19px; }
  h2 { font-size: 30px; }
  .problem { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .problem-no { display: flex; align-items: baseline; gap: 10px; font-size: 24px; }
  .problem-no small { margin: 0; }
  .method, .strategies { grid-template-columns: minmax(0, 1fr); }
  .method li, .method li + li, .strategy, .strategy + .strategy { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .search, .search input { width: 100%; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}

/* account */
.btn { font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 3px; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: #fff; }
.btn.small { padding: 6px 12px; font-size: 12.5px; letter-spacing: 0.02em; }
.masthead-top .btn.small { margin-left: 8px; }
.account { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding-bottom: 48px; }
.acct-panel { border-top: 2px solid var(--rule-strong); padding-top: 18px; }
.acct-intro p { max-width: 720px; }
.acct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.acct-head p { margin: 0; }
.acct-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.acct-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.acct-step:last-child { border-bottom: 0; }
.acct-step-no { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--sans); font-weight: 600; font-size: 14px; }
.acct-step.done .acct-step-no { background: var(--green); border-color: var(--green); color: var(--paper); }
.acct-step h3 { margin-bottom: 4px; }
.acct-step p { margin: 4px 0 8px; font-size: 17px; color: var(--ink-2); }
.inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 6px 0; }
.inline label { width: 170px; }
.fine { font-family: var(--sans); font-size: 13px !important; color: var(--muted) !important; }
.warn { color: var(--amber); font-family: var(--sans); font-size: 14px; }
.ok { color: var(--green); font-weight: 600; }
.notice { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 12px 0 18px; max-width: 760px; }
.notice ul { margin: 6px 0 10px; padding-left: 20px; font-size: 17px; color: var(--ink-2); }
.acct-status { font-family: var(--sans); font-size: 14px; padding: 10px 14px; margin-bottom: 14px; border-left: 3px solid var(--link); background: var(--paper); }
.acct-status.error { border-color: var(--accent); color: var(--accent); }
table.mini { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); margin: 8px 0; font-size: 13px; max-width: 760px; }
table.mini th { font-size: 10.5px; padding: 6px 10px 6px 0; }
table.mini td { padding: 6px 10px 6px 0; white-space: normal; }
details.sub { margin-top: 8px; font-family: var(--sans); font-size: 13.5px; }
details.sub summary { cursor: pointer; color: var(--link); }
@media (max-width: 640px) {
  .masthead-top { align-items: center; }
  .inline label { width: 100%; }
  .acct-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
}

/* lead: CTA, figures line, earn box */
.lead-grid { grid-template-columns: minmax(0, 1fr) 330px; }
.cta { display: flex; align-items: center; gap: 20px; margin: 26px 0 22px; flex-wrap: wrap; }
.cta .btn { font-size: 15px; padding: 12px 22px; text-decoration: none; }
.cta .textbtn { font-size: 15px; }
.figures-line { display: flex; gap: 22px; flex-wrap: wrap; margin: 0; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.figures-line b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); margin-right: 4px; }
.earn { border-top: 2px solid var(--rule-strong); padding-top: 10px; }
.earn-input { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); margin: 8px 0 6px; }
.money { display: inline-flex; align-items: baseline; border-bottom: 2px solid var(--accent); }
.money span { font-size: 22px; }
.money input { width: 90px; border: 0; font-family: var(--serif); font-size: 26px; padding: 0 4px; }
.money input:focus { border: 0; padding: 0 4px; }
.earn dl { margin: 6px 0 0; }
.earn dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.earn dt { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--ink-2); }
.earn dd { margin: 0; font-size: 32px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.earn dl div:last-child dd { color: var(--accent); }
.problem .log a { color: var(--muted); }
@media (max-width: 900px) { .lead-grid { grid-template-columns: minmax(0, 1fr); } }
.lead h1 em { font-style: italic; color: var(--accent); font-weight: 500; }

/* problems: live status and watch button */
.status.working { color: var(--accent); }
.status.working::before { animation: pulse 1.6s ease-in-out infinite; }
.status.verified { color: var(--green); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.problem-no.word { font-size: 18px; line-height: 1.2; word-break: break-word; }
.problem-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.problem-foot .log { margin: 0; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e2513a; margin-right: 7px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
.muted { color: var(--muted); }

/* watch dialog */
.watch { width: min(1100px, 96vw); height: min(90vh, 1000px); padding: 0; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--paper); color: var(--ink);
  display: none; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr); }
.watch[open] { display: grid; }
.watch::backdrop { background: rgba(10, 14, 20, 0.55); }
.watch-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 24px 14px; border-bottom: 2px solid var(--rule-strong); }
.watch-head h2 { font-size: 26px; margin: 2px 0 4px; font-family: var(--mono); font-weight: 500; letter-spacing: 0; word-break: break-word; }
.watch-meta { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.watch-body { overflow-y: auto; padding: 18px 24px 40px; }
.watch-side { overflow-y: auto; padding: 18px 18px 30px; border-left: 1px solid var(--rule); background: var(--paper-2); font-family: var(--sans); font-size: 13px; grid-column: 2; grid-row: 2; }
.watch-side details { margin-bottom: 14px; }
.watch-side summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
.watch-side .logtext p { font-size: 13px; }
.supporters { list-style: none; padding: 0; margin: 0; }
.supporters li { padding: 3px 0; }
.supporters .you, .supported.you { color: var(--accent); font-weight: 600; }
.statement { margin-bottom: 18px; }
pre.code { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; background: var(--code-bg); border-left: 3px solid var(--rule); padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }
.turn { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.turn p { margin: 6px 0; font-size: 16.5px; }
.turn-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-family: var(--sans); font-size: 12.5px; margin-bottom: 4px; }
.turn-meta .model { font-weight: 600; color: var(--ink); }
.supported { margin-left: auto; font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; background: var(--paper-2); }
.supported.you { border-color: var(--accent); }
.call { margin: 10px 0 4px; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 12px; background: var(--paper); }
.call-head { font-family: var(--sans); font-size: 12.5px; }
.tool-name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--accent); margin-right: 6px; }
.call-result { font-family: var(--sans); font-size: 12.5px; }
.res summary { cursor: pointer; color: var(--muted); }
.res.ok summary { color: var(--green); }
.res.bad summary { color: var(--amber); }
.nudge { font-family: var(--sans); font-size: 12px; color: var(--muted); font-style: italic; margin: 8px 0; }
@media (max-width: 800px) {
  .watch { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .watch-side { grid-column: 1; grid-row: 2; max-height: 30vh; border-left: 0; border-bottom: 1px solid var(--rule); }
  .watch-body { grid-row: 3; padding: 14px 16px 30px; }
  .supported { margin-left: 0; }
}

.problem h3.title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.lean-name { margin: 0 0 8px; font-size: 13px; }
.watch-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; }

.problem-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-btn.on { background: var(--green); border-color: var(--green); color: var(--paper); }
.back-btn.on:hover { background: var(--accent); border-color: var(--accent); }
