/* Digital Crew design site — chrome built from the system's own tokens (tokens.css). */
:root {
  --header-h: 60px; --side-w: 256px; --toc-w: 208px;
  --font-ui: var(--font-cabinet);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --line: color-mix(in oklab, var(--border) 80%, transparent);
  --soft: color-mix(in oklab, var(--muted) 55%, var(--background));
  --ink-8: color-mix(in oklab, var(--foreground) 8%, transparent);
  --ink-35: color-mix(in oklab, var(--foreground) 35%, var(--border));
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -16px rgba(0, 0, 0, 0.22);
}
[data-theme^="max"] { --font-ui: var(--font-inter); }
[data-theme$="-dark"] { --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -18px rgba(0, 0, 0, 0.7); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-ui); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--foreground); color: var(--background); padding: 8px 12px; border-radius: var(--radius-md); text-decoration: none; }
.skip:focus { top: 8px; }
.icon { width: 16px; height: 16px; flex: none; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font-family: var(--font-mono); font-size: 11px; line-height: 1; border: 1px solid var(--border); border-radius: 5px; background: var(--background); color: var(--muted-foreground); }

/* ── header ─────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--background) 82%, transparent); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand .logo { height: 20px; width: auto; }
.brand .logo-dark, .brand .mark { display: none; }
[data-theme$="-dark"] .brand .logo-light { display: none; }
[data-theme$="-dark"] .brand .logo-dark { display: block; }
.brand .word { padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-foreground); }
.tabs-top { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.tabs-top a { position: relative; padding: 6px 11px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); text-decoration: none; transition: color 150ms var(--ease), background-color 150ms var(--ease); white-space: nowrap; }
.tabs-top a:hover { color: var(--foreground); background: var(--ink-8); }
.tabs-top a[aria-current="true"] { color: var(--foreground); }
.tabs-top a[aria-current="true"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--foreground); }
.top .spacer { flex: 1; }
.searchbtn { display: flex; align-items: center; gap: 8px; height: 36px; width: 260px; padding: 0 8px 0 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); color: var(--muted-foreground); font-size: 14px; cursor: pointer; transition: border-color 150ms var(--ease); }
.searchbtn:hover { border-color: var(--ink-35); }
.searchbtn .kbd { margin-left: auto; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--background); color: var(--foreground); cursor: pointer; text-decoration: none; font-size: 13.5px; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.iconbtn:hover { border-color: var(--ink-35); background: var(--soft); }
.iconbtn .dot { width: 10px; height: 10px; border-radius: 99px; background: var(--primary); box-shadow: 0 0 0 2px var(--background), 0 0 0 3px var(--border); }
.menubtn { display: none; }
.theme { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 248px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-lift); }
.menu[hidden] { display: none; }
.menu p { margin: 6px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.menu .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.menu .opts.three { grid-template-columns: 1fr 1fr 1fr; }
.menu button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 1px solid var(--border); border-radius: 9px; background: transparent; font-size: 13px; cursor: pointer; }
.menu button[aria-pressed="true"] { border-color: var(--foreground); background: var(--ink-8); font-weight: 600; }
.menu button i { width: 10px; height: 10px; border-radius: 99px; }

/* ── frame ──────────────────────────────────────────── */
.frame { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w); min-height: calc(100vh - var(--header-h)); }
.frame.notoc { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.frame.full { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .frame.full > .side { display: none; } }
.side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 28px 16px 48px 20px; font-size: 14px; scrollbar-width: thin; }
.side .sidehead { margin: 0 10px 14px; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.side .filter { position: relative; margin: 0 0 14px; }
.side .filter input { width: 100%; height: 34px; padding: 0 10px 0 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); color: var(--foreground); font: inherit; font-size: 13.5px; }
.side .filter input::placeholder { color: var(--muted-foreground); }
.side .filter .icon { position: absolute; left: 10px; top: 9px; color: var(--muted-foreground); pointer-events: none; }
.nav-sec { margin: 22px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.nav .grp:first-child .nav-sec { margin-top: 0; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: color-mix(in oklab, var(--foreground) 72%, transparent); line-height: 1.35; transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.nav a:hover { background: var(--ink-8); color: var(--foreground); }
.nav a[aria-current="page"] { background: var(--ink-8); color: var(--foreground); font-weight: 600; box-shadow: inset 2px 0 0 var(--foreground); }
.nav a .n { margin-left: auto; font-size: 11.5px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; font-weight: 400; }
.nav details > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--foreground); font-weight: 500; }
.nav details > summary::-webkit-details-marker { display: none; }
.nav details > summary::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 150ms var(--ease); opacity: 0.5; margin-right: 3px; }
.nav details[open] > summary::before { transform: rotate(45deg); }
.nav details > summary:hover { background: var(--ink-8); }
.nav details > summary .n { margin-left: auto; font-size: 11.5px; color: var(--muted-foreground); font-weight: 400; }
.nav details .sub { margin: 2px 0 8px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav .empty { padding: 8px 10px; color: var(--muted-foreground); font-size: 13px; }
main { min-width: 0; padding: 48px 56px 0; overflow-x: clip; }
.page { max-width: 780px; margin: 0 auto; }
.page.w { max-width: 1160px; }
.toc { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 48px 20px 40px 4px; font-size: 13px; }
.toc p { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.toc a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--line); color: var(--muted-foreground); text-decoration: none; line-height: 1.4; transition: color 120ms var(--ease), border-color 120ms var(--ease); }
.toc a.l3 { padding-left: 24px; }
.toc a:hover, .toc a.on { color: var(--foreground); border-left-color: var(--foreground); }
.toc .alt { margin-top: 28px; display: grid; gap: 8px; }
.toc .alt a { border: 0; padding: 0; display: flex; align-items: center; gap: 6px; }

