/* clef-tune: Japandi tan and green. Cream page, sage for what the model learns and the main
   action, oak for what it reads; hairlines instead of boxes; gentle motion. Light by default,
   dark only when chosen (html[data-theme="dark"]). */

:root {
  --page: #F7F2EA; --field: #FBF8F3; --ink: #33302A; --muted: #665E52;
  --line: #DDD0BC; --line-soft: #E8DFD1;
  --sage: #5C7A64; --sage-ink: #48644F; --sage-wash: #E9EDE3;
  --oak: #A88B66; --oak-ink: #5E4E38; --oak-wash: #F0E6D6;
  --rust: #A4573A; --skip: #A39A8C; --on-sage: #F7F2EA;
  --shadow: rgba(60, 45, 25, .28); --scrim: rgba(40, 32, 22, .32);
  --s1: #5C7A64; --s2: #A88B66; --s3: #C9BBA4; --s4: #8E9C86;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
html[data-theme="dark"] {
  --page: #23211D; --field: #2A2723; --ink: #ECE5D8; --muted: #A79E8F;
  --line: #3A362F; --line-soft: #312E28;
  --sage: #9DB89F; --sage-ink: #A9C4AB; --sage-wash: #2B302A;
  --oak: #C9A982; --oak-ink: #D7BD99; --oak-wash: #332D24;
  --rust: #D9896B; --skip: #7C7569; --on-sage: #23211D;
  --shadow: rgba(0, 0, 0, .5); --scrim: rgba(0, 0, 0, .5);
  --s1: #9DB89F; --s2: #C9A982; --s3: #5E574B; --s4: #6F7D69;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400; font-size: 14px; line-height: 1.55;
  transition: background-color .5s ease, color .5s ease;
}
a { color: var(--sage-ink); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-bottom-color: var(--sage); }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, .mono { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-variant-ligatures: none; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 22px 32px 48px; }
.page-wide .wrap { max-width: 1120px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.brand { display: flex; align-items: center; gap: 10px; border: 0; color: var(--ink); }
.brand:hover { border: 0; }
.mark { width: 13px; height: 13px; border: 1.5px solid var(--sage); transform: rotate(45deg); flex: none; }
.brand b { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 12.5px; }
.top .who { color: var(--muted); }
.top .own-tab { color: var(--muted); border-bottom-color: var(--line-soft); }
.top .own-tab:hover { color: var(--sage-ink); border-bottom-color: var(--sage); }
.top .own-tab[hidden] { display: none; }
.top .own-tab .narrow { display: none; }
.brand b { white-space: nowrap; }
.theme-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme-toggle::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1px solid var(--ink); }

/* ---------- step bar ---------- */
.steps { display: flex; margin: 20px 0 0; padding: 0; list-style: none; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.steps li { flex: 1; border-bottom: 1px solid var(--line); }
.steps a, .steps span.step { display: block; padding: 0 0 8px; border: 0; color: inherit; }
.steps .n { display: block; font-size: 10px; margin-bottom: 1px; }
.steps .done .n::after { content: " ✓"; color: var(--sage-ink); }
.steps .now { color: var(--ink); border-bottom: 2px solid var(--sage); }
.steps .locked { opacity: .55; }
.now-dot { position: relative; padding-left: 11px; }
.now-dot::before, .now-dot::after { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--sage); }
.now-dot::after { animation: breathe 3.2s ease-in-out infinite; }
.msteps { display: none; margin-top: 16px; }
.msteps .segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.msteps .segs i { height: 2px; background: var(--line); }
.msteps .segs i.on { background: var(--sage); }
.msteps .cap { display: block; font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-top: 7px; }
.msteps .cap b { color: var(--ink); font-weight: 500; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 300; letter-spacing: .02em; margin: 0; }
.title { font-size: 23px; margin: 28px 0 8px; }
.rule { height: 1px; width: 48px; background: var(--oak); margin: 0 0 12px; }
.lede { margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.section-title { font-size: 17px; margin: 30px 0 6px; }
.sub { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.label { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.meta b, .fine b { font-weight: 500; color: var(--ink); }
.error-box { margin: 14px 0; padding: 12px 14px; border-left: 2px solid var(--rust); background: var(--oak-wash); color: var(--ink); font-size: 13px; max-width: 680px; }
.notice { margin: 14px 0; padding: 12px 14px; border-left: 2px solid var(--oak); background: var(--oak-wash); font-size: 13px; max-width: 680px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; letter-spacing: .05em; padding: 9px 20px; border-radius: 2px; cursor: pointer; border: 1px solid var(--sage); background: var(--page); color: var(--sage-ink); transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease; text-decoration: none; }
.btn:hover { background: var(--sage); color: var(--on-sage); transform: translateY(-1px); border-bottom-color: var(--sage); }
.btn.primary { background: var(--sage); color: var(--on-sage); padding: 12px 26px; font-size: 14.5px; }
.btn.primary:hover { box-shadow: 0 8px 18px -10px var(--shadow); }
.btn[disabled], .btn.primary[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.danger { border-color: var(--rust); color: var(--rust); }
.btn.danger:hover { background: var(--rust); color: var(--page); }
.linkbtn { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 2px 0; color: var(--sage-ink); cursor: pointer; font-size: 12.5px; }
.linkbtn:hover { border-bottom-color: var(--sage); }
.linkbtn.quiet { color: var(--muted); }
.linkbtn.quiet:hover { color: var(--rust); border-bottom-color: var(--rust); }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 9px 0; font-size: 13px; }
.back:hover { color: var(--ink); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }

/* ---------- editable words ---------- */
.word { font: inherit; font-weight: 400; color: var(--sage-ink); background: none; border: 0; border-bottom: 1px dashed var(--sage); border-radius: 0; padding: 0 2px 1px; outline: none; cursor: pointer; transition: border-color .3s ease, background-color .3s ease; }
.word:hover { border-bottom-style: solid; }
.word:focus { cursor: text; border-bottom-style: solid; background: var(--sage-wash); }
.pen { font-size: 13px; color: var(--sage-ink); margin-left: -4px; opacity: 0; transform: translateX(-3px); transition: opacity .3s ease, transform .3s ease; }
.editable:hover .pen, .editable:focus-within .pen { opacity: 1; transform: none; }
@media (hover: none) { .pen { opacity: 1; transform: none; } }

/* ---------- data step ---------- */
.drop { display: block; border: 1.5px dashed var(--oak); border-radius: 4px; padding: 44px 20px; text-align: center; transition: background-color .4s ease, border-color .4s ease; cursor: pointer; }
.drop:hover, .drop.over { background: var(--oak-wash); border-color: var(--oak-ink); }
.drop .file-glyph { display: block; width: 34px; height: 40px; margin: 0 auto 14px; animation: float 4s ease-in-out infinite; }
.drop b { display: block; font-size: 16px; font-weight: 400; }
.drop u { color: var(--sage-ink); text-decoration: none; border-bottom: 1px solid var(--sage); }
.drop small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.drop .choose { display: none; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.samples-line { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.samples-line form { display: inline; }
.file-glyph { display: inline-block; width: 22px; height: 26px; border: 1.3px solid var(--oak); border-radius: 2px; position: relative; flex: none; }
.file-glyph::after { content: ""; position: absolute; left: 22%; right: 22%; top: 30%; height: 35%; border-top: 1.3px solid var(--oak); border-bottom: 1.3px solid var(--oak); }
.filebar { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); }
.filebar .fn { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.filebar .fm { font-size: 12px; color: var(--muted); }
.filebar .replace { margin-left: auto; }
.filebar .file-acts { margin-left: auto; display: flex; gap: 16px; flex: none; }
.noun-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 14px 0 4px; font-size: 17px; font-weight: 300; }
.noun-line .word { font-size: 17px; width: 7ch; }
.guess { font-size: 11px; color: var(--oak-ink); }

.tbl { overflow-x: auto; border-top: 1px solid var(--line); max-width: 100%; }
table.grid { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
table.grid th { text-align: left; font-weight: 500; font-size: 12px; padding: 9px 14px 7px 0; white-space: nowrap; border-bottom: 2px solid var(--line-soft); }
table.grid td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
table.grid th.r-state, table.grid th.r-image { border-bottom-color: var(--oak); }
table.grid th.r-question { border-bottom-color: var(--sage); color: var(--sage-ink); }
table.grid td.r-question { color: var(--sage-ink); }
table.grid th.r-id, table.grid td.r-id, table.grid th.r-skip, table.grid td.r-skip { color: var(--muted); }
table.grid th.added { border-bottom-color: var(--sage); color: var(--sage-ink); }
table.grid td.added { color: var(--sage-ink); }
table.grid td .pc { color: var(--muted); font-size: 11px; margin-left: 6px; }
table.grid td .pc.low { color: var(--oak-ink); font-weight: 500; }
table.grid td.flag { color: var(--oak-ink); font-size: 11.5px; }
.tblfoot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding: 8px 0 0; }
.rowcard { display: none; border-top: 1px solid var(--line); }
.rowcard .kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.rowcard .k { font-size: 11px; color: var(--muted); padding-top: 2px; overflow-wrap: anywhere; }
.rowcard .k.r-question, .rowcard .v.r-question { color: var(--sage-ink); }
.rowcard .v { overflow-wrap: anywhere; }
.pager { display: none; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 10px 0 0; }
.pager button { font-size: 18px; color: var(--sage-ink); background: none; border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; }

.cols { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cols > li { border-bottom: 1px solid var(--line-soft); padding: 10px 0; position: relative; }
.cols .r { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cols .col { display: block; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.cols .eg { display: block; font-size: 12px; margin-top: 2px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.tag { font-size: 12px; white-space: nowrap; background: none; border: 0; padding: 8px 0 8px 15px; position: relative; letter-spacing: .02em; cursor: pointer; color: var(--ink); }
.tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -4.5px; border-radius: 50%; box-sizing: border-box; transition: background-color .45s ease, border-color .45s ease; }
.tag.chev::after { content: " ▾"; font-size: 9px; color: var(--muted); }
.tag.r-state { color: var(--oak-ink); } .tag.r-state::before { border: 1.5px solid var(--oak); }
.tag.r-question { color: var(--sage-ink); font-weight: 500; } .tag.r-question::before { background: var(--sage); border: 1.5px solid var(--sage); }
.tag.r-image { color: var(--oak-ink); } .tag.r-image::before { border: 1.5px solid var(--oak); border-radius: 1px; }
.tag.r-id { color: var(--muted); } .tag.r-id::before { border: 1.5px solid var(--muted); width: 5px; height: 5px; margin-top: -3.5px; }
.tag.r-skip { color: var(--muted); } .tag.r-skip::before { border: 1.5px dashed var(--skip); }
.tag.pop { animation: pop .4s ease; }
.flag { display: flex; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--oak-ink); margin: 6px 0 0; }
.flag::before { content: "!"; flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1.3px solid var(--oak); font-size: 9.5px; font-weight: 500; display: grid; place-items: center; margin-top: 1px; }

.checks { margin-top: 26px; max-width: 700px; }
.checks .ch { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; padding: 6px 0; }
.checks .ch::before { flex: none; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; display: grid; place-items: center; margin-top: 1px; }
.checks .ok::before { content: "✓"; color: var(--sage-ink); border: 1.3px solid var(--sage); }
.checks .warn::before { content: "!"; color: var(--oak-ink); border: 1.3px solid var(--oak); font-weight: 500; }
.checks .err::before { content: "×"; color: var(--rust); border: 1.3px solid var(--rust); }
.checks .info::before { content: "i"; color: var(--muted); border: 1.3px solid var(--line); font-style: italic; }
.checks .err { color: var(--rust); }
.checks small { display: block; font-size: 11.5px; color: var(--muted); }
details.more { margin-top: 10px; font-size: 12.5px; }
details.more summary { cursor: pointer; color: var(--sage-ink); list-style: none; width: fit-content; border-bottom: 1px solid var(--line); }
details.more summary::-webkit-details-marker { display: none; }

/* ---------- popovers and sheets ---------- */
.pop-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 2px); z-index: 20; width: min(340px, 90vw); background: var(--field); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 40px -18px var(--shadow); padding: 6px 0; animation: rise .3s var(--ease) both; }
.menu.left { left: 0; right: auto; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; cursor: pointer; line-height: 1.35; color: var(--ink); background: none; border: 0; width: 100%; text-align: left; transition: background-color .25s ease; }
.opt:hover, .opt:focus-visible { background: var(--sage-wash); outline: none; }
.opt .ot { flex: 1; }
.opt b { display: block; font-size: 14px; font-weight: 500; }
.opt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.opt .oc { display: block; font-size: 12px; color: var(--ink); margin-top: 4px; }
.opt .recd { font-size: 10.5px; font-weight: 400; color: var(--sage-ink); margin-left: 6px; }
a.opt { border: 0; }
.opt .ext { font-size: 11.5px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.opt .rad { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; }
.opt.on .rad { border-color: var(--sage); }
.opt.on .rad::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--sage); }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-wrap .scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .35s ease; }
.sheet-wrap .sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto; background: var(--field); border-radius: 20px 20px 0 0; padding: 8px 6px 22px; transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 30px -18px var(--shadow); }
.sheet-wrap.show { pointer-events: auto; }
.sheet-wrap.show .scrim { opacity: 1; }
.sheet-wrap.show .sheet { transform: none; }
.sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 12px; }
.sheet h6 { margin: 0 14px 6px; font-size: 10px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-wrap { position: fixed; inset: 0; z-index: 50; display: none; }
.panel-wrap.show { display: block; }
.panel-wrap .scrim { position: absolute; inset: 0; background: var(--scrim); }
.panel-wrap .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(720px, 100vw); background: var(--page); padding: 22px 28px; overflow-y: auto; box-shadow: -10px 0 30px -18px var(--shadow); animation: slidein .45s var(--ease) both; }

/* ---------- what to predict ---------- */
.rolesline { font-size: 13px; color: var(--muted); padding: 10px 0 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.rolesline b { font-weight: 500; color: var(--ink); }
.split2 { display: grid; grid-template-columns: 170px 1fr; gap: 30px; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist a { display: block; padding: 10px 0 10px 12px; border: 0; border-left: 2px solid var(--line-soft); color: var(--ink); transition: border-color .4s ease; }
.qlist a:hover { border-left-color: var(--line); }
.qlist a.on { border-left-color: var(--sage); }
.qlist .num { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.qlist .nm { display: block; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.qlist .ask { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.qswitch { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.qswitch a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; }
.qswitch .cur { text-align: center; }
.qswitch .cur b { display: block; color: var(--ink); font-weight: 500; }
.info-tip { position: relative; display: inline-flex; }
.info-tip button { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); background: none; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1; padding: 0; cursor: help; display: grid; place-items: center; transition: color .3s ease, border-color .3s ease; }
.info-tip button:hover, .info-tip button:focus-visible { color: var(--sage-ink); border-color: var(--sage); outline: none; }
.tip { position: absolute; left: -12px; top: calc(100% + 10px); z-index: 15; width: min(300px, 80vw); background: var(--ink); color: var(--page); border-radius: 4px; padding: 12px 14px; font-size: 12.5px; line-height: 1.55; letter-spacing: 0; text-transform: none; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; box-shadow: 0 10px 30px -12px var(--shadow); }
.tip::before { content: ""; position: absolute; left: 15px; top: -5px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.tip b { font-weight: 500; }
/* A tip opens on hover and on keyboard focus, never sticks open after a mouse click, and on a
   touch screen opens with a tap (.open, set by clef-tune.js). */
.info-tip:has(:focus-visible) .tip, .info-tip.open .tip { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .info-tip:hover .tip { opacity: 1; transform: none; pointer-events: auto; } }
.tip::after { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* a bridge, so the pointer can reach a link in the tip */
.tip a { color: var(--page); border-bottom-color: currentColor; }
.info-tip button.term { display: inline; width: auto; height: auto; padding: 0; border: 0; border-bottom: 1px dotted var(--sage); border-radius: 0; font: inherit; color: inherit; cursor: help; }
.info-tip button.term:hover, .info-tip button.term:focus-visible { color: var(--sage-ink); border-bottom-style: solid; }
.ask-box { display: block; width: 100%; min-height: 92px; resize: vertical; font-size: 19px; font-weight: 300; line-height: 1.5; background: var(--field); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; margin: 0 0 6px; outline: none; transition: border-color .35s ease, box-shadow .35s ease; }
.ask-box:hover { border-color: var(--oak); }
.ask-box:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-wash); }
.askmeta { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); margin: 0 0 22px; }
.kinds { display: flex; gap: 24px; margin: 0 0 22px; flex-wrap: wrap; }
.kinds button { font-size: 13px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 3px 0 5px; cursor: pointer; text-align: left; transition: color .4s ease, border-color .4s ease; }
.kinds button:hover { color: var(--ink); }
.kinds button.on { color: var(--ink); border-bottom-color: var(--sage); }
.kinds small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.answers { display: grid; grid-template-columns: minmax(80px, auto) 1fr 112px; }
.answers > div { padding: 9px 18px 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; min-width: 0; }
.answers > div:nth-child(3n) { padding-right: 0; }
.answers .head { padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.answers .val { font-weight: 500; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; }
.answers .val .ord { display: inline-flex; flex-direction: column; }
.answers .val .ord button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 10px; line-height: 1; padding: 1px 3px; }
.answers .val .ord button:hover { color: var(--sage-ink); }
.desc-in { width: 100%; background: none; border: 0; border-bottom: 1px solid transparent; padding: 2px 0; font-size: 13px; outline: none; transition: background-color .3s ease, border-color .3s ease; border-radius: 2px; }
.desc-in:hover { background: var(--sage-wash); }
.desc-in:focus { background: var(--sage-wash); border-bottom-color: var(--sage); }
.desc-in::placeholder { color: var(--muted); font-style: italic; }
.answers .n { text-align: right; color: var(--muted); }
.bar { display: block; height: 3px; background: var(--line-soft); margin-top: 6px; border-radius: 2px; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--sage); transform-origin: left; animation: grow .9s var(--ease) both .2s; }
.hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.prompt { white-space: pre-wrap; font-size: 12px; line-height: 1.6; background: var(--field); border: 1px solid var(--line-soft); border-radius: 3px; padding: 14px; overflow-x: auto; }
.prompt .k-state { background: var(--oak-wash); }
.prompt .k-question { color: var(--sage-ink); font-weight: 600; }
.prompt .k-option { color: var(--sage-ink); }
.prompt .k-prefix, .prompt .k-suffix, .prompt .k-schema { color: var(--muted); }

/* ---------- settings ---------- */
.srows { border-top: 1px solid var(--line); max-width: 680px; }
.srow { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); position: relative; }
.srow.click { cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: var(--ink); }
.srow.click:hover { background: linear-gradient(to right, transparent, var(--sage-wash) 30%, transparent); }
.srow .sk { width: 92px; flex: none; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.srow .sv { flex: 1; font-size: 15px; min-width: 0; }
.srow .sv small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.srow .chv { color: var(--sage-ink); font-size: 18px; transition: transform .35s ease; }
.srow[aria-expanded="true"] .chv { transform: rotate(90deg); }
.srow .sinput { flex: 1; min-width: 0; font-size: 15px; background: none; border: 0; border-bottom: 1px dashed var(--line); padding: 4px 0; outline: none; }
.srow .sinput:focus { border-bottom: 1px solid var(--sage); }
.srow-menu { position: relative; }
.srow-menu .menu { left: 106px; right: auto; top: calc(100% - 4px); }
.est { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; padding: 20px 0 4px; }
.est .big { font-size: 26px; font-weight: 300; letter-spacing: .01em; }
.est .big small { font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.swap-in { animation: rise .55s var(--ease) backwards; }
.fine { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 6px 0 0; max-width: 660px; }
.holdout { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); max-width: 660px; }
.holdout::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; border: 1.5px solid var(--oak); }
.holdout .word { font-size: 12.5px; text-align: center; }
.holdout .info-tip { vertical-align: -3px; margin-left: 2px; }
.holdout .err { display: block; font-size: 12px; color: var(--rust); margin-top: 4px; }
.nowrap { white-space: nowrap; }
details.adv { margin-top: 20px; border-top: 1px solid var(--line-soft); max-width: 760px; }
details.adv > summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-size: 13.5px; list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary span { color: var(--muted); font-size: 12px; }
details.adv > summary span::after { content: "›"; display: inline-block; margin-left: 8px; color: var(--sage-ink); transition: transform .4s ease; }
details.adv[open] > summary span::after { transform: rotate(90deg); }
.setting { display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; padding: 10px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.setting .sl { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }
.setting .sl code { font-size: 10.5px; color: var(--muted); }
.setting .sd { grid-column: 1; font-size: 11.5px; color: var(--muted); }
.setting .sd:last-child, .setting .sd:has(+ .err) { grid-column: 1 / -1; }
.setting .range { grid-column: 2; justify-self: end; font-size: 11.5px; color: var(--oak-ink); white-space: nowrap; }
.setting input, .setting select { justify-self: end; width: 130px; background: var(--field); border: 1px solid var(--line); border-radius: 2px; padding: 5px 8px; font-size: 13px; }
.setting input[type=checkbox] { width: auto; }
.setting .err { grid-column: 1 / -1; font-size: 12px; color: var(--rust); }

/* ---------- train ---------- */
.signin { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); max-width: 680px; font-size: 13.5px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--oak-wash); border: 1px solid var(--oak); display: grid; place-items: center; font-size: 12px; color: var(--oak-ink); flex: none; }
.signin small { display: block; font-size: 11.5px; color: var(--muted); }
.signin .end { margin-left: auto; }
.start { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.start small { font-size: 12px; color: var(--muted); }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-top: 14px; }
.check-line input { width: 16px; height: 16px; accent-color: var(--sage); }
.left { font-size: 28px; font-weight: 300; margin: 2px 0 2px; }
.eta { font-size: 13px; color: var(--muted); }
.progress { position: relative; height: 3px; background: var(--line-soft); margin: 18px 0 6px; border-radius: 2px; max-width: 680px; }
.progress .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sage); border-radius: 2px; transition: width 1.4s var(--ease); }
.progress .head { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--sage); transition: left 1.4s var(--ease); }
.progress .head::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sage); animation: breathe 3.2s ease-in-out infinite; }
.progcap { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); max-width: 680px; }
.stages { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 680px; }
.stages li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.stages li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; border: 1.4px solid var(--line); box-sizing: border-box; }
.stages li.done { color: var(--ink); }
.stages li.done::before { background: var(--sage); border-color: var(--sage); }
.stages li.now { color: var(--ink); font-weight: 500; }
.stages li.now::before { border-color: var(--sage); animation: ring 2.4s ease-out infinite; }
.stages li.stopped { color: var(--rust); }
.stages li.stopped::before { border-color: var(--rust); }
.stages small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.safe { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; background: var(--sage-wash); border-radius: 3px; font-size: 13px; line-height: 1.6; max-width: 680px; }
.safe::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--sage); }
.safe b { font-weight: 500; }
.acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; background: none; border: 0; color: var(--ink); padding: 6px 0; }
.switch .sw { width: 30px; height: 17px; border-radius: 99px; background: var(--line); position: relative; transition: background-color .35s ease; }
.switch .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--page); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.switch[aria-pressed="true"] .sw { background: var(--sage); }
.switch[aria-pressed="true"] .sw::after { transform: translateX(13px); }
.confirm { margin-top: 12px; font-size: 12.5px; line-height: 1.6; max-width: 620px; }
.confirm[hidden] { display: none; }
.confirm .btn { margin: 8px 10px 0 0; padding: 6px 14px; font-size: 12.5px; }
details.curve { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 12px; max-width: 680px; }
details.curve summary { font-size: 12.5px; color: var(--sage-ink); cursor: pointer; list-style: none; }
details.curve svg { width: 100%; height: 90px; margin-top: 10px; }
details.curve p { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }

/* ---------- results ---------- */
.hero-line { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; }
.tick { flex: none; width: 30px; height: 30px; }
.tick circle { fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-dasharray: 88; animation: draw88 1.1s cubic-bezier(.6, 0, .2, 1) both .2s; }
.tick path { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; animation: draw20 .6s ease both 1.1s; }
.headline { padding: 0 0 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.big-sentence { font-size: 22px; font-weight: 300; line-height: 1.45; margin: 0 0 16px; max-width: 640px; }
.big-sentence b, .summary b { font-weight: 500; }
.big-sentence b { color: var(--sage-ink); }
.dots { display: grid; grid-template-columns: 60px 1fr; gap: 8px 12px; align-items: center; }
.dots .dl { font-size: 11px; color: var(--muted); }
.dots .dg { display: flex; flex-wrap: wrap; gap: 5px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.3px solid var(--line); box-sizing: border-box; }
.dots .before i.y { border-color: var(--oak); background: var(--oak); }
.dots .after i.y { border-color: var(--sage); background: var(--sage); }
.dots i.y { animation: fillin .45s ease both; animation-delay: calc(var(--k) * 35ms + 500ms); }
.dots .dn { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.qres { padding: 18px 0 16px; border-bottom: 1px solid var(--line-soft); }
.qres .qq { font-size: 15.5px; margin: 0 0 2px; }
.qres .qid { font-size: 11px; color: var(--muted); }
.dumb { position: relative; height: 34px; margin: 14px 0 4px; }
.dumb .axis { position: absolute; left: 0; right: 0; top: 16px; height: 1px; background: var(--line-soft); }
.dumb .span { position: absolute; top: 15px; height: 3px; background: linear-gradient(to right, var(--oak), var(--sage)); border-radius: 2px; transform-origin: left; animation: grow 1.1s var(--ease) both .4s; }
.dumb .pt { position: absolute; top: 10px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; box-sizing: border-box; }
.dumb .pt.b { border: 2px solid var(--oak); background: var(--page); }
.dumb .pt.a { background: var(--sage); animation: slide 1.1s var(--ease) both .4s; }
.dumb .lab { position: absolute; top: -6px; font-size: 11px; transform: translateX(-50%); white-space: nowrap; }
.dumb .lab.b { color: var(--oak-ink); }
.dumb .lab.a { color: var(--sage-ink); font-weight: 500; animation: fadein .5s ease both 1.2s; }
.score { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.score b { font-weight: 500; color: var(--ink); }
.summary { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; margin: 10px 0 0; }
.summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; border: 1.5px solid var(--oak); }
table.cm { border-collapse: collapse; font-size: 12px; margin: 14px 0 8px; }
table.cm th { font-weight: 400; color: var(--muted); font-size: 10.5px; letter-spacing: .04em; padding: 4px 10px; text-align: center; }
table.cm th.rowh { text-align: right; }
table.cm td { width: 44px; height: 30px; text-align: center; border: 1px solid var(--page); }
table.cm td.hit { background: var(--sage-wash); color: var(--sage-ink); font-weight: 500; }
table.cm td.miss { background: var(--oak-wash); color: var(--oak-ink); font-weight: 500; }
table.cm td.zero { color: var(--line); }
.cmcap { font-size: 11px; color: var(--muted); }
.tech { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin: 8px 0 4px; }
.runline { font-size: 12.5px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.runline b { font-weight: 500; color: var(--ink); }
.next { margin-top: 22px; }
.nextrow { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.nextrow:hover { border-bottom-color: var(--line-soft); background: linear-gradient(to right, transparent, var(--sage-wash) 30%, transparent); }
.nextrow .nt { flex: 1; font-size: 14.5px; }
.nextrow .nt small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.nextrow .chv { color: var(--sage-ink); font-size: 18px; }
pre.snippet { font-size: 12px; background: var(--field); border: 1px solid var(--line-soft); border-radius: 3px; padding: 12px 14px; overflow-x: auto; }
.repo { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.repo b { font-weight: 500; color: var(--ink); }

/* ---------- your models ---------- */
.mlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 760px; }
.mlist a { display: flex; align-items: center; gap: 14px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mlist a:hover { background: linear-gradient(to right, transparent, var(--sage-wash) 30%, transparent); }
.mlist .mt { flex: 1; min-width: 0; }
.mlist .mn { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.mlist small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.mlist .ms { font-size: 11.5px; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mlist .ms::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.mlist .s-running { color: var(--sage-ink); } .mlist .s-running::before { background: var(--sage); animation: ring 2.4s ease-out infinite; }
.mlist .s-done { color: var(--sage-ink); } .mlist .s-done::before { background: var(--sage); }
.mlist .s-stopped { color: var(--muted); } .mlist .s-stopped::before { border: 1.3px solid var(--muted); }
.mlist .s-failed { color: var(--rust); } .mlist .s-failed::before { border: 1.3px solid var(--rust); }
.mlist .chv { color: var(--sage-ink); font-size: 18px; }
.empty { padding: 26px 0; color: var(--muted); font-size: 13.5px; }

/* ---------- predict ---------- */
.crumb { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
.review-line { font-size: 16px; font-weight: 300; line-height: 1.7; margin: 22px 0 0; max-width: 680px; }
.review-line .word { width: 3.4ch; text-align: center; }
.review-line small { display: block; font-size: 12px; color: var(--muted); }
.map { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; padding: 6px 0; }
.map select { background: var(--field); border: 1px solid var(--line); border-radius: 2px; padding: 5px 8px; }
.dl { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 4px 0 6px; position: relative; z-index: 25; }
.flagged { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; margin: 18px 0 0; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); max-width: 680px; }
.flagged::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.3px solid var(--oak); color: var(--oak-ink); font-size: 10px; font-weight: 500; display: grid; place-items: center; margin-top: 2px; }
.flagged small { display: block; font-size: 12px; color: var(--muted); }
.dq { padding: 12px 0; border-bottom: 1px solid var(--line-soft); max-width: 680px; }
.dq .qq { font-size: 14px; margin-bottom: 8px; }
.stack { display: flex; height: 8px; border-radius: 2px; overflow: hidden; gap: 2px; }
.stack i { display: block; height: 100%; transform-origin: left; animation: grow 1s var(--ease) both; }
.stack i:nth-child(4n+1) { background: var(--s1); } .stack i:nth-child(4n+2) { background: var(--s2); animation-delay: .1s; }
.stack i:nth-child(4n+3) { background: var(--s3); animation-delay: .2s; } .stack i:nth-child(4n+4) { background: var(--s4); animation-delay: .3s; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin-top: 7px; list-style: none; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--s1); }
.legend li:nth-child(4n+2)::before { background: var(--s2); } .legend li:nth-child(4n+3)::before { background: var(--s3); } .legend li:nth-child(4n+4)::before { background: var(--s4); }
.legend b { font-weight: 500; color: var(--ink); }
.pcards { display: none; border-top: 1px solid var(--line); }
.pcard { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.pcard .ps { font-weight: 500; margin-bottom: 6px; }
.pcard .pa { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.pcard .pa span:first-child { color: var(--muted); font-size: 12px; }
.pcard .pa span:last-child { color: var(--sage-ink); }

/* ---------- welcome ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 56px 0 40px; border-bottom: 1px solid var(--line-soft); }
.kicker { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--oak-ink); margin: 0 0 14px; }
.hero h1 { font-size: 42px; line-height: 1.2; margin: 0 0 16px; letter-spacing: .005em; }
.hero h1 em, .wb h1 em { font-style: normal; color: var(--sage-ink); }
.hero .rule { width: 56px; margin-bottom: 16px; }
.hero .lede { font-size: 14.5px; line-height: 1.7; max-width: 470px; margin-bottom: 26px; }
.hero .samples { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.8; }
.hero .samples form { display: inline; }
.note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.ill { height: 230px; }
.ill svg { width: 100%; height: 100%; overflow: visible; }
.ill .ln { stroke: var(--line); stroke-width: 1; fill: none; }
.ill .sheetg rect { fill: var(--field); stroke: var(--oak); stroke-width: 1.2; }
.ill .sheetg line { stroke: var(--oak); stroke-width: 1; opacity: .7; }
.ill .sheetg .ok { fill: var(--sage); }
.ill .dia { fill: var(--page); stroke: var(--sage); stroke-width: 1.5; }
.ill .halo { fill: none; stroke: var(--sage); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: halo 3.6s ease-in-out infinite; }
.ill .outg circle { fill: var(--sage); }
.ill .outg .bg { fill: var(--sage-wash); }
.ill .outg .fg { fill: var(--sage); opacity: .55; transform-box: fill-box; transform-origin: left; animation: grow 1.4s var(--ease) both; }
.ill text { font-size: 10px; fill: var(--muted); letter-spacing: .08em; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.how div { padding: 14px 18px 16px 0; }
.how div + div { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.how span { display: block; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.how b { display: block; font-size: 15px; font-weight: 400; margin: 3px 0 4px; }
.how p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.facts div { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.facts div::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; border: 1.4px solid var(--oak); }
.facts b { font-weight: 500; color: var(--ink); display: block; }
.site-foot { margin-top: 34px; font-size: 11.5px; color: var(--muted); }
.wb { padding: 40px 0 12px; }
.wb h1 { font-size: 32px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.9); opacity: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(92, 122, 100, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(92, 122, 100, 0); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.93); } 100% { transform: scale(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw88 { from { stroke-dashoffset: 88; } to { stroke-dashoffset: 0; } }
@keyframes draw20 { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
@keyframes slide { from { left: var(--from); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fillin { from { background: transparent; border-color: var(--line); transform: scale(.6); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.6); opacity: 0; } }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fromRight { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
/* Backwards, not both: a finished rise lets go of its transform, which would otherwise keep each
   section on its own layer, above anything (a tip, a menu) spilling out of the one before it. */
.in { animation: rise .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms + 100ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  .wrap { padding: 16px 18px 120px; }
  .top .right .who { display: none; }
  .top .right { flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
  .top .own-tab .wide { display: none; }
  .top .own-tab .narrow { display: inline; }
  .steps { display: none; }
  .msteps { display: block; }
  .title { font-size: 21px; margin-top: 22px; }
  .drop { padding: 30px 16px; }
  .drop .wide { display: none; }
  .drop .choose { display: inline-flex; margin-top: 14px; }
  .tbl.cards-on-phone { display: none; }
  .rowcard, .pcards { display: block; }
  .pager { display: flex; }
  .tblfoot.cards-on-phone { display: none; }
  .cols .eg { max-width: 170px; }
  .split2 { grid-template-columns: 1fr; gap: 0; }
  .qlist { display: none; }
  .qswitch { display: flex; }
  .answers { grid-template-columns: minmax(64px, auto) 1fr 76px; }
  .srow .sk { width: 72px; }
  .srow-menu .menu { left: 0; }
  .est .big { font-size: 22px; }
  .sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 22px 18px 16px; background: linear-gradient(to bottom, transparent, var(--page) 30%); display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; }
  .sticky .btn { width: 100%; padding: 13px; }
  .sticky .summary-text { display: none; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 28px; }
  .hero h1 { font-size: 30px; }
  .ill { height: 170px; }
  .how, .facts { grid-template-columns: 1fr; }
  .how div, .how div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .big-sentence { font-size: 19px; }
  .left { font-size: 24px; }
  .menu { position: fixed; left: 8px !important; right: 8px !important; top: auto !important; bottom: 8px; width: auto; max-height: 75vh; overflow-y: auto; z-index: 60; }
  /* Tips sit above the bottom of the screen, so one near the edge is never cut off or widens the page. */
  .tip { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; z-index: 70; font-size: 13px; }
  .tip::before, .tip::after { display: none; }
}
