/* inherit. site. Tokens: market-tools design-system.html (Product Precision), light and dark from one set. */

@property --x { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 17px; --fs-lg: 21px; --fs-xl: 27px; --fs-2xl: 36px; --fs-3xl: 50px;
  --r: 14px; --r-sm: 10px; --r-xs: 7px; --hit: 44px;
  --dur-press: 120ms; --dur-ui: 190ms; --dur-enter: 260ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* light (default) */
  color-scheme: light;
  --canvas: #fbfbfc; --surface-1: #ffffff; --surface-2: #f4f4f6; --surface-hi: #ffffff; --surface-sunk: #f0f0f3;
  --line-1: #e7e7ea; --line-2: #f0f0f2; --line-hover: #d6d6db;
  --ink-1: #17171a; --ink-2: #5a5a62; --ink-3: #8b8b93; --ink-body: #2a2a30; --ink-quiet: #8e8e96;
  --ok: #17a06b; --warn: #b8770f; --crit: #cf2c1e;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 32px -20px rgba(0,0,0,.16);
  --btn-bg: #17171a; --btn-ink: #fbfbfc; --btn-hover: #000;
  --grain-blend: multiply; --grain-op: .32;
  --aura-blend: multiply; --aura-op: .9; --gap: #fbfbfc;
  --mention-bg: rgba(29,155,209,.12); --mention-ink: #1264a3;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0c0c0e; --surface-1: #161719; --surface-2: #101113; --surface-hi: #1c1d20; --surface-sunk: #0f1012;
  --line-1: #24262a; --line-2: #1b1c1f; --line-hover: #34363b;
  --ink-1: #f5f5f6; --ink-2: #a2a2aa; --ink-3: #77777f; --ink-body: #dcdce1; --ink-quiet: #85858d;
  --ok: #56c98a; --warn: #d6a24e; --crit: #e8422f;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 16px 38px -18px rgba(0,0,0,.6);
  --btn-bg: #f5f5f6; --btn-ink: #0c0c0e; --btn-hover: #fff;
  --grain-blend: overlay; --grain-op: .9;
  --aura-blend: screen; --aura-op: 1; --gap: #0c0c0e;
  --mention-bg: rgba(29,155,209,.18); --mention-ink: #8ccdf0;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --canvas: #0c0c0e; --surface-1: #161719; --surface-2: #101113; --surface-hi: #1c1d20; --surface-sunk: #0f1012;
    --line-1: #24262a; --line-2: #1b1c1f; --line-hover: #34363b;
    --ink-1: #f5f5f6; --ink-2: #a2a2aa; --ink-3: #77777f; --ink-body: #dcdce1; --ink-quiet: #85858d;
    --ok: #56c98a; --warn: #d6a24e; --crit: #e8422f;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 16px 38px -18px rgba(0,0,0,.6);
    --btn-bg: #f5f5f6; --btn-ink: #0c0c0e; --btn-hover: #fff;
    --grain-blend: overlay; --grain-op: .9;
    --aura-blend: screen; --aura-op: 1; --gap: #0c0c0e;
    --mention-bg: rgba(29,155,209,.18); --mention-ink: #8ccdf0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--font-sans); background: var(--canvas); color: var(--ink-body);
  font-size: var(--fs-base); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 3px; border-radius: var(--r-xs); }
.hex, code { font-family: var(--font-mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { width: min(1200px, 100% - 48px); margin-inline: auto; }
section { position: relative; }

/* grain texture, shared */
.grain-tex {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--hit); color: var(--ink-1);
  font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.015em; }
/* star mark: body in the text color (light and dark), coral lobe on its own layer */
.mark { position: relative; flex: none; width: 22px; height: 22px; background: var(--ink-1);
  -webkit-mask: url(/brand/mark-shape.png) center / contain no-repeat; mask: url(/brand/mark-shape.png) center / contain no-repeat; }
.mark::after { content: ""; position: absolute; inset: 0; background: url(/brand/mark-accent.png) center / contain no-repeat; }
.mark--sm { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 11px; color: var(--ink-2); font-size: var(--fs-base);
  transition: color var(--dur-ui) var(--ease); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* theme switch: compact segmented, sliding indicator */
.theme { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 2px; border-radius: 999px;
  background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--line-1); }
.theme button { position: relative; z-index: 1; height: 28px; min-width: 58px; padding: 0 10px; border: 0; border-radius: 999px; background: none;
  font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color var(--dur-ui) var(--ease); }
.theme button::before { content: ""; position: absolute; inset: -8px 0; } /* 44px hit area */
.theme button[aria-pressed="true"] { color: var(--ink-1); }
.theme .ind { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 3); border-radius: 999px;
  background: var(--surface-hi); box-shadow: 0 0 0 1px var(--line-1), 0 1px 2px rgba(0,0,0,.08);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 220ms var(--ease); }

.btn-quiet { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; position: relative;
  background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-1); color: var(--ink-1); font-size: var(--fs-sm); font-weight: 500;
  transition: transform var(--dur-press) var(--ease); }
