/* AegisLab console, visual system v2. Loaded after console.css; restyles tokens and surfaces, markup and logic untouched.
   Language: flat light stage in a rounded sheet, dark pill navigation, electric blue + lime accents, colour-block cards,
   hairline lists, node-graph architecture. Semantic colours (moss pass / crimson deny / cobalt allow / ochre warn) are kept
   and are always paired with words. */

@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-var.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --stage: #e9e9e6;
  --bg: #f6f6f3;
  --panel: #ffffff;
  --panel2: #ecece8;
  --soft: #eeeeea;
  --ink: #101114;
  --ink2: #5b5f66;
  --ink3: #9a9da3;
  --line: #e3e3de;
  --line2: #d6d6d0;
  --faint: #c7c7c0;
  --graphite: #3a3d41;
  --on-ink: #ffffff;
  --blue: #1757ff;
  --blue-2: #0f43d6;
  --lime: #e4f66a;
  --lime-2: #d5ea4c;
  --accent: var(--blue);
  --cobalt: #1757ff;
  --moss: #15803d;
  --crimson: #d92d4b;
  --ochre: #9a6700;
  --shadow-card: 0 1px 0 rgba(16, 17, 20, .04), 0 18px 40px -22px rgba(16, 17, 20, .28);
  --shadow-pop: 0 28px 70px -20px rgba(16, 17, 20, .4);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Montserrat", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-tab: 14px;
  --fs-title: 17px;
  --fs-body: 14.5px;
  --fs-read: 14px;
  --fs-tag: 13px;
  --fs-field: 16px;
  --radius: 28px;
  --ctl-r: 14px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

