/* Instrument-panel design system: bench, plates, keys, dark displays. */
:root {
  --bench: #f2f3f5; --paper: #fff; --plate: #eceef1; --face-hi: #eef0f3; --face-lo: #e1e4e8; --face-mid: #e8eaee;
  --hair: #c9ced4; --edge: #727a84; --ink: #101215; --ink-2: #383d44; --label: #565d67;
  --display: #141619; --display-bay: #1b1e22; --on-display: #e9ecef; --on-display-2: #9ea6af; --display-edge: #737b85;
  --settled: #146a44; --awaiting: #855600; --refused: #ae3328; --settled-lit: #4cc38a; --awaiting-lit: #e5b23a; --refused-lit: #ff8a7a;
  --l-1: inset 0 2px 8px #0000008c, inset 0 0 0 1px #000000b3, 0 1px 0 #ffffffb3;
  --l1: inset 0 1px 0 #ffffffe6, 0 0 0 1px #10141a12, 0 1px 2px #10141a14, 0 12px 28px -16px #10141a47;
  --key: inset 0 1px 0 #ffffffe6, 0 1px 1px #10141a29, 0 2px 6px -2px #10141a33;
  --key-down: inset 0 1px 3px #10141a4d;
  --l2: 0 10px 30px -18px #10141a66;
  --l3: 0 8px 20px #10141a24, 0 32px 80px -24px #10141a73;
  --well: inset 0 1px 3px #10141a38, inset 0 0 0 1px #10141a1f, 0 1px 0 #fffc;
  --scrim: #10141a52;
  --ring: 0 0 0 2px var(--bench), 0 0 0 3px var(--ink), 0 0 0 5px var(--bench), 0 0 0 6px var(--ink);
  --ring-display: 0 0 0 2px var(--display), 0 0 0 3px var(--on-display), 0 0 0 5px var(--display), 0 0 0 6px var(--on-display);
  --well-display: inset 0 1px 3px #0009, inset 0 0 0 1px var(--display-edge);
  --face: linear-gradient(180deg, #f7f8fa 0, var(--face-hi) 14px, var(--face-mid) 55%, var(--face-lo) 100%);
  --bezel: 0 0 0 1px #b8bec6, 0 0 0 2px #ffffffd9;
  --key-ink: linear-gradient(180deg, #2b2f35, #17191c);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1320px; --gutter: 24px; --margin: 32px; --rail-h: 60px; --dock-h: 0px; --radius: 4px;
}
@media (width <= 1099px) { :root { --margin: 24px; } }
@media (width <= 759px) { :root { --margin: 16px; --dock-h: calc(56px + env(safe-area-inset-bottom, 0px)); } }

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rail-h) + 16px); }
body { margin: 0; background: var(--bench); color: var(--ink); font: 400 17px/28px var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: var(--dock-h); overflow-x: hidden; }
@media (width <= 759px) { body { font-size: 16px; line-height: 26px; } }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::placeholder { color: var(--label); opacity: 1; }
.display ::placeholder { color: var(--on-display-2); }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bench); }
:focus-visible { outline: none; box-shadow: var(--ring); }
.display :focus-visible { box-shadow: var(--ring-display); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
h1, .h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.035em; }
h2, .h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
h3, .h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.lede { color: var(--ink-2); max-width: 34em; font-size: 19px; line-height: 30px; text-wrap: pretty; }
@media (width <= 759px) { .lede { font-size: 17px; line-height: 27px; } }
.label { color: var(--label); font-size: 13px; font-weight: 500; line-height: 18px; }
.muted { color: var(--label); }
.small { font-size: 14px; line-height: 21px; }
.mono, code, kbd { font-family: var(--mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.live-num { font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-weight: 600; }
.live-num small { margin-left: .35em; font-size: max(12px, .42em); font-weight: 500; letter-spacing: 0; white-space: nowrap; }
code.inline { background: var(--paper); box-shadow: var(--well); border-radius: 3px; padding: 1px 6px; font-size: .86em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); padding: 0 var(--margin); margin: 0 auto; }
.section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
@media (width <= 1099px) { .section { padding: 72px 0; } .section--tight { padding: 48px 0; } }
@media (width <= 759px) { .section { padding: 48px 0; } .section--tight { padding: 32px 0; } }

/* surfaces */
.face, .card { background: var(--face); box-shadow: var(--l1); border-radius: 6px; position: relative; }
.plate { background: var(--plate); box-shadow: var(--l1); border-radius: 6px; }
.paper { background: var(--paper); border-radius: 6px; box-shadow: 0 0 0 1px #10141a0f; }
.display { background: var(--display); color: var(--on-display); box-shadow: var(--l-1), var(--bezel); border-radius: 6px; position: relative; overflow: clip; }
.display::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; pointer-events: none; background: linear-gradient(#ffffff0d, #0000); }
.display__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 0 14px; border-bottom: 1px solid #ffffff14; color: var(--on-display-2); font-size: 13px; flex-wrap: wrap; }
.display__bar b { color: var(--on-display); font-weight: 600; }
.display a { color: var(--on-display); }
.display .muted, .display .label { color: var(--on-display-2); }
.art { background: var(--face); box-shadow: var(--l1); border-radius: 6px; overflow: hidden; position: relative; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.is-missing { background: radial-gradient(120% 90% at 30% 20%, #fbfcfd, #e3e6ea 60%, #d6dade); }
.art.is-missing img { display: none; }

/* keys */
.key, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius);
  background: var(--face); box-shadow: var(--key); color: var(--ink); font: 600 15px/1 var(--sans); white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  transition: transform 80ms, box-shadow 80ms, background .15s; }
.key:hover { background: linear-gradient(180deg, #f5f6f8, var(--face-lo)); }
.key:active, .key[aria-pressed=true], .key[aria-selected=true], .key.is-down { box-shadow: var(--key-down); background: var(--face-lo); transform: translateY(1px); }
.key--ink { background: var(--key-ink); color: #f5f6f8; box-shadow: inset 0 1px #ffffff24, 0 1px 1px #10141a4d, 0 2px 6px -2px #10141a59; }
.key--ink:hover { background: linear-gradient(#34383f, #1c1f23); }
.key--ink:active { background: #17191c; box-shadow: inset 0 1px 3px #0009; }
.key--sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
@media (pointer: coarse) { .key, .key--sm { min-height: 44px; } }
.key[disabled], .key[aria-disabled=true] { cursor: not-allowed; color: var(--label); box-shadow: none; outline: 1px dashed var(--edge); outline-offset: -1px; background: none; transform: none; }
.display .key:not(.key--ink) { color: var(--on-display); background: linear-gradient(#2a2e34, #202328); box-shadow: inset 0 1px #ffffff14, 0 1px 1px #00000080; }
.display .key:not(.key--ink):hover { filter: brightness(1.18); }
.display .key:not(.key--ink):active, .display .key[aria-pressed=true], .display .key[aria-selected=true] { background: #181a1e; box-shadow: inset 0 1px 3px #000000b3; filter: none; }
.display .key[disabled] { color: var(--on-display-2); outline: 1px dashed var(--display-edge); background: none; box-shadow: none; }
.key--dash { outline: 1px dashed var(--edge); outline-offset: -1px; background: none; box-shadow: none; color: var(--label); }

/* fields */
.field { display: grid; gap: 6px; }
.field > span:first-child, .field > label { color: var(--label); font-size: 13px; font-weight: 500; }
.display .field > span:first-child, .display .field > label { color: var(--on-display-2); }
.well, .field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--radius); background: var(--paper); box-shadow: var(--well); font-size: 16px; line-height: 22px; }
.field textarea, textarea.well { resize: vertical; }
.display .well, .display select, .display input, .display textarea { background-color: var(--display-bay); color: var(--on-display); box-shadow: var(--well-display); }
select.well, .field select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23565D67' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; }
.display select { appearance: none; color-scheme: dark; padding-right: 36px; cursor: pointer;
  background: var(--display-bay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%239EA6AF' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; }
.display option { color: var(--ink); background: var(--paper); }
.well:focus-visible, .field :is(input, select, textarea):focus-visible { box-shadow: var(--well), var(--ring); }
.display .well:focus-visible, .display :is(input, select, textarea):focus-visible { box-shadow: var(--well-display), var(--ring-display); }
.unit { position: relative; } .unit input { text-align: right; padding-right: 52px; font-variant-numeric: tabular-nums; } .unit i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 12px var(--sans); color: var(--label); font-style: normal; }

/* lamps, ball, meter */
.lamp { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; }
.lamp::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: calc(.5lh - 4px); border-radius: 1px; background: var(--edge); box-shadow: inset 0 0 0 1px #00000026; }
.lamp--settled { color: var(--settled); } .lamp--settled::before { background: var(--settled); }
.lamp--awaiting { color: var(--awaiting); } .lamp--awaiting::before { background: var(--awaiting); }
.lamp--refused { color: var(--refused); } .lamp--refused::before { background: var(--refused); }
.display .lamp--settled { color: var(--settled-lit); } .display .lamp--settled::before { background: var(--settled-lit); box-shadow: 0 0 0 1px #4cc38a40; }
.display .lamp--awaiting { color: var(--awaiting-lit); } .display .lamp--awaiting::before { background: var(--awaiting-lit); }
.display .lamp--refused { color: var(--refused-lit); } .display .lamp--refused::before { background: var(--refused-lit); }
.ball { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 14%, #0000 22%), linear-gradient(#f4f5f7 0%, #c9ccd1 46%, #5d6168 52%, #a7abb1 78%, #e6e8eb 100%);
  box-shadow: 0 1px 2px #10141a59, inset -1px -1px 1px #ffffff80; }
.meter { position: relative; height: 10px; }
.meter::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 4px; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.meter .ball { position: absolute; top: -1px; left: clamp(0px, calc(var(--v, 0) * 100% - 5px), calc(100% - 10px)); transition: left .28s; }
.display .meter::before { border-color: var(--display-edge); }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--label); font-size: 13px; font-weight: 500; padding: 10px 12px 10px 0; }
.table thead th { position: sticky; top: var(--rail-h); z-index: 1; background-color: var(--bench); padding-bottom: 14px;
  background-image: linear-gradient(var(--edge), var(--edge)), linear-gradient(var(--edge), var(--edge)); background-position: 0 100%, 0 calc(100% - 3px); background-repeat: no-repeat; background-size: 100% 1px; }
.table tbody th { font-size: inherit; color: var(--ink); font-weight: 600; }
.table td, .table tbody th { border-bottom: 1px solid var(--hair); vertical-align: middle; height: 44px; padding: 10px 12px 10px 0; }
.table .num { text-align: right; }
.table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.display .table thead th { position: static; background-color: transparent; color: var(--on-display-2); background-image: linear-gradient(var(--display-edge), var(--display-edge)), linear-gradient(var(--display-edge), var(--display-edge)); }
.display .table tbody th { color: var(--on-display); }
.display .table td, .display .table tbody th { border-color: #ffffff14; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 3px; background: var(--paper); box-shadow: 0 0 0 1px var(--hair); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
pre.code { margin: 0; padding: 16px 18px; border-radius: 6px; background: var(--display); color: var(--on-display); box-shadow: var(--l-1); font: 14px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
pre.code .c { color: var(--on-display-2); } pre.code .k { color: #fff; font-weight: 600; }
.hair { border-top: 1px solid var(--hair); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 5px; background: var(--face-lo); box-shadow: var(--well); }
.seg button { border: 0; background: none; min-height: 34px; padding: 0 12px; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.seg button .n { color: var(--label); font-size: 13px; margin-left: 6px; }
.seg button[aria-pressed=true] { background: var(--face); box-shadow: var(--key); color: var(--ink); font-weight: 600; }
.display .seg { background: var(--display-bay); box-shadow: var(--well-display); }
.display .seg button { color: var(--on-display-2); }
.display .seg button[aria-pressed=true] { background: linear-gradient(#2a2e34, #202328); box-shadow: inset 0 1px #ffffff14, 0 1px 1px #00000080; color: var(--on-display); }

/* overlay, toast */
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim); }
.dialog { position: fixed; z-index: 81; top: 12vh; left: 50%; transform: translate(-50%); width: min(640px, 100vw - 32px); max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border-radius: 8px; box-shadow: var(--l3); }
@media (width <= 759px) { .dialog { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 86vh; border-radius: 10px 10px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); } }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + var(--dock-h)); transform: translate(-50%); max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 6px; background: var(--display); color: var(--on-display); box-shadow: var(--l3); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--l3); text-decoration: none; }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; } }

/* rail (top nav) */
.rail { position: sticky; top: 0; z-index: 50; height: var(--rail-h); background: var(--face); box-shadow: inset 0 1px #fffffff2; transition: box-shadow .2s; }
.rail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--edge); }
.rail.is-over { box-shadow: inset 0 1px 0 #fffffff2, var(--l2); }
.rail__in { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); text-decoration: none; }
.brand__mark { width: 22px; height: 24px; color: #2a2e34; filter: drop-shadow(0 1px #ffffffd9); }
.brand__word { font-size: 21px; font-weight: 650; letter-spacing: -.035em; }
.brand:hover .brand__word { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rail__keys { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.rail__key.is-on:not(.key--ink) { box-shadow: var(--key-down); background: var(--face-lo); transform: translateY(1px); }
.rail__key .ball { width: 7px; height: 7px; }
.rail__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-well { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 200px; min-height: 36px; padding: 0 8px 0 12px; border: 0; border-radius: var(--radius); background: var(--bench); box-shadow: var(--well); color: var(--label); font-size: 14px; text-align: left; }
.search-well:hover { color: var(--ink); background: #f7f8f9; }
.search-well kbd { padding: 2px 6px; border-radius: 3px; background: var(--face); box-shadow: var(--key); font: 600 12px var(--sans); color: var(--ink-2); }
.icon-key { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--face); box-shadow: var(--key); color: var(--ink); }
.icon-key:hover { background: linear-gradient(180deg, #f5f6f8, var(--face-lo)); }
.icon-key:active { box-shadow: var(--key-down); transform: translateY(1px); }
.icon-key svg { width: 15px; height: 15px; }
@media (width <= 1099px) { .search-well { width: auto; } }
@media (width <= 759px) {
  .rail { position: relative; height: 52px; }
  .rail__keys, .rail__end .icon-key { display: none; }
  .search-well kbd { display: none; }
  .search-well { min-height: 40px; }
}

/* token bar */
.tok { background: linear-gradient(180deg, var(--display-bay), var(--display)); color: var(--on-display); font-size: 14px; }
.tok__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.tok__name b { font-weight: 700; }
.tok__label { color: var(--on-display-2); }
.tok__ca { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; margin-left: -10px; padding: 0 8px 0 10px; border: 0; border-radius: 6px; background: none; color: var(--on-display); cursor: pointer; }
.tok__ca code { font-size: 13.5px; letter-spacing: .01em; }
.tok__ca:hover { background: #ffffff14; }
.tok__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--display-edge); border-radius: 6px; }
.tok__icon svg { width: 14px; height: 14px; }
.tok__soon { color: var(--on-display-2); }
.tok__ca-short { display: none; }
@media (width <= 759px) {
  .tok__label, .tok__chain { display: none; }
  .tok__in { flex-wrap: nowrap; justify-content: space-between; }
  .tok__ca-full { display: none; } .tok__ca-short { display: inline; }
}

/* mobile dock */
.dock { display: none; }
@media (width <= 759px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; height: var(--dock-h);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--face); box-shadow: inset 0 1px 0 #fffffff2, 0 -1px 0 var(--edge), 0 -10px 30px -18px #10141a66; }
  .dock__key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; border: 0; border-radius: var(--radius); background: none; color: var(--ink-2); font: 600 11px/1 var(--sans); text-decoration: none; }
  .dock__key svg { width: 20px; height: 20px; }
  .dock__key[aria-current=page] { background: var(--face-lo); box-shadow: var(--key-down); color: var(--ink); }
  .dock__key--ink { background: var(--key-ink); color: #f5f6f8; box-shadow: inset 0 1px #ffffff24; }
  .dock__key--ink[aria-current=page] { background: #17191c; color: #f5f6f8; }
}

/* search + menu dialogs */
.search__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; padding: 12px 14px 14px; border-bottom: 1px solid var(--hair); }
.search__label { grid-column: 1 / -1; }
.search__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.search__list a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; }
.search__list a span { color: var(--label); font-size: 13px; }
.search__list li[aria-selected=true] a { background: var(--bench); box-shadow: inset 3px 0 0 var(--ink); }
.search__none { padding: 16px 12px; color: var(--label); }
.search__hint { padding: 10px 16px; border-top: 1px solid var(--hair); }
.menu-sheet nav { display: grid; padding: 6px; overflow-y: auto; }
.menu-sheet nav a { display: grid; gap: 2px; padding: 12px; border-radius: var(--radius); text-decoration: none; }
.menu-sheet nav a span { color: var(--label); font-size: 13px; }
.menu-sheet nav a[aria-current=page] { background: var(--face-lo); }

/* footer */
.foot { padding: 72px 0 32px; }
.foot__plate { display: grid; grid-template-columns: minmax(18em, 1fr) minmax(0, auto); gap: 18px 32px; padding: 24px 28px; }
.foot__id { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.foot__id .brand__mark { flex: none; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 28px; font-size: 15px; }
.foot__links p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.foot__links a { font-weight: 500; text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--ink-2); }
.foot__x svg { width: 18px; height: 18px; }
.foot__token, .foot__status { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--hair); }
.foot__token { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.foot__ca { overflow-wrap: anywhere; color: var(--ink); }
.foot__copy { min-height: 32px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 6px; background: none; color: var(--ink); }
.foot__copy:hover { border-color: var(--ink-2); }
.foot__legal { margin-top: 16px; padding: 0 4px; }
@media (width <= 1099px) { .foot__plate { grid-template-columns: 1fr; } .foot__links { justify-content: flex-start; } }

/* page heads (Tools, Budget, Activity) */
.phead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding: 56px 0 32px; }
.phead h1 { grid-column: 1 / 7; font-size: clamp(48px, 6vw, 88px); letter-spacing: -.045em; line-height: .95; }
.phead__sub { grid-column: 7 / 13; display: grid; gap: 10px; }
.phead__sub .lede { max-width: none; }
@media (width <= 899px) { .phead { grid-template-columns: 1fr; row-gap: 16px; padding-top: 36px; } .phead h1, .phead__sub { grid-column: 1 / -1; } }

/* ------- home ------- */
.hero { padding-top: 48px; }
.hero__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); grid-template-areas: "h h h h h h h s s s s s" "f f f f f f f f f f f f"; align-items: start; }
.hero__h { grid-area: h; max-width: 9em; padding-bottom: .06em; font-size: clamp(48px, 6.2vw, 96px); font-weight: 650; line-height: .94; letter-spacing: -.04em; color: var(--ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__h, .phead h1 { background: linear-gradient(#3a4048 0%, #101215 30% 50%, #6b737d 56%, #2a2f36 64%, #101215 100%) 0 0 / 100% .94em repeat-y; color: #0000; -webkit-background-clip: text; background-clip: text; }
}
.hero__sub { grid-area: s; padding-top: 6px; }
.hero__keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.qf { grid-area: f; margin-top: 40px; padding: 14px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.qf__zones { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); }
.qd { display: grid; grid-template: "tool ms" "price price" "from from" "terms terms" "state state" 1fr "note note" / minmax(0, 1fr) auto; container-type: inline-size; }
.qd__tool, .qd__ms { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid #ffffff14; color: var(--on-display-2); font-size: 13px; }
.qd__tool { grid-area: tool; gap: 10px; min-width: 0; padding: 0 8px 0 14px; }
.qd__tool select { min-height: 32px; max-width: 360px; min-width: 0; padding: 0 34px 0 10px; border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.qd__ms { grid-area: ms; justify-content: flex-end; padding: 0 14px 0 8px; white-space: nowrap; }
.qd__ms b { color: var(--on-display); }
.qd__price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .12em; padding: 26px 20px 0; font-size: clamp(56px, 15cqi, 104px); line-height: .95; color: var(--on-display); }
.qd__price small { color: var(--on-display-2); margin-left: 0; }
.qd__from { grid-area: from; min-height: 56px; max-width: 44em; padding: 14px 20px 0; color: var(--on-display-2); font-size: 14px; line-height: 21px; }
.qd__terms { grid-area: terms; min-height: 23px; padding: 4px 20px 0; color: var(--on-display-2); font-size: 13px; line-height: 19px; }
.qd__terms code { color: var(--on-display); font-size: 12.5px; }
.qd__state { grid-area: state; display: grid; align-content: start; justify-items: start; gap: 6px; padding: 18px 20px 0; min-height: 65px; }
.qd__verdict { font-size: 15px; line-height: 22px; }
.qd__src { max-width: 44em; color: var(--on-display-2); font-size: 13px; line-height: 19px; }
.qd__note { grid-area: note; margin-top: 18px; padding: 12px 20px 14px; border-top: 1px solid #ffffff14; color: var(--on-display-2); font-size: 13px; line-height: 19px; }
.qr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "gauge meters" "gauge later"; align-content: center; align-items: center; gap: 18px 12px; padding: 6px 6px 6px 0; }
.gauge-wrap { grid-area: gauge; padding: 26px 40px 28px 48px; }
.gauge { position: relative; width: 230px; aspect-ratio: 300 / 240; }
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px #ffffffe6); }
.gauge__lbl { position: absolute; color: var(--label); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; transform: translate(-50%, -50%); }
.gauge__lbl.is-on { color: var(--ink); font-weight: 600; }
.qr__later { grid-area: later; display: flex; align-items: center; gap: 8px; color: var(--label); font-size: 12px; line-height: 16px; }
.qr__later i { flex: none; width: 7px; height: 7px; outline: 1px dashed var(--edge); outline-offset: -1px; }
.qm { grid-area: meters; display: grid; gap: 16px; width: 100%; }
.qm__m { display: grid; gap: 9px; }
.qm__lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--label); font-size: 13px; line-height: 18px; }
.qm__lbl span + span { color: var(--ink-2); white-space: nowrap; }
.qm__lbl b { color: var(--ink); font-size: 15px; }
.qm__m.is-over .qm__lbl b, .qm__m.is-over .qm__lbl span + span { color: var(--refused); }
.qf__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 14px; padding: 12px 4px 0; border-top: 1px solid var(--hair); }
.qf__spec { color: var(--label); font-size: 13px; line-height: 18px; }
.qf__spec code { color: var(--ink-2); font-size: 12.5px; }
@media (width <= 1239px) {
  .qr { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gauge" "later" "meters"; padding: 4px 4px 4px 0; }
  .gauge-wrap { justify-self: center; padding: 22px 44px 22px 50px; } .gauge { width: 210px; } .qr__later { justify-self: center; }
}
@media (width <= 899px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "s" "f"; }
  .hero__sub { max-width: 34em; margin-top: 18px; padding-top: 0; } .qf { margin-top: 32px; }
}
@media (width <= 759px) {
  .hero { padding-top: 20px; }
  .hero__in { grid-template-areas: "h" "f" "s"; }
  .hero__keys { display: none; } .hero__sub { margin-top: 22px; }
  .qf { margin-top: 18px; padding: 10px; }
  .qd { grid-template-areas: "ms ms" "price price" "from from" "terms terms" "state state" "tool tool" "note note"; }
  .qd__tool { display: grid; gap: 6px; min-height: 0; padding: 18px 20px 0; border-bottom: 0; }
  .qd__tool select { width: 100%; max-width: none; min-height: 44px; }
  .qd__ms { justify-content: flex-start; padding-left: 20px; }
}
@media (width <= 559px) {
  .hero__h { font-size: 40px; }
  .qf__zones { grid-template-columns: minmax(0, 1fr); }
  .qd__price, .qd__from, .qd__terms, .qd__state, .qd__tool, .qd__note { padding-left: 16px; padding-right: 16px; }
  .qd__ms { padding-left: 16px; }
  .gauge { width: 180px; } .gauge-wrap { padding: 22px 30px; }
}
.rails2__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.rails2__text { grid-column: 1 / 5; } .rails2__text .lede { margin-top: 18px; }
.lead { grid-column: 5 / 13; justify-self: end; width: 100%; max-width: 900px; margin: 0; }
.lead .art { aspect-ratio: 16 / 10; }
.lead__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; filter: drop-shadow(0 1px #ffffffe6); }
.lead__lines path { fill: none; stroke: var(--ink-2); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.lead__end { position: absolute; width: 7px; height: 7px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); transform: translate(-50%, -50%); }
.lead__cap { position: absolute; inset: 0; pointer-events: none; }
.lead__keys { list-style: none; margin: 0; padding: 0; }
.lead__key { position: absolute; transform: translateY(-50%); color: var(--ink-2); font-size: 13px; line-height: 18px; white-space: nowrap; text-align: right; }
.lead__key--l { text-align: left; }
.lead__key b { color: var(--ink); font-weight: 600; }
@media (width <= 1099px) { .rails2__in { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } .rails2__text, .lead { grid-column: 1 / -1; } .lead { justify-self: start; } }
@media (width <= 639px) {
  .lead .art { aspect-ratio: auto; } .lead .art img { aspect-ratio: 16 / 10; height: auto; }
  .lead__lines { height: auto; aspect-ratio: 16 / 10; bottom: auto; }
  .lead__cap { position: static; pointer-events: auto; padding: 14px 16px 16px; }
  .lead__keys { display: grid; gap: 6px; }
  .lead__key { position: static !important; transform: none; white-space: normal; text-align: left; }
  .lead__end { display: none; } .lead__lines { display: none; }
}
.caps__head { max-width: 40rem; } .caps__head .lede { margin-top: 16px; }
.capf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); margin-top: 40px; padding: 18px; }
.capf__knob { display: grid; justify-items: center; align-content: center; gap: 16px; padding: 20px 16px 18px; border-radius: var(--radius); background: var(--face-mid); box-shadow: inset 0 0 0 1px #10141a0f; }
.seat { position: relative; width: min(100%, 320px); aspect-ratio: 1; touch-action: none; user-select: none; cursor: grab; }
.seat.is-turning { cursor: grabbing; }
.seat__dial { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; border-radius: 50%; transition: transform .12s;
  background: radial-gradient(circle at 50% 50%, #0000 60%, #00000014 70%), conic-gradient(from 0deg, #f3f4f6, #b9bec5, #eef0f3, #a8adb4, #f6f7f9, #b5bac1, #eceef1, #aeb3ba, #f3f4f6);
  box-shadow: 0 1px 0 #fff, 0 12px 24px -10px #10141a80, inset 0 0 0 1px #10141a26; }
.seat__dial::after { content: ""; position: absolute; left: 50%; top: 7%; width: 4px; height: 18%; margin-left: -2px; border-radius: 2px; background: #3a3f46; box-shadow: 0 1px 0 #fff8; }
.seat__dial img { position: absolute; inset: -16%; width: 132%; max-width: none; height: 132%; clip-path: circle(38% at 50% 50%); }
.seat.has-img .seat__dial { inset: 0; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--radius); background: none; box-shadow: none; transform: none !important; overflow: hidden; }
.seat.has-img .seat__dial::after, .seat.has-img .seat__ticks, .seat.has-img .seat__lbl { display: none; }
.seat.has-img .seat__dial img { inset: 0; width: 100%; height: 100%; clip-path: none; object-fit: cover; }
.seat__ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seat__ticks line { stroke: var(--edge); stroke-width: 1.5; } .seat__ticks line.on { stroke: var(--ink); }
.seat__lbl { position: absolute; transform: translate(-50%, -50%); color: var(--label); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; pointer-events: none; }
.capf__set { display: flex; align-items: center; gap: 12px; }
.capf__step { width: 44px; min-height: 44px; padding: 0; font-size: 20px; font-weight: 500; }
.capf__val { display: flex; justify-content: center; align-items: baseline; gap: 6px; min-width: 160px; }
.capf__val b { font-size: 30px; line-height: 1; } .capf__val span { color: var(--label); font-size: 14px; }
.capf__side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; min-width: 0; }
.capf__budget { justify-self: end; }
.rulerd { display: grid; grid-template-rows: auto minmax(170px, 1fr) auto; }
.ruler { --step: 7px; position: relative; margin: 18px 30px 0; min-height: 150px; }
@media (width >= 900px) { .ruler { --step: 9px; } }
.ruler__axis { position: absolute; inset: 22px 0 34px; border-bottom: 1px solid var(--display-edge); }
.ruler__tick { position: absolute; top: 100%; width: 1px; height: 5px; margin-top: 1px; background: var(--display-edge); transform: translate(-50%); }
.ruler__tick--decade { height: 9px; background: var(--on-display-2); }
.ruler__stack { position: absolute; bottom: 2px; display: flex; flex-direction: column-reverse; gap: 1px; width: 4px; transform: translate(-50%); }
.ruler__stack i { height: calc(var(--step) - 1px); background: var(--on-display); }
.ruler__stack.is-over i { background: var(--display-edge); }
.ruler__count { position: absolute; bottom: calc(var(--n, 1) * var(--step) + 5px); transform: translate(-50%); color: var(--on-display-2); font-size: 11px; font-weight: 600; line-height: 13px; }
.ruler__cap { position: absolute; top: -14px; bottom: -1px; width: 5px; border-left: 1px solid var(--on-display); border-right: 1px solid var(--on-display); transform: translate(-50%); transition: left .12s; }
.ruler__cap b { position: absolute; top: -6px; left: calc(100% + 6px); color: var(--on-display); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.ruler__cap.is-flip b { left: auto; right: calc(100% + 6px); }
.ruler__scale { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.ruler__scale span { position: absolute; transform: translate(-50%); color: var(--on-display-2); font-size: 12px; line-height: 18px; white-space: nowrap; }
.rulerd__sum { padding: 14px 18px 16px; border-top: 1px solid #ffffff14; color: var(--on-display); font-size: 16px; line-height: 24px; }
.rulerd__sum b { font-variant-numeric: tabular-nums; font-weight: 600; }
.rulerd__sum a { text-decoration: underline; }
@media (width <= 899px) { .capf { grid-template-columns: minmax(0, 1fr); } }
@media (width <= 559px) { .capf { margin-top: 28px; padding: 10px; } .seat { width: min(100%, 264px); } .ruler { margin: 16px 20px 0; } .ruler__stack { width: 3px; } .capf__budget { justify-self: stretch; } .ruler__scale span:nth-child(even) { display: none; } }
.spec__h { max-width: 18em; }
.spec__log { display: grid; row-gap: 26px; margin-top: 40px; }
.spec__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); align-items: start; }
.spec__turn { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; max-width: 720px; }
.spec__who { padding-top: 5px; }
.spec__text { font-size: 17px; line-height: 28px; text-wrap: pretty; }
.spec__note { position: relative; max-width: 24em; padding: 4px 0 0 48px; color: var(--ink-2); font-size: 14px; line-height: 21px; }
.spec__note::before { content: ""; position: absolute; top: 15px; left: calc(-1 * var(--gutter)); width: calc(var(--gutter) + 36px); border-top: 1px solid var(--edge); }
.spec__try { margin-top: 30px; padding-left: 76px; font-weight: 600; }
.sq { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "logo tool price" "logo net verdict" "keys keys keys" "spec spec spec"; align-items: center; gap: 6px 14px; padding: 16px 18px 14px; }
.sq__logo { grid-area: logo; align-self: start; width: 28px; height: 28px; margin-top: 2px; color: var(--ink); }
.sq__tool { grid-area: tool; display: grid; gap: 2px; min-width: 0; } .sq__tool b { font-weight: 600; } .sq__tool span { color: var(--label); font-size: 13px; line-height: 18px; }
.sq__price { grid-area: price; justify-self: end; font-size: 34px; line-height: 1; white-space: nowrap; }
.sq__net { grid-area: net; color: var(--ink-2); font-size: 14px; }
.sq__verdict { grid-area: verdict; justify-self: end; font-size: 13px; }
.sq__keys { grid-area: keys; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.sq__key { display: inline-block; padding: 9px 14px; border-radius: var(--radius); outline: 1px dashed var(--edge); outline-offset: -1px; color: var(--label); font-size: 14px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.sq__spec { grid-area: spec; justify-self: end; }
@media (width <= 899px) {
  .spec__row { grid-template-columns: minmax(0, 1fr); }
  .spec__note { max-width: 32em; margin: 10px 0 0 76px; padding: 0; }
  .spec__note::before { top: -7px; left: -20px; width: 12px; height: 18px; border-top: 0; border-left: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
}
@media (width <= 559px) {
  .spec__turn { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } .spec__who { padding-top: 0; } .spec__note { margin-left: 22px; } .spec__try { padding-left: 0; }
  .sq { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "logo tool" "price price" "net net" "verdict verdict" "keys keys" "spec spec"; padding: 14px; }
  .sq__price, .sq__spec, .sq__verdict { justify-self: start; } .sq__keys { justify-content: flex-start; }
}
.nr__text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 16px; align-items: end; }
.nr__text h2 { grid-column: 1 / 6; } .nr__text .lede { grid-column: 6 / 12; }
.act { margin-top: 28px; }
.act__table { font-size: 14px; }
.act__table th, .act__table td { height: 40px; padding: 9px 12px; }
.act__table th:first-child, .act__table td:first-child { padding-left: 18px; }
.act__table th:last-child, .act__table td:last-child { padding-right: 18px; }
.act__table tr:last-child td { border-bottom: 0; }
.act__time { white-space: nowrap; } .act__time .ball { vertical-align: -1px; margin-right: 8px; }
.act__empty { padding: 18px; color: var(--on-display-2); }
.act__more { margin-top: 14px; font-weight: 600; }
@media (width <= 759px) { .nr__text { grid-template-columns: minmax(0, 1fr); } .nr__text h2, .nr__text .lede { grid-column: 1 / -1; } .act__net, .act__payer { display: none; } }
@media (width <= 559px) {
  .act__table, .act__table tbody { display: block; } .act__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .act__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 16px; border-bottom: 1px solid #ffffff14; }
  .act__table td, .act__table td:first-child, .act__table td:last-child { height: auto; padding: 0; border: 0; }
  .act__table td:nth-child(2) { grid-area: 1 / 1; } .act__table td.num { grid-area: 1 / 2; }
  .act__table .act__time { grid-area: 2 / 1; color: var(--on-display-2); font-size: 13px; } .act__table td:last-child { grid-area: 2 / 2; font-size: 13px; }
}
.hold__head { max-width: 44rem; } .hold__head .lede { margin-top: 16px; }
.hold__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: start; margin-top: 40px; }
.hold__tiers thead th { position: static; }
.hold__tiers td, .hold__tiers tbody th { padding: 14px 12px 14px 0; }
.hold__check { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 18px; }
.hold__out { grid-column: 1 / -1; color: var(--ink-2); overflow-wrap: anywhere; font-size: 14px; line-height: 21px; }
.hold__how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: 32px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; line-height: 21px; }
.hold__how b { display: block; margin-bottom: 4px; color: var(--ink); }
@media (width <= 899px) { .hold__body, .hold__how { grid-template-columns: 1fr; } }
.dev__head { max-width: 42rem; } .dev__head .lede { margin-top: 16px; }
.dev__d { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-top: 36px; }
.dev__ways { min-width: 0; border-right: 1px solid #ffffff14; }
.dev__bar { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.dev__tabs { display: flex; gap: 4px; } .dev__tabs .key { min-width: 58px; }
.dev__tabs .key[aria-selected=false] { color: var(--on-display-2); }
.dev__way { display: grid; align-content: start; gap: 14px; padding: 18px; }
pre.code.dev__code { background: var(--display-bay); box-shadow: inset 0 0 0 1px #ffffff0f; font-size: 13.5px; white-space: pre; word-break: normal; }
.dev__how { max-width: 52em; color: var(--on-display-2); font-size: 14px; line-height: 21px; }
.dev__how code { color: var(--on-display); }
.dev__resp { display: flex; flex-direction: column; min-width: 0; }
pre.code.dev__resp-code { margin: 18px; max-height: 420px; overflow: auto; flex: 1 1 0; min-height: 260px; }
@media (width <= 899px) { .dev__d { grid-template-columns: minmax(0, 1fr); } .dev__ways { border-right: 0; border-bottom: 1px solid #ffffff14; } pre.code.dev__resp-code { min-height: 0; } }
@media (width <= 559px) { .dev__way { padding: 14px; } pre.code.dev__resp-code { margin: 14px; max-height: 360px; } }
.close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding: 22px 26px; }
.close__h { font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.015em; }
.close__keys { display: flex; flex-wrap: wrap; gap: 10px; }
@media (width <= 559px) { .close { padding: 18px; } .close__keys { width: 100%; } .close__keys .key { flex: 1; } }

/* ------- ask ------- */
.askp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 40px; }
.askp__main { max-width: 760px; width: 100%; justify-self: center; display: flex; flex-direction: column; min-height: calc(100vh - var(--rail-h) - 44px - 40px); }
.askp__head { display: grid; grid-template-columns: minmax(0, 1fr) 146px; gap: 24px; align-items: start; }
.askp__head h1 { font-size: clamp(36px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.04; }
.askp__head .lede { margin-top: 14px; }
.askp__tile { aspect-ratio: 146 / 192; border-radius: 6px; }
.askp__tile .mark { position: absolute; inset: 0; display: grid; place-items: center; color: #2a2e34; }
.askp__tile .mark svg { width: 64%; height: auto; filter: drop-shadow(0 1px #fff); }
.askp__tile:not(.is-missing) .mark { display: none; }
.briefs { margin-top: 34px; }
.briefs__list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.briefs__list button { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; width: 100%; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; font-size: 16px; line-height: 24px; }
.briefs__list button:hover { background: var(--plate); }
.briefs__list button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.briefs__list .tp { flex: none; color: var(--label); font-size: 14px; white-space: nowrap; } .briefs__list .tp b { color: var(--ink); margin-left: 6px; }
.chat { display: grid; gap: 22px; margin: 30px 0 10px; }
.turn { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
.turn__who { padding-top: 3px; }
.turn__text { overflow-wrap: anywhere; }
.turn--you .turn__text { font-weight: 500; }
.res { margin-top: 12px; padding: 14px 16px; }
.res p + p { margin-top: 10px; }
.res pre.code { margin-top: 10px; max-height: 420px; font-size: 13px; }
.res__meta { margin-top: 10px; color: var(--label); font-size: 13px; line-height: 19px; }
.composer { position: sticky; bottom: var(--dock-h); margin-top: auto; padding: 16px 0 18px; background: linear-gradient(#f2f3f500, var(--bench) 18px); border-top: 1px solid var(--hair); }
.composer__row { display: flex; gap: 10px; align-items: stretch; }
.composer textarea { flex: 1; min-height: 48px; }
.composer .key { min-height: 48px; outline: 1px dashed var(--edge); outline-offset: -1px; background: none; box-shadow: none; }
.composer .key:not([disabled]):hover { background: var(--plate); }
.pays { position: sticky; top: calc(var(--rail-h) + 16px); padding: 8px; }
.pays .display { font-size: 14px; line-height: 21px; }
.pays__blk { position: relative; padding: 14px 16px; border-bottom: 1px solid #ffffff14; }
.pays__blk:last-child { border-bottom: 0; }
.pays__blk h4 { margin-bottom: 8px; color: var(--on-display-2); font-size: 13px; font-weight: 500; }
.pays__big { font-size: 30px; line-height: 1.1; color: var(--on-display); }
.pays__list { list-style: none; margin: 0; padding: 0; }
.pays__list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #ffffff1f; }
.pays__list li:last-child { border-bottom: 0; }
.pays .seg { display: flex; } .pays .seg button { flex: 1; }
@media (width <= 1099px) { .askp { grid-template-columns: minmax(0, 1fr); } .pays { position: static; } .askp__main { min-height: 0; } }
@media (width <= 559px) { .askp__head { grid-template-columns: minmax(0, 1fr) 84px; } .turn { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } .briefs__list button { flex-direction: column; gap: 2px; } .briefs__list .tp { white-space: normal; } }

/* ------- tools ------- */
.tools__find { display: grid; gap: 18px; margin: 48px 0 18px; }
.tools__search { max-width: 420px; }
.tools__count { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 26px 0 8px; }
.tools__count b { font-weight: 600; }
.ttable td { font-size: 15px; } .ttable tbody tr { cursor: pointer; } .ttable tbody tr:hover td, .ttable tbody tr:hover th { background: var(--plate); }
.ttable .tname { display: flex; align-items: center; gap: 10px; font-weight: 600; } .ttable .tname svg { width: 20px; height: 20px; flex: none; color: var(--ink); }
.ttable .tsum { color: var(--label); font-size: 13px; line-height: 18px; font-weight: 400; margin-top: 2px; }
.ttable .ep { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
@media (width <= 759px) { .ttable .c-cat, .ttable .c-ep, .ttable .c-time { display: none; } }
.drawer { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); overflow: auto; background: var(--bench); box-shadow: var(--l3); padding: 24px 24px calc(24px + var(--dock-h)); }
.drawer__top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.drawer__top h2 { font-size: 32px; }
.drawer__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 20px; }
.drawer__facts b { display: block; font-size: 26px; letter-spacing: -.03em; }
.drawer form { display: grid; gap: 14px; margin-bottom: 16px; }

/* ------- budget ------- */
.steps { margin-bottom: 0; }
.step { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gutter); padding: 32px; border-top: 1px solid var(--hair); }
.steps__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 22px 32px; }
.steps__head h2 { font-size: 22px; letter-spacing: -.02em; }
.step__id { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.step__n { font-size: 52px; line-height: .9; font-weight: 600; letter-spacing: -.04em; color: var(--ink-2); }
.step__id h3 { font-size: 22px; }
.step__id .lamp { font-size: 13px; margin-top: 4px; }
.step__body { display: grid; gap: 18px; min-width: 0; }
.step__body > p { max-width: 42em; }
.step__keys { display: flex; flex-wrap: wrap; gap: 10px; }
.capgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.capgrid .seat { width: min(100%, 280px); }
.dcap__big { padding: 18px 18px 6px; font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.dcap__meter { margin: 18px 18px 0; }
.dcap__note { padding: 14px 18px 16px; color: var(--on-display-2); font-size: 14px; }
.cap2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.netrow b { display: block; } .netrow span { color: var(--label); font-size: 14px; }
.keybox { padding: 14px 16px; overflow-wrap: anywhere; font-size: 14px; }
.bullets { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 22px; }
@media (width <= 899px) { .step { grid-template-columns: 1fr; padding: 24px 18px; row-gap: 16px; } .steps__head { padding: 18px; } .capgrid, .cap2 { grid-template-columns: 1fr; } }

/* ------- activity ------- */
.acts__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; padding: 26px 28px 30px; border-bottom: 1px solid #ffffff14; }
.acts__h { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.03em; color: var(--on-display); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 96px; margin-top: 14px; border-bottom: 1px solid var(--display-edge); }
.bars i { flex: 1; min-height: 2px; background: var(--on-display-2); }
.bars i.is-on { background: var(--on-display); }
.acts__filters { display: grid; grid-template-columns: 1fr 1.3fr 2fr auto; gap: 18px; align-items: end; padding: 20px 28px; border-bottom: 1px solid #ffffff14; }
.acts__rows { padding: 0 28px 8px; }
.proofs { display: grid; gap: 8px; margin-top: 18px; }
.proof { padding: 12px 16px; }
.proof summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; cursor: pointer; }
.proof pre.code { margin-top: 10px; font-size: 12.5px; max-height: 360px; }
@media (width <= 899px) { .acts__top { grid-template-columns: 1fr; padding: 20px 18px; } .acts__filters { grid-template-columns: 1fr; padding: 18px; } .acts__rows { padding: 0 12px 8px; } }

/* ------- docs ------- */
.docs { display: grid; grid-template-columns: 200px minmax(0, 680px) minmax(0, 340px); gap: 48px; justify-content: space-between; padding-top: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--rail-h) + 24px); font-size: 14px; line-height: 20px; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--hair); }
.toc a { display: block; padding: 6px 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--ink); }
.doc h1 { font-size: clamp(48px, 5.2vw, 76px); letter-spacing: -.045em; line-height: .98; }
.doc h2 { margin: 80px 0 18px; padding-top: 40px; border-top: 1px solid var(--hair); }
.doc h3 { margin: 28px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p, .doc p + pre, .doc pre + p, .doc table + p { margin-top: 14px; }
.doc ol, .doc ul { padding-left: 20px; } .doc li + li { margin-top: 8px; }
.doc pre.code { margin-top: 14px; font-size: 13.5px; }
.doc code:not(pre code) { background: var(--paper); box-shadow: var(--well); border-radius: 3px; padding: 1px 6px; font-size: .84em; overflow-wrap: anywhere; }
.facts { width: 100%; margin-top: 24px; border-collapse: collapse; }
.facts th, .facts td { padding: 12px 12px 12px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; }
.facts th { width: 34%; font-weight: 500; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid var(--hair); }
.docside { position: sticky; top: calc(var(--rail-h) + 24px); }
.docside__n { padding: 14px 14px 0; font-size: 48px; line-height: 1; }
@media (width <= 1239px) { .docs { grid-template-columns: 190px minmax(0, 1fr); } .docside { display: none; } }
@media (width <= 899px) { .docs { grid-template-columns: minmax(0, 1fr); padding-top: 32px; } .toc { display: none; } .doc h2 { margin-top: 56px; padding-top: 28px; } }
.face .table thead th, .card .table thead th { position: static; background-color: transparent; }
.tok__soon-short { display: none; }
@media (width <= 759px) { .tok__soon-long { display: none; } .tok__soon-short { display: inline; } }
