/* PuppyPad Page Library (rebuilt 2026-10-10 around the Skeleton Library).
   Calm and light: cool paper, white surfaces, one accent (petrol) for what you can click and where you are.
   Our words are set in the system sans; other brands' headlines are set in a book serif, in quotation marks.
   System fonts only: the hub's CSP serves nothing from other hosts. Also styles login.html. */
@font-face { font-family: "Schibsted Grotesk"; src: url("/library/assets/fonts/SchibstedGrotesk-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "AwesomeSerif"; src: url("/library/assets/fonts/AwesomeSerif-MediumExtraTall.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/library/assets/fonts/BebasNeue-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Tokens follow the AI Agents boards (PuppyPad-AI-Agents/canvas/boards, 2026-11-03): navy ink, cool grey paper,
   a charcoal rail, yellow only for the one hero button, colour only for the agents. Light only, like the boards. */
:root {
  --bg: #EDEEF0;
  --surface: #ffffff;
  --surface-2: #F5F6F7;
  --sunk: #EEF0F3;
  --wire: #E6E8EC;
  --ink: #001B74;
  --ink-deep: #000E40;
  --ink-2: #5B6275;
  --ink-3: #626A7D;
  --line: #E6E8EC;
  --line-2: #DADDE3;
  --accent: #001B74;
  --accent-strong: #000E40;
  --accent-soft: #EEF0F5;
  --on-accent: #ffffff;
  --yellow: #FFF280;
  --yellow-pale: #FFF8BD;
  --rail-bg: #292929;
  --ok: #0F7B55;
  --warn: #B45309;
  --err: #C2255C;
  --scrim: rgba(0, 14, 64, 0.42);
  --mark-bg: #001B74;
  --mark-ink: #ffffff;
  --leo: #46E0A3;
  --iris: #9D8CFF;
  --quinn: #8FA3B0;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "AwesomeSerif", Georgia, serif;
  --num: "Bebas Neue", "Arial Narrow", sans-serif;
  --serif: ui-serif, "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.25, 1, .5, 1);
  --r-card: 16px;
  --r-shot: 10px;
  --r-chip: 6px;
  --rail: 64px;
  --panel: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.faint { color: var(--ink-3); font-size: 13px; }
.muted { color: var(--ink-2); }
.loading { color: var(--ink-2); padding: 24px 0; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 60; padding: 8px 14px; border-radius: 8px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ frame: rail + panel + main (AI Agents boards) */
.app { display: grid; grid-template-columns: var(--rail) var(--panel) minmax(0, 1fr); gap: 10px; padding: 10px; min-height: 100vh; }
.main { background: var(--surface); border-radius: 20px; padding: 40px 44px 96px; min-width: 0; }
.main:focus { outline: none; }
.main > * { max-width: 1180px; }

.rail {
  position: sticky; top: 10px; height: calc(100vh - 20px); overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0 12px;
  background: var(--rail-bg); border-radius: 16px;
}
.r-logo { display: grid; place-items: center; width: 48px; height: 40px; margin-bottom: 10px; }
.r-logo img { width: 40px; height: auto; }
.r-item { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: #C9CCD3; cursor: pointer; }
.r-item svg { width: 21px; height: 21px; }
.r-item:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.r-item.on { background: var(--yellow); color: var(--ink-deep); }
.r-item:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.r-face { width: 36px; height: 36px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14); }
.r-item.on .r-face { box-shadow: 0 0 0 2px var(--ink-deep); }
.r-live { position: absolute; right: 4px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--leo); box-shadow: 0 0 0 2px var(--rail-bg); }
.r-div { width: 28px; height: 1px; background: rgba(255, 255, 255, .16); margin: 8px 0; }
.r-fill { flex: 1; }

.side {
  position: sticky; top: 10px; height: calc(100vh - 20px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 14px; background: var(--surface-2); border-radius: 16px;
}
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.side .side-close { display: none; }
.p-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; }
.p-head b { display: block; font-weight: 650; font-size: 15.5px; color: var(--ink); line-height: 1.2; }
.p-head small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.3; margin-top: 1px; }
.p-label { margin: 16px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.p-hr { border: 0; border-top: 1px solid var(--line-2); margin: 10px 8px; }
.nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav a, .p-static { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(0, 27, 116, .05); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 14, 64, .05); font-weight: 600; }
.nav .sub a { min-height: 32px; padding: 5px 10px 5px 22px; font-size: 13.5px; color: var(--ink-2); }
.nav .sub a[aria-current="page"] { color: var(--ink); }
.nl { flex: 1; min-width: 0; }
.count { margin-left: auto; color: var(--ink-2); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.p-icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 700; }
.p-icon.co { width: 24px; height: 24px; background: var(--ink); color: #fff; }
.p-icon.you { background: var(--ink); color: #fff; border-radius: 50%; }
.face { border-radius: 50%; flex: none; display: inline-block; vertical-align: middle; object-fit: cover; }
.face-sm { width: 24px; height: 24px; }
.face-md { width: 36px; height: 36px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 10px 0; border-top: 1px solid var(--line-2); }
.who { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.who b { color: var(--ink); font-weight: 600; }
.foot-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--ink-2); font-size: 13.5px; cursor: pointer; text-decoration: none; }
.foot-link:hover { color: var(--ink); text-decoration: none; }
.foot-link svg { width: 16px; height: 16px; }
.foot-link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.mbar, .tabbar, .subtabs { display: none; }
.scrim[hidden] { display: none; }

@media (max-width: 999px) {
  .app { display: block; padding: 0; }
  .rail { display: none; }
  .main { border-radius: 0; padding: 22px 24px 112px; min-height: calc(100vh - 56px); }
  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 30;
    height: 56px; padding: 0 12px 0 16px; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .mbar-logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
  .mbar-logo:hover { text-decoration: none; }
  .mbar-logo img { width: 46px; height: auto; }
  .mbar-div { width: 1px; height: 20px; background: rgba(0, 27, 116, .3); }
  .mbar-name { font: 500 24px/1 var(--head); color: var(--ink); }
  .menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; cursor: pointer; color: var(--ink); }
  .menu-btn svg { width: 22px; height: 22px; }
  .side {
    position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100%; top: 0; border-radius: 0 16px 16px 0;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .26s var(--ease), visibility 0s linear .26s;
    box-shadow: 0 10px 40px rgba(0, 14, 64, .2);
  }
  .side.open { transform: none; visibility: visible; transition: transform .26s var(--ease); }
  .side .side-close { display: grid; position: absolute; top: 14px; right: 12px; }
  .scrim { position: fixed; inset: 0; z-index: 45; background: var(--scrim); }
  body.drawer-open { overflow: hidden; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--rail-bg);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: #C9CCD3; font-size: 11.5px; font-weight: 500; text-decoration: none; }
  .tabbar a:hover { text-decoration: none; color: #fff; }
  .tabbar .t-ic { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 10px; }
  .tabbar .t-ic svg { width: 21px; height: 21px; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on .t-ic { background: var(--yellow); color: var(--ink-deep); }
  .t-face { width: 26px; height: 26px; border-radius: 50%; display: block; }
  .tabbar a.on .t-face { box-shadow: 0 0 0 2px var(--ink-deep); }
  .subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px 22px; padding: 0 24px 2px; }
  .subtabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
  .subtabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
}
@media (max-width: 599px) {
  .main { padding: 18px 16px 104px; }
  .subtabs { margin: 0 -16px 18px; padding: 0 16px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .side, .side.open { transition: none; }
}

/* ------------------------------------------------------------ type + page heads */
.page-head { margin-bottom: 36px; max-width: 760px; }
.page-head h1 { font: 500 48px/1.02 var(--head); letter-spacing: -0.01em; color: var(--ink); }
.page-head h1:focus { outline: none; }
.lede { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.source { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 86ch; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
@media (max-width: 599px) {
  .page-head { margin-bottom: 28px; }
  .page-head h1 { font-size: 27px; }
  .lede { font-size: 16px; }
}

.shelf { margin-top: 44px; }
.page-head + .shelf, .chip-row + .shelf { margin-top: 0; }
.shelf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 20px; margin-bottom: 16px; }
.shelf-head h2 { font: 650 21px/1.25 var(--display); letter-spacing: -0.012em; }
.shelf-head h2 a { color: var(--ink); }
.shelf-head h2 a:hover { color: var(--accent); }
.shelf-head p { grid-column: 1; color: var(--ink-2); font-size: 14.5px; max-width: 68ch; }
.see-all { grid-column: 2; grid-row: 1; font-size: 14px; font-weight: 550; white-space: nowrap; }
@media (max-width: 599px) {
  .shelf { margin-top: 36px; }
  .shelf-head { grid-template-columns: 1fr; }
  .see-all { grid-column: 1; grid-row: auto; margin-top: 4px; }
}

.who-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--ink-3); }
.who-line b { color: var(--ink); font-weight: 620; font-size: 13.5px; }

/* Other brands' words: serif, in quotation marks. */
.quote { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
.quote q { quotes: "\201C" "\201D" "\2018" "\2019"; }

.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 550; }
.links a { position: relative; z-index: 1; }

/* ------------------------------------------------------------ pictures and their stand-ins */
.thumb {
  position: relative; overflow: hidden; aspect-ratio: 390 / 640;
  border-radius: var(--r-shot); border: 1px solid var(--line); background: var(--sunk);
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; background: var(--surface); }
.wire { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; padding: 7px; }
.wire-b { flex: 1 1 0; min-height: 0; display: flex; align-items: center; padding: 0 6px; border-radius: 4px; background: var(--wire); overflow: hidden; }
.wire-b:first-child { flex-grow: 2.2; align-items: flex-start; padding-top: 5px; }
.wire-b span { font-size: 9.5px; line-height: 1.1; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ------------------------------------------------------------ skeleton cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 599px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.sk { position: relative; container-type: inline-size; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s ease; }
.sk:hover { border-color: var(--line-2); }
.sk:has(.sk-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sk-in {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas: "shot top" "rest rest";
  gap: 14px; padding: 14px;
}
.sk-shot { grid-area: shot; }
.sk-shot .thumb { aspect-ratio: 390 / 560; }
.sk-top { grid-area: top; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sk-rest { grid-area: rest; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sk-head { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sk-link { color: var(--ink); text-decoration: none; }
.sk-link:hover { text-decoration: none; color: var(--accent-strong); }
.sk-link:focus-visible { outline: none; }
.sk-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.sk-num { margin-top: auto; display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--ink-2); }
.sk-num b { font: 700 24px/1.05 var(--display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sk-meta { font-size: 13px; color: var(--ink-3); }
.sk-diff { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.chips li { font-size: 12.5px; line-height: 1.3; padding: 3px 8px; border-radius: var(--r-chip); background: var(--sunk); color: var(--ink-2); }
.chips li.more { background: none; border: 1px dashed var(--line-2); color: var(--ink-3); }

@container (min-width: 460px) {
  .sk-in { grid-template-columns: 138px minmax(0, 1fr); grid-template-areas: "shot top" "shot rest"; grid-template-rows: auto 1fr; gap: 12px 18px; padding: 16px; }
  .sk-shot .thumb { aspect-ratio: 390 / 660; }
  .sk-head { font-size: 18px; -webkit-line-clamp: 2; }
  .sk-num { margin-top: 4px; }
  .sk-num b { font-size: 26px; }
  .sk-rest { gap: 10px; align-self: start; }
}

/* ------------------------------------------------------------ skeleton detail */
.dt-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.dt-top .crumbs { margin: 0; }
.pager { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.pager-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 550; }
.pager-btn:hover { border-color: var(--line-2); text-decoration: none; }
.pager-btn svg { width: 16px; height: 16px; }
.pager-btn[aria-disabled="true"] { color: var(--ink-3); background: transparent; border-color: transparent; }
.pager-pos { color: var(--ink-3); padding: 0 6px; font-variant-numeric: tabular-nums; }

.dt-head { max-width: 860px; margin-bottom: 30px; }
.dt-title { margin-top: 8px; font-size: 32px; line-height: 1.18; letter-spacing: -0.012em; }
.dt-title:focus { outline: none; }
.dt-num { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; color: var(--ink-2); }
.dt-num b { font: 700 38px/1 var(--display); letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dt-facts { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 599px) {
  .dt-title { font-size: 24px; }
  .dt-num b { font-size: 32px; }
}

.dt-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.dt-side { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
@media (max-width: 1239px) { .dt-body { grid-template-columns: minmax(0, 1fr); } .dt-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-items: start; } .dt-side .use { grid-column: 1 / -1; } }
@media (max-width: 699px) { .dt-side { grid-template-columns: minmax(0, 1fr); } }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sunk); margin-bottom: 14px; }
.viewer { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.seg button { min-height: 34px; padding: 5px 16px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 560; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }
#viewer-slot { width: 100%; }
.frame-wrap { width: 100%; margin: 0 auto; }
.frame-wrap.w390 { max-width: 392px; }
.frame-wrap.w768 { max-width: 770px; }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface); font-size: 12.5px; color: var(--ink-3); }
.frame-host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.frame-size { flex: none; }
.frame {
  position: relative; height: min(78vh, 1180px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: var(--sunk);
}
.frame img { display: block; width: 100%; height: auto; background: var(--surface); }
.frame-ph { display: none; }
.frame.is-missing .frame-ph { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 14px; }
.frame-ph .wire { position: relative; inset: auto; flex: 1; padding: 0; gap: 6px; }
.frame-ph .wire-b span { font-size: 12px; }
.frame-ph p { font-size: 14px; color: var(--ink-2); text-align: center; padding: 4px 8px 6px; }
.frame-note { margin-top: 10px; font-size: 13px; color: var(--ink-2); text-align: center; }
@media (max-width: 599px) { .frame { height: 64vh; } }

.side-block h2, .use h2 { font: 650 14.5px/1.3 var(--display); margin-bottom: 8px; color: var(--ink); }
.side-block p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.stack-links { flex-direction: column; gap: 6px; }

/* Zarg's own notes from earlier pages on this skeleton. */
.note-badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 600; line-height: 1.5; }
.notes { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.notes .notes-sub { font-size: 13px; color: var(--ink-3); margin: -2px 0 10px; }
.note-list { list-style: none; display: flex; flex-direction: column; }
.note-list li { padding: 10px 0 10px 12px; border-left: 2px solid var(--accent); }
.note-list li + li { margin-top: 8px; }
.note-list li p { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.note-list .note-meta { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }

/* Section order: a numbered spine (the content really is a sequence). */
.spine { list-style: none; counter-reset: step; }
.spine li { counter-increment: step; position: relative; padding: 2px 0 12px 36px; min-height: 26px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.spine li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-size: 12px; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums;
}
.spine li::after { content: ""; position: absolute; left: 12px; top: 24px; bottom: 0; width: 1px; background: var(--line-2); }
.spine li:last-child { padding-bottom: 0; }
.spine li:last-child::after { display: none; }

.use { padding: 18px; border-radius: 12px; background: var(--accent-soft); }
.use p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cmd { margin-top: 12px; display: flex; align-items: stretch; gap: 8px; }
.cmd code { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font: 12.5px/1.45 var(--mono); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.copy-msg { margin-top: 8px; font-size: 13px; color: var(--ink); }
.copy-msg:empty { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--ink-3); }
.btn svg { width: 16px; height: 16px; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.accent.done { background: var(--ok); border-color: var(--ok); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ------------------------------------------------------------ funnels */
.funnels { display: flex; flex-direction: column; gap: 16px; }
.fn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.fn-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 12px; margin-bottom: 18px; }
.fn-head h3 { font: 650 18px/1.25 var(--display); letter-spacing: -0.01em; }
.fn-visits { font-size: 13px; color: var(--ink-3); }
.fn-note { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); max-width: 75ch; }
.flow { display: flex; align-items: center; gap: 14px; }
.feeders { list-style: none; display: flex; gap: 12px; flex: 0 1 auto; min-width: 0; }
.feeders > li { flex: 0 1 180px; min-width: 132px; }
.flow-arrow { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.flow-arrow svg { width: 18px; height: 18px; }
.flow-dest { flex: 0 0 200px; width: 200px; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step .thumb { aspect-ratio: 390 / 430; }
.step-type { font-size: 14px; font-weight: 620; color: var(--ink); }
.step-ads { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.step-ads b { font-weight: 600; color: var(--ink); }
.step-url { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .links { font-size: 13px; gap: 4px 14px; margin-top: 2px; }
.step.dest { padding: 10px; margin: -10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.fn-foot { margin-top: 16px; }
@media (max-width: 1239px) {
  .flow { flex-direction: column; align-items: stretch; gap: 12px; }
  .feeders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .feeders > li { min-width: 0; }
  .flow-arrow { align-self: center; transform: rotate(90deg); }
  .flow-dest { flex: none; align-self: center; width: min(100%, 440px); margin: 10px 0; }
  .step.dest { flex-direction: row; align-items: flex-start; gap: 14px; }
  .step.dest .thumb { flex: 0 0 104px; aspect-ratio: 390 / 500; }
  .step.dest .step-text { flex: 1; padding-top: 2px; }
}
@media (max-width: 599px) {
  .fn { padding: 16px; }
  .fn-head { grid-template-columns: minmax(0, 1fr); }
  .feeders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flow-dest { width: 100%; }
  .step.dest .thumb { flex-basis: 92px; }
}

/* ------------------------------------------------------------ our pages */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 550; cursor: pointer; }
.chip-btn:hover { border-color: var(--line-2); }
.chip-btn .count { margin: 0; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-btn[aria-pressed="true"] .count { color: inherit; opacity: .8; }

.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 599px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pg { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .15s ease; }
.pg:hover { border-color: var(--line-2); }
.pg:has(.pg-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg .thumb { aspect-ratio: 390 / 500; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.pg-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.pg-title { font: 620 15px/1.3 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-meta { font-size: 13px; color: var(--ink-2); }
.pg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; }
.pg .links { margin-top: auto; padding-top: 6px; }
.pg .links .pg-link { position: static; }
.pg-link:focus-visible { outline: none; }
.pg-link::after { content: ""; position: absolute; inset: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.pill.ok::before { background: var(--ok); }
.pill.warn::before { background: var(--warn); }
.pill.accent::before { background: var(--accent); }
.pill.err::before { background: var(--err); }
.pill.ink::before { background: var(--ink); }

/* ------------------------------------------------------------ rows (in progress) */
.rows { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 18px; }
.row + .row { border-top: 1px solid var(--line); }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main b { font-weight: 600; overflow-wrap: anywhere; }
.row-sub { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.row-side { display: flex; align-items: center; gap: 14px; flex: none; font-size: 13.5px; }
@media (max-width: 699px) { .row { flex-direction: column; align-items: flex-start; } .row-side { flex-wrap: wrap; } }

.empty { padding: 22px 20px; border-radius: var(--r-card); border: 1px dashed var(--line-2); color: var(--ink-2); max-width: 760px; }
.empty p + p { margin-top: 6px; }
.empty b { color: var(--ink); font-weight: 600; }
.empty h1 { font: 650 22px/1.3 var(--display); color: var(--ink); margin-bottom: 8px; }
.empty h1:focus { outline: none; }
.empty.small { padding: 14px 16px; }

.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; margin-bottom: 26px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.banner .btn { margin-left: auto; min-height: 34px; }

/* ------------------------------------------------------------ production */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tile-k { font-size: 13px; color: var(--ink-2); }
.tile-v { margin-top: 4px; font: 700 26px/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile-s { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
/* position: relative keeps absolutely positioned .sr text inside the scroll region (else it widens the page). */
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table tbody tr:first-child td { border-top: 0; }
.cell-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ------------------------------------------------------------ testing (page tests, live from D1) */
.page-head.has-action { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.page-head.has-action > div { max-width: 760px; }
.t-chips { margin: 0 0 16px; }
.nowrap { white-space: nowrap; }
.t-wrap { container-type: inline-size; }
.tiles.t-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 699px) { .tiles.t-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table.t-table { min-width: 1040px; }
.t-table th, .t-table td { padding-left: 12px; padding-right: 12px; }
.t-table td { vertical-align: top; }
.t-num .cell-sub { white-space: nowrap; }
.t-page { min-width: 170px; max-width: 260px; }
.t-page b { font-weight: 600; overflow-wrap: anywhere; }
.t-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 112px; font-weight: 550; }
.t-links a { white-space: nowrap; }
.link-btn { text-align: left; }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink-3); font-size: 13px; font-weight: 500; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent); }
.lift { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.lift.up { color: var(--ok); }
.lift.down { color: var(--err); }
.t-acts { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 76px; }
.btn.sm { min-height: 32px; padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.btn.sm[aria-expanded="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.btn:disabled { opacity: .6; cursor: progress; }
.t-row.is-open td { background: var(--surface-2); }
.t-table tr.t-detail td { padding: 0; border-top: 0; background: var(--surface-2); }
/* The details stay as wide as the visible table region (100cqw) and pinned left while the table scrolls sideways. */
.t-detail-in { position: sticky; left: 0; width: 100cqw; padding: 6px 20px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; font-variant-numeric: normal; }
.t-block { min-width: 0; }
.t-block.wide, .t-meta.wide { grid-column: 1 / -1; }
.t-block h3 { margin-bottom: 6px; font: 650 13.5px/1.3 var(--display); color: var(--ink); }
.t-text { max-width: 78ch; font-size: 14px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.t-text + .t-text { margin-top: 8px; }
.t-nums { font-variant-numeric: tabular-nums; }
.t-verdict { margin-bottom: 6px; }
.t-history { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.t-history li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2px 14px; }
.t-meta { font-size: 13px; color: var(--ink-3); }
@media (max-width: 699px) {
  .t-detail-in { grid-template-columns: minmax(0, 1fr); padding: 6px 16px 18px; }
  .t-history li { grid-template-columns: minmax(0, 1fr); }
  .page-head.has-action { align-items: flex-start; }
}

/* the editor dialog */
.ed-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .28); }
.ed-dialog::backdrop { background: var(--scrim); }
.ed { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.ed-head h2 { min-width: 0; font: 650 19px/1.25 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ed-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 24px; }
.ed fieldset { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.ed fieldset + fieldset { padding-top: 20px; border-top: 1px solid var(--line); }
.ed legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; font: 650 15.5px/1.3 var(--display); color: var(--ink); }
.ed legend + * { clear: both; }
.ed-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ed-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-sub { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ed-metrics { display: block; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ed-metrics b { color: var(--ink); font-weight: 650; }
.req { padding: 1px 9px; border-radius: 999px; border: 1px solid currentColor; color: var(--warn); font: 600 12px/1.5 var(--sans); }
.req[hidden] { display: none; }
.field-hint { margin-top: -4px; font-size: 12.5px; color: var(--ink-3); }
label.field select, label.field textarea { border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; font: 15px var(--sans); color: var(--ink); }
label.field select { height: 44px; }
label.field textarea { min-height: 64px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
label.field select:focus, label.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
label.field input[type="date"] { min-width: 0; width: 100%; }
label.field [aria-invalid="true"] { border-color: var(--err); }
label.field [required][aria-required="true"] { border-color: var(--warn); }
.ed-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 16px 16px; }
.ed-foot .form-msg { flex: 1 1 260px; min-height: 0; }
.ed-btns { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 599px) {
  .ed-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .ed { height: 100%; max-height: 100dvh; }
  .ed-head { padding: 10px 10px 10px 16px; }
  .ed-body { padding: 0 16px 20px; }
  .ed-row, .ed-row.three { grid-template-columns: minmax(0, 1fr); }
  .ed-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
  .ed-btns { width: 100%; }
  .ed-btns .btn { flex: 1; }
}

/* ------------------------------------------------------------ research tools */
.tools { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.tool { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s ease; }
.tool:hover { border-color: var(--line-2); }
.tool:has(.tool-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool h2 { font: 650 18px/1.25 var(--display); }
.tool-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.tool-link:focus-visible { outline: none; }
.tool p { color: var(--ink-2); font-size: 14.5px; }
.tool .faint { margin-top: auto; }

/* ------------------------------------------------------------ forms (change password, login) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
form.stack.panel { padding: 22px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
label.field input { height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; font: 15px var(--sans); color: var(--ink); }
label.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form-msg { font-size: 13.5px; min-height: 20px; color: var(--ink-2); }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login .panel { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.login .brand-mark svg { stroke: var(--mark-ink); }
.login h1 { font: 650 24px/1.2 var(--display); letter-spacing: -0.02em; }
.login p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.login form.stack { max-width: none; }
.login .btn { width: 100%; height: 46px; }
.login .foot { text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* final assets of a released page (Shopify links) */
.fa-grid{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.fa{display:flex;flex-direction:column;gap:6px;min-width:0}
.fa img{display:block;width:100%;height:120px;object-fit:cover;border-radius:10px;border:1px solid var(--line, rgba(0,0,0,.1));background:var(--soft, #f3f3f1)}
.fa-kind{display:grid;place-items:center;height:120px;border-radius:10px;border:1px dashed var(--line, rgba(0,0,0,.15));font-size:13px;text-transform:capitalize}
.fa-name{font-size:12px;line-height:1.35;word-break:break-all}

/* ---------------------------------------------------------------- In progress, live (Zarg 2026-10-26) */
:root { --c-leo: #0F7B55; --c-iris: #5B47D6; --c-quinn: #a8650a; --c-sb: #1f7a4d; --c-you: #a3271b; }
.lj-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.lj { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.lj.waiting { border-color: color-mix(in srgb, var(--c-you) 45%, var(--line)); }
.lj-head h3 { font-size: 16.5px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.lj-head .faint { margin-top: 4px; overflow-wrap: anywhere; }
.quiet { color: var(--warn); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; counter-reset: step; }
.steps li { position: relative; padding-top: 10px; font-size: 11.5px; line-height: 1.25; color: var(--ink-3); min-width: 0; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--sunk); }
.steps li.done::before { background: color-mix(in srgb, var(--accent) 55%, var(--sunk)); }
.steps li.now::before { background: var(--accent); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li span { display: block; overflow-wrap: anywhere; }
.lj-now h4 { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.lj.waiting .lj-now h4 { color: var(--c-you); }
.workers { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.workers li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14.5px; line-height: 1.45; }
.w-what { min-width: 0; overflow-wrap: anywhere; }
.who-tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--c-leo); background: color-mix(in srgb, var(--c-leo) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c-leo) 30%, transparent); }
.who-tag.iris { color: var(--c-iris); background: color-mix(in srgb, var(--c-iris) 12%, transparent); border-color: color-mix(in srgb, var(--c-iris) 30%, transparent); }
.who-tag.quinn { color: var(--c-quinn); background: color-mix(in srgb, var(--c-quinn) 12%, transparent); border-color: color-mix(in srgb, var(--c-quinn) 30%, transparent); }
.who-tag.sb { color: var(--c-sb); background: color-mix(in srgb, var(--c-sb) 12%, transparent); border-color: color-mix(in srgb, var(--c-sb) 30%, transparent); }
.who-tag.you { color: var(--c-you); background: color-mix(in srgb, var(--c-you) 12%, transparent); border-color: color-mix(in srgb, var(--c-you) 30%, transparent); }
.lj-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--ink-2); }
.lj-log summary, .lj-quiet summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); padding: 4px 0; }
.lj-log ul { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.45; max-height: 260px; overflow: auto; }
.lj-log li { overflow-wrap: anywhere; }
.lj-quiet { margin-top: 16px; }
.lj-quiet .lj-grid { margin-top: 12px; }
.step-now { display: none; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: -6px; }
@media (max-width: 520px) { .steps li { padding-top: 4px; } .steps li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .steps { gap: 3px; } .step-now { display: block; } }

/* ================================================================ AI Agents hub components (2026-11-03) */
.page-head.has-action { max-width: none; }
.note-line { margin: -16px 0 24px; padding: 10px 14px; border-radius: 12px; background: #FFF4EC; color: #8A3B00; font-size: 14px; }
.small { font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; font: 650 16.5px/1.3 var(--display); color: var(--ink); }
.card-note { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.card.needs .card-note { background: var(--yellow); }
.card-more { margin-top: 14px; font-size: 14px; font-weight: 600; }
.card-more a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0, 27, 116, .3); text-underline-offset: 3px; }
.card .rows { border: 0; border-radius: 0; background: none; }
.card .rows .row { padding: 10px 0; }
.card .rows .row + .row { border-top: 1px solid var(--line); }
.grid-2, .grid-3 { display: grid; gap: 16px; margin-top: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 .card + .card, .grid-3 .card + .card { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px 18px; }
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi-k { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.kpi-v { font: 400 34px/1 var(--num); color: var(--ink); margin-top: 4px; letter-spacing: .01em; }
.kpi-s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.big-v { font: 400 72px/.9 var(--num); color: var(--ink); }
.big-s { font-size: 15px; color: var(--ink); max-width: 22ch; line-height: 1.35; }
.muted-light { color: rgba(255, 255, 255, .78); }

/* the agent's living portrait (poster first; the loop fades in once it plays) */
.agent-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.agent-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.agent-right .card + .card { margin-top: 0; }
.hero-card { position: relative; margin: 0; aspect-ratio: 3 / 4.3; border-radius: 22px; overflow: hidden; background: #050A12; isolation: isolate; }
.hero-loop, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-loop { opacity: 0; transition: opacity .6s var(--ease); }
.hero-card.is-playing .hero-loop { opacity: 1; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 18, .35) 0%, rgba(5, 10, 18, 0) 22%, rgba(5, 10, 18, 0) 52%, rgba(5, 10, 18, .88) 100%); z-index: 1; pointer-events: none; }
.c-leo { box-shadow: 0 18px 50px -24px rgba(70, 224, 163, .55); }
.c-iris { box-shadow: 0 18px 50px -24px rgba(157, 140, 255, .6); }
.c-quinn { box-shadow: 0 18px 50px -24px rgba(143, 163, 176, .6); }
.hero-top { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; align-items: center; }
.hpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(5, 10, 18, .55); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-pause { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(5, 10, 18, .55); color: #fff; cursor: pointer; }
.hero-pause svg { width: 15px; height: 15px; }
.hero-cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.hero-name { font: 500 44px/1 var(--head); }
.hero-role { font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.hero-now { display: flex; gap: 8px; align-items: baseline; margin-top: 10px; font-size: 13.5px; line-height: 1.4; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-3); }
.d-leo { background: var(--leo); } .d-iris { background: var(--iris); } .d-quinn { background: var(--quinn); }
.hero-card .dot { transform: translateY(-1px); }

/* home: the team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: none; transition: border-color .15s, transform .2s var(--ease); }
.team-card:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-1px); }
.team-face { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: #050A12; }
.team-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team-name { font: 500 28px/1 var(--head); }
.team-role { font-size: 13px; color: var(--ink-2); }
.team-now { display: flex; gap: 6px; align-items: baseline; margin-top: 6px; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.team-stat { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* lists */
.feed, .mini, .lrows, .mir { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 220px); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed li:first-child { border-top: 0; }
.feed-job { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.mini li:first-child { border-top: 0; }
.mini li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lrows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.card .lrows { border: 0; }
.lrow { display: flex; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.lrow:first-child { border-top: 0; }
.card .lrow { padding: 12px 0; }
.lrow-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 3px; font-size: 13px; }
.lrow-top b { font-weight: 650; }
.chip-row { margin: 8px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Quinn */
.mixbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin-bottom: 10px; }
.mx { display: inline-block; height: 12px; }
.mx-ship { background: var(--ok); } .mx-fix { background: #E8A33D; } .mx-recapture { background: #6C7BD8; } .mx-escalate { background: var(--err); }
.w1 { flex: 1; } .w2 { flex: 2; } .w3 { flex: 3; } .w4 { flex: 4; } .w5 { flex: 5; } .w6 { flex: 6; } .w7 { flex: 7; } .w8 { flex: 8; } .w9 { flex: 9; } .w10 { flex: 10; }
.w11 { flex: 11; } .w12 { flex: 12; } .w13 { flex: 13; } .w14 { flex: 14; } .w15 { flex: 15; } .w16 { flex: 16; } .w17 { flex: 17; } .w18 { flex: 18; } .w19 { flex: 19; } .w20 { flex: 20; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .mx { width: 10px; height: 10px; border-radius: 3px; }
.mir { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.mir-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.mir-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.mir-id { font: 400 20px/1 var(--num); color: var(--ink); }
.mir-el { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.mir-dl { margin: 10px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 13.5px; }
.mir-dl dt { color: var(--ink-2); }
.mir-dl dd { margin: 0; overflow-wrap: anywhere; }

/* Brain */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.layer { padding: 18px 20px; border-radius: 16px; }
.layer b { display: block; font: 500 26px/1.1 var(--head); margin-bottom: 6px; }
.layer p { font-size: 14px; }
.l-co { background: var(--ink); color: #fff; }
.l-own { background: var(--accent-soft); color: var(--ink); }
.layer-faces { display: flex; gap: 6px; margin-top: 10px; }
.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.shelf-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.shelf-card:hover { text-decoration: none; border-color: var(--line-2); }
.shelf-name { font-weight: 650; }
.shelf-n { font: 400 26px/1 var(--num); }
.shelf-card .faint { grid-column: 1 / -1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lflow li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.lf-n { grid-row: span 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.lf-v { font: 400 34px/1 var(--num); }
.lflow .faint { font-size: 12.5px; }
.flow-card { margin-bottom: 16px; }

@media (max-width: 1199px) {
  .agent-top { grid-template-columns: 260px minmax(0, 1fr); }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-card { grid-template-columns: 72px minmax(0, 1fr); }
  .team-face { width: 72px; height: 72px; }
  .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .page-head h1 { font-size: 40px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .agent-top { grid-template-columns: minmax(0, 1fr); }
  .hero-card { aspect-ratio: 1 / 1.08; }
  .grid-2, .layers, .lflow { grid-template-columns: minmax(0, 1fr); }
  .feed li { grid-template-columns: 76px minmax(0, 1fr); }
  .feed-job { grid-column: 2; }
  .big-v { font-size: 60px; }
}
@media (max-width: 599px) {
  .page-head h1 { font-size: 36px; }
  .card { padding: 16px; }
  .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-name { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-loop, .team-card { transition: none; }
}
