:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --card: #16161a;
  --card-art: #0e0e11;
  --text: #ededef;
  --text-2: #a4a4ab;
  --muted: #6c6c74;
  --line: #24242a;
  --line-2: #33333b;
  --accent: #d7d7dc;
  --key: #c6ff3d;            /* key color used by the illustration animations */
  --key-soft: rgba(198, 255, 61, .14);
  --high: #ededef;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 600px at 70% -10%, #1a1a20 0%, transparent 60%), var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ── Header ──────────────────────────────── */
.site-header { border-bottom: 1px solid transparent; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.site-nav { display: flex; gap: 20px; font-size: 13px; color: var(--text-2); }
.site-nav a:hover { color: var(--text); }
@media (max-width: 520px) { .site-nav a:not(:first-child) { display: none; } }

/* ── Shared ──────────────────────────────── */
.badge-row { display: flex; align-items: center; gap: 0; }
.badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: #e9e9ec; color: #111; padding: 8px 12px; white-space: nowrap;
}
a.badge:hover { background: #fff; }
.rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ── Hub ─────────────────────────────────── */
.hub-hero { padding-top: 48px; }
.hub-hero-body { display: grid; gap: 24px; align-items: center; padding: 56px 0 40px; }
@media (min-width: 820px) { .hub-hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); } }
.hub-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 12px; line-height: 1.1; }
.hub-hero p { color: var(--text-2); margin: 0; max-width: 46ch; }
.hero-art { justify-self: end; width: 100%; max-width: 520px; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 819px) { .hero-art { justify-self: center; width: min(420px, 100%); } }