/* ── page furniture ─────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; font-size: 13px; color: var(--muted-foreground); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--foreground); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
h1.title { margin: 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
[data-theme^="max"] h1.title { font-weight: 700; letter-spacing: -0.04em; }
.lead { margin: 16px 0 0; font-size: 18.5px; line-height: 1.55; color: var(--muted-foreground); max-width: 62ch; text-wrap: pretty; }
.lead code { font-family: var(--font-mono); font-size: 0.82em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; color: var(--muted-foreground); background: var(--background); text-decoration: none; white-space: nowrap; transition: border-color 120ms var(--ease), color 120ms var(--ease); }
a.chip:hover, button.chip:hover { color: var(--foreground); border-color: var(--ink-35); }
button.chip { cursor: pointer; }
.chip .dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.chip.crew .dot { background: var(--foreground); }
.chip.max .dot { background: #f97316; }
.chip.both .dot { background: linear-gradient(90deg, var(--foreground) 50%, #f97316 50%); }
.chip code { font-family: var(--font-mono); font-size: 11.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); text-decoration: none; font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease); }
.btn:hover { border-color: var(--ink-35); background: var(--soft); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn.primary:hover { background: color-mix(in oklab, var(--primary) 88%, var(--background)); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; }
.pager a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; transition: border-color 150ms var(--ease); }
.pager a:hover { border-color: var(--ink-35); }
.pager a span { font-size: 12.5px; color: var(--muted-foreground); }
.pager a b { font-weight: 600; font-size: 15.5px; }
.pager a.next { text-align: right; grid-column: 2; }

/* ── footer ─────────────────────────────────────────── */
.foot { margin-top: 96px; padding: 48px 0 40px; border-top: 1px solid var(--line); }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 24px; }
.foot .about p { margin: 12px 0 0; font-size: 13.5px; color: var(--muted-foreground); max-width: 30ch; }
.foot .about img { height: 18px; width: auto; }
.foot .about .logo-dark { display: none; }
[data-theme$="-dark"] .foot .about .logo-light { display: none; }
[data-theme$="-dark"] .foot .about .logo-dark { display: block; }
.foot h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.foot a { text-decoration: none; color: color-mix(in oklab, var(--foreground) 78%, transparent); }
.foot a:hover { color: var(--foreground); }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: 12.5px; color: var(--muted-foreground); }

