/* Bucksley site. The "Afterhours" direction: violet ink on a near-white ground by day, near-black
   by night, heavy tight titles, mono figures that line up, and the icon's five chart colors.
   Same structure as the other Protomota app sites. The page's own motif is the stack of bars
   from the icon: on every eyebrow, in the footer edge and in the working preview. Fonts are
   Apple's system fonts where available; Inter and JetBrains Mono are self-hosted fallbacks.
   The site follows the system appearance; the preview has its own theme and appearance toggles. */

@font-face {
  font-family: "Inter Variable";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbfaff;
  --bg-2: #f2f1fb;
  --surface: #ffffff;
  --surface-2: #f5f4fc;
  --sunk: #ecebf8;
  --line: #e1dff0;
  --line-2: #c9c6e2;
  --ink: #14132b;
  --ink-2: #3d3c5a;
  --muted: #66657f;
  /* Brand: Afterhours accent and the icon's five chart colors. */
  --accent: #5b3df0;
  --accent-strong: #4528d6;
  --accent-ink: #ffffff;
  --fill: #5b3df0;
  --fill-strong: #4528d6;
  --fill-ink: #ffffff;
  --up: #3c8500;
  --down: #db2350;
  --s1: #5b3df0; --s2: #5fa800; --s3: #0e9ac2; --s4: #e07a10; --s5: #db2350;
  --band-1: #b6f24a; --band-2: #35c9f0; --band-3: #8a6bff; --band-4: #ff5c7a; --band-5: #ff9f43;
  --shadow: 0 1px 0 rgb(20 19 43 / .05), 0 24px 50px -24px rgb(20 19 43 / .32);
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter Variable", system-ui, "Helvetica Neue", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", system-ui, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono Variable", Menlo, Consolas, monospace;
  /* Names the shared Protomota block expects from its host site. */
  --paper: var(--ink);
  --signal: var(--accent);
  --rule: var(--line);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0e17;
    --bg-2: #12131f;
    --surface: #171928;
    --surface-2: #1d1f31;
    --sunk: #0a0b12;
    --line: #272a3f;
    --line-2: #383c58;
    --ink: #f2f2fa;
    --ink-2: #c3c4d8;
    --muted: #9092ac;
    --accent: #a58eff;
    --accent-strong: #c2b3ff;
    --accent-ink: #0d0e17;
    --fill: #7556ff;
    --fill-strong: #6544f5;
    --fill-ink: #ffffff;
    --up: #b6f24a;
    --down: #ff5c7a;
    --s1: #8a6bff; --s2: #b6f24a; --s3: #35c9f0; --s4: #ff9f43; --s5: #ff5c7a;
    --shadow: 0 24px 50px -24px rgb(0 0 0 / .75);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font: .88em/1.5 var(--mono); padding: .08em .38em; border-radius: 5px; background: var(--sunk); color: var(--ink); overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }

