/* Apsi website — design system and layout. No external resources; all fonts are served from /fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #ffffff; --bg-soft: #f6f8fb; --bg-sunk: #eef2f7; --card: #ffffff; --line: #e3e8ef; --line-strong: #cfd7e3;
  --text: #0b1220; --text-2: #354155; --muted: #667085;
  --primary: #0d9488; --primary-2: #14b8a6; --primary-ink: #ffffff; --primary-soft: #e6f6f4;
  --teal: #14b8a6; --violet: #6366f1; --sky: #38bdf8; --ok: #059669; --warn: #b45309; --danger: #dc2626;
  --ink: #070a14; --ink-2: #0c1222; --ink-line: rgba(148, 163, 184, .16); --ink-text: #e6ebf5; --ink-muted: #94a3b8;
  --code-bg: #0b1020; --code-text: #e2e8f0;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -10px rgba(15, 23, 42, .16);
  --shadow-3: 0 4px 12px rgba(15, 23, 42, .08), 0 30px 60px -24px rgba(15, 23, 42, .32);
  --glow: 0 0 0 1px rgba(20, 184, 166, .25), 0 12px 40px -10px rgba(20, 184, 166, .55);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar-h: 66px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #070a14; --bg-soft: #0b1020; --bg-sunk: #050810; --card: #0e1528; --line: #1c2540; --line-strong: #2a3556;
  --text: #e8edf7; --text-2: #b9c3d6; --muted: #8391aa;
  --primary: #2dd4bf; --primary-2: #5eead4; --primary-ink: #04201c; --primary-soft: #0d2a2b;
  --teal: #2dd4bf; --violet: #818cf8; --sky: #38bdf8; --ok: #34d399; --warn: #fbbf24; --danger: #f87171;
  --code-bg: #060912;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 30px -12px rgba(0, 0, 0, .7);
  --shadow-3: 0 6px 16px rgba(0, 0, 0, .45), 0 30px 70px -20px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(45, 212, 191, .3), 0 12px 40px -10px rgba(45, 212, 191, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
:not(pre) > code { background: var(--bg-sunk); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; font-size: .86em; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: rgba(20, 184, 166, .22); }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- layout */
.shell { width: min(1200px, 100% - 40px); margin-inline: auto; }
.shell.narrow { width: min(820px, 100% - 40px); }
.main { min-height: 60vh; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section.tight { padding: 40px 0 72px; }
.section.alt { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 24px; text-align: left; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--primary); margin-bottom: .7rem; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 70ch; }
.section-head .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.block { display: block; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.row { display: flex; align-items: center; }
.row.gap, .gap { gap: 12px; }
.wrap { flex-wrap: wrap; }
.center-y { align-items: center; }
.stack { display: grid; gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.break { word-break: break-all; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }
.danger-text { color: var(--danger) !important; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav-link { padding: 8px 13px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: .94rem; transition: background .15s, color .15s; }
.nav-link:hover { color: var(--text); background: var(--bg-sunk); text-decoration: none; }
.nav-link.active { color: var(--text); background: var(--primary-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.nav-toggle { display: none; }
.mobile-nav { display: grid; gap: 4px; padding: 8px 0 16px; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--card); font-weight: 600; font-size: .9rem; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 6px; display: grid; z-index: 60; }
.menu-list a, .menu-list button { display: block; text-align: left; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--bg-sunk); text-decoration: none; }
.menu-list form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; font: 600 .95rem/1.2 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .2s, background .15s, border-color .15s; white-space: nowrap; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px -6px rgba(15, 143, 130, .55); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, var(--glow); }
:root[data-theme='dark'] .btn-primary { color: #032421; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .86rem; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 13px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; padding: 0 4px; }
.link-btn:hover { color: var(--danger); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); isolation: isolate; }
.hero-bg { position: absolute; inset: -20% -10% 0; z-index: -1;
  background:
    radial-gradient(40% 45% at 18% 20%, rgba(20, 184, 166, .22), transparent 70%),
    radial-gradient(35% 40% at 85% 15%, rgba(56, 189, 248, .2), transparent 70%),
    radial-gradient(45% 50% at 70% 85%, rgba(14, 116, 144, .14), transparent 70%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(60% 60% at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000 30%, transparent 80%); opacity: .55; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.04; margin-bottom: 22px; }
.grad { background: linear-gradient(100deg, var(--primary) 5%, var(--teal) 50%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 80%, transparent); font-size: .84rem; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-1); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: '✓'; color: var(--teal); font-weight: 800; margin-right: 7px; }
.window { border-radius: var(--radius-lg); background: var(--code-bg); box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 255, 255, .06) inset; overflow: hidden; }
.hero-code { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .5s; }
.hero-code:hover { transform: none; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; } .window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { margin-left: 10px; font: 500 .8rem var(--mono); color: #7fa3a0; font-style: normal; }
.window pre.code { margin: 0; border: 0; border-radius: 0; box-shadow: none; }

/* ---------------------------------------------------------------- features & cards */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.feature::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--primary), var(--teal)); opacity: .0; transition: opacity .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.feature:hover::before { opacity: 1; }
.feature-num { font: 600 .78rem var(--mono); color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; display: inline-block; margin-bottom: 14px; }
.feature p { color: var(--text-2); font-size: .94rem; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-2); }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 1.25rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.link-card { display: block; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.link-card:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow-3); }
.link-card h3 { margin-bottom: .35em; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; color: var(--text-2); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f8f82' d='m9 16.2-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat; }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.plain-steps { padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 44px; border-radius: var(--radius-lg); background: radial-gradient(80% 140% at 0% 0%, rgba(20, 184, 166, .18), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(56, 189, 248, .18), transparent 60%), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.cta-box h2 { margin-bottom: .3em; }

/* ---------------------------------------------------------------- code */
pre.code { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.6; border: 1px solid rgba(255, 255, 255, .06); box-shadow: var(--shadow-1); tab-size: 4; }
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.terminal pre.code { border-left: 3px solid var(--teal); }
.hljs-keyword, .hljs-selector-tag { color: #7dd3fc; font-weight: 500; }
.hljs-built_in, .hljs-type { color: #5fe0d1; }
.hljs-string { color: #b8e38a; }
.hljs-number, .hljs-literal, .hljs-symbol { color: #ffb86b; }
.hljs-comment { color: #6b8a87; font-style: italic; }
.hljs-meta { color: #ff8fd1; }
.hljs-title, .hljs-title.function_ { color: #ffd479; }
.hljs-attr, .hljs-variable, .hljs-params { color: #d3ece9; }
.hljs-section { color: #7dd3fc; font-weight: 600; }

/* ---------------------------------------------------------------- page heads */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 120% at 0% 0%, rgba(20, 184, 166, .10), transparent 70%), radial-gradient(40% 120% at 100% 0%, rgba(56, 189, 248, .09), transparent 70%), var(--bg-soft); }
.page-head.slim { padding: 36px 0 18px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.center-page { padding: 96px 0; text-align: center; }
.center-page .row { justify-content: center; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.form.inline { grid-auto-flow: column; align-items: end; justify-content: start; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field em { font-style: normal; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: 400 .97rem/1.4 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--text-2); }
.check input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.name-status { min-height: 1.2em; }
.name-status.ok { color: var(--ok); } .name-status.bad { color: var(--danger); }
.alert { padding: 13px 16px; border-radius: 11px; margin: 0 0 18px; border: 1px solid; font-size: .94rem; }
.alert-error { background: color-mix(in srgb, var(--danger) 9%, var(--card)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--text); }
.alert-ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-info { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 6px 0 2px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-wrap { min-height: calc(100vh - var(--topbar-h) - 240px); display: grid; place-items: center; padding: 56px 20px; background: radial-gradient(40% 50% at 30% 20%, rgba(20, 184, 166, .12), transparent 70%), radial-gradient(40% 50% at 70% 80%, rgba(56, 189, 248, .10), transparent 70%); }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-3); }
.auth-card h1 { font-size: 1.7rem; }

/* ---------------------------------------------------------------- badges, avatars */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--bg-sunk); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: transparent; }
.badge.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); border-color: transparent; }
.badge.cat { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 700 .82rem var(--font); color: #fff; flex: none; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--card); }
.avatar.xs { width: 20px; height: 20px; font-size: .55rem; }
.avatar.sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 1.8rem; box-shadow: 0 0 0 4px var(--card), var(--shadow-2); }
.av-0 { background: linear-gradient(135deg, #14b8a6, #0e7490); } .av-1 { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.av-2 { background: linear-gradient(135deg, #f97316, #db2777); } .av-3 { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.av-4 { background: linear-gradient(135deg, #8b5cf6, #ec4899); } .av-5 { background: linear-gradient(135deg, #22c55e, #0d9488); }
.av-6 { background: linear-gradient(135deg, #eab308, #f97316); } .av-7 { background: linear-gradient(135deg, #64748b, #0f172a); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 1.2em; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.best { color: var(--ok); font-weight: 700; }
tr.total th, tr.total td { background: var(--bg-soft); font-weight: 700; }

/* ---------------------------------------------------------------- benchmarks */
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-bottom: 28px; }
.bench-card { margin: 0; padding: 18px 18px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.bench-card figcaption { display: flex; flex-direction: column; margin-bottom: 10px; }
.bench-card svg { width: 100%; height: auto; overflow: visible; }
.b-l { font: 500 11.5px var(--font); fill: var(--muted); }
.b-l.b-apsi { fill: var(--primary); font-weight: 700; }
.b-r { fill: color-mix(in srgb, var(--muted) 35%, transparent); }
.b-r.b-apsi { fill: var(--primary); }
.b-r.b-best { stroke: var(--ok); stroke-width: 1.5; }
.b-v { font: 500 11px var(--mono); fill: var(--text-2); }

/* ---------------------------------------------------------------- docs & prose */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: start; }
.doc-layout.three { grid-template-columns: 240px minmax(0, 1fr) 200px; }
.doc-side, .doc-toc { position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px); overflow: auto; }
.doc-nav { display: grid; gap: 18px; }
.doc-group p { margin: 0 0 6px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.doc-group a, .toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text-2); font-size: .9rem; border-left: 2px solid transparent; }
.doc-group a:hover, .toc a:hover { background: var(--bg-sunk); text-decoration: none; color: var(--text); }
.doc-group a.active, .toc a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.toc { display: grid; gap: 1px; margin-bottom: 22px; }
.toc a.lvl3 { padding-left: 22px; font-size: .84rem; }
.toc-title { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.doc-search input { padding: 9px 12px; font-size: .9rem; }
.doc-index-group { margin-bottom: 40px; }
.prose { font-size: 1.01rem; color: var(--text-2); max-width: 78ch; }
.prose.card, .doc-body { max-width: none; }
.prose h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.prose h2 { margin-top: 2em; padding-top: .4em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.6em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 3px solid var(--primary); background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--text-2); }
.prose img { border-radius: 10px; box-shadow: var(--shadow-2); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.small-prose { font-size: .94rem; }
.small-prose p:last-child { margin-bottom: 0; }
.md-img-alt { color: var(--muted); font-style: italic; }
.doc-pager { display: flex; justify-content: space-between; gap: 16px; margin: 48px 0 20px; }
.doc-pager a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; min-width: 200px; background: var(--card); box-shadow: var(--shadow-1); }
.doc-pager a.right { text-align: right; margin-left: auto; }
mark { background: color-mix(in srgb, var(--warn) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 28px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary-2), var(--primary)); box-shadow: var(--glow); }
ol.steps > li h2 { border: 0; margin-top: 4px; padding: 0; font-size: 1.3rem; }

/* ---------------------------------------------------------------- downloads */
.dl-groups { display: grid; gap: 18px; }
.dl-group header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dl-group header h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.3rem; }
.dl-group.recommended { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--glow); }
.dl-file { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.dl-file + .dl-file { margin-top: 10px; }
.dl-file-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.dl-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); margin-top: 4px; }
.dl-file-actions { display: grid; gap: 6px; justify-items: end; flex: none; max-width: 46%; }
.sha summary { cursor: pointer; }
.sha code { display: block; font-size: .72rem; margin-top: 4px; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rel-item { position: relative; }
.rel-item > .badge { position: absolute; top: 10px; right: 10px; }

/* ---------------------------------------------------------------- libraries */
.lib-search { display: grid; grid-template-columns: 1fr 200px auto; gap: 10px; margin-bottom: 24px; }
.lib-list { display: grid; gap: 12px; }
.lib-card { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lib-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.lib-card h3 { margin: 0 0 4px; }
.lib-card p { margin: 0 0 8px; }
.lib-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--teal) 15%, transparent)); color: var(--primary); flex: none; }
.lib-main { min-width: 0; }
.lib-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ver { font: 500 .8rem var(--mono); color: var(--muted); background: var(--bg-sunk); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; vertical-align: middle; }
.ver.big { font-size: 1rem; }
.lib-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.lib-side .card { padding: 20px; }
.lib-side h3 { font-size: 1rem; }
.install-box { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); min-width: 320px; }
.copy-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 8px 8px 14px; background: var(--code-bg); color: var(--code-text); border-radius: 10px; }
.copy-row code { background: none !important; border: 0 !important; color: inherit !important; font-size: .9rem; overflow-x: auto; white-space: nowrap; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: .9rem; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.versions li, .files li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: .9rem; flex-wrap: wrap; }
.versions a.active { font-weight: 700; }
.lib-mini { list-style: none; padding: 0; display: grid; gap: 8px; margin: 18px 0; }
.lib-mini li { display: grid; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }

