/* Online Playground design system.
   Layout concept: white product site on a 12px rhythm. Graph-paper texture
   behind headers, black primary actions, one "safety orange" accent taken
   from the logo's first block, and a soft category hue for each toolbox. */
/* Fonts are self-hosted (Geist, SIL OFL, see /assets/fonts/OFL.txt) so the
   first paint never waits on a third-party stylesheet. The fallback face is
   Arial resized to Geist's metrics, so the swap does not move the layout. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/geist-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/geist-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"); ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }

:root {
  --bg: #ffffff;
  --bg-2: #f8f8fa;
  --bg-3: #f1f1f4;
  --ink: #0a0a0b;
  --ink-2: #3a3a42;
  --muted: #696975;
  --faint: #9b9ba7;
  --faint-text: #71717d; /* small grey text; --faint is for icons and placeholders */
  --line: #ececf0;
  --line-2: #dedee4;
  --accent: #ff4f00;
  --accent-text: #c23c00;
  --accent-soft: #fff1ea;
  --blue: #2457e6;
  --blue-soft: #edf2ff;
  --ok: #0a7a43;
  --ok-dot: #12b76a;
  --ok-soft: #e8f7ee;
  --warn: #9a5800;
  --warn-soft: #fff5e1;
  --bad: #c0282d;
  --bad-soft: #fdeced;

  --f: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgb(10 10 11 / 0.04);
  --sh-2: 0 1px 2px rgb(10 10 11 / 0.04), 0 8px 24px -8px rgb(10 10 11 / 0.1);
  --sh-3: 0 2px 6px rgb(10 10 11 / 0.04), 0 24px 56px -16px rgb(10 10 11 / 0.18);
  --sh-4: 0 4px 10px rgb(10 10 11 / 0.05), 0 40px 90px -24px rgb(10 10 11 / 0.28);
  --hdr: 64px;
  --gx: max(20px, env(safe-area-inset-left, 0px));
  --gx-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 64px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
body.lock { overflow: hidden; }
/* Keep the page still behind an open palette/menu so nothing repaints under the overlay */
body.lock .marquee-track, body.lock .upd { animation-play-state: paused; }
::selection { background: #ffd9c7; color: var(--ink); }
img, svg { max-width: 100%; }
svg { flex: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.88em; background: var(--bg-3); border-radius: 6px; padding: 0.1em 0.38em; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; font-size: 11px; font-weight: 500; color: var(--muted); background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; line-height: 1; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gx); padding-right: var(--gx-r); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--accent-text); letter-spacing: 0.02em; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.lnk { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.lnk svg { transition: transform 0.2s; }
.lnk:hover svg { transform: translateX(3px); }
.lnk:hover { color: var(--accent-text); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 500 15px/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(10 10 11 / 0.2); }
.btn-dark:hover:not(:disabled) { background: #26262c; }
.btn-dark kbd { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.18); color: #e4e4e8; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost:hover:not(:disabled) { border-color: #c9c9d1; background: var(--bg-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row.center { justify-content: center; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }

/* ---------- tiles and status ---------- */
.tile { --h: 222; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: hsl(var(--h) 85% 96%); color: hsl(var(--h) 62% 40%); box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 90%); }
.tile svg { width: 20px; height: 20px; }
.tile-xs { width: 22px; height: 22px; border-radius: 6px; }
.tile-xs svg { width: 13px; height: 13px; }
.tile-sm { width: 30px; height: 30px; border-radius: 8px; }
.tile-sm svg { width: 16px; height: 16px; }
.tile-lg { width: 48px; height: 48px; border-radius: 13px; }
.tile-lg svg { width: 24px; height: 24px; }
.tile-xl { width: 60px; height: 60px; border-radius: 16px; }
.tile-xl svg { width: 30px; height: 30px; }
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 500 12px/1 var(--f); color: var(--muted); background: var(--bg-3); white-space: nowrap; }