.shell { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: fixed; z-index: 100; inset: 8px auto auto 8px; padding: 8px 16px; background: var(--surface); color: var(--ink); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -.03em; }
.wordmark img { width: 30px; height: 30px; display: block; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .15s; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--accent); }
.nav nav a.nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid transparent; border-radius: 8px; background: var(--fill); color: var(--fill-ink); }
.nav nav a.nav-cta:hover { background: var(--fill-strong); color: var(--fill-ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--fill); color: var(--fill-ink);
  font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.button:hover { background: var(--fill-strong); color: var(--fill-ink); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.button.secondary:hover { background: var(--surface); border-color: var(--accent); color: var(--ink); }
.button svg { flex-shrink: 0; }

/* Eyebrows and headings. Each eyebrow opens with three stacked bars from the icon. */
.mark { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 .8rem/1.4 var(--mono); letter-spacing: .02em; color: var(--accent); }
.mark::before {
  content: ""; width: 18px; height: 14px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Crect x='0' y='0' width='18' height='3.4' rx='1.2'/%3E%3Crect x='0' y='5.3' width='8' height='3.4' rx='1.2'/%3E%3Crect x='0' y='10.6' width='14' height='3.4' rx='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Crect x='0' y='0' width='18' height='3.4' rx='1.2'/%3E%3Crect x='0' y='5.3' width='8' height='3.4' rx='1.2'/%3E%3Crect x='0' y='10.6' width='14' height='3.4' rx='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 em, h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 20px; max-width: 58ch; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 600; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Hero */
.hero { position: relative; padding-block: clamp(56px, 8vw, 96px) 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 47px, color-mix(in srgb, var(--accent) 12%, transparent) 47px 48px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent);
  font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.1rem); max-width: 13ch; margin-inline: auto; }
.hero .lead { margin-inline: auto; max-width: 58ch; font-size: clamp(1.05rem, 1.7vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.actions-left { justify-content: flex-start; }
.fineprint { margin-top: 18px; font: .78rem/1.5 var(--mono); color: var(--muted); }


/* The working preview: the Bucksley Mac window with sample data. It carries the app's three
   themes (Afterhours, Evergreen, Almanac), each in light and dark, as its own tokens, so the
   Theme and Appearance toggles work whatever the site theme is. The iPhone figure uses them too. */
.stage { position: relative; margin-top: clamp(40px, 6vw, 68px); }
.stage::before {
  content: ""; position: absolute; inset: 10% 8% 6%; z-index: -1; border-radius: 40px;
  background: color-mix(in srgb, var(--accent) 24%, transparent); filter: blur(80px);
}
[data-theme] { --w-shadow: 0 22px 44px rgb(0 0 0 / .26); }
[data-theme="ah"] { --w-ui: var(--sans); --w-disp: var(--display); --w-fig: var(--mono); --w-fig-track: -.05em; --w-big-weight: 600; }
[data-theme="ev"] { --w-ui: var(--sans); --w-disp: var(--sans); --w-fig: ui-rounded, "SF Pro Rounded", var(--sans); --w-fig-track: -.02em; --w-big-weight: 700; }
[data-theme="al"] { --w-ui: var(--sans); --w-disp: ui-serif, "New York", "Iowan Old Style", Georgia, serif; --w-fig: ui-serif, "New York", "Iowan Old Style", Georgia, serif; --w-fig-track: -.01em; --w-big-weight: 600; }
[data-theme="ah"][data-appearance="light"] { color-scheme: light; --w-bg: #ffffff; --w-side: #f2f1fb; --w-card: #f5f4fc; --w-ink: #14132b; --w-ink2: #66657f; --w-line: #e1dff0; --w-acc: #5b3df0; --w-accink: #ffffff; --w-pos: #3c8500; --w-neg: #db2350; --c1: #5b3df0; --c2: #5fa800; --c3: #0e9ac2; --c4: #e07a10; --c5: #db2350; --c6: #a3a2b8; }
[data-theme="ah"][data-appearance="dark"] { color-scheme: dark; --w-bg: #0d0e17; --w-side: #12131f; --w-card: #191b2b; --w-ink: #f2f2fa; --w-ink2: #9092ac; --w-line: #272a3f; --w-acc: #8a6bff; --w-accink: #ffffff; --w-pos: #b6f24a; --w-neg: #ff5c7a; --c1: #8a6bff; --c2: #b6f24a; --c3: #35c9f0; --c4: #ff9f43; --c5: #ff5c7a; --c6: #5b5e78; }
[data-theme="ev"][data-appearance="light"] { color-scheme: light; --w-bg: #ffffff; --w-side: #f2f5f3; --w-card: #f6f8f7; --w-ink: #14201b; --w-ink2: #5f6e67; --w-line: #e1e6e3; --w-acc: #17805e; --w-accink: #ffffff; --w-pos: #17805e; --w-neg: #c8442e; --c1: #17805e; --c2: #2f6fde; --c3: #d98a1f; --c4: #8a5bd6; --c5: #d4577a; --c6: #98a49f; }
[data-theme="ev"][data-appearance="dark"] { color-scheme: dark; --w-bg: #101513; --w-side: #161c19; --w-card: #1b2320; --w-ink: #eef3f0; --w-ink2: #96a49d; --w-line: #28322d; --w-acc: #3dd6a0; --w-accink: #06241a; --w-pos: #3dd6a0; --w-neg: #ff7a66; --c1: #3dd6a0; --c2: #6aa3ff; --c3: #f2b25c; --c4: #b08cf5; --c5: #f283a3; --c6: #6f7c76; }
[data-theme="al"][data-appearance="light"] { color-scheme: light; --w-bg: #faf6ec; --w-side: #f1eada; --w-card: #fffdf6; --w-ink: #211d17; --w-ink2: #756b5c; --w-line: #dcd2bd; --w-acc: #b4532a; --w-accink: #fff8ec; --w-pos: #4f6b3a; --w-neg: #9b2c2c; --c1: #b4532a; --c2: #4f6b3a; --c3: #c0902a; --c4: #3f5f7a; --c5: #8a4a6b; --c6: #a39a88; }
[data-theme="al"][data-appearance="dark"] { color-scheme: dark; --w-bg: #1b1815; --w-side: #221e1a; --w-card: #27221d; --w-ink: #f3ecdd; --w-ink2: #aea391; --w-line: #3b352c; --w-acc: #e38b5e; --w-accink: #2a150b; --w-pos: #a5c487; --w-neg: #ec8080; --c1: #e38b5e; --c2: #a5c487; --c3: #e3bd5e; --c4: #86a9c7; --c5: #c58baa; --c6: #7d7466; }
[data-theme] .c1 { --k: var(--c1); } [data-theme] .c2 { --k: var(--c2); } [data-theme] .c3 { --k: var(--c3); }
[data-theme] .c4 { --k: var(--c4); } [data-theme] .c5 { --k: var(--c5); } [data-theme] .c6 { --k: var(--c6); }
.fig { font-family: var(--w-fig, var(--mono)); font-variant-numeric: tabular-nums; letter-spacing: var(--w-fig-track, -.03em); }
.gw .neg, .phone-screen .neg { color: var(--w-neg); }
.gw .pos, .phone-screen .pos { color: var(--w-pos); }

.gw {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--w-line); border-radius: 14px; overflow: hidden; text-align: left;
  background: var(--w-bg); color: var(--w-ink);
  box-shadow: var(--shadow);
  font: 13px/1.45 var(--w-ui);
  transition: background .25s, color .25s;
}
.gw button { font-family: inherit; }
.gw-title { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 14px; border-bottom: 1px solid var(--w-line); background: var(--w-side); }
.gw-title .grow { flex: 1; }
.lights { display: flex; gap: 7px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.tabs { display: inline-flex; gap: 2px; }
.tabs button { padding: 5px 12px; border: 0; border-radius: 999px; background: none; color: var(--w-ink2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tabs button:hover { color: var(--w-ink); }
.tabs button[aria-pressed="true"] { background: var(--w-acc); color: var(--w-accink); }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--w-ink2); white-space: nowrap; }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-pos); }
.gw-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 560px; }
.gw-side { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; background: var(--w-side); border-right: 1px solid var(--w-line); }
.side-label { margin: 4px 6px 2px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--w-ink2); }
.acct { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 11px; border: 0; border-radius: 11px; background: var(--w-card); color: var(--w-ink); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s; }
.acct:hover { box-shadow: inset 0 0 0 1px var(--w-line); }
.acct[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--w-acc); }
.acct-text { display: grid; min-width: 0; }
.acct-text span { font-size: 11px; color: var(--w-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-text b { font-size: 14px; font-weight: 600; }
.acct.all b { font-size: 15px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; flex: none; }
.spark i { display: block; width: 3px; border-radius: 1px; background: var(--k); }
.gw-main { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 24px 18px; }
.view { min-width: 0; }
.view[hidden] { display: none; }
.nw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--w-ink2); }
.big { margin: 2px 0 6px; font-size: 42px; line-height: 1.05; font-weight: var(--w-big-weight, 600); }
.big small { font-size: .5em; color: var(--w-ink2); letter-spacing: -.02em; }
[data-theme="ah"] .big, [data-theme="ah"] .gw-head-title { letter-spacing: -.06em; }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--w-pos) 16%, transparent); color: var(--w-pos); }
.chip.down { background: color-mix(in srgb, var(--w-neg) 16%, transparent); color: var(--w-neg); }
.seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--w-card); box-shadow: inset 0 0 0 1px var(--w-line); }
.seg button { padding: 4px 11px; border: 0; border-radius: 999px; background: none; color: var(--w-ink2); font-size: 12px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--w-bg); color: var(--w-ink); box-shadow: 0 0 0 1px var(--w-line), 0 1px 2px rgb(0 0 0 / .14); }
[data-theme="al"] .seg button[aria-pressed="true"], [data-theme="al"] .tabs button[aria-pressed="true"] { background: var(--w-ink); color: var(--w-bg); box-shadow: none; }
.keys { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 6px; font-size: 12px; color: var(--w-ink2); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.keys i { width: 9px; height: 9px; border-radius: 3px; background: var(--k); }
.keys b { color: var(--w-ink); font-weight: 500; }
.nw-chart { position: relative; }
.nw-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.nw-chart .area { fill: var(--k); }
.nw-chart .edge { fill: none; stroke: var(--w-bg); stroke-width: 2; }
.nw-chart .grid line { stroke: var(--w-bg); stroke-opacity: .45; }
.nw-chart .axis text { fill: var(--w-ink2); font: 10.5px var(--w-fig, var(--mono)); }
.nw-chart .axis .on { fill: var(--w-bg); opacity: .85; font-weight: 600; }
.nw-chart .hover-line { stroke: var(--w-ink2); stroke-width: 1; stroke-dasharray: 2 3; }
.nw-chart .hover-dot { fill: var(--w-ink); stroke: var(--w-bg); stroke-width: 3; }
.readout { display: block; min-height: 1.5em; margin-top: 4px; font-size: 11.5px; color: var(--w-ink2); }
.sech { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 4px; }
.sech.top { margin-top: 0; }
.sech b { font: 700 15px/1.3 var(--w-disp); letter-spacing: -.01em; }
.sech span { font-size: 11.5px; color: var(--w-ink2); }
.txs { list-style: none; padding: 0; }
.txs li { display: grid; grid-template-columns: 46px 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--w-line); }
.txs .dt { font-size: 11.5px; color: var(--w-ink2); }
.av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-style: normal; font-size: 10.5px; font-weight: 700; background: color-mix(in srgb, var(--k) 20%, transparent); color: color-mix(in srgb, var(--k) 70%, var(--w-ink)); }
.txs .m { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { justify-self: end; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--k) 18%, transparent); color: color-mix(in srgb, var(--k) 70%, var(--w-ink)); }
.txs .amt { min-width: 76px; text-align: right; font-size: 13px; }
.donutrow { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 28px; margin-top: 18px; }
.donut { position: relative; }
.donut svg { display: block; width: 100%; height: auto; }
.donut svg circle { transition: opacity .2s; }
.donut svg.focus circle:not(.on) { opacity: .25; }
.donut > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut b { font-size: 26px; font-weight: 600; }
.donut span { font-size: 11.5px; color: var(--w-ink2); }
.legend { list-style: none; padding: 0; }
.legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: default; }
.legend li:hover, .legend li.on { background: var(--w-card); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.legend em { font-style: normal; font-size: 11.5px; color: var(--w-ink2); }
.rings { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.rings li { display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 12px; background: var(--w-card); text-align: center; }
.rg { position: relative; width: 74px; height: 74px; }
.rg svg { display: block; width: 100%; height: 100%; }
.rg .track { stroke: var(--w-line); }
.rg .val { stroke: var(--k); transition: stroke-dasharray .4s; }
.rg .over { stroke: var(--w-neg); }
.rg b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.rings span { font-weight: 600; }
.rings em { font-style: normal; font-size: 11.5px; color: var(--w-ink2); }
.ask { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 5px 5px 5px 14px; border-radius: 999px; background: var(--w-card); box-shadow: inset 0 0 0 1px var(--w-line); }
.ask select { flex: 1; min-width: 0; padding: 6px 0; border: 0; background: none; color: var(--w-ink2); font: inherit; font-size: 12.5px; cursor: pointer; text-overflow: ellipsis; }
.ask select:focus-visible { outline: 2px solid var(--w-acc); outline-offset: 2px; border-radius: 6px; }
.ask-go { flex: none; padding: 6px 16px; border: 0; border-radius: 999px; background: var(--w-acc); color: var(--w-accink); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.answer { margin-top: 10px; padding: 10px 13px; border-radius: 12px 12px 12px 4px; background: var(--w-card); font-size: 12.5px; line-height: 1.5; }
.answer b { font-weight: 600; }
.answer small { display: block; margin-top: 4px; font-size: 11px; color: var(--w-ink2); }
.gw-main > .view:first-child { margin-bottom: 14px; }

.stage-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.stage-note > span:first-child { flex-basis: 100%; text-align: center; }
.chooser { display: inline-flex; align-items: center; gap: 8px; }
.chooser .opts { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.chooser button { padding: 4px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-size: .82rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chooser button[aria-pressed="true"] { background: var(--fill); color: var(--fill-ink); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 88px); border-block: 1px solid var(--line); text-align: left; }
.facts div { padding: 28px 24px 28px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 10px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }

/* Bento cards */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; }
.card.wide { grid-column: span 3; }
.card h3 { font: 650 1.18rem/1.25 var(--sans); letter-spacing: -.015em; }
.card p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.card .visual { margin-top: auto; padding-top: 16px; }
.mini { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 12.5px/1.5 var(--mono); overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-width: 0; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row .lbl { width: 72px; flex-shrink: 0; color: var(--muted); }
.mini-row .val { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.mini-row .val b { font-weight: 500; color: var(--accent); }
.mini-row .end { margin-left: auto; flex-shrink: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: 12.5px/1.5 var(--mono); color: var(--ink-2); }

/* Split sections, ticks */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.ticks li::before { content: ""; width: 6px; height: 6px; margin: .62em auto 0; border-radius: 50%; background: var(--accent); }
.ticks strong { color: var(--ink); font-weight: 600; }


/* iPhone figure: the review inbox, with sample data. Buttons work. */
.phone { justify-self: center; width: min(310px, 100%); }
.phone-frame { padding: 11px; border-radius: 48px; background: #0d0e17; box-shadow: 0 0 0 1px #383c58, var(--shadow); }
.phone-screen { position: relative; display: flex; flex-direction: column; min-height: 540px; padding: 52px 16px 20px; border-radius: 38px; background: var(--w-bg); color: var(--w-ink); font: 13.5px/1.35 var(--w-ui); }
.phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; border-radius: 999px; background: #0d0e17; transform: translateX(-50%); }
.ph-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ph-head h4 { font: 800 30px/1.05 var(--w-disp); letter-spacing: -.035em; }
.count { padding: 3px 10px; border-radius: 999px; background: var(--w-card); font-size: 12px; font-weight: 600; }
.deck { position: relative; padding-top: 14px; }
.deck::before, .deck::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 30px; border-radius: 20px 20px 0 0; background: var(--w-card); box-shadow: inset 0 0 0 1px var(--w-line); }
.deck::after { left: 11px; right: 11px; top: 7px; }
.dcard { position: relative; z-index: 1; padding: 16px; border-radius: 22px; background: var(--w-bg); box-shadow: inset 0 0 0 1.5px var(--w-ink); transition: transform .25s, opacity .25s; }
.dcard.out { transform: translateX(40px) rotate(4deg); opacity: 0; }
.dtop { display: flex; align-items: center; justify-content: space-between; }
.dm { margin-top: 14px; font: 700 18px/1.2 var(--w-disp); letter-spacing: -.02em; }
.da { margin-top: 2px; font-size: 32px; font-weight: 600; line-height: 1.1; }
.dmeta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--w-line); font-size: 11.5px; color: var(--w-ink2); }
.dnote { margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--w-card); font-size: 12px; }
.dbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pbtn { padding: 10px 6px; border: 0; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pbtn.pri { background: var(--w-acc); color: var(--w-accink); }
.pbtn.ghost { background: transparent; color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-line); }
.hint { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--w-ink2); }
.up { margin: 14px 2px 2px; font-size: 11px; font-weight: 600; color: var(--w-ink2); }
.next { list-style: none; padding: 0; }
.next li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--w-line); }
.next b { display: block; font-size: 13px; font-weight: 600; }
.next small { display: block; font-size: 11px; color: var(--w-ink2); }
.next .fig { font-size: 13px; }
.phone figcaption { margin-top: 14px; text-align: center; font: .75rem/1.4 var(--mono); color: var(--muted); }