/* ── prose ──────────────────────────────────────────── */
.prose { margin-top: 36px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 14px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
.prose h3 { margin: 32px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.prose h2 a.anchor, .prose h3 a.anchor { margin-left: 8px; opacity: 0; text-decoration: none; color: var(--muted-foreground); font-weight: 400; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }
.prose p, .prose li { max-width: 70ch; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted-foreground); }
.prose li:has(> input[type="checkbox"]) { list-style: none; margin-left: -22px; display: flex; gap: 10px; align-items: baseline; }
.prose li > input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--ink-35); border-radius: 6px; transform: translateY(3px); }
.about-lib { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--foreground) 28%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--foreground); }
.prose a.ccard, .prose a.tile, .prose a.chip, .prose a.file, .prose a.btn, .prose a.role, .pager a { text-decoration: none; }
.prose code { font-family: var(--font-mono); font-size: 0.85em; padding: 1px 5px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); white-space: break-spaces; }
.prose a code { text-decoration: none; }
pre { position: relative; margin: 16px 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--soft); overflow: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; tab-size: 2; }
pre code { background: none !important; border: 0 !important; padding: 0 !important; font-size: inherit !important; white-space: pre !important; }
.copy { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--background); color: var(--muted-foreground); font-size: 12px; cursor: pointer; opacity: 0; transition: opacity 150ms var(--ease); }
pre:hover .copy, .copy:focus-visible { opacity: 1; }
.prose table, table.t { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.prose th, table.t th { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-foreground); }
.prose td, table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td { overflow-wrap: anywhere; }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--border); color: var(--muted-foreground); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.callout { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--soft); font-size: 14.5px; }
.callout b { font-weight: 700; }

