/* parsemo.app components. Tokens live in tokens.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-height: 100dvh; display: flex; flex-direction: column; margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.7 var(--ui); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cobalt-tint); color: var(--ink); }
main { flex: 1 0 auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
/* .btn and other display rules must not override the hidden attribute (the replay's 다시 재생 stays hidden while it plays). */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.br-wide { display: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 251, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 2rem; height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.2rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.mark { width: 1.35rem; height: 1.35rem; border-radius: 4px; background: linear-gradient(var(--cobalt) 0 0) 0 0 / 100% 30% no-repeat, linear-gradient(var(--cobalt) 0 0) 0 50% / 100% 30% no-repeat, linear-gradient(var(--cobalt-tint) 0 0) 0 100% / 100% 30% no-repeat; }
.top-nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .9375rem; font-weight: 500; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a[aria-current="page"] { font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: 0 1.1rem; border: 0; border-radius: 10px; font: 600 .9375rem/1 var(--ui); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-lg { min-height: 3.2rem; padding: 0 1.5rem; font-size: 1.0625rem; border-radius: var(--radius); }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -8px rgba(36, 75, 214, .8); }
.btn-primary:hover { background: var(--cobalt-2); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-white { background: #fff; color: var(--cobalt); }
.btn-white:hover { background: var(--cobalt-soft); }
.btn:active { transform: translateY(1px); }

/* sections */
h1 { font: 800 clamp(2.2rem, 5vw, 4.4rem)/1.18 var(--display); letter-spacing: -.035em; }
.lede { margin: 0; max-width: 38em; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); }
.sec-h { font: 700 clamp(1.7rem, 3.2vw, 2.6rem)/1.25 var(--display); letter-spacing: -.03em; }
.sec-sub { color: var(--ink-2); margin: .75rem 0 0; max-width: 34em; }
.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
p.give { margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); font-weight: 600; }
p.give b { display: block; font-size: .8125rem; font-weight: 700; color: var(--ink-3); }

/* hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* replay window: a recorded run of 주문서 읽기 (order.parsemo.app), drawn by the tool's own renderers (order-view.js).
   The tool's parts (checks, fields, grid, roles) are styled as in parsemo-order base.css and review.css, scoped to .replay. */
.replay { margin: clamp(2.5rem, 6vw, 4rem) 0 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: clip; }
.replay :where(h2, h3, p, ul, ol, dl) { margin: 0; padding: 0; }
.replay :where(ul, ol) { list-style: none; }
.rp-bar { display: flex; align-items: center; gap: .9rem; min-height: 2.75rem; padding: .4rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .8125rem; color: var(--ink-2); }
.rp-url { font-weight: 600; color: var(--ink); }
.rp-title { margin-left: auto; color: var(--ink-3); white-space: nowrap; }
.rp-body { display: grid; grid-template-columns: minmax(19rem, 6fr) minmax(0, 8fr); grid-template-rows: 1fr auto; grid-template-areas: "src review" "meta review"; }
.rp-src, .rp-meta { border-right: 1px solid var(--line); background: var(--surface-2); }
.rp-src { grid-area: src; display: flex; flex-direction: column; gap: 1rem; padding: 0 1.25rem 1.25rem; }
.rp-meta { grid-area: meta; padding: 0 1.25rem 1.25rem; }
.rp-review { grid-area: review; min-width: 0; padding: 0 clamp(1rem, 2.2vw, 1.75rem) 1.5rem; }
.rp-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; min-height: 3.25rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.rp-src .rp-head { margin: 0 -1.25rem; padding-inline: 1.25rem; }
.rp-review > .rp-head { margin: 0 calc(-1 * clamp(1rem, 2.2vw, 1.75rem)) 1.1rem; padding-inline: clamp(1rem, 2.2vw, 1.75rem); }
.rp-head h2 { font: 700 .9375rem/1.3 var(--ui); }
.rp-head > span { font-size: .8125rem; color: var(--ink-3); }
/* the source: a crop of the photo the tool read, linking to the whole photo */
.rp-well { padding: .75rem; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.rp-photo { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); cursor: zoom-in; }
.rp-photo img { display: block; width: 100%; height: auto; }
.rp-rec { display: grid; gap: .3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8125rem; }
.rp-rec div { display: flex; justify-content: space-between; gap: 1rem; }
.rp-rec dt { color: var(--ink-3); }
.rp-rec dd { margin: 0; color: var(--ink); text-align: right; }
/* One row, so 다시 재생 appearing at the end never changes the window's height. */
.rp-act { display: flex; gap: .5rem; margin-top: .6rem; }
.rp-act .btn { flex: 1 1 auto; }
.rp-state { display: flex; }
.rp-state > span { display: none; align-items: center; gap: .4rem; padding: .2rem .6rem; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.rp-state > span::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.rp-state[data-state="wait"] .s-wait, .rp-state[data-state="stream"] .s-stream, .rp-state[data-state="done"] .s-done { display: inline-flex; }
.s-wait::before, .s-stream::before { animation: pulse .8s var(--ease-out) infinite alternate; }
.rp-out { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 1.4rem; }
.rp-cap { margin: 1rem 0 0; max-width: 60em; font-size: .875rem; color: var(--ink-2); }
/* Until replay.js takes over, hold the finished state back briefly; it shows anyway if the script never runs. */
.js .replay:not([data-run]) :is(.rp-out, .rp-state, .roles) { animation: rp-hold 0s 1.2s both; }
@keyframes rp-hold { from { visibility: hidden; } to { visibility: visible; } }
/* Blocks already on screen are marked .still by replay.js and never fade in again (one rule, so no specificity race). */
.replay[data-run="replay"] .rp-out :is(.ck, tr.g-row, .fld-v, .checks .reading):not(.still) { animation: rp-in .4s var(--ease-out) both; }
@keyframes rp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { opacity: .25; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* the tool's parts (checks.js, grid.js), read-only */
.replay .num { font-variant-numeric: tabular-nums; }
.replay .roles { display: flex; flex-wrap: wrap; gap: .3rem; margin-left: auto; }
.replay .role { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.replay .role b { font-weight: 600; font-variant-numeric: tabular-nums; }
.replay .role-ai { background: var(--pink-soft); color: var(--pink); }
.replay .role-rule { background: var(--violet-soft); color: var(--violet); }
.replay .role-human { background: var(--amber-soft); color: var(--amber); }
.replay .reading { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--ink-3); }
.replay .reading::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--pink); animation: pulse .8s var(--ease-out) infinite alternate; }
.replay :is(.sec, .checks) h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.replay .cnt { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.replay .checks { padding: .9rem; border-radius: 14px; background: var(--canvas); }
.replay .checks h3 { color: var(--ink); font-size: .9375rem; }
.replay .checks h3 .cnt { margin-left: auto; color: var(--amber); }
.replay .ck-list { display: grid; gap: .35rem; }
.replay .ck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.replay .ck-box { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; }
.replay .ck-box input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--cobalt); }
.replay .ck-go { display: grid; gap: .1rem; min-width: 0; }
.replay .ck-go b { font-size: .875rem; font-weight: 700; }
.replay .ck-go span { font-size: .8125rem; color: var(--amber); }
.replay .ck-side { display: grid; justify-items: end; }
.replay .ck-by { padding: .1rem .45rem; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.replay .ck-always .ck-by { background: var(--pink-soft); color: var(--pink); }
.replay .flds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.replay .fld { display: grid; gap: .2rem; min-width: 0; }
.replay .fld > span { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.replay .fld-v { display: flex; align-items: center; min-height: 2.4rem; padding: 0 .65rem; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.replay .fld-v.num { justify-content: flex-end; }
.replay .fld.is-flag .fld-v { background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--amber); font-weight: 600; }
.replay .grid-wrap { overflow-x: auto; }
.replay .grid { width: 100%; min-width: 34rem; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.replay .grid .w-no { width: 1.9rem; } .replay .grid .w-spec { width: 23%; } .replay .grid .w-qty { width: 3.4rem; } .replay .grid .w-unit { width: 3rem; }
.replay .grid .w-price { width: 4.6rem; } .replay .grid .w-amount { width: 5.6rem; } .replay .grid .w-st { width: 3.4rem; }
.replay .grid th { padding: .45rem .5rem; box-shadow: inset 0 -1px 0 var(--line); font-size: .75rem; font-weight: 700; color: var(--ink-3); text-align: left; white-space: nowrap; }
.replay .grid .g-num { text-align: right; }
.replay .grid td { height: 2.3rem; padding: 0 .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay .grid tbody .g-no { padding-right: .4rem; border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--ink-3); text-align: right; }
.replay .grid td.is-flag { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.replay .g-st { text-align: center; }
.replay .st-pass { font-size: .75rem; color: var(--ink-3); }
.replay .st-box { font-size: .75rem; font-weight: 700; color: var(--amber); }
.replay .g-wait td { padding: 0 .5rem; white-space: normal; }

/* services */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.25rem; }
.work section { display: flex; flex-direction: column; }
.work h3 { font: 700 clamp(1.35rem, 2.2vw, 1.75rem)/1.35 var(--display); letter-spacing: -.025em; }
.work p { margin: .75rem 0 1.5rem; color: var(--ink-2); }
.work .give { margin-top: auto; }

/* terms */
.terms-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 2rem; }
.terms-head .sec-sub { margin: 0; }
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem clamp(1rem, 2.5vw, 2rem); margin: 2.25rem 0 0; }
.terms div { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.terms dt { font: 700 1.0625rem/1.35 var(--ui); }
.terms dd { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.terms .when { margin-top: auto; padding-top: .5rem; font-size: .8125rem; font-weight: 600; color: var(--ink-3); }

/* process */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; margin: 2.25rem 0 0; padding: 0; }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.steps h3 { display: flex; align-items: center; gap: .55rem; font: 700 1.0625rem/1.3 var(--ui); }
.steps h3::before { content: counter(s); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: .75rem; font-weight: 700; }
.steps p { margin: .45rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.steps a { color: var(--cobalt); text-underline-offset: .2em; }

/* stack */
.stack-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stack-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.stack-grid li { display: grid; gap: .15rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.stack-grid b { font-weight: 700; }
.stack-grid span { font-size: .875rem; color: var(--ink-2); }

/* faq */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2rem 4rem; align-items: start; }
.qa { display: grid; gap: .6rem; }
details { border-radius: var(--radius-lg); background: var(--canvas); padding: 0 1.4rem; }
summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; font-size: 1.0625rem; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--ink-3); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 1.2rem; color: var(--ink-2); }

/* contact */
.contact { background: var(--cobalt); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact h2 { font: 800 clamp(1.9rem, 3.6vw, 3rem)/1.25 var(--display); letter-spacing: -.035em; }
.contact p { color: rgba(255, 255, 255, .85); margin: 1rem 0 0; }
.contact-card { padding: 1.75rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .2rem; }
.checklist li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.checklist .cb { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.contact-card .addr { margin: 1rem 0 0; font-size: .9375rem; }

/* windows on subpages (404) */
.win { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: .9rem; min-height: 2.75rem; padding: .4rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .8125rem; color: var(--ink-2); }
.lights { display: inline-flex; gap: .4rem; flex: none; }
.lights i { width: .7rem; height: .7rem; border-radius: 50%; background: #dfe3ea; }
.cb { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.log { list-style: none; margin: 0; padding: 0 1.1rem; display: grid; gap: .6rem; font-size: .8438rem; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; padding: .6rem .7rem; background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.lt { font-size: .75rem; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; background: var(--cobalt-soft); color: var(--cobalt); }
.log li.ask { box-shadow: 0 0 0 1.5px var(--amber-line); }
.log li.ask .lt { background: var(--amber-soft); color: var(--amber); }

/* tools */
.tools { padding-bottom: clamp(4rem, 8vw, 6rem); }
.tool { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
.tool + .tool { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.tool-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: end; }
.tool-status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: .6rem 0 0; font-size: .8125rem; color: var(--ink-3); }
.status-live { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border-radius: 999px; background: var(--green-soft); color: var(--green-text); font-size: .75rem; font-weight: 700; }
.status-live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.tool h2 { font: 700 clamp(1.7rem, 3.2vw, 2.6rem)/1.25 var(--display); letter-spacing: -.03em; }
.tool-what { margin: .9rem 0 0; max-width: 40em; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); }
.tool-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.screen { margin: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: clip; }
.screen-bar { display: flex; align-items: center; gap: .9rem; min-height: 2.75rem; padding: .4rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .8125rem; color: var(--ink-2); }
.screen-url { font-weight: 600; color: var(--ink); }
.screen-meta { margin-left: auto; color: var(--ink-3); white-space: nowrap; }
.screen img { display: block; width: 100%; height: auto; }
.screen-cap { padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); }
.screen-cap a { color: var(--cobalt); text-underline-offset: .2em; }
.tool-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; }
.tool-detail h3 { font: 700 1.0625rem/1.3 var(--ui); margin-bottom: .75rem; }
.tool-detail ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: .45rem; }
.tool-facts { margin: 0; border-top: 2px solid var(--ink); }
.tool-facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.tool-facts dt { color: var(--ink-3); }
.tool-facts dd { margin: 0; }
.tool-facts a { color: var(--cobalt); text-underline-offset: .2em; }
.tools-rules { border-top: 1px solid var(--line); }
.rules { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0 0; padding: 0; }
.rules li { padding-top: 1rem; border-top: 2px solid var(--ink); font-weight: 700; }

/* change log (/changes/): a target filter (radio inputs, CSS only), a date rail beside a reading column */
.changelog { padding-bottom: clamp(4rem, 8vw, 6rem); }
.changelog :where(h2, h3, p, ul) { margin: 0; }
.cl-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.cl-filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-filter label { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 1rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease; }
.cl-filter label:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.cl-filter input:checked + label { background: var(--cobalt-soft); color: var(--cobalt-2); box-shadow: inset 0 0 0 1px var(--cobalt-tint); }
.cl-filter input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.cl:has(#cl-f-site:checked) :is(.cl-entry:not([data-t="site"]), .cl-day:not([data-ts~="site"])),
.cl:has(#cl-f-scope:checked) :is(.cl-entry:not([data-t="scope"]), .cl-day:not([data-ts~="scope"])),
.cl:has(#cl-f-order:checked) :is(.cl-entry:not([data-t="order"]), .cl-day:not([data-ts~="order"])) { display: none; }
@supports not selector(:has(*)) { .cl-filter { display: none; } }
.cl-day { display: grid; grid-template-columns: 12rem minmax(0, 44rem); gap: 0 clamp(2rem, 5vw, 4rem); padding: clamp(1.75rem, 4vw, 2.5rem) 0; border-top: 1px solid var(--line); }
.cl-date { position: sticky; top: 5.5rem; align-self: start; font: 700 clamp(1.35rem, 2.2vw, 1.75rem)/1.3 var(--display); letter-spacing: -.025em; }
.cl-date time { display: grid; gap: .2rem; }
.cl-wd { font: 500 .9375rem/1.4 var(--ui); letter-spacing: 0; color: var(--ink-3); }
.cl-entries { display: grid; gap: 2.25rem; }
.cl-entry { scroll-margin-top: 6rem; }
.cl-entry:target { padding: 1rem 1.1rem; margin: -1rem -1.1rem; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--cobalt-tint), 0 0 0 6px var(--cobalt-soft); }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; font-size: .8125rem; color: var(--ink-3); }
.cl-target { font-weight: 700; color: var(--ink); }
.cl-kind { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; background: var(--canvas); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.cl-kind.is-release { background: var(--green-soft); color: var(--green-text); box-shadow: none; }
.cl-entry h3 { margin-top: .35rem; font: 700 clamp(1.125rem, 1.6vw, 1.25rem)/1.45 var(--ui); }
.cl-entry h3 a { text-decoration: none; }
.cl-entry h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.cl-items { margin-top: .55rem; padding-left: 1.15rem; display: grid; gap: .3rem; color: var(--ink-2); }
.cl-items li::marker { color: var(--line-strong); }
.cl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: .8rem; }
.cl-deps { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.cl-dep { display: inline-flex; align-items: baseline; gap: .4rem; font-size: .8125rem; color: var(--ink-3); }
.cl-dep code { font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); }
.cl-dep.is-revert { font-weight: 600; color: var(--ink); }
.cl-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .875rem; font-weight: 600; }
.cl-links a, .cl-note a { color: var(--cobalt); text-underline-offset: .2em; }
.cl-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }

/* status (/status/): rendered per visit by src/worker.js; a one-line answer, a services × checks table, the requests
   that check sent in a window, then how it checks. Green = answered, red pair = failed, dashed rust = not checked. */
.status { padding-bottom: clamp(4rem, 8vw, 6rem); }
.status :where(h2, p, ul, ol, dl, figure) { margin: 0; padding: 0; }
.status :where(ol) { list-style: none; }
.status code { font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); }
.st-ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-sum { display: flex; align-items: center; gap: .65rem; font: 700 clamp(1.35rem, 2.2vw, 1.75rem)/1.35 var(--display); letter-spacing: -.025em; }
.st-sum .st-ic { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; stroke-width: 2.6; }
.st-sum.is-ok .st-ic { background: var(--green-soft); color: var(--green-text); }
.st-sum.is-fail .st-ic { background: var(--red-soft); color: var(--red-text); }
.st-when { margin-top: .5rem; font-size: .9375rem; color: var(--ink-3); }
.st-mk { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem .15rem .45rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.st-mk.is-ok { background: var(--green-soft); color: var(--green-text); }
.st-mk.is-fail { background: var(--red-soft); color: var(--red-text); }
.st-mk.is-skip { color: var(--tbd); outline: 1px dashed currentColor; outline-offset: -1px; }
.st-none { font-size: .875rem; color: var(--ink-3); }
.st-table { width: 100%; margin-top: 1.75rem; border-collapse: collapse; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; font-size: .9375rem; }
.st-table th, .st-table td { padding: 1rem 1.1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.st-table thead th { padding-block: .7rem; background: var(--surface-2); font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.st-table tbody tr:last-child > * { border-bottom: 0; }
.st-name { display: block; font-weight: 700; }
.st-host { display: block; font-size: .8125rem; font-weight: 500; color: var(--ink-3); }
.st-ver { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--ink); text-decoration: none; }
.st-ver:hover { text-decoration: underline; text-underline-offset: .2em; }
.st-ver code { color: var(--cobalt); }
.st-table td:last-child { font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.st-reqs { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.st-reqs h2, .st-how h2 { font: 700 1.0625rem/1.3 var(--ui); }
.st-reqs > p { margin-top: .4rem; font-size: .9375rem; color: var(--ink-2); }
.st-win { margin-top: 1rem; }
.st-log { padding: .4rem 0; }
.st-log li { display: grid; grid-template-columns: 5rem 9.5rem minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline; padding: .55rem 1.1rem; font-size: .875rem; border-bottom: 1px solid var(--line); }
.st-log li:last-child { border-bottom: 0; }
.st-log time { color: var(--ink-3); }
.st-what { font-weight: 600; }
span.st-url { color: var(--ink-3); }
.st-res { display: inline-flex; align-items: center; gap: .35rem; justify-self: end; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.st-log .is-ok .st-res { color: var(--green-text); }
.st-log .is-fail .st-res { color: var(--red-text); }
.st-log .is-skip .st-res { color: var(--tbd); }
.st-extra { grid-column: 3 / -1; font-size: .8125rem; color: var(--ink-3); }
.st-how { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 48rem; }
.st-how h2 { padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.st-how dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.st-how dt { color: var(--ink-3); }
.st-how dd { margin: 0; color: var(--ink-2); }
.st-how a { color: var(--cobalt); text-underline-offset: .2em; }

/* work notes (/notes/): Markdown from src/notes/ (scripts/notes.mjs). A card per note on the list; on a note, a record
   box under the title, a 42rem reading column, and measurements drawn as charts (wide and narrow SVGs). */
.notes { padding-bottom: clamp(4rem, 8vw, 6rem); }
.notes :where(h1, h2, h3, p, ul, ol, dl, figure) { margin: 0; }
.notes h1 { font: 800 clamp(2rem, 4vw, 3rem)/1.22 var(--display); letter-spacing: -.035em; }
.nt-back { margin-bottom: 1rem; font-size: .875rem; font-weight: 600; }
.nt-back a { color: var(--ink-3); text-decoration: none; }
.nt-back a:hover { color: var(--ink); }
.nt-wd { font-weight: 500; color: var(--ink-3); }
.nc-list { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: 52rem; }
.nc-list a { display: grid; gap: .45rem; padding: 1.35rem 1.4rem; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s ease; }
.nc-list a:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.nc-date { font-size: .875rem; font-weight: 600; }
.nc-title { font: 700 clamp(1.3rem, 2vw, 1.6rem)/1.35 var(--display); letter-spacing: -.025em; }
.nc-desc { color: var(--ink-2); }
.nc-tool { justify-self: start; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--canvas); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.nc-art { max-width: 52rem; }
.nc-head { padding-top: clamp(2.5rem, 6vw, 4rem); }
.nc-lede { margin-top: 1rem; max-width: 42rem; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.7; color: var(--ink-2); }
.nc-rec { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0 2.5rem; margin-top: 1.5rem; padding: .9rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.nc-rec dt { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.nc-rec dd { margin: .2rem 0 0; font-size: .9375rem; }
.nc-rec a { color: var(--cobalt); text-underline-offset: .2em; }
.nc-rec code { font: 500 .875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.nt-body { max-width: 52rem; margin-top: 2rem; font-size: 1.0625rem; line-height: 1.8; }
.nt-body > :not(.nt-fig, .nt-table) { max-width: 42rem; }
.nt-body > * + * { margin-top: 1.1em; }
.nt-body h2 { margin-top: 2.4em; font: 700 clamp(1.3rem, 2vw, 1.55rem)/1.35 var(--display); letter-spacing: -.025em; scroll-margin-top: 6rem; }
.nt-body h2 + * { margin-top: .7em; }
.nt-body p, .nt-body li { color: var(--ink-2); }
.nt-body strong { font-weight: 700; color: var(--ink); }
.nt-body ul, .nt-body ol { padding-left: 1.3rem; display: grid; gap: .35em; }
.nt-body li::marker { color: var(--ink-3); }
.nt-body a { color: var(--cobalt); text-underline-offset: .2em; }
.nt-body code { padding: .1em .3em; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 500 .875em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.nt-table { overflow-x: auto; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.nt-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.nt-table th, .nt-table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.nt-table th { background: var(--surface-2); font-size: .8125rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.nt-table tr:last-child td { border-bottom: 0; }
.nt-table td { color: var(--ink-2); }
.nt-table td:first-child { font-weight: 600; color: var(--ink); }
.nt-fig { margin-top: 1.6em; padding: 1.1rem 1.2rem 1rem; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.nt-fig svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--ui); }
.nt-fig .fg-narrow { display: none; }
.nt-fig figcaption { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.6; color: var(--ink-3); }
.nt-fig figcaption b { margin-right: .35rem; color: var(--ink); }
.fg-label { font-size: 12.5px; fill: var(--ink-2); }
.fg-head { font-size: 13px; font-weight: 700; fill: var(--ink); }
.fg-value, .fg-out-t { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.fg-track { fill: var(--canvas); }
.fg-bar { fill: var(--cobalt); }
.fg-grid { stroke: var(--line); stroke-width: 1; }
.fg-tick { font-size: 11px; fill: var(--ink-3); }
.fg-hold { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.fg-out { stroke: var(--ink); stroke-width: 2; }
.nt-others { max-width: 42rem; margin-top: clamp(3rem, 6vw, 4rem); padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.nt-others h2 { font: 700 1.0625rem/1.3 var(--ui); }
.nt-others ul { list-style: none; padding: 0; margin-top: .75rem; display: grid; gap: .5rem; }
.nt-others a { font-weight: 600; color: var(--ink); text-underline-offset: .2em; }
.nt-others span { margin-left: .4rem; font-size: .8125rem; color: var(--ink-3); }

/* subpages */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.page-hero .lede { margin: 1.25rem 0 0; }
.badge-soon { display: inline-block; font: 700 .875rem/1 var(--ui); letter-spacing: 0; color: var(--amber); background: var(--amber-soft); padding: .4rem .7rem; border-radius: 999px; vertical-align: .55em; margin-left: .5rem; }
.nf .win { max-width: 36rem; margin-top: 2rem; }
.nf .log { padding: 1.1rem; }
.empty-state { padding: clamp(2rem, 5vw, 3rem); margin-bottom: clamp(4rem, 8vw, 6rem); border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.empty-state h2 { font: 700 1.375rem/1.35 var(--display); letter-spacing: -.02em; }
.empty-state ul { margin: 1rem 0 1.5rem; padding-left: 1.2rem; color: var(--ink-2); }
.empty-state .links { display: flex; gap: .75rem; flex-wrap: wrap; }

/* footer */
.foot { padding: 3rem 0; font-size: .875rem; color: var(--ink-2); background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; }
.foot-brand p { margin: .6rem 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-content: start; justify-content: flex-end; font-weight: 600; }
.foot-nav a { text-decoration: none; color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); }
.biz { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: .5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.biz div { display: flex; gap: .5rem; }
.biz dt { color: var(--ink-3); }
.biz dd { margin: 0; color: var(--ink); }
.copy { grid-column: 1 / -1; margin: 0; }
.tbd { color: var(--tbd); text-decoration: underline dashed; text-underline-offset: .25em; }
.tbd-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--tbd); border: 1px dashed currentColor; border-radius: 4px; padding: 0 .35rem; line-height: 1.5; }
.contact .tbd-tag { color: #ffd29a; }

@media (min-width: 961px) {
  .br-wide { display: inline; }
}
@media (max-width: 1180px) {
  .replay .flds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .top-nav { gap: 1.1rem; }
}
@media (max-width: 960px) {
  .top-nav { display: none; }
  .top-in .btn { margin-left: auto; }
  .hero-sub, .stack-in, .contact-in, .faq-in, .foot-in, .work, .tool-head, .tool-detail { grid-template-columns: 1fr; }
  .rp-body { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "src" "review" "meta"; }
  .rp-src, .rp-meta { border-right: 0; }
  .rp-src { border-bottom: 1px solid var(--line); }
  .rp-meta { padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .rp-rec { padding-top: 0; border-top: 0; }
  .rp-well { max-width: 34rem; }
  /* Phones and tablets see the top of the table pane; the rest scrolls inside it. */
  .rp-out { max-height: 34rem; overflow: auto; min-height: 0 !important; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-nav { justify-content: flex-start; }
  .cl-day { grid-template-columns: 1fr; gap: 1rem; }
  .cl-date { position: static; }
  .cl-date time { display: flex; align-items: baseline; gap: .5rem; }
  .st-table thead { display: none; }
  .st-table, .st-table tbody, .st-table tr, .st-table th, .st-table td { display: block; }
  .st-table tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .st-table tbody tr:last-child { border-bottom: 0; }
  .st-table th, .st-table td { padding: .3rem 0; border: 0; }
  .st-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: .75rem; }
  .st-table td::before { content: attr(data-label); font-size: .8125rem; color: var(--ink-3); }
  .st-table td > * { justify-self: start; }
  .st-log li { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
  .st-url { grid-column: 2 / -1; grid-row: 2; }
  .st-extra { grid-column: 2 / -1; }
  .nc-rec { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 560px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .rp-title { display: none; }
  .rp-src { padding: 0 1rem 1rem; }
  .rp-src .rp-head { margin: 0 -1rem; padding-inline: 1rem; }
  .replay .roles { margin-left: 0; order: 3; width: 100%; }
  .rp-out { max-height: 30rem; }
  .replay .flds { grid-template-columns: 1fr 1fr; }
  .replay .ck { grid-template-columns: auto minmax(0, 1fr); }
  .replay .ck-side { grid-column: 2; justify-items: start; }
  .terms, .steps, .stack-grid, .rules { grid-template-columns: 1fr; }
  .tool-cta .btn { flex: 1 1 100%; }
  .screen-meta { display: none; }
  .tool-facts div { grid-template-columns: 1fr; gap: .15rem; }
  .badge-soon { vertical-align: .3em; }
  .st-how dl div { grid-template-columns: 1fr; gap: .15rem; }
  .st-log li { grid-template-columns: 4.2rem minmax(0, 1fr); padding-inline: .9rem; }
  .st-res { grid-column: 2; justify-self: start; }
  .nt-fig { padding: 1rem .9rem .9rem; }
  .nt-fig .fg-wide { display: none; }
  .nt-fig .fg-narrow { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cl-filter label, .nc-list a { transition: none; }
  .replay *, .replay *::before { animation: none !important; }
}