/* Connections */
.connect { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.connect article { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.connect h3 { display: flex; align-items: center; gap: 10px; font: 650 1.12rem/1.25 var(--sans); letter-spacing: -.015em; }
.connect h3::before { content: ""; width: 10px; height: 22px; flex: none; border-radius: 3px; background: var(--k); }
.connect article:nth-child(1) { --k: var(--band-1); } .connect article:nth-child(2) { --k: var(--band-2); }
.connect article:nth-child(3) { --k: var(--band-3); } .connect article:nth-child(4) { --k: var(--band-5); }
.connect p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }

/* Agent session */
.agent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.clients a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 550; text-decoration: none; }
.clients a:hover { border-color: var(--accent); color: var(--accent); }
.clients svg { color: var(--accent); }
.agent .actions { justify-content: flex-start; }
.session { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.session-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
.session-body { display: grid; gap: 14px; padding: 20px; }
.say { max-width: 46ch; padding: 11px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.say.you { justify-self: end; background: var(--fill); color: var(--fill-ink); border-bottom-right-radius: 4px; }
.say.agent-says { background: var(--sunk); color: var(--ink); border-bottom-left-radius: 4px; }
.calls { list-style: none; padding: 0; display: grid; gap: 6px; }
.calls li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.calls li::before { content: ""; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--up); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.8-4.4 4.6a.8.8 0 0 1-1.1 0L4.3 8.5a.8.8 0 1 1 1.1-1.1l1.3 1.3 3.9-4a.8.8 0 0 1 1.1 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.8-4.4 4.6a.8.8 0 0 1-1.1 0L4.3 8.5a.8.8 0 1 1 1.1-1.1l1.3 1.3 3.9-4a.8.8 0 0 1 1.1 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.calls li.blocked::before { background: var(--down); }
.calls b { display: block; font: 500 .84rem/1.4 var(--mono); color: var(--ink); }
.calls span { display: block; font-size: .84rem; color: var(--muted); }
.session[data-mode="write"] .only-read, .session[data-mode="read"] .only-write { display: none; }

/* Privacy trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.trio h3 { display: flex; align-items: center; gap: 10px; font: 650 1.1rem/1.3 var(--sans); margin-bottom: 8px; }
.trio h3::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--up); }
.trio p { color: var(--ink-2); font-size: .96rem; }

/* Download and install */
.install { align-items: start; }
.install .actions { justify-content: flex-start; }
.install-steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.install-steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 20px 24px; color: var(--ink-2); }
.install-steps li + li { border-top: 1px solid var(--line); }
.install-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font: 500 .8rem var(--mono); color: var(--accent); }
.install-steps li > span, .install-steps li > div { padding-top: 2px; min-width: 0; }
.install-steps strong { color: var(--ink); font-weight: 600; }