/* ── home ───────────────────────────────────────────── */
.home { max-width: 1200px; margin: 0 auto; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 40px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -48px -56px 0; z-index: -1; background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--foreground) 12%, transparent) 1px, transparent 0); background-size: 22px 22px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); }
.hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 72px); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
[data-theme^="max"] .hero h1 { font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--dc-sophie), var(--dc-claire) 22%, var(--dc-camille) 48%, var(--dc-max) 74%, var(--dc-kate)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; margin-top: 20px; }
.herosearch { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; height: 52px; margin-top: 30px; padding: 0 10px 0 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--background); box-shadow: var(--shadow-lift); color: var(--muted-foreground); font-size: 15.5px; cursor: text; text-align: left; transition: border-color 150ms var(--ease); }
.herosearch:hover { border-color: var(--ink-35); }
.herosearch .icon { width: 18px; height: 18px; }
.herosearch .kbd { margin-left: auto; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted-foreground); align-items: center; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.mosaic .t { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--c1) 60%, transparent), 0 14px 34px -18px var(--c1); display: grid; place-items: center; text-decoration: none; animation: breakout 900ms var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); transition: transform 250ms var(--ease); }
.mosaic .t:hover { transform: translateY(-3px) scale(1.02); }
.mosaic .t video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic .t .ini { font-size: clamp(30px, 4vw, 48px); font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.mosaic .t .nm { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 11.5px; font-weight: 600; }
.mosaic .core { background: var(--foreground); box-shadow: 0 20px 50px -20px color-mix(in oklab, var(--foreground) 60%, transparent); animation: none; }
.mosaic .core img { width: 46%; height: auto; }
.mosaic .core .logo-onink-dark { display: none; }
[data-theme$="-dark"] .mosaic .core .logo-onink-light { display: none; }
[data-theme$="-dark"] .mosaic .core .logo-onink-dark { display: block; }
@keyframes breakout { from { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.6); } to { opacity: 1; transform: none; } }
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band .head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.band h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
[data-theme^="max"] .band h2 { font-weight: 700; }
.band .head p { margin: 10px 0 0; color: var(--muted-foreground); font-size: 16.5px; max-width: 56ch; }
.band .head a { white-space: nowrap; font-size: 14.5px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.band .head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.role { position: relative; display: grid; align-content: start; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--background); text-decoration: none; transition: border-color 150ms var(--ease), box-shadow 250ms var(--ease), transform 250ms var(--ease); }
.role:hover { border-color: var(--ink-35); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.role .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in oklab, var(--c) 14%, transparent); color: var(--c); }
.role .ic svg { width: 20px; height: 20px; }
.role h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.role p { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted-foreground); }
.role ul { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; }
.role li { display: flex; align-items: center; gap: 6px; color: color-mix(in oklab, var(--foreground) 82%, transparent); }
.role li::before { content: ""; width: 4px; height: 4px; border-radius: 99px; background: var(--c); flex: none; }
.role .go { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dlc { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--soft); min-width: 0; }
.dlc .pv i { display: block; }
.dlc .pv { height: 88px; border-radius: 12px; background: var(--background); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.dlc h3 { margin: 0; font-size: 16px; font-weight: 700; }
.dlc p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted-foreground); line-height: 1.5; }
.dlc .row { display: flex; flex-wrap: wrap; gap: 6px; }
.show { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.show .ccard:nth-child(1) { grid-column: span 7; }
.show .ccard:nth-child(2) { grid-column: span 5; }
.show .ccard:nth-child(3), .show .ccard:nth-child(4), .show .ccard:nth-child(5) { grid-column: span 4; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ftile { display: grid; grid-template-rows: 120px auto; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; text-decoration: none; background: var(--background); transition: border-color 150ms var(--ease), transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.ftile:hover { border-color: var(--ink-35); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ftile .v { display: grid; place-items: center; background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.ftile .b { padding: 14px 16px 16px; }
.ftile b { display: block; font-size: 15.5px; }
.ftile span { font-size: 13px; color: var(--muted-foreground); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.story blockquote span { color: var(--muted-foreground); }
.spectrum { display: grid; grid-template-columns: 2fr repeat(8, 1fr); gap: 6px; height: 140px; }
.spectrum i { border-radius: 12px; transition: transform 250ms var(--ease); }
.spectrum i:first-child { background: var(--foreground); }
.spectrum:hover i:not(:first-child) { transform: translateY(-6px); }
.spectrum i:nth-child(2) { transition-delay: 0ms; } .spectrum i:nth-child(3) { transition-delay: 30ms; } .spectrum i:nth-child(4) { transition-delay: 60ms; } .spectrum i:nth-child(5) { transition-delay: 90ms; } .spectrum i:nth-child(6) { transition-delay: 120ms; } .spectrum i:nth-child(7) { transition-delay: 150ms; } .spectrum i:nth-child(8) { transition-delay: 180ms; } .spectrum i:nth-child(9) { transition-delay: 210ms; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.stats div { display: grid; }
.stats b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted-foreground); }

/* ── shared cards ───────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 20px 0; }
.tile { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--background); text-decoration: none; text-align: left; cursor: pointer; transition: border-color 150ms var(--ease), transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.tile:hover { border-color: var(--ink-35); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.tile h3 { margin: 0; font-size: 16px; font-weight: 700; }
.tile p { margin: 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.5; }
.cfilter { position: sticky; top: var(--header-h); z-index: 5; display: grid; gap: 10px; margin: 28px 0 8px; padding: 12px 0; background: color-mix(in oklab, var(--background) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cfilter .row1 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cfilter input { flex: 1 1 260px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); color: var(--foreground); font: inherit; font-size: 15px; }
.cfilter .groups { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 11px; background: var(--soft); }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--background); color: var(--foreground); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--line); }
.cgroup { margin-top: 44px; }
.cgroup h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cgroup h2 .n { font-size: 14px; font-weight: 400; color: var(--muted-foreground); }
.cgroup > p { margin: 0; color: var(--muted-foreground); font-size: 14px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 8px; }
.ccard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--background); text-decoration: none; transition: border-color 150ms var(--ease), transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.ccard:hover { border-color: var(--ink-35); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ccard .th { position: relative; aspect-ratio: 16 / 10; background: var(--background); border-bottom: 1px solid var(--line); overflow: hidden; }
.ccard .th img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 400ms var(--ease); }
.ccard:hover .th img { transform: scale(1.02); }
.ccard .th img.d { display: none; }
[data-theme$="-dark"] .ccard .th img.l { display: none; }
[data-theme$="-dark"] .ccard .th img.d { display: block; }
.ccard .bd { display: grid; align-content: start; gap: 4px; padding: 13px 15px 15px; }
.ccard .bd b { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ccard .bd b .pg { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; }
.ccard .bd b .pd { margin-left: auto; width: 7px; height: 7px; border-radius: 99px; background: var(--foreground); }
.ccard .bd b .pd.max { background: #f97316; }
.ccard .bd b .pd.both { background: linear-gradient(90deg, var(--foreground) 50%, #f97316 50%); }
.ccard .bd span { font-size: 13px; line-height: 1.45; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noresult { display: none; padding: 32px; text-align: center; color: var(--muted-foreground); border: 1px dashed var(--border); border-radius: 16px; margin-top: 24px; }

/* ── component page ─────────────────────────────────── */
.ctabs { position: sticky; top: var(--header-h); z-index: 6; display: flex; gap: 2px; margin: 32px 0 0; padding-top: 6px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--background) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ctabs a { padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--muted-foreground); text-decoration: none; }
.ctabs a:hover { color: var(--foreground); }
.ctabs a.on { color: var(--foreground); border-bottom-color: var(--foreground); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin-top: 24px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--line); }
.facts div { display: grid; gap: 2px; padding: 12px 14px; background: var(--background); min-width: 0; }
.facts span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-foreground); }
.facts code { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.facts button { justify-self: start; margin-top: 4px; }
.stage { margin-top: 28px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--background); box-shadow: var(--shadow-lift); }
.stage .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 12.5px; color: var(--muted-foreground); }
.stage .bar .grow { flex: 1; }
.stage .bar .seg { padding: 2px; border-radius: 9px; }
.stage .bar .seg button { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.stage .bar .seg button i { width: 8px; height: 8px; border-radius: 99px; }
.stage .bar a, .stage .bar > button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--background); color: var(--foreground); font-size: 12.5px; text-decoration: none; cursor: pointer; }
.stage .bar .icon { width: 14px; height: 14px; }
.stage .view { position: relative; overflow: hidden; }
.stage iframe { display: block; width: 100%; border: 0; background: var(--background); transform-origin: 0 0; }
.related { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ── tokens ─────────────────────────────────────────── */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 16px 0 28px; }
.sw { display: grid; grid-template-rows: 64px auto; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--background); cursor: pointer; text-align: left; padding: 0; transition: border-color 150ms var(--ease), transform 250ms var(--ease); }
.sw:hover { border-color: var(--ink-35); transform: translateY(-1px); }
.sw i { display: block; box-shadow: inset 0 -1px 0 var(--line); }
.sw div { padding: 9px 11px 10px; min-width: 0; }
.sw b { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0 28px; }
.tt th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-foreground); padding: 7px 8px; border-bottom: 1px solid var(--border); }
.tt td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tt td.v { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; cursor: pointer; }
.tt td.v:hover { color: var(--foreground); text-decoration: underline; }
.tt td.v i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.35); }
.tt td.u { color: var(--muted-foreground); min-width: 220px; }
.tt code { font-family: var(--font-mono); font-size: 12px; }
.scroll-x { overflow-x: auto; }
.agentpal { display: grid; grid-template-columns: 110px repeat(5, 1fr); gap: 6px; align-items: center; margin: 6px 0; font-size: 13.5px; }
.agentpal button { height: 40px; border: 0; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.25); transition: transform 150ms var(--ease); }
.agentpal button:hover { transform: translateY(-2px); }
.typespec { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.typespec .s { overflow-wrap: anywhere; }
.typespec .m { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-foreground); }
.typespec .u { font-size: 13.5px; color: var(--muted-foreground); max-width: 72ch; }
.scale { display: grid; gap: 8px; margin: 16px 0 28px; }
.scale .row { display: grid; grid-template-columns: 110px 60px 1fr; gap: 12px; align-items: center; font-size: 13px; }
.scale .row code { font-family: var(--font-mono); font-size: 12px; }
.scale .bar { height: 12px; border-radius: 3px; background: var(--foreground); }
.radii, .shadows { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.radii div, .shadows div { display: grid; gap: 8px; font-size: 12.5px; }
.radii i { height: 72px; border: 1.5px solid var(--foreground); background: var(--soft); }
.shadows i { height: 72px; border-radius: var(--radius-lg); background: var(--card); }
.radii code, .shadows code { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-foreground); }

