/* Superbay · Endpaper, round 2 · components that live inside Claude and ChatGPT.
   Structure is the host's: its text colours, its hairlines, its radii, its sans.
   Identity is ours, in small deliberate places: Literata for the one sentence that matters, a person's ink drop, the mark's drop. */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/literata-roman.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 300 600; font-display: swap; src: url(/fonts/literata-italic.woff2) format("woff2"); }

:root { color-scheme: light dark; }
html, body { margin: 0; background: transparent; }

.sb {
  /* ── structure: the host's tokens first, ChatGPT-like fallbacks second ── */
  --sb-text: var(--color-text-primary, light-dark(#0D0D0D, #ECECEC));
  --sb-text-2: var(--color-text-secondary, light-dark(#5D5D5D, #B4B4B4));
  --sb-text-3: var(--color-text-tertiary, light-dark(#8F8F8F, #8C8C8C));
  --sb-line: var(--color-border-tertiary, light-dark(rgba(13,13,13,.10), rgba(255,255,255,.10)));
  --sb-line-2: var(--color-border-secondary, light-dark(rgba(13,13,13,.16), rgba(255,255,255,.16)));
  --sb-line-3: var(--color-border-primary, light-dark(rgba(13,13,13,.24), rgba(255,255,255,.24)));
  --sb-fill: var(--color-background-secondary, light-dark(#F4F4F4, #2F2F2F));
  --sb-inv: var(--color-background-inverse, light-dark(#0D0D0D, #ECECEC));
  --sb-on-inv: var(--color-text-inverse, light-dark(#FFFFFF, #0D0D0D));
  --sb-hair: var(--border-width-regular, 1px);
  --sb-r: var(--border-radius-md, 10px);
  --sb-r-btn: var(--border-radius-lg, 999px);
  --sb-r-lg: var(--border-radius-xl, 14px);
  --sb-sans: var(--font-sans, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif);
  --sb-w: var(--font-weight-normal, 400);
  --sb-w-em: var(--font-weight-semibold, 600);

  /* three sizes: heading, body, caption */
  --sb-h: var(--font-text-lg-size, 20px);
  --sb-b: var(--font-text-sm-size, 14px);
  --sb-c: var(--font-text-xs-size, 12px);

  /* ── identity: ours, small and deliberate ── */
  --sb-serif: "Literata", ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sb-ink: light-dark(#2B39A8, #A9B3FF);       /* bay indigo: new, and nothing else (the drops, a count) */
  --sb-steel: light-dark(#334155, #C3CAD9);     /* every card's light, focus: no colour says who sees */
  --sb-madder: light-dark(#B0284F, #F08AA4);    /* the sealed world */
  --sb-ochre: light-dark(#946000, #E9B95A);     /* a note in your name, the out-of-date mark */
  --sb-verdigris: light-dark(#1C7065, #66CBBB); /* words for your profile, "from you" */
  --sb-mark: light-dark(rgba(233,170,60,.30), rgba(233,170,60,.26)); /* the band under an out-of-date value */
  --sb-wash: light-dark(rgba(43,57,168,.07), rgba(169,179,255,.10)); /* a block just changed */

  /* motion */
  --sb-out: cubic-bezier(.23, 1, .32, 1);
  --sb-io: cubic-bezier(.77, 0, .175, 1);

  font-family: var(--sb-sans);
  font-size: var(--sb-b);
  font-weight: var(--sb-w);
  line-height: 1.45;
  color: var(--sb-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  container-type: inline-size;
  position: relative;
  padding: 2px 0 4px;
}
/* ChatGPT asks for system fonts: the identity face falls back to the platform's serif */
.sb.host-chatgpt { --sb-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif; }
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb p { margin: 0; }
:where(.sb) button { font: inherit; color: inherit; }
.sb ::selection { background: var(--sb-mark); }

/* ── the masthead: first on every card, the Superbay mark alone, and at its right end what acts on the whole card. It
   says no audience (round 3, Milan, 3 Nov 2026): a card is its user's, and who else sees a part of it is said on that
   part (.sees). The sealed envelope keeps its capsule, the rings first. ── */
.lane { display: flex; align-items: center; gap: 6px; font-size: var(--sb-c); line-height: 16px; color: var(--sb-text-3); min-height: 24px; }
.lane .lm { display: block; width: 16px; height: 16px; flex: none; color: var(--sb-text); opacity: .86; }
.lane .lm .arch, .lane .lm .dd { fill: currentColor; }
.lane b { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--sb-w-em); color: var(--sb-text-2); }
.lane i { font-style: normal; }
.lane i::before { content: "·"; margin-right: 6px; }
.lane .x { margin-left: auto; }
.lane[data-l="sealed"] { --lane: var(--sb-madder); }
.lane .sgn { width: 14px; height: 14px; flex: none; color: var(--sb-madder); }

/* ── who else sees it: the eye (someone besides you sees this, or will once you tap), the lock (only you, said only
   beside something that looks shared), the rings (nobody, unless it's mutual), each with the words that name who.
   Nothing when it's only you. Shape and words: no colour says who sees, no motion ── */
.sees { display: flex; align-items: flex-start; gap: 6px; font-size: var(--sb-c); line-height: 16px; color: var(--sb-text-2); font-weight: var(--sb-w); margin: 0 0 6px; text-wrap: pretty; }
span.sees { display: inline-flex; margin: 0; vertical-align: top; }
.sees > .sgn { width: 14px; height: 14px; flex: none; transform: translateY(1px); }
.sees > .sw { min-width: 0; }
.sees b { color: var(--sb-text); font-weight: var(--sb-w-em); }
.sees[data-k="lock"] { color: var(--sb-text-3); }
.sees[data-k="lock"] b { color: var(--sb-text-2); }
.sees[data-k="rings"] > .sgn { color: var(--sb-madder); }
h3 .sees { margin-left: 8px; }
.draft > .sees:first-child { margin: 0 0 8px; }

/* ── the heading: the one sentence that matters now (set by focus) ── */
.hd { font-family: var(--sb-serif); font-size: var(--sb-h); line-height: 1.3; font-weight: 400; font-variation-settings: "opsz" 24; letter-spacing: -.006em; margin: 10px 0 0; text-wrap: pretty; max-width: 34em; }
.hd em { font-style: italic; }
.hd mark, .t mark { background: linear-gradient(transparent 58%, var(--sb-mark) 58%, var(--sb-mark) 94%, transparent 94%); color: inherit; padding: 0 1px; }
.hd .n { font-variant-numeric: lining-nums tabular-nums; }

/* ── a person: their drop of ink and their name ── */
.who { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-width: 0; }
.drop { width: 32px; height: 32px; border-radius: 50%; flex: none; display: block; background: var(--sb-fill); }
.drop.s { width: 24px; height: 24px; }
.drop.l { width: 40px; height: 40px; }
.who .nm { font-weight: var(--sb-w-em); line-height: 1.25; }
.who .nm.serif { font-family: var(--sb-serif); font-weight: 400; font-size: var(--sb-h); font-variation-settings: "opsz" 24; letter-spacing: -.006em; }
.who .sub { font-size: var(--sb-c); color: var(--sb-text-3); line-height: 1.35; }
.who > div { min-width: 0; }

/* ── rows: one fact, prediction or search each; one verb, right-aligned ── */
.rows { list-style: none; margin: 12px 0 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 9px 0; border-top: var(--sb-hair) solid var(--sb-line); min-height: 44px; }
.row:last-child { border-bottom: var(--sb-hair) solid var(--sb-line); }
.row .t { line-height: 1.4; text-wrap: pretty; }
.row .m { grid-column: 1; font-size: var(--sb-c); color: var(--sb-text-3); line-height: 1.35; margin-top: 1px; font-variant-numeric: tabular-nums; }
.row .v { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; align-items: center; }
.row .q { font-family: var(--sb-serif); font-style: italic; }
.row .pct { font-weight: var(--sb-w-em); font-variant-numeric: tabular-nums; }
.row.flash { animation: sb-wash 1600ms var(--sb-out); }
@keyframes sb-wash { 0% { background: var(--sb-wash); } 100% { background: transparent; } }
@container (max-width: 440px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .v { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

/* ── the folded rest ── */
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-top: 10px; font-size: var(--sb-c); color: var(--sb-text-3); }
.more span + span::before { content: "·"; margin: 0 6px; }

/* ── actions: at most two, at the bottom ── */
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.b { appearance: none; border: 0; cursor: pointer; min-height: 34px; padding: 0 14px; border-radius: var(--sb-r-btn); font-family: var(--sb-sans); font-size: var(--sb-b); font-weight: var(--sb-w-em); line-height: 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  background: var(--sb-inv); color: var(--sb-on-inv); transition: transform 120ms var(--sb-out), background-color 160ms, box-shadow 160ms, opacity 160ms; }
.b:active { transform: scale(.97); }
.b .h { font-weight: var(--sb-w); opacity: .7; }
.b.o { background: transparent; color: var(--sb-text); box-shadow: inset 0 0 0 var(--sb-hair) var(--sb-line-3); }
.b.o:hover { box-shadow: inset 0 0 0 var(--sb-hair) var(--sb-text-3); }
.b.s { min-height: 28px; padding: 0 11px; font-size: var(--sb-c); }
.b.seal { background: var(--sb-madder); color: #fff; }
.b:focus-visible, .lnk:focus-visible, .ic:focus-visible, .seg button:focus-visible { outline: 2px solid var(--sb-steel); outline-offset: 2px; }
.lnk { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--sb-c); font-weight: var(--sb-w-em); color: var(--sb-text-2); text-decoration: underline; text-decoration-color: var(--sb-line-3); text-underline-offset: 3px; min-height: 28px; }
/* the one fold control: a disc with a chevron; a folded fold's words end on the same chevron */
.ic { appearance: none; border: 0; background: transparent; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--sb-text-2); margin: -3px 0; box-shadow: inset 0 0 0 var(--sb-hair) var(--sb-line-3); }
.ic:hover { background: var(--sb-fill); box-shadow: inset 0 0 0 var(--sb-hair) var(--sb-text-3); }
.ic svg { width: 14px; height: 14px; }
.b .chev { width: 12px; height: 12px; flex: none; margin-right: -3px; opacity: .7; }
@media (pointer: coarse) { .b { min-height: 44px; } .b.s { min-height: 36px; } .ic { width: 44px; height: 44px; } }

/* states after a tap */
.done { font-size: var(--sb-c); font-weight: var(--sb-w-em); color: var(--sb-text-2); display: inline-flex; align-items: center; gap: 6px; }
.done::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lane, var(--sb-steel)); }
.eff { font-size: var(--sb-c); color: var(--sb-text-2); margin-top: 8px; padding-left: 12px; position: relative; line-height: 1.45; }
.eff::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--lane, var(--sb-verdigris)); }
.from { color: var(--sb-verdigris); font-weight: var(--sb-w-em); }
.was { color: var(--sb-text-3); position: relative; white-space: nowrap; }
.was svg { position: absolute; left: -1px; top: 50%; height: 8px; width: calc(100% + 2px); transform: translateY(-45%); overflow: visible; }
.was path { fill: none; stroke: var(--sb-madder); stroke-width: 1.4; stroke-linecap: round; }

/* the exact words before a profile write */
.draft { margin-top: 10px; padding: 12px 14px; border-radius: var(--sb-r); box-shadow: inset 0 0 0 var(--sb-hair) var(--sb-line-2); }
.draft .w { font-family: var(--sb-serif); font-size: 16px; line-height: 1.4; margin: 6px 0 10px; font-variation-settings: "opsz" 18; }

/* count first */
.drops { display: inline-flex; gap: 3px; vertical-align: 2px; margin-left: 8px; }
.drops i { width: 6px; height: 6px; border-radius: 50%; background: var(--sb-ink); display: block; }
.drops i.o { background: none; box-shadow: inset 0 0 0 1px var(--sb-text-3); }
.drops.land i { animation: sb-land 520ms var(--sb-out) both; animation-delay: calc(var(--i, 0) * 70ms + 260ms); }
@keyframes sb-land { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }

/* segmented control */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--sb-r-btn); box-shadow: inset 0 0 0 var(--sb-hair) var(--sb-line-2); }
.seg button { appearance: none; border: 0; background: none; cursor: pointer; height: 26px; padding: 0 10px; border-radius: var(--sb-r-btn); font-size: var(--sb-c); font-weight: var(--sb-w-em); color: var(--sb-text-3); white-space: nowrap; transition: background-color 160ms, color 160ms; }
.seg button[aria-pressed="true"] { background: var(--sb-fill); color: var(--sb-text); }
@media (pointer: coarse) { .seg button { height: 36px; } }

/* tiles (Your week) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tile { appearance: none; border: 0; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: var(--sb-r); background: var(--sb-fill); color: inherit; font: inherit; display: grid; gap: 2px; transition: transform 120ms var(--sb-out); }
.tile:active { transform: scale(.98); }
.tile .k { font-family: var(--sb-serif); font-size: var(--sb-h); line-height: 1.1; font-variant-numeric: lining-nums; }
.tile .l { color: var(--sb-text-2); }
.tile .g { font-size: var(--sb-c); font-weight: var(--sb-w-em); color: var(--sb-text); margin-top: 6px; }

/* the sealed card: an envelope, unlike every other card */
.env { --sb-text: #F4EFF1; --sb-text-2: rgba(244,239,241,.78); --sb-text-3: rgba(244,239,241,.56); --sb-line: rgba(244,239,241,.12); --sb-line-2: rgba(244,239,241,.2); --sb-line-3: rgba(244,239,241,.34); --sb-fill: rgba(244,239,241,.08);
  --sb-inv: #F4EFF1; --sb-on-inv: #151A3A; --sb-madder: #F08AA4;
  background: #151A3A; color: var(--sb-text); border-radius: var(--sb-r-lg); padding: 14px 16px 16px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(244,239,241,.06); }
.env .lane b { color: #F4A8BB; }
.env ol { list-style: none; counter-reset: k; margin: 10px 0 0; padding: 0; }
.env ol li { counter-increment: k; display: grid; grid-template-columns: 18px 1fr; padding: 4px 0; line-height: 1.45; }
.env ol li::before { content: counter(k); font-family: var(--sb-serif); font-style: italic; color: #F4A8BB; }
.env .met { margin-top: 10px; font-size: var(--sb-c); color: var(--sb-text-2); }
.env .met i { font-family: var(--sb-serif); font-size: var(--sb-b); color: var(--sb-text); }
.env .warn { margin-top: 8px; font-size: var(--sb-c); color: #EFC36B; }
.env .b.seal { background: #C83A62; color: #fff; }
.env::after { /* the flap: one fold line, drawn when sealed */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(244,239,241,.22) 50%, transparent calc(50% + .5px)) left / 50.1% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - .5px), rgba(244,239,241,.22) 50%, transparent calc(50% + .5px)) right / 50.1% 100% no-repeat;
  clip-path: inset(0 50% 100% 50%); transition: clip-path 520ms var(--sb-io); }
.env.closed::after { clip-path: inset(0 0 0 0); }
.wax { width: 32px; height: 32px; flex: none; display: block; }
.wax.press { animation: sb-wax 620ms var(--sb-out) both; }
@keyframes sb-wax { 0% { transform: scale(1.3) rotate(-12deg); filter: blur(2px); opacity: 0; } 55% { transform: scale(.94) rotate(2deg); filter: blur(0); opacity: 1; } 100% { transform: none; } }
.dots { letter-spacing: .18em; color: var(--sb-text-2); }

/* detail (in place, or fullscreen) */
.sec { margin-top: 18px; }
.sec h3 { font-size: var(--sb-b); font-weight: var(--sb-w-em); margin: 0; }
.sec .cap { font-size: var(--sb-c); color: var(--sb-text-3); }

/* ── motion ── */
.in { opacity: 0; filter: blur(4px); transform: translateY(4px); }
.in.on { opacity: 1; filter: none; transform: none; transition: opacity 420ms var(--sb-out), filter 420ms var(--sb-out), transform 420ms var(--sb-out); }
.swap-out { opacity: 0 !important; filter: blur(3px); transition: opacity 140ms ease-in, filter 140ms ease-in; }
.sb-ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; opacity: .22; pointer-events: none; animation: sb-rip 560ms var(--sb-out) forwards; z-index: -1; }
@keyframes sb-rip { to { transform: scale(18); opacity: 0; } }
.still, .still * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .in { opacity: 1; filter: none; transform: none; }
  .in.on { transition: opacity 160ms linear; }
  .sb-ripple, .drops.land i, .row.flash, .wax.press { animation: none; }
  .env::after { transition: none; }
}

/* the mark inside a card: only at It's mutual, two drops arriving in one bay */
.sbmark { display: block; width: 100%; height: 100%; }
.sbmark .arch { fill: currentColor; }
.sbmark .dd { fill: var(--sb-ink); }
.sbmark .dl { fill: var(--sb-madder); }
.sbmark .dr { fill: var(--sb-ochre); }
.mm { width: 56px; height: 56px; flex: none; color: var(--sb-text); display: block; }
.mm.play .arch { animation: sb-arch 560ms var(--sb-io) both; }
.mm.play .dl { animation: sb-dl 620ms var(--sb-out) 420ms both; }
.mm.play .dr { animation: sb-dr 620ms var(--sb-out) 520ms both; }
@keyframes sb-arch { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sb-dl { from { transform: translate(-3px, -9px) scale(.6); opacity: 0; } 70% { transform: translate(0, .4px) scale(1.04, .96); opacity: 1; } to { transform: none; } }
@keyframes sb-dr { from { transform: translate(3px, -9px) scale(.6); opacity: 0; } 70% { transform: translate(0, .4px) scale(1.04, .96); opacity: 1; } to { transform: none; } }
.sbmark circle { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .mm.play .arch, .mm.play .dl, .mm.play .dr { animation: none; } }

/* the page around a card when no host draws it (opened directly) */
body.h-none { padding: 32px 24px; max-width: 760px; margin: 0 auto; }
body.h-chatgpt { padding: 14px 16px; }
body.h-claude { padding: 2px 0 6px; }

@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: block; src: url(/fonts/bricolage-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: block; src: url(/fonts/bricolage-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: light-dark(#E8E6E0, #141412); --fg: light-dark(#1A1A17, #EDEBE4); --fg2: light-dark(rgba(26,26,23,.72), rgba(237,235,228,.72)); --fg3: light-dark(#8E8C86, #85837C);
  --line: light-dark(rgba(26,26,23,.12), rgba(237,235,228,.12)); --line-2: light-dark(rgba(26,26,23,.2), rgba(237,235,228,.2)); --line-3: light-dark(rgba(26,26,23,.32), rgba(237,235,228,.32));
  --fill: light-dark(#F1EFEA, #22211E); --ink: var(--fg); --on-fg: light-dark(#FBFAF6, #141412);
  --verdigris: light-dark(#1C7065, #66CBBB); --ochre: light-dark(#946000, #E9B95A); --madder: light-dark(#B0284F, #F08AA4);
  --wash: color-mix(in srgb, var(--fg) 6%, transparent);
  --serif: "Literata", ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: "Bricolage", ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --out: cubic-bezier(.23, 1, .32, 1); --io: cubic-bezier(.77, 0, .175, 1);
  /* the cards read these as if a host passed them */
  --color-text-primary: var(--fg); --color-text-secondary: var(--fg2); --color-text-tertiary: var(--fg3);
  --color-border-tertiary: var(--line); --color-border-secondary: var(--line-2); --color-border-primary: var(--line-3);
  --color-background-secondary: var(--fill); --color-background-inverse: var(--fg); --color-text-inverse: var(--bg); --border-width-regular: .5px;
  /* the names the send page and Share were written with, in this system */
  --mm-ink: var(--fg); --mm-ink-2: var(--fg2); --mm-paper: var(--bg); --mm-hair: var(--line); --mm-rule: var(--line-2); --mm-faint: var(--line-3);
  --mm-orange: var(--ink); --mm-orange-ink: var(--ink); --mm-wash: var(--wash); --mm-wash-live: var(--wash);
  --mm-serif: var(--sans); --mm-sans: var(--sans);
  --mm-fs-h3: 20px; --mm-fs-lead: 17px; --mm-fs-fact: 14px; --mm-fs-note: 14.5px; --mm-fs-det: 13px; --mm-fs-cite: 12px; --mm-fs-tag: 10.5px;
  --mm-r: 10px; --mm-r-btn: 999px; --mm-btn-h: 44px; --mm-btn-h-2: 38px; --mm-hit-h: 36px; --mm-bleed: 8px;
  --mm-ease-out: var(--out); --mm-ease-io: var(--io);
  --mm-dur-row: 420ms; --mm-dur-line: 520ms; --mm-dur-stamp: 300ms; --mm-dur-wash: 1600ms; --mm-dur-live: 1400ms; --mm-dur-press: 120ms; --mm-dur-hover: 160ms;
}
html[data-t="light"] { color-scheme: light; } html[data-t="dark"] { color-scheme: dark; }
html { background: var(--bg); color: var(--fg); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; border-radius: 10px; background: var(--fg); color: var(--bg); text-decoration: none; font-size: 14px; }
.skip:focus { left: 16px; }
body { margin: 0; font: 16px/1.55 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
/* A chat's button on the pages that open the chat (handoff.ts): its logo, no underline. */
.handoff a.b { text-decoration: none; }
.handoff .b > svg.lg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.sheet .hd + .handoff { margin-top: 20px; }
.handoff .lede { margin: 0; color: var(--sb-text-2); }
.handoff .ask { margin: 6px 0 22px; font-family: var(--sb-serif, Georgia, serif); font-size: 1.3em; line-height: 1.35; text-wrap: balance; }
.handoff .acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 360px; }
.handoff .acts .b { justify-content: center; min-height: 48px; font-size: 16px; gap: 10px; }
.handoff .fine { margin-top: 16px; max-width: 360px; font-size: .9em; color: var(--sb-text-2); }
.handoff .fine.already a { display: inline-block; padding: 12px 0; color: var(--sb-text-1, inherit); text-underline-offset: 3px; }
.handoff .fine.already { line-height: 1.2; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--ink) 22%, transparent); }

/* ---------- the frame: the wordmark, a column, the footer ---------- */
.site { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.site > header, .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site > header { padding-top: clamp(12px, 2vw, 28px); }
.wm { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); min-height: 44px; }
.wm svg { width: 21px; height: 21px; }
.wm span { font: 640 19px/1 var(--sans); letter-spacing: -.025em; font-variation-settings: "opsz" 24; }
/* beta, beside the wordmark (the home's): small, in the ink's light, never louder than the name */
.wm span.beta { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent); margin-left: -2px; }
.mark .arch, .wm .arch { fill: currentColor; } .mark .dd, .wm .dd { fill: var(--ink); }
.site > header nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.site > header nav a { text-decoration: none; color: var(--fg2); }
#root { padding: 24px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
footer.foot { margin-top: 96px; padding: 0 0 24px; font-size: 13px; font-weight: 450; color: var(--fg2); display: flex; justify-content: center; flex-wrap: wrap; column-gap: 24px; }
footer.foot a { text-decoration: none; color: var(--fg2); padding: 10px 2px; }
@media (hover: hover) and (pointer: fine) { footer.foot a:hover, .site > header nav a:hover { color: var(--fg); } }
footer.foot .entity { flex-basis: 100%; }

/* Add to ChatGPT and Add to Claude, the home's two capsules */
.hb { text-decoration: none;  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px 0 20px; border-radius: 999px; font-size: 16px; font-weight: 580; letter-spacing: -.012em; white-space: nowrap;
  transition: box-shadow .3s var(--out), transform .18s var(--out); -webkit-tap-highlight-color: transparent; }
.hb svg { flex: none; width: 19px; height: 19px; fill: currentColor; }
.hb:active { transform: scale(.975); }
.hb:hover { transform: translateY(-1px); }
/* the cards' two capsules (src/view-style.ts): the first a lacquer in ink with a line of light on its upper edge, the
   second glass */
.hb.p { color: var(--on-fg);
  background: linear-gradient(180deg, light-dark(color-mix(in srgb, var(--fg) 86%, white), color-mix(in srgb, var(--fg) 78%, white)), var(--fg) 55%, light-dark(color-mix(in srgb, var(--fg) 78%, black), color-mix(in srgb, var(--fg) 90%, black)));
  box-shadow: inset 0 1px 0 light-dark(rgba(243, 227, 190, .3), rgba(255, 255, 255, .38)), inset 0 0 0 1px color-mix(in srgb, var(--fg) 80%, black), 0 1px 2px light-dark(rgba(28, 26, 23, .3), rgba(0, 0, 0, .3)), 0 6px 14px -8px light-dark(rgba(28, 26, 23, .5), rgba(0, 0, 0, .6)); }
.hb.p:hover { box-shadow: inset 0 1px 0 light-dark(rgba(243, 227, 190, .3), rgba(255, 255, 255, .38)), inset 0 0 0 1px color-mix(in srgb, var(--fg) 80%, black), 0 1px 2px light-dark(rgba(28, 26, 23, .3), rgba(0, 0, 0, .3)), 0 10px 20px -8px light-dark(rgba(28, 26, 23, .6), rgba(0, 0, 0, .7)); }
.hb.s { color: var(--fg); background: linear-gradient(180deg, light-dark(#FFFFFF, rgba(255, 255, 255, .13)), light-dark(#F7F6F2, rgba(255, 255, 255, .075)));
  box-shadow: inset 0 1px 0 light-dark(#FFFFFF, rgba(255, 255, 255, .09)), inset 0 0 0 1px light-dark(rgba(48, 36, 20, .13), rgba(255, 255, 255, .1)), 0 1px 2px light-dark(rgba(40, 30, 15, .05), rgba(0, 0, 0, .22)), 0 3px 8px -5px light-dark(rgba(40, 30, 15, .1), rgba(0, 0, 0, .3)); }
.hb.s:hover { box-shadow: inset 0 1px 0 light-dark(#FFFFFF, rgba(255, 255, 255, .09)), inset 0 0 0 1px light-dark(rgba(48, 36, 20, .16), rgba(255, 255, 255, .14)), 0 1px 2px light-dark(rgba(40, 30, 15, .05), rgba(0, 0, 0, .22)), 0 6px 14px -5px light-dark(rgba(40, 30, 15, .14), rgba(0, 0, 0, .4)); }
/* ---------- type: Literata for the one sentence that matters, the sans for the rest ---------- */
:where(#root) h1, :where(#root) h2, :where(#root) h3 { font-family: var(--sans); font-weight: 400; color: var(--fg); text-wrap: balance; margin: 0; }
:where(#root) h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; font-variation-settings: "opsz" 96; }
:where(#root) h2 { font-size: clamp(26px, 3.6vw, 32px); font-weight: 340; line-height: 1.12; letter-spacing: -.025em; font-variation-settings: "opsz" 48; }
:where(#root) h3 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; font-variation-settings: "opsz" 24; }
:where(#root) h1.mm-name { font-size: clamp(36px, 5.4vw, 52px); }
:where(#root) p { margin: 0; }
:where(#root) > p:not(.mut):not(.notice):not(.eyebrow):not(.det) { font-size: 17px; line-height: 1.6; color: var(--fg2); max-width: 36em; text-wrap: pretty; }
:where(#root) .mut { color: var(--fg2); margin: 0; }
:where(#root) > p.mut { font-size: 16px; line-height: 1.6; max-width: 38em; text-wrap: pretty; }
:where(#root) .why { color: var(--fg2); font-size: 14.5px; line-height: 1.55; margin: 0; text-wrap: pretty; }
:where(#root) .det, :where(#root) .small { display: block; font-size: 13px; line-height: 1.5; color: var(--fg3); }
:where(#root) .note { display: block; font-size: 12px; font-weight: 600; color: var(--fg2); margin: 8px 0 0; }
/* the eyebrow: what this is, in 600. No drop before it: a page agents read has no audience mark (round 3, Milan,
   3 Nov 2026), and the drop was the cards' old lane */
:where(#root) .eyebrow { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--fg); letter-spacing: 0; text-transform: none; }
:where(#root) a.src, :where(#root) span.src { font-size: 12px; color: var(--fg3); text-decoration: underline .5px var(--line-3); text-underline-offset: 3px; overflow-wrap: anywhere; }
:where(#root) span.src { text-decoration: none; }
:where(#root) .profiles { font-size: 14px; color: var(--fg2); }
:where(#root) .profiles a.src { font-size: 14px; color: var(--fg); }

/* a person: their drop, then their name in Literata */
.pp-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* the person's mark (GLASS.md, Person mark): initials on an onyx enamel disc, never a painting */
.pp-drop { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none; background: linear-gradient(165deg, #4B4540, #191614);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.25), 0 6px 14px -8px rgba(0,0,0,.45); }
.pp-drop::after { content: attr(data-i); font: 600 19px/1 var(--sans); letter-spacing: .03em; color: #F6EEDF; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
/* their picture when Superbay holds one, as on the cards (GLASS.md): silver, the ink's tint over it */
.pp-pic { position: relative; overflow: hidden; isolation: isolate; background: var(--fill); box-shadow: 0 0 0 1px var(--line); }
.pp-pic > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.06) brightness(1.02); }
.pp-pic::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 28%, transparent); mix-blend-mode: color; text-shadow: none; }
@media (max-width: 560px) { .pp-drop { width: 44px; height: 44px; } .pp-drop::after { font-size: 16px; } }

/* ---------- a page written for agents (src/web/public.ts): a person gets one quiet strip, agents the document ---------- */
:where(#root) .hu { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 24px; padding: 0 0 16px; border-bottom: .5px solid var(--line-2); }
:where(#root) .hu-tag { grid-column: 1; display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); }
:where(#root) .hu-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--fg); animation: hu-blink 1.6s ease-in-out infinite; }
@keyframes hu-blink { 50% { opacity: .2; } }
:where(#root) .hu-p { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg3); text-wrap: pretty; }
:where(#root) .hu-p b { font-weight: 550; color: var(--fg2); }
:where(#root) .hu-p .hu-s { display: block; }
:where(#root) .hu-p .hu-s + b { display: block; margin-top: 8px; }
:where(#root) .hu-cta { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
:where(#root) .hu-cta .hb { height: 32px; padding: 0 12px 0 10px; gap: 6px; font-size: 12.5px; font-weight: 560; }
:where(#root) .hu-cta .hb svg { width: 13px; height: 13px; }
/* the agents' document, set as its markdown would read: the marks (#, ##, -, key:) in a gutter of their own */
:where(#root) .ag { border-radius: 12px; background: light-dark(#F4F3EF, #1A1A17); box-shadow: inset 0 0 0 .5px var(--line-2); min-width: 0; }
:where(#root) .ag-head { position: relative; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 11px 22px 11px 64px; border-bottom: .5px solid var(--line); font: 450 11px/1.4 var(--mono); letter-spacing: .02em; color: var(--fg3); }
:where(#root) .ag-head::before { content: "---"; content: "---" / ""; position: absolute; left: 22px; color: var(--line-3); }
:where(#root) .ag-head > :not(:last-child)::after { content: "·"; display: inline-block; padding: 0 7px; color: var(--line-3); text-decoration: none; }
:where(#root) .ag-head .ag-for { font-weight: 600; color: var(--fg); text-transform: uppercase; letter-spacing: .08em; }
:where(#root) .ag-head a { color: inherit; text-decoration: underline 1px var(--line-3); text-underline-offset: 3px; }
/* a person's page: what any agent does here, on its own line in the head (spec v3) */
:where(#root) .ag-head .ag-help { flex-basis: 100%; margin: 3px 0 0; letter-spacing: 0; color: var(--fg2); }
:where(#root) .ag-head .ag-help b { font-weight: 600; color: var(--fg); }
:where(#root) .ag-head > :has(+ .ag-help)::after { content: none; }
:where(#root) .ag-body { position: relative; display: grid; gap: 16px; padding: 24px 28px 30px 64px; min-width: 0; }
:where(#root) .ag-body::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; border-left: .5px dashed var(--line-2); }
:where(#root) .ag .pp-who, :where(#root) .ag-body > h1, :where(#root) .ag .card > h3, :where(#root) .ag .items > li { position: relative; }
:where(#root) .ag .pp-who::before, :where(#root) .ag-body > h1::before, :where(#root) .ag .card > h3::before, :where(#root) .ag .items > li::before { position: absolute; right: calc(100% + 26px); font: 400 13px/1 var(--mono); color: var(--fg3); white-space: nowrap; }
:where(#root) .ag .pp-who::before, :where(#root) .ag-body > h1::before { content: "#"; content: "#" / ""; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--fg2); }
:where(#root) .ag .card > h3::before { content: "##"; content: "##" / ""; top: .55em; }
:where(#root) .ag .items > li::before { content: "-"; content: "-" / ""; top: 14px; }
:where(#root) .ag ol.items > li::before { counter-increment: none; content: "-"; content: "-" / ""; left: auto; top: 14px; font: 400 13px/1 var(--mono); }
/* the head of the document: the eyebrow as front matter; the name stays the page's one big line, its h1 */
:where(#root) .ag .eyebrow { font: 450 12px/1.4 var(--mono); color: var(--fg3); letter-spacing: 0; }
:where(#root) .ag .pp-drop { width: 46px; height: 46px; } :where(#root) .ag .pp-drop::after { font-size: 16px; }
:where(#root) .ag .card { border-top: 0; padding-top: 22px; gap: 6px; }
:where(#root) .ag .card > h3 { font-size: 18px; font-weight: 550; }
:where(#root) .ag .items > li, :where(#root) .ag .card > .items > li:first-child { border-top: 0; padding: 9px 0; }
:where(#root) .ag .card .items > li > b { font: 450 12px/1.5 var(--mono); color: var(--fg3); }
:where(#root) .ag .card .items > li > b::after { content: ":"; }
:where(#root) .ag .card .items > li > span:not(.det):not(.src) { font-size: 16px; color: var(--fg); }
:where(#root) .ag a.src, :where(#root) .ag span.src, :where(#root) .ag .card .det { font-family: var(--mono); font-size: 11px; letter-spacing: .01em; }
/* a person in a list (People at Leadbay) and the profiles' line are names, not sources */
:where(#root) .ag .card .items > li > a.src:first-child, :where(#root) .ag .profiles a.src { font-family: var(--sans); font-weight: 500; font-size: inherit; color: var(--fg); letter-spacing: -.005em; }
:where(#root) .ag .card .items > li > a.src:first-child { font-size: 16px; }
/* a section's link row is a line under its rows */
:where(#root) .ag .card > .row { padding: 0; min-height: 0; margin-top: 4px; }
@media (max-width: 560px) {
  :where(#root) .hu { grid-template-columns: minmax(0, 1fr); padding: 0 0 14px; }
  :where(#root) .hu-cta { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  :where(#root) .hu-cta .hb { flex: 1; justify-content: center; height: 44px; font-size: 13.5px; }
  :where(#root) .ag-head { padding-left: 40px; } :where(#root) .ag-head::before { left: 12px; }
  :where(#root) .ag-body { padding: 24px 16px 24px 40px; }
  :where(#root) .ag-body::before { left: 28px; }
  :where(#root) .ag .pp-who::before, :where(#root) .ag-body > h1::before, :where(#root) .ag .card > h3::before, :where(#root) .ag .items > li::before { right: calc(100% + 18px); font-size: 11px; }
  :where(#root) .ag .pp-who::before, :where(#root) .ag-body > h1::before { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { :where(#root) .hu-tag i { animation: none; } }

/* ---------- sections: no ground of their own, a hairline above, a Literata heading ---------- */
:where(#root) .card { display: grid; gap: 10px; padding: 20px 0 2px; border-top: .5px solid var(--line); min-width: 0; }
:where(#root) .card > h3 + .why, :where(#root) .card > h3 + p { margin-top: -2px; }
:where(#root) .items { list-style: none; margin: 0; padding: 0; }
:where(#root) .items > li { display: grid; gap: 2px; padding: 11px 0; border-top: .5px solid var(--line); font-size: 14px; line-height: 1.45; min-width: 0; }
:where(#root) .items > li:first-child { border-top: 0; }
:where(#root) .card > .items > li:first-child { border-top: .5px solid var(--line); }
:where(#root) .card > h3 + .items > li:first-child { border-top: 0; }
:where(#root) .items > li > b { font-weight: 600; color: var(--fg); }
:where(#root) .items > li > .src { justify-self: start; }
:where(#root) ol.items { counter-reset: n; }
:where(#root) ol.items > li { padding-left: 28px; position: relative; }
:where(#root) ol.items > li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 11px; font: 400 15px/1.4 var(--serif); color: var(--fg3); }

/* ---------- actions: one primary (the host's inverse), outlined others, quiet links ---------- */
:where(#root) .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
:where(#root) button, :where(#root) a.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 38px; padding: 0 16px;
  font: 600 14px/1.2 var(--sans); color: var(--fg); background: transparent; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 .5px var(--line-3);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms var(--out); }
:where(#root) button.go, :where(#root) a.btn.go, :where(#root) .go { background: var(--fg); color: var(--bg); box-shadow: none; min-height: 44px; padding: 0 20px; font-size: 15px; }
:where(#root) button:active, :where(#root) a.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { :where(#root) button:hover, :where(#root) a.btn:hover { box-shadow: inset 0 0 0 .5px var(--fg); }:where(#root) button.go:hover, :where(#root) a.btn.go:hover { background: color-mix(in srgb, var(--fg) 86%, var(--ink)); } }
:where(#root) button:disabled, :where(#root) button[aria-disabled="true"] { opacity: .5; cursor: default; }
:where(#root) .more, :where(#root) button.more, :where(#root) a.more { appearance: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0;
  font: 600 13px/1.3 var(--sans); color: var(--fg2); text-decoration: underline .5px var(--line-3); text-underline-offset: 4px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { :where(#root) .more:hover, :where(#root) button.more:hover { color: var(--fg); box-shadow: none; } }
/* the one fold control (foldDisc, stops.md): Glass's disc with a chevron, as on the chat's cards; 44 px under a thumb */
button.fold { --fold-hi: light-dark(#FFFFFF, rgba(255,255,255,.09)); --fold-line: light-dark(rgba(20,28,60,.1), rgba(255,255,255,.1));
  appearance: none; border: 0; padding: 0; width: 28px; height: 28px; min-height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer; color: var(--fg2);
  background: linear-gradient(180deg, light-dark(#FFFFFF, rgba(255,255,255,.13)), light-dark(#F6F7FB, rgba(255,255,255,.075)));
  box-shadow: inset 0 1px 0 var(--fold-hi), inset 0 0 0 1px var(--fold-line), 0 1px 2px rgba(0,0,0,.08); transition: transform 120ms var(--out), color 160ms ease; }
button.fold svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { button.fold:hover { color: var(--fg); box-shadow: inset 0 1px 0 var(--fold-hi), inset 0 0 0 1px var(--fold-line), 0 1px 2px rgba(0,0,0,.08); } }
@media (pointer: coarse), (max-width: 560px) { #root button.fold { width: 44px; height: 44px; min-height: 44px; } }
:where(#root) .ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-top: 8px; }
:where(#root) .ctl .more { font-weight: 500; color: var(--fg3); }
:where(#root) details > summary { cursor: pointer; }
:where(#root) details.id > summary { list-style: none; display: inline-flex; }
:where(#root) details.id > summary::-webkit-details-marker { display: none; }
:where(#root) details.id[open] > summary { margin-bottom: 6px; }
:where(#root) form { margin: 0; display: contents; }
:where(#root) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
:where(#root) legend { padding: 0; margin: 0 0 6px; width: 100%; }

/* ---------- what changed, said once: a drop and a line (the cards' .eff) ---------- */
:where(#root) .now { display: inline-flex; align-items: baseline; gap: 8px; justify-self: start; font-size: 14px; line-height: 1.45; color: var(--fg); }
:where(#root) .now::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fg3); transform: translateY(-1px); }
:where(#root) .now.warm::before { background: var(--ink); }
:where(#root) .flash { animation: sb-wash 1600ms ease-out both; border-radius: 6px; padding: 2px 6px; margin-left: -6px; }

/* ---------- the exact words: a hairline box, the words in Literata ---------- */
:where(#root) .quote { display: block; box-sizing: border-box; width: 100%; padding: 14px 16px; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 .5px var(--line-2);
  font: 400 16px/1.55 var(--serif); color: var(--fg); background: transparent; white-space: pre-wrap; }
:where(#root) textarea.quote { resize: vertical; }
:where(#root) .line { display: block; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 .5px var(--line-2); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- inputs: the sign-in's ---------- */
:where(#root) input.page, :where(#root) input[type=text], :where(#root) input[type=email], :where(#root) select, :where(#root) textarea { box-sizing: border-box; min-height: 44px; padding: 0 14px; font: 16px/1.4 var(--sans); color: var(--fg);
  background: transparent; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 .5px var(--line-3); }
:where(#root) select { background-color: var(--bg); color: var(--fg); }
:where(#root) textarea { padding: 12px 14px; }
:where(#root) input.page:focus, :where(#root) input[type=text]:focus, :where(#root) input[type=email]:focus, :where(#root) select:focus, :where(#root) textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
:where(#root) label.chip { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 32px; padding: 0 12px; font: 500 13px/1.2 var(--sans); color: var(--fg2);
  background: var(--fill); border-radius: 999px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
:where(#root) label.chip > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
:where(#root) label.chip:has(input:checked) { background: var(--fg); color: var(--bg); }
:where(#root) label.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
:where(#root) button.chip { min-height: 32px; font-weight: 500; font-size: 13px; background: var(--fill); box-shadow: none; color: var(--fg2); }
:where(#root) button.chip.on, :where(#root) button.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
:where(#root) form button[aria-pressed="true"]:not(.chip) { box-shadow: inset 0 0 0 1.5px var(--fg); }

:where(#root) .notice, :where(#root) > p.notice { font-size: 12.5px; line-height: 1.55; color: var(--fg3); max-width: 48em; }

/* ---------- motion: blocks arrive once (opacity, a 4 px blur, a 4 px rise), 40 ms apart; nothing travels under reduced motion ---------- */
@keyframes sb-arrive { from { opacity: 0; filter: blur(4px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes mm-row { from { opacity: 0; filter: blur(4px); transform: translateY(4px); } }
@keyframes mm-fade { from { opacity: 0; } }
@keyframes mm-line { from { transform: scaleX(0); } }
@keyframes mm-live { 50% { opacity: .35; } }
@keyframes mm-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes mm-head { from { opacity: 0; filter: blur(4px); } }
#root > * { animation: sb-arrive 420ms var(--out) both; }
#root > :nth-child(2) { animation-delay: 40ms; } #root > :nth-child(3) { animation-delay: 80ms; } #root > :nth-child(4) { animation-delay: 120ms; }
#root > :nth-child(5) { animation-delay: 160ms; } #root > :nth-child(6) { animation-delay: 200ms; }
/* one entrance, at the top of the page: what is further down is simply there */
#root > :nth-child(n+7) { animation: none; }
#root > style, #root > script { display: none; }
/* the arch appears whole, then rises the rest of the way (design re-audit N2); kit.ts's sb-arch is generated, so the
   wordmark has its own */
.mark.play .arch { transform-box: fill-box; animation: sb-arch-in 560ms var(--io) both; }
@keyframes sb-arch-in { 0% { clip-path: inset(0 0 45% 0); transform: translateY(45%); opacity: 0; } 30% { opacity: 1; } 100% { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
.mark.play .dd { animation: sb-drop 640ms var(--out) 380ms both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes sb-drop { from { transform: translateY(-10px) scale(.6); opacity: 0; } 70% { transform: translateY(.4px) scale(1.05, .95); opacity: 1; } to { transform: none; } }
/* the mark is alive everywhere (GLASS.md, The mark): under the hand its drop hops out of the bay and back; while a page
   waits on the world, it breathes */
.mark.set .arch, .mark.set .dd { animation: none; }
@media (hover: hover) { .wm:hover .mark.set .dd { animation: sb-drop-hop 480ms var(--out); transform-box: fill-box; transform-origin: 50% 100%; } }
[aria-busy="true"] .mark .dd { animation: sb-drop-breath 1600ms ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes sb-drop-hop { 0%, 100% { transform: none; } 35% { transform: translateY(-3px) scale(.92, 1.06); } 70% { transform: translateY(.3px) scale(1.04, .96); } }
@keyframes sb-drop-breath { 0%, 100% { transform: none; } 50% { transform: scale(.84); } }
/* the Privacy Policy and Terms (src/web/legal.ts): long reading, one measure, hairline tables that scroll on a phone */
:where(#root) .legal { max-width: 40em; }
:where(#root) .legal > h3 { font: 600 16px/1.4 var(--sans); margin: 28px 0 6px; scroll-margin-top: 16px; }
:where(#root) .legal > p { font-size: 15px; line-height: 1.6; color: var(--fg2); margin: 8px 0; text-wrap: pretty; }
:where(#root) .legal > p.mut { font-size: 13px; color: var(--fg3); }
:where(#root) .legal-list { margin: 8px 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; color: var(--fg2); }
:where(#root) .legal-table { overflow-x: auto; margin: 10px 0; }
:where(#root) .legal-table table { border-collapse: collapse; font-size: 13px; line-height: 1.45; min-width: 32em; }
:where(#root) .legal-table th, :where(#root) .legal-table td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-top: .5px solid var(--line); color: var(--fg2); }
:where(#root) .legal-table th { font-weight: 600; color: var(--fg); border-top: 0; }
:where(#root) .legal-table:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 4px; }
:where(#root) .legal :is(p, li) { overflow-wrap: anywhere; }
:where(#root) .legal td { overflow-wrap: break-word; }
@media print { :where(#root) .legal-table { overflow: visible; } :where(#root) .legal-table table { min-width: 0; } }
/* on a phone a table's rows stack: each cell under its column's name, nothing to scroll sideways */
@media (max-width: 600px) {
  :where(#root) .legal-table table { min-width: 0; width: 100%; }
  :where(#root) .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :where(#root) .legal-table :is(tbody, tr, td) { display: block; }
  :where(#root) .legal-table tr { padding: 10px 0; border-top: .5px solid var(--line); }
  :where(#root) .legal-table td { border: 0; padding: 2px 0; font-size: 14px; }
  :where(#root) .legal-table td::before { content: attr(data-k); display: block; font-weight: 600; font-size: 12px; color: var(--fg3); }
  :where(#root) .legal-table td:first-child { color: var(--fg); font-weight: 560; }
  :where(#root) .legal-table td:first-child::before { display: none; }
}
/* a document's own headings as links: a compact list under its title (round 3, W10 to W12) */
:where(#root) .toc { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
:where(#root) .toc a { color: var(--fg); text-decoration: underline .5px var(--line-3); text-underline-offset: 3px; padding: 6px 0; }
:where(#root) .legal-toc { display: block; margin: 18px 0 8px; padding: 14px 0; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
:where(#root) .legal .legal-toc h3 { font: 600 13px/1.4 var(--sans); color: var(--fg2); margin: 0 0 6px; }
:where(#root) .legal-toc ul { list-style: none; margin: 0; padding: 0; columns: 2 15em; column-gap: 28px; font-size: 14px; line-height: 1.4; }
:where(#root) .legal-toc li { break-inside: avoid; padding: 3px 0; color: var(--fg3); }
:where(#root) .legal-toc li a { padding: 0; }
:where(#root) [id] { scroll-margin-top: 16px; }
/* a right, said as one sentence: its name in bold, its punctuation and its terms after it on the same line */
:where(#root) ul.rights li { text-wrap: pretty; }
:where(#root) ul.rights { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--fg2); }
:where(#root) ul.rights b { color: var(--fg); font-weight: 600; }
/* what only some readers need, folded: a row that opens in place */
:where(#root) details.fold { border-top: .5px solid var(--line); padding-top: 4px; }
:where(#root) details.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; font: 560 15px/1.3 var(--sans); color: var(--fg); }
:where(#root) details.fold > summary::-webkit-details-marker { display: none; }
:where(#root) details.fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--out); flex: none; margin-right: 2px; }
:where(#root) details.fold[open] > summary::before { transform: rotate(45deg) translate(-2px, -2px); }
:where(#root) details.fold[open] > summary { margin-bottom: 8px; }
:where(#root) details.fold > :not(summary) + :not(summary) { margin-top: 10px; }
:where(#root) details.fold > .why { font-size: 15px; line-height: 1.6; color: var(--fg2); margin: 0; }
/* Remove me from Superbay (src/web/optout.ts): each outcome its button, what it does right under it; Erase opens on its
   two ways, side by side */
:where(#root) .opt { display: grid; gap: 8px; justify-items: start; padding-bottom: 14px; }
:where(#root) .opt > form, :where(#root) .opt .row { margin: 0; }
:where(#root) .opt .why { margin: 0; }
:where(#root) details.opt > summary { list-style: none; display: grid; gap: 8px; justify-items: start; cursor: pointer; }
:where(#root) details.opt > summary::-webkit-details-marker { display: none; }
:where(#root) details.opt > summary .sm { display: inline-flex; align-items: center; gap: 9px; box-sizing: border-box; min-height: 38px; padding: 0 16px; font: 600 14px/1.2 var(--sans); color: var(--fg); border-radius: 999px; box-shadow: inset 0 0 0 .5px var(--line-3); }
:where(#root) details.opt > summary:focus-visible { outline: none; }
:where(#root) details.opt > summary:focus-visible .sm { outline: 2px solid var(--fg); outline-offset: 2px; }
:where(#root) details.opt > summary .sm::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--out); }
:where(#root) details.opt[open] > summary .sm::after { transform: translateY(1px) rotate(-135deg); }
:where(#root) .opt .ways { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr)); gap: 10px; margin-top: 10px; }
:where(#root) .opt .way { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 .5px var(--line-2); }
:where(#root) .opt .way .chips { margin: 0; }
@media (max-width: 560px) { :where(#root) details.opt > summary .sm { min-height: 44px; } }
/* what comes after an install: the words to send, once, and the chat to send them in */
:where(#root) section.then { display: grid; gap: 10px; }
:where(#root) section.then > h3 { font: 600 16px/1.4 var(--sans); margin: 8px 0 0; }
:where(#root) section.then .row { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  #root > *, .mark.play .arch, .mark.play .dd, .flash { animation: mm-fade 160ms linear both !important; animation-delay: 0ms !important; }
  .wm:hover .mark.set .dd, [aria-busy="true"] .mark .dd { animation: none !important; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* a page on a phone is tapped with a thumb: every control reaches 44 px */
@media (max-width: 560px) {
  .site { padding: 0 20px; }
  #root button, #root a.btn, #root label.chip { min-height: 44px; }
  #root .more { min-height: 44px; }
  .row > .go, .row > a.btn.go { flex: 1 1 100%; }
  footer.foot { margin-top: 64px; }
  footer.foot a, footer.foot > span:first-child { display: inline-block; padding: 10px 0; }
}

/* ---------- a person's page: the visits in the strip, who created it, what they said, what was found (DESIGN.md §12) ---------- */
/* ── the strip: for a person. The sentence and the buttons on the left, the visits on the right. ── */
:where(#root) .hu2 { display: grid; grid-template-columns: minmax(0, 246px) minmax(0, 1fr); gap: 0 32px; align-items: start; padding: 0 0 16px; }
:where(#root) .hu-l { display: grid; gap: 5px; align-content: start; }
:where(#root) .hu2 .hu-cta { margin-top: 11px; grid-column: auto; grid-row: auto; }
:where(#root) .vz { position: relative; min-width: 0; }
:where(#root) .vz-h { margin: 0 0 5px; font: 400 13px/1.35 var(--sans); color: var(--fg3); }
:where(#root) .vz-h b { font-weight: 550; color: var(--fg); }
:where(#root) .vz table { width: 100%; border-collapse: collapse; font: 450 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--fg2); }
:where(#root) .vz th, :where(#root) .vz td { padding: 0 0 0 10px; height: 21px; text-align: right; font-weight: 450; white-space: nowrap; }
:where(#root) .vz thead th { height: 17px; font-size: 10px; color: var(--fg3); }
:where(#root) .vz tbody th { padding: 0; text-align: left; font: 450 12.5px/1 var(--sans); color: var(--fg); white-space: normal; width: 100%; background: linear-gradient(90deg, var(--wash) var(--w), transparent 0) 0 50% / 100% 17px no-repeat; }
:where(#root) .vz tbody th span { padding-left: 6px; }
:where(#root) .vz td.z { color: var(--fg3); }
:where(#root) .vz td:last-child { min-width: 58px; }
:where(#root) .vz-n { margin: 6px 0 0; font: 450 10px/1.3 var(--mono); color: var(--fg3); }
:where(#root) .vz-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font: 500 12.5px/1.3 var(--sans); color: var(--fg2); cursor: pointer; }
:where(#root) .vz-more > summary::-webkit-details-marker { display: none; }
:where(#root) .vz-more > summary::before { content: ""; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--out); }
:where(#root) .vz-more[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
:where(#root) .vz-more[open] > summary { margin-bottom: 4px; }

/* ── the document ── */
:where(#root) .ag-body:has(> .sec) { gap: 12px; padding-top: 16px; --k: 140px; }
:where(#root) .lede { font-size: 16px; line-height: 1.5; color: var(--fg2); margin-top: -2px; }
:where(#root) .ag .none { font-size: 14.5px; line-height: 1.5; }


/* who created this: the document's front matter, on the rows' own grid */
:where(#root) .pid { margin: 2px 0 0; display: grid; gap: 3px; font-size: 14px; line-height: 1.5; }
:where(#root) .pid > div { display: grid; grid-template-columns: var(--k) minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
:where(#root) .pid dt { font: 450 12px/1.5 var(--mono); color: var(--fg3); }
:where(#root) .pid dt:not(:empty)::after { content: ":"; }
:where(#root) .pid dd { margin: 0; color: var(--fg2); }
:where(#root) .pid strong { font-weight: 600; color: var(--fg); }
:where(#root) .pid a { color: var(--fg); text-decoration: underline .5px var(--line-3); text-underline-offset: 3px; }
:where(#root) .pid .close dd { font-size: 12.5px; color: var(--fg3); }

/* the sections */
:where(#root) .sec { position: relative; display: grid; gap: 0; margin-top: 18px; min-width: 0; }
:where(#root) .sec > h2 { position: relative; margin: 0 0 8px; font: 550 18px/1.3 var(--sans); letter-spacing: -.015em; font-variation-settings: "opsz" 24; color: var(--fg); }
:where(#root) .sec > h2::before, :where(#root) .grp > h3::before, :where(#root) .fx > li::before { position: absolute; right: calc(100% + 26px); font: 400 13px/1 var(--mono); color: var(--fg3); white-space: nowrap; }
:where(#root) .sec > h2::before { content: "##"; content: "##" / ""; top: .4em; }
:where(#root) .grp { display: grid; margin-top: 16px; }
:where(#root) .sec > h2 + .grp { margin-top: 2px; }
:where(#root) .grp > h3 { position: relative; margin: 0 0 3px; font: 550 13px/1.5 var(--sans); letter-spacing: 0; color: var(--fg2); }
:where(#root) .grp > h3::before { content: "###"; content: "###" / ""; top: .35em; font-size: 11px; right: calc(100% + 26px); }

/* a row: key, value, its source as a citation after it */
:where(#root) .fx { list-style: none; margin: 0; padding: 0; }
:where(#root) .fx > li { position: relative; display: grid; grid-template-columns: var(--k) minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 4px 0; min-width: 0; }
:where(#root) .fx > li::before { content: "-"; content: "-" / ""; top: 9px; }
:where(#root) .fx > li > b { font: 450 11.5px/1.6 var(--mono); color: var(--fg3); }
:where(#root) .fx > li > b::after { content: ":"; }
:where(#root) .fx > li.rep > b { opacity: 0; }
:where(#root) .fx p { margin: 0; font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--fg) 86%, transparent); text-wrap: pretty; min-width: 0; }
:where(#root) .fx .src { font: 450 11px/1.4 var(--mono); letter-spacing: 0; display: inline-block; max-width: 100%; color: var(--fg3); overflow-wrap: anywhere; }
:where(#root) .pe > li { grid-template-columns: minmax(0, 1fr); }
:where(#root) .pe .nm { font: 500 14.5px/1.45 var(--sans); color: var(--fg); margin: 0 8px 0 0; }
:where(#root) .pe .v { color: var(--fg2); }
:where(#root) .sec > .more { margin-top: 8px; justify-self: start; font-size: 13px; }

/* From Milan: the gutter's dashes turn into one solid line, the marks into quotes, the words a size up */
:where(#root) .said { padding-bottom: 2px; }
:where(#root) .said::before { content: ""; position: absolute; left: -20px; top: 1px; bottom: 0; border-left: 1.5px solid var(--fg); }
:where(#root) .said::after { content: ""; position: absolute; left: -21px; top: -6px; height: 7px; bottom: auto; }
:where(#root) .fm > li { padding: 4px 0; }
:where(#root) .fm > li::before { content: ">"; content: ">" / ""; color: var(--fg); top: 10px; }
:where(#root) .fm p { color: var(--fg); font-size: 16px; line-height: 1.4; font-weight: 450; letter-spacing: -.008em; }
:where(#root) .fm .src { color: var(--fg2); letter-spacing: 0; font-weight: 450; }
:where(#root) .fm > li > b { color: var(--fg2); line-height: 1.8; }

@media (max-width: 720px) {
  :where(#root) .hu2 { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 16px; }
  :where(#root) .hu2 .hu-cta { width: 100%; }
  :where(#root) .ag .eyebrow { font-size: 11px; white-space: nowrap; }
  :where(#root) .vz tbody th { font-size: 13px; }
  :where(#root) .vz th, :where(#root) .vz td { height: 24px; }
  :where(#root) .ag-body:has(> .sec) { --k: 100%; }
  :where(#root) .pid > div, :where(#root) .fx > li { grid-template-columns: minmax(0, 1fr); }
  :where(#root) .pid .close dt { display: none; }
  :where(#root) .pid > div { row-gap: 0; }
  :where(#root) .fx > li { padding: 6px 0; }
  :where(#root) .fx > li.rep > b { display: none; }
  :where(#root) .sec > h2::before, :where(#root) .grp > h3::before, :where(#root) .fx > li::before { right: calc(100% + 18px); font-size: 11px; }
  :where(#root) .grp > h3::before { font-size: 9px; }
  :where(#root) .said::before { left: -12px; }
  :where(#root) .fm > li::before { top: 12px; }
}
:where(#root) .fx .det { grid-column: 2; font: 450 11px/1.4 var(--mono); color: var(--fg3); }
:where(#root) .web > .det { font: 450 11px/1.4 var(--mono); color: var(--fg3); margin: -4px 0 8px; }
:where(#root) .pid-more { display: block; margin-top: 2px; font-size: 12.5px; }
:where(#root) .pid-more > summary { cursor: pointer; display: inline; text-decoration: underline .5px var(--line-3); text-underline-offset: 3px; }
:where(#root) .pid-more[open] > summary { display: block; margin-bottom: 4px; }
:where(#root) .pid-more p { margin: 0 0 6px; }