/* ---------------------------------------------------------------- community */
.community-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.side-card { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.cat-nav { display: grid; gap: 2px; }
.cat-nav a { padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: .92rem; }
.cat-nav a:hover { background: var(--bg-sunk); text-decoration: none; }
.cat-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-sunk); border: 1px solid var(--line); gap: 2px; margin-bottom: 12px; }
.seg a { padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-size: .86rem; font-weight: 600; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-1); }
.feed { display: grid; gap: 16px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-1); transition: box-shadow .15s, border-color .15s; }
.post-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; margin-bottom: 10px; }
.post-meta.big { gap: 12px; margin: 14px 0 10px; }
.author { font-weight: 600; color: var(--text); }
.post-link { color: inherit; display: block; }
.post-link:hover { text-decoration: none; }
.post-link:hover h2 { color: var(--primary); }
.post-card h2 { font-size: 1.22rem; margin-bottom: 6px; }
.post-card p { margin-bottom: 12px; }
.thumbs { display: grid; gap: 6px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; max-height: 260px; }
.thumbs.n1 { grid-template-columns: 1fr; } .thumbs.n2 { grid-template-columns: 1fr 1fr; } .thumbs.n3 { grid-template-columns: 2fr 1fr 1fr; } .thumbs.n4 { grid-template-columns: repeat(4, 1fr); }
.thumb { width: 100%; height: 100%; max-height: 260px; object-fit: cover; display: block; background: var(--bg-sunk); aspect-ratio: 4 / 3; }
.video-thumb { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: .85rem; }
.post-actions { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.post-actions span { display: inline-flex; align-items: center; gap: 6px; }
.post-actions form { margin: 0; }
.post-actions .muted:last-child { margin-left: auto; }
.post-actions.big { gap: 8px; margin: 22px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.post-actions.big .muted:last-child { margin-left: 0; }
.post-layout { max-width: 860px; margin-inline: auto; }
.post-full h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 6px; }
.gallery { display: grid; gap: 8px; margin: 22px 0; }
.gallery.n2 { grid-template-columns: 1fr 1fr; } .gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .gallery.n4 { grid-template-columns: 1fr 1fr; }
.gallery.n3 .gallery-item:first-child { grid-row: span 2; }
.gallery-item { padding: 0; border: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: var(--bg-sunk); display: block; box-shadow: var(--shadow-1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 520px; transition: transform .3s; }
.gallery.n1 .gallery-item img { object-fit: contain; max-height: 640px; background: var(--bg-sunk); }
.gallery-item:hover img { transform: scale(1.02); }
.comments { margin-top: 34px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-body { min-width: 0; flex: 1; }
.inline-form { display: inline; margin: 0; }
.comment-form { margin-top: 18px; }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-soft); }
.feed-more { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 28px 0; }
.feed-more.loading .btn { display: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; display: none; }
.feed-more.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.search-form input { padding: 9px 12px; }

/* composer */
.tabs-mini { display: inline-flex; gap: 4px; margin-bottom: 6px; }
.tabs-mini button { border: 1px solid var(--line); background: var(--bg-soft); padding: 5px 12px; border-radius: 8px; cursor: pointer; font: 600 .82rem var(--font); color: var(--text-2); }
.tabs-mini button[aria-selected='true'] { background: var(--card); color: var(--primary); border-color: var(--primary); }
.md-preview { min-height: 110px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 400; max-width: none; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { position: relative; display: grid; gap: 4px; padding: 22px 18px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--bg-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.preview { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunk); aspect-ratio: 4 / 3; }
.preview img, .preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.preview .size { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; background: rgba(0, 0, 0, .6); color: #fff; padding: 1px 6px; border-radius: 6px; }
.progress { display: grid; gap: 6px; }
.progress .bar { height: 8px; border-radius: 999px; background: var(--bg-sunk); overflow: hidden; position: relative; }
.progress .bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--primary), var(--teal)); transition: width .2s; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3, 6, 15, .94); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { grid-column: 2; grid-row: 1; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: none; padding: 24px 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); transition: transform .2s; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb-stage.zoomed img { cursor: grab; transition: none; max-width: none; max-height: none; }
.lightbox button { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .16); }
.lb-prev, .lb-next { width: 48px; height: 64px; font-size: 32px; justify-self: center; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; z-index: 2; }
.lb-bar { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 16px; align-items: center; padding: 12px; color: #c9d3ee; font-size: .88rem; }
.lb-bar button { padding: 6px 14px; font-size: .85rem; }
.lb-bar a { color: #5eead4; }

/* video player */
.player { position: relative; margin: 22px 0; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-3); }
.player video { display: block; width: 100%; max-height: 70vh; background: #000; }
.player.enhanced video { cursor: pointer; }
.pc { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); display: grid; gap: 8px; color: #fff; transition: opacity .25s; }
.player.idle.playing .pc { opacity: 0; }
.player.idle.playing { cursor: none; }
.pc-row { display: flex; align-items: center; gap: 10px; }
.pc button { background: none; border: 0; color: #fff; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.pc button:hover { background: rgba(255, 255, 255, .16); }
.pc .time { font: 500 .8rem var(--mono); min-width: 96px; }
.pc .spacer { flex: 1; }
.pc input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 18px; cursor: pointer; padding: 0; border: 0; box-shadow: none; }
.pc input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #14b8a6 var(--fill, 0%), rgba(255, 255, 255, .3) var(--fill, 0%)); }
.pc input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.pc input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: #14b8a6; }
.pc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; }
.pc input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.pc .seek { width: 100%; }
.pc .vol { width: 90px; }
.pc select { width: auto; background: rgba(255, 255, 255, .1); color: #fff; border: 0; padding: 4px 6px; font-size: .8rem; border-radius: 6px; }
.pc select option { color: #000; }
.player .big-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(20, 184, 166, .92); border: 0; color: #fff; font-size: 30px; cursor: pointer; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); display: grid; place-items: center; padding-left: 5px; }
.player.playing .big-play { display: none; }
.player .buffering { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.player.waiting .buffering { display: block; }

/* ---------------------------------------------------------------- settings, profile */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.settings-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.settings-nav a { padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.settings-nav a:hover { background: var(--bg-sunk); text-decoration: none; }
.settings-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.token-reveal { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), var(--shadow-2); }
.token { font-size: .95rem; word-break: break-all; }
.secret-key code { font-size: 1.05rem; letter-spacing: .08em; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.profile-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 140% at 10% 0%, rgba(20, 184, 166, .12), transparent 70%), var(--bg-soft); }
.profile-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.stats strong { color: var(--text); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; }
.stat strong { font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .86rem; }
.report-item { border-top: 1px solid var(--line); padding: 10px 0; }
.report-item summary { cursor: pointer; }
.report-body { padding: 10px 0 4px 6px; }
pre.wrap { white-space: pre-wrap; word-break: break-word; background: var(--bg-soft); padding: 12px; border-radius: 10px; border: 1px solid var(--line); font-size: .85rem; }

/* home: community mini */
.post-mini-list { display: grid; gap: 10px; margin: 0 0 18px; }
.post-mini { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: inherit; box-shadow: var(--shadow-1); }
.post-mini:hover { text-decoration: none; border-color: var(--line-strong); }
.post-mini > span:last-child { display: grid; gap: 2px; min-width: 0; }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--text-2); padding: 3px 0; }
.footer-grid a:hover { color: var(--primary); }
.footer-brand img { height: 36px; width: auto; margin-bottom: 12px; display: block; }
.footer-brand p { color: var(--text-2); max-width: 40ch; }
.footer-brand a { display: inline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout.three { grid-template-columns: 220px minmax(0, 1fr); }
  .doc-toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .menu-name { display: none; }
  .nav-toggle { display: inline-grid; }
  .top-actions .btn-ghost { display: none; }
  .hero-grid, .split, .two-col, .lib-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-code { transform: none; }
  .doc-layout, .doc-layout.three, .community-layout, .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .btn { white-space: normal; text-align: center; }
  .doc-side, .side-card, .settings-nav { position: static; max-height: none; }
  .doc-side .doc-nav { display: none; }
  .settings-nav { grid-auto-flow: column; overflow-x: auto; }
  .install-box { min-width: 0; width: 100%; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 28px; }
  .lib-search { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: auto 1fr; }
}
@media (max-width: 620px) {
  .feature-grid, .form-grid, .upload-grid { grid-template-columns: 1fr; }
  .dl-file { flex-direction: column; align-items: stretch; }
  .dl-file-actions { justify-items: stretch; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form.inline { grid-auto-flow: row; }
  .doc-pager { flex-direction: column; }
  .doc-pager a { min-width: 0; }
  .doc-pager a.right { margin-left: 0; }
  .prose :not(pre) > code { overflow-wrap: anywhere; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lb-prev, .lb-next { width: 38px; height: 54px; }
  .pc .vol { display: none; }
  .gallery.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery.n3 .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .footer, .doc-side, .doc-toc, .btn { display: none !important; } body { background: #fff; color: #000; } }

/* ---------------------------------------------------------------- custom select (no browser default look) */
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2364757c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.cs { position: relative; display: block; width: 100%; min-width: 0; font-weight: 400; }
.cs > select { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; }
.cs-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px 10px 14px;
  font: 500 .95rem/1.3 var(--font); color: var(--text); text-align: left; background: var(--card); border: 1px solid var(--line-strong); border-radius: 11px;
  cursor: pointer; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s, background .15s; }
.cs-btn:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line-strong)); }
.cs-btn:focus-visible, .cs.open .cs-btn { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.cs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.cs.open .cs-chev { transform: rotate(180deg); color: var(--primary); }
.cs-list { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px); min-width: 180px; max-height: 300px; overflow: auto; margin: 0; padding: 6px;
  list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top; pointer-events: none; transition: opacity .14s, transform .14s; }
.cs.up .cs-list { top: auto; bottom: calc(100% + 6px); transform-origin: bottom; }
.cs.open .cs-list { opacity: 1; transform: none; pointer-events: auto; }
.cs-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: .93rem; color: var(--text-2); }
.cs-opt::after { content: ''; width: 16px; height: 16px; flex: none; }
.cs-opt.active { background: var(--bg-sunk); color: var(--text); }
.cs-opt[aria-selected='true'] { color: var(--primary); font-weight: 600; }
.cs-opt[aria-selected='true']::after { background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 16.2-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 16.2-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.cs-opt[aria-disabled='true'] { opacity: .45; cursor: default; }
/* compact variant inside the video player */
.pc .cs { width: auto; }
.pc .cs-btn { min-height: 30px; padding: 4px 8px 4px 10px; font-size: .8rem; color: #fff; background: rgba(255, 255, 255, .12); border-color: transparent; box-shadow: none; border-radius: 8px; }
.pc .cs-chev { width: 14px; height: 14px; color: #fff; }
.pc .cs-list { min-width: 96px; background: rgba(12, 20, 22, .96); border-color: rgba(255, 255, 255, .12); }
.pc .cs-opt { color: #d7e7e5; font-size: .82rem; padding: 7px 10px; }
.pc .cs-opt.active { background: rgba(255, 255, 255, .1); color: #fff; }
.pc .cs-opt[aria-selected='true'] { color: #5eead4; }

/* ---------------------------------------------------------------- search toolbars */
.lib-search { display: flex; align-items: stretch; gap: 10px; margin-bottom: 26px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.lib-search .search-field { position: relative; flex: 1; min-width: 0; }
.lib-search .search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.lib-search input[type=search] { height: 44px; padding-left: 42px; border-color: transparent; background: var(--bg-soft); }
.lib-search input[type=search]:focus { background: var(--card); }
.lib-search .cs { width: 210px; flex: none; }
.lib-search .cs-btn { height: 44px; box-shadow: none; background: var(--bg-soft); border-color: transparent; }
.lib-search .btn { height: 44px; padding: 0 22px; }
.search-form { position: relative; }
.search-form svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-form input[type=search] { padding-left: 38px; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
@media (max-width: 720px) {
  .lib-search { flex-wrap: wrap; }
  .lib-search .search-field { flex-basis: 100%; }
  .lib-search .cs { flex: 1; width: auto; }
}

/* ---------------------------------------------------------------- Google sign-in */
.btn-google { width: 100%; gap: 12px; background: var(--card); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); font-weight: 600; min-height: 46px; }
.btn-google:hover { border-color: var(--primary); background: var(--bg-soft); }
.btn-google svg { flex: none; }
.google-note { margin: 8px 0 0; font-size: .78rem; }

/* =====================================================================================================
   Design layer 2.1 — premium dark hero, motion, benchmarks, docs, and phone / tablet layouts
   ===================================================================================================== */
body { overflow-x: hidden; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---- top bar floats over the dark hero on the home page */
.home .topbar { background: color-mix(in srgb, var(--ink) 70%, transparent); border-bottom-color: var(--ink-line); }
.home .topbar .nav-link { color: #c7d0e0; }
.home .topbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.home .topbar .nav-link.active { color: #fff; background: rgba(45, 212, 191, .14); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .3); }
.home .topbar .icon-btn, .home .topbar .menu-btn { background: rgba(255, 255, 255, .06); border-color: var(--ink-line); color: #dbe3f0; }
.home .topbar .btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--ink-line); color: #e6ebf5; box-shadow: none; }
.home .topbar.scrolled { background: color-mix(in srgb, var(--ink) 92%, transparent); }
.home .mobile-nav .nav-link { color: #dbe3f0; }

/* ---- dark hero */
.hero-dark { background: radial-gradient(120% 80% at 50% -10%, #111a33 0%, var(--ink) 55%), var(--ink); color: var(--ink-text); padding-bottom: 40px; }
.hero-dark h1 { color: #fff; letter-spacing: -.04em; }
.hero-dark .lead { color: #b8c3d8; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.hero-dark .hero-bg { inset: 0; background: none; overflow: hidden; }
.hero-dark .hero-bg::after { background-image: linear-gradient(rgba(148, 163, 184, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .09) 1px, transparent 1px); background-size: 56px 56px; opacity: 1;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 35%, transparent 85%); -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 35%, transparent 85%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s var(--ease) infinite alternate; }
.orb.o1 { width: 520px; height: 520px; left: -140px; top: -160px; background: #0f766e; }
.orb.o2 { width: 460px; height: 460px; right: -120px; top: -60px; background: #4338ca; animation-delay: -6s; }
.orb.o3 { width: 380px; height: 380px; left: 40%; bottom: -220px; background: #0e7490; opacity: .4; animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.12); } }
.hero-dark .grad { background: linear-gradient(100deg, #5eead4 0%, #38bdf8 45%, #a5b4fc 100%); -webkit-background-clip: text; background-clip: text; }
.hero-dark .pill { background: rgba(255, 255, 255, .06); border-color: var(--ink-line); color: #dbe3f0; box-shadow: none; backdrop-filter: blur(8px); }
.hero-dark .pill:hover { text-decoration: none; border-color: rgba(45, 212, 191, .45); }
.pill-go { color: #5eead4; transition: transform .2s; } .pill:hover .pill-go { transform: translateX(3px); }
.hero-dark .hero-points { color: #94a3b8; }
.hero-cta { margin-top: 6px; }
.btn-glass { background: rgba(255, 255, 255, .07); color: #f1f5fb; border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.window.glass { background: linear-gradient(180deg, rgba(17, 24, 45, .92), rgba(8, 12, 24, .96)); box-shadow: 0 0 0 1px rgba(148, 163, 184, .16), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 80px -20px rgba(45, 212, 191, .25); }
.hero-code { animation: float-in .9s var(--ease) both .15s; }
@keyframes float-in { from { opacity: 0; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(24px); } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; } .hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-copy > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 6vw, 72px); border-radius: 18px; overflow: hidden; background: var(--ink-line); border: 1px solid var(--ink-line); }
.stat-strip .stat { background: rgba(10, 15, 30, .82); padding: 22px 22px 20px; backdrop-filter: blur(6px); }
.stat-strip .stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-strip .stat span { color: #94a3b8; font-size: .86rem; line-height: 1.4; display: block; margin-top: 4px; }

/* ---- reveal on scroll (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- three paths */
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.path-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); color: var(--text); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.path-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--primary-2), var(--sky), var(--violet)); opacity: .85; }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); text-decoration: none; }
.path-card h2, .path-card h3 { font-size: 1.18rem; margin: 6px 0 4px; }
.path-card p { color: var(--text-2); font-size: .95rem; margin: 0 0 8px; flex: 1; }
.path-num { font: 600 .78rem var(--mono); color: var(--primary); letter-spacing: .08em; }
.path-go { font-weight: 600; font-size: .9rem; color: var(--primary); }

/* ---- features with icons */
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; color: var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--violet) 12%, transparent)); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.feature { box-shadow: var(--shadow-1); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* ---- conversion pair */
.convert-pair { display: grid; gap: 10px; }
.convert-arrow { display: flex; justify-content: center; }
.convert-arrow code { border-radius: 999px !important; padding: 4px 12px !important; background: var(--primary-soft) !important; color: var(--primary) !important; border-color: color-mix(in srgb, var(--primary) 25%, transparent) !important; font-weight: 600; }
.convert-pair pre.code { font-size: .82rem; }

/* ---- benchmark bars (HTML, animated) */
.bench-card { display: flex; flex-direction: column; }
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 64px; align-items: center; gap: 8px; font-size: .82rem; }
.bar-l { color: var(--muted); font-weight: 500; }
.bar-track { height: 12px; border-radius: 6px; background: var(--bg-sunk); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 6px; background: color-mix(in srgb, var(--muted) 55%, transparent); transform-origin: left; transition: width .8s var(--ease); }
.js .bench-card.reveal:not(.in) .bar { width: 0; }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.bar-row.is-apsi .bar-l { color: var(--primary); font-weight: 700; }
.bar-row.is-apsi .bar { background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: 0 0 12px -2px color-mix(in srgb, var(--primary-2) 60%, transparent); }
.bar-row.is-best .bar-v { color: var(--ok); font-weight: 700; }
.bar-row.is-best .bar-v::after { content: ' ★'; font-size: .75em; }

.bench-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bench-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text-2); font-weight: 600; font-size: .92rem; }
.bench-tab:hover { text-decoration: none; border-color: var(--primary); color: var(--text); }
.bench-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.bench-tab.active .badge { background: color-mix(in srgb, var(--primary-2) 30%, transparent); color: inherit; }
.badge.live { background: #dc2626; color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.live-note { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); animation: ping 1.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-tile { padding: 18px 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.stat-tile span { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-tile strong { display: block; font-size: 1.9rem; letter-spacing: -.03em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat-tile em { font-style: normal; color: var(--text-2); font-size: .86rem; }
.flash-up { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--primary-2) 35%, transparent); } 100% { background: transparent; } }
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.inline-field { display: flex; align-items: center; gap: 10px; margin: 0; }
.inline-field > span { white-space: nowrap; }
.inline-field .cs { min-width: 170px; }
td.up { color: var(--ok); font-weight: 700; } td.down { color: var(--danger); font-weight: 700; }
.spark-col { min-width: 180px; }
.cmp-bars { display: grid; gap: 3px; }
.cmp { display: block; height: 7px; border-radius: 4px; }
.cmp.a { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.cmp.o { background: color-mix(in srgb, var(--muted) 55%, transparent); }

/* ---- docs */
.docs-head .head-side { display: flex; align-items: flex-end; }
.ver-pick .cs { min-width: 200px; }
.ver-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .86rem; }
.doc-nav-top { margin-bottom: 12px; }
.doc-nav-top .cs-btn { min-height: 40px; }
.doc-search.big { margin: 26px 0 8px; }
.doc-search.big input { height: 52px; font-size: 1.02rem; border-radius: 14px; box-shadow: var(--shadow-2); }
.ver-banner { margin-bottom: 18px; }
.doc-meta { margin: 0 0 6px; }
.doc-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.doc-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary-2), var(--sky), var(--violet)); }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose h2 { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.docs-mobile-nav { display: none; }

/* ---- two-factor setup */
.mfa-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; margin: 12px 0 16px; }
.qr-box { padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-2); line-height: 0; }
.qr-box svg { width: 200px; height: 200px; }
.secret-key { display: inline-block; margin-top: 6px; font-size: .95rem !important; letter-spacing: .06em; word-break: break-all; }
ol.codes { columns: 2; font-family: var(--mono); margin: 10px 0; padding-left: 22px; }
.alert-warn { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 12px; padding: 14px 16px; }
.mt-s { margin-top: 10px; }

/* ---- tablets */
@media (max-width: 1080px) {
  .stat-strip, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero-grid { gap: 36px; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 60px; }
  .brand img { height: 38px; }
  .hero-dark { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.2rem); }
  .hero-code { order: 2; max-width: 680px; }
  .path-grid { grid-template-columns: minmax(0, 1fr); }
  .path-card { padding: 20px; }
  .mobile-nav { padding: 6px 0 14px; }
  .mobile-nav .nav-link { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  .docs-mobile-nav { display: block; margin-bottom: 16px; }
  .docs-mobile-nav > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 600; box-shadow: var(--shadow-1); }
  .docs-mobile-nav > summary::-webkit-details-marker { display: none; }
  .docs-mobile-nav[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .docs-mobile-nav .doc-nav { display: block !important; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 12px 12px; padding: 14px; background: var(--card); max-height: 70vh; overflow: auto; }
  .doc-layout.three .doc-side { display: none; }
  .compare-head { align-items: stretch; }
  .inline-field { flex-wrap: wrap; }
}
/* ---- phones */
@media (max-width: 620px) {
  .shell, .shell.narrow { width: calc(100% - 32px); }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-points { gap: 6px 14px; font-size: .84rem; }
  .stat-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat-strip .stat { padding: 16px 14px; }
  .stat-strip .stat span { font-size: .78rem; }
  .stat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stat-tile { padding: 14px; }
  .stat-tile strong { font-size: 1.45rem; }
  .bench-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 40px minmax(0, 1fr) 58px; }
  .bench-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .bench-tab { flex: none; }
  pre.code { font-size: .78rem; }
  .window pre.code { max-height: 360px; }
  .mfa-setup { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  ol.codes { columns: 1; }
  .table-wrap { margin-inline: -16px; padding-inline: 16px; }
  .cta-box { padding: 22px; }
  .page-head { padding: 36px 0 20px; }
  .doc-search.big input { height: 48px; }
  .topbar-inner { gap: 10px; }
  input, select, textarea, .cs-btn { font-size: 16px; } /* no zoom-on-focus on iPhone */
}
/* touch devices: no hover-only effects, larger targets */
@media (hover: none) {
  .path-card:hover, .feature:hover { transform: none; }
  .btn, .nav-link, .bench-tab { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } .js .reveal { opacity: 1; transform: none; } }

/* widths without inline styles (the Content Security Policy forbids them) */
.w-0{width:0%} .w-1{width:1%} .w-2{width:2%} .w-3{width:3%} .w-4{width:4%} .w-5{width:5%} .w-6{width:6%} .w-7{width:7%} .w-8{width:8%} .w-9{width:9%} .w-10{width:10%} .w-11{width:11%} .w-12{width:12%} .w-13{width:13%} .w-14{width:14%} .w-15{width:15%} .w-16{width:16%} .w-17{width:17%} .w-18{width:18%} .w-19{width:19%} .w-20{width:20%} .w-21{width:21%} .w-22{width:22%} .w-23{width:23%} .w-24{width:24%} .w-25{width:25%} .w-26{width:26%} .w-27{width:27%} .w-28{width:28%} .w-29{width:29%} .w-30{width:30%} .w-31{width:31%} .w-32{width:32%} .w-33{width:33%} .w-34{width:34%} .w-35{width:35%} .w-36{width:36%} .w-37{width:37%} .w-38{width:38%} .w-39{width:39%} .w-40{width:40%} .w-41{width:41%} .w-42{width:42%} .w-43{width:43%} .w-44{width:44%} .w-45{width:45%} .w-46{width:46%} .w-47{width:47%} .w-48{width:48%} .w-49{width:49%} .w-50{width:50%} .w-51{width:51%} .w-52{width:52%} .w-53{width:53%} .w-54{width:54%} .w-55{width:55%} .w-56{width:56%} .w-57{width:57%} .w-58{width:58%} .w-59{width:59%} .w-60{width:60%} .w-61{width:61%} .w-62{width:62%} .w-63{width:63%} .w-64{width:64%} .w-65{width:65%} .w-66{width:66%} .w-67{width:67%} .w-68{width:68%} .w-69{width:69%} .w-70{width:70%} .w-71{width:71%} .w-72{width:72%} .w-73{width:73%} .w-74{width:74%} .w-75{width:75%} .w-76{width:76%} .w-77{width:77%} .w-78{width:78%} .w-79{width:79%} .w-80{width:80%} .w-81{width:81%} .w-82{width:82%} .w-83{width:83%} .w-84{width:84%} .w-85{width:85%} .w-86{width:86%} .w-87{width:87%} .w-88{width:88%} .w-89{width:89%} .w-90{width:90%} .w-91{width:91%} .w-92{width:92%} .w-93{width:93%} .w-94{width:94%} .w-95{width:95%} .w-96{width:96%} .w-97{width:97%} .w-98{width:98%} .w-99{width:99%} .w-100{width:100%}
td.num, th.num { white-space: nowrap; }
.bar-v { white-space: nowrap; }
@media (max-width: 620px) { .bar-row { grid-template-columns: 38px minmax(0, 1fr) 70px; } }

/* =====================================================================================================
   2.1.1 polish — top bar hides on scroll, unified stats panel, themed scrollbars, no stray scrollbars
   ===================================================================================================== */
/* top bar: solid, slides away while scrolling down, comes back when scrolling up */
.topbar { transition: transform .35s var(--ease), background-color .3s, border-color .3s, box-shadow .3s; will-change: transform; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar.hide { transform: translateY(-100%); }
.topbar.scrolled { box-shadow: 0 6px 24px -14px rgba(15, 23, 42, .35); }
:root[data-theme='dark'] .topbar { background: var(--bg); }
.home .topbar { background: transparent; border-bottom-color: transparent; }
.home .topbar.scrolled { background: var(--ink); border-bottom-color: var(--ink-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.home .topbar:not(.scrolled) .btn-ghost, .home .topbar:not(.scrolled) .icon-btn { background: rgba(255, 255, 255, .04); }
.home .main { margin-top: calc(-1 * var(--topbar-h)); }
.home .hero-dark { padding-top: calc(var(--topbar-h) + clamp(40px, 7vw, 96px)); }
.home .mobile-nav { background: var(--ink); border-radius: 0 0 16px 16px; padding-inline: 8px; }

/* stats: one glass panel with hairline dividers instead of four boxed cards */
.stat-strip { gap: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid rgba(148, 163, 184, .14); border-radius: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.stat-strip .stat { position: relative; background: none; backdrop-filter: none; padding: 26px 28px 24px; border: 0; border-radius: 0; box-shadow: none; display: block; }
.stat-strip .stat + .stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(180deg, transparent, rgba(148, 163, 184, .28), transparent); }
.stat-strip .stat strong { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 30%, #a9b8d6); -webkit-background-clip: text; background-clip: text; color: transparent; font-feature-settings: 'tnum' 1, 'ss01' 1; }
.stat-strip .stat:first-child strong { background-image: linear-gradient(100deg, #5eead4, #38bdf8); }
.stat-strip .stat span { color: #8e9bb4; font-size: .84rem; margin-top: 8px; max-width: 26ch; }
.stat-tile strong { font-feature-settings: 'tnum' 1; }
@media (max-width: 1080px) {
  .stat-strip .stat:nth-child(3)::before { display: none; }
  .stat-strip .stat:nth-child(n+3) { border-top: 1px solid rgba(148, 163, 184, .12); }
}
@media (max-width: 620px) { .stat-strip .stat { padding: 18px 16px; } .stat-strip .stat strong { font-size: 1.6rem; } }

/* themed scrollbars everywhere (page, code blocks, tables, menus) */
html { scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; scrollbar-width: thin; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 38%, transparent); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--muted) 60%, transparent); }
::-webkit-scrollbar-corner { background: transparent; }
pre.code, .window pre.code { scrollbar-color: rgba(148, 163, 184, .28) transparent; }
pre.code::-webkit-scrollbar-thumb { background-color: rgba(148, 163, 184, .28); }
pre.code::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, .5); }
/* the hero example fits without a horizontal scrollbar */
.hero-code pre.code { overflow: hidden; font-size: clamp(.7rem, .95vw, .84rem); }
@media (max-width: 900px) { .hero-code pre.code { overflow-x: auto; } }


/* the RSS feed opened in a browser (feed.xsl) */
.feed-page { background: radial-gradient(60% 40% at 50% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%), var(--bg-soft); min-height: 100vh; }
.feed-top { border-bottom: 1px solid var(--line); background: var(--bg); }
.feed-top-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.feed-top img { height: 40px; width: auto; display: block; }
.feed-main { padding: 48px 0 64px; }
.feed-url { display: grid; gap: 4px; margin: 22px 0 28px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px dashed var(--line-strong); }
.feed-url code { font-size: .95rem; word-break: break-all; background: none !important; border: 0 !important; padding: 0 !important; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feed-item h2 { font-size: 1.2rem; margin: 2px 0 6px; }
.feed-date { margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.feed-desc { margin: 0; color: var(--text-2); }
.feed-empty { text-align: center; padding: 40px 24px; }
.feed-foot { margin-top: 28px; text-align: center; }

/* ================================================================ 2.4.4 design pass
   Quieter, more engineered: flat colours instead of gradients and glows, hairlines instead of floating shadows,
   sentence-case labels, left-aligned section heads, tighter radii. */
:root { --radius: 10px; --radius-sm: 7px; --radius-lg: 14px;
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .06); --shadow-3: 0 2px 6px rgba(15, 23, 42, .08), 0 12px 32px -18px rgba(15, 23, 42, .25);
  --glow: none; }
.grad, .hero-dark .grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--primary); }
.hero-dark .grad { color: #5eead4; }
.orb { display: none !important; }
.hero-bg { background: none !important; }
.hero-bg::after, .hero-dark .hero-bg::after { opacity: .5; mask-image: linear-gradient(#000, transparent 85%); -webkit-mask-image: linear-gradient(#000, transparent 85%); }
.hero-dark { background: var(--ink); }
.page-head, .profile-head { background: var(--bg-soft); }
.auth-wrap { background: var(--bg-soft); }
.cta-box { background: var(--card); box-shadow: none; border: 1px solid var(--line-strong); }
.section.alt { background: var(--bg-soft); }
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.doc-group p, .toc-title, .footer-grid h4, thead th { text-transform: none; letter-spacing: 0; }
.section-head { margin: 0 0 32px; text-align: left; max-width: 820px; }
.section-head .lead { margin-inline: 0; }
.feature, .feature:hover { transform: none; box-shadow: none; }
.feature::before { display: none; }
.feature-icon { background: none; border: 0; width: auto; height: auto; justify-content: start; }
ol.steps > li::before { background: var(--text); color: var(--bg); box-shadow: none; border-radius: 8px; }
.lib-icon { background: var(--bg-sunk); }
.av-0, .av-1, .av-3, .av-5 { background: #0f766e; } .av-2 { background: #c2410c; } .av-4 { background: #6d28d9; } .av-6 { background: #a16207; } .av-7 { background: #334155; }
.progress .bar::after { background: var(--primary); }

/* in-place navigation: a thin progress line, and a short cross-fade where the browser supports it */
.nav-progress { position: fixed; z-index: 1000; top: 0; left: 0; height: 2px; width: 0; background: var(--primary); opacity: 0; transition: width 8s cubic-bezier(.1, .7, .1, 1), opacity .2s; pointer-events: none; }
.nav-progress.on { width: 85%; opacity: 1; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
@media (prefers-reduced-motion: reduce) { .nav-progress { transition: none; } }
#main:focus { outline: none; }

/* tabs (benchmark categories): without JavaScript every panel shows, one after another */
.tabbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); width: fit-content; max-width: 100%; }
.tabbar [role=tab] { appearance: none; border: 0; background: transparent; color: var(--text-2); font: 600 .92rem var(--font); padding: 8px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.tabbar [role=tab]:hover { color: var(--text); background: var(--bg-sunk); text-decoration: none; }
.tabbar [role=tab][aria-selected=true] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
[data-tabs]:not(.tabs-on) .tabbar { display: none; }
[data-tabs]:not(.tabs-on) [data-tab-panel] + [data-tab-panel] { margin-top: 40px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 18px; }
.metric { background: var(--card); padding: 14px 16px; }
.metric strong { display: block; font: 700 1.5rem/1.2 var(--font); letter-spacing: -.02em; color: var(--text); }
.metric span { color: var(--muted); font-size: .86rem; }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; align-items: center; margin: 4px 0 18px; }
.hbar .lbl { font-size: .9rem; color: var(--text-2); }
.hbar .trk { display: flex; flex-direction: column; gap: 3px; }
.hbar .b { height: 10px; border-radius: 3px; background: var(--line-strong); min-width: 2px; }
.hbar .b.us { background: var(--primary); }
.hbar .v { font: 500 .78rem var(--mono); color: var(--muted); }
.legend { display: flex; gap: 16px; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--line-strong); }
.legend i.us { background: var(--primary); }
@media (max-width: 640px) { .tabbar { width: 100%; overflow-x: auto; flex-wrap: nowrap; } .hbar { grid-template-columns: 1fr; } }
.hbar { grid-template-columns: minmax(110px, 22%) 1fr; row-gap: 12px; }
.hbar .ln { display: flex; align-items: center; gap: 8px; }
.hbar .b { flex: none; height: 9px; }
.hbar .v { white-space: nowrap; }
.path-card { border-radius: var(--radius); box-shadow: none; }
.path-card::before { display: none; }
.path-card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.path-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hero-note { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
.hero-dark .hero-note { color: #94a3b8; }
.hero-dark .hero-note a { color: #7dd3c8; }

img.avatar { object-fit: cover; background: var(--card); padding: 0; }
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { margin: .3rem 0; }
#email .row { align-items: flex-end; }
.device-list li { justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.device-list li:last-child { border-bottom: 0; }
/* all versions, grouped by version */
.ver-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ver-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ver-head h2 { margin: 0; font-size: 1.25rem; }
.ver-head .muted { margin-left: auto; }
.ver-files { list-style: none; margin: 0; padding: 0; }
.ver-files > li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ver-file { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ver-files .sha { max-width: 260px; }
.ver-notes { margin-top: 10px; }
@media (max-width: 640px) {
  .ver-files > li { grid-template-columns: auto 1fr; }
  .ver-files .sha, .ver-files .btn { grid-column: 2; justify-self: start; }
  .ver-head .muted { margin-left: 0; width: 100%; }
}
.ver-file code { align-self: flex-start; max-width: 100%; }

/* ---------------------------------------------------------------- one size scale for every control
   buttons and inputs: small 32 px, normal 40 px, large 48 px; icons buttons match; badges one size */
.btn { min-height: 40px; padding: 0 18px; }
.btn-sm { min-height: 32px; padding: 0 12px; }
.btn-lg { min-height: 48px; padding: 0 24px; }
.btn svg { flex: none; }
.icon-btn { width: 40px; height: 40px; }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; vertical-align: middle; }
.icon-btn.sm svg { width: 14px; height: 14px; }
input[type=url], input[type=number], input[type=tel], input[type=date] {
  width: 100%; font: 400 .97rem/1.4 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input:not([type]), select { min-height: 44px; }
.badge { gap: 4px; padding: 3px 10px; font-size: .75rem; line-height: 1.35; letter-spacing: .01em; vertical-align: middle; }
.badge.owner { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.badge.team { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
h1 .badge { font-size: .8rem; padding: 4px 12px; letter-spacing: .02em; }
.mono { font-family: var(--mono); }
.upper { text-transform: uppercase; letter-spacing: .08em; }
.push-right { margin-left: auto; }

/* cards in grids line up (the stacked-card margin only applies to cards in normal flow) */
:is(.two-col, .card-grid, .stack, .lib-main-col, .dl-groups, .picture-row) > .card + .card { margin-top: 0; }
.two-col > .card { height: 100%; }

/* forms: rows of fields with the button on the same line; button groups */
.form.inline, .form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row .field { flex: 1 1 200px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.action-row form { margin: 0; }

/* profile picture form */
.picture-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.picture-forms { display: grid; gap: 14px; }
.picture-forms p { margin: 0; }
.file-form { display: grid; gap: 14px; margin: 0; }
.file-pick { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; font-weight: 400; }
.file-pick input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-pick:focus-within .btn { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; }
.file-pick:hover .btn { border-color: var(--primary); color: var(--primary); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
@media (max-width: 640px) { .picture-row { grid-template-columns: 1fr; justify-items: start; } }

/* member ID, follow, profile */
.member-id { font-weight: 600; letter-spacing: .08em; }
.id-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.profile-info { min-width: 0; }
.profile-actions { display: flex; gap: 10px; align-self: start; }

/* library team list */
.team-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.team-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-list li > a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-list li > .badge { margin-left: auto; }
.team-list.wide li > .badge { margin-left: 0; }
.team-list.wide li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.team-list.wide form { margin: 0 0 0 auto; }
.lib-main-col { display: grid; gap: 18px; min-width: 0; }
.lib-main-col .comments h2 { font-size: 1.15rem; }

/* comments: the one a notification points to is highlighted */
.comment:target { background: var(--primary-soft); border-radius: 12px; padding-inline: 10px; animation: target-fade 2.5s ease-out 1s forwards; }
@keyframes target-fade { to { background: transparent; } }
.comment .link-btn { margin-left: 4px; }
.comment .link-btn[data-reply]:hover { color: var(--primary); }

/* notifications */
.inbox { position: relative; }
.inbox .count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1; display: grid; place-items: center; border: 2px solid var(--bg); }
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notice-list a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: var(--shadow-1); }
.notice-list a:hover { text-decoration: none; border-color: var(--line-strong); }
.notice-list li.unread a { border-color: color-mix(in srgb, var(--primary) 40%, transparent); background: color-mix(in srgb, var(--primary-soft) 60%, var(--card)); }
.notice-text { display: grid; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notice-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-sunk); color: var(--primary); flex: none; }
.seg a[aria-selected=true] { background: var(--card); color: var(--text); box-shadow: var(--shadow-1); }

/* install steps: commands as blocks, so they never break in the middle */
.cmd { display: block; margin: 6px 0 2px; padding: 9px 12px; background: var(--code-bg); color: var(--code-text); border-radius: 9px; font: 500 .84rem/1.5 var(--mono); overflow-x: auto; white-space: pre; }
/* form buttons are as wide as their label everywhere (sign-in pages use .btn-block on purpose) */
.form > .btn:not(.btn-block), .form > button.btn:not(.btn-block) { justify-self: start; }
.meta-list dd a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.meta-list dd a svg { flex: none; }
.llms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.llms-list li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.llms-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.llms-list a { font-weight: 600; }
.llms-list .muted { font-size: .92rem; }