/* spotlight hover: a soft glow follows the pointer */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.25s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(255 79 0 / 0.07), transparent 55%); }
.spot:hover::before { opacity: 1; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.82); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.2s, background 0.2s; }
.hdr.scrolled, .hdr.open { border-bottom-color: var(--line); background: rgb(255 255 255 / 0.94); }
.hdr-bar { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 0; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink); }
.brand .mark { transition: transform 0.4s cubic-bezier(.2,.9,.3,1.3); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.hdr-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.nav-item:hover, .nav-item[aria-expanded="true"] { background: var(--bg-3); color: var(--ink); }
.nav-item[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-item .chev { transition: transform 0.2s; color: var(--faint); }
.nav-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kbar { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 12px; width: 220px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font-size: 14px; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; }
.kbar span { flex: 1; }
.kbar:hover { border-color: #c9c9d1; background: #fff; color: var(--ink-2); }
.kbar-wide { width: 100%; max-width: 300px; height: 40px; margin-top: 20px; }
.kbar-full { width: 100%; height: 48px; font-size: 16px; }
.hdr-menu { display: none; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 40px 60px -40px rgb(10 10 11 / 0.3); animation: drop 0.18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-in { display: grid; grid-template-columns: 260px minmax(0, 1fr) 290px; gap: 28px; padding-block: 20px 24px; }
.mega-cats { display: grid; align-content: start; gap: 1px; padding-right: 20px; border-right: 1px solid var(--line); }
.mega-cat, .mega-all { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.mega-cat > span:not(.tile) { flex: 1; }
.mega-cat em { font: 500 12px/1 var(--mono); font-style: normal; color: var(--faint-text); }
.mega-cat.on, .mega-cat:hover { background: var(--bg-3); color: var(--ink); }
.mega-all { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink); }
.mega-all span { flex: 1; }
.mega-all:hover { color: var(--accent-text); }
.mega-panel { display: grid; align-content: start; gap: 14px; animation: fadein 0.15s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.mp-head b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.mp-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.mp-tools a { display: grid; gap: 1px; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.mp-tools a:hover { background: var(--bg-2); }
.mp-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.mp-desc { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-feature { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg-2)); text-decoration: none; color: var(--ink); overflow: hidden; }
.mega-feature b { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.mf-desc { font-size: 13.5px; color: var(--muted); }
.mf-mock { display: grid; gap: 8px; width: 100%; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.mf-field { font: 500 14px/1 var(--mono); padding: 10px; border-radius: 8px; border: 1px solid var(--line-2); }
.mf-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-row em, .bvp-chips em { font: 500 11.5px/1 var(--mono); font-style: normal; padding: 5px 8px; border-radius: 6px; background: var(--bg-3); color: var(--ink-2); }
.mf-row em.ok, .bvp-chips em.ok { background: var(--ok-soft); color: var(--ok); }

/* mobile sheet */
.sheet { position: fixed; inset: var(--hdr) 0 0; z-index: 45; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); animation: fadein 0.15s; }
.sheet-in { padding-block: 16px 40px; display: grid; gap: 14px; }
.sheet-label { font: 500 12px/1 var(--mono); color: var(--faint-text); margin-top: 8px; }
.sheet-cats details { border-bottom: 1px solid var(--line); }
.sheet-cats summary { display: flex; align-items: center; gap: 12px; padding: 12px 2px; list-style: none; cursor: pointer; font-weight: 500; }
.sheet-cats summary::-webkit-details-marker { display: none; }
.sheet-cats summary > span:not(.tile) { flex: 1; }
.sheet-cats summary em { font: 500 12px/1 var(--mono); font-style: normal; color: var(--faint-text); }
.sheet-cats .chev { color: var(--faint); transition: transform 0.2s; }
.sheet-cats details[open] .chev { transform: rotate(180deg); }
.sheet-cats ul { padding: 0 0 12px 42px; display: grid; gap: 2px; }
.sheet-cats li a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.sheet-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 8px; }
.sheet-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }

/* command palette */
.palette { position: fixed; inset: 0; z-index: 100; }
.pal-backdrop { position: absolute; inset: 0; background: rgb(10 10 11 / 0.4); animation: fadein 0.15s; }
.pal-box { position: relative; width: min(640px, calc(100% - 32px)); margin: max(10vh, 24px) auto 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-4), 0 0 0 1px rgb(10 10 11 / 0.06); overflow: hidden; animation: pop 0.18s cubic-bezier(.2,.9,.3,1.15); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--faint); }
.pal-input input { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: transparent; font: 400 17px/1 var(--f); color: var(--ink); }
.pal-input input::placeholder { color: var(--faint); }
.pal-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pal-group { font: 500 12px/1 var(--mono); color: var(--faint-text); padding: 12px 10px 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); cursor: pointer; }
.pal-item[aria-selected="true"] { background: var(--bg-3); }
.pal-t { display: grid; flex: 1; min-width: 0; }
.pal-t b { font-weight: 500; font-size: 14.5px; }
.pal-t span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-enter { color: var(--faint); opacity: 0; }
.pal-item[aria-selected="true"] .pal-enter { opacity: 1; }
.pal-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 15px; }
.pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12px; color: var(--muted); }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- home: hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero { isolation: isolate; }
.hero::before { content: ""; position: absolute; left: 50%; top: 10%; z-index: -1; width: min(900px, 90vw); height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(255 79 0 / 0.08), transparent); pointer-events: none; }
.phead-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center -1px; }
.hero-in { display: grid; justify-items: center; text-align: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--sh-1); font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; margin-bottom: 28px; transition: border-color 0.15s; }
.hero-tag span { height: 26px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; }
.hero-tag:hover { border-color: #c9c9d1; }
.hero-tag svg { color: var(--faint); transition: transform 0.2s; }
.hero-tag:hover svg { transform: translateX(3px); }
.hero-h { font-size: clamp(42px, 3.6vw + 26px, 84px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.98; }
.hero-line { color: var(--faint); background: linear-gradient(90deg, #a3a3ad, #6f6f7a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-sub { margin-top: 22px; max-width: 620px; font-size: clamp(16px, 0.4vw + 15px, 19px); color: var(--muted); line-height: 1.55; }

/* omnibox */
.omni { width: 100%; max-width: 760px; margin-top: 36px; text-align: left; }
.omni-box { position: relative; display: flex; align-items: flex-start; gap: 4px; padding: 6px 8px 6px 18px; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--sh-3); transition: border-color 0.15s, box-shadow 0.15s; }
.omni-box:focus-within { border-color: #ff9c70; box-shadow: var(--sh-3), 0 0 0 5px rgb(255 79 0 / 0.1); }
.omni-ico { display: grid; place-items: center; height: 52px; color: var(--faint); }
.omni-box:focus-within .omni-ico { color: var(--accent); }
#omni-in { flex: 1; min-width: 0; min-height: 0; height: 52px; resize: none; border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent; font: 400 18px/26px var(--f); color: var(--ink); padding: 13px 8px; max-height: min(55vh, 440px); overflow-y: hidden; scrollbar-width: thin; }
#omni-in:focus-visible { outline: 0; box-shadow: none; }
#omni-in::placeholder { color: var(--faint); }
.omni-clear { display: grid; place-items: center; width: 36px; height: 36px; margin-top: 8px; border-radius: 10px; border: 0; background: var(--bg-3); color: var(--muted); cursor: pointer; }
.omni-clear:hover { background: var(--line-2); color: var(--ink); }
.omni-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.omni-try span { font: 500 12px/1 var(--mono); color: var(--faint-text); margin-right: 2px; }
.omni-try button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.omni-try button:hover { border-color: #ffb48f; color: var(--accent-text); background: var(--accent-soft); }
.omni-out { display: grid; gap: 12px; margin-top: 18px; }
.omni-out:empty { display: none; }
.oc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; animation: pop 0.2s ease-out; }
.oc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.oc-head .oc-title { display: grid; flex: 1; min-width: 0; }
.oc-head b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.oc-head small { font-size: 13px; color: var(--muted); }
.oc-badge { font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--bg-3); color: var(--muted); white-space: nowrap; }
.oc-badge.ok { background: var(--ok-soft); color: var(--ok); }
.oc-badge.warn { background: var(--warn-soft); color: var(--warn); }
.oc-badge.bad { background: var(--bad-soft); color: var(--bad); }
.oc-rows { margin: 0; display: grid; }
.oc-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 16px; }
.oc-row + .oc-row { border-top: 1px dashed var(--line); }
.oc-row dt { font-size: 13px; color: var(--muted); }
.oc-row dd { margin: 0; font: 500 14px/1.4 var(--mono); overflow-wrap: anywhere; min-width: 0; display: flex; align-items: center; gap: 10px; }
.oc-swatch { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(10 10 11 / 0.12); flex: none; }
.oc-copy { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.oc-copy:hover { border-color: #c9c9d1; }
.oc-copy.done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.oc-err { padding: 12px 16px; font: 500 13.5px/1.5 var(--mono); color: var(--bad); background: var(--bad-soft); }
.oc-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: var(--bg-2); border-top: 1px solid var(--line); }
.oc-act { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.oc-act:hover { border-color: #c9c9d1; }
.oc-act.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.oc-act.primary:hover { background: #26262c; }
.oc-act em { font-style: normal; font: 500 11px/1 var(--mono); color: var(--faint-text); }
.oc-list { display: grid; padding: 6px; }
.oc-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.oc-list a:hover { background: var(--bg-2); }
.oc-list .pal-t b { font-size: 14.5px; }

/* format marquee */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 10px; padding: 16px 5px; }
.marquee li { font: 500 13px/1 var(--mono); color: var(--ink-2); padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head > div { max-width: 640px; min-width: 0; }
.sec-head h2, .h2 { font-size: clamp(32px, 2.2vw + 20px, 52px); letter-spacing: -0.045em; line-height: 1.02; }
.sec-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.sec-head-sm h2 { font-size: clamp(26px, 1.2vw + 20px, 34px); }

/* recents */
.recent-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.recent-row a { display: flex; align-items: center; gap: 12px; flex: none; padding: 12px 16px 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14.5px; box-shadow: var(--sh-1); }
.recent-row a:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
#recent { padding-block: 56px 0; }

/* bento */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
.bento-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; min-width: 0; }
.bento-card:hover { border-color: var(--line-2); box-shadow: var(--sh-3); transform: translateY(-2px); }
.bento-card.b-xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(180deg, #fff 40%, var(--bg-2)); }
.bento-card.b-wide { grid-column: span 2; }
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bc-count { font: 500 12px/1 var(--mono); color: var(--muted); padding: 6px 8px; border-radius: 7px; background: var(--bg-3); }
.bc-text { display: grid; gap: 6px; }
.bc-text b { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.b-xl .bc-text b { font-size: clamp(22px, 1vw + 16px, 28px); }
.bc-text span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.bc-arrow { margin-top: auto; align-self: flex-end; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--faint); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.bento-card:hover .bc-arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }
.bv { display: block; }
.b-xl, .b-wide { position: relative; }
.bv-phone { display: grid; gap: 10px; margin-top: 8px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); max-width: 420px; }
.bvp-field { font: 500 19px/1 var(--mono); padding: 14px; border-radius: 10px; border: 1px solid var(--line-2); letter-spacing: 0.01em; }
.bvp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bvp-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.bvp-row small { color: var(--muted); font-size: 13px; }
.bvp-row code { background: none; padding: 0; font-size: 13.5px; }
.b-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 20px; }
.b-wide .bc-top, .b-wide .bc-text, .b-wide .bc-arrow { grid-column: 1; }
.b-wide .bv { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.bv-code { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #c9c9d3; position: relative; }
.bv-code code { background: none; padding: 0; font-size: 12.5px; line-height: 1.6; white-space: nowrap; color: inherit; }
.bv-code b { color: #ffb08a; font-weight: 400; }
.bv-code s { color: #8ee0b2; text-decoration: none; }
.bv-code u { color: #9ab8ff; text-decoration: none; }
.bv-code i { font-style: normal; color: #8b8b96; }
.bv-code em { position: absolute; right: 10px; top: 10px; font: 500 11px/1 var(--mono); font-style: normal; padding: 5px 7px; border-radius: 6px; background: rgb(18 183 106 / 0.16); color: #6ee7a8; }
.bv-table { display: grid; margin-top: auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font: 500 12px/1 var(--mono); }
.bvt-r { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; }
.bvt-r + .bvt-r { border-top: 1px solid var(--line); }
.bvt-r i { font-style: normal; padding: 7px 9px; color: var(--ink-2); }
.bvt-h { background: var(--bg-2); }
.bvt-h i { color: var(--muted); }
.bvt-r .y { color: var(--ok); }
.bvt-r .n { color: var(--bad); }
.bv-pages { position: relative; height: 74px; margin-top: auto; }
.bv-pages i { position: absolute; bottom: 0; width: 50px; height: 64px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1); background-image: linear-gradient(var(--line-2) 2px, transparent 2px); background-size: 30px 9px; background-position: 9px 12px; background-repeat: repeat-y; }
.bv-pages i:nth-child(1) { left: 0; transform: rotate(-8deg); }
.bv-pages i:nth-child(2) { left: 22px; transform: rotate(-2deg); }
.bv-pages i:nth-child(3) { left: 44px; transform: rotate(5deg); border-color: #f3b4b4; }
.bv-pages em { position: absolute; left: 110px; bottom: 22px; font: 500 12px/1 var(--mono); font-style: normal; color: var(--muted); }
.bento-card:hover .bv-pages i:nth-child(1) { transform: rotate(-12deg) translateX(-4px); }
.bento-card:hover .bv-pages i:nth-child(3) { transform: rotate(9deg) translateX(4px); }
.bv-pages i { transition: transform 0.3s; }

/* live tool spotlight */
.spotlight { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .spotlight { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.spot-copy h2 { font-size: clamp(32px, 2.2vw + 20px, 52px); letter-spacing: -0.045em; }
.spot-copy > p:not(.eyebrow):not(.fine) { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 520px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0; border-block: 1px solid var(--line-2); max-width: 460px; }
.facts div { padding: 16px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line-2); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.spot-ui { position: relative; min-width: 0; padding: 0 0 24px; }
.win { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-4); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-bar span { margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: 18px; display: grid; gap: 12px; }
.w-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-3); justify-self: start; font-size: 13px; font-weight: 500; }
.w-tabs span { padding: 7px 12px; border-radius: 8px; color: var(--muted); }
.w-tabs .on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.w-field { font: 500 20px/1 var(--mono); padding: 15px; border-radius: 11px; border: 1px solid var(--line-2); }
.w-status { display: grid; gap: 2px; padding: 12px 14px; border-radius: 11px; background: var(--ok-soft); color: var(--ok); font-size: 13.5px; }
.w-status b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.w-parts { display: flex; gap: 8px; }
.w-parts span { display: grid; gap: 4px; padding: 9px 12px; border-radius: 10px; font: 500 18px/1 var(--mono); }
.w-parts small { font: 500 11px/1 var(--f); }
.p-cc { background: var(--accent-soft); color: var(--accent-text); }
.p-nn { background: var(--blue-soft); color: var(--blue); }
.w-rows { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.w-rows div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; }
.w-rows div + div { border-top: 1px solid var(--line); }
.w-rows small { color: var(--muted); font-size: 12.5px; }
.w-rows code { background: none; padding: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-rows em { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; }
.toast-demo { position: absolute; right: -10px; bottom: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-3); }
.toast-demo svg { color: #6ee7a8; }

/* tool cards */
.tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.tcard { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; min-width: 0; }
.tcard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tcard-body { display: grid; gap: 4px; }
.tcard-body b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.tcard-body span { font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.tcard-foot svg { color: var(--faint); transition: transform 0.2s, color 0.2s; }
.tcard:hover .tcard-foot svg { transform: translateX(3px); color: var(--ink); }

/* privacy flow */
.flow { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 980px) { .flow { grid-template-columns: minmax(0, 1fr) 220px; } }
.flow-device { position: relative; padding: 44px 20px 20px; border-radius: var(--r-xl); border: 1.5px solid var(--ink); background: #fff; }
.flow-label { position: absolute; top: -13px; left: 20px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 12px/1 var(--mono); }
.flow-steps { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 760px) { .flow-steps { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); } }
.flow-step { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.flow-step span { font-size: 12px; color: var(--accent-text); }
.flow-step b { font-weight: 600; letter-spacing: -0.02em; }
.flow-step small { color: var(--muted); font-size: 13px; }
.flow-arrow { display: grid; place-items: center; color: var(--faint); }
@media (max-width: 759px) { .flow-arrow { transform: rotate(90deg); } }
.flow-cloud { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px; border-radius: var(--r-xl); border: 1.5px dashed var(--line-2); color: var(--faint); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(10 10 11 / 0.025) 10px 20px); }
.flow-cloud b { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.flow-cloud small { font-size: 13px; max-width: 18ch; }
.pillars { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 48px; }
.pillars div { display: grid; gap: 8px; align-content: start; }
.pi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1); margin-bottom: 6px; }
.pillars b { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.pillars p { color: var(--muted); font-size: 15px; }

/* faq */
.faq-split { display: grid; gap: 32px 72px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .faq-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.faq-split .muted { margin-top: 14px; font-size: 17px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--faint); transition: transform 0.25s; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--ink); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); font-size: 15.5px; max-width: 64ch; }

/* cta */
.cta-sec { padding-block: 0 clamp(64px, 9vw, 120px); }
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 96px) 24px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, var(--accent-soft), #fff 70%); }
.cta-grid { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%); }
.cta > *:not(.cta-grid) { position: relative; }
.cta h2 { font-size: clamp(32px, 2.6vw + 18px, 60px); letter-spacing: -0.05em; max-width: 16ch; margin-inline: auto; }
.cta p { margin: 16px auto 32px; color: var(--muted); font-size: 17px; max-width: 46ch; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); background: #fff; overflow: hidden; }
.ftr-top { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 56px 40px; align-items: start; }
@media (min-width: 960px) { .ftr-top { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; } }
.ftr-brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .ftr-brand { grid-column: auto; } }
.ftr-brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.ftr-col h2 { font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--muted); margin-bottom: 16px; }
.ftr-col li + li { margin-top: 10px; }
.ftr-col a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.ftr-col a:hover { color: var(--accent-text); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.ftr-word { padding-inline: var(--gx) var(--gx-r); max-width: 1240px; margin: 0 auto -0.2em; font-size: min(10.4vw, 128px); font-weight: 700; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; text-align: center; background: linear-gradient(180deg, #ececf0 20%, #fff 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- inner page heads ---------- */
.phead { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.phead-bg { -webkit-mask-image: radial-gradient(ellipse 80% 100% at 70% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 80% 100% at 70% 0%, #000 20%, transparent 70%); }
.phead h1 { font-size: clamp(34px, 2.6vw + 20px, 60px); letter-spacing: -0.05em; line-height: 1.02; }
.phead .lede { margin-top: 12px; color: var(--muted); font-size: clamp(16px, 0.3vw + 15px, 19px); max-width: 640px; }
.phead-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; }
.phead-title { display: flex; align-items: flex-start; gap: 20px; min-width: 0; }
.phead-title > div { min-width: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--faint-text); margin-bottom: 24px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.chips li.chip-new { border: 0; padding: 0; background: none; height: auto; }
.chips li.mono { font-size: 12.5px; }
.chips .tile-xs { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
.chips .tile-xs svg { width: 11px; height: 11px; }

/* centred tool header: breadcrumb, icon, title, description, chips */
.phead-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.phead-center .crumbs ol { justify-content: center; margin-bottom: 22px; }
.phead-center .tile-xl { margin-bottom: 18px; }
.phead-center .lede { margin-inline: auto; }
.phead-center .chips { justify-content: center; }
.chip-btn { padding: 0 !important; overflow: hidden; }
.chip-btn button { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.chip-btn:hover { border-color: #c9c9d1; background: var(--bg-2); }

/* subnav */
.subnav { position: sticky; top: var(--hdr); z-index: 30; background: rgb(255 255 255 / 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 12px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: color 0.15s, box-shadow 0.15s; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- directory ---------- */
.dir { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-block: 32px 96px; align-items: start; }
@media (min-width: 980px) { .dir { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } }
.dir-side { min-width: 0; }
@media (min-width: 980px) { .dir-side { position: sticky; top: calc(var(--hdr) + 24px); } }
.side-nav { display: grid; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.side-nav a > span:not(.tile) { flex: 1; }
.side-nav a em { font: 500 12px/1 var(--mono); font-style: normal; color: var(--faint-text); }
.side-nav a:hover { background: var(--bg-3); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-nav a[aria-current="page"] em { color: #b5b5bf; }
.side-nav a > svg { color: var(--faint); margin-inline: 2px; }
@media (max-width: 979px) {
  .side-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 8px; }
  .side-nav a[aria-current="page"] { border-color: var(--ink); }
}
.dir-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.filter { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--faint); box-shadow: var(--sh-1); transition: border-color 0.15s, box-shadow 0.15s; }
.filter:focus-within { border-color: #ff9c70; box-shadow: 0 0 0 4px rgb(255 79 0 / 0.1); }
.filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15px/1 var(--f); color: var(--ink); }
.dir-count { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-3); }
.seg button { display: grid; place-items: center; width: 34px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.dir-group + .dir-group { margin-top: 48px; }
.dg-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 20px; letter-spacing: -0.03em; }
.dg-title a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.dg-title a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.dg-title em { font: 500 13px/1 var(--mono); font-style: normal; color: var(--faint-text); }
.dir-empty { padding: 56px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.dir-empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
/* list view */
.dir-main[data-view="list"] .tgrid { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dir-main[data-view="list"] .tcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon body st" "icon body foot"; column-gap: 16px; align-items: center; padding: 14px 18px; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.dir-main[data-view="list"] .tcard + .tcard { border-top: 1px solid var(--line); }
.dir-main[data-view="list"] .tcard:hover { background: var(--bg-2); }
.dir-main[data-view="list"] .tcard-top { display: contents; }
.dir-main[data-view="list"] .tcard-top .tile { grid-area: icon; }
.dir-main[data-view="list"] .tcard-top .new-badge { grid-area: st; justify-self: end; }
.dir-main[data-view="list"] .tcard-body { grid-area: body; }
.dir-main[data-view="list"] .tcard-body span { -webkit-line-clamp: 1; }
.dir-main[data-view="list"] .tcard-foot { grid-area: foot; border: 0; padding: 0; margin: 0; justify-content: flex-end; }
.dir-main[data-view="list"] .tcard-foot > span { display: none; }

/* ---------- tool page ---------- */
.tool-wrap { padding-block: 32px 8px; }
.tsec { padding-block: clamp(56px, 7vw, 96px); }
.tsec-tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.tsec-head { max-width: 680px; margin-bottom: 32px; }
.tsec-head h2 { font-size: clamp(28px, 1.8vw + 18px, 42px); letter-spacing: -0.045em; }
.tsec-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 17px; }

.tool { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: clamp(16px, 2.6vw, 28px); min-width: 0; }
.tool-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-3); }
.tab { height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.field { display: grid; gap: 6px; min-width: 0; flex: 1 1 220px; max-width: 300px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
select, input[type="tel"], textarea { font: 400 15px/1.3 var(--f); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; width: 100%; min-width: 0; transition: border-color 0.15s, box-shadow 0.15s; }
select { height: 42px; appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239b9ba7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
select:hover, input[type="tel"]:hover, textarea:hover { border-color: #c9c9d1; }
select:focus-visible, input[type="tel"]:focus-visible, textarea:focus-visible { outline: 0; border-color: #ff9c70; box-shadow: 0 0 0 4px rgb(255 79 0 / 0.1); }
.input-row { display: flex; gap: 10px; }
.input-row input { height: 60px; font: 500 clamp(18px, 0.8vw + 15px, 24px)/1 var(--mono); padding: 0 16px; border-radius: 14px; }
.input-row .btn { height: 60px; border-radius: 14px; }
textarea { font-family: var(--mono); font-size: 14px; resize: vertical; min-height: 160px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 18px; }
.examples-label { font: 500 12px/1 var(--mono); color: var(--muted); margin-right: 4px; }
.chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: 500 12.5px/1 var(--mono); color: var(--ink-2); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.chip:hover { border-color: #ffb48f; color: var(--accent-text); background: var(--accent-soft); }

.status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; }
.status svg { flex: none; margin-top: 1px; }
.status b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.status span { opacity: 1; }
.status[data-state="valid"] { background: var(--ok-soft); color: var(--ok); }
.status[data-state="possible"] { background: var(--warn-soft); color: var(--warn); }
.status[data-state="invalid"] { background: var(--bad-soft); color: var(--bad); }
.status[data-state="empty"] { background: var(--bg-2); color: var(--muted); }
.parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.part { display: grid; gap: 5px; padding: 10px 14px; border-radius: 12px; min-width: 0; }
.part small { font: 500 11.5px/1 var(--f); }
.part strong { font: 500 clamp(18px, 0.7vw + 15px, 24px)/1.1 var(--mono); overflow-wrap: anywhere; }
.part.cc { background: var(--accent-soft); color: var(--accent-text); }
.part.nn { background: var(--blue-soft); color: var(--blue); }
.part.ext { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.rows { margin: 12px 0 0; display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 11px 14px; background: #fff; transition: background 0.15s; }
.row:hover { background: var(--bg-2); }
.row + .row { border-top: 1px solid var(--line); }
.row dt { font-size: 13px; color: var(--muted); }
.row dd { margin: 0; font: 500 15px/1.35 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.row dd.plain { font-family: var(--f); }
.row dd.row-act { font: inherit; }
.copy { height: 30px; min-width: 66px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.copy:hover { border-color: #c9c9d1; color: var(--ink); }
.copy.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0; }
.bulk-summary { color: var(--muted); font-size: 14px; min-width: 0; }
.bulk-summary b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { position: sticky; top: 0; background: var(--bg-2); font: 500 12.5px/1 var(--f); color: var(--muted); white-space: nowrap; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.bulk-table { min-width: 580px; }
.bulk-table td { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
#bulk-table-wrap { max-height: 380px; overflow-y: auto; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font: 500 12px/1 var(--f); white-space: nowrap; }
.pill[data-state="valid"] { background: var(--ok-soft); color: var(--ok); }
.pill[data-state="possible"] { background: var(--warn-soft); color: var(--warn); }
.pill[data-state="invalid"] { background: var(--bad-soft); color: var(--bad); }
.privacy { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row dt { grid-column: 1 / -1; }
  .input-row { flex-wrap: wrap; }
  .input-row input, .input-row .btn { flex: 1 1 100%; }
  .input-row .btn { height: 44px; }
  .field { max-width: none; flex-basis: 100%; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
}

.anatomy { margin: 0 0 24px; padding: clamp(20px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.an-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.12em 0.2em; font-size: clamp(30px, 5.4vw + 6px, 72px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.an-plus { color: var(--faint); }
.an-cc { color: var(--accent-text); background: var(--accent-soft); border-radius: 0.14em; padding: 0 0.12em; }
.an-nn { color: var(--blue); background: var(--blue-soft); border-radius: 0.14em; padding: 0 0.12em; }
.an-labels { display: grid; gap: 16px 32px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .an-labels { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.an-label { display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid; }
.an-label-cc { border-color: var(--accent); }
.an-label-nn { border-color: var(--blue); }
.an-label b { font-weight: 600; }
.an-label span { color: var(--muted); font-size: 14.5px; }
.formats table { min-width: 580px; }
.formats th, .formats td { padding: 14px 16px; }
.formats tbody th { font-weight: 600; white-space: nowrap; }
.formats td.mono { white-space: nowrap; font-size: 14px; }
.callout { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--warn-soft); display: grid; gap: 6px; max-width: 760px; }
.callout b { color: var(--warn); font-weight: 600; }
.callout p { color: var(--ink-2); font-size: 15px; }
.country-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.country-grid button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.country-grid button:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.country-grid button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.country-grid .nm { min-width: 0; overflow-wrap: anywhere; }
.country-grid .cc { font: 500 13px/1 var(--mono); color: var(--muted); flex: none; }

/* coming soon */
.soon { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: clamp(20px, 4vw, 48px); border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg-2)); }
@media (min-width: 900px) { .soon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.soon-skel { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--bg-3) 0%, #f9f9fb 50%, var(--bg-3) 100%); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; }
.sk-tabs { width: 46%; height: 34px; }
.sk-input { height: 56px; }
.sk-row { height: 38px; }
.sk-row.short { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.soon-copy { display: grid; gap: 14px; justify-items: start; }
.soon-copy h2 { font-size: clamp(26px, 1.4vw + 18px, 36px); letter-spacing: -0.04em; }
.soon-copy p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.soon-copy .btn-row { margin-top: 8px; }

/* text pages */
.doc { display: grid; gap: 32px 64px; grid-template-columns: minmax(0, 1fr); padding-block: 48px 96px; }
@media (min-width: 900px) { .doc { grid-template-columns: 220px minmax(0, 720px); } }
.doc.doc-solo { grid-template-columns: minmax(0, 720px); }
.doc-toc { display: grid; gap: 2px; align-content: start; }
@media (min-width: 900px) { .doc-toc { position: sticky; top: calc(var(--hdr) + 24px); } }
.doc-toc p { font: 500 12px/1 var(--mono); color: var(--faint-text); margin-bottom: 10px; }
.doc-toc a { padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc-body h2 { font-size: 24px; letter-spacing: -0.035em; margin: 44px 0 12px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.doc-body p + p { margin-top: 14px; }

/* 404 */
.nf { position: relative; padding-block: clamp(80px, 14vw, 180px); }
.nf h1 { font-size: clamp(36px, 3vw + 22px, 68px); letter-spacing: -0.05em; max-width: 14ch; }
.nf .lede { margin: 16px 0 32px; color: var(--muted); font-size: 18px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--sh-3); animation: pop 0.2s ease-out; }
.toast svg { color: #6ee7a8; }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .mega-in { grid-template-columns: 240px minmax(0, 1fr); }
  .mega-feature { display: none; }
}
@media (max-width: 1060px) {
  .kbar:not(.kbar-wide):not(.kbar-full) { width: 40px; padding: 0; justify-content: center; }
  .kbar:not(.kbar-wide):not(.kbar-full) kbd { display: none; }
  .kbar:not(.kbar-wide):not(.kbar-full) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-wide { grid-template-columns: minmax(0, 1fr); }
  .b-wide .bv { grid-column: 1; grid-row: auto; }
}
@media (max-width: 880px) {
  .hdr-nav, .mega, .hdr-cta { display: none !important; }
  .hdr-menu { display: grid; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bc-arrow { display: none; }
  .bento-card.b-xl, .bento-card.b-wide { grid-column: auto; grid-row: auto; }
  .oc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .oc-row dt { grid-column: 1 / -1; }
  .toast-demo { right: 8px; }
  .w-rows div { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .phead-title { gap: 14px; }
  .phead-title .tile-xl { width: 48px; height: 48px; border-radius: 13px; }
  .omni-try { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
}

/* New tool update card (home hero) */
@property --upd-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.upd { position: relative; display: block; max-width: 480px; margin: 28px auto 0; padding: 12px 14px 12px; text-align: left; text-decoration: none; color: var(--ink); border: 1px solid transparent; border-radius: 16px; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--upd-a), #ffd9c7, var(--accent), #ffd9c7 40%, #e8e8ee 60%, #ffd9c7) border-box; box-shadow: var(--sh-1); animation: upd-spin 6s linear infinite; transition: transform 0.2s, box-shadow 0.2s; }
.upd:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(255, 79, 0, 0.45); }
@keyframes upd-spin { to { --upd-a: 360deg; } }
.upd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.upd-new { display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); padding: 5px 8px; border-radius: 999px; }
.upd-main { display: flex; align-items: center; gap: 12px; }
.upd-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: #fff; }
.upd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.upd-text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.upd-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.upd-demo code { font: 500 12px/1 var(--mono); color: var(--ink-2); background: #f4f4f6; padding: 4px 7px; border-radius: 6px; }
.upd-ok { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #15803d; }
.upd-go { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; transition: background 0.15s, transform 0.2s; }
.upd:hover .upd-go { background: var(--accent); transform: translateX(2px); }
@media (max-width: 480px) { .upd-meta { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .upd { animation: none; } }

/* Wordmark: the "o" in Playground is the orange ball */
.wm { font-size: 21px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.wm-o { display: inline-block; width: 0.56em; height: 0.56em; margin: 0 0.035em 0 0.02em; border-radius: 50%; background: var(--accent); vertical-align: -0.01em; transition: transform 0.35s cubic-bezier(.2,.9,.3,1.4); }
.brand:hover .wm-o { transform: translateY(-0.18em); }
@media (prefers-reduced-motion: reduce) { .brand:hover .wm-o { transform: none; } }

/* ---- libphonenumber tool suite ---- */
.tool-h { font-size: clamp(18px, 0.6vw + 15px, 22px); font-weight: 600; letter-spacing: -0.03em; flex: 1 1 260px; }
.text-in { font: 400 15px/1.3 var(--f); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 11px; padding: 0 12px; width: 100%; min-width: 0; height: 42px; }
.input-row .text-in { height: 60px; border-radius: 14px; font: 500 clamp(16px, 0.6vw + 14px, 20px)/1 var(--f); padding: 0 16px; }
.text-in:hover { border-color: #c9c9d1; }
.text-in:focus-visible { outline: 0; border-color: #ff9c70; box-shadow: 0 0 0 4px rgb(255 79 0 / 0.1); }
.opt { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.opt input { width: 16px; height: 16px; accent-color: var(--accent); }
.two-col { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 4px 0 16px; }
.two-col .field { max-width: none; }
@media (min-width: 720px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.out-block { margin: 18px 0; }
.out-label { font: 500 13px/1 var(--f); color: var(--muted); margin-bottom: 8px; }
.out-label span { font-weight: 400; color: var(--faint-text); margin-left: 4px; }
.codebox { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.code-grid { display: grid; gap: 4px 18px; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
@media (min-width: 900px) { .code-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kv { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-row dt { flex: 0 0 min(210px, 38%); font-size: 13.5px; color: var(--muted); }
.kv-row dd { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.kv-row dd.mono { font-size: 14px; }
.table-tall { max-height: 460px; overflow-y: auto; }
.table-tall table { min-width: 560px; }
.table-tall tr[hidden] { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { padding: 22px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font: 600 13px/1 var(--mono); margin-bottom: 14px; }
.steps h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.copy-btn.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

/* ---- guides + playground ---- */
.guide-h1 { font-size: clamp(32px, 3vw + 18px, 52px); letter-spacing: -0.05em; line-height: 1.05; margin: 8px 0 14px; max-width: 22ch; }
.article { padding-block: 40px 24px; }
.prose { max-width: 740px; margin-inline: auto; }
.prose .intro { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-bottom: 24px; }
.prose h2 { font-size: clamp(24px, 1.2vw + 18px, 32px); letter-spacing: -0.04em; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose p { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose .table-wrap { margin: 18px 0; }
.toc { margin: 0 0 8px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.toc b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }
.code-wrap { position: relative; margin: 14px 0 20px; }
.code-wrap .codebox { margin: 0; padding: 36px 16px 14px; overflow-x: auto; white-space: pre; overflow-wrap: normal; font-size: 13px; }
.code-lang { position: absolute; top: 10px; left: 16px; font: 500 11px/1 var(--mono); color: var(--faint-text); text-transform: uppercase; letter-spacing: 0.06em; }
.code-wrap .copy { position: absolute; top: 6px; right: 8px; height: 26px; min-width: 56px; }
.gcards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.2s; }
.gcard:hover { border-color: #ffb48f; transform: translateY(-2px); }
.gcard b { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.gcard span { font-size: 14.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.gcard em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--accent-text); }
.cta-box { margin-top: 36px; }
.cta-box .btn { margin-top: 10px; }
.guide-widget { margin: 0 0 8px; }
.guide-widget .tool { box-shadow: var(--sh-1); }
.code-grid-2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .code-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.code-grid .codebox, .code-grid-2 .codebox { overflow-x: auto; white-space: pre; overflow-wrap: normal; max-height: 420px; }
.ayt-out { min-height: 64px; display: flex; align-items: center; padding: 0 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: clamp(20px, 1vw + 16px, 28px); font-weight: 500; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.opt-note { color: var(--faint-text); }

/* ---- about / privacy / contact ---- */
.doc-body ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.doc-body li { margin-bottom: 8px; }
.doc-body li b { color: var(--ink); font-weight: 600; }
.doc-body a:not(.btn) { color: var(--accent-text); text-underline-offset: 3px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; margin: 4px 0 8px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(100deg, var(--accent-soft), #fff 60%); }
.cc-label { font: 500 12px/1 var(--mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.08em; }
.cc-mail { font-size: clamp(20px, 2.4vw + 10px, 30px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cc-mail:hover { color: var(--accent-text); }
.cc-note { font-size: 15px; color: var(--muted); margin-bottom: 10px; }

/* long-form pages inside the two-column doc layout */
.doc .prose { max-width: none; margin: 0; min-width: 0; }
.doc .prose > .guide-widget { scroll-margin-top: 90px; }

/* ---------------- libraries: directory, version pages, release radar ---------------- */
.lb-hero { position: relative; padding: 28px 0 8px; border-bottom: 1px solid var(--line); background: radial-gradient(70% 90% at 100% 0%, var(--accent-soft), transparent 60%), #fff; }
.lb-hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: end; padding-block: 8px 20px; }
@media (min-width: 900px) { .lb-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.lb-name { font-size: clamp(34px, 3.4vw + 16px, 60px); letter-spacing: -0.055em; line-height: 1; margin: 6px 0 14px; overflow-wrap: anywhere; }
.lb-vtag { font-family: var(--mono); font-weight: 600; letter-spacing: -0.04em; color: var(--accent-text); white-space: nowrap; }
.lb-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.lb-meta li { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; color: var(--ink-2); }
.lb-now { display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: 22px; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--sh-2); }
.lb-now-label { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ok); }
.lb-now-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-dot); box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.16); }
.lb-now-ver { font: 600 clamp(44px, 4vw + 20px, 72px)/1 var(--mono); letter-spacing: -0.06em; }
.lb-now-ver small { font-size: 0.45em; color: var(--faint); margin-right: 2px; letter-spacing: 0; }
.lb-now-sm { font-size: clamp(34px, 3vw + 16px, 52px); }
.lb-now-date { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.lb-now-v .lb-now-label { color: var(--accent-text); }
.lb-hero-v, .lb-hero-r { padding-bottom: 24px; }

.lb-rhythm { margin: 4px 0 0; padding-top: 6px; }
.lb-rhythm svg { width: 100%; height: auto; display: block; }
.lb-rhythm figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rh-axis { stroke: var(--line-2); stroke-width: 1; }
.rh-tick { fill: #bdbdc6; }
.rh-latest { fill: var(--accent); }
.rh-pre { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.rh-label { font: 500 11px var(--mono); fill: var(--faint-text); }

.lb-ribbon { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--bg-3); font-size: 14px; color: var(--ink-2); }
.lb-ribbon b { font-weight: 600; color: var(--ink); }
.lb-ribbon-pre { background: var(--accent-soft); }
.lb-ribbon .lnk { margin-left: auto; }

.lb-body { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-block: 36px 56px; }
@media (min-width: 1000px) { .lb-body { grid-template-columns: minmax(0, 1fr) 300px; } }
.lb-main section { margin-bottom: 44px; scroll-margin-top: 90px; }
.lb-main h2 { font-size: clamp(22px, 1vw + 17px, 28px); letter-spacing: -0.04em; margin-bottom: 14px; }
.lb-main p { color: var(--ink-2); font-size: 16px; line-height: 1.65; margin-bottom: 12px; }

.lb-tablist { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-3); margin-bottom: 10px; }
.lb-tablist button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: 500 13px/1 var(--f); color: var(--muted); cursor: pointer; }
.lb-tablist button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.lb-tabs .code-wrap { margin: 0; }

.lb-dls { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.lb-dl { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.lb-dl:last-child { border-bottom: 0; }
.lb-dl-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--bg-3); color: var(--ink-2); }
.lb-dl-main { display: grid; gap: 2px; min-width: 0; }
.lb-dl-main b { font: 500 14.5px/1.3 var(--mono); overflow-wrap: anywhere; }
.lb-dl-main span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.lb-dl-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 640px) { .lb-dl { grid-template-columns: 40px minmax(0, 1fr); } .lb-dl-act { grid-column: 1 / -1; justify-content: flex-start; } }

.lb-regions { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.lb-regions span { font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); }
.lb-notes ul { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.lb-notes ul ul { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.lb-notes code, .rd-items code, .rd-ideas code, .rd-answer code { font: 500 0.88em var(--mono); background: var(--bg-3); padding: 1px 5px; border-radius: 5px; }

.lb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
@media (min-width: 640px) { .lb-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lb-facts div { padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.lb-facts dt { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.lb-facts dd { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.lb-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lb-pn a { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.2s; }
.lb-pn a:hover { border-color: #ffb48f; transform: translateY(-2px); }
.lb-pn a:last-child { text-align: right; }
.lb-pn span { font: 500 12px/1 var(--mono); color: var(--faint-text); text-transform: uppercase; letter-spacing: 0.06em; }
.lb-pn b { font: 600 22px/1.2 var(--mono); letter-spacing: -0.04em; }
.lb-pn em { font-style: normal; font-size: 13px; color: var(--muted); }

.lb-rail { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1000px) { .lb-rail { position: sticky; top: calc(var(--hdr) + 20px); } }
.lb-card { padding: 18px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff; }
.lb-card-label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint-text); margin-bottom: 10px; }
.lb-card-big { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; margin-bottom: 10px; }
.lb-next-warm { background: linear-gradient(160deg, var(--accent-soft), #fff 70%); border-color: #ffd2bc; }
.lb-next-live { background: linear-gradient(160deg, var(--ok-soft), #fff 70%); border-color: #bfe8d0; }
.lb-train { list-style: none; margin: 0 0 12px; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.lb-train li { position: relative; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.lb-train li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid #c9c9d1; }
.lb-train li.now::before { background: var(--accent); border-color: var(--accent); }
.lb-train a { font-family: var(--mono); font-weight: 500; color: var(--ink); text-decoration: none; }
.lb-train a:hover { color: var(--accent-text); }
.lb-train span { color: var(--muted); font-size: 13px; }
.lb-src { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-src li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.lb-src span { color: var(--muted); font-size: 13px; text-align: right; }
.lb-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font: 500 11.5px/1 var(--mono); }
.lb-pill.ok { background: var(--ok-soft); color: var(--ok); }
.lb-pill.bad { background: var(--bad-soft); color: var(--bad); }
.lb-hist { padding-block: 32px 64px; }

.lb-dirgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .lb-dirgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lb-dirgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lb-dircard { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line-2); border-radius: 22px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s; }
.lb-dircard:hover { border-color: #ffb48f; transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(255, 79, 0, 0.4); }
.lb-dc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lb-dc-top b { font-size: 18px; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.lb-dc-ver { display: flex; align-items: baseline; gap: 8px; font: 600 40px/1 var(--mono); letter-spacing: -0.06em; }
.lb-dc-ver small { font-size: 0.5em; color: var(--faint); margin-right: -6px; }
.lb-dc-ver i { font: 500 12px var(--mono); letter-spacing: 0; color: var(--ok); background: var(--ok-soft); padding: 4px 8px; border-radius: 999px; }
.lb-dc-text { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.lb-dc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.lb-dc-warm { color: var(--accent-text); font-weight: 500; }
.lb-dc-live { color: var(--ok); font-weight: 500; }

/* release radar */
.rd-answer { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 6px 0 22px; padding: 16px 18px; border-radius: 16px; font-size: 17px; line-height: 1.5; border: 1px solid var(--line-2); background: #fff; }
.rd-answer b { font-weight: 600; letter-spacing: -0.02em; }
.rd-pulse { flex: none; margin-top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #c9c9d1; }
.rd-warm { border-color: #ffd2bc; background: var(--accent-soft); }
.rd-warm .rd-pulse { background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 79, 0, 0.16); }
.rd-live { border-color: #bfe8d0; background: var(--ok-soft); }
.rd-live .rd-pulse { background: var(--ok-dot); box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.2); }
.rd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: none; }
@media (min-width: 860px) { .rd-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; } }
.rd-steps li { position: relative; display: grid; gap: 4px; padding: 14px 14px 14px 16px; border: 1px solid var(--line-2); background: #fff; }
@media (min-width: 860px) { .rd-steps li { border-radius: 0; margin-left: -1px; } .rd-steps li:first-child { border-radius: 14px 0 0 14px; margin-left: 0; } .rd-steps li:last-child { border-radius: 0 14px 14px 0; } }
@media (max-width: 859px) { .rd-steps li { border-radius: 14px; } }
.rd-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); font: 600 12px/1 var(--mono); color: var(--muted); }
.rd-steps b { font-size: 14px; letter-spacing: -0.02em; }
.rd-steps em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.rd-steps li.past .rd-n { background: var(--ink); color: #fff; }
.rd-steps li.now { border-color: var(--accent); background: var(--accent-soft); z-index: 1; }
.rd-steps li.now .rd-n { background: var(--accent); color: #fff; }
.rd-steps li.last { background: var(--bg-2); }
.rd-steps li.na { opacity: 0.6; }
.lb-body-r { padding-top: 40px; }
.rd-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .rd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-card { padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.rd-card.found { border-color: #ffb48f; background: linear-gradient(160deg, var(--accent-soft), #fff 70%); }
.rd-card.na { background: var(--bg-2); }
.rd-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rd-card h3 { font-size: 15.5px; letter-spacing: -0.02em; flex: 1; }
.rd-card header em { font: 500 11.5px/1 var(--mono); font-style: normal; color: var(--muted); }
.rd-dot { width: 9px; height: 9px; border-radius: 50%; background: #d4d4db; }
.rd-card.found .rd-dot { background: var(--accent); }
.rd-card p { font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; }
.rd-by { font: 500 11.5px/1.4 var(--mono) !important; color: var(--faint-text) !important; margin: 10px 0 0 !important; }
.rd-items, .rd-ideas { margin: 0 0 8px; padding-left: 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.rd-ideas li { margin-bottom: 10px; }
.rd-items li span { color: var(--muted); margin-left: 6px; }
.rd-chart { width: 100%; height: auto; max-width: 720px; margin-top: 6px; }
.rd-bar { fill: #d9d9e0; }
.rd-now { fill: var(--accent); }
.rd-med { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; }
.rd-medlabel { font: 500 11px var(--mono); fill: var(--ink-2); }
.rd-val { font: 600 11px var(--mono); fill: var(--ink-2); }
.rd-lab { font: 500 10.5px var(--mono); fill: var(--faint-text); }
.rd-how { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); counter-reset: hw; }
@media (min-width: 800px) { .rd-how { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rd-how li { counter-increment: hw; display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff; }
.rd-how li::before { content: counter(hw); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font: 600 12px/1 var(--mono); }
.rd-how b { font-size: 16px; letter-spacing: -0.02em; }
.rd-how span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* hero install + download panel */
@media (min-width: 900px) { .lb-hero-grid { grid-template-columns: minmax(0, 1fr) 400px; } }
.lb-now { gap: 8px; }
.lb-panel { display: grid; gap: 14px; width: 100%; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.lb-seg { margin: 0 0 8px; }
.lb-cmd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--ink); color: #fff; min-width: 0; }
.lb-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 13px/1.4 var(--mono); padding: 6px 0; scrollbar-width: none; }
.lb-cmd code::-webkit-scrollbar { display: none; }
.lb-cmd .copy { flex: none; background: #26262b; border-color: #3a3a41; color: #fff; }
.lb-cmd .copy:hover { background: #33333a; border-color: #4a4a52; color: #fff; }
.lb-cmd .copy.done { background: var(--ok-dot); color: #fff; }
.lb-get { display: grid; gap: 8px; }
.lb-get-label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint-text); }
.lb-get-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.lb-get-row select { height: 44px; font: 500 12.5px/1.2 var(--mono); }
.lb-get-row .btn { height: 44px; gap: 8px; padding-inline: 18px; }
.lb-get-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; margin: 0; }
.lb-get-more a { color: var(--accent-text); text-underline-offset: 3px; }
@media (max-width: 520px) { .lb-get-row { grid-template-columns: minmax(0, 1fr); } .lb-get-row .btn { justify-content: center; } }

/* fixes: command box text, hero alignment, chart labels */
.lb-cmd code { background: transparent; color: #fff; border-radius: 0; padding: 6px 0; font-size: 13px; }
.lb-hero-grid { align-items: start; }
.lb-id { padding-top: 6px; }
.lb-rhythm { max-width: 980px; }
.rh-label { font-size: 9px; }
.lb-get-row select { text-overflow: ellipsis; }

/* fixes: let grid children shrink so nothing pushes the page wider than the screen */
.lb-hero-grid > *, .lb-body > *, .lb-main > *, .rd-cards > * { min-width: 0; }
.lb-now { justify-items: stretch; max-width: 100%; }
.lb-now > span { justify-self: start; }
.lb-panel, .lb-tabs, .lb-get { min-width: 0; max-width: 100%; width: auto; }
.lb-panel { width: 100%; }
.lb-cmd { max-width: 100%; }
.lb-hero .lb-rhythm { margin-top: 22px; }
.lb-dls, .lb-dl, .lb-dl-main { min-width: 0; max-width: 100%; }
.lb-main .code-wrap, .lb-main .table-wrap { max-width: 100%; }
html, body { overflow-x: clip; }

.lb-cmd code { white-space: normal; overflow-wrap: anywhere; overflow: visible; line-height: 1.5; }

.lb-hero-v .lede { margin-top: 14px; }
.lb-hero-v .lb-name { margin-bottom: 8px; }

/* ---- navigation: menu, search, footer, links to the library page ---- */
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-title { font: 600 18px/1 var(--f); letter-spacing: -0.03em; }
.sheet-close { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font: 500 15px/1 var(--f); cursor: pointer; }
.sheet-close:hover { border-color: #c9c9d1; background: var(--bg-2); }
.sheet-links { display: grid; gap: 0; padding-top: 0; }
.sheet-links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 2px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.sheet-links a svg { color: var(--faint); }
.sheet-cats summary { min-height: 52px; }
.sheet-cats ul a { display: flex; align-items: center; min-height: 44px; }
.pal-x { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.pal-x:hover { background: var(--bg-3); color: var(--ink); }
@media (hover: hover) and (min-width: 721px) { .pal-x { display: none; } }
@media (hover: none), (max-width: 720px) { .pal-esc, .pal-foot { display: none; } }
.ftr-brand p { margin-top: 14px; }
.ftr-col li + li { margin-top: 4px; }
.ftr-col a { display: inline-block; padding: 5px 0; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.chip-link:hover { color: var(--accent-text); }
.lib-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lib-tools a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.lib-tools a:hover { border-color: #ffb48f; color: var(--accent-text); }
.lib-tools a[aria-current="page"] { background: var(--accent-soft); border-color: #ffd2bc; color: var(--accent-text); }
.sec-sub { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.sec-sub a { color: var(--accent-text); text-underline-offset: 3px; }
.lb-toollist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .lb-toollist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lb-toollist a { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.lb-toollist a:hover { border-color: #ffb48f; }
.lb-toollist b { font-size: 15px; letter-spacing: -0.02em; }
.lb-toollist span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.lb-sub { font-size: 18px; letter-spacing: -0.03em; margin: 28px 0 12px; }

/* ---- tables on small screens ---- */
.scroll-hint { display: none; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.scroll-hint svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }
.scroll-hint.on { display: flex; }
.table-wrap.scrollable.scrolls:not(.at-end), .subnav > .wrap.scrolls:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.table-wrap.scrollable tbody th:first-child, .table-wrap.scrollable tbody td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
@media (max-width: 640px) {
  .table-wrap.stack { border: 0; background: transparent; overflow: visible; }
  .stack table { display: block; min-width: 0 !important; width: 100%; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stack tbody { display: grid; gap: 10px; }
  .stack tr { display: block; padding: 12px 14px; border: 1px solid var(--line-2) !important; border-radius: 14px; background: #fff; }
  .stack tr > * { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: auto; padding: 7px 0 !important; border: 0 !important; background: transparent; text-align: right; font-size: 14px; overflow-wrap: anywhere; }
  .stack tr > *::before { content: attr(data-label); flex: 0 0 38%; max-width: 38%; text-align: left; font: 500 12.5px/1.4 var(--f); color: var(--muted); }
  .stack tr > :first-child { display: block; text-align: left; margin-bottom: 4px; padding-bottom: 9px !important; border-bottom: 1px solid var(--line) !important; font-size: 16px; font-weight: 600; }
  .stack tr > :first-child::before { content: none; }
  .stack tr > :empty { display: none; }
}

/* ---- comfortable tap targets on phones (at least 40px) ---- */
.filter input { align-self: stretch; }
@media (max-width: 720px) {
  .brand { min-height: 44px; }
  .crumbs ol { gap: 0 4px; margin-bottom: 14px; }
  .crumbs li { min-height: 40px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 2px; }
  .chip, .omni-try button, .examples .chip { min-height: 40px; padding-inline: 14px; }
  .copy { min-height: 40px; padding-inline: 12px; }
  .code-wrap .copy { top: 4px; right: 6px; }
  .btn-sm { min-height: 40px; }
  .lb-tablist button { min-height: 40px; padding-inline: 16px; }
  .seg button { min-width: 44px; min-height: 40px; }
  .doc-toc a { padding-block: 12px; }
  .lnk { min-height: 44px; }
  .table-wrap td a, .table-wrap th a { display: inline-block; padding-block: 10px; }
  .chips li a, .chip-link { display: inline-flex; align-items: center; min-height: 40px; }
  .ftr-col a { padding-block: 9px; }
  .lb-train a { display: inline-block; padding-block: 8px; }
  .lb-get-more a, .lb-get-more .copy { min-height: 40px; display: inline-flex; align-items: center; }
  .faq summary { min-height: 52px; }
  .tabs .tab, .tab { min-height: 40px; }
}

/* ---- home: works-with row, recently used, single category ---- */
.works { border-block: 1px solid var(--line); background: var(--bg-2); }
.works-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; padding-block: 18px; }
.works-label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint-text); margin-right: 4px; }
.works ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.works li { font: 500 13px/1 var(--mono); color: var(--ink-2); padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.sec-tight { padding-block: clamp(32px, 4vw, 56px) 0; }
.rc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rc-head h2 { font-size: clamp(24px, 1.2vw + 18px, 32px); letter-spacing: -0.045em; }
.rc-clear { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font: 500 14px/1 var(--f); color: var(--muted); cursor: pointer; white-space: nowrap; }
.rc-clear:hover { border-color: #c9c9d1; color: var(--ink); }
.rc-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rc-card { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s; }
.rc-card:hover { border-color: #ffb48f; transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(255, 79, 0, 0.45); }
.rc-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.rc-t b { font-size: 15px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-t span { font-size: 13px; color: var(--muted); }
.rc-go { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); color: var(--ink-2); transition: background 0.15s, color 0.15s; }
.rc-card:hover .rc-go { background: var(--ink); color: #fff; }
.rc-note { margin-top: 12px; }
.bento.one { grid-template-columns: minmax(0, 1fr); }
.bento.one .bento-card { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: clamp(22px, 3vw, 36px); background: linear-gradient(120deg, #fff 40%, var(--bg-2)); }
@media (min-width: 860px) {
  .bento.one .bento-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 48px; align-items: center; grid-template-rows: auto auto; }
  .bento.one .bc-top, .bento.one .bc-text { grid-column: 1; }
  .bento.one .bv { grid-column: 2; grid-row: 1 / span 2; }
}
.bento.one .bc-text b { font-size: clamp(24px, 1.5vw + 16px, 34px); }
/* remaining small tap targets */
.chip-btn button { min-height: 40px; }
.cc-mail { display: inline-flex; align-items: center; min-height: 44px; }

/* "New": a quiet label that shows for a few days after a tool is published (like a new video) */
.new-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 11.5px/1 var(--f); letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
.mp-name .new-badge, .sheet-cats .new-badge { height: 18px; padding: 0 6px; font-size: 10.5px; margin-left: 8px; vertical-align: 2px; }
.pal-item .new-badge { margin-left: auto; margin-right: 6px; }
.mega-feature > .new-badge { justify-self: start; }

/* release charts: a bigger, simpler drawing on phones */
.rh-m, .rd-m, .rh-m-cap { display: none; }
.rh-svg, .rd-chart { width: 100%; height: auto; display: block; }
.rh-ver { font-family: var(--mono); font-weight: 600; fill: var(--accent-text); }
@media (max-width: 720px) {
  .rh-d, .rd-d, .rh-d-cap { display: none; }
  .rh-m, .rd-m { display: block; }
  .rh-m-cap { display: inline; }
  .lb-rhythm { margin-top: 18px; padding: 14px 14px 12px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff; }
  .lb-rhythm figcaption { font-size: 14px; margin-top: 6px; }
  .rh-tick { fill: #a9a9b3; }
  .rh-label, .rd-lab, .rd-val { fill: var(--ink-2); }
  .rd-chart { max-width: none; }
}

/* search box on small screens: more room for the text */
@media (max-width: 520px) {
  .omni-box { padding: 4px 6px 4px 14px; gap: 2px; }
  .omni-ico svg { width: 20px; height: 20px; }
  #omni-in { font-size: 17px; line-height: 25px; padding: 13px 6px; }
  .omni-clear { width: 36px; height: 36px; }
}
.rd-val { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

#omni-in::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