/* Discord callout, just above the newsletter */
.discord-callout { display: flex; align-items: center; gap: 24px 32px; margin-bottom: 16px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 90px; }
.discord-avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(245 128 37 / .6), 0 0 22px rgb(245 128 37 / .38); }
.discord-copy { flex: 1; min-width: 0; }
.discord-callout h2 { margin: 0 0 10px; font: 650 1.75rem/1.15 var(--sans); letter-spacing: -.03em; }
.discord-callout p { margin: 0; max-width: 560px; color: var(--ink-2); }
.discord-callout .button { flex-shrink: 0; }
@media (max-width: 720px) { .discord-callout { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* Newsletter and coffee, as on the other Protomota sites */
.about-protomota { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(40px, 6vw, 72px); }
.about-card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.about-icon { display: block; color: var(--accent); }
.about-card h2 { margin: 20px 0 12px; font: 650 1.75rem/1.15 var(--sans); letter-spacing: -.03em; }
.about-card p { max-width: 440px; margin-bottom: 22px; color: var(--ink-2); }
.about-card p.about-note { margin: 20px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }

.feedback-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.feedback-section h3 { margin: 0 0 6px; font: 650 1.1rem/1.3 var(--sans); }
.feedback-section p { margin: 0 0 14px; color: var(--ink-2); font-size: .92rem; }
.download-support .feedback-section .button { margin-top: 0; }

/* Footer, with the app's status bar underneath */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding-block: 0 28px; font: .75rem/1.4 var(--mono); color: var(--muted); }
.footer .product-credit, .footer-credit .product-credit { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; padding: 9px 16px 9px 10px; border: 1px solid #1d2230; border-radius: 999px; background: #000; color: #fff; font: 600 13.5px/1.4 var(--sans); white-space: nowrap; text-decoration: none; transition: transform .15s; }
:is(.footer, .footer-credit) .product-credit:hover { color: #fff; transform: translateY(-1px); }
.product-credit img { display: block; flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.statusbar { border-top: 1px solid var(--line); background: var(--bg-2); font: .72rem/1 var(--mono); color: var(--muted); }
.statusbar .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 10px; }
.statusbar .grow { flex: 1; }
.statusbar i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--up); vertical-align: 1px; }

/* Inner pages: page head, docs layout, tables */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); max-width: 18ch; }
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.doc.single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 92px; display: grid; gap: 4px; font-size: .9rem; }
.toc strong { margin-bottom: 6px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc a { padding: 3px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { min-width: 0; max-width: 760px; }
.prose section { padding-block: 8px 28px; scroll-margin-top: 92px; }
.prose section + section { border-top: 1px solid var(--line); padding-top: 28px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.prose h3 { margin: 22px 0 6px; font: 650 1.08rem/1.35 var(--sans); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul + p, .prose .table-wrap + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.note { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); }
.prompt { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: .86rem/1.6 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tide-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.tide-table th, .tide-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tide-table thead th { font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.tide-table td { color: var(--ink-2); }
.tide-table td:first-child { color: var(--ink); font-weight: 550; }
.tide-table tbody tr:last-child > * { border-bottom: 0; }
.tide-table code { background: none; padding: 0; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 500 .78rem/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.status.now { color: var(--up); }
.status.now::before { background: var(--up); }

/* Download page. As on the other Protomota app sites, the support card and the
   download sit side by side: support card on the left, download on the right. On narrow
   screens they stack: title, support card, download. */
.download-intro {
  display: grid; grid-template-columns: minmax(0, 432px) minmax(0, 1fr);
  grid-template-areas: "card head" "card get";
  column-gap: clamp(40px, 6vw, 88px); align-items: center;
  max-width: 1040px; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px);
  text-align: left;
}
.download-head { grid-area: head; align-self: end; }
.download-intro h1 { max-width: 16ch; margin-inline: 0; font-size: clamp(2.7rem, 5.6vw, 4.4rem); }
.download-intro .lead { margin-inline: 0; max-width: 36ch; text-wrap: balance; }
.download-get { grid-area: get; align-self: start; margin-top: 32px; }
.download-button {
  min-height: 62px; padding: 14px 32px; gap: 12px; border-radius: 14px;
  font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 14px 44px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.download-button svg { margin-top: -3px; }
.download-get .fineprint + .fineprint { margin-top: 4px; }
.download-support {
  grid-area: card; position: relative; overflow: hidden;
  padding: 30px 30px 28px;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--surface);
  box-shadow: var(--shadow);
}
.download-support::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(to right, var(--accent), transparent 85%); opacity: .8; }
.support-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--accent); }
.download-support h2 { font: 650 1.6rem/1.15 var(--sans); letter-spacing: -.03em; text-wrap: initial; }
.download-support h2 span { display: block; color: var(--accent); }
.support-copy { margin-top: 12px; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.download-support .button { min-height: 44px; margin-top: 20px; padding: 8px 20px; border-radius: 999px; font-size: .92rem; }
.support-note { margin-top: 14px; font-size: .9rem; line-height: 1.45; font-weight: 500; color: var(--ink); }
.download-guide { max-width: 1040px; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); padding-bottom: clamp(40px, 6vw, 64px); }
.download-guide h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.download-guide .install-steps p { margin-block: 8px 0; }
.download-guide > p { max-width: 70ch; margin-top: 16px; color: var(--ink-2); }
.download-verification { margin: 20px 0 0; color: var(--ink-2); }
.download-verification summary { cursor: pointer; color: var(--ink); font-weight: 550; }
.download-verification p { margin-top: 10px; }
.download-verification code { display: inline-block; margin-top: 8px; overflow-wrap: anywhere; }

/* Missing page */
.missing-page { display: flex; min-height: 100svh; flex-direction: column; }
.missing-page main { flex: 1 0 auto; }
.missing-editor .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Share pill (2026-11-21), behavior in assets/protomota-share.js */
.pm-share-btn.bk-share { --pm-share-accent: var(--accent); --pm-share-line: color-mix(in srgb, var(--accent) 60%, transparent); --pm-share-glow: color-mix(in srgb, var(--accent) 18%, transparent); --pm-share-glow-hover: color-mix(in srgb, var(--accent) 34%, transparent); color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); height: 46px; padding: 0 22px 0 18px; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.wide { grid-column: span 1; }
  .split, .agent { grid-template-columns: minmax(0, 1fr); }
  .gw-body { grid-template-columns: 196px minmax(0, 1fr); }
  .connect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donutrow { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .toc strong { width: 100%; margin-bottom: 0; }
}
@media (max-width: 900px) {
  .download-intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "get"; max-width: 560px; padding-top: 36px; text-align: center; }
  .download-intro h1, .download-intro .lead { margin-inline: auto; }
  .download-intro .lead { margin-top: 14px; max-width: 56ch; }
  .download-support { margin-top: 24px; padding: 18px 18px 16px; border-radius: 16px; text-align: left; }
  .support-icon { display: none; }
  .download-support h2 { font-size: 1.1rem; line-height: 1.3; }
  .download-support h2 span { display: inline; }
  .support-copy { margin-top: 6px; font-size: .9rem; line-height: 1.5; }
  .download-support .button { width: 100%; min-height: 42px; margin-top: 14px; }
  .support-note { margin-top: 10px; text-align: center; font-size: .875rem; }
  .download-get { margin-top: 16px; }
  .download-button { width: 100%; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .nav nav a.nav-hide { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { padding: 22px 16px 22px 0; }
  .facts div + div { padding-left: 16px; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento, .trio, .about-protomota { grid-template-columns: minmax(0, 1fr); }
  .about-card { padding: 24px 20px; }
  .install-steps li { padding: 18px; }
  .connect { grid-template-columns: minmax(0, 1fr); }
  /* The preview: the accounts become a scrolling row above the dashboard. */
  .gw-title { gap: 10px; padding: 9px 12px; }
  .sync span { display: none; }
  .tabs button { padding: 5px 10px; }
  .gw-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .gw-side { flex-direction: row; gap: 6px; padding: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--w-line); scrollbar-width: none; }
  .gw-side::-webkit-scrollbar { display: none; }
  .side-label { display: none; }
  .acct { width: auto; flex: none; padding: 7px 10px; }
  .acct .spark { display: none; }
  .gw-main { padding: 16px 14px 14px; }
  .big { font-size: 32px; }
  .nw-head { flex-direction: column; }
  .txs li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .txs .dt, .txs .tag { display: none; }
  .donutrow { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .donut { width: 190px; }
  .legend { width: 100%; }
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .phone-screen { min-height: 0; }
}
@media (max-width: 420px) {
  .nav nav a.nav-hide-sm { display: none; }
  .chooser #look-label, .chooser #theme-label { display: none; }
  .chooser button { padding: 4px 9px; }
  .seg button { padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.missing-hero { padding-bottom: clamp(48px, 7vw, 84px); }
.missing-hero h1 { max-width: 17ch; }
.missing-hero img { margin-inline: auto; margin-bottom: 23px; }

/* Consent banner colors for this site. assets/analytics.css stays as shared; these win by specificity. */
body .analytics-choice { --ga-bg: var(--surface); --ga-text: var(--ink); --ga-muted: var(--ink-2); --ga-line: var(--line-2); --ga-accent: var(--fill); --ga-accent-ink: var(--fill-ink); box-shadow: var(--shadow); }

/* Hero title on two lines; no glow behind the download intro. */
.hero h1 em { display: block; }
.hero h1 { max-width: 18ch; }
.download-intro::before { display: none; }

/* Brand edge: the icon's five bars as a strip above the footer. */
body > footer { position: relative; }
body > footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 6px; background: linear-gradient(to right, var(--band-1) 0 20%, var(--band-2) 20% 40%, var(--band-3) 40% 60%, var(--band-4) 60% 80%, var(--band-5) 80%); pointer-events: none; }

/* Cards size to their content: no stretched newsletter card. */
.about-protomota { align-items: start; }

/* The shared Protomota block's brand icons, without inline styles. */
.brand-ico svg { display: block; }