.btn-quiet::before { content: ""; position: absolute; inset: -4px; }
.btn-quiet:active { transform: scale(.97); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding: 120px 0 132px; }
.aura { position: absolute; z-index: -1; pointer-events: none; width: 1000px; aspect-ratio: 1; left: calc(50% - 150px); top: -200px; }
.pal { position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms ease-in-out; mix-blend-mode: normal; }
.pal.on { opacity: var(--aura-op); }
.pal > * { position: absolute; border-radius: 50%; will-change: transform; }
.pal .ring {
  inset: 0;
  background: conic-gradient(from 0deg at 40% 40%,
    var(--c2) 0deg, var(--c3) 22deg, var(--gap) 50deg, var(--gap) 82deg,
    var(--w0) 104deg, var(--w1) 120deg, var(--w2) 150deg, var(--g) 166deg, var(--w2) 182deg, var(--w0) 200deg,
    var(--gap) 232deg, var(--gap) 262deg, var(--c1) 300deg, var(--c2) 360deg);
  -webkit-mask: radial-gradient(closest-side at 46% 46%, #000 60%, transparent 97%);
          mask: radial-gradient(closest-side at 46% 46%, #000 60%, transparent 97%);
  filter: blur(44px); animation: drift-ring 26s ease-in-out infinite alternate;
}
.pal .cool { inset: 10% 56% 42% 4%; background: radial-gradient(closest-side, var(--c1), transparent); opacity: .85; filter: blur(36px);
  animation: drift-rim 22s ease-in-out infinite alternate-reverse; }
.pal .rim { inset: 34% 6% 14% 40%; background: radial-gradient(closest-side, var(--w2), transparent); opacity: .7; filter: blur(40px);
  animation: drift-rim 19s ease-in-out infinite alternate; }
.pal .glint { inset: 58% 18% 26% 62%; background: radial-gradient(closest-side, var(--g), transparent); opacity: .8; filter: blur(22px);
  animation: drift-glint 30s ease-in-out infinite alternate; }

/* palettes: inherit's own, then the colors inherit read from each brand */
.pal[data-p="inherit"] { --c1: #2b2fff; --c2: #3a2bd8; --c3: #5b23c2; --w0: #c0301c; --w1: #ff4a2e; --w2: #ff7a59; --g: #ffd8c4; }
.pal[data-p="qontext.ai"] { --c1: #412bcf; --c2: #3a2db8; --c3: #717680; --w0: #5a4fd6; --w1: #a4a7ae; --w2: #c9cbd2; --g: #fafafa; }
.pal[data-p="techeurope.io"] { --c1: #b6b6b7; --c2: #8d8d90; --c3: #27272a; --w0: #15803d; --w1: #22c55e; --w2: #4ade80; --g: #ffffff; }
.pal[data-p="starnotch.app"] { --c1: #3050ff; --c2: #2a3fe0; --c3: #aa59ff; --w0: #aa59ff; --w1: #e246c4; --w2: #c07cff; --g: #dcdce1; }
.pal[data-p="raycast.com"] { --c1: #9c9c9d; --c2: #2f3031; --c3: #1b1c1e; --w0: #d94848; --w1: #ff6363; --w2: #ff8a8a; --g: #e6e6e6; }

.aura .core { position: absolute; inset: 12% 32% 32% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--canvas) 0%, var(--canvas) 34%, color-mix(in srgb, var(--canvas) 80%, transparent) 60%, color-mix(in srgb, var(--canvas) 30%, transparent) 82%, transparent 100%);
  animation: drift-rim 23s ease-in-out infinite alternate-reverse; }
.aura .grain { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: var(--grain-blend); opacity: var(--grain-op);
  -webkit-mask: radial-gradient(closest-side, #000 56%, transparent 90%); mask: radial-gradient(closest-side, #000 56%, transparent 90%); }
@keyframes drift-ring { from { transform: rotate(-10deg) scale(1); } to { transform: rotate(16deg) scale(1.05); } }
@keyframes drift-rim { from { transform: translate(-4%, 3%) scale(.96); } to { transform: translate(5%, -4%) scale(1.06); } }
@keyframes drift-glint { from { transform: translate(0, 0); opacity: .7; } to { transform: translate(-30%, -24%); opacity: 1; } }

h1 { max-width: 15ch; font-size: clamp(42px, 4.4vw + 10px, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.034em; color: var(--ink-1); text-wrap: balance; }
h1 span { display: block; }
h1 .quiet { color: var(--ink-quiet); }
.sub { margin-top: 28px; max-width: 34em; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-body); text-wrap: pretty; }

.build { margin-top: 40px; width: min(540px, 100%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 24px; border-radius: 999px;
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1), var(--shadow); }
.build:has(input:focus-visible) { outline: 2px solid var(--ink-1); outline-offset: 3px; }
.field { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 52px; }
.field label { font-size: var(--fs-sm); line-height: 1.2; color: var(--ink-2); }
.field-line { position: relative; }
.field input { width: 100%; padding: 0; border: 0; background: transparent; outline: none; font: 500 var(--fs-md)/1.4 var(--font-sans);
  color: var(--ink-1); letter-spacing: -0.01em; caret-color: var(--ink-1); }
.typer { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; font-size: var(--fs-md); font-weight: 500; line-height: 1.4;
  color: var(--ink-1); letter-spacing: -0.01em; white-space: pre; }
.caret { width: 2px; height: 1.15em; margin-left: 2px; border-radius: 1px; background: var(--ink-2); animation: blink 1.06s steps(1) infinite; }
.field:focus-within .typer, .field.has-value .typer { opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }

.btn-primary { flex: none; display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink); font: 500 var(--fs-base)/1 var(--font-sans); letter-spacing: -0.01em;
  transition: transform var(--dur-press) var(--ease); }
.btn-primary:active { transform: scale(.97); }
.btn-primary:focus-visible { border-radius: 999px; }

.note { margin-top: 18px; max-width: 65ch; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.mention { display: inline-block; padding: 0 4px; border-radius: 4px; line-height: 1.45; background: var(--mention-bg); color: var(--mention-ink); font-weight: 500; }
.msg { color: var(--ink-body); }

/* legend: says whose colors the aura wears right now */
.legend { position: absolute; right: 0; bottom: -64px; display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 12px 0 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface-1) 72%, transparent); box-shadow: inset 0 0 0 1px var(--line-1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: var(--fs-sm); color: var(--ink-2); }
.legend .dots { display: flex; }
.legend .dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-1); margin-right: -4px; transition: background-color 900ms ease-in-out; }
.legend .dots i:last-child { margin-right: 0; }
.legend b { color: var(--ink-1); font-weight: 500; }
.legend-text { transition: opacity 300ms var(--ease); }
.hero-inner { position: relative; }

/* ---------- Section heads ---------- */
.sec { padding: 96px 0; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head .kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.sec-head .kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
h2 { font-size: clamp(30px, 2vw + 14px, 44px); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink-1); text-wrap: balance; }
h2 .quiet { color: var(--ink-quiet); }
.sec-head p { margin-top: 14px; max-width: 60ch; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sep { height: 1px; background: var(--line-1); }

/* ---------- Showroom (bento) ---------- */
.showroom { padding-top: 112px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-1); border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line-1); transition: transform var(--dur-press) var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-hover);
  opacity: 0; transition: opacity var(--dur-ui) var(--ease); }
.card:active { transform: scale(.985); }
.card:focus-visible { border-radius: var(--r); }
.card--feature { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; container-type: inline-size; background: var(--surface-2);
  border-bottom: 1px solid var(--line-2); }
.thumb .tint { position: absolute; inset: -12%; z-index: 0; filter: blur(26px); opacity: .9; }
.thumb .grain-tex { position: absolute; inset: 0; z-index: 1; mix-blend-mode: var(--grain-blend); opacity: calc(var(--grain-op) * .5); pointer-events: none; }
.stage { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center; padding: 6% 7%; }
.thumb[data-brand="te"] .tint { background: radial-gradient(46% 36% at 50% 74%, rgba(34,197,94,.28), transparent 72%), radial-gradient(30% 26% at 28% 84%, rgba(182,182,183,.3), transparent 70%); }
.thumb[data-brand="qx"] .tint { background: radial-gradient(46% 38% at 50% 70%, rgba(65,43,207,.55), transparent 72%), radial-gradient(28% 26% at 26% 82%, rgba(164,167,174,.4), transparent 70%); }
.thumb[data-brand="sn"] .tint { background: radial-gradient(46% 38% at 50% 72%, rgba(76,141,255,.5), transparent 72%), radial-gradient(28% 26% at 74% 84%, rgba(134,178,255,.34), transparent 70%); }

.meta { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 18px; }
.card--feature .meta { flex: none; }
.meta-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.type { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--line-1); }
.host { color: var(--ink-2); }
.meta-row time { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card h3 { margin-top: 14px; font-size: var(--fs-md); font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink-1); text-wrap: balance; }
.view { margin-top: auto; padding-top: 14px; display: inline-flex; gap: 6px; font-size: 14px; color: var(--ink-2); transition: color var(--dur-ui) var(--ease); }
.arr { display: inline-block; transition: transform var(--dur-ui) var(--ease); }

.shot { position: relative; width: 100%; height: 100%; border-radius: var(--r-xs); overflow: hidden; box-shadow: 0 0 0 1px rgba(127,127,140,.22), 0 18px 40px -18px rgba(0,0,0,.5); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.feature-stage { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 24px; }
.card--feature .thumb { aspect-ratio: auto; flex: 1; min-height: 0; }
.card--feature .shot { flex: 1 1 0; min-height: 0; }
.tokens { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: var(--r-sm); background: #09090b; box-shadow: inset 0 0 0 1px #27272a; }
.tok i { display: block; height: 26px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tok b { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; color: #f5f5f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok code { display: block; font-size: 11px; color: #8b8b93; }

.mascots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.mascots figure { position: relative; }
.mascots img { width: 100%; aspect-ratio: 1.05; object-fit: cover; border-radius: var(--r-sm); background: #fafafa; }
.mascots figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.mascots .picked img { box-shadow: 0 0 0 2px #412bcf; }
.mascots .picked figcaption { color: var(--ink-1); font-weight: 500; }

.sn { width: 100%; padding: 12px; border-radius: var(--r-sm); background: #07080c; box-shadow: inset 0 0 0 1px rgba(220,220,225,.1); }
.spectrum { display: flex; height: 30px; border-radius: var(--r-xs); overflow: hidden; }
.spectrum i { flex: 1; }
.sn-rows { margin-top: 10px; display: grid; gap: 6px; }
.sn-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #dcdce1; }
.sn-row i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.sn-row code { color: #9a9eab; font-size: 11px; }
.sn-row .sv { margin-left: auto; color: #9a9eab; font-size: 11px; }

.audit { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.finding { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.4; color: var(--ink-body); }
.status { display: inline-flex; justify-content: center; padding: 2px 0; border-radius: 999px; font-size: 12px; font-weight: 500; }
.status.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.status.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.status.crit { color: var(--crit); background: color-mix(in srgb, var(--crit) 13%, transparent); }

.pic { position: relative; width: 100%; height: 100%; border-radius: var(--r-xs); overflow: hidden; box-shadow: 0 0 0 1px rgba(127,127,140,.22); }
.pic .layer { position: absolute; inset: 0; display: grid; place-items: center; }
.pic .raw { background: #fff; }
.pic .brand-l { background: #09090b; clip-path: inset(0 0 0 calc(var(--x) * 1%)); transition: --x 620ms cubic-bezier(.65,0,.35,1); --x: 100; }
.pic img { width: 88%; height: auto; }
.pic.on .brand-l { --x: 0; }
.states { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line-1); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.states .s-brand { color: var(--ink-3); transition: color 400ms ease; }
.pic.on ~ .states .s-brand, .card:focus-visible .states .s-brand { color: var(--ink-1); }

/* ---------- How it works ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.step { position: relative; padding: 22px 22px 24px; border-radius: var(--r); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.step-top { display: flex; align-items: center; gap: 10px; }
.step .ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); color: var(--ink-1); }
.step h3 { font-size: var(--fs-md); font-weight: 500; color: var(--ink-1); letter-spacing: -0.012em; }
.step p { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.step .by { margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-3); }
.flow .step + .step::before { /* connector arrow between steps */
  content: ""; position: absolute; left: -16px; top: 39px; width: 16px; height: 1px; background: var(--line-hover); }
.flow .step + .step::after { content: ""; position: absolute; left: -5px; top: 36px; width: 6px; height: 6px; border-top: 1px solid var(--line-hover); border-right: 1px solid var(--line-hover); transform: rotate(45deg); }
.facts { margin-top: 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-1); overflow: hidden; }
.fact { padding: 18px 20px; }
.fact + .fact { box-shadow: inset 1px 0 0 var(--line-1); }
.fact b { display: block; font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); }
.facts-cap { margin-top: 12px; font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- Repository ---------- */
.repo { display: grid; grid-template-columns: 320px minmax(0, 1fr); border-radius: var(--r); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1), var(--shadow); overflow: hidden; min-height: 460px; }
.tree { padding: 14px 10px; background: var(--surface-2); box-shadow: inset -1px 0 0 var(--line-1); font-size: 14px; }
.tree-root { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px; color: var(--ink-1); font-weight: 500; }
.tree-root .ver { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.tree .dir { padding: 6px 10px 2px; color: var(--ink-3); font-size: var(--fs-sm); }
.tree [role="tab"] { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0 10px 0 22px; border: 0; border-radius: var(--r-xs);
  background: none; text-align: left; color: var(--ink-2); cursor: pointer; transition: background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease); }
.tree [role="tab"].top { padding-left: 10px; }
.tree [role="tab"] svg { flex: none; color: var(--ink-3); }
.tree [role="tab"][aria-selected="true"] { background: var(--surface-hi); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.tree .muted { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px 0 22px; color: var(--ink-3); }
.doc { padding: 28px 32px 32px; min-width: 0; }
.doc[hidden] { display: none; }
.doc-path { font-size: var(--fs-sm); color: var(--ink-3); }
.doc-path b { color: var(--ink-1); font-weight: 500; }
.doc h4 { margin-top: 18px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; color: var(--ink-1); }
.doc .lead { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 65ch; }
.doc-body { margin-top: 18px; display: grid; gap: 10px; max-width: 70ch; }
.doc-item { padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.doc-item b { color: var(--ink-1); font-weight: 600; }
.src { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-hover); text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-1); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.tag.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); box-shadow: none; }
.tag.crit { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); box-shadow: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
pre.code { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); overflow-x: auto;
  font: 13px/1.65 var(--font-mono); color: var(--ink-body); white-space: pre; }
pre.code .c { color: var(--ink-3); }

/* ---------- Agents + Slack ---------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: var(--r); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.panel h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; color: var(--ink-1); }
.panel > p { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }
.chan { display: flex; gap: 8px; margin-top: 16px; }
.panel pre.code { flex: 1; }
.thread { flex: 1; margin-top: 18px; padding: 16px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 14px; align-content: start; }
.msgrow { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.av { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface-hi); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.av.hs { overflow: hidden; background: #0c0c0e; box-shadow: none; }
.av.hs img { width: 100%; height: 100%; object-fit: cover; }
.who { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.who span { display: inline-flex; align-items: center; height: 16px; margin-left: 6px; padding: 0 5px; border-radius: 4px; vertical-align: 2px;
  background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-1); font-size: 11px; font-weight: 500; color: var(--ink-2); }
.said { margin-top: 2px; font-size: 14px; color: var(--ink-body); }
.prog { margin-top: 6px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.prog li { display: flex; align-items: center; gap: 8px; }
.prog li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--ok) 20%, transparent);
  box-shadow: inset 0 0 0 3px var(--surface-2), inset 0 0 0 12px var(--ok); }
.choose { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.choose figure { display: grid; gap: 6px; }
.choose img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xs); background: #fafafa; }
.choose span { display: inline-flex; justify-content: center; align-items: center; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--ink-1);
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.choose .picked span { background: var(--ink-1); color: var(--canvas); box-shadow: none; }
.linkline { margin-top: 8px; font-size: 14px; color: var(--mention-ink); }

/* ---------- Living ---------- */
.living { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.rulecard { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.rule-id { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.rule-text { margin-top: 16px; font-size: var(--fs-md); line-height: 1.5; color: var(--ink-1); letter-spacing: -0.01em; text-wrap: pretty; }
.chain { margin-top: 24px; display: grid; gap: 10px; }
.redrawn { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.redrawn img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 6px; border-radius: var(--r-xs); background: #09090b; box-shadow: inset 0 0 0 1px #27272a; }
.chain li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-body); }
.chain .k { width: 72px; flex: none; color: var(--ink-3); font-size: var(--fs-sm); }
.ver-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--surface-2); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-1); font-variant-numeric: tabular-nums; }
.green-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.mapcard { display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); overflow: hidden; }
.map-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-1); }
.map-top .t { font-size: 14px; color: var(--ink-1); font-weight: 500; }
.map-top .s { font-size: var(--fs-sm); color: var(--ink-3); }
.seg { position: relative; margin-left: auto; display: inline-grid; grid-template-columns: repeat(2, 1fr); padding: 2px; border-radius: 999px;
  background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--line-1); }
.seg button { position: relative; z-index: 1; height: 28px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: 12px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums; transition: color var(--dur-ui) var(--ease); }
.seg button::before { content: ""; position: absolute; inset: -8px 0; }
.seg button[aria-pressed="true"] { color: var(--ink-1); }
.seg .ind { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 2); border-radius: 999px; background: var(--surface-hi);
  box-shadow: 0 0 0 1px var(--line-1), 0 1px 2px rgba(0,0,0,.08); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 220ms var(--ease); }
.map { position: relative; flex: 1; min-height: 420px; overflow: hidden; background: #09090b; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(1.22); transition: opacity 700ms ease-in-out; }
.map img.v15 { opacity: 0; }
.map.on img.v15 { opacity: 1; }
.map.on img.v14 { opacity: 0; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-1); overflow: hidden; }
.partner { padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; }
.partner + .partner { box-shadow: inset 1px 0 0 var(--line-1); }
.plogo { height: 32px; display: flex; align-items: center; gap: 10px; color: var(--ink-1); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; }
.pico { flex: none; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-1); }
.pico img { width: 100%; height: 100%; object-fit: cover; }
.pico--tile { display: grid; place-items: center; background: #fff; }
.pico--tile img { width: 18px; height: auto; object-fit: contain; }
.partner p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Closing ---------- */
.closing { padding: 112px 0 96px; }
.closing-box { position: relative; isolation: isolate; overflow: hidden; padding: 72px 56px; border-radius: 28px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.closing-box h2 { max-width: 18ch; }
.closing-box .build { margin-top: 32px; }
.closing-box { --canvas: var(--surface-1); --gap: var(--surface-1); }
.aura.closing-aura { left: auto; right: -220px; top: -280px; width: 680px; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 28px 0 48px; font-size: var(--fs-sm); color: var(--ink-3); }
.footer .brand { font-size: var(--fs-base); }
.footer p { max-width: 60ch; }

/* ---------- Hover (pointer devices only) ---------- */
@media (hover: hover) {
  .nav-links a:hover, .card:hover .view { color: var(--ink-1); }
  .btn-quiet:hover { background: var(--surface-2); }
  .btn-primary:hover { background: var(--btn-hover); }
  .card:hover::after { opacity: 1; }
  .card:hover .arr { transform: translateX(3px); }
  .card:hover .pic .brand-l { --x: 0; }
  .card:hover .states .s-brand { color: var(--ink-1); }
  .tree [role="tab"]:hover { color: var(--ink-1); }
  .theme button:hover, .seg button:hover { color: var(--ink-1); }
}
.card:focus-visible .arr { transform: translateX(3px); }
.card:focus-visible .pic .brand-l { --x: 0; }

/* ---------- Enter on scroll (JS only) ---------- */
.js .rv { opacity: 0; transform: translateY(8px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity var(--dur-enter) var(--ease) var(--d, 0ms), transform var(--dur-enter) var(--ease) var(--d, 0ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--feature { grid-column: 1 / -1; grid-row: auto; }
  .card--feature .thumb { flex: none; aspect-ratio: 16 / 11; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow .step:nth-child(3)::before, .flow .step:nth-child(3)::after { display: none; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(4) { box-shadow: inset 0 1px 0 var(--line-1); }
  .fact:nth-child(5) { box-shadow: inset 1px 0 0 var(--line-1), inset 0 1px 0 var(--line-1); }
  .living { grid-template-columns: minmax(0, 1fr); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner:nth-child(3) { box-shadow: inset 0 1px 0 var(--line-1); }
  .partner:nth-child(4) { box-shadow: inset 1px 0 0 var(--line-1), inset 0 1px 0 var(--line-1); }
  .aura { left: calc(50% - 260px); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .repo { grid-template-columns: minmax(0, 1fr); }
  .tree { box-shadow: inset 0 -1px 0 var(--line-1); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page { width: min(1200px, 100% - 32px); }
  .nav { height: 64px; gap: 12px; }
  .nav-end { gap: 8px; }
  .theme button { min-width: 0; padding: 0 8px; }
  .nav .btn-quiet { display: none; }
  .hero { padding: 64px 0 120px; }
  .aura { width: 620px; left: auto; right: -300px; top: -330px; }
  .pal .ring { filter: blur(30px); }
  .sub { font-size: var(--fs-base); margin-top: 22px; }
  .build { margin-top: 30px; padding-left: 18px; }
  .btn-primary { padding: 0 16px; height: 48px; }
  .legend { right: auto; left: 0; bottom: -60px; }
  .sec { padding: 88px 0; }
  .showroom { padding-top: 96px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature-stage { padding: 16px; gap: 10px; }
  .tokens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .flow .step + .step::before { left: 39px; top: -12px; width: 1px; height: 12px; }
  .flow .step + .step::after { left: 36px; top: -6px; transform: rotate(135deg); }
  .flow .step:nth-child(3)::before, .flow .step:nth-child(3)::after { display: block; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(n) { box-shadow: inset 0 1px 0 var(--line-1); }
  .fact:nth-child(1) { box-shadow: none; }
  .fact:nth-child(2) { box-shadow: inset 1px 0 0 var(--line-1); }
  .fact:nth-child(4) { box-shadow: inset 1px 0 0 var(--line-1), inset 0 1px 0 var(--line-1); }
  .doc { padding: 20px; }
  .partners { grid-template-columns: minmax(0, 1fr); }
  .partner:nth-child(n) { box-shadow: inset 0 1px 0 var(--line-1); }
  .partner:first-child { box-shadow: none; }
  .closing-box { padding: 44px 22px; border-radius: 20px; }
  .aura.closing-aura { width: 380px; right: -200px; top: -210px; }
  .map { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pal > *, .aura .core, .caret { animation: none !important; }
  .pal, .legend .dots i, .map img { transition: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .arr, .card::after, .theme .ind, .seg .ind, .pic .brand-l { transition: none; }
}

/* =====================================================================
   Full product page (28 Nov 2026, evening): same tokens and components,
   new pieces for live data, logos, taste, characters, pictures, checks.
   ===================================================================== */

/* logos in fixed spots */
.plg { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; object-fit: cover; }
.plg--tile { display: inline-grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line-1); }
.plg--tile img { width: 10px; height: auto; }
.logo-chip { position: absolute; z-index: 3; left: 10px; top: 10px; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 5px; border-radius: 9px;
  background: var(--lbg, #fff); color: var(--lfg, #111); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px -6px rgba(0,0,0,.4); font-size: 12px; font-weight: 600; white-space: nowrap; }
.logo-chip img { display: block; height: 22px; width: auto; max-width: 96px; object-fit: contain; }
.logo-chip:empty { display: none; }
.logo-mini { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 5px; background: var(--lbg, #fff); vertical-align: -4px;
  box-shadow: inset 0 0 0 1px var(--line-1); overflow: hidden; }
.logo-mini img { width: 14px; height: 14px; object-fit: contain; }
.logo-mini:empty { display: none; }

/* live status under the showroom head */
.live-line { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm) !important; color: var(--ink-3) !important; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.live-dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }

/* hero legend logo */
.legend-logo { display: none; width: 18px; height: 18px; border-radius: 5px; overflow: hidden; background: var(--lbg, #fff); }
.legend-logo.on { display: inline-grid; place-items: center; }
.legend-logo img { width: 14px; height: 14px; object-fit: contain; }

/* brand cards */
.card-sub { margin-top: 6px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.brand-stage { position: relative; flex-direction: column; justify-content: center; padding: 8% 8% 0; }
.brand-stage .figure { height: 70%; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.brand-stage .figure[src=""], .brand-stage .figure:not([src]) { visibility: hidden; }
.strip { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; display: flex; }
.strip i { flex: 1; }
.thumb[data-brand="rc"] .tint { background: radial-gradient(46% 38% at 50% 70%, rgba(255,99,99,.45), transparent 72%), radial-gradient(28% 26% at 26% 82%, rgba(230,230,230,.3), transparent 70%); }
.thumb--nova .tint { background: radial-gradient(50% 40% at 62% 66%, rgba(48,80,255,.55), transparent 72%), radial-gradient(34% 30% at 30% 30%, rgba(170,89,255,.4), transparent 70%), radial-gradient(24% 20% at 82% 22%, rgba(226,70,196,.28), transparent 70%); }
.nova-stage { gap: 16px; }
.nova-top { position: relative; display: flex; align-items: center; gap: 12px; }
.nova-top .logo-chip { position: static; }
.nova-grad { flex: 1; height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-sm); background: linear-gradient(135deg, #3050ff 0%, #aa59ff 100%);
  color: #fff; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.nova-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; }
.nova-mascot { width: 100%; max-height: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(48,80,255,.35)); }
.tokens--live { grid-template-columns: repeat(2, minmax(0, 1fr)); background: #030309; box-shadow: inset 0 0 0 1px rgba(220,220,225,.1); }
.tokens--live .tok i { height: 20px; }
.tokens--live .tok b { color: #dcdce1; }
.tokens--live .tok code { color: #9d9dab; }
.tokens--live .tok em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: #9d9dab; }

/* why */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio .step p { margin-top: 10px; }
.answer { margin-top: 28px; max-width: 46ch; font-size: var(--fs-lg); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink-1); text-wrap: balance; }

/* how: six steps in two rows */
.flow--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow--six .step:nth-child(4)::before, .flow--six .step:nth-child(4)::after { display: none; }
.step .by { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.facts--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.facts--five { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; }
.facts--five .fact b { font-size: var(--fs-xl); }

/* panels with a logo or a switch in the head */
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head .plg { width: 24px; height: 24px; border-radius: 6px; margin: 0; }
.panel-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.panel-row .host { font-size: var(--fs-sm); color: var(--ink-3); }
.two--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* company switch: compact, logos with names */
.bswitch { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 999px; background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--line-1); }
.bswitch button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border: 0; border-radius: 999px; background: none;
  font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease); }
.bswitch button::before { content: ""; position: absolute; inset: -8px 0; }
.bswitch button .logo-mini { margin: 0; }
.bswitch button[aria-selected="true"] { background: var(--surface-hi); color: var(--ink-1); box-shadow: 0 0 0 1px var(--line-1), 0 1px 2px rgba(0,0,0,.08); }

/* look and read */
.measure { margin-top: 16px; display: grid; gap: 8px; }
.measure li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; font-size: 14px; color: var(--ink-body); }
.measure li span:first-child { color: var(--ink-1); font-weight: 500; }
.evidence { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.ev-head { font-size: var(--fs-sm); color: var(--ink-3); }
.src-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.src-table th, .src-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line-1); }
.src-table thead th { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); }
.src-table tbody th { font-weight: 500; color: var(--ink-1); white-space: nowrap; }
.src-table .num { text-align: right; }
.inside { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 20px; align-items: center; padding: 22px 24px; border-radius: var(--r);
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.ins-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-1); font-weight: 500; }
.swatch-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.sw2 { width: 112px; }
.sw2 i { display: block; height: 36px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(127,127,140,.2); }
.sw2 b { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--ink-1); }
.sw2 code { font-size: 11px; color: var(--ink-3); }
.ins-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.inside-arrow { font-size: var(--fs-xl); color: var(--ink-3); }

/* understand: tokens with provenance */
.tok-list { margin-top: 16px; display: grid; gap: 2px; }
.tok-row { display: grid; grid-template-columns: 28px minmax(0, 1.2fr) 84px minmax(0, .8fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.tok-row i { width: 28px; height: 28px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(127,127,140,.22); }
.tok-row b { font-weight: 500; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-row code { color: var(--ink-2); font-size: 12px; }
.tok-row .role { color: var(--ink-3); font-size: var(--fs-sm); }
.grad-list { display: grid; gap: 8px; margin-top: 12px; }
.grad-list:empty { display: none; }
.grad { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.grad i { height: 28px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(127,127,140,.22); }
.grad b { display: block; color: var(--ink-1); font-weight: 500; }
.tok-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.audit--panel { margin-top: 16px; background: var(--surface-2); }
.audit--panel .finding { font-size: 13.5px; grid-template-columns: 92px 1fr; }

/* taste */
.taste-grid { margin-top: 18px; display: grid; gap: 10px; }
.taste-row { display: grid; grid-template-columns: 110px repeat(2, minmax(0, 220px)); gap: 10px; align-items: center; }
.taste-row .axis { font-size: 14px; color: var(--ink-2); }
.opt { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink-3);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.opt.on { color: var(--bacc-ink, #fff); background: var(--bacc, var(--ink-1)); box-shadow: none; }
.opt.on::after { content: "rule"; margin-left: 8px; padding: 1px 6px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.2); }
.taste-panel .empty, .chars .empty, .pics-panel .empty { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* characters */
.chars { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.chars-ref { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.ref-stage { flex: 1; min-height: 260px; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 50% at 50% 55%, rgba(48,80,255,.45), transparent 72%), radial-gradient(40% 30% at 70% 30%, rgba(226,70,196,.28), transparent 70%), #030309; }
.ref-stage img { width: 78%; height: auto; filter: drop-shadow(0 18px 30px rgba(48,80,255,.4)); }
.ref-meta { padding: 14px 18px 16px; display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.ref-meta b { color: var(--ink-1); font-weight: 500; }
.chars-main { padding: 22px 24px 24px; border-radius: var(--r); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.char-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.ch { display: flex; flex-direction: column; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ch-stage { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 60%, color-mix(in srgb, var(--bacc, #3a2bd8) 30%, transparent), transparent 72%); }
.ch-stage img { width: 86%; height: 86%; object-fit: contain; }
.ch-meta { padding: 8px 10px 10px; font-size: 13px; color: var(--ink-1); font-weight: 500; }
.ch-meta small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-3); line-height: 1.4; }
.ch.chosen { box-shadow: inset 0 0 0 2px var(--bacc, var(--ink-1)); }
.ch.chosen .ch-meta::after { content: "chosen"; display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--bacc-ink, #fff); background: var(--bacc, var(--ink-1)); }
.studio { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
.studio b { color: var(--ink-1); font-weight: 500; }

/* pictures */
.pic-rail { margin-top: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.pcard { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pcard .pimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pbg, #fff); }
.pcard .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pcard .pmeta { padding: 10px 12px 12px; font-size: 13px; color: var(--ink-1); font-weight: 500; line-height: 1.35; }
.pcard .pmeta small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* touchpoints and inspector */
.tp-nova { margin-top: 18px; padding: 26px 24px; border-radius: var(--r-sm); background: radial-gradient(60% 70% at 80% 20%, rgba(48,80,255,.35), transparent 70%), radial-gradient(40% 50% at 95% 90%, rgba(170,89,255,.25), transparent 70%), #030309;
  box-shadow: inset 0 0 0 1px rgba(220,220,225,.08); color: #dcdce1; }
.tp-eyebrow { font-size: 12px; color: #9d9dab; }
.tp-head { margin-top: 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: #fff; text-wrap: balance; }
.tp-sub { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #dcdce1; max-width: 46ch; }
.tp-cta { display: inline-flex; align-items: center; height: 36px; margin-top: 16px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: linear-gradient(135deg, #3050ff 0%, #aa59ff 100%); }
.tp-cap { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-3); }
.bars { margin-top: 18px; display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.bar b { text-align: right; color: var(--ink-1); font-weight: 500; }
.bt { position: relative; height: 8px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; }
.bt i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--ink-2); }
.bt--crit i { background: var(--crit); }
.bt--ok i { background: var(--ok); }
.insp-steps { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: s; }
.insp-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 13px; color: var(--ink-1);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.insp-steps li::before { content: counter(s); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-1); }
.score { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 8px; }
.score-head { font-size: 14px; font-weight: 500; color: var(--ink-1); }
.score .bar { grid-template-columns: 56px minmax(0, 1fr) 36px; }

/* corrections: provenance chips */
.prov { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }

/* slack: taste taps */
.taps { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.taps span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--ink-1); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.choose img { background: radial-gradient(70% 60% at 50% 60%, rgba(65,43,207,.25), transparent 72%), var(--surface-hi) !important; object-fit: contain !important; }
a.linkline { display: inline-flex; min-height: 32px; align-items: center; }

/* security */
.sec-item { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; color: var(--ink-1); }
.aikido-line { margin-top: 16px; display: flex; align-items: center; font-size: 14px; color: var(--ink-2); }
.aikido-line .plg { width: 20px; height: 20px; margin-right: 10px; }

@media (hover: hover) {
  .bswitch button:hover { color: var(--ink-1); }
}

@media (max-width: 1080px) {
  .flow--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow--six .step:nth-child(4)::before, .flow--six .step:nth-child(4)::after { display: block; }
  .flow--six .step:nth-child(3)::before, .flow--six .step:nth-child(3)::after,
  .flow--six .step:nth-child(5)::before, .flow--six .step:nth-child(5)::after { display: none; }
  .facts--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two--wide { grid-template-columns: minmax(0, 1fr); }
  .chars { grid-template-columns: minmax(0, 1fr); }
  .ref-stage { min-height: 220px; }
  .inside { grid-template-columns: minmax(0, 1fr); }
  .inside-arrow { transform: rotate(90deg); justify-self: start; }
}
@media (max-width: 860px) {
  .trio { grid-template-columns: minmax(0, 1fr); }
  .nova-body { grid-template-columns: minmax(0, 1fr); }
  .nova-mascot { width: 50%; justify-self: center; }
  .nova-body .tokens--live { display: none; }
}
@media (max-width: 640px) {
  .flow--six { grid-template-columns: minmax(0, 1fr); }
  .flow--six .step:nth-child(n)::before, .flow--six .step:nth-child(n)::after { display: block; }
  .flow--six .step:first-child::before, .flow--six .step:first-child::after { display: none; }
  .facts--six, .facts--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts--six .fact, .facts--five .fact { box-shadow: inset 0 1px 0 var(--line-1); }
  .facts--six .fact:nth-child(-n+2), .facts--five .fact:nth-child(-n+2) { box-shadow: none; }
  .facts--six .fact:nth-child(even), .facts--five .fact:nth-child(even) { box-shadow: inset 1px 0 0 var(--line-1), inset 0 1px 0 var(--line-1); }
  .facts--six .fact:nth-child(2), .facts--five .fact:nth-child(2) { box-shadow: inset 1px 0 0 var(--line-1); }
  .tok-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .tok-row code, .tok-row .role { display: none; }
  .taste-row { grid-template-columns: 76px repeat(2, minmax(0, 1fr)); }
  .bar { grid-template-columns: 116px minmax(0, 1fr) 30px; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw2 { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .opt, .bswitch button { transition: none; }
}

#agents .panel pre.code { flex: none; }

/* ---------- Brand guideline (agency depth) ---------- */
.gl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gl-open { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hit); font-size: 14px; color: var(--ink-2); transition: color var(--dur-ui) var(--ease); }
.gl-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gl-grid > .panel { grid-column: span 12; }
.gl-grid h3, .cc h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.012em; color: var(--ink-1); }
.gl-claim { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: end; padding: 32px; }
.gl-quote { margin: 14px 0 0; font-size: clamp(28px, 2.4vw + 10px, 46px); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink-1); text-wrap: balance; }
.gl-quote::before { content: "\201C"; } .gl-quote::after { content: "\201D"; }
.gl-idea { margin-top: 14px; max-width: 60ch; font-size: 15px; line-height: 1.55; color: var(--ink-body); }
.gl-reg { padding: 18px 20px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.gl-reg-ab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.012em; color: var(--ink-1); }
.gl-reg-ab span { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.gl-reg p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.gl-values { grid-column: span 7 !important; }
.gl-verdict { grid-column: span 5 !important; }
.gl-verdict p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-body); }
.val-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.val b { display: block; font-size: 15px; font-weight: 500; color: var(--ink-1); }
.val p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ratio { margin-top: 16px; display: flex; height: 14px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(127,127,140,.22); }
.ratio i { display: block; height: 100%; }
.ratio-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-sm); color: var(--ink-2); }
.ratio-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ratio-legend i { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(127,127,140,.3); }
.ratio-legend b { color: var(--ink-1); font-weight: 500; font-variant-numeric: tabular-nums; }
.job-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.job { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.job > i { width: 44px; height: 100%; min-height: 64px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(127,127,140,.25); }
.job-head { display: flex; align-items: baseline; gap: 8px; }
.job-head b { font-size: 14px; font-weight: 500; color: var(--ink-1); }
.job-head code { font-size: 12px; color: var(--ink-3); }
.job p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-body); }
.job .never { margin-top: 6px; color: var(--ink-2); }
.job .never em { font-style: normal; font-weight: 500; color: var(--crit); margin-right: 4px; }
.gl-type, .gl-voice { grid-column: span 6 !important; }
.type-table { margin-top: 14px; display: grid; }
.trow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.trow:last-child { border-bottom: 0; }
.trow .spec { color: var(--ink-1); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; }
.trow .tmeta b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-1); }
.trow .tmeta span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.trow .tnum { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.voice-char { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-1); }
.voice-lines { margin-top: 14px; display: grid; gap: 8px; }
.vline { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.vline small { display: block; font-size: 12px; color: var(--ink-3); }
.vline p { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--ink-1); }
.banned { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.banned-label { font-size: 12px; font-weight: 500; color: var(--crit); margin-right: 2px; }
.banned span[data-g] { display: contents; }
.banned .tag { text-decoration: line-through; text-decoration-color: var(--crit); color: var(--ink-2); }
.not-list { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.not-list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.not-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--ink-3); }

/* ---------- Mascot concept ---------- */
.cc { padding: 28px; }
.cc-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; }
.cc-deriv p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-body); max-width: 62ch; }
.form-list { margin-top: 10px; display: grid; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.form:last-child { border-bottom: 0; }
.form b { font-size: 14px; font-weight: 500; color: var(--ink-1); }
.form .fsize { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.form p { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.state-row { margin-top: 24px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.state { display: flex; flex-direction: column; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.state-stage { aspect-ratio: 1; display: grid; place-items: center; background: var(--sbg, #030309); }
.state-stage img { width: 84%; height: 84%; object-fit: contain; }
.state-meta { padding: 10px 12px 12px; }
.state-meta b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-1); }
.state-meta p { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.cc-rules { margin-top: 24px; }
.rule-list { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: r; }
.rule-list li { counter-increment: r; position: relative; padding: 14px 14px 14px 44px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; line-height: 1.5; color: var(--ink-body); }
.rule-list li::before { content: counter(r); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 500; color: var(--ink-1); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-1); }
section[data-needs][hidden] { display: none; }

@media (hover: hover) { .gl-open:hover { color: var(--ink-1); } }
@media (max-width: 1080px) {
  .gl-claim { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .gl-values, .gl-verdict, .gl-type, .gl-voice { grid-column: span 12 !important; }
  .cc-top { grid-template-columns: minmax(0, 1fr); }
  .state-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gl-claim, .cc { padding: 20px; }
  .val-grid, .job-grid, .not-list { grid-template-columns: minmax(0, 1fr); }
  .state-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trow { grid-template-columns: 48px minmax(0, 1fr); }
  .trow .tnum { grid-column: 2; text-align: left; }
}

/* A | B switch (both variants) */
.ab-switch { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface-1) 88%, transparent); box-shadow: inset 0 0 0 1px var(--line-1), var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ab-switch a { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ab-switch a[aria-current="page"] { background: var(--ink-1); color: var(--canvas); }