.iso .f-top { fill: #121216; stroke: #8a8a94; stroke-width: .8; }
.iso .f-top.accent { fill: #1c1c22; stroke: #e2e2e6; }
.iso .f-side { fill: #0c0c0f; stroke: #55555e; stroke-width: .8; }
.iso .f-side2 { fill: #09090b; stroke: #45454d; stroke-width: .8; }
.iso .ghost { fill: none; stroke: #6c6c74; stroke-width: .8; stroke-dasharray: 3 3; }
.iso .stroke { stroke: #7a7a84; stroke-width: .8; }
.iso .link { stroke: #55555e; stroke-width: .8; stroke-dasharray: 2 3; }

.cards { display: grid; gap: 16px; padding-bottom: 96px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.tcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.tcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tcard-art { height: 200px; display: grid; place-items: center; background: var(--card-art); border-bottom: 1px solid var(--line); overflow: hidden; }
.tcard-art svg { width: 78%; height: 78%; transition: transform .4s; }
.tcard:hover .tcard-art svg { transform: scale(1.04); }
.tcard-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); font-weight: 600; }
.pill { border: 1px solid var(--line-2); padding: 2px 8px; font-weight: 500; font-size: 10px; color: var(--muted); white-space: nowrap; }
.tcard h2 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.tcard p { color: var(--text-2); font-size: 13px; margin: 0 0 24px; }
.tcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); color: var(--muted); }
.tcard-foot svg { color: var(--text); transition: transform .2s; }
.tcard:hover .tcard-foot svg { transform: translateX(3px); }

/* ── Taxonomy ────────────────────────────── */
.tax-hero { padding-top: 48px; }
.tax-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin: 40px 0 12px; line-height: 1.1; }
.tax-hero > p { color: var(--text-2); max-width: 56ch; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); margin: 48px 0 0; padding: 24px 0; border-top: 1px solid var(--line); }
.stats div { text-align: center; display: grid; gap: 4px; }
.stats div + div { border-left: 1px solid var(--line-2); }
.stats b { font: 500 26px var(--mono); }
.stats span { font-size: 11px; color: var(--muted); }

.tabbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(8, 8, 10, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabbar-inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; align-self: stretch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13px; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a span { font: 11px var(--mono); color: var(--muted); }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); }
.tools { display: flex; gap: 6px; align-items: center; flex: none; }
.tool { height: 34px; min-width: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; background: transparent; border: 1px solid transparent; color: var(--text-2); cursor: pointer; font-size: 12px; }
.tool:hover { color: var(--text); }
.tool.md { border-color: var(--line-2); }
.tool[aria-pressed="true"] { background: #1d1d22; color: var(--text); }
.filter { height: 34px; width: 140px; padding: 0 10px; background: transparent; border: 1px solid var(--line-2); font-size: 12px; }
.filter:focus { outline: none; border-color: var(--text-2); }
@media (max-width: 760px) {
  .tabbar-inner { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .tools { order: -1; width: 100%; padding-bottom: 4px; }
  .filter { flex: 1; width: auto; }
  .tabs { min-height: 44px; flex-basis: 100%; }
  .tabs a { padding: 0 10px; }
}

.part { padding-top: 64px; scroll-margin-top: 72px; }
.part-head { padding-bottom: 24px; }
.part-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; }
.part-head p { color: var(--muted); font-size: 13px; margin: 0; }

.cats { border-top: 1px solid var(--line); }
.cat { border-bottom: 1px solid var(--line); }
.cat summary { list-style: none; display: flex; align-items: baseline; gap: 8px; padding: 18px 0; cursor: pointer; }
.cat summary::-webkit-details-marker { display: none; }
.cat .num { font: 13px var(--mono); color: var(--muted); min-width: 28px; }
.cat .cname { font-weight: 600; font-size: 15px; }
.cat .csub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cat .count { margin-left: auto; font: 12px var(--mono); color: var(--muted); padding-left: 12px; }
.cat .chev { color: var(--muted); align-self: center; transition: transform .2s; flex: none; }
.cat[open] .chev { transform: rotate(180deg); }
.cat summary:hover .cname { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.cat-body { padding: 0 0 32px; }
.cat-body > p { color: var(--text-2); max-width: 60ch; margin: 0 0 20px; font-size: 14px; }
@media (max-width: 560px) { .cat .csub { display: none; } }

.table-scroll { overflow-x: auto; }
.kw { width: 100%; border-collapse: collapse; font-size: 13px; }
.kw th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.kw td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.kw td.name { font-family: var(--mono); color: var(--text); white-space: nowrap; width: 22%; }
.kw td.name a { border-bottom: 1px solid var(--line-2); }
.kw td.name a:hover { border-color: var(--text); }
.kw td.dep { font: 11px/1.7 var(--mono); color: var(--muted); width: 20%; }
.kw td.end { text-align: right; padding-right: 0; white-space: nowrap; }
.kw .freq { text-align: right; width: 64px; font-size: 12px; padding-right: 0; }
.kw th:last-child { text-align: right; padding-right: 0; }
.kw:not(.cols-4) th:last-child, .kw.flat th:last-child { text-align: left; }
.f-high { color: var(--high) !important; }
.f-medium { color: var(--text-2) !important; }
.f-low { color: var(--muted) !important; }
.kw.flat td.name { font-family: var(--mono); width: 18%; }
.kw.flat td { min-width: 160px; }
.kw.cols-3 td:nth-child(3) { color: var(--muted); font-size: 12px; text-transform: capitalize; }

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { font: 13px/1.9 var(--mono); margin-top: 8px; }
.tree ul { padding-left: 20px; border-left: 1px solid var(--line-2); margin-left: 6px; }
.tree li { position: relative; }
.tree ul > li::before { content: ""; position: absolute; left: -20px; top: .95em; width: 14px; border-top: 1px solid var(--line-2); }
.t-part { font: 700 18px var(--sans); }
.t-cat { color: var(--text); font-weight: 500; }
.t-n { color: var(--muted); margin-left: 8px; font-size: 11px; }
.tree ul ul li { color: var(--text-2); }
.tree a { border-bottom: 1px solid var(--line-2); }

.empty { padding: 96px 0; text-align: center; color: var(--muted); }

/* ── Entry ───────────────────────────────── */
.entry { padding-top: 48px; padding-bottom: 80px; max-width: 760px; overflow-wrap: break-word; }
.entry > .eyebrow { margin-top: 48px; }
.entry h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 16px; line-height: 1.1; }
.entry .lede { font-size: 19px; color: var(--text); margin: 0 0 24px; }
.entry .body { color: var(--text-2); font-size: 16px; margin: 0 0 32px; }
.tip { border: 1px solid var(--line-2); padding: 16px 18px; color: var(--text-2); background: var(--card); }
.tip .eyebrow { margin-bottom: 4px; }
.related { margin-top: 40px; }
.related .eyebrow { margin-bottom: 10px; }
.related div { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 12px var(--mono); border: 1px solid var(--line-2); padding: 6px 12px; color: var(--text-2); }
.chip:hover { color: var(--text); border-color: var(--text-2); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { border: 1px solid var(--line); padding: 14px 16px; background: var(--card); }
.pager a:hover { border-color: var(--line-2); }
.pager small { display: block; color: var(--muted); font-size: 11px; }
.pager .next { text-align: right; grid-column: 2; }

/* ── Footer ──────────────────────────────── */
.site-footer { text-align: center; padding: 120px 16px 48px; color: var(--muted); font-size: 12px; }
.wordmark { font-weight: 800; font-size: clamp(28px, 6vw, 52px); letter-spacing: -0.02em; color: var(--text); margin-bottom: 16px; }
.site-footer p { margin: 0; }
.credits { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.credits span { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.site-footer .sources { max-width: 60ch; margin: 0 auto; line-height: 1.6; }

/* ── Illustration micro-animations ───────────
   Play only while the card (or hero) is hovered or focused.
   Each element carries --i (its authored index) for staggering. */
.iso g, .iso .poly { transform-box: fill-box; transform-origin: center; }
@keyframes iso-lit   { 40%, 60% { stroke: var(--key); } }
@keyframes iso-fill  { 40%, 60% { stroke: var(--key); fill: var(--key-soft); } }
@keyframes iso-bob   { 50% { transform: translateY(-4px); } }
@keyframes iso-press { 0%, 24%, 100% { transform: none; } 12% { transform: translateY(2px); } }
@keyframes iso-flow  { to { stroke-dashoffset: -20; } }
@keyframes iso-draw  { 0% { stroke-dashoffset: 1; } 35%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes iso-twinkle { 0%, 100% { transform: scale(.8) rotate(0deg); } 50% { transform: scale(1.2) rotate(45deg); fill: var(--key); stroke: var(--key); } }

/* Signals running along connector lines (shared by several drawings). */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-hero .link, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-nodes .link, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-orbs .link, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-fan .link, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-rail .link, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-stack .link, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-tray .link, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-shapes .link {
  stroke: var(--key); stroke-opacity: .7; animation: iso-flow 1.4s linear infinite; animation-delay: calc(var(--i) * -.3s);
}

/* hero: plates light up top to bottom */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-hero .box .f-top { animation: iso-fill 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
/* tray: inner panes light in turn, satellites bob */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-tray .box.up .f-top { animation: iso-fill 4s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-tray .box:not(.up) { animation: iso-bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-tray .box[style="--i:0"] { animation: none; }
/* tiles: raised blocks hop in a wave */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-tiles .box.up { animation: iso-bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-tiles .box.up .f-top { animation: iso-lit 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
/* shapes: cube floats, pyramid and cylinder glow */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-shapes .box.up { animation: iso-bob 3s ease-in-out infinite; }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-shapes .poly, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-shapes .disc .f-top { animation: iso-lit 3s ease-in-out infinite; animation-delay: 1s; }
/* panels / doc / keys: lines draw themselves in */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-panels .stroke, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-doc .stroke, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-keys .stroke {
  stroke: var(--key); stroke-dasharray: 1; animation: iso-draw 4s ease-in-out infinite; animation-delay: calc(var(--i) * .2s);
}
/* copies: sparkle twinkles, cards blink in sequence */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-copies .poly.accent { animation: iso-twinkle 2.4s ease-in-out infinite; }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-copies .box .f-top { animation: iso-lit 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-copies .ghost { animation: iso-flow 2s linear infinite; }
/* fan: suns light up as each frame "renders" */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-fan .disc .f-top { animation: iso-fill 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-fan .box.up { animation: iso-bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
/* lens: aperture pulses, flash blinks */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-lens .disc .f-top { animation: iso-fill 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .15s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-lens .box.up .f-top { animation: iso-lit 2.8s steps(1) infinite; }
/* orbs / nodes: satellites light in turn around a pulsing hub */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-orbs .disc .f-top { animation: iso-fill 3.5s ease-in-out infinite; animation-delay: calc(var(--i) * .7s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-orbs .box .f-top.accent, :is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-nodes .box .f-top.accent { animation: iso-lit 1.75s ease-in-out infinite; }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-nodes .box.up { animation: iso-bob 3.5s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
/* keys: keys tap */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-keys .box:not([style="--i:0"]):not([style="--i:9"]) { animation: iso-press 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .27s); }
/* windows: title bars light in turn, windows drift */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-windows .stroke { animation: iso-lit 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .8s); }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-windows .box { animation: iso-bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
/* rail: stops light left to right */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-rail .box:not([style="--i:0"]) .f-top { animation: iso-fill 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
/* stack: top layer lifts off */
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-stack .box.up:not([style="--i:1"]) { animation: iso-bob 3s ease-in-out infinite; }
:is(.tcard:hover, .tcard:focus-visible, .hero-art:hover) .iso-stack .box .f-top.accent { animation: iso-lit 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { .iso *, .iso { animation: none !important; } }

.md-box { width: 100%; height: 160px; margin-top: 24px; padding: 12px; background: var(--card); color: var(--text-2); border: 1px solid var(--line-2); font: 12px/1.5 var(--mono); }

/* ── Global search ───────────────────────── */
.gsearch { position: relative; flex: 1; max-width: 380px; min-width: 0; }
.gsearch-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gsearch input { width: 100%; height: 34px; padding: 0 30px 0 32px; background: #121216; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; color: var(--text); }
.gsearch input::placeholder { color: var(--muted); }
.gsearch input:focus { outline: none; border-color: var(--text-2); }
.gsearch input::-webkit-search-cancel-button { display: none; }
.gsearch-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 10px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 3px; padding: 0 5px; line-height: 16px; pointer-events: none; }
.gsearch input:focus ~ .gsearch-kbd { display: none; }
.gsearch-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: min(70vh, 520px); overflow-y: auto; background: #121216; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); padding: 6px; }
@media (min-width: 720px) { .gsearch-list { left: -20px; right: -120px; } }
.gs-group { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.gs-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 10px; border-radius: 5px; cursor: pointer; }
.gs-item[aria-selected="true"] { background: #1d1d22; }
.gs-item b { font: 500 13px var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item b mark { background: none; color: var(--key); }
.gs-item span { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item small { font: 10px var(--mono); color: var(--muted); }
.gs-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.gs-more { padding: 8px 10px 4px; font: 10px var(--mono); color: var(--muted); }
@media (max-width: 520px) { .gsearch-kbd { display: none; } .brand { font-size: 11px; } }

/* row flashed after jumping to it from search */
.kw tr.gs-flash td { animation: gs-flash 2.2s ease-out; }
@keyframes gs-flash { 0%, 35% { background: var(--key-soft); } 100% { background: transparent; } }
.kw tr.gs-flash td.name { color: var(--key); }

/* ── Locked section + access requests ────── */
.lock-tag { margin-left: auto; margin-right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--key-soft); color: var(--key); font: 500 10px var(--mono); }
.lock-tag svg, .tcard:hover .lock-tag svg { color: var(--key); transform: none; }
.tcard.locked .tcard-art { opacity: .55; }
.tcard.locked:hover .tcard-art { opacity: 1; }
.lock-panel { margin: 8px 0 64px; padding: 28px; border: 1px solid var(--line-2); background: var(--card); max-width: 620px; display: grid; gap: 14px; }
.lock-head { display: flex; gap: 14px; align-items: flex-start; }
.lock-head > svg { color: var(--key); flex: none; margin-top: 3px; }
.lock-head h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; text-wrap: balance; }
.lock-head p, .lock-msg { margin: 0; color: var(--text-2); font-size: 14px; max-width: 60ch; }
.lock-msg b { color: var(--text); font-weight: 600; }
.lock-label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.lock-label span { color: var(--muted); font-weight: 400; }
.lock-note { width: 100%; resize: vertical; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); padding: 10px 12px; font: 14px/1.5 var(--sans); }
.lock-note:focus { outline: none; border-color: var(--text-2); }
.lock-btn { justify-self: start; height: 36px; padding: 0 16px; border: 1px solid var(--key); background: var(--key); color: #0b0b0d; font-weight: 600; font-size: 13px; cursor: pointer; }
.lock-btn:hover { filter: brightness(1.08); }
.lock-btn:disabled { opacity: .5; cursor: default; }
.lock-btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.lock-btn.ghost:hover { border-color: var(--text-2); filter: none; }
.lock-err, .admin-err { margin: 0; color: #ff8a7a; font-size: 13px; }
.admin { margin: 24px 0 8px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 18px 20px; }
.admin-head { font: 600 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.admin-head span { color: var(--key); text-transform: none; }
.admin-sub { margin-top: 16px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.admin ul { list-style: none; margin: 8px 0 0; padding: 0; }
.admin-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-row img { width: 28px; height: 28px; border-radius: 50%; }
.admin-who { display: grid; min-width: 0; }
.admin-who b { font-size: 14px; font-weight: 600; }
.admin-who .em, .admin-who .nt { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.admin-who .nt { color: var(--text-2); }
.admin-who span:empty { display: none; }
.admin-date { font: 11px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-act { display: flex; gap: 6px; }
.admin-act .lock-btn { height: 30px; padding: 0 12px; font-size: 12px; }
.admin-empty { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .admin-row { grid-template-columns: 28px minmax(0, 1fr); } .admin-date, .admin-act { grid-column: 2; } .lock-panel { padding: 20px; } }