html { scroll-behavior: smooth; background: var(--bg); }
body { background: var(--bg); font-weight: 400; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#app { width: 100%; max-width: none; margin: 0; background: var(--bg); border-radius: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: clip; }
#app > main { flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4, .brand { font-family: var(--head); letter-spacing: -.025em; font-weight: 400; }
code, .mono, .hash, .cmd, .transcript, .lbl, .label, th, .stamp, pre { font-family: var(--mono); }
a { text-decoration-color: rgba(23, 87, 255, .4); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

#scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--blue); z-index: 80; pointer-events: none; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 50; margin: 0; padding: 22px max(var(--gutter), calc((100% - 1600px) / 2 + var(--gutter))) 14px; background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 28px; row-gap: 12px; transition: box-shadow .3s; }
html.scrolled .site-head { box-shadow: 0 1px 0 var(--line); }
.hrow1 { display: contents; }
.brand { grid-column: 1; grid-row: 1; font-size: 30px; line-height: 1; padding: 0; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0; font-weight: 400; }
.brand::after { content: "."; color: var(--blue); }
.brand small { display: none; }
.hrow1 .tools { grid-column: 3; grid-row: 1; justify-self: end; gap: 10px; flex-wrap: nowrap; }
.sys { font-size: 12.5px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
#sess:empty, #sess-end[hidden] { display: none; }
.sys .dot { width: 8px; height: 8px; }
.iconbtn { border-radius: 50%; background: var(--graphite); color: #fff; width: 36px; height: 36px; transition: transform .25s var(--ease), background .2s; }
.iconbtn:hover { background: var(--blue); transform: rotate(-8deg) scale(1.06); }

.hrow2 { grid-column: 2; grid-row: 1; border: 0; padding: 0; min-width: 0; }
.subnav { justify-content: safe center; gap: 6px; padding: 9px 14px; overflow-x: auto; }
.subnav a { height: 40px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink2); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.subnav a:not(:last-child)::after { content: none; }
.subnav a:hover { color: var(--ink); background: rgba(16, 17, 20, .06); }
.subnav a:hover span { text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--graphite); color: #fff; }
.subnav a:focus-visible span { outline: none; }
.subnav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ring { display: none !important; }  /* console.js's own loop is replaced by .rg below */
.subnav a, .pillbtn, .btn, .arch-bar .pill { position: relative; }
svg.rg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; overflow: visible; z-index: 2; }
svg.rg path { fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#pencil); transition: stroke-dashoffset .6s var(--ease); }
:hover > svg.rg path, [aria-current="page"] > svg.rg path, .arch-bar .pill[aria-pressed="true"] > svg.rg path { stroke-dashoffset: 0; }  /* hover, and the selected item (ring only, no fill) */
.pillbtn.dark svg.rg path, .acard svg.rg path { stroke: var(--blue); }
@media (prefers-reduced-motion: reduce) { svg.rg path { transition: none; } }

@media (max-width: 1480px) {
  .site-head { grid-template-columns: auto 1fr; }
  .hrow1 .tools { grid-column: 2; }
  .hrow2 { grid-column: 1 / -1; grid-row: 2; }
  .subnav { justify-content: flex-start; }
}

.band { grid-column: 1 / -1; border: 0; padding: 0; gap: 12px; }
.band.solo { border: 0; }
.search { background: #fff; border-radius: 999px; padding: 0 20px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.search .ico { position: static; margin-right: 10px; color: var(--ink2); }
.search input { height: 46px; padding: 0; font-size: 14.5px; letter-spacing: 0; }
.search input::placeholder { color: var(--ink3); }
.search input:focus-visible { box-shadow: none; }
.bandbtn { height: 46px; padding: 0 20px; font-size: 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bandbtn:hover { background: var(--soft); }
.bandbtn .count { background: var(--blue); }
.fpanel { grid-column: 1 / -1; padding: 6px 0 0; }
.frow, .facets { border-bottom: 1px solid var(--line); }
.facet { border-left: 1px solid var(--line); }

/* ---------------------------------------------------------------- page frame */
main { max-width: 1600px; margin: 0 auto; padding: 12px var(--gutter) 72px; }
.page { animation: pagein .5s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.statement { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; font-weight: 400; letter-spacing: -.03em; max-width: 36ch; margin: 0 0 18px; }
.lede, .intro p { color: var(--ink2); font-size: 16px; line-height: 1.65; max-width: 70ch; }
.intro { margin-bottom: 34px; }
.sec { margin-top: 84px; }
.sec:first-child { margin-top: 28px; }
.sec-head { border-top: 0; padding-top: 0; margin-bottom: 26px; align-items: end; }
.sec-head h2, .sec-head h3 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.sec-head > span, .sec-head > a { font-size: 13px; color: var(--ink2); max-width: 26ch; text-align: right; }
.lbl { color: var(--blue); font-weight: 500; letter-spacing: .09em; }

/* ---------------------------------------------------------------- buttons, chips, tags */
.btn { height: 42px; padding: 0 22px; font-weight: 500; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .2s; }
.btn:hover:not(:disabled) { background: var(--soft); transform: translateY(-1px); }
.btn.solid { background: var(--graphite); color: #fff; box-shadow: none; }
.btn.solid:hover:not(:disabled) { background: var(--blue); color: #fff; }
.btn.solid.warn { background: var(--danger); }
.btn.warn { background: #fff; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.lg { height: 50px; padding: 0 28px; }
.chip { height: 32px; padding: 0 16px; background: #fff; transition: background .2s; }
.chip:hover { background: var(--soft); }
.chip.on, .chip.on:hover { background: var(--graphite); color: #fff; }
.chip.kind { height: 36px; background: var(--graphite); }
.field select, .select { background-color: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); height: 42px; }
.switch input { box-shadow: inset 0 0 0 2px var(--faint); }
.switch input::before { background: var(--faint); }
.switch input:checked { background: var(--blue); box-shadow: none; }
.switch input:checked::before { background: #fff; }
.tag { background: transparent; }
.badge { font-weight: 500; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; margin-top: 8px; }
.hero-l { background: var(--lime); border-radius: 40px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 26px; position: relative; min-height: 460px; }
.hero-l::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; background: var(--bg); border-radius: 22px 0 0 0; box-shadow: 14px 14px 0 14px var(--bg); }
.hero-l h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; max-width: 12ch; }
.hero-l h1 em { font-style: normal; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--ink); }
.hero-l p { max-width: 40ch; font-size: 15.5px; line-height: 1.6; color: #2c2f12; margin: 0; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.pillbtn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .25s var(--ease), background .2s, color .2s; }
.pillbtn.dark { background: var(--ink); color: #fff; }
.pillbtn.dark:hover { background: var(--blue); transform: translateY(-2px); }
.pillbtn.ghost { background: rgba(255, 255, 255, .55); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(16, 17, 20, .25); }
.pillbtn.ghost:hover { background: #fff; transform: translateY(-2px); }
.pillbtn svg, .proof svg { width: 16px; height: 16px; }
.proof { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #2c2f12; max-width: 44ch; }
.proof b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); flex: none; }
.hero-r { border-radius: 40px; overflow: hidden; position: relative; min-height: 460px; background: #0b1235; isolation: isolate; }
.hero-r svg.land { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-r .chipf { position: absolute; background: #fff; border-radius: 999px; padding: 8px 16px 8px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); animation: bob 7s ease-in-out infinite; }
.hero-r .chipf i { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: inline-block; flex: none; }
.hero-r .chipf.ok i { background: var(--moss); }
.hero-r .chipf.no i { background: var(--crimson); }
.hero-r .c1 { left: 7%; top: 10%; }
.hero-r .c2 { right: 5%; top: 17%; animation-delay: -2.4s; }
.hero-r .c3 { left: 12%; bottom: 14%; animation-delay: -4.6s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.hero-r svg.scene .fl { animation: bob 7s ease-in-out infinite; }
.hero-r .caption { position: absolute; right: 22px; bottom: 20px; max-width: 24ch; text-align: right; font-size: 12px; line-height: 1.45; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-l, .hero-r { min-height: 340px; } }

/* "We Isolate -> Verify" shape strip */
.flow { display: grid; grid-template-columns: .8fr 1.2fr .9fr 1.2fr; gap: 14px; margin-top: 18px; }
.flow > div { height: clamp(96px, 12vw, 150px); border-radius: 999px; display: grid; place-items: center; font-size: clamp(22px, 3.4vw, 46px); letter-spacing: -.04em; font-weight: 400; position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.flow > div:hover { transform: scale(1.025); }
.flow .f1 { background: #ecece8; }
.flow .f2 { color: #fff; background: radial-gradient(120% 140% at 20% 0, #ffffff 0, #bcd3ff 28%, #5c8bff 62%, #2c52d9 100%); text-shadow: 0 2px 18px rgba(20, 40, 120, .35); }
.flow .f3 { background: var(--lime); }
.flow .f3 svg { width: 44%; height: 44%; transition: transform .4s var(--ease); }
.flow .f3:hover svg { transform: translateX(10px); }
.flow .f4 { color: #fff; background: linear-gradient(170deg, #f0a35e 0, #b4532a 46%, #4a2a22 100%); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- architecture node graph */
.arch { background: #ecece8; border-radius: 40px; padding: clamp(14px, 2vw, 26px); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; position: relative; }
.arch-bar { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 2px 2px 6px; }
.arch-bar .pill { height: 40px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font-size: 14px; transition: background .25s var(--ease), color .25s; }
.arch-bar .pill:hover { color: var(--ink); background: rgba(16, 17, 20, .06); }
.arch-bar .pill[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.arch-bar .legend { margin-left: auto; display: inline-flex; gap: 18px; font-size: 12px; color: var(--ink2); }
.arch-bar .legend span { display: inline-flex; align-items: center; gap: 8px; }
.arch-bar .legend i { width: 26px; height: 0; border-top: 2px solid var(--blue); }
.arch-bar .legend i.d { border-top: 2px dashed var(--crimson); }
.arch-side { display: flex; flex-direction: column; gap: 12px; }
.acard { border-radius: 30px; padding: 20px 22px; color: #fff; position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .4s var(--ease); }
.acard:hover { transform: translateY(-3px); }
.acard.dk { background: var(--graphite); }
.acard.bl { background: var(--blue); min-height: 170px; }
.acard h3 { font-size: 26px; line-height: 1.05; letter-spacing: -.03em; font-weight: 400; margin-bottom: 6px; }
.acard small { font-size: 12.5px; opacity: .8; }
.acard .rb { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.acard .rb svg { width: 18px; height: 18px; }
.acard .dots { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.acard .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.acard .dots i:nth-child(2) { width: 16px; height: 16px; } .acard .dots i:nth-child(3) { width: 22px; height: 22px; } .acard .dots i:nth-child(4) { width: 14px; height: 14px; opacity: .6; }
.roles { background: #fff; border-radius: 30px; padding: 8px; display: flex; flex-direction: column; }
.role { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 22px; transition: background .2s, opacity .3s; }
.role:hover { background: var(--soft); }
.role b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 14px; color: #fff; background: var(--c, var(--graphite)); }
.role strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; }
.role span { display: block; font-size: 11.5px; color: var(--ink2); }
.role em { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 13px; color: var(--ink2); }

.arch-stage { position: relative; min-width: 0; }
.arch-canvas { position: absolute; left: 0; top: 0; width: 780px; height: 540px; transform-origin: 0 0; }
.arch-canvas svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.arch-canvas .e { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; transition: opacity .3s; }
.arch-canvas .e.d { stroke: var(--crimson); stroke-dasharray: 7 7; }
.arch-canvas .e.dim, .arch-canvas .pk.dim { opacity: .14; }
.arch-canvas .pk { fill: var(--blue); }
.arch-canvas .lab { position: absolute; transform: translate(-50%, -50%); background: #fff; color: var(--crimson); font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); white-space: nowrap; }
.node { position: absolute; width: 230px; height: 58px; background: #fff; border-radius: 999px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 18px 6px 6px; box-shadow: 0 10px 26px -16px rgba(16, 17, 20, .45); transition: transform .35s var(--ease), opacity .3s, box-shadow .35s var(--ease); cursor: default; }
.node:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 36px -18px rgba(23, 87, 255, .5); z-index: 3; }
.node .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.node .ic svg { width: 20px; height: 20px; }
.node strong { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.15; }
.node span { display: block; font-size: 11px; color: var(--ink2); line-height: 1.25; margin-top: 2px; }
.node.ghost { background: rgba(255, 255, 255, .55); }
.node.ghost .ic { background: #d9d9d4; color: var(--ink2); }
.node.big { height: 150px; border-radius: 34px; background: var(--blue); color: #fff; grid-template-columns: 1fr; align-content: space-between; padding: 18px 20px; }
.node.big strong { font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.node.big span { color: rgba(255, 255, 255, .8); font-size: 12px; }
.node.big .tools { display: flex; gap: 8px; }
.node.big .tools i { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.node.big .tools svg { width: 18px; height: 18px; }
.node.dim, .role.dim { opacity: .28; }
.node.sel { box-shadow: 0 0 0 3px var(--blue), 0 22px 36px -18px rgba(23, 87, 255, .5); }
.arch-list { display: none; }
@media (max-width: 1040px) { .arch { grid-template-columns: 1fr; } .arch-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 760px) {
  .arch-stage { display: none; }
  .arch-list { display: flex; flex-direction: column; gap: 10px; }
  .arch-list .node { position: static; width: 100%; height: auto; min-height: 58px; border-radius: 30px; }
  .arch-bar .legend { display: none; }
}

/* ---------------------------------------------------------------- colour-block cards (gradient field + white type) */
.cards { gap: 16px; }
.card { min-height: 280px; padding: 22px; border-radius: var(--radius); border: 0; color: #fff; justify-content: flex-start; overflow: hidden;
  background: linear-gradient(165deg, color-mix(in oklab, var(--mc) 70%, #fff) 0, var(--mc) 52%, color-mix(in oklab, var(--mc) 62%, #000) 100%);
  box-shadow: var(--shadow-card); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card::before { content: ""; position: absolute; inset: auto -20% -38% -20%; height: 70%; background: radial-gradient(60% 60% at 50% 0, rgba(255, 255, 255, .28), transparent 70%); pointer-events: none; }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -24px rgba(16, 17, 20, .5); }
.card.auto:hover { transform: none; }
.card .top { border-bottom: 1px solid rgba(255, 255, 255, .28); padding-bottom: 14px; }
.card h3 { font-size: 22px; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.card, .card .meta, .card .mark, .card .body, .card .muted, .card .st, .card .claims, .card .tiny, .card .small, .card .foot, .card .mark .st { color: #fff !important; }
.card .meta { font-style: normal; opacity: .85; }
.card .badge { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.card .tag { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); background: transparent; }
.card.sel { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--blue); }
.card.c-grey { --mc: #52565e; }

/* ---------------------------------------------------------------- lists, tables, panels */
.ledger li { border-color: var(--line); padding-block: 12px; }
.cols > div + div { border-left: 1px solid var(--line2) !important; }
.gwrap, .verdict, .transcript { border: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.gside { border-left: 1px solid var(--line); }
.note { border-radius: 18px; border-left-width: 4px; background: #fff; box-shadow: var(--shadow-card); }
.cmd { background: var(--ink); border-radius: 16px; }
.empty { border: 1.5px dashed var(--faint); background: transparent; border-radius: var(--radius); }
.errorbox { border-radius: var(--radius); }

.table-wrap { border-top: 0; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
th { color: var(--ink3); font-weight: 400; border-bottom: 1px solid var(--line2); padding: 12px 14px 12px 0; }
td { border-bottom: 1px solid var(--line2); padding: 20px 14px 20px 0; font-size: 14.5px; }
tbody tr.click { transition: background .2s, transform .3s var(--ease); }
tbody tr.click:hover td { background: rgba(16, 17, 20, .035); }
tbody tr.sel td { background: var(--lime); }
tbody tr.sel td:first-child { box-shadow: none; }

/* ---------------------------------------------------------------- sheet, dialogs, footer */
.sheet { background: #fff; border-radius: 34px 0 0 34px; box-shadow: var(--shadow-pop); }
.confirm { border: 0; border-radius: 30px; box-shadow: var(--shadow-pop); padding: 30px; }
.confirm::backdrop { background: rgba(16, 17, 20, .4); backdrop-filter: blur(3px); }
.toast { background: var(--ink); border-radius: 999px; }
.site-foot { margin: 0 auto; width: 100%; max-width: 1600px; padding: 26px var(--gutter) 44px; border-top: 1px solid var(--line2); color: var(--ink2); font-size: 12.5px; }

/* ---------------------------------------------------------------- scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  html.anim .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease) var(--rd, 0ms), transform .8s var(--ease) var(--rd, 0ms), box-shadow .45s var(--ease); will-change: opacity, transform; }
  html.anim .rv.in { opacity: 1; transform: none; will-change: auto; }
  html.anim .card.rv.in:hover { transform: translateY(-8px); transition-delay: 0ms; }
  html.anim .flow > .rv { transform: translateX(-30px) scale(.94); }
  html.anim .flow > .rv.in { transform: none; }
  .card.pre, .card.in { opacity: 1; translate: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .page { animation: none; } .hero-r .chipf, .hero-r svg.scene .fl { animation: none; } }
@media (max-width: 760px) {
  .site-head { padding-top: 16px; column-gap: 10px; grid-template-columns: auto minmax(0, 1fr); }
  .hrow1 .tools { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; flex-wrap: wrap; justify-content: flex-start; gap: 6px; min-width: 0; }
  .hrow2 { grid-row: 3; }
  .band { grid-row: 4; }
  .fpanel { grid-row: 5; }
  .sys { padding: 6px 10px; font-size: 11.5px; }
  .brand { font-size: 26px; }
  .sec { margin-top: 60px; }
  .hero-l::after { display: none; }
  .sheet { border-radius: 28px 28px 0 0; }
  .sec-head > span, .sec-head > a { text-align: left; }
}

/* hover = the drawn ring only: no fill, lift or colour change inside it */
.subnav a:not([aria-current]):hover { background: transparent; color: var(--ink); }
.pillbtn:hover, .pillbtn.dark:hover, .pillbtn.ghost:hover { transform: none; }
.pillbtn.dark:hover { background: var(--ink); }
.pillbtn.ghost:hover { background: rgba(255, 255, 255, .55); }
.btn:hover:not(:disabled), .btn.solid:hover:not(:disabled) { transform: none; }
.btn:not(.solid):hover:not(:disabled) { background: #fff; }
.btn.solid:hover:not(:disabled) { background: var(--graphite); }
.arch-bar .pill:not([aria-pressed="true"]):hover { background: transparent; color: var(--ink); }
.iconbtn:hover { background: var(--graphite); transform: none; }

/* selected = the drawn ring only, no filled pill */
.subnav a[aria-current="page"] { background: transparent; color: var(--ink); }
.arch-bar .pill[aria-pressed="true"] { background: transparent; color: var(--ink); }
