[hidden] { display: none !important; }
.top a.brand { color: var(--text); display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top { position: static; backdrop-filter: none; background: var(--bg); flex-wrap: nowrap; }
.top .nav { flex-wrap: nowrap; }
.navlink.on { background: none; box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; color: var(--text); }
.logo-img { display: block; width: 30px; height: 30px; border-radius: 8px; }
.top .face { width: 32px; height: 32px; font-size: 12px; font-weight: 600; }
.top .pill-btn { white-space: nowrap; }
.top .pill-btn.web { color: var(--muted); font-size: 13px; cursor: default; }
.top .pill-btn.web:hover { background: none; }
.menu-panel { border-radius: 8px; z-index: 30; }
.menu.who > summary { padding: 2px; }
.menu.who .menu-panel { width: min(320px, calc(100vw - 32px)); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-item small { display: block; color: var(--muted); font-size: 12px; }
.menu-who { display: flex; align-items: center; gap: 12px; }
.menu-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 700px) {
  .top { flex-wrap: wrap; }
  .top .nav { order: 1; flex-basis: 100%; }
  .navlink.on { box-shadow: inset 0 -2px 0 var(--accent); }
}
main { max-width: 760px; padding: 32px 16px 24px; }
main.wide { max-width: 1040px; }
main.narrow { max-width: 560px; }
.btn { box-shadow: none; border-radius: 999px; }
.btn-grad, .btn-grad:hover { background: var(--grad-ink); color: var(--on-grad); border-color: transparent; }
.btn-grad:hover { filter: brightness(1.08); }
.btn.lg { min-height: 40px; padding: 0 20px; font-size: var(--t-body); font-weight: 600; }
.btn-danger { border-radius: 999px; }
a.link, .p a:not(.btn):not(.r), .quiet a, .fine a { color: var(--link); }
.tab, .num, .mono { font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums; }
.hd { display: grid; gap: 4px; margin-bottom: 16px; }
.hd h1 { font-size: var(--t-title); line-height: 1.3; margin: 0; }
.hd p { margin: 0; color: var(--muted); font-size: var(--t-help); }
a.back, main a.back { display: inline-block; margin: 0 0 8px; font-size: var(--t-help); color: var(--muted); text-decoration: none; }
a.back:hover { color: var(--text); text-decoration: underline; }
.fine { font-size: var(--t-help); color: var(--muted); margin: var(--gap-3) 0 0; }
.quiet { color: var(--muted); margin: 0; }
.p { background: var(--surface); border: 1px solid var(--card-line); border-radius: 8px; padding: var(--card-pad); min-width: 0; }
.p + .p, .p + .g, .g + .p, .g + .g { margin-top: 16px; }
.p > header { display: flex; align-items: center; gap: var(--gap-2); margin-bottom: var(--gap-2); min-height: 24px; }
.p > header h2 { font-size: var(--t-help); font-weight: 600; }
.p > header .end { margin-left: auto; color: var(--muted); font-size: var(--t-help); font-variant-numeric: tabular-nums; }
.p.next { border-color: var(--card-line); }
.p.stop { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.s12 { grid-column: span 12; }
.s7 { grid-column: span 7; }
.s5 { grid-column: span 5; }
.s6 { grid-column: span 6; }
@media (max-width: 860px) { .s7, .s5, .s6 { grid-column: span 12; } }
.lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--gap-4); padding: 0 0 var(--gap-4); }
.lead b { display: block; font-size: var(--t-title); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lead small { display: block; color: var(--muted); font-size: var(--t-body); line-height: 1.5; margin-top: var(--gap-1); }
.lead.solo { grid-template-columns: minmax(0, 1fr); }
.also-os { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.also-os a { color: var(--link); }
.r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0;
     border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.r small { display: block; color: var(--muted); font-size: 13px; }
a.r:hover { background: var(--hover); margin: 0 calc(-1 * var(--card-pad)); padding: 6px var(--card-pad); }
a.r .go { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
a.r .go svg.i { width: 16px; height: 16px; }
.r form { margin: 0; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.strip > div { padding: 12px 16px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; }
.strip .k { color: var(--muted); font-size: 13px; }
.strip .v { font-variant-numeric: tabular-nums; font-size: 24px; margin-top: 4px; }
.strip .v small { font-size: 12px; color: var(--muted); }
.strip .v.need { color: var(--accent); }
@media (max-width: 640px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div { border-left: 0; border-top: 1px solid var(--line); }
  .strip > div:nth-child(even) { border-left: 1px solid var(--line); }
  .strip > div:nth-child(-n+2) { border-top: 0; }
  .strip > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.meter { margin-top: 10px; }
.meter .l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.meter .l b { font-variant-numeric: tabular-nums; font-weight: 400; }
.meter .bar { height: 4px; margin-top: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--ok-ink); }
.steps2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 6px; }
.steps2 i { height: 4px; border-radius: 2px; background: var(--line); }
.steps2 i.done { background: var(--text); }
.steps2 i.now { background: var(--st-need); }
.steps2-k { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.steps2-k .now { color: var(--text); font-weight: 500; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 16px 0; padding: 0; list-style: none;
         background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.glance li { background: var(--surface); padding: 14px 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; align-content: start; }
.glance .ic { grid-row: span 2; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.glance .ic svg.i { width: 18px; height: 18px; }
.glance b { font-weight: 600; font-size: 13px; }
.glance span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.glance.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.glance.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .glance, .glance.three { grid-template-columns: minmax(0, 1fr); } .glance li { padding: 12px 14px; } }
.mark-sq { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); margin-bottom: 12px; }
.mark-sq.bad { color: var(--bad-ink); }
.linked { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.linked .dot { width: 8px; height: 8px; box-shadow: none; }
.linked b { color: var(--text); font-weight: 500; }
details.more { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
details.more summary { font-weight: 500; min-height: 32px; }
.detail { margin-top: 8px; color: var(--muted); font-size: 13px; }
.detail h3 { color: var(--text); margin: 12px 0 4px; font-size: 13px; }
.detail ul { padding-left: 18px; margin: 4px 0; }
.detail li { margin: 4px 0; }
.placeholder { border: 1px dashed var(--line); border-radius: 6px; padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; background: var(--surface-2); }
table.compare { font-size: 13px; }
table.compare th { font-weight: 500; color: var(--muted); }
table.compare td.amt, table.compare th.amt { text-align: right; font-family: var(--mono); font-weight: 400; white-space: nowrap; }
table.compare td:last-child { font-weight: 400; }
table.compare tr.total td { font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 8px 0; }
.check input { margin-top: 2px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
@media (max-width: 560px) { .lead { grid-template-columns: minmax(0, 1fr); } .lead .btn, .actions .btn.lg { width: 100%; justify-content: center; } }
.invite { text-align: center; font-size: 12px; color: var(--muted); margin: 24px 0 0; }
.privacy { margin-top: 24px; font-size: 12px; }
.qr { display: inline-block; padding: 10px; background: var(--qr-bg); border-radius: 8px; line-height: 0; border: 1px solid var(--line); }
.qr-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 560px) { .qr-box { grid-template-columns: minmax(0, 1fr); justify-items: center; } .qr-box > div { width: 100%; } }
dl.pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; margin: 0; }
dl.pay dt, dl.pay dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
dl.pay dt { color: var(--muted); font-size: 13px; }
dl.pay dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--mono); overflow-wrap: anywhere; }
dl.pay dt:first-of-type, dl.pay dd:first-of-type { border-top: 0; }
input.utr { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
            color: var(--text); font: 15px var(--mono); letter-spacing: .04em; margin-top: 6px; }
footer.foot { text-align: center; padding: 8px 16px 32px; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; font-size: 13px; color: var(--muted); }
footer.foot a { min-height: 32px; display: inline-flex; align-items: center; }
.r .meter, .r .tank { display: block; margin-top: var(--gap-2); max-width: 320px; }
.meter .bar { display: block; }
.strip + .p, .p + .strip { margin-top: 16px; }
@media (max-width: 560px) { .r.act { grid-template-columns: minmax(0, 1fr); padding: 10px 0; } .r.act > .btn, .r.act > form .btn { justify-self: start; } }
table.charges small { color: var(--muted); font-size: 12px; }
table.charges small.when { display: none; }
@media (max-width: 560px) { table.charges th:first-child, table.charges td:first-child { display: none; }
  table.charges small.when { display: block; } table.charges td.amt small { display: block; } }
.glance li.wide { grid-column: 1 / -1; }
.ill { display: block; max-width: 100%; height: auto; }
.ill .k { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .k1 { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ill .ak { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .a { fill: var(--accent); }
.ill .as { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.ill .bs { fill: color-mix(in srgb, var(--brand-2) 18%, var(--surface)); }
.vs { display: grid; grid-template-columns: minmax(96px, .55fr) minmax(0, 1fr) minmax(0, 1fr); font-size: 14px; }
.vs > span { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.vs .vs-h0, .vs .vs-h { border-top: 0; padding-bottom: 6px; }
.vs .vs-h { display: flex; flex-direction: column; gap: 4px; }
.vs .vs-h .ill { width: 72px; height: auto; }
.vs .vs-h b { font-size: 15px; font-weight: 600; }
.vs .vs-h.no b { color: var(--muted); }
.vs .vs-t { color: var(--muted); font-size: 13px; }
.vs span.no:not(.vs-h), .vs span.yes:not(.vs-h) { position: relative; padding-left: 22px; }
.vs span.no:not(.vs-h) { color: var(--muted); }
.vs span.no:not(.vs-h)::before { content: "✕"; position: absolute; left: 2px; top: 10px; color: var(--muted); font-size: 12px; }
.vs span.yes:not(.vs-h)::before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--accent); font-weight: 700; }
.vs small { display: none; }
.vs-foot { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 560px) {
  .vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 13px; column-gap: 10px; }
  .vs .vs-h0, .vs .vs-t { display: none; }
  .vs small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
  .vs span.no:not(.vs-h)::before, .vs span.yes:not(.vs-h)::before { top: 26px; }
}
.slot { display: grid; grid-template-columns: var(--ill-slot) minmax(0, 1fr) auto; align-items: center; gap: var(--gap-4); }
.slot > .ill { width: var(--ill-slot); height: var(--ill-slot); }
.slot-t b { display: block; font-size: var(--t-title); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.slot-t small { display: block; color: var(--muted); font-size: var(--t-body); line-height: 1.5; margin-top: var(--gap-1); }
@media (max-width: 560px) {
  .slot { --ill-slot: 48px; grid-template-columns: var(--ill-slot) minmax(0, 1fr); align-items: start; }
  .slot > .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
.tank { --lc: var(--lvl-ok); }
span.tank { display: block; }
.tank.amber { --lc: var(--warn); }
.tank.red { --lc: var(--bad-ink); }
.tank-bar { display: block; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tank-bar i { display: block; height: 100%; width: var(--used); min-width: 2px; background: var(--lc); border-radius: 3px; }
.tank-k { display: flex; justify-content: space-between; gap: var(--gap-2); margin-top: var(--gap-1); font-size: 12px; color: var(--muted); }
.tank-k b { color: var(--text); font-weight: 500; }
.tank-k .left { margin-left: auto; text-align: right; }
.ill .pot { fill: color-mix(in srgb, var(--text) 5%, var(--surface)); }
.ill .water { fill: var(--lc, var(--lvl-ok)); opacity: .55; clip-path: inset(calc(100% - var(--used, 0%)) 0 0 0); }
.ill .crowf { fill: var(--crow); }
.ill .peb { fill: color-mix(in srgb, var(--muted) 45%, var(--surface)); stroke: var(--muted); stroke-width: 1.2; }
.ill .drop { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ill.crow.anim .water { animation: rise 1s ease-out .7s both; }
  .ill.crow.anim .drop { animation: drop .7s ease-in .2s both; }
}
@keyframes rise { from { clip-path: inset(calc(100% - var(--used, 0%) + 6%) 0 0 0); } }
@keyframes drop { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(46px); } }
.lead:last-child { padding-bottom: 0; }
.p > .tank:first-child, .p > .meter:first-child { margin-top: 0; }
.tank > .l { display: flex; justify-content: space-between; gap: var(--gap-2); font-size: 13px; margin-bottom: 4px; }
.tank > .l b { font-weight: 500; font-variant-numeric: tabular-nums; }
.strip, .glance { border-color: var(--card-line); border-radius: 8px; }
.legal { max-width: 68ch; font-size: 16px; line-height: 1.6; }
.legal h1 { font-size: 24px; line-height: 1.25; margin: 0; text-wrap: balance; }
.legal .upd { color: var(--muted); font-size: var(--t-help); margin: var(--gap-1) 0 var(--gap-6); }
.legal h2 { font-size: 16px; line-height: 1.35; margin: var(--gap-6) 0 var(--gap-2); }
.legal p { margin: 0 0 var(--gap-3); }
.legal ul { margin: 0 0 var(--gap-3); padding-left: 1.25em; }
.legal li { margin: 0 0 var(--gap-2); padding-left: .25em; }
.ill .eye { fill: var(--surface); }
.qr .bg { fill: var(--qr-bg); }
.qr .qrline { stroke: var(--qr-ink); }
.gmark .y { fill: var(--g-y); }
.gmark .r { fill: var(--g-r); }
.gmark .g { fill: var(--g-g); }
.gmark .b { fill: var(--g-b); }
.relay-fig { margin: 12px auto; max-width: 420px; }
.relay-fig .relay { display: block; width: 100%; }
.relay-fig figcaption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.mi.haiku { stroke: var(--model-haiku); }
.mi.sonnet { stroke: var(--model-sonnet); }
.mi.opus { stroke: var(--model-opus); }
.mi.free { stroke: var(--model-free); }
.stc { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; background: var(--surface); }
.stc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.stc.need { --c: var(--st-need); }
.stc.prog { --c: var(--st-prog); }
.stc.done { --c: var(--st-done); }
.steps2-k a.now { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn, .btn.lg { min-height: 40px; padding: 0 16px; font-size: var(--t-body); font-weight: 500; }
.btn.btn-grad, .btn.btn-primary { font-weight: 600; }
.actions:has(> .btn:first-child + .btn:last-child) { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions:has(> .btn:first-child + .btn:last-child) > .btn { justify-content: center; }
@media (max-width: 560px) { .actions:has(> .btn:first-child + .btn:last-child) { display: grid; width: 100%; } }
.btn, .btn.sm, .btn.big, .btn.lg, .lead .btn, .r .btn, .fa-confirm .btn, .fa-onpill .btn, .aicard.main .btn-primary, .jc .card-acts > .btn:first-child:not(.btn-quiet) { min-height: var(--h-btn); padding: 0 16px; font-size: var(--t-body); }
.btn.tx { padding: 0 8px; }
@media (max-width: 560px) { .btn, .btn.sm, .btn.big, .btn.lg, .lead .btn, .r .btn, .jc .card-acts > .btn:first-child:not(.btn-quiet) { min-height: var(--h-btn); } }
.btn, .btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 22%, var(--surface)); }
.btn:is(.btn-grad, .btn-primary, .btn-approve), .btn:is(.btn-grad, .btn-primary, .btn-approve):hover { background: var(--text); color: var(--surface); border-color: transparent; filter: none; }
.btn:is(.btn-grad, .btn-primary, .btn-approve):hover { background: color-mix(in srgb, var(--text) 82%, var(--surface)); }
.btn.btn-quiet, .btn.btn-quiet:hover, .btn.tx, .btn.tx:hover { background: none; border-color: transparent; color: var(--text); }
.btn.tx { text-decoration: underline; text-underline-offset: 3px; }
.btn.back, .wt-foot .btn, .btn.btn-grad.lg, .btn-grad.lg, .actions .btn, .act .btn { min-height: var(--h-btn); padding: 0 16px; font-size: var(--t-body); }
.btn.btn-danger, .btn.btn-danger:hover { background: color-mix(in srgb, var(--bad) 82%, var(--text)); border-color: transparent; color: var(--surface); }
.amt.plus, span.plus { color: var(--st-done); }
.lbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
small.lbs, p.lbs { display: flex; }
.lb { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.r .t + :is(small, span):has(.tag, .chip, .stc, .dots3, .meter, .cms), .r .t + .lbs { margin-top: 8px; }
.brk { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 8px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brk dd { margin: 0; text-align: right; color: var(--text); }
svg.ii { width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r:has(> .ri:first-child) { grid-template-columns: 32px minmax(0, 1fr) auto; }
.ri { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--text); }
.tki { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb .tki { width: 14px; height: 14px; color: var(--muted); }
.ri .tki { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
small { font-size: var(--fs-12, 12px); }
.usage { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.usage .cap { margin: 0; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.usage .cap b { color: var(--text); font-weight: 600; }
.usage .kn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.usage .kn ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.usage .kn li { display: flex; gap: 6px; align-items: flex-start; }
@media (max-width: 600px) { .usage .kn { grid-template-columns: 1fr; } }
.usage { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.usage .ri { display: grid; place-items: center; width: 32px; height: 32px; }
:is(.r, tr, .picked, .menu-item) :is(.btn, button.btn, a.btn, summary.btn), .btn.sm, a.btn.sm, summary.btn.sm { min-height: var(--h-row); height: var(--h-row); padding: 0 10px; font-size: var(--fs-row); border-radius: 999px; }
body * { text-transform: none !important; }
.detail h3 { margin: 16px 0 8px; }
.detail h3 + p, .detail h3 + ul { margin-top: 0; }
.charges2 .ch:last-child { padding-bottom: 0; }
.p > .r:first-child { padding-top: 0; }
.p > .r:last-child { padding-bottom: 0; }
details.p.more { padding-bottom: 12px; }
:root, :root[data-theme] { --grad-ink: var(--text); --pad-x: .75em; --pad-y: .35em; }
.meter .bar i, .spark i, .wfs .bar i, div.wfs .bar i, .fun .bar i, .src .track i, .fa-slide .fill { background: var(--text); }
.chip, .tag, .stc, .count { padding: var(--pad-y) var(--pad-x) !important; min-height: 0; line-height: 1.25; }
.pill-btn, summary.pill-btn { padding-inline: .9em; }
main a.btn.back, a.btn.back { display: inline-flex; align-items: center; margin: 0; min-height: var(--h-btn); height: var(--h-btn); padding: 0 1em; }
:is(.p, .card, .jc, .sheet, [data-card]) > :first-child { margin-top: 0; }
:is(.p, .card, .jc, .sheet, [data-card]) > :last-child { margin-bottom: 0; }
.menu .menu-panel > .menu-who.person:first-child { padding-top: 2px; }
@media (pointer: coarse) { .navlink, .pill-btn, summary.pill-btn, .btn, a.btn, summary.btn, .btn.sm, .menu-item, .avatar-btn { min-height: 44px !important; } }
:is(.p.next, .jc.need, .restbar, .menu-cta) { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--st-need); }
.restbar.stop { border-left-color: var(--bad); }
.note.warn, .hours .note.warn { background: none; color: var(--text); border-radius: 0; border-left: 3px solid var(--st-need); padding: 0 0 0 12px; }
:is(.chip.ok, .tag.pk, .stc.done) { background: var(--tint-done); border-color: var(--line-done); }
.stc.need { background: var(--tint-need); border-color: var(--line-need); }
input.switch:checked { background: var(--st-done); border-color: var(--st-done); }
:is(label, .r, .fa-consent):has(input.switch:checked) .swl { color: var(--st-done); }
.banner { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--bad); }
.banner.warn { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--st-need); }
.banner a { color: var(--text); }
:is(input[type=number], input[inputmode=numeric], input[inputmode=decimal]):not(.paybox input, .utr) { box-sizing: border-box; width: 96px; min-width: 96px; height: var(--h-btn); min-height: var(--h-btn); padding: 0 12px; text-align: right; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; flex: none; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.segc { display: inline-flex; padding: 2px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.segc button { min-height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-13); cursor: pointer; }
.segc button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.pill-btn.ico { padding: 0; width: var(--h-ctl); min-width: var(--h-ctl); justify-content: center; color: var(--text); cursor: pointer; font: inherit; }
.pill-btn.ico svg { width: 16px; height: 16px; }
@media (pointer: coarse) { .pill-btn.ico { width: 44px; min-width: 44px; } }
.menu-item.theme-row { display: flex; gap: 8px; align-items: center; cursor: default; }
.menu-item.theme-row .segc { margin-left: auto; }
@media (max-width: 560px) { .r:has(> .segc) { grid-template-columns: minmax(0, 1fr); } .r > .segc { justify-self: start; } }
.ic-top > svg:first-child { display: block; margin: 0 auto 8px; }
@media (pointer: coarse) { .segc button { min-height: 44px; } }
.ph h1, .hd h1 { font-size: var(--h-page); }
.p h2, .p > header h2, h2.lh, .sheet h2, .legal h2 { font-size: var(--h-sec); font-weight: 600; color: var(--text); }
.jc .who b { font-size: var(--h-card); }
.jc .say { font-size: var(--h-step); font-weight: 600; }
@media (max-width: 560px) { header.top { gap: 6px; } }
.wt { padding-bottom: 24px; }
.wt-top { display: flex; align-items: center; gap: 12px; font: 13px var(--font); font-variant-numeric: tabular-nums; color: var(--muted); }
.dots { display: flex; gap: 6px; flex: 1; max-width: 220px; }
.dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.dots i.done { background: var(--ok-ink); }
.dots i.cur { background: var(--accent); }
.wt h2 { font-size: var(--h-sec); font-weight: 600; margin: 16px 0 6px; line-height: 1.25; }
.wt p.say { margin: 0 0 6px; color: var(--muted); font-size: 15px; max-width: 56ch; }
.wt p.say b { color: var(--text); font-weight: 600; }
.pic { margin: 18px 0 4px; display: flex; justify-content: center; }
.mock { width: min(400px, 100%); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13px; overflow: hidden; }
.mock .bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock .bar span { margin-left: 6px; }
.mock.win .bar i { display: none; }
.mock.win .bar span { margin-left: 0; }
.mock.win .bar::after { content: "–  ☐  ✕"; margin-left: auto; letter-spacing: 2px; }
.mock .wb { padding: 12px 14px; }
.mock .press { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 6px; border: 2px solid var(--accent); font-weight: 600; color: var(--text); }
.mock .q2 { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.mock .mlink { color: var(--link); text-decoration: underline; padding: 1px 4px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.mock .files { display: grid; gap: 2px; }
.mock .file { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.mock .file.hi { outline: 2px solid var(--accent); background: var(--surface); }
.mock .file .ic { width: 22px; height: 26px; border: 1.5px solid var(--muted); border-radius: 3px; flex: none; }
.mock .file .ic.zip { background: repeating-linear-gradient(180deg, var(--muted) 0 2px, transparent 2px 5px) center / 3px 60% no-repeat; }
.mock .file .ic.dir { width: 26px; height: 20px; border-radius: 3px 3px 4px 4px; background: color-mix(in srgb, var(--accent) 25%, transparent); border-color: var(--accent); }
.mock .file small { margin-left: auto; color: var(--muted); }
.mock .menu { width: 170px; margin: 4px 0 0 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 4px 0; }
.mock .menu div { padding: 4px 10px; color: var(--muted); }
.mock .menu div.hi { color: var(--text); font-weight: 600; outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.mock.term { background: var(--term-bg); border-color: var(--term-line); color: var(--term-ink); }
.mock.term .bar { border-color: var(--term-line); color: var(--term-muted); }
.mock.term .bar i { background: var(--term-dot); }
.mock.term .wb { font: 12px/1.7 var(--mono); overflow-wrap: anywhere; }
.mock.term .ok { color: var(--term-ok); }
.mock.term .now { color: var(--term-now); }
details.stuck { margin-top: 14px; }
details.stuck summary { font-size: 13px; color: var(--link); cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
details.stuck ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.wt-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.wt-foot .grow { flex: 1; }
.stack { display: flex; gap: 12px; align-items: center; }
.wt-foot .q { font-size: 13px; color: var(--link); }
.small-line { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.small-line a { color: var(--link); }
.done-card { text-align: center; padding: 32px 24px; }
.done-card h2 { font-size: var(--h-sec); margin: 12px 0 6px; }
.done-card .ill { width: 120px; margin: 0 auto; }
.dots3 { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.dots3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .3; }
@media (prefers-reduced-motion: no-preference) { .dots3 i { animation: dots3 1.2s infinite; } .dots3 i:nth-child(2) { animation-delay: .2s; } .dots3 i:nth-child(3) { animation-delay: .4s; } }
@keyframes dots3 { 30% { opacity: 1; } }
@media (max-width: 560px) {
  .wt { padding: 16px; }
  .wt-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
             background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-up); }
  .wt-foot .btn.lg { flex: 1; justify-content: center; padding: 0 16px; }
  body:has(.wt-foot:not([hidden])) main { padding-bottom: 120px; }
  .wt-foot.two { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; }
  .wt-foot.two .grow { display: none; }
  .wt-foot.two .stack { display: contents; }
  .wt-foot.two .btn-grad { grid-column: 1 / -1; grid-row: 1; }
  .wt-foot.two .back { grid-row: 2; grid-column: 1; }
  .wt-foot.two .stack > :not(.btn-grad) { grid-row: 2; grid-column: 2; justify-self: end; }
  body:has(.wt-foot.two) main { padding-bottom: 170px; }
}
.mark-sq.ok { color: var(--st-done); background: var(--tint-done); }
.mark-sq .tki { width: 20px; height: 20px; }
.mark-sq + h1 { font-size: var(--h-sec); line-height: 1.3; margin: 0; }
.mark-sq + h1 + .lbs { margin: var(--gap-2) 0 0; }
.mark-sq ~ :is(p.quiet, p.msg) { margin-top: var(--gap-3); }
.mark-sq ~ p.msg { margin-bottom: 0; }
.btn .dots3 i { background: currentColor; }
.btn[aria-busy="true"] { cursor: progress; }
.btn.cp { gap: 6px; }
.btn.cp .tki { width: 14px; height: 14px; color: var(--muted); }
.btn.cp code { font: var(--fs-row) var(--mono); background: none; padding: 0; border: 0; color: var(--text); }
.mark-sq + h1 .dots3 i { background: var(--muted); }