/* ── agents & assets ────────────────────────────────── */
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 36px; }
.agent { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--background); }
.agent .face { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3)); box-shadow: 0 0 0 2px var(--c1), 0 12px 30px -12px var(--c1); display: grid; place-items: center; }
.agent .face video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agent .face .ini { font-size: 64px; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.agent .nm { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px; }
.agent .nm b { font-size: 17px; font-weight: 700; }
.agent .nm span { font-size: 12px; color: var(--muted-foreground); }
.agent .rl { font-size: 13.5px; color: var(--muted-foreground); margin-top: -6px; padding: 0 4px; }
.agent .pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 4px 4px; }
.agent .pal i { height: 10px; border-radius: 3px; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 32px; }
.roster figure { margin: 0; display: grid; gap: 6px; }
.roster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 14px; background: #000; }
.roster figcaption { font-size: 13px; line-height: 1.35; }
.roster figcaption span { display: block; color: var(--muted-foreground); font-size: 12px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 32px; }
.file { display: grid; grid-template-rows: auto auto; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--background); text-decoration: none; transition: border-color 150ms var(--ease); }
.file:hover { border-color: var(--ink-35); }
.file .pv { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.file .pv.onlight { background: #fafafa; }
.file .pv.ondark { background: #111; }
.file .pv img, .file .pv video { max-height: 100%; object-fit: contain; }
[data-theme$="-dark"] .file .pv.inv img { filter: invert(1); }
.file .fn { padding: 8px 10px; font-family: var(--font-mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .fn small { display: block; font-family: var(--font-ui); color: var(--muted-foreground); }
.files.icons { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.files.icons .pv { aspect-ratio: 1; padding: 22px; }
.bundle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--soft); }
.bundle b { display: block; font-size: 15.5px; }
.bundle span { font-size: 13.5px; color: var(--muted-foreground); }
.bundle .row { display: flex; flex-wrap: wrap; gap: 6px; }
.checks { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; margin: 0 !important; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; border: 1.5px solid var(--ink-35); }

/* ── search dialog & toast ──────────────────────────── */
.sd { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: color-mix(in oklab, #000 40%, transparent); backdrop-filter: blur(3px); }
.sd.open { display: flex; }
.sd .box { width: min(660px, 100%); max-height: 70vh; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--border); border-radius: 18px; background: var(--popover); color: var(--popover-foreground); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); overflow: hidden; animation: pop 200ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.sd .inrow { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.sd .inrow .icon { width: 18px; height: 18px; color: var(--muted-foreground); }
.sd input { width: 100%; height: 56px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16.5px; outline: none; }
.sd ul { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.sd li.h { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.sd li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; }
.sd li a b { font-weight: 600; font-size: 14.5px; }
.sd li a small { grid-column: 1; font-size: 12.5px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd li a em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 11.5px; color: var(--muted-foreground); }
.sd li a[aria-selected="true"], .sd li a:hover { background: var(--ink-8); }
.sd .foot2 { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: var(--foreground); color: var(--background); font-size: 14px; font-weight: 500; pointer-events: none; transition: opacity 200ms var(--ease), transform 250ms var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 1279px) {
  .frame { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .toc { display: none; }
  main { padding: 40px 40px 0; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .cols { grid-template-columns: repeat(3, 1fr); }
  .searchbtn { width: 200px; }
}
@media (max-width: 1023px) {
  .tabs-top { display: none; }
  .menubtn { display: inline-flex; }
  .frame, .frame.notoc { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 50; top: var(--header-h); left: 0; bottom: 0; height: auto; width: min(320px, 86vw); background: var(--background); border-right: 1px solid var(--border); transform: translateX(-102%); transition: transform 250ms var(--ease); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: color-mix(in oklab, #000 35%, transparent); }
  .side .mobtabs { display: grid !important; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 16px; }
  .mosaic { justify-self: center; max-width: 380px; }
  .dl, .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show .ccard:nth-child(n) { grid-column: span 6; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .top { gap: 8px; padding: 0 12px; }
  .brand .logo, [data-theme$="-dark"] .brand .logo-dark { display: none; }
  .brand .mark { display: block; height: 20px; width: auto; }
  [data-theme$="-dark"] .brand .mark { filter: invert(1); }
  .searchbtn { width: 38px; padding: 0; justify-content: center; }
  .searchbtn span, .searchbtn .kbd, .hide-sm { display: none !important; }
  main { padding: 28px 16px 0; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role ul { display: none; }
  .role { grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
  .role h3, .role p, .role .go { grid-column: 2; }
  .role .ic { grid-row: span 3; align-self: start; }
  .dl, .fgrid { grid-template-columns: minmax(0, 1fr); }
  .show .ccard:nth-child(n) { grid-column: span 12; }
  .band { padding: 52px 0; }
  .band .head { display: grid; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: 1; }
  .foot .cols { grid-template-columns: repeat(2, 1fr); }
  .agentpal { grid-template-columns: 80px repeat(5, 1fr); }
  .scale .row { grid-template-columns: 90px 50px 1fr; }
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .agent .face .ini { font-size: 44px; }
  .spectrum { height: 96px; }
  .herosearch { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}
.side .mobtabs { display: none; gap: 2px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side .mobtabs a { padding: 7px 10px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.side .mobtabs a[aria-current="true"] { background: var(--ink-8); }
