:root {
  /* Default dark theme: the original charcoal palette, lit in electroluminescent aqua where it used to be green */
  --bg: #171717;
  --surface: #1C1C1C;
  --raised: #232323;
  --ink: #EDEDED;
  --ink-bright: #FAFAFA;
  --muted: #A0A0A0;
  --line: #2E2E2E;
  --bloom: #3FF2D6;        /* EL aqua: marks, links, active states */
  --bloom-strong: #0A4A42; /* deep teal button fill */
  --primary-border: #3FF2D6;
  --bloom-soft: rgba(63, 242, 214, 0.10);
  --on-accent: #FAFAFA;
  --leaf: #3FF2D6;
  --amber: #F1A10D;
  --amber-ink: var(--amber); /* amber used as text; light mode darkens it so it stays readable on white */
  --wilt: #4D4D4D;
  --danger: #F2785C;
  --danger-strong: #E54D2E;
  --on-danger: #FAFAFA;
  --seg-bots: #FF5A3C;     /* ring: likely bots in the red-orange needle of the first EL dark mode */
  --c-content: #8DF5E4;
  --c-active: #B4B4B4;
  --c-vouched: #6B8F7E;
  --shadow: rgba(0, 0, 0, 0.6);
  --r-control: 3px; /* buttons, inputs, chips. Containers are square; only avatars and data dots are round. */
  --display: "Bricolage Grotesque", "Bricolage Fallback", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Inter Fallback", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
/* While the web fonts load, text is drawn in the device's Arial scaled to the same size as Inter and Bricolage
   (measured in Chromium), so pages don't jump when the real font arrives. Once it has loaded nothing changes: the fallback
   only covers the characters the web fonts have (fonts.css), so anything else, like an arrow, still comes from the system font. */
@font-face { font-family: "Inter Fallback"; font-weight: 100 600; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  size-adjust: 107.3%; ascent-override: 90.3%; descent-override: 22.5%; line-gap-override: 0%;
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Fallback"; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 102.5%; ascent-override: 94.5%; descent-override: 23.5%; line-gap-override: 0%;
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Fallback"; font-weight: 100 600; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  size-adjust: 95.9%; ascent-override: 97%; descent-override: 28.2%; line-gap-override: 0%;
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Fallback"; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 92%; ascent-override: 101.1%; descent-override: 29.3%; line-gap-override: 0%;
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
/* The homepage headline's Instrument Serif gets the same treatment: Times (or Liberation Serif, its metric twin) at 81%,
   so "See who's really following you on X." takes the same width and breaks on the same lines before the font arrives. */
@font-face { font-family: "Instrument Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("LiberationSerif-Regular"), local("Tinos");
  size-adjust: 81.05%; ascent-override: 122.15%; descent-override: 38.25%; line-gap-override: 0%;
  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; }
/* Light: fresh and clean. A cool off-white page, white cards with soft hairlines, near-black text, and one calm
   blue for every action, link and selection. The rings and charts keep their data colors. */
:root[data-theme="light"] {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --ink: #1B2233;
  --ink-bright: #0E1525;
  --muted: #5E6778;
  --line: #E3E7EE;
  --bloom: #2F5BD3;
  --bloom-strong: #2F5BD3;
  --primary-border: #2F5BD3;
  --bloom-soft: rgba(47, 91, 211, 0.08);
  --on-accent: #FFFFFF;
  --leaf: #15935C;         /* data only: the green, amber, red and gray of the rings and charts */
  --amber: #F1A10D;
  --amber-ink: #8A5600;    /* the same yellow, dark enough to read as text on white */
  --wilt: #C7CCD6;
  --danger: #C8381C;
  --danger-strong: #C8381C;
  --on-danger: #FFFFFF;
  --seg-bots: #D13F22;
  --c-content: #54C28F;
  --c-active: #8A8F99;
  --c-vouched: #9DBFAE;
  --shadow: rgba(16, 24, 40, 0.10);
  color-scheme: light;
}
:root[data-theme="light"] body:not(:has(.lp-sky)) { background: var(--bg); }
/* cards lift off the page with a whisper of shadow instead of heavy borders */
:root[data-theme="light"] :is(.tile, .an-card, .glance-card, .plan, .table, .wrapup-card, .help-card, .lock-card) {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04); }
/* the side panel is plain white; the open section gets a soft blue band and blue text */
:root[data-theme="light"] :is(.side, .bs-side) { position: sticky; isolation: isolate; background: #FFFFFF; border-right-color: var(--line); }
/* the homepage's daytime mountain at the foot of the sidebar, like dark and Vaporwave, washed in white so the account links stay readable */
:root[data-theme="light"] :is(.side, .bs-side)::before { content: ""; position: absolute; inset: auto 0 0; height: 560px; z-index: -1; pointer-events: none;
  background: url(/static/img/hero/light-land.svg) left -14px bottom -84px / 900px auto no-repeat; }
/* the white wash is its own layer, over both the mountain and the bear's iceberg, like morning mist on a lake */
:root[data-theme="light"] :is(.side, .bs-side)::after { content: ""; position: absolute; inset: auto 0 0; height: 560px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.72) 78%, rgba(255, 255, 255, 0.55)); }
@media (max-width: 860px) { :root[data-theme="light"] :is(.side, .bs-side)::before, :root[data-theme="light"] :is(.side, .bs-side)::after { display: none; } }
:root[data-theme="light"] .nav { color: #4A5366; }
:root[data-theme="light"] .nav:hover { color: var(--ink); background: #F1F4F9; }
:root[data-theme="light"] .nav.on { color: var(--bloom); background: var(--bloom-soft); }
:root[data-theme="light"] .pill { background: #EEF2FB; color: #2F5BD3; font-weight: 700; }
:root[data-theme="light"] .tag.one { background: #EEF2FB; }

:root[data-theme="vapor"] {
  /* Vaporwave: dusk purple, hot pink, cyan, mint, pale yellow */
  --bg: #1A0B2E;
  --surface: rgba(38, 17, 66, 0.82);
  --raised: #2D1452;
  --ink: #F3E6FF;
  --ink-bright: #FFFFFF;
  --muted: #B89CDB;
  --line: #4B2A7B;
  --bloom: #FF71CE;
  --bloom-strong: #FF71CE;
  --primary-border: #FF71CE;
  --bloom-soft: rgba(255, 113, 206, 0.14);
  --on-accent: #1A0B2E;
  --leaf: #01CDFE;
  --amber: #FFFB96;
  --wilt: #6F5A94;
  --danger: #FF6B8B;
  --danger-strong: #FF4F7B;
  --on-danger: #1A0B2E;
  --seg-bots: #FF71CE;
  --c-content: #B967FF;
  --c-active: #05FFA1;
  --c-vouched: #FFFB96;
  --shadow: rgba(10, 0, 30, 0.6);
  color-scheme: dark;
}
:root[data-theme="vapor"] body {
  background:
    linear-gradient(180deg, #1A0B2E 0%, #2A0E4A 55%, #4A1360 80%, #7A1F6E 100%) fixed;
}
/* Perspective grid along the bottom of the screen */
:root[data-theme="vapor"] body::before {
  content: ""; position: fixed; left: -50%; right: -50%; bottom: 0; height: 42vh; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 113, 206, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.28) 1px, transparent 1px);
  background-size: 60px 40px;
  transform: perspective(300px) rotateX(60deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
:root[data-theme="vapor"] :is(.side, .bs-side) { background: rgba(26, 11, 46, 0.85); }
:root[data-theme="vapor"] :is(.side, .bs-side) { position: sticky; isolation: isolate; }
/* the homepage's wireframe mountain stands at the foot of the side panel, like light and dark */
:root[data-theme="vapor"] :is(.side, .bs-side)::before { content: ""; position: absolute; inset: auto 0 0; height: 560px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(26, 11, 46, 0) 55%, rgba(26, 11, 46, 0.6) 80%, rgba(26, 11, 46, 0.45)),
    url(/static/img/hero/vapor-land.svg) left -14px bottom -84px / 900px auto no-repeat; }
@media (max-width: 860px) { :root[data-theme="vapor"] :is(.side, .bs-side)::before { display: none; } }
:root[data-theme="vapor"] h1 { text-shadow: 1.5px 1.5px 0 #B967FF, 3px 3px 0 rgba(1, 205, 254, 0.5); }
:root[data-theme="vapor"] .brand { color: #01CDFE; text-shadow: 0 0 12px rgba(1, 205, 254, 0.6); }
:root[data-theme="vapor"] .btn.primary { box-shadow: 0 0 16px rgba(255, 113, 206, 0.45); }
:root[data-theme="vapor"] .ring { filter: drop-shadow(0 0 10px rgba(255, 113, 206, 0.35)); }
/* Dark: backlit like a gauge cluster. Aqua glows, the needle color glows red-orange. */
:is(:root:not([data-theme]), :root[data-theme="dark"]) body { background: var(--bg); }
:is(:root:not([data-theme]), :root[data-theme="dark"]) { --chart2: #FF5A3C; }   /* the red-orange needle from the first EL dark mode */
/* a second series on a chart (a compared metric, replies next to posts): warm against the accent in each theme */
:root[data-theme="light"] { --chart2: #E0731F; }
:root[data-theme="vapor"] { --chart2: #01CDFE; }
:is(:root:not([data-theme]), :root[data-theme="dark"]) :is(.side, .bs-side) { background: rgba(23, 23, 23, 0.9); }
:is(:root:not([data-theme]), :root[data-theme="dark"]) :is(.side, .bs-side) { position: sticky; isolation: isolate; }
/* the homepage mountain glows at the foot of the side panel, its peak in the open space below the menu */
:is(:root:not([data-theme]), :root[data-theme="dark"]) :is(.side, .bs-side)::before { content: ""; position: absolute; inset: auto 0 0; height: 560px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(23, 23, 23, 0) 55%, rgba(23, 23, 23, 0.75) 78%, rgba(23, 23, 23, 0.55)),
    url(/static/img/hero/dark-land.svg) left -14px bottom -84px / 900px auto no-repeat; }
@media (max-width: 860px) { :is(:root:not([data-theme]), :root[data-theme="dark"]) :is(.side, .bs-side)::before { display: none; } }


* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; color: var(--ink-bright); }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0.35rem 0; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.85rem; }
[hidden] { display: none !important; }
button[aria-busy="true"] { opacity: 0.6; cursor: progress; }
/* While a background task runs, the buttons that would start another one wait for it */
body.job-running :is(#find-go, #find-check, #topics-run, #vis-run, #refresh-list, #wrapup-run, [data-run], [data-refresh-followers]) { opacity: 0.6; pointer-events: none; }
:focus-visible { outline: 3px solid var(--bloom); outline-offset: 2px; }
img { max-width: 100%; }

/* Logo: a sun whose rays double as a radial bar chart; Vaporwave swaps in a striped sunset sun */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: inline-flex; width: 28px; height: 28px; flex: none; }
.logo.big { width: 76px; height: 76px; }
.mark { width: 100%; height: 100%; }
.mark.sun { fill: var(--bloom); stroke: var(--bloom); }
.mark.sun .rays { stroke-width: 3.2; }
.mark.vapor-sun { display: none; }
:root[data-theme="vapor"] .mark.sun { display: none; }
:root[data-theme="vapor"] .mark.vapor-sun { display: block; filter: drop-shadow(0 0 6px rgba(255, 113, 206, 0.55)); }

/* Buttons & inputs */
.btn {
  font: 700 0.95rem var(--body); padding: 0.55rem 1rem; border-radius: var(--r-control);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.btn { transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease, filter 0.12s ease; }
.btn:hover:not(:disabled):not(.disabled) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
.btn:active:not(:disabled):not(.disabled) { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .nav:focus-visible, .th:focus-visible, .link:focus-visible { outline: 2px solid var(--bloom); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active:not(:disabled) { transform: none; } }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--bloom-strong); border-color: var(--primary-border); color: var(--on-accent); }
.btn.danger { background: var(--danger-strong); border-color: var(--danger-strong); color: var(--on-danger); }
.btn.lg { padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.link { background: none; border: 0; padding: 0.25rem; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--ink); }
select { cursor: pointer; transition: border-color 0.12s ease; }
select:hover:not(:disabled) { border-color: var(--ink); }
input[type=search], input[type=text], input[type=number], input[type=date], select {
  font: inherit; padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--surface); color: var(--ink);
}
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* Sign in */
.signin { min-height: 100%; display: grid; place-items: center; padding: 2rem; }
.signin-inner { max-width: 30rem; }
.signin h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 1.5rem 0 1rem; }
.signin p { font-size: 1.1rem; margin-bottom: 1.75rem; }

/* Shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.5rem 1rem; border-right: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font: 800 1.12rem var(--display); padding: 0 0.5rem; white-space: nowrap; }
.side > a.brand { color: inherit; text-decoration: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin: 0 -1rem; }
.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; text-align: left;
  font: 700 0.98rem var(--body); color: var(--muted); background: none; border: 0;
  padding: 0.6rem 0.75rem 0.6rem 1.5rem; border-left: 3px solid transparent; cursor: pointer;
}
.nav:hover { color: var(--ink); background: var(--bg); }
.nav.on { color: var(--ink); background: var(--bloom-soft); border-left-color: var(--bloom); }
.pill { font-size: 0.78rem; background: var(--bloom-strong); color: var(--on-accent); border-radius: 2px; padding: 0 0.4rem; }
.pill:empty { display: none; }
.nav-mark { display: none; }
.me { margin-top: auto; display: grid; grid-template-columns: 36px 1fr; gap: 0.25rem 0.6rem; align-items: center; padding: 0 0.5rem; }
.me img { width: 36px; height: 36px; border-radius: 50%; background: var(--line); object-fit: cover; flex: none; }
.me strong { display: block; font-size: 0.9rem; }
.me span { font-size: 0.82rem; color: var(--muted); }
.me .link { grid-column: 1 / -1; justify-self: start; font-size: 0.85rem; }
.me-x { display: contents; color: inherit; text-decoration: none; }   /* the photo, name and handle open the account's X profile; the grid lays them out as before */
.me-x[href]:hover strong { text-decoration: underline; }

.main { min-width: 0; padding: 2.5rem clamp(1rem, 4vw, 3.5rem) 7rem; max-width: 1680px; width: 100%; }

/* Hero ring: the one bold element */
.hero > *, .split > *, .cleanup-grid > * { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 2.5rem; align-items: center; }
.ring-wrap { position: relative; aspect-ratio: 1; }
.ring { width: 100%; height: 100%; overflow: visible; }
.ring .seg { transition: opacity 0.2s; cursor: pointer; }
.ring .seg:hover { opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .ring.grow .seg { animation: bloom 0.9s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes bloom { from { stroke-dasharray: 0 999; } }
}
/* The bottom padding lifts the number and subtitle a little above centre, so a two-line subtitle clears the ring */
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding-bottom: 9%; }
.ring-center strong { color: var(--ink-bright); font: 800 clamp(2.2rem, 5vw, 3.2rem) var(--display); line-height: 1; }
.ring-center span { color: var(--muted); font-size: 0.9rem; max-width: 9rem; margin: 0.3rem auto 0; }
.hero-text h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.hero-text > p { max-width: 36rem; font-size: 1.05rem; }
/* At most two columns (2x2), dropping to one (4x1) when a column would be narrower than 190px */
.legend { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(190px, calc((100% - 1.5rem) / 2))), 1fr)); gap: 0.5rem 1.5rem; }
.legend button {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 0.6rem; align-items: center; width: 100%;
  background: none; border: 0; padding: 0.35rem 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--line);
}
.legend i { width: 14px; height: 14px; border-radius: 50%; }
.legend b { font-variant-numeric: tabular-nums; }
/* Free plan: the follower groups an X archive can't fill, barely visible under a small note saying why */
.legend.locked { position: relative; }
.legend.locked > li:not(.legend-note) { opacity: 0.12; }
.legend.locked button { cursor: default; }
.legend-note {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(22rem, 100%);
  background: var(--surface); border: 1px solid var(--amber); border-radius: 6px; padding: 0.5rem 0.75rem;
  font-size: 0.82rem; line-height: 1.4; color: var(--ink); text-align: center;
}

/* Steps: the sync and scan actions, one per row */
/* The rows share one grid (subgrid), so both button groups are as wide as the wider one and their buttons stretch to fill it */
.steps { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(17rem, max-content) 1fr; }
.steps li {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; gap: 1.25rem; align-items: center;
  padding: 1.1rem 1.25rem; border-top: 1px solid var(--line);
}
.steps .step-act { display: grid; gap: 0.5rem; }   /* buttons first, the copy explains them */
.steps .step-act .row > * { flex: 1 1 auto; }
.steps .step-act .row > select { flex-grow: 0; }   /* the Scan button takes the extra room, not the picker */
.steps .step-act .stamp { contain: inline-size; }   /* the status lines never widen the button group; long ones wrap or shrink */
.steps .stamp-line { display: block; white-space: nowrap; }
.steps .step-act.tight .stamp { font-size: 0.78rem; }   /* a status line wider than the buttons: both rows shrink together */
.steps li:first-child { border-top: 0; }
.stamp { font-size: 0.85rem; color: var(--leaf); }
:root[data-theme="light"] .stamp { color: var(--bloom); }   /* light mode keeps green for data, so status text takes the blue accent */
.stamp:empty { display: none; }
.warn { font-size: 0.85rem; color: var(--amber-ink); }
.admin-warn { margin-top: 0.75rem; padding: 0.6rem 0.8rem; border: 1px solid var(--amber); border-radius: 6px; }
.admin-warn p { margin: 0.2rem 0; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.chart { background: var(--surface); border: 1px solid var(--line); padding: 1rem; min-height: 200px; }
.chart svg { width: 100%; height: 200px; display: block; }
.events { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; overscroll-behavior: contain; }
.events li.ev-day { display: block; padding: 0.7rem 0 0.3rem; color: var(--muted);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.events li.ev-more { justify-content: center; border-bottom: 0; }
.events li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.events .gained { color: var(--leaf); }
.events .lost { color: var(--danger); }
.events li > .gained, .events li > .lost { flex: none; margin-left: auto; text-align: right; white-space: nowrap; }   /* "4 days ago" stays on one line, flush right */
.events li > a, .events li > span:first-child { min-width: 0; overflow-wrap: break-word; }
/* Analytics: the two cards sit as far apart side by side as cards do top to bottom, and the unfollowers list scrolls
   up and down only, with its scrollbar against the card's right edge and a little room before the times. */
.split.an-split { gap: 1.25rem; }
#an-unfollowers { overflow-x: hidden; overflow-y: auto; margin-right: -1.25rem; padding-right: 0.9rem; scrollbar-gutter: stable; }
#an-unfollowers li { flex-wrap: wrap; row-gap: 0.1rem; }
#an-unfollowers .reason-gone { order: 3; flex-basis: 100%; }   /* "deactivated or suspended" goes on its own line under the name */
.empty { color: var(--muted); padding: 1rem 0; }
.po-err { color: var(--danger-strong); margin: .25rem 0 .75rem; }

/* Lists */
.list-head { margin-bottom: 1.25rem; }
.list-head p { max-width: 44rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
  font: 700 0.9rem var(--body); padding: 0.4rem 0.8rem; border-radius: var(--r-control); border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:where(:root[data-theme="light"]) .chip.on { background: var(--bloom); color: #FFFFFF; border-color: var(--bloom); }   /* a selected filter in the same blue as the other selections */
.chip span { font-weight: 400; margin-left: 0.25rem; }
.toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.toolbar input[type=search] { flex: 1 1 17rem; min-width: 0; }   /* wide enough for the whole placeholder; wraps instead of clipping it */
.check { display: flex; gap: 0.4rem; align-items: center; font-size: 0.92rem; }
.note { background: var(--bloom-soft); border: 1px solid var(--line); padding: 0.75rem 1rem; font-size: 0.93rem; }

.table { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.acct {
  display: grid; grid-template-columns: 24px 44px minmax(0, 1.4fr) minmax(0, 1fr) 210px auto; gap: 0.9rem;
  align-items: center; padding: 0.8rem 1rem; border-top: 1px solid var(--line);
}
.acct:first-child { border-top: 0; }
.acct.sel { background: var(--bloom-soft); }
.acct img { width: 44px; height: 44px; border-radius: 50%; background: var(--line); }
.who { min-width: 0; }
.who a { color: var(--ink); font-weight: 700; text-decoration: none; }
.who a:hover { text-decoration: underline; }
.who .handle { color: var(--muted); font-size: 0.9rem; }
.who .bio { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats { font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stats b { color: var(--ink); font-weight: 700; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0 0.45rem; border-radius: 2px; margin-right: 0.25rem; }
.tag.mutual { background: color-mix(in srgb, var(--leaf) 18%, transparent); color: var(--leaf); }
.tag.one { background: var(--bg); color: var(--muted); }
.score { font-size: 0.82rem; }
.meter { height: 6px; background: var(--bg); overflow: hidden; margin: 0.2rem 0 0.3rem; }
.meter i { display: block; height: 100%; }
.reasons { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.keep { font-size: 0.85rem; }
.keep.on { color: var(--leaf); font-weight: 700; text-decoration: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }

.bulk {
  background: var(--raised);
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 4.5rem; z-index: 20;
  display: flex; gap: 0.9rem; align-items: center; border: 1px solid var(--muted);
  padding: 0.6rem 0.75rem 0.6rem 1.1rem; box-shadow: 0 8px 30px var(--shadow);
}
.bulk #bulk-n { font-weight: 700; }

/* Cleanup */
.drop {
  display: grid; gap: 0.3rem; place-items: center; text-align: center; padding: 2rem;
  border: 2px dashed var(--line); background: var(--surface); cursor: pointer;
}
.drop.over { border-color: var(--bloom); background: var(--bloom-soft); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cleanup-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; margin-top: 1.5rem; }
.filters { display: grid; gap: 0.9rem; align-content: start; }
.filters label { display: grid; gap: 0.25rem; font-size: 0.92rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 1.25rem; }
.filters legend { font-weight: 700; margin-bottom: 0.4rem; }
.filters .radio { display: flex; gap: 0.4rem; align-items: center; }
.tweet-only { display: grid; gap: 0.9rem; }
.big-count { font: 800 1.6rem var(--display); }
.preview { list-style: none; padding: 0; margin: 0 0 1.25rem; max-height: 380px; overflow: auto; background: var(--surface); border: 1px solid var(--line); }
.preview:empty { display: none; }
.preview li { padding: 0.65rem 0.9rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.preview li:first-child { border-top: 0; }
.preview small { color: var(--muted); display: block; }
#delete-zone { display: grid; gap: 0.6rem; max-width: 22rem; }
#delete-zone label { display: grid; gap: 0.25rem; }

/* Task bar */
.taskbar {
  position: fixed; left: 232px; right: 0; bottom: 0; z-index: 30; display: flex; gap: 1rem; align-items: center;
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem); background: var(--ink); color: var(--bg);
}
.taskbar .bar { width: 160px; height: 6px; background: color-mix(in srgb, var(--bg) 25%, transparent); overflow: hidden; flex: none; }
.taskbar .bar i { display: block; height: 100%; width: 0; background: var(--bloom); transition: width 0.4s; }
.taskbar span { flex: 1; font-size: 0.93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taskbar .link { color: var(--bg); }
.up-prog { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; font-size: 0.9rem; }
.up-bar { flex: 1; max-width: 360px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--bloom); transition: width 0.2s; }

dialog { border: 1px solid var(--line); padding: 1.5rem; max-width: 30rem; background: var(--raised); color: var(--ink); }
dialog::backdrop { background: rgba(5, 8, 6, 0.6); }
dialog h2 { margin: 0 0 0.75rem; }
dialog p { margin-bottom: 1.25rem; }

.toast {
  position: fixed; top: 1rem; right: 1rem; z-index: 50; max-width: 24rem; padding: 0.75rem 1rem;
  background: var(--ink); color: var(--bg); opacity: 0; transform: translateY(-8px); transition: 0.25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--danger-strong); color: var(--on-danger); }

/* Mobile */
@media (max-width: 860px) {
  /* auto 1fr: the header row never stretches when a page is shorter than the screen (it did on a short Analytics page) */
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { min-width: 0; }
  html { scroll-padding-top: 125px; }   /* jumps to a section land below the sticky header */
  /* Swipe down on the header to switch it between sticky and scrolling away (remembered in this browser); no button, no bar */
  html.header-loose { scroll-padding-top: 1rem; }
  :root.header-loose:is([data-theme], :not([data-theme])) .side { position: relative; }   /* outranks each theme's ".side { position: sticky }", which used to win, so the header never let go */
  .side { touch-action: pan-x; }   /* vertical drags on the header are the pull gesture, not page scroll or pull-to-refresh */
  .side.pull-back { transition: transform 0.2s ease; }
  .side { position: sticky; top: 0; z-index: 40; align-self: start; align-content: flex-start; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  /* The sticky header is solid, so the page doesn't show through it as it scrolls underneath (same color it had at rest) */
  :is(:root:not([data-theme]), :root[data-theme="dark"]) .side { background: #171717; }
  :root[data-theme="vapor"] .side { background: #1A0B2E; }
  /* full-bleed: the tab row runs to both screen edges (the sidebar's 1rem side padding is pulled back out) */
  /* The tab row is a slider, like the calendar's months: one highlight glides between tabs as the row is swiped,
     the tabs fade out at both edges, and app.js opens whichever tab the row comes to rest on. It starts left-aligned. */
  .side nav { position: relative; flex-direction: row; overflow-x: auto; width: calc(100% + 2rem); order: 3; margin: 0 -1rem; padding: 0 1rem;
    overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; user-select: none; }
  /* Fade whichever edge has more tabs past it (so Analytics stays crisp at the left edge when the row is at the start) */
  .side nav.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 3.5rem), transparent); }
  .side nav.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 3.5rem), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 3.5rem), transparent); }
  .side nav.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 3.5rem, #000 calc(100% - 3.5rem), transparent); mask-image: linear-gradient(to right, transparent, #000 3.5rem, #000 calc(100% - 3.5rem), transparent); }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav.dragging, .side nav.dragging .nav { cursor: grabbing; }
  .nav { position: relative; z-index: 1; flex: none; padding: 0.5rem 0.75rem; border-left: 0; border-bottom: 3px solid transparent; }
  .nav { white-space: nowrap; }
  /* The highlight takes the width of the tab under it, growing or shrinking as it glides between tabs */
  .nav-mark { display: block; position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; pointer-events: none;
    background: var(--bloom-soft); box-shadow: inset 0 -3px 0 var(--bloom); }
  .side nav .nav, .side nav .nav:hover, .side nav .nav.on { background: none; border-bottom-color: transparent; }
  .side nav .nav.at { color: var(--ink); }
  :root[data-theme="light"] .side nav .nav.at { color: var(--bloom); }
  /* The menu already names the page, so the big page title above each page is left out (screen readers still get it) */
  .view > .list-head h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .me { margin: 0 0 0 auto; grid-template-columns: 32px auto; }
  .me div { display: none; }
  .me img { width: 32px; height: 32px; }
  .me .link { grid-column: auto; }
  .main { padding-top: 1.5rem; }
  .hero, .split, .cleanup-grid { grid-template-columns: 1fr; }
  .ring-wrap { max-width: 240px; margin: 0 auto; }
  .steps { grid-template-columns: fit-content(100%) minmax(0, 1fr); }
  .steps li { gap: 0.75rem; }
  .steps li > div:not(.step-act) { grid-column: 1 / -1; }
  .taskbar { left: 0; }
  .bulk { left: 1rem; right: 1rem; transform: none; flex-wrap: wrap; }
}

/* Theme toggle */
.theme-toggle { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; background: none; border: 1px solid var(--line); color: var(--muted);
  font: 700 0.85rem var(--body); padding: 0.4rem 0.7rem; border-radius: var(--r-control); cursor: pointer; margin: 0 0.5rem; align-self: flex-start; }
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 860px) {
  /* The top row (logo, picture, sign out, settings) never wraps: everything scales with the screen width instead,
     and the row has a fixed height, so the header is the same height on every page and at every width. */
  .side { flex-wrap: wrap; row-gap: 0.75rem; column-gap: clamp(0.35rem, 2.4vw, 0.75rem); }
  .side > .brand, .side > .me, .side > .theme-toggle { height: 36px; flex-wrap: nowrap; }
  .side > .brand { flex: 1 1 0; min-width: 0;   /* basis 0: the brand never forces the row to wrap; it takes the space left and truncates last */
                    padding: 0; gap: clamp(0.3rem, 1.8vw, 0.6rem); font-size: clamp(0.6rem, 4vw, 1.12rem); }
  .side > .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .side .logo { width: clamp(18px, 7vw, 28px); height: clamp(18px, 7vw, 28px); }
  .side .me { order: 1; flex: none; gap: clamp(0.3rem, 1.8vw, 0.6rem); }
  .side .me img { width: clamp(22px, 8vw, 32px); height: clamp(22px, 8vw, 32px); }
  .side .me .link { font-size: clamp(0.6rem, 3vw, 0.85rem); white-space: nowrap; }
  .side { padding-bottom: 0; }   /* the header's bottom line sits right at the bottom of the tab highlight */
  .side .theme-toggle { order: 2; flex: none; margin: 0; align-self: center; width: clamp(28px, 9vw, 34px); height: clamp(28px, 9vw, 34px); padding: 0; justify-content: center; }
  .side .theme-toggle svg { width: clamp(13px, 4.2vw, 16px); height: clamp(13px, 4.2vw, 16px); }
  /* the label stays for screen readers; on screen Settings is just the gear */
  .side .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Find & follow */
h2.first { margin-top: 0; }
.find-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.find-grid > * { min-width: 0; }
.find-source, .find-rules { align-self: start; background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; display: grid; gap: 0.85rem; align-content: start; }
.find-source .chips { margin: 0; }
textarea { width: 100%; font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--bg); color: var(--ink); resize: vertical; }
.rule { display: grid; grid-template-columns: 1fr 1.2fr 2.5rem; gap: 0.75rem; align-items: center; font-size: 0.95rem; }
.rule span { display: flex; align-items: center; gap: 0.5rem; }
.rule b { font: 800 1.1rem var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.rule input[type=range] { width: 100%; accent-color: var(--bloom); }
.rule-name { display: grid; gap: 0.25rem; font-size: 0.92rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.c-real { background: var(--leaf); } .c-active { background: var(--c-active); } .c-engages { background: var(--amber); }
.c-followback { background: var(--wilt); } .c-vouched { background: var(--c-vouched); } .c-content { background: var(--c-content); }
.how summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.how summary:hover { color: var(--ink); }
.how dl { margin: 0.75rem 0 0; display: grid; gap: 0.6rem; }
.how dt { font-weight: 700; display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
.how dd { margin: 0 0 0 1.1rem; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.find-summary { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }

.cand { display: grid; grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1.5fr) 190px; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border-top: 1px solid var(--line); }
.cand:first-child { border-top: 0; }
.cand img { width: 44px; height: 44px; border-radius: 50%; background: var(--line); }
.cand.done { opacity: 0.6; }
.fscore-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; }
.fscore-head b { font: 800 1.25rem var(--display); }
.stack { display: flex; gap: 3px; height: 8px; margin: 0.3rem 0 0.4rem; }
.stack > span { background: var(--bg); overflow: hidden; }
.stack > span > i { display: block; height: 100%; }
.breakdown { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.decide { width: 100%; font-weight: 700; }
.decide.follow { border-color: var(--leaf); color: var(--leaf); }
.decide.list { border-color: var(--amber); color: var(--amber-ink); }
.status { font-weight: 700; font-size: 0.9rem; }
.status.followed, .status.requested { color: var(--leaf); } .status.listed { color: var(--amber-ink); } .status.failed { color: var(--danger); }
.tag.private { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber-ink); }
@media (max-width: 860px) {
  .find-grid { grid-template-columns: 1fr; }
  .cand { grid-template-columns: 40px 1fr; }
  .cand > :nth-child(n+3) { grid-column: 2; }
}

.opt { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; align-items: start; }
.opt input[type=checkbox] { margin-top: 0.3rem; }
.opt strong { display: block; }
.opt .muted { font-size: 0.9rem; }
.opt select { padding: 0.1rem 0.3rem; font-size: 0.88rem; }
.paste summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.paste summary:hover { color: var(--ink); }
.paste[open] { display: grid; gap: 0.6rem; }
.paste[open] summary { margin-bottom: 0.2rem; }
.via { font-size: 0.82rem; color: var(--ink); margin-top: 0.25rem; }
.example { font-size: 0.82rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: 0.6rem; margin-top: 0.4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flags { font-size: 0.8rem; margin-top: 0.3rem; }
.flags.good { color: var(--leaf); } .flags.bad { color: var(--amber-ink); }
.opt.sub { margin-left: 1.6rem; margin-top: -0.35rem; }
.budget { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 700; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin: -0.25rem 0 0.25rem; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0.5rem 0.75rem 0.6rem;
  font: 700 0.95rem var(--body); color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--bloom); }
.tab-panel { display: grid; gap: 0.85rem; }
#list-settings { display: grid; gap: 0.85rem; }

/* Settings */
.settings { display: grid; gap: 1.25rem; min-width: min(26rem, 80vw); }
.settings h2 { margin: 0; }
.settings fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.settings legend { font-weight: 700; margin-bottom: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.theme-opt { display: grid; grid-template-columns: 18px 44px 1fr; gap: 0.75rem; align-items: center; padding: 0.7rem 0.8rem;
  border: 1px solid var(--line); cursor: pointer; }
.theme-opt:has(input:checked) { border-color: var(--bloom); background: var(--bloom-soft); }
.theme-opt strong { display: block; }
.theme-opt .muted { font-size: 0.88rem; }
.swatch { width: 44px; height: 30px; border: 2px solid; position: relative; }
.swatch i { position: absolute; right: 5px; bottom: 5px; width: 10px; height: 10px; border-radius: 50%; }

/* Sign-in consent */
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; margin-bottom: 1.25rem; text-align: left; }
.consent input { margin-top: 0.3rem; }
.consent a, .legal a, .side-legal a, .settings a { color: var(--bloom); }
.btn.disabled { opacity: 0.45; pointer-events: none; }
.side-legal { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; padding: 0 0.5rem; font-size: 0.75rem; margin: 0; }   /* four links fit on one line inside the sidebar, and wrap rather than run past its edge if text is enlarged */
.side-legal a { color: var(--muted); }

/* One-click row actions */
.row-acts { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.btn.sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.btn.outline-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: none; }
.btn.outline-danger:hover { border-color: var(--danger); }
.done-label { font-size: 0.88rem; font-weight: 700; color: var(--leaf); }
.suggest { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0 0.4rem; border-radius: 2px; margin-bottom: 0.3rem; }
.suggest.follow { color: var(--leaf); background: color-mix(in srgb, var(--leaf) 14%, transparent); }
.suggest.list { color: var(--amber-ink); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.suggest.skip { color: var(--muted); background: var(--bg); }

/* Settings account */
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 700; font-size: 0.92rem; }
.danger-zone[open] { display: grid; gap: 0.6rem; }

/* Admin */
.inv-result { display: flex; gap: 0.5rem; }
.inv-result input { flex: 1; }
.inv-list { display: grid; gap: 0.4rem; font-size: 0.88rem; max-height: 260px; overflow: auto; }
.inv-row { display: flex; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 170px; gap: 1rem; align-items: center; padding: 0.75rem 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.admin-row:first-child { border-top: 0; }

/* Legal pages */
.legal { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; line-height: 1.6; }
.legal h1 { margin: 1rem 0 0.25rem; }
.legal h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.3rem 0; }
.signin .fine { margin-top: 1rem; }
@media (max-width: 860px) { .admin-row { grid-template-columns: 1fr; gap: 0.4rem; } .row-acts { justify-content: flex-start; } }
.byok { display: grid; gap: 0.5rem; margin-bottom: 1rem; text-align: left; }
.byok a { color: var(--bloom); }
.byok input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.legal code { background: var(--surface); border: 1px solid var(--line); padding: 0.05rem 0.35rem; font-size: 0.9em; word-break: break-all; }
.signin .byok p { margin: 0; font-size: 0.95rem; }
.signin .byok .fine { margin: 0; }

/* ---- Account lists: sortable columns, no text bleeding ----
   The layout responds to the width of the list itself (container query), so it stacks before columns collide. */
#v-list { container-type: inline-size; }
.thead, .acct {
  display: grid; gap: 0.9rem; align-items: center; padding: 0.8rem 1rem;
  grid-template-columns: 44px minmax(0, 1.5fr) 96px 124px minmax(140px, 1fr) var(--acts-w, 180px);
}
/* Free plan rows carry Open on X, Keep and a locked Unfollow; give them room to sit in one row */
#v-list:has(.row-acts.free .unf-link) { --acts-w: 280px; }
.thead { padding-top: 0.55rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); background: var(--raised); }
.thead + .acct { border-top: 0; }
.thead > div { display: flex; align-items: center; min-height: 1.75rem; }
.th { display: inline-flex; align-items: center; gap: 0.3rem; height: 1.75rem; line-height: 1; background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 0.8rem var(--body); color: var(--muted); letter-spacing: 0.02em; text-align: left; }
.th:hover { color: var(--ink); }
.th.on { color: var(--ink); }
.th .arrow { font-size: 0.7rem; line-height: 1; color: var(--bloom); min-width: 0.7rem; display: inline-block; }
.thead .num-h { justify-content: flex-start; flex-direction: row-reverse; width: 100%; padding-right: 1.25rem; }
.who { min-width: 0; }
.who a.nm { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.handle-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.4rem; min-width: 0; }
.handle-line .handle { flex: 0 1 auto; max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.handle-line .tag { flex: none; }
.num { text-align: right; font-size: 0.9rem; font-variant-numeric: tabular-nums; min-width: 0; padding-right: 1.25rem; }
.num b { color: var(--ink); font-weight: 700; }
.num .sub { display: block; font-size: 0.78rem; color: var(--muted); }
.num .lbl { display: none; color: var(--muted); font-weight: 400; }
.toolbar #sort { display: none; }
.nums { display: contents; }
.acct .row-acts { flex-wrap: nowrap; }
.acct .reasons { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.score .lbl { display: none; }
.score b { font-size: 0.95rem; }

/* Below this the columns would squeeze the name and bio, so each row becomes a card with its buttons on the right */
@container (max-width: 960px) {
  .thead { display: none; }
  .score .lbl { display: inline; }
  .acct { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0.35rem 0.9rem; align-items: start; }
  .acct > img { grid-row: 1 / span 3; }
  .acct > .who, .acct > .nums, .acct > .score { grid-column: 2; }
  .acct > .row-acts { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .nums { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
  .num { text-align: left; }
  .num .lbl { display: inline; }
  .num .sub { display: inline; margin-left: 0.25rem; }
  .num .sub::before { content: "("; } .num .sub::after { content: ")"; }
  .num { padding-right: 0; }
  .toolbar #sort { display: block; }
}
/* Phones: not enough room to pin buttons beside the text, so they sit under the card */
@container (max-width: 520px) {
  .acct > .row-acts { grid-column: 2; grid-row: auto; margin-top: 0.3rem; }
  .acct > img { grid-row: auto; }
}
@media (max-width: 860px) { .side-legal { display: none; } }
/* Phones: filter buttons stretch so each row fills the width edge to edge; the search box gets its own full row
   so its placeholder isn't cut off, with Export CSV and the sort menu sharing the row below */
@container (max-width: 520px) {
  #chips { gap: 0.5rem; }
  #chips .chip { flex: 1 1 auto; text-align: center; }
  #chips .chip:first-child { flex-basis: 100%; }   /* "All" gets its own row on top, above the narrower filters */
  .toolbar input[type=search] { flex-basis: 100%; }
  .toolbar #sort { flex: 1 1 10rem; min-width: 0; width: auto; }
}

/* Home screen app on iPhone: stay clear of the notch/Dynamic Island and the home bar */
@supports (padding: env(safe-area-inset-top)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .side { padding-top: calc(1.5rem + env(safe-area-inset-top)); }
  .main { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .taskbar { padding-bottom: calc(0.8rem + env(safe-area-inset-bottom)); }
  .bulk { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .signin { padding-top: calc(2rem + env(safe-area-inset-top)); padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  .legal { padding-top: calc(2.5rem + env(safe-area-inset-top)); }
  @media (max-width: 860px) { .side { padding-top: calc(0.75rem + env(safe-area-inset-top)); } }
}
.note.handoff { display: grid; gap: 0.35rem; margin-top: 1rem; text-align: left; }
.note.handoff[hidden] { display: none; }
.note.handoff .link { justify-self: start; padding-left: 0; }

/* ---------------- Public homepage and guides ---------------- */
body.lp { min-height: 100%; overflow-x: clip; }   /* the full-width screens row can't push the page sideways */
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: calc(1.1rem + env(safe-area-inset-top, 0px)) 1.25rem 1.1rem; }
.lp-nav .brand { display: flex; align-items: center; gap: 0.6rem; font: 800 1.15rem var(--display); color: var(--ink-bright); text-decoration: none; }
.lp-nav nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.lp .lp-nav nav { margin-left: auto; }   /* links sit right, just before the Sign in / Open dashboard button */
.lp-nav .lp-account { white-space: nowrap; flex-shrink: 0; }
.lp-nav .lp-short { display: none; }
.nav-menu-btn { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--r-control); cursor: pointer;
  color: var(--ink); background: rgba(127, 127, 127, 0.16); border: 1px solid rgba(127, 127, 127, 0.28); }   /* the phone menu button; wider screens show the links instead */
.nav-menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 760px) {
  /* phones: one row, the logo on the left, the Sign in button on the right and a small menu button just left of Sign
     in; the links drop down from it, from the button's left edge to Sign in's right edge, with the same corners as
     Sign in (static/nav-menu.js opens and closes it). */
  .lp-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; position: relative; }
  .lp-nav .lp-account { grid-area: 1 / 3; justify-self: end; }
  .lp-nav .brand { justify-self: start; padding-left: 0; font-size: 1.3rem; } .lp-nav .brand .logo { width: 34px; height: 34px; }   /* a bigger logo */
  .lp-nav .nav-menu-btn { display: grid; grid-area: 1 / 2; justify-self: end; margin-right: -0.25rem; align-self: center; height: var(--acct-h, calc(2.2875rem + 2px)); width: var(--acct-h, calc(2.2875rem + 2px)); }   /* square, exactly as tall as Sign in (nav-menu.js measures it; the fallback is its height in Inter, so nothing moves when it does) */
  .lp-nav #lp-menu { display: none; position: absolute; z-index: 20; top: calc(100% + 0.4rem); left: var(--menu-x, 50%); right: var(--menu-r, 0);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0.35rem; border-radius: var(--r-control);
    background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
  .lp-nav.menu-open #lp-menu { display: flex; }
  .lp-nav #lp-menu a:not(.btn) { padding: 0.65rem 0.9rem; border-radius: var(--r-control); font-size: 1rem; }
  .lp-nav #lp-menu a:not(.btn):hover, .lp-nav #lp-menu a[aria-current="page"] { background: rgba(127, 127, 127, 0.14); }
}
@media (max-width: 400px) { .lp-nav .brand { font-size: 1.2rem; } }
@media (max-width: 400px) { .lp-nav .lp-long { display: none; } .lp-nav .lp-short { display: inline; } }   /* "Dashboard" fits beside the logo */
@media (max-width: 340px) { .lp-nav .brand { font-size: 0.95rem; gap: 0.45rem; } .lp-nav .lp-account { padding-left: 0.7rem; padding-right: 0.7rem; } }
.lp-nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.lp-nav nav a:not(.btn):hover, .lp-nav nav a[aria-current="page"] { color: var(--ink); }
.lp main { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 3.5rem 0 2.5rem; }
.lp-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 1.05; }
.lp-lede { font-size: 1.15rem; line-height: 1.6; max-width: 38rem; margin: 1.1rem 0 1.5rem; color: var(--ink); }
.lp-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lp-hero-art { display: grid; place-items: center; }
.lp-hero-art .logo.big { width: min(260px, 60vw); height: min(260px, 60vw); }
.lp-shot { margin: 0 0 3.5rem; border: 1px solid var(--line); background: var(--surface); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.lp-section h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-rows: 1fr; gap: 1rem; margin-top: 1.5rem; }   /* every card as tall as the tallest one */
.lp-grid article { background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; }
.lp-grid h3 { margin-bottom: 0.5rem; }
.lp-grid p, .lp-steps p { color: var(--muted); line-height: 1.55; margin: 0; }
/* Phones: the feature cards pile up as you scroll. Each one sticks a little below the one before it, so the next card
   slides up over it and only the edges of the earlier ones peek out above. The cards stay one height (from .lp-grid), so
   each one covers the one under it completely. The page's background sits under each card's
   own color so a card never shows the one beneath it. */
@media (max-width: 760px) {
  #features .lp-grid { grid-template-columns: 1fr; }   /* one column, so every card piles onto the one before it (two columns made them overlap side by side) */
  #features .lp-grid article { position: sticky; top: calc(1rem + var(--stack, 0) * 0.75rem);
    background: linear-gradient(var(--surface), var(--surface)), var(--bg); box-shadow: 0 -6px 16px -10px rgba(0, 0, 0, 0.35); }
  #features .lp-grid article:nth-child(2) { --stack: 1; } #features .lp-grid article:nth-child(3) { --stack: 2; }
  #features .lp-grid article:nth-child(4) { --stack: 3; } #features .lp-grid article:nth-child(5) { --stack: 4; }
  #features .lp-grid article:nth-child(6) { --stack: 5; }
}
.lp-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 880px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }   /* three across when they fit, otherwise one on top of the other (never two and one) */
.lp-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; }
.lp-steps li::before { content: counter(s); display: block; font: 800 1.05rem var(--display); color: var(--muted); margin-bottom: 0.3rem; }
.lp-steps h3 { margin-bottom: 0.4rem; color: var(--bloom); font-size: 1.4rem; line-height: 1.2; }   /* the number takes the text's color and the title the accent (pink in Vaporwave), so it marks what each step is */
.lp-guides ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.lp-grid article { display: flex; flex-direction: column; }
.lp-grid article .fine { margin: 0.6rem 0 0; font-size: 0.8rem; line-height: 1.45; }   /* the estimate note sits under the score in smaller type */
.lp-more { margin-top: auto; padding-top: 0.75rem; color: var(--bloom); font-weight: 700; font-size: 0.92rem; }   /* each feature's one guide, pinned to the card's bottom */
.lp-guides p { margin: 0; color: var(--muted); }
.lp-guides p a { margin-right: 0.5rem; }
.lp-guides a, .guide-list a { color: var(--bloom); font-weight: 700; }
.lp-faq { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.lp-faq-item { background: var(--surface); border: 1px solid var(--line); padding: 0.9rem 1.1rem; }
.lp-faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink-bright); }
.lp-faq-item p { color: var(--muted); line-height: 1.6; margin: 0.6rem 0 0; }
.lp-final { text-align: center; }
.lp-foot { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.lp-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.lp-foot a { color: var(--muted); }
.guide { padding-top: 1rem; }
.lp main.legal:not(.guide) { max-width: 44rem; }   /* terms, privacy and the rest keep a comfortable reading width under the full-width header */
.guide .crumbs { font-size: 0.9rem; color: var(--muted); }
.guide h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; }
.guide h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.guide li { margin: 0.4rem 0; line-height: 1.6; }
.guide-cta { margin-top: 3rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.guide-cta h2 { margin-top: 0; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.guide-list li { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.2rem; }
@media (max-width: 760px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .lp-hero-art { display: none; }
  .lp-nav nav { gap: 0.9rem; }
}
/* Homepage sky hero: a muted synthwave night (stars, the striped sun, wireframe mountains) behind the shared header,
   a big serif headline, and the dashboard peeking up from the bottom. The sky looks the same in every theme; the rest
   of the page below follows the theme as usual. */
.lp-sky { position: relative; overflow: hidden; isolation: isolate; container-type: inline-size; color: #fff; padding-bottom: 0; }
/* Every theme draws the same scene (tools/make_hero_art.py): the same mountain, right range, horizon and sun.
   Only the colors change, and Vaporwave adds its overlay (wireframe, striped sun, grid floor). Dark is the default. */
.lp-sky { --hero-sky: url(/static/img/hero/dark-sky.svg); --hero-land: url(/static/img/hero/dark-land.svg);
  --hero-land-narrow: url(/static/img/hero/dark-land-narrow.svg); --hero-berg: url(/static/img/hero/dark-iceberg.svg); --hero-berg2: url(/static/img/hero/dark-iceberg-flat.svg); --hero-berg2: url(/static/img/hero/dark-iceberg-flat.svg); --hero-sun: url(/static/img/hero/dark-sun.svg);
  --hero-top: #010307; --hero-base: #171717; --hero-scrim: rgba(1, 3, 7, 0.45); }
:root[data-theme="light"] .lp-sky { --hero-sky: url(/static/img/hero/light-sky.svg); --hero-land: url(/static/img/hero/light-land.svg);
  --hero-land-narrow: url(/static/img/hero/light-land-narrow.svg); --hero-berg: url(/static/img/hero/light-iceberg.svg); --hero-berg2: url(/static/img/hero/light-iceberg-flat.svg); --hero-berg2: url(/static/img/hero/light-iceberg-flat.svg); --hero-sun: url(/static/img/hero/light-sun.svg);
  --hero-top: #2950C4; --hero-base: #3455B2; --hero-scrim: rgba(20, 40, 110, 0.3); }
:root[data-theme="vapor"] .lp-sky { --hero-sky: url(/static/img/hero/vapor-sky.svg); --hero-land: url(/static/img/hero/vapor-land.svg);
  --hero-land-narrow: url(/static/img/hero/vapor-land-narrow.svg); --hero-sky-narrow: url(/static/img/hero/vapor-sky-narrow.svg); --hero-sun: url(/static/img/hero/vapor-sun.svg);
  --hero-top: #0B0726; --hero-base: #1A0B2E; --hero-scrim: rgba(14, 8, 40, 0.4); }
/* The horizon sits 930/1600 of the scene's width down, but never lower than 860px or 140px above the bottom of the window
   (and never above 730px, just under the tools row), so the mountains, water and icebergs are on screen when the page loads: the land rises by --lift.
   The sky, its stars and its glow stay put (the land covers the glow's lower end), as does the moon. */
.lp-sky { --hz: min(max(100cqw, 1000px) * 0.58125, 860px, max(100vh - 140px, 730px)); --lift: calc(max(100cqw, 1000px) * 0.58125 - var(--hz)); }
/* The sun (or moon) disc keeps the wide-screen gap (29px) after the headline's "X." and shrinks on medium screens so it
   stays on screen, like the live Vaporwave sun below: --mh is half the headline's width, the disc is 0.8 of --ms and its top stays at 171px. */
.lp-sky { --mh: min(297px, 23.5vw); --ms: min(260px, 20.58vw, (50cqw - var(--mh) - 45px) / 0.8); }   /* 20.58vw = 260px x 7.6vw / 96px: the sun shrinks right along with the headline */
.lp-sky::before { content: ""; position: absolute; inset: 0; z-index: -1;
  /* layers, front to back: a soft scrim behind the text, the mountains and floor, the sun, the sky */
  background: radial-gradient(ellipse 46rem 30rem at 50% 32%, var(--hero-scrim), transparent 70%),
    var(--hero-fade, none),
    /* below the land's bottom edge, the ground color: on shorter windows the land is lifted but the sky isn't, so the
       sky's glow at its own, lower horizon used to peek out there as a stray band */
    linear-gradient(transparent calc(var(--hz) + max(100cqw, 1000px) * 0.1375 - 1px), var(--hero-base) 0),
    var(--hero-land) center top calc(-1 * var(--lift)) / max(100%, 1000px) auto no-repeat,
    var(--hero-sun) calc(50cqw + var(--mh) + 29px - 0.1 * var(--ms)) calc(171px - 0.1 * var(--ms)) / var(--ms) var(--ms) no-repeat,
    var(--hero-sky) center top / max(100%, 1000px) auto no-repeat, var(--hero-base); }
.lp-sky .lp-nav .brand, .lp-sky .lp-nav nav a:not(.btn), .lp-sky .lp-nav nav a[aria-current="page"] { color: #fff; }
.lp-sky .lp-nav nav a:not(.btn) { opacity: 0.85; }
.lp-sky .lp-nav nav a:not(.btn):hover { opacity: 1; }
.lp-sky .lp-nav .lp-account { background: #fff; border-color: #fff; color: #0F0F0F; }
.lp-sky .lp-nav .lp-account:hover { background: #EDF2FF; }
.lp-sky .lp-nav .mark.sun { fill: #fff; stroke: #fff; }
.lp-sky .nav-menu-btn { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 760px) { .lp-sky .lp-nav #lp-menu { background: rgba(12, 16, 28, 0.88); border-color: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }   /* on the hero the menu is a dark glass panel, so its white links read on any theme */
.sky-hero { max-width: 980px; margin: 0 auto; padding: 4.5rem 1.25rem 2.5rem; text-align: center; outline: none; }
.sky-hero h1 { font: 400 clamp(3rem, 7.6vw, 6rem)/0.98 "Instrument Serif", "Instrument Fallback", Georgia, "Times New Roman", serif; letter-spacing: -0.02em;
  color: #fff; margin: 0 auto; max-width: max(15ch, 6.89em); text-wrap: balance; text-shadow: 0 2px 30px rgba(20, 40, 110, 0.25); }   /* 15ch follows the font showing: in Instrument Serif it's about 6.9em, wider than 6.89em, so nothing changes, but the fallback's 15ch is narrower and would wrap the headline onto an extra line */
.sky-lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 40rem; margin: 1.5rem auto 2rem; color: rgba(255, 255, 255, 0.92); }
.sky-lede .lede-short { display: none; }
.sky-cta { display: flex; justify-content: center; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.sky-cta .btn { border-radius: 8px; }
.sky-cta .sky-white { background: #fff; border-color: #fff; color: #0F0F0F; box-shadow: 0 6px 20px rgba(20, 40, 110, 0.25); }
.sky-cta .sky-white:hover:not(.disabled) { background: #EDF2FF; border-color: #EDF2FF; }
:root[data-theme="light"] .lp-sky .lp-nav .lp-account, :root[data-theme="light"] .sky-cta .sky-white { color: #2A44A0; }   /* light: the white buttons' text is the hero's blue, not black */
.sky-cta .btn.primary { background: rgba(30, 15, 70, 0.45); border-color: rgba(255, 255, 255, 0.35); color: #fff; backdrop-filter: blur(6px); }
.sky-cta .btn.primary:hover { background: rgba(30, 15, 70, 0.65); border-color: rgba(255, 255, 255, 0.6); }
.sky-link { color: #fff; font-weight: 700; text-decoration: none; padding: 0.8rem 0.6rem; }
.sky-link:hover { text-decoration: underline; }
.sky-fine { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin: 1.1rem 0 0; }
.sky-fine a { color: #fff; }
.sky-fine-phone { display: none; }
.sky-kicker { display: inline-block; margin-top: 3rem; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.sky-kicker:hover { color: #fff; }
.sky-tools { list-style: none; padding: 0; margin: 1.1rem auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 2.25rem; }
.sky-tools li { display: grid; justify-items: center; gap: 0.45rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); }
.sky-tools .ph-br { display: none; }   /* a line break used on phones only */
.sky-tools svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sky-fine, .sky-link, .sky-kicker, .sky-tools li { text-shadow: 0 1px 10px rgba(20, 8, 40, 0.75), 0 0 2px rgba(20, 8, 40, 0.5); }
.sky-tools svg { filter: drop-shadow(0 1px 6px rgba(20, 8, 40, 0.6)); }
@media (min-width: 761px) {   /* wider screens: seven equal columns, so the icons are evenly spaced and Ask Rudi (4th of 7) sits at the exact center; phones place each tool by grid column instead */
  .sky-tools { display: grid; grid-template-columns: repeat(7, minmax(0, 7.5rem)); gap: 0; }
  .sky-tools li { text-align: center; align-content: start; }
  .sky-tools li:nth-child(n+4) { order: 1; } .sky-tools li:nth-child(7) { order: 0; }
}
.sky-shot { max-width: 1100px; margin: 1.5rem auto 0; padding: 0 1.25rem; }
.sky-shot img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: top;
  border: 8px solid rgba(255, 255, 255, 0.55); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(20, 40, 110, 0.3); }
.lp-sky + main { padding-top: 3rem; }
/* Vaporwave: the 404 page's floor grid (static/lost-grid.js, at the 404 floor's scale) rolls toward you, then fades into
   the page color below the hero. It starts at the art's horizon: 930/1600 of the scene's width on desktop, 960px down on phones. */
.lp-floor { display: none; }
:root[data-theme="vapor"] .lp-floor { display: block; position: absolute; z-index: -1; pointer-events: none; left: 0; width: 100%;
  top: var(--hz); height: calc(100% - var(--hz));
  -webkit-mask-image: linear-gradient(#000 35%, transparent 90%); mask-image: linear-gradient(#000 35%, transparent 90%); }
@media (max-width: 760px) { :root[data-theme="vapor"] .lp-floor { top: var(--phz); height: calc(100% - var(--phz));
  -webkit-mask-image: linear-gradient(#000 50px, transparent 120px); mask-image: linear-gradient(#000 50px, transparent 120px); } }   /* phones: the grid is gone just past the preview's top (96px down), so no lone line shows beside it */
/* ...and wherever the hero ends, the floor (grid and ground) fades into the page's purple rather than stopping at an edge */
:root[data-theme="vapor"] .lp-sky::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 0; right: 0; bottom: 0;
  top: max(calc(var(--hz) + 4px), calc(100% - 220px)); background: linear-gradient(rgba(26, 11, 46, 0), var(--bg)); }   /* never above the horizon */
@media (max-width: 760px) { :root[data-theme="vapor"] .lp-sky::after { top: max(calc(var(--phz) + 4px), calc(100% - 220px)); } }
/* Dark: the same idea. Wherever the hero ends, the water fades into the page color rather than stopping at an edge (never above the horizon) */
:root:not([data-theme="light"]):not([data-theme="vapor"]) .lp-sky { --hero-fade: linear-gradient(transparent max(calc(var(--hz) + 4px), calc(100% - 220px)), var(--bg) calc(100% - 16px)); }
@media (max-width: 760px) { :root:not([data-theme="light"]):not([data-theme="vapor"]) .lp-sky { --hero-fade: linear-gradient(transparent max(calc(var(--phz) + 4px), calc(100% - 220px)), var(--bg) calc(100% - 16px)); } }
:root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-berg, :root:not([data-theme="light"]):not([data-theme="vapor"]) .lp-sky::after {
  -webkit-mask-image: linear-gradient(#000 44%, transparent 80%); mask-image: linear-gradient(#000 44%, transparent 80%); }   /* the bergs' underwater part (below y=45 of 110) fades out with the water */
/* Light and dark: a small iceberg drifts across the water below the horizon, bobbing a little, and passes behind the preview */
:root:not([data-theme="vapor"]) .lp-sky::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 0;
  top: max(calc(var(--hz) - 25px), min(calc(var(--hz) + 88px), calc(100% - 80px))); width: 150px; height: 103px; background: var(--hero-berg) center / contain no-repeat;
  animation: berg-drift 240s linear -212s infinite, berg-bob 5s ease-in-out infinite alternate; }   /* starts out on the right, clear of the preview */
@keyframes berg-drift { from { transform: translateX(-170px); } to { transform: translateX(calc(100cqw + 20px)); } }
@keyframes berg-bob { from { translate: 0 0; } to { translate: 0 3px; } }
@media (max-width: 760px) { :root:not([data-theme="vapor"]) .lp-sky::after { top: calc(var(--phz) + 25px); width: 110px; height: 76px; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-theme="vapor"]) .lp-sky::after { animation: none; left: 6%; } }
/* a second, flatter berg with the polar bear sits on the horizon at the left, swaying slowly, so it's on screen when the
   page loads. The drifting berg passes lower, in front of it, with its ice below the bear berg's see-through underwater
   half, so the two shadows never stack. On very wide screens the water below the horizon gets
   shallow, so both bergs rise to stay above the bottom of the hero instead of being cut off (but never above the horizon). */
.sky-berg { display: none; }
:root:not([data-theme="vapor"]) .sky-berg { display: block; position: absolute; z-index: -1; pointer-events: none; left: 2%;
  top: max(calc(var(--hz) - 30px), min(calc(var(--hz) - 20px), calc(100% - 100px))); width: 190px; height: 131px; background: var(--hero-berg2) center / contain no-repeat;
  animation: berg-sway 34s ease-in-out infinite alternate, berg-bob 6s ease-in-out -2s infinite alternate; }
@keyframes berg-sway { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
@media (max-width: 760px) { :root:not([data-theme="vapor"]) .sky-berg { left: 1%; top: calc(var(--phz) - 22px); width: 140px; height: 97px; } }   /* phones: a smaller bear berg on the horizon, under the tools */
@media (prefers-reduced-motion: reduce) { :root:not([data-theme="vapor"]) .sky-berg { animation: none; } }   /* as specific as the rule above, or it loses and the berg keeps moving */
/* Vaporwave: the striped sun is live (static/sun-motion.js), so its stripes ripple slowly; the glow stays in the background.
   Sized and placed to match the background sun: the disc is 82/200 of the box. */
.sky-vsun { display: none; }
/* It keeps the wide-screen gap (29px) between the headline's "X." and the disc, and shrinks on medium screens so the disc
   stays on screen. --h is half the headline's width (it follows the h1's font size); the disc is 0.82 of --s; its top stays put. */
:root[data-theme="vapor"] .sky-vsun { --h: min(297px, 23.5vw); --s: min(254px, 20.11vw, (50cqw - var(--h) - 45px) / 0.82);
  display: block; position: absolute; z-index: -1; left: calc(50cqw + var(--h) + 29px + 0.41 * var(--s)); top: calc(171px + 0.41 * var(--s));
  width: var(--s); height: var(--s); transform: translate(-50%, -50%); }
:root[data-theme="vapor"] .sky-vsun .sun-live { width: 100%; height: 100%; filter: none; }
@media (min-width: 761px) {   /* the glow moves with the sun: it leaves the hero background and rides behind the live sun */
  :root[data-theme="vapor"] .lp-sky { --hero-sun: none; }
  :root[data-theme="vapor"] .sky-vsun { background: url(/static/img/hero/vapor-sun.svg) center / 102.4% 102.4% no-repeat; } }
@media (max-width: 760px) {   /* on phones it holds the headline, faded into the sky; a solid disc of the sky's own colors sits behind it so no stars show through */
  :root[data-theme="vapor"] .sky-vsun { left: 50%; top: var(--sun-y); width: var(--sun-box); height: var(--sun-box); }
  :root[data-theme="vapor"] .sky-vsun .sun-live { position: relative; opacity: 0.6; }
  :root[data-theme="vapor"] .sky-vsun::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: linear-gradient(#190D2F, #200E3C 45%, #28124E 85%, #36175A); } }
@media (max-width: 760px) { :root[data-theme="vapor"] .sky-hero h1, :root[data-theme="vapor"] .sky-hero h1 span { text-shadow: 0 0 2px rgba(42, 14, 74, 0.9), 0 2px 10px rgba(42, 14, 74, 0.75); } }   /* a dark edge keeps the white headline readable over the opaque sun's pale top */
/* below the hero, the homepage carries on in the floor's last color instead of the usual Vaporwave backdrop */
:root[data-theme="vapor"] body:has(.lp-sky) { background: #1A0B2E; }
:root[data-theme="vapor"] body:has(.lp-sky)::before { display: none; }
/* Light: the homepage carries on in the hero's deepest blue, so the page below reads white-on-blue with glassy cards */
:root[data-theme="light"] body:has(.lp-sky) {
  --bg: #3455B2; --surface: rgba(255, 255, 255, 0.08); --raised: #2F4DA6; --ink: #EEF2FF; --ink-bright: #FFFFFF;
  --muted: rgba(238, 242, 255, 0.75); --line: rgba(255, 255, 255, 0.2); --bloom: #FFD3C6; --bloom-strong: #FFFFFF;
  --primary-border: #FFFFFF; --bloom-soft: rgba(255, 211, 198, 0.14); --on-accent: #2A44A0; --leaf: #FFD3C6;
  --shadow: rgba(10, 20, 70, 0.35); color-scheme: dark; background: #3455B2; }
:root[data-theme="light"] body:has(.lp-sky) ::placeholder { color: rgba(238, 242, 255, 0.6); }
/* Dark: a premium 90s gauge cluster at night, lit in electroluminescent aqua. Only the headline glows. */
:root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-hero h1 { color: #F0FFFB;
  text-shadow: 0 0 1px rgba(160, 255, 236, 0.9), 0 0 14px rgba(48, 240, 208, 0.45), 0 0 40px rgba(48, 240, 208, 0.2); }   /* the headline keeps its glow; nothing else does */
:root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-link { color: #9DFBEA; }
/* the wordmark top left gets a faint aqua inner glow (an SVG filter in landing.html), tinting the letters in from their edges */
:root:not([data-theme="light"]):not([data-theme="vapor"]) .lp-sky .lp-nav .brand { filter: url(#brand-inner-glow); }
:root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-kicker { color: #fff; }
:root:not([data-theme="light"]):not([data-theme="vapor"]) .lp-sky .lp-nav .mark.sun { fill: #3FF2D6; stroke: #3FF2D6; }
:root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-cta .btn.primary { background: rgba(4, 12, 18, 0.6); border-color: #3FF2D6; }
:root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-cta .btn.primary:hover { background: rgba(6, 40, 34, 0.6); }
:root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-shot img { border-color: rgba(111, 247, 224, 0.35); }
@media (max-width: 760px) {
  /* phones: the sun (or moon) sits behind the headline, and the horizon rises to just under the tools row */
  .lp-sky::before { background-image: radial-gradient(ellipse 46rem 30rem at 50% 32%, var(--hero-scrim), transparent 70%),
      var(--hero-fade, none), var(--hero-land-narrow), var(--hero-sun), var(--hero-sky-narrow, var(--hero-sky)), linear-gradient(var(--hero-top) calc(var(--phz) + 140px), var(--hero-base) calc(var(--phz) + 140px));
    background-size: auto, auto, 1300px auto, var(--sun-box) var(--sun-box), 1600px auto, auto;
    background-position: center, center, center top calc(var(--phz) - 756px), center top var(--sun-top), center top calc(var(--phz) - 930px), center; background-color: var(--hero-top); }   /* the phone land is drawn a little smaller, with the big mountain squeezed left, so both ranges just peek in at the sides; both layers keep the horizon at --phz; below the land the floor's last color carries on */
  /* the sun (or moon) disc holds the whole headline, centered on its letters (--sun-lift nudges it
     3.5px down from the line boxes' middle, to the middle of the ink, descenders included): the headline's widest
     line ("really following") is about 5 x the font size (--pfs) and its three lines 3.06 x, so a disc 5.4 x --pfs across
     still clears the letters. The headline's box is exactly the disc's height (more padding above than below, by twice the
     lift), with 8px to the menu above and the line below, so the disc never touches either. static/hero-fit.js sets --sun-y
     to the box's center (the fallback is close). The horizon (--phz) sits just under the tools row (hero-fit.js measures
     it; 960px without script), so the polar bear's berg is on screen. */
  .lp-sky { --pfs: max(48px, 7.6vw); --sun-d: calc(5.4 * var(--pfs)); --sun-box: calc(var(--sun-d) / var(--sun-k, 0.8)); --sun-lift: -3.5px;
    --sun-y: calc(72px + 2.7 * var(--pfs)); --sun-top: calc(var(--sun-y) - var(--sun-box) / 2); --phz: 960px; }
  :root[data-theme="vapor"] .lp-sky { --sun-k: 0.82; }
  .sky-hero { padding-top: 0; }
  .sky-hero h1 { max-width: none; font-size: var(--pfs); line-height: 1.12; margin: -10px auto 8px;
    padding: calc(1.02 * var(--pfs) + var(--sun-lift)) 0 calc(1.02 * var(--pfs) - var(--sun-lift)); }   /* (5.4 - 3 x 1.12) / 2 */
  .sky-hero h1 span { display: block; position: relative; left: -0.01em; transform: scaleY(1.08); }   /* always three lines: "See who's / really following / you on X.", each drawn 8% taller (not wider, so they still fit the disc); the nudge undoes the half letter space the tight tracking leaves after each line, so the letters sit dead center */
  .sky-lede { font-size: 0.95rem; line-height: 1.5; margin: 0 auto 1.25rem; max-width: 20rem; }   /* the short pitch, the same size as "See pricing" */
  .sky-lede .lede-long { display: none; } .sky-lede .lede-short { display: inline; }   /* phones get the short intro */
  .sky-cta { gap: 0.5rem; }
  .sky-cta .btn { flex: 1 1 0; min-width: 0; max-width: 22rem; padding-inline: 0.5rem; white-space: nowrap; }   /* the two buttons share one row */
  @media (max-width: 400px) { .sky-cta .btn { font-size: 0.92rem; } }
  .sky-cta .sky-link { display: none; }   /* phones: no waitlist link in the hero */
  .sky-lede, .sky-cta .btn, .sky-fine-phone .sky-link, .sky-kicker, .sky-tools li, .lp-nav #lp-menu a, .lp-nav .lp-account { font-family: "Inter", "Inter Fallback", system-ui, sans-serif; letter-spacing: -0.005em; }   /* phones: the hero's text (not its headline) and the header's links in Inter */
  .sky-fine-wide { display: none; } .sky-fine-phone { display: block; margin-top: 0.2rem; } .sky-fine-phone .sky-link { display: inline-block; padding: 0.4rem 0.6rem; font-size: 0.95rem; }   /* phones: just the pricing link under the buttons, styled like the old waitlist link */
  .sky-kicker { margin-top: 0.9rem; font-size: 0.8rem; font-weight: 400; opacity: 0.7; } .sky-kicker:hover { opacity: 1; }   /* a quieter lead-in to the tools */
  /* phones: the tools sit in two rows on one evenly spaced set of centers, 5.2rem apart for the top four (each tool is
     4.4rem wide with 0.8rem between), with the bottom three centered between them and Ask Rudi dead center. Six equal
     columns of half that spacing make seven grid lines, one per icon center, and each tool is centered on its line. */
  .sky-tools { margin-top: 0.7rem; display: grid; grid-template-columns: repeat(6, 2.6rem); justify-content: center; gap: 0; max-width: none; }
  .sky-tools li { width: 4.4rem; gap: 0.25rem; text-align: center; font-size: 0.68rem; line-height: 1.2; grid-row: 1; justify-self: start; transform: translateX(-50%); grid-template-rows: auto 1fr; }
  .sky-tools li span { align-self: center; }   /* each row's icons share one line, and one-line labels sit centered on the two-line ones */
  /* the order on phones: Find and follow, Inactive accounts, Non-followers, Clean up posts / Analytics, Ask Rudi, Bot signals */
  .sky-tools li:nth-child(4) { grid-column: 1; } .sky-tools li:nth-child(2) { grid-column: 3; } .sky-tools li:nth-child(3) { grid-column: 5; }
  .sky-tools li:nth-child(6) { grid-row: 1; grid-column: 6; justify-self: end; transform: translateX(50%); margin-top: 0; }
  .sky-tools .ph-br { display: inline; }   /* "Find and / follow", "Non- / followers" and "Clean up / posts" on two lines, like "Inactive / accounts" */
  .sky-tools li:nth-child(1), .sky-tools li:nth-child(5), .sky-tools li:nth-child(7) { grid-row: 2; margin-top: 0.2rem; }
  .sky-tools li:nth-child(5) { grid-column: 2; } .sky-tools li:nth-child(7) { grid-column: 4; } .sky-tools li:nth-child(1) { grid-column: 6; }   /* Ask Rudi in the middle */
  .sky-tools svg { width: 22px; height: 22px; }
  .sky-shot { padding: 0 1.25rem; margin-top: 4.5rem; }
  .sky-shot img { max-height: 260px; border-width: 5px; border-radius: 10px 10px 0 0; }
}
/* Phones (iPhone 17 pass): the dashboard preview zoomed in on its first stat tiles so the numbers can be read at phone width. */
@media (max-width: 760px) {
  .sky-shot { padding: 0; margin: 4.5rem 1.25rem 0; height: 13.5rem; overflow: hidden; border: 5px solid rgba(255, 255, 255, 0.55);
    border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 -10px 40px rgba(20, 40, 110, 0.3); }
  :root:not([data-theme="light"]):not([data-theme="vapor"]) .sky-shot { border-color: rgba(111, 247, 224, 0.35); }
  .sky-shot img { width: 230%; max-width: none; max-height: none; margin: -2.5% 0 0 -50%; border: 0; border-radius: 0; box-shadow: none; }
  .lp-faq-item summary { padding-right: 1.75rem; }   /* keeps a question's last words out from under the back-to-top button */
}
/* keep the app sidebar's nav styles off the public pages */
.lp nav { flex-direction: row; margin: 0; gap: 1.25rem; }
.lp h1, .lp h2 { text-wrap: balance; }
.lp-shot figcaption { font-size: 0.82rem; color: var(--muted); padding: 0.5rem 0.9rem; border-top: 1px solid var(--line); }

/* Two rings side by side, following then followers to match the nav order, each with its text
   underneath. Before sync the following ring is hidden and the lone ring keeps the ring-beside-text layout. */
/* The divider is drawn down the middle of the gap, so both columns are exactly the same width and their
   legends always wrap the same way (2x2 or 4x1 on both sides) */
.hero-pair:not(:has(> .hero[hidden])) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
/* Each column's ring, headline, subtitle and legend rows are shared, so when one headline or subtitle wraps to
   more lines the other column's next row starts at the same height */
.hero-pair:not(:has(> .hero[hidden])) > .hero { grid-row: span 7; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
/* The legend's rows (up to 4) are shared too, so a label that wraps makes the row beside it just as tall */
.hero-pair:not(:has(> .hero[hidden])) .legend { grid-row: span 4; grid-template-rows: subgrid; align-self: stretch; align-items: stretch; }
.hero-pair:not(:has(> .hero[hidden])) .legend > li { display: grid; }
/* Legends here are 2x2, or 4x1 once a column is too narrow for two 240px entries (narrower ones wrap "Don't follow
   back (active)"). Both columns are the same width,
   so both legends always switch together. The query is on the pair (two columns plus the gap), because containment
   on a column would stop its rows lining up with the other column */
.hero-pair { container: hero-pair / inline-size; }
.hero-pair:not(:has(> .hero[hidden])) .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container hero-pair (max-width: 1059px) { .hero-pair:not(:has(> .hero[hidden])) .legend { grid-template-columns: minmax(0, 1fr); } }
.hero-pair:not(:has(> .hero[hidden])) > .hero > .hero-text { display: contents; }
.hero-pair:not(:has(> .hero[hidden])) > .hero > .hero-text > p { margin: 0.35rem 0 0; }
.hero-pair:not(:has(> .hero[hidden])) .ring-wrap { width: 100%; max-width: 240px; margin: 0 auto 1.5rem; }
.hero-pair:not(:has(> .hero[hidden])) :is(.hero-text h1, .hero-h2) { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
/* Narrower screens: still two columns, each ring with its own text underneath; tighter spacing */
@media (max-width: 1100px) {
  .hero-pair:not(:has(> .hero[hidden])) { column-gap: 1.5rem; }
  .hero-pair:not(:has(> .hero[hidden])) .ring-wrap { max-width: 220px; }
}
/* Phones: the same two columns, with everything scaled down to fit half the screen */
@media (max-width: 560px) {
  .hero-pair:not(:has(> .hero[hidden])) { column-gap: 1rem; }
  .hero-pair:not(:has(> .hero[hidden])) .ring-wrap { margin-bottom: 0.9rem; }
  .hero-pair:not(:has(> .hero[hidden])) .ring-center strong { font-size: 1.6rem; }
  .hero-pair:not(:has(> .hero[hidden])) .ring-center span { font-size: 0.68rem; max-width: 6rem; }
  .hero-pair:not(:has(> .hero[hidden])) :is(.hero-text h1, .hero-h2) { font-size: 1.02rem; line-height: 1.2; }
  /* the vaporwave offset shadow, scaled down to suit the smaller headings */
  :root[data-theme="vapor"] .hero-pair:not(:has(> .hero[hidden])) :is(.hero-text h1, .hero-h2) { text-shadow: 1px 1px 0 #B967FF, 2px 2px 0 rgba(1, 205, 254, 0.5); }
  .hero-pair:not(:has(> .hero[hidden])) .hero-text > p { font-size: 0.8rem; }
  .hero-pair:not(:has(> .hero[hidden])) .legend { grid-template-columns: 1fr; gap: 0; margin-top: 0.75rem; }
  .hero-pair:not(:has(> .hero[hidden])) .legend button { font-size: 0.78rem; gap: 0.4rem; grid-template-columns: 9px 1fr auto; padding: 0.3rem 0; }
  .hero-pair:not(:has(> .hero[hidden])) .legend-extra { display: none; }   /* "Don't follow back (active)" fits on one line as "Don't follow back" */
  .hero-pair:not(:has(> .hero[hidden])) .legend i { width: 9px; height: 9px; }
  .legend-note { font-size: 0.68rem; padding: 0.35rem 0.45rem; }
}
/* The smallest phones: a touch smaller still, so "No major bot signals" stays on one line */
@media (max-width: 369px) {
  .hero-pair:not(:has(> .hero[hidden])) .legend button { font-size: 0.72rem; }
}
.hero-h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin: 0; }
:root[data-theme="vapor"] .hero-h2 { text-shadow: 1.5px 1.5px 0 #B967FF, 3px 3px 0 rgba(1, 205, 254, 0.5); }

/* Demo */
.demo-banner { display: flex; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: -0.5rem 0 1.75rem; padding: 0.8rem 1rem; background: var(--bloom-soft); border: 1px solid var(--line);
  font-size: 0.92rem; }
.demo-banner[hidden] { display: none; }
.demo-banner-acts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-archive { background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; display: grid; gap: 0.75rem; justify-items: start; }
.demo-archive[hidden] { display: none; }
.who .nm-plain { display: block; font-weight: 700; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-demo { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin: 0 0 2.5rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); }   /* 2.5rem: the same gap as a section's padding, so every divider line has even space above and below */
.lp-demo h2 { margin: 0 0 0.4rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.lp-demo p { margin: 0; color: var(--muted); max-width: 40rem; line-height: 1.55; }
.ai-verdict { font-size: 0.8rem; margin-top: 0.3rem; }
.ai-verdict b { font-weight: 700; }
.ai-verdict.genuine b { color: var(--leaf); } .ai-verdict.mixed b { color: var(--amber-ink); } .ai-verdict.slop b { color: var(--seg-bots); }

/* ---------------- Free plan: locked features ---------------- */
.free-block { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.free-block[hidden] { display: none; }
.free-block .btn { justify-self: start; }
.own-app { margin: 0.5rem 0 1rem; text-align: left; }
.own-app summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.own-app summary:hover { color: var(--ink); }
.own-app[open] summary { margin-bottom: 0.75rem; }
.own-app .btn { justify-self: start; margin-top: 0.25rem; }
.switch-x summary { cursor: pointer; }
.switch-x p { margin: 0.4rem 0 0; }
.plan-tag { display: inline-block; margin-left: 0.35rem; font-size: 0.72rem; font-weight: 700; padding: 0 0.35rem; border-radius: 2px;
  color: var(--amber-ink); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.plan-tag[hidden] { display: none; }
.lock-ico { width: 0.85em; height: 0.85em; vertical-align: -0.08em; margin-right: 0.3em; fill: currentColor; }
.btn.locked-btn { opacity: 0.55; border-style: dashed; }
.btn.locked-btn:hover { opacity: 0.85; }
.row-acts.free { flex-wrap: wrap; }
.steps li.is-locked > div:last-child, .steps li.is-locked .stamp, .steps li.is-locked .row > :not(.unlock-inline) { opacity: 0.45; }
.steps li.is-locked .row > :not(.unlock-inline) { pointer-events: none; }
.unlock-inline { flex-basis: 100%; justify-content: center; }
.steps .unlock-inline { flex-basis: auto; flex-grow: 0; }
.lock-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.5rem;
  padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); }
.lock-card[hidden] { display: none; }
#v-find.page-locked .find-grid, #v-find.page-locked #find-results { opacity: 0.45; pointer-events: none; filter: grayscale(0.3); }
.unlock-opts { display: grid; gap: 0.75rem; }
.unlock-opt { display: grid; gap: 0.45rem; padding: 0.9rem 1rem; border: 1px solid var(--line); background: var(--surface); }
.unlock-opt .row { gap: 0.5rem; }

/* ---------------- Plans, wrap-ups, analytics ---------------- */
.price { font: 800 1.15rem var(--display); color: var(--bloom); margin-left: 0.35rem; }
/* At a glance */
.glance-card { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.25rem; margin: 0 0 2.5rem; display: grid; gap: 0.6rem; }
.glance-card[hidden] { display: none; }
.glance-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; flex-wrap: wrap; }
.glance-head h2 { margin: 0; font-size: 1.15rem; }
.glance-ai { margin: 0; color: var(--ink-bright); font-size: 1.02rem; }
.ai-tag { margin-right: 0.5rem; vertical-align: 0.1em; background: var(--bloom-soft); color: var(--bloom); }
.glance-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 2rem; }
@media (max-width: 1100px) { .glance-list { grid-template-columns: 1fr; } }
.glance-list li { display: grid; grid-template-columns: 1.1rem 1fr auto; gap: 0.6rem; align-items: baseline; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.glance-list i { font-style: normal; font-weight: 800; text-align: center; color: var(--muted); }
.glance-list .tone-up i { color: var(--seg-good); }
.glance-list .tone-down i, .glance-list .tone-warn i { color: var(--seg-bots); }
.glance-list .tone-idea i { color: var(--bloom); }
:is(:root:not([data-theme]), :root[data-theme="dark"]) .glance-list .tone-idea i { color: var(--amber); }   /* dark: ideas in the yellow, apart from the aqua gains */
.glance-acts { display: flex; gap: 0.75rem; }
.glance-list .link, .glance-meta .link { font-size: 0.85rem; white-space: nowrap; }
.glance-meta { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }

.wrapup-card { background: var(--surface); border: 1px solid var(--line); padding: 1.1rem 1.25rem; margin: 2.5rem 0 0; display: grid; gap: 0.75rem; }
.wrapup-card[hidden] { display: none; }
.wrapup-card > * { min-width: 0; }   /* one wide child must never stretch the card past its edge */
.arch-ai { background: var(--surface); border: 1px solid var(--line); padding: 1.1rem 1.25rem; margin: 1.5rem 0; display: grid; gap: 0.6rem; justify-items: start; }
.arch-ai[hidden] { display: none; }
.arch-ai h2 { margin: 0; }
.arch-ai h3 { margin: 0.6rem 0 0.2rem; font-size: 1rem; }
.arch-ai ul { margin: 0; padding-left: 1.2rem; }
.arch-ai p { margin: 0; }
.cf-check { margin: 0 0 0.75rem; min-height: 65px; }
.wrapup-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap; }
.wrapup-title { display: flex; align-items: baseline; gap: 0.4rem 1rem; flex-wrap: wrap; }
.wrapup-title h2 { margin: 0; }
.wrapup-body { display: flex; gap: 1.5rem 2.5rem; flex-wrap: wrap; align-items: baseline; }
.wstat b { display: block; font: 800 1.6rem var(--display); color: var(--ink-bright); }
.wstat span { font-size: 0.85rem; color: var(--muted); }
.wstat .up { color: var(--leaf); } .wstat .down { color: var(--seg-bots); }
.wnames { flex-basis: 100%; font-size: 0.88rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 0.85rem 1rem; }
.tile b { display: block; font: 800 1.45rem var(--display); color: var(--ink-bright); }
.tile span { font-size: 0.82rem; color: var(--muted); }
.an-card { background: var(--surface); border: 1px solid var(--line); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.an-chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
/* Every line and bar chart (drawn by chart() in app.js): quiet gridlines, the data in the theme colors, a hover card */
.rchart { overflow: visible; touch-action: pan-y; }
.rchart .axis { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.rchart .grid { stroke: color-mix(in srgb, var(--line) 75%, transparent); stroke-width: 1; }
.rchart .grid.zero { stroke: color-mix(in srgb, var(--muted) 55%, transparent); }
.rchart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rchart .line.dash { stroke-dasharray: 5 4; }
.rchart .hov { display: none; } .rchart .hov.on { display: inline; }
.rchart .hov circle { stroke: var(--surface); stroke-width: 2; }
.rchart .band { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.rchart .guide { stroke: color-mix(in srgb, var(--muted) 70%, transparent); stroke-width: 1; stroke-dasharray: 3 3; }
.rchart .hit { fill: transparent; cursor: crosshair; }
.chart-keys { display: flex; gap: 0.4rem 1.1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.chart-keys span { display: inline-flex; align-items: center; gap: 0.4rem; }
.chart-keys i { width: 4px; height: 13px; border-radius: 2px; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; min-width: 9rem; background: var(--raised); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-control); padding: 0.5rem 0.65rem; font-size: 0.8rem; box-shadow: 0 8px 24px var(--shadow); display: grid; gap: 0.25rem; }
.chart-tip b { color: var(--ink-bright); font-size: 0.82rem; }
.chart-tip .row { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); }
.chart-tip .row i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.chart-tip .row em { margin-left: auto; padding-left: 1rem; font-style: normal; font-weight: 700; color: var(--ink-bright); font-variant-numeric: tabular-nums; }
.an-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
.an-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; vertical-align: -1px; }
.small { font-size: 0.85rem; }
.wrap-row { display: grid; grid-template-columns: 110px 1fr 1fr 1fr minmax(0, 2fr); gap: 0.75rem; padding: 0.6rem 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.wrap-row:first-child { border-top: 0; color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.wrap-row .names { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#v-analytics.page-locked .an-body, #v-analytics.page-locked #an-range { opacity: 0.45; pointer-events: none; filter: grayscale(0.3); }
.wrapup-card.locked-card .wrapup-body { opacity: 0.45; }
@media (max-width: 700px) { .wrap-row { grid-template-columns: 90px 1fr 1fr 1fr; } .wrap-row .names { display: none; } }

/* Pricing page */
.pricing { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.pricing-head { max-width: 42rem; margin-bottom: 2rem; }
.pricing-head a, .pricing a:not(.btn) { color: var(--bloom); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.plan > .btn { margin-top: auto; }
.plan > .fine { margin-bottom: 0.25rem; }
.plan-badge.soon { color: var(--amber-ink); }
.btn.disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.plan.featured { border-color: var(--bloom); }
.plan h2 { margin: 0; }
.plan-badge { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--bloom); text-transform: none; }
.plan-price { font: 800 2.4rem var(--display); color: var(--ink-bright); margin: 0; }
.plan-price span { font-size: 1rem; font-weight: 700; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0.25rem 0; display: grid; gap: 0.45rem; }
.plan li { padding-left: 1.3rem; position: relative; line-height: 1.45; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.plan li:has(strong)::before { content: ""; }
.plan .btn { align-self: flex-start; }
.pricing-notes { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; max-width: 46rem; }
.pricing-notes li { margin: 0.5rem 0; line-height: 1.55; }

/* AI discovery */
.opt-input { display: block; width: 100%; margin-top: 0.45rem; font-size: 0.9rem; }
.ai-profile { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.1rem; margin-bottom: 1.25rem; display: grid; gap: 0.6rem; }
.ai-profile[hidden] { display: none; }
.ai-profile-head { display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap; }
.ai-profile textarea { font-size: 0.95rem; }
.find-niche-link { margin: 0 0 1.25rem; }
.find-niche-link[hidden] { display: none; }
.ai-why { font-size: 0.85rem; color: var(--ink); margin-top: 0.35rem; }
.ai-why b { color: var(--c-content); font-weight: 700; }
.theme-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0 0.4rem; border-radius: 2px; margin-left: 0.35rem;
  color: var(--c-content); background: color-mix(in srgb, var(--c-content) 14%, transparent); }
.picks { border-top: 1px solid var(--line); padding-top: 0.75rem; display: grid; gap: 0.4rem; }
.picks[hidden] { display: none; }
.picks h3 { font-size: 0.95rem; margin: 0 0 0.2rem; }
.pick { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.15rem 0.75rem; align-items: baseline; font-size: 0.9rem; }
.pick > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .pick { grid-template-columns: minmax(0, 1fr); } }
.pick .muted { font-size: 0.85rem; }

/* ---------------- Swipe mode ---------------- */
.swipe { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto auto auto;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); gap: 0.6rem; overscroll-behavior: contain; }
.swipe[hidden] { display: none; }
:root[data-theme="vapor"] .swipe { background: linear-gradient(180deg, #1A0B2E 0%, #2A0E4A 60%, #4A1360 100%); }
.swipe-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; max-width: 440px; width: 100%; margin: 0 auto; font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.swipe-stack { position: relative; width: 100%; max-width: 440px; height: min(100%, 560px); align-self: center; margin: 0 auto; min-height: 380px; }
.sw-card { position: absolute; inset: 0; background: var(--raised); border: 1px solid var(--line); padding: 1.25rem; display: flex; flex-direction: column;
  gap: 0.7rem; touch-action: none; user-select: none; cursor: grab; will-change: transform; box-shadow: 0 10px 30px var(--shadow); overflow: hidden; }
.sw-card.behind { transform: scale(0.95) translateY(12px); opacity: 0.55; pointer-events: none; box-shadow: none; }
.sw-card.dragging { cursor: grabbing; transition: none; }
.sw-card.animate { transition: transform 0.28s ease, opacity 0.28s ease; }
@media (prefers-reduced-motion: reduce) { .sw-card.animate { transition: none; } }
/* Like an X profile, minus the banner. Sizes and spacing follow X's profile header: 16px side padding, 12px between
   blocks, name 20px/24px heavy, handle/bio/details 15px/20px, stats 14px, 40px-tall rounded buttons, 80px avatar.
   Measured from X's iPhone app: buttons sit ~66px below Following/Followers (the "Followed by" row), are 40px tall
   with a 10px gap, and have a very dark #191919 border on black. */
/* A light "Your colors" palette (data-palette="light", set in app.js) gets the palette's own light card instead, like Light */
:root:not([data-theme="light"]):not([data-theme="vapor"]):not([data-palette="light"]) .sw-card {
  background: #000; border-color: #2F3336; --x-ink: #E7E9EA; --x-muted: #71767B; --x-pill: #191919; --x-badge: #2F3336; }
/* on the palette's page color, where its muted text is guaranteed readable (palette.js), not on --raised */
:root[data-palette="light"] .sw-card { background: var(--bg); --x-badge: color-mix(in srgb, var(--muted) 8%, var(--bg)); }
:root[data-theme="light"] .sw-card { --x-ink: #0F1419; --x-muted: #536471; --x-pill: #CFD9DE; --x-badge: #EFF3F4; }
/* X's own font (Chirp) is licensed to X only, so the card uses what X falls back to: the device's built-in font
   (San Francisco on Apple, Roboto on Android, Segoe UI on Windows). Nothing to download. */
.sw-card { padding: 12px 16px 16px; gap: 0;
  --x-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: var(--x-font); --body: var(--x-font); font-family: var(--x-font); font-size: 15px; line-height: 20px;
  --x-ink: var(--ink-bright); --x-muted: var(--muted); --x-pill: color-mix(in srgb, var(--muted) 55%, transparent); --x-badge: color-mix(in srgb, var(--muted) 22%, transparent); }
.sw-card .sw-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.sw-card img { width: 80px; height: 80px; border-radius: 50%; background: var(--line); flex: none; object-fit: cover; }
.sw-card .sw-who { min-width: 0; margin-bottom: 12px; }
.sw-card .sw-name { font: 800 20px/24px var(--x-font); color: var(--x-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The handle shortens with "…" but the badge never does, so "Doesn't follow you" can't be cut off on a narrow phone */
.sw-card .sw-handle { color: var(--x-muted); font-size: 15px; line-height: 20px; gap: 2px 4px; }
.sw-card .sw-handle .tag { border-radius: 4px; font-weight: 400; font-size: 12px; line-height: 14px; padding: 2px 4px; margin: 0; }
.sw-card .sw-handle .tag.one { background: var(--x-badge); color: var(--x-muted); }
.sw-card .sw-bio { color: var(--x-ink); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sw-askx { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 10px; padding: 10px 12px; background: color-mix(in srgb, #1D9BF0 18%, var(--surface)); border-bottom: 1px solid #1D9BF0; color: var(--x-ink); }
.sw-askx span { flex: 1 1 100%; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-meta { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--x-muted); min-width: 0; margin-bottom: 12px; }
.sw-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.sw-meta svg { width: 18.75px; height: 18.75px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sw-meta a { color: #1D9BF0; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-meta a:hover { text-decoration: underline; }
:root[data-theme="vapor"] .sw-meta a { color: #01CDFE; }
.sw-facts { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 14px; line-height: 16px; color: var(--x-muted); margin-bottom: 12px; }
.sw-facts b { color: var(--x-ink); font-weight: 700; }
.sw-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw-pill { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 0.3em; min-height: 40px; padding: 0 8px;
  border: 1px solid var(--x-pill); border-radius: 9999px; text-align: center; font-size: 15px; line-height: 20px; color: var(--x-muted); min-width: 0; }
/* Never cut a number off: a long "Last post" wraps between the label and the value instead */
.sw-pill b { color: var(--x-ink); font-weight: 700; white-space: nowrap; }
/* The post bubbles are pinned a fixed distance above the score, which is pinned to the bottom of the card, so they
   sit in the same spot whatever the bio length. The reasons always take two lines so the score block never changes height. */
.sw-card .sw-pills { margin-top: auto; }
.sw-card .sw-score { padding-top: 52px; }
.sw-card .sw-score .reasons { min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Short screens (small phones, Safari with its toolbars): a shorter bio and no join date, so the score stays in view */
@media (max-height: 700px) {
  .sw-card .sw-bio { -webkit-line-clamp: 2; }
  .sw-card img { width: 64px; height: 64px; }
  .sw-meta .joined { display: none; }
  .sw-card .sw-score { padding-top: 16px; }
}
/* Small phones: pills stay side by side and may wrap to two lines */
@media (max-width: 360px) {
  .sw-card img { width: 64px; height: 64px; }
  .sw-pills { gap: 8px; }
  .sw-pill { font-size: 14px; padding: 4px 8px; }
}
.sw-score { margin-top: auto; }
.sw-score .meter { height: 8px; }
.sw-open { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--x-pill); border-radius: 9999px;
  font: 700 15px/20px var(--x-font); color: var(--x-ink); text-decoration: none; white-space: nowrap; margin-top: 8px; }
.sw-open:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.sw-stamp { position: absolute; top: 1.2rem; padding: 0.2rem 0.6rem; border: 3px solid; font: 800 1.4rem var(--display); letter-spacing: 0.04em; opacity: 0; pointer-events: none; }
.sw-stamp.nope { left: 1rem; color: var(--seg-bots); border-color: var(--seg-bots); transform: rotate(-12deg); }
.sw-stamp.keep { left: 50%; top: 42%; transform: translateX(-50%); color: var(--leaf); border-color: var(--leaf); }
.sw-stamp.skip { right: 1rem; color: var(--amber-ink); border-color: var(--amber); transform: rotate(12deg); }
.sw-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 0.75rem; padding: 1rem; }
.swipe-hint { text-align: center; margin: 0; font-size: 0.85rem; line-height: 1.5; }
.swipe-hint b { color: var(--ink); }
.swipe-hint.cap { color: var(--ink); max-width: 440px; margin: 0 auto; }
.swipe-hint.cap b { color: var(--amber-ink); }
.swipe-hint.cap a { color: var(--bloom); }
.swipe-hint.drop-in, .swipe-pending.drop-in { animation: hint-drop 0.35s ease-out; }
.swipe-pending.xpause { color: var(--ink); max-width: 440px; margin: 0 auto; }
.swipe-hint.nudge { animation: hint-nudge 0.4s ease; }
@keyframes hint-drop { from { opacity: 0; transform: translateY(-24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes hint-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint.drop-in, .swipe-pending.drop-in, .swipe-hint.nudge { animation: none; } }
/* The daily-limit notice, shown as a card on top of the stack */
.sw-card.sw-notice { justify-content: safe center; text-align: center; align-items: center; gap: 12px; padding: 24px; }
.sw-notice h2 { margin: 0; font: 800 20px/24px var(--x-font); color: var(--x-ink); }
.sw-notice p { margin: 0; color: var(--x-muted); max-width: 30ch; }
.sw-notice p b { color: var(--x-ink); }
.sw-notice a { color: #1D9BF0; text-decoration: none; font-weight: 700; }
:root[data-theme="vapor"] .sw-notice a { color: #01CDFE; }
.sw-notice-icon { width: 44px; height: 44px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sw-notice .sw-notice-foot { margin-top: 8px; font-size: 13px; }
@media (max-height: 700px) { .sw-notice-icon { display: none; } .sw-card.sw-notice { padding: 16px; justify-content: safe center; } }
.swipe-btns { display: flex; justify-content: center; gap: 1rem; }
.sw-btn { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.sw-btn.nope { color: var(--seg-bots); border-color: color-mix(in srgb, var(--seg-bots) 60%, transparent); }
.sw-btn.keep { color: var(--leaf); border-color: color-mix(in srgb, var(--leaf) 60%, transparent); width: 70px; height: 70px; font-size: 1.8rem; }
.sw-btn.skip { color: var(--amber-ink); width: 48px; height: 48px; align-self: center; font-size: 1.2rem; }
.sw-btn.undo { width: 48px; height: 48px; align-self: center; font-size: 1.2rem; }
.sw-btn:disabled { opacity: 0.35; cursor: default; }
.sw-btn.locked { opacity: 0.45; border-style: dashed; }
.swipe-pending { text-align: center; margin: 0; font-size: 0.85rem; min-height: 1.2em; }
.sw-card .sw-bio { flex: 0 0 auto; }
.sw-card .sw-score { margin-top: 0; }

/* List / Swipe toggle */
.mode-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; flex: none; }
.mode-toggle .mode { background: var(--surface); color: var(--muted); border: 0; padding: 0.5rem 0.9rem; font: 700 0.9rem var(--body); cursor: pointer; }
.mode-toggle .mode + .mode { border-left: 1px solid var(--line); }
.mode-toggle .mode.on { background: var(--bloom-strong); color: var(--on-accent); }
.mode-toggle .mode { transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease; }
/* Same hover reaction as .btn: a light tint on the unselected side, a brighter fill on the selected one */
.mode-toggle .mode:hover:not(.on) { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--ink); }
.mode-toggle .mode.on:hover { background: color-mix(in srgb, var(--bloom-strong) 86%, var(--ink-bright)); }
.mode-toggle .mode:focus-visible { outline: 2px solid var(--bloom); outline-offset: -2px; }
.swipe-top .mode-toggle .mode { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.list-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.list-title-row h1 { margin: 0; }
.list-title-row #refresh-list { margin-left: auto; }
.list-title-row #refresh-list + .mode-toggle { margin-left: 0; }

/* Swipe a Following row left (phones) to reveal "Unfollowed on X" */
.acct-wrap { position: relative; overflow: hidden; }
.acct-wrap + .acct-wrap .acct, .thead + .acct-wrap .acct { border-top: 1px solid var(--line); }
.thead + .acct-wrap .acct { border-top: 0; }
.acct-behind { position: absolute; top: 0; right: 0; bottom: 0; width: 150px; display: none; }
.acct-wrap.sliding .acct-behind { display: flex; }
.acct-wrap.sliding .acct { background: var(--raised); position: relative; z-index: 1; }
.acct.sliding-anim { transition: transform 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .acct.sliding-anim { transition: none; } }
.unf-reveal { flex: 1; border: 0; background: var(--seg-bots); color: #fff; font: 700 0.9rem var(--body); cursor: pointer; display: grid; place-content: center; gap: 0.15rem; padding: 0 0.5rem; }
.unf-reveal small { font-weight: 400; font-size: 0.75rem; opacity: 0.9; }
.row-acts .unf-link { flex-basis: 100%; text-align: right; font-size: 0.78rem; color: var(--muted); padding: 0; margin-top: 0.15rem; }
.row-acts .unf-link:hover { color: var(--ink); }
.row-acts:has(.unf-link) { flex-wrap: wrap; justify-content: flex-end; }
@media (hover: none) {
  .row-acts .unf-link { display: none; }                 /* phones: swipe the row instead */
  .acct-wrap .acct { touch-action: pan-y; }
}
@container (max-width: 960px) { .row-acts .unf-link { text-align: left; } .row-acts:has(.unf-link) { justify-content: flex-start; } }

/* Choose a plan */
.choose-plan { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto;
  padding: calc(2rem + env(safe-area-inset-top, 0px)) 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.choose-plan[hidden] { display: none; }
:root[data-theme="vapor"] .choose-plan { background: linear-gradient(180deg, #1A0B2E 0%, #2A0E4A 60%, #4A1360 100%); }
.choose-plan-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 1.25rem; }
.choose-plan a { color: var(--bloom); }
.plan-price b { font-weight: 800; }

/* Line up every row across plan cards (badge, name, price, summary, list, fine print, button) */
@supports (grid-template-rows: subgrid) {
  .plans.rows-7, .plans.rows-6 { row-gap: 0; }
  .plans.rows-7 .plan, .plans.rows-6 .plan { display: grid; grid-template-rows: subgrid; row-gap: 0.75rem; margin-bottom: 1rem; }
  .plans.rows-7 .plan { grid-row: span 7; }
  .plans.rows-6 .plan { grid-row: span 6; }
  .plans.rows-7 .plan > *, .plans.rows-6 .plan > * { margin: 0; }
  .plans.rows-7 .plan > .btn, .plans.rows-6 .plan > .btn { align-self: end; justify-self: start; }
  .plans.rows-7 .plan > .plan-badge, .plans.rows-6 .plan > .plan-badge { align-self: end; }
  .plans.rows-7 .plan > ul { align-self: start; align-content: start; }
  .plans.rows-7 .plan > .fine, .plans.rows-6 .plan > .fine { align-self: start; }
}

/* Enterprise box under the plans */
.enterprise { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.enterprise h2 { margin: 0.2rem 0 0.4rem; font-size: 1.3rem; }
.enterprise p.muted { margin: 0; max-width: 44rem; line-height: 1.55; }
.enterprise .plan-badge { margin: 0; }
.plan .fine a { color: var(--bloom); }

/* ---------------- Extra tools ---------------- */
.topic-chip { margin: -0.4rem 0 0.8rem; }
.topic-chip[hidden] { display: none; }
mark.hit { background: color-mix(in srgb, var(--amber) 35%, transparent); color: inherit; padding: 0 0.1em; border-radius: 2px; }
.an-card .row { gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.6rem; }
.an-card .row input[type=text] { flex: 1 1 180px; max-width: 280px; }
.an-card.is-locked > :not(.card-unlock):not(h2) { opacity: 0.45; pointer-events: none; filter: grayscale(0.3); }
.card-unlock { margin-top: 0.75rem; }
.watch-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 1fr auto; gap: 0.75rem; padding: 0.55rem 0.9rem; border-top: 1px solid var(--line);
  font-size: 0.9rem; font-variant-numeric: tabular-nums; align-items: center; }
.watch-row:first-child { border-top: 0; color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.watch-row .up { color: var(--leaf); } .watch-row .down { color: var(--seg-bots); }
.topic-bar { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; gap: 0.2rem 0.75rem; margin: 0.55rem 0; cursor: pointer; }
.topic-bar .label { font-weight: 700; font-size: 0.9rem; }
.topic-bar .pct { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.topic-bar .track { grid-column: 1 / -1; height: 8px; background: var(--line); }
.topic-bar .track i { display: block; height: 100%; background: var(--c-content); }
.topic-bar .sample { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); }
.topic-bar:hover .label { color: var(--bloom); }
.vis-big { font: 800 1.5rem var(--display); color: var(--ink-bright); margin: 0.4rem 0; }
.reason-gone { color: var(--muted); }
@container (max-width: 520px) { .watch-row { grid-template-columns: minmax(0, 1fr) 1fr 1fr auto; } .watch-row .d30 { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#watch-table:empty, #topics-bars:empty, #vis-result:empty { display: none; }
.chip-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; }
.suggest.check { color: var(--amber-ink); } .suggest.filtered { color: var(--seg-bots); }

/* Homepage: "See it in action", laid out like apple.com's gallery (show-rail.js), across the whole width of the window.
   Two rows share one center line: one big screen sits whole in the middle of the top row, with smaller screens underneath.
   Large and medium windows each use one fixed size (1250px and 700px wide on top), so the rows keep their height and a
   narrower window just shows less of the screens at the ends; phones show halves at each end. The screens use apple.com's
   shapes (about 1.87:1 on top, 16:9 underneath), cropped from the top left of each screenshot. On phones the big screen
   shows half of each neighbor instead. Every few seconds both rows slide along one screen together, and dots show
   where you are, filling up while each screen waits. Either row can be grabbed and dragged, and one button pauses it all.
   Both rows show desktop screens on computers and phone screens on phones; the small ones run a few views along from
   the big one. Each screen keeps its own mode, mixing dark, light and vapor on every theme. There is no wording on or
   under the screens (the dots and each screen's description carry the names), the gap between rows matches the gap
   between screens, and every screen stays at full strength; the ones at the ends are simply cut off. */
.show-head p { color: var(--muted); margin: -0.4rem 0 0; line-height: 1.6; }
.show-gallery, .show-rail { --row: 100vw; --gap: 0.8rem; width: var(--row); margin-left: calc(50% - var(--row) / 2); }
.show-gallery { margin-top: 1.6rem; }
.show-rail { padding-top: var(--gap); }   /* the rows sit as far apart as the screens in them */
.show-viewport { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.dragging .show-viewport, .dragging .show-viewport * { cursor: grabbing; }
.show-slides, .show-track { display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none; will-change: transform; }
.show-slide { flex: none; width: 1250px; }   /* large screens: apple.com's sizes, fixed, so a narrower window just shows less of */
.show-tile { flex: none; width: 470px; }     /* the screens at the ends; the height never changes */
@media (max-width: 1399px) and (min-width: 761px) {   /* medium screens: one smaller fixed size, same shapes */
  .show-slide { width: 700px; }
  .show-tile { width: 263px; }
}
.show-slide picture, .show-tile picture { display: block; position: relative; border-radius: 0; overflow: hidden; }   /* no outlines; the gaps show the page behind */
/* until its screenshot arrives, each screen is a skeleton in the page theme's loader colors, shimmering like the app's */
.show-slide img, .show-tile img { position: relative; z-index: 1; }
.show-slide img, .show-tile img { display: block; width: 100%; height: auto; object-fit: cover; -webkit-user-drag: none; }
.show-slide img { aspect-ratio: 1250 / 668; object-position: top left; }
.show-tile img { aspect-ratio: 470 / 265; object-position: top left; }
.show-slide:not(.on), .show-tile:not(.on) { cursor: pointer; }
.show-slide a, .show-tile a { display: block; color: inherit; text-decoration: none; }
.show-ctrl { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 1.1rem; }   /* the dots sit on the page's center line, the button at its right edge */
.show-dots { display: flex; align-items: center; gap: 0.55rem; height: 2rem; }
.show-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--wilt); cursor: pointer; overflow: hidden;
  transition: width 0.35s ease, background-color 0.2s ease; }
.show-dot::before { content: ""; position: absolute; inset: -10px -4px; }   /* a bigger target for fingers */
.show-dot:hover { background: var(--muted); }
.show-dot.on { width: 2.6rem; background: var(--wilt); }
.show-dot.on::after { content: ""; position: absolute; inset: 0; background: var(--ink-bright); transform-origin: left; animation: show-fill var(--wait, 5s) linear forwards; }
.show-ctrl.paused .show-dot.on::after { animation-play-state: paused; }
.show-ctrl.stopped .show-dot.on::after { animation: none; transform: none; }
@keyframes show-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.show-dot:focus-visible, .show-btn:focus-visible { outline: 2px solid var(--bloom); outline-offset: 2px; }
.show-btn { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border-radius: var(--r-control); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.show-btn:hover { border-color: var(--bloom); color: var(--bloom); }
.show-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.show-btn .i-play { fill: currentColor; stroke-width: 1.5; }
.show-btn .i-play, .show-btn.paused .i-pause { display: none; }
.show-btn.paused .i-play { display: block; }
@media (max-width: 760px) {
  .show-gallery, .show-rail { --gap: 0.5rem; }
  .show-slide { width: calc((var(--row) - 2 * var(--gap)) / 2); }
  .show-tile { width: calc((var(--row) - 4 * var(--gap)) / 4); }
  .show-slide img { aspect-ratio: 540 / 800; }
  .show-tile img { aspect-ratio: 4 / 5; object-position: top center; }
    .show-dots { gap: 0.45rem; }
  .show-dot.on { width: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { .show-dot { transition: none; } }
.demo-tour { flex-basis: 100%; display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; font-size: 0.88rem; align-items: center; }
.demo-tour .link { padding: 0; }
.allowance-note { margin: -0.5rem 0 1.5rem; padding: 0.8rem 1rem; background: color-mix(in srgb, var(--amber) 12%, var(--surface));
  border: 1px solid var(--line); font-size: 0.92rem; }
.allowance-note[hidden] { display: none; }
.lp-pricing .plans { margin-top: 1.5rem; }
.lp-pricing-more { margin: 1.25rem 0 0; font-weight: 700; }

/* The free demo, in a small card floating at the bottom of the home page (replaces the second demo band). It slides in
   once you reach the bottom of "See it in action" (demo-bar.js adds .show). The page gets
   matching room at the bottom so the footer and the back-to-top button stay clear of it. */
.demo-bar { position: fixed; left: 50%; bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: max-content; min-width: 33.333vw; max-width: calc(100vw - 2rem); padding: 0.45rem 0.45rem 0.45rem 1.25rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  opacity: 0; translate: 0 1rem; visibility: hidden; transition: opacity 0.25s ease, translate 0.25s ease, visibility 0s linear 0.25s; }
.demo-bar.show { opacity: 1; translate: 0 0; visibility: visible; transition: opacity 0.25s ease, translate 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .demo-bar, .demo-bar.show { transition: none; translate: 0 0; } }
.demo-bar p { margin: 0; font-weight: 700; color: var(--ink-bright); white-space: nowrap; }
.demo-bar .btn { flex: none; padding: 0.45rem 0.95rem; font-size: 0.88rem; border-radius: 8px; }
body:has(.demo-bar) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { .demo-bar { gap: 1rem; padding-left: 1.1rem; min-width: 0; } }   /* phones keep the snug card */
@media (max-width: 760px) { body:has(.demo-bar) .to-top { bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); } }   /* phones: the card is nearly full width, so the button sits above it */

/* On screens with a mouse, the feature and How it works cards grow a little under the pointer. */
@media (hover: hover) and (min-width: 761px) {
  #features .lp-grid article, .lp-steps li { position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
  #features .lp-grid article:hover, .lp-steps li:hover { z-index: 1; transform: scale(1.03); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.45); }
}
@media (prefers-reduced-motion: reduce) { #features .lp-grid article, .lp-steps li { transition: none; } }

/* ---------------- Your colors (brand palette import) ---------------- */
.palette-import { display: grid; gap: 0.6rem; padding: 0.9rem 1rem; margin-top: 0.4rem; border: 1px solid var(--line); background: var(--bg); }
.palette-import[hidden] { display: none; }
.palette-import input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.pal-swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pal-base { display: flex; align-items: center; gap: 0.75rem; }
.pal-base .mode { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.pal-preview { background: var(--bg); color: var(--ink); padding: 0.8rem; border: 1px solid var(--line); }
.pal-preview[hidden] { display: none; }
.pp-card { display: grid; gap: 0.35rem; background: var(--surface); border: 1px solid var(--line); padding: 0.8rem; }
.pp-title { color: var(--ink-bright); font-family: var(--display); }
.pp-text { color: var(--ink); } .pp-muted { color: var(--muted); font-size: 0.85rem; }
.pp-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.pp-btn { background: var(--bloom-strong); color: var(--on-accent); padding: 0.3rem 0.8rem; border-radius: var(--r-control); font-weight: 700; font-size: 0.85rem; }
.pp-link { color: var(--bloom); text-decoration: underline; font-size: 0.9rem; }
.pp-row i { width: 22px; height: 10px; display: inline-block; }
#custom-swatch i { display: none; }

/* Live homepage sun (static/sun-motion.js) */
.sun-live { width: min(300px, 60vw); height: min(300px, 60vw); overflow: visible; touch-action: pan-y; }
.sun-live-rays .sl-core { fill: var(--bloom); }
.sun-live-rays .sl-ray { fill: none; stroke: var(--bloom); stroke-width: 20; stroke-linecap: butt; }
.sun-live-vapor { filter: drop-shadow(0 0 22px rgba(255, 113, 206, 0.55)); }

/* Color dots you can click to adjust */
.pal-swatches { gap: 0.9rem 0.75rem; align-items: flex-start; }
.pal-sw { position: relative; display: grid; gap: 0.3rem; justify-items: center; width: 86px; min-width: 86px; max-width: 86px; }
.pal-dot { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.pal-dot:hover { transform: scale(1.06); }
.pal-dot:focus-visible { outline: 2px solid var(--bloom); outline-offset: 3px; }
.pal-color { position: absolute; top: 0; left: 17px; width: 52px; height: 52px; opacity: 0; pointer-events: none; }
.pal-hex { width: 76px !important; text-align: center; padding: 0.2rem 0.25rem; font-size: 0.78rem !important; text-transform: uppercase; }
.pal-roles { display: flex; gap: 3px; }
.pal-role { border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 0.66rem var(--body); padding: 0.1rem 0.3rem; border-radius: 3px; cursor: pointer; }
.pal-role.on { background: var(--bloom-strong); color: var(--on-accent); border-color: var(--bloom-strong); }
.pal-role.auto { border-style: dashed; color: var(--ink); }
.pal-x { position: absolute; top: -6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 0.8rem; line-height: 1; cursor: pointer; padding: 0; z-index: 1; }
.pal-x:hover { color: var(--danger); }
.pal-add { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed var(--line); background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.pal-add:hover { color: var(--ink); border-color: var(--muted); }
.pal-sw-add { align-self: flex-start; }

/* ---------------- Tooltips ---------------- */
#tooltip { position: fixed; z-index: 200; max-width: min(300px, calc(100vw - 16px)); padding: 0.5rem 0.7rem; border-radius: 4px;
  background: var(--ink-bright); color: var(--bg); font: 500 0.82rem/1.45 var(--body); box-shadow: 0 6px 20px var(--shadow); pointer-events: none; }
#tooltip[hidden] { display: none; }
#tooltip::after { content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px;
  background: var(--ink-bright); transform: rotate(45deg); }
#tooltip.below::after { bottom: auto; top: -5px; }
.tip-i { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 0.2rem; padding: 0; border-radius: 50%; vertical-align: 1px;
  border: 1px solid currentColor; background: transparent; color: var(--muted); font: italic 700 0.62rem/1 Georgia, serif; cursor: help; opacity: 0.8; }
.tip-i:hover, .tip-i:focus-visible { opacity: 1; color: var(--ink); }

/* ---------------- Skeleton loaders ----------------
   Placeholder shapes in each theme's own colors: a soft gray on dark, a cool blue-gray on light's white cards,
   and a dusky lilac with a pink glint in Vaporwave. Custom palettes mix their text color into the card color. */
:root { --skel: color-mix(in srgb, var(--ink) 9%, var(--surface)); --skel-shine: color-mix(in srgb, var(--ink) 6%, transparent); }
:is(:root:not([data-theme]), :root[data-theme="dark"]) { --skel: #262626; --skel-shine: rgba(255, 255, 255, 0.05); }
:root[data-theme="light"] { --skel: #E8EDF4; --skel-shine: rgba(255, 255, 255, 0.75); }
:root[data-theme="vapor"] { --skel: rgba(185, 156, 219, 0.16); --skel-shine: rgba(255, 113, 206, 0.14); }
.skel { display: block; position: relative; overflow: hidden; background: var(--skel); border-radius: var(--r-control); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skel-shine), transparent); animation: skel-shimmer 1.4s ease-in-out infinite; }
@keyframes skel-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; display: none; } }
.skel-line { height: 0.8rem; max-width: 100%; } .skel-line.sm { height: 0.62rem; } .skel-line.tall { height: 1.1rem; }
.skel-num { height: 1.6rem; margin: 0.1rem 0 0.7rem; }
.w25 { width: 25%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }
.sk-r { justify-self: end; margin-left: auto; }
.skel-circle { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.skel-stack { display: grid; gap: 0.5rem; min-width: 0; }
.skel-meter { height: 6px; width: 100%; max-width: 220px; border-radius: 2px; }
.skel-meter.wide { max-width: none; }
.skel-btn { height: 1.9rem; width: 4.5rem; justify-self: end; margin-left: auto; }
.skel-btn.wide { width: 100%; height: 2.1rem; }
.skel-tag { height: 1.15rem; width: 3.25rem; border-radius: 2px; }
.acct .row-acts:has(.skel-btn) { justify-content: flex-end; }
@container (max-width: 960px) { .acct > .skel-circle { grid-row: 1 / span 3; } .acct > .nums.nums { display: flex; } .acct .nums .num { flex: 0 0 5.5rem; } .acct .sk-r { margin-left: 0; justify-self: start; } .acct .nums .skel-stack { display: flex; gap: 0.5rem; } .acct .nums .skel-line { width: 4rem; } }
@container (max-width: 520px) { .acct > .skel-circle { grid-row: auto; } .acct .row-acts .skel-btn { margin-left: 0; } }
.skel-tile .skel-line.gap { margin-top: 1.05rem; }
/* column headings sit on the raised header strip, so their placeholders lift a shade to stay visible */
:is(.thead, .po-head) .skel { background: color-mix(in srgb, var(--skel), var(--ink) 7%); }
.skel-tile .skel-line + .skel-line { margin-top: 0.5rem; }
/* the chart placeholder: a row of bars on a baseline, the same height as the real charts */
.skel-chart { display: flex; align-items: flex-end; gap: clamp(3px, 0.8vw, 10px); height: 220px; padding: 10px 10px 24px 44px; border-bottom: 0; }
.skel-chart .skel { flex: 1 1 0; min-width: 0; border-radius: 2px 2px 0 0; }
@media (max-width: 560px) { .skel-chart .skel:nth-child(even) { display: none; } }

/* The first screen while the app starts: the Analytics home page, sketched in placeholders with the real sidebar and folder */
.boot-skel { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.bs-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem 1rem;
  border-right: 1px solid var(--line); background: var(--surface); }
.bs-brand { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.5rem; height: 28px; }
.bs-logo { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.bs-brand .skel-line { width: 120px; height: 1rem; }
.bs-nav { display: flex; flex-direction: column; gap: 2px; margin: 0 -1rem; }
.bs-nav > span { display: block; padding: 0.95rem 0.75rem 0.95rem 1.5rem; border-left: 3px solid transparent; }
.bs-nav > span.on { background: var(--bloom-soft); border-left-color: var(--bloom); }
.bs-nav .skel-line { height: 0.85rem; }
.bs-gear { width: 6.5rem; height: 1.95rem; margin: 0 0.5rem; }
.bs-me { margin-top: auto; display: flex; align-items: center; gap: 0.6rem; padding: 0 0.5rem 3.5rem; }
.bs-me .skel-circle { width: 36px; height: 36px; }
.bs-me .skel-stack { flex: 1; gap: 0.45rem; }
.bs-main { min-width: 0; padding: 2.5rem clamp(1rem, 4vw, 3.5rem) 7rem; max-width: 1680px; width: 100%; }
.bs-title { height: 2.1rem; width: min(15rem, 60%); margin-bottom: 0.9rem; }
.bs-sub { width: min(18rem, 75%); margin-bottom: 2.1rem; }
.bs-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap-reverse; gap: 0.75rem 1.5rem; }
.bs-tabs { display: flex; gap: 0.4rem; align-items: flex-end; }
.bs-tabs > span { display: block; padding: 0.85rem 1rem; border: 1px solid transparent; border-bottom: 0; border-radius: var(--r-control) var(--r-control) 0 0; }
.bs-tabs > span.on { background: var(--surface); border-color: var(--line); position: relative; z-index: 1; margin-bottom: -1px; padding-bottom: calc(0.85rem + 1px); }
.bs-tabs .skel-line { width: 4.2rem; height: 0.85rem; }
.bs-range { width: 472px; max-width: 100%; height: 2.6rem; margin-bottom: 0.5rem; border: 1px solid var(--line); }
.boot-skel .an-folder .skel-chart { height: 200px; }
.boot-skel .bs-card-head { height: 1.2rem; width: 6rem; margin-bottom: 1.25rem; }
.boot-skel .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
/* Phones: the sidebar becomes the top bar, with the logo, picture and gear on one row and the section tabs below */
@media (max-width: 860px) {
  .boot-skel { grid-template-columns: minmax(0, 1fr); min-height: 100vh; align-content: start; }
  .bs-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .bs-brand { flex: 1 1 0; padding: 0; height: 36px; }
  .bs-brand .skel-line { width: min(160px, 40vw); }
  .bs-me { order: 1; margin: 0; padding: 0; } .bs-me .skel-stack { display: none; } .bs-me .skel-circle { width: 32px; height: 32px; }
  .bs-gear { order: 2; width: 34px; height: 34px; margin: 0; }
  .bs-nav { order: 3; flex-direction: row; width: calc(100% + 2rem); overflow: hidden; padding: 0 1rem; }
  .bs-nav > span { padding: 0.75rem 0.75rem 0.85rem; border-left: 0; border-bottom: 3px solid transparent; flex: none; }
  .bs-nav > span.on { border-bottom-color: var(--bloom); }
  .bs-nav .skel-line { width: 5.5rem !important; }
  .bs-main { padding-top: 1.5rem; }
  .bs-range { width: 100%; }
  .bs-tabs { width: 100%; } .bs-tabs > span { flex: 1 1 0; } .bs-tabs .skel-line { width: 100%; }
}

/* Button states: colored buttons brighten on hover (and glow in Vaporwave) */
.btn.primary:hover:not(:disabled):not(.disabled) { background: color-mix(in srgb, var(--bloom-strong) 86%, var(--ink-bright)); border-color: var(--primary-border); }
.btn.danger:hover:not(:disabled):not(.disabled) { background: color-mix(in srgb, var(--danger-strong) 86%, var(--ink-bright)); border-color: var(--danger-strong); }
:root[data-theme="vapor"] .btn.primary:hover:not(:disabled):not(.disabled) { box-shadow: 0 0 18px rgba(255, 113, 206, 0.55); }
.chip { transition: border-color 0.12s ease, background-color 0.12s ease; }
.chip:hover:not(.on) { border-color: var(--muted); color: var(--ink); }

/* ---------------- 404: a Vaporwave sunset ---------------- */
body.lost { min-height: 100vh; min-height: 100dvh; margin: 0; overflow: hidden; text-align: center; color: #F3E6FF;
  background: linear-gradient(180deg, #120824 0%, #2A0E4A 42%, #6A1A6E 80%, #1A0B2E 80.2%); }
body.lost::before { display: none; }
.lost-sky { position: fixed; inset: 0 0 33.333% 0; pointer-events: none;   /* the Vaporwave homepage's stars */
  background: url(/static/img/hero/vapor-stars.svg) center top / cover no-repeat; }
.lost-scene { position: fixed; inset: 0; pointer-events: none; }
/* the sun sits on the horizon (80% down), just touching the grid, with all its stripes showing */
.lost-sun { position: absolute; left: 50%; top: 66.667%; transform: translate(-50%, -79%); width: clamp(150px, 82vh - 549px, 254px);   /* the Vaporwave homepage sun's size, smaller on shorter windows so it stays clear of the buttons */
  animation: lost-glow 6s ease-in-out infinite; }
.lost-sun .sun-live { width: 100%; height: auto; filter: none; }
@keyframes lost-glow { 0%, 100% { filter: drop-shadow(0 0 26px rgba(255, 113, 206, 0.5)); } 50% { filter: drop-shadow(0 0 44px rgba(255, 155, 200, 0.8)); } }
.lost-ground { position: absolute; left: 0; right: 0; bottom: 0; top: 66.667%;   /* the Vaporwave homepage ground's gradient, toned down */
  background: linear-gradient(180deg, #A2559F, #57286F 25%, #2A1448 60%, #1A0B2E); }
.lost-ground::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: #FF71CE; box-shadow: 0 0 18px 4px rgba(255, 113, 206, 0.7); }
/* the floor grid is drawn in true perspective by static/lost-grid.js */
.lost-scene .lost-grid { position: absolute; left: 0; right: 0; bottom: 0; top: 66.667%; width: 100%; height: 33.333%; }   /* the horizon sits two-thirds down: the floor is the bottom third */
.lost-copy { position: relative; z-index: 1; padding: clamp(1.5rem, 5vh, 4rem) 1.25rem 1rem; max-width: 36rem; margin: 0 auto; }
.lost-code { margin: 0; font: 800 clamp(4rem, 13vw, 8rem)/0.9 var(--display); color: #fff;
  text-shadow: 0 0 12px #FF71CE, 0 0 32px #FF71CE, 4px 4px 0 #B967FF, 8px 8px 0 rgba(1, 205, 254, 0.6); }
.lost-copy h1 { margin: 0.7rem 0 0.3rem; font-size: clamp(1.4rem, 3.6vw, 2rem); color: #fff; }
.lost-copy p { color: #D9C2F2; line-height: 1.6; margin: 0.3rem 0; }
.lost-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
@media (max-height: 820px) { .lost-sun { transform: translate(-50%, -77%); } }
@media (max-height: 720px) {
  .lost-sun { transform: translate(-50%, -72%); }
  .lost-code { font-size: clamp(3.2rem, 11vw, 5.5rem); }
  .lost-copy { padding-top: 1.25rem; }
  .lost-copy h1 { margin-top: 0.4rem; }
  .lost-cta { margin-top: 0.9rem; }
}
@media (max-height: 560px) { .lost-sun { width: min(200px, 40vw, 34vh); } }
/* a retro sports car seen from behind, cruising into the sunset over the grid */
.lost-car { position: absolute; left: 50%; top: calc(83.667% - min(230px, 46vw) * 0.53125); width: min(270px, 54vw); transform: translateX(-50%); overflow: visible;
  filter: drop-shadow(0 16px 8px rgba(4, 0, 14, 0.6));   /* the sun is ahead of him, so his shadow falls back toward you */
  animation: lost-car 2.4s ease-in-out infinite alternate; }   /* his top stays where a 230px car sitting 16.333% from the bottom had it, the same distance below the horizon; 0.53125 = 170 / 320, the car's shape */
@keyframes lost-car { from { translate: 0 0; } to { translate: 0 -2px; } }
.lost-car .tail { animation: lost-tail 3s ease-in-out infinite alternate; }
@keyframes lost-tail { from { opacity: 0.85; } to { opacity: 1; } }
@media (max-height: 640px) { .lost-car { display: none; } }
@media (prefers-reduced-motion: reduce) { .lost-sun, .lost-car, .lost-car .tail { animation: none; } }

/* ---------------- Back to top ---------------- */
.to-top { position: fixed; right: max(1.1rem, env(safe-area-inset-right, 0px)); bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.12s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--ink); }
.to-top:focus-visible { outline: 2px solid var(--bloom); outline-offset: 2px; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="vapor"] .to-top:hover { box-shadow: 0 0 16px rgba(255, 113, 206, 0.5); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
/* don't cover the app's bottom task bar or the bulk bar when they're showing */
body:has(.taskbar:not([hidden])) .to-top, body:has(.swipe:not([hidden])) .to-top { display: none; }

/* ---------------- Print: clean black on white, whatever the theme ---------------- */
@media print {
  :root, :root[data-theme] {
    --bg: #fff !important; --surface: #fff !important; --raised: #fff !important; --ink: #111 !important; --ink-bright: #000 !important;
    --muted: #444 !important; --line: #bbb !important; --bloom: #000 !important; --bloom-strong: #000 !important; --on-accent: #fff !important;
    --shadow: transparent !important; color-scheme: light !important;
  }
  html, body { background: #fff !important; color: #111 !important; }
  body::before, body::after { display: none !important; }
  * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  h1, h2, h3 { color: #000 !important; break-after: avoid; }
  /* things that only make sense on screen */
  .lp-nav, .side, .lp-hero-art, #hero-sun, .sky-cta, .sky-tools, .sky-shot, .sun-live, .lp-cta, .lp-demo, .demo-bar, .demo-banner, .allowance-note, .taskbar, .toast, #tooltip,
  .to-top, .swipe, .mode-toggle, #refresh-list, #export-csv, .row-acts, .chips, .lost-scene, .lost-sky, .lost-cta, .skel, .boot-skel,
  .lp-foot nav, .show-ctrl, .show-rail, .card-unlock, .lock-card, dialog, .btn, .tip-i, #q { display: none !important; }
  .shell, .main { display: block !important; max-width: none !important; padding: 0 !important; }
  .show-gallery { width: auto !important; margin: 0 !important; } .show-viewport { overflow: visible !important; }
  .show-slides { flex-wrap: wrap; transform: none !important; } .show-slide { width: 45% !important; } .show-slide[aria-hidden] { display: none !important; }
  .show-slide, .plan, .tile, .an-card, .acct, .cand, details { break-inside: avoid; }
  a { color: #000 !important; text-decoration: underline; }
  /* write out link addresses in guides and legal pages, since paper can't be clicked */
  .legal a[href^="http"]::after, .legal a[href^="/"]::after, .pricing a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; word-break: break-all; }
  .legal a[href^="#"]::after { content: ""; }
  details > summary { list-style: none; } details:not([open]) > *:not(summary) { display: block !important; }
  @page { margin: 1.6cm; }
}

/* ---------------- Admin: waitlist and data safety ---------------- */
.wl-bar { display: flex; gap: 0.75rem; align-items: flex-start; flex-wrap: wrap-reverse; margin-bottom: 0; }   /* folder tabs on the list below; wrap-reverse keeps the tabs on the bottom row, touching it */
.wl-bar .chips { margin: 0; }
.wl-bar > :not(.chips) { margin-bottom: 0.5rem; }
.wl-bar input { flex: 1 1 160px; max-width: 360px; }
.wl-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 0.9fr) 90px auto; gap: 0.9rem; align-items: center;
  padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
.wl-row:first-child { border-top: 0; }
.wl-row strong { overflow-wrap: anywhere; }
.wl-invite { grid-column: 1 / -1; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.wl-invite input { flex: 1 1 260px; font-family: ui-monospace, monospace; font-size: 0.85rem; }
@container (max-width: 820px) { .wl-row { grid-template-columns: minmax(0, 1fr) auto; } .wl-row > span:nth-child(2), .wl-row > span:nth-child(3) { grid-column: 1 / -1; } }
.safety { display: grid; gap: 0.9rem; }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0.75rem; }
.safety-grid code { font-size: 1.1rem; }
.safety-warn { margin: 0; padding: 0.8rem 1rem 0.8rem 2rem; border: 1px solid var(--line); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); }
.safety-warn li { margin: 0.25rem 0; line-height: 1.5; }
.safety-ok { margin: 0; color: var(--leaf); font-weight: 700; }
.safety-warn-inline { color: var(--danger); margin: 0; }
.safety .row { gap: 0.6rem; flex-wrap: wrap; }

/* ---------------- Waitlist form (homepage and /waitlist) ---------------- */
.waitlist-form { display: grid; gap: 0.7rem; max-width: 30rem; text-align: left; }
.waitlist-form label { display: block; font-weight: 700; font-size: 0.92rem; }
.waitlist-form label span.opt-l { color: var(--muted); font-weight: 400; }
.waitlist-form input, .waitlist-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 0.35rem; font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--ink); }
.waitlist-form textarea { min-height: 4.5rem; resize: vertical; }
.waitlist-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-form .wl-msg { margin: 0; font-weight: 700; }
.waitlist-form .wl-msg.ok { color: var(--leaf); } .waitlist-form .wl-msg.bad { color: var(--danger); }
.waitlist-form .btn { justify-self: start; }
@media (max-width: 760px) { .lp-final .waitlist-form :is(.btn, .wl-msg) { order: 1; } }   /* phones: the email note sits above the homepage button, so the button ends the page */
.lp-waitlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .lp-waitlist { grid-template-columns: 1fr; } }
.lp-final .lp-waitlist { text-align: left; } .lp-final .lp-waitlist h2 { margin-top: 0; }
.lp-waitlist a, .waitlist-form a { color: var(--bloom); }

/* ---------------- Help & contact (/help) ---------------- */
.waitlist-form select { display: block; width: 100%; box-sizing: border-box; margin-top: 0.35rem; font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--ink); }
.waitlist-form textarea[name=message] { min-height: 8rem; }
.help-form h2 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.help-card { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.15rem; margin-top: 1rem; }
.help-card h2 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.help-card p { margin: 0; line-height: 1.55; }
.help-links { margin: 0; padding-left: 1.1rem; line-height: 1.55; }
.help-links li { margin: 0.3rem 0; }
.help-card a { color: var(--bloom); overflow-wrap: anywhere; }
.help-attach { margin: 0; }
.help-attach code { font-size: 0.85em; overflow-wrap: anywhere; }
.help-page .lp-waitlist { padding-top: 1rem; }
.help-msg { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Swipe buttons: undo and skip small, unfollow and keep big and side by side, all centered */
.swipe-btns { display: flex; justify-content: center; align-items: center; gap: 0.9rem; }
.sw-btn { display: grid; place-items: center; padding: 0; line-height: 1; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.sw-btn svg { width: 45%; height: 45%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sw-btn svg .fill { fill: currentColor; stroke: none; }
.sw-btn.big { width: 66px; height: 66px; }
.sw-btn.small { width: 48px; height: 48px; }
.sw-btn.nope { color: var(--seg-bots); border-color: color-mix(in srgb, var(--seg-bots) 60%, transparent); }
.sw-btn.keep { color: var(--leaf); border-color: color-mix(in srgb, var(--leaf) 60%, transparent); font-size: inherit; }
.sw-btn.skip { color: var(--amber-ink); font-size: inherit; }
.sw-btn:hover:not(:disabled) { border-color: currentColor; }
.sw-btn.undo:hover:not(:disabled) { color: var(--ink); }
.swipe-hint { text-align: center; }
/* keep the swipe screen exactly screen-width so everything centers, even on narrow phones */
.swipe { grid-template-columns: minmax(0, 1fr); }
.swipe-top { min-width: 0; }
.swipe-top > * { min-width: 0; }
/* The status on the right wraps instead of being cut off (the locked-plan line is long); it drops to its own row when it
   can't fit beside the toggle and the count. */
.swipe-top { flex-wrap: wrap; row-gap: 0.25rem; }
#swipe-progress { flex: none; }
/* The status line gets its own row, centered over the card */
#swipe-left { flex: 1 1 100%; text-align: center; white-space: normal; }
#swipe-left .nw { white-space: nowrap; }
@media (max-width: 420px) { .swipe-top { font-size: 0.8rem; gap: 0.5rem; } .swipe-top .mode-toggle .mode { padding: 0.3rem 0.6rem; } }
/* Narrow phones: the unfollows-left count moves to its own line instead of being cut off */
.sw-btn.keep svg { width: 52%; height: 52%; transform: translateY(1px); }
@media (min-width: 521px) { .swipe-hint { margin-bottom: 1.4em; } }
/* Related guides at the end of each guide */
.related-guides { display: block; margin: 2.5rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related-guides h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.related-guides ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.related-guides a { color: var(--bloom); }
.guide-cta p .btn + .btn { margin-left: 0.5rem; }

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link { position: absolute; left: 0.75rem; top: -3rem; z-index: 300; padding: 0.55rem 0.9rem; border-radius: var(--r-control);
  background: var(--bloom-strong); color: var(--on-accent); font-weight: 700; text-decoration: none; transition: top 0.12s ease; }
.skip-link:focus { top: 0.75rem; outline: 2px solid var(--ink); outline-offset: 2px; }
.renew-note { margin-top: 0.9rem; }

/* Tables in the legal pages (personal data list, cookie list) */
.table-scroll { overflow-x: auto; margin: 0.8rem 0 1.4rem; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); }
.data-table thead th { border-top: 0; background: var(--surface); color: var(--ink-bright); font-weight: 700; }
.data-table td:first-child { min-width: 14rem; }
@media print { .table-scroll { overflow: visible; border-color: #bbb; } }

/* Ring and chart slice colors: default to the theme's good/quiet colors; Vaporwave swaps them so the
   biggest slice sits calmly on the purple backdrop instead of glowing cyan */
:root { --seg-good: var(--leaf); --seg-quiet: var(--wilt); }

/* 404 palm trees: original SVG silhouettes on the horizon. Each trunk rocks slightly on its base and the fronds sway a
   little more on top. The fronds live in the shared <symbol>, so they sway together; the trunks are each timed differently. */
.lost-palms-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.palm { position: absolute; bottom: 33.333%; margin-bottom: -2px; width: auto; overflow: visible;
  fill: #0E0620; filter: drop-shadow(0 0 7px rgba(255, 113, 206, 0.35)); }
.palm .palm-rings path { fill: none; stroke: #2A0E4A; stroke-width: 1.4; }
.palm { transform-origin: 51.75% 100%; animation: palm-lean var(--lean-d, 9s) ease-in-out var(--lean-delay, 0s) infinite alternate; }   /* 51.75%: the trunk's foot */
.palm-fronds { transform-box: view-box; transform-origin: 118px 112px; animation: palm-sway 7s ease-in-out infinite alternate; }
.palm-l1 { left: max(-40px, 1vw); height: min(62vh, 520px); aspect-ratio: 1 / 2; }
.palm-l2 { left: max(40px, 10vw); height: min(40vh, 330px); aspect-ratio: 1 / 2; transform: scaleX(-1); fill: #16092C; }
.palm-l2 { --lean-d: 10.5s; --lean-delay: -4s; }
.palm-r1 { right: max(-40px, 1vw); height: min(56vh, 470px); aspect-ratio: 1 / 2; transform: scaleX(-1); }
.palm-r1 { --lean-d: 9.6s; --lean-delay: -2s; }
.palm-r2 { right: max(46px, 11vw); height: min(34vh, 290px); aspect-ratio: 1 / 2; fill: #16092C; }
.palm-r2 { --lean-d: 11s; --lean-delay: -6s; }
@keyframes palm-sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.4deg); } }
@keyframes palm-lean { from { rotate: -0.8deg; } to { rotate: 0.9deg; } }   /* `rotate`, so the mirrored palms keep their flip */
@media (max-width: 700px) { .palm-l2, .palm-r2 { display: none; } .palm-l1 { left: -60px; height: min(30vh, 250px); } .palm-r1 { right: -60px; height: min(27vh, 225px); } }
@media (max-width: 700px) and (max-height: 780px) { .palm-l1 { height: 24vh; } .palm-r1 { height: 22vh; } }
@media (prefers-reduced-motion: reduce) { .palm, .palm-fronds { animation: none; } }
/* Vaporwave homepage: the 404's two palms stand under the waitlist heading, rooted on the footer's top line */
.lp-foot { position: relative; }
.wl-palm { display: none; }
:root[data-theme="vapor"] .wl-palm { display: block; bottom: 100%; margin-bottom: 1px; aspect-ratio: 1 / 2; pointer-events: none;
  clip-path: inset(-40px -40px 0 -40px); }   /* the glow stops at the line */
:root[data-theme="vapor"] .wl-palm-1 { left: 7%; height: 300px; }
:root[data-theme="vapor"] .wl-palm-2 { left: 16%; height: 200px; transform: scaleX(-1); fill: #16092C; --lean-d: 10.5s; --lean-delay: -4s; }
@media (max-width: 760px) { :root[data-theme="vapor"] .wl-palm { display: none; } }
/* Light and dark: the hero's flat iceberg, with its sleeping polar bear, floats on the footer's top line. Only the part above
   the waterline shows (47 of its 110 units), with nothing below the line; it drifts slowly side to side. */
.wl-berg { display: none; }
:root:not([data-theme="vapor"]) .wl-berg { display: block; position: absolute; bottom: 100%; left: 8%; width: 190px; height: 56px;
  pointer-events: none; background: url(/static/img/hero/light-iceberg-flat.svg) center top / 190px 131px no-repeat;
  animation: berg-sway 34s ease-in-out infinite alternate; }
:is(:root:not([data-theme]), :root[data-theme="dark"]) .wl-berg { background-image: url(/static/img/hero/dark-iceberg-flat.svg); }
@media (max-width: 760px) { .wl-berg { display: none !important; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-theme="vapor"]) .wl-berg { animation: none; } }
@media print { .palm, .lost-palms-defs { display: none !important; } }

/* ================= Analytics tabs and post analytics =================
   Built on the site's components (.chips, .tile, .an-card, .mode-toggle, .tag, .table, .th, .btn) and its rule:
   containers are square, controls use --r-control, only avatars and data dots are round. */
.an-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.an-top .chips { margin-bottom: 0; }
.an-panel[hidden], .an-body[hidden] { display: none !important; }
.po-demo-note { margin: 0 0 1.25rem; }

.tile-cmp { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--muted); }
.tile-cmp + .tile-cmp { margin-top: 0.1rem; }
.tile-cmp.higher { color: var(--leaf); }
:root[data-theme="light"] .tile-cmp.higher { color: var(--bloom); }   /* Light keeps green for the rings and charts only */
.tile-cmp.lower { color: var(--danger); }

/* AI tip at the top of each Analytics tab: text on the left, its button on the right */
.an-tip:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1.25rem; align-items: center; }
.an-tip .ask-draft { margin-bottom: 0; }
.an-tip-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.an-tip-acts .btn { white-space: nowrap; }
@media (max-width: 600px) { .an-tip:not([hidden]) { grid-template-columns: 1fr; } .an-tip-acts { flex-direction: row; justify-content: flex-end; align-items: center; } }   /* phones: a side column would make the text taller */
.po-findings { list-style: none; margin: 0; padding: 0; }
.po-findings li { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.po-findings li:first-child { border-top: 0; padding-top: 0.2rem; }
.po-findings li:last-child { padding-bottom: 0; }
.po-findings p { margin: 0; }
.po-obs { font-weight: 700; color: var(--ink-bright); margin: 0; }
.po-int { margin-top: 0.3rem !important; }
.po-int span { color: var(--muted); font-weight: 700; }
.po-findings .muted.small { margin-top: 0.4rem; }

/* Trend controls: compact pickers in a row, the chart's metric marked with its color, like X's own analytics */
.po-chart-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.po-metrics, .po-views { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.po-match { color: var(--muted); font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; }   /* "Match scale": appears only while comparing two metrics */
.csel { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.csel select { appearance: none; -webkit-appearance: none; font: 700 0.88rem var(--body); color: var(--ink-bright); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-control); padding: 0.45rem 2rem 0.45rem 0.75rem; min-width: 0; max-width: 100%; height: 2.25rem; text-overflow: ellipsis; }
.csel::after { content: ""; position: absolute; right: 0.8rem; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.csel select:hover { border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); }
.csel select:focus-visible { outline: 2px solid var(--bloom); outline-offset: 1px; }
/* the colored bar on the left says which line on the chart is this metric */
.csel.lead::before, #po-chart-card.two .csel.second::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--r-control) 0 0 var(--r-control); background: var(--bloom); pointer-events: none; }
#po-chart-card.two .csel.second::before { background: var(--chart2); }
.csel.lead select, #po-chart-card.two .csel.second select { padding-left: 0.95rem; }
#po-chart-card:not(.two) .csel.second select { color: var(--muted); font-weight: 600; }
.csel.ico svg { position: absolute; left: 0.7rem; width: 14px; height: 14px; fill: none; stroke: var(--ink-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.csel.ico select { padding-left: 1.95rem; }
.csel select option { color: var(--ink); background: var(--raised); font-weight: 500; }
@media (max-width: 560px) {
  .po-metrics { flex: 1 1 100%; } .po-metrics .csel { flex: 1 1 0; } .po-metrics .csel select { width: 100%; }
  .po-match { flex-basis: 100%; }
}
.po-line { fill: none; stroke: var(--bloom); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.po-fill { stroke: none; }
.fade-top { stop-color: var(--bloom); stop-opacity: 0.34; }
.fade-end { stop-color: var(--bloom); stop-opacity: 0; }

/* Posts and replies: the keys are also the switches that show or hide each series */
.po-kinds-head { display: flex; gap: 0.5rem 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.key-chips { display: flex; gap: 0.5rem; }
.key-chip { display: inline-flex; align-items: center; gap: 0.45rem; font: 700 0.88rem var(--body); color: var(--ink-bright); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-control); padding: 0.35rem 0.7rem 0.35rem 0.5rem; cursor: pointer; }
.key-chip i { width: 4px; height: 15px; border-radius: 2px; }
.key-chip:not(.on) { color: var(--muted); } .key-chip:not(.on) i { opacity: 0.3; }
.key-chip:hover { border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); }
.key-chip:focus-visible { outline: 2px solid var(--bloom); outline-offset: 1px; }

.po-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.po-toolbar .chips { margin-bottom: 0; }
#po-list-cov { margin: 0 0 0.75rem; }
.po-table { container-type: inline-size; }
.po-row { display: grid; grid-template-columns: minmax(220px, 1fr) 72px 96px repeat(4, 124px) 172px; gap: 0.75rem; align-items: center;
  padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
.po-head { background: var(--raised); padding-top: 0.55rem; padding-bottom: 0.55rem; border-top: 0; border-bottom: 1px solid var(--line); }
.po-head + .po-row { border-top: 0; }
.po-head > div { display: flex; align-items: center; min-height: 1.75rem; }
.po-row .num { justify-content: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.po-row .acts { justify-content: flex-end; }
.th-static { font: 700 0.8rem var(--body); color: var(--muted); letter-spacing: 0.02em; }
.po-head .th, .po-head .th-static { white-space: nowrap; }
.po-head .num .th { text-align: right; }
.po-post { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.po-thumb { width: 64px; height: 36px; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--raised); }
.po-thumb.lg { width: 160px; height: 90px; }
.po-text { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.tag.reply { background: color-mix(in srgb, var(--bloom) 18%, transparent); color: var(--bloom); }
.po-detail { grid-column: 1 / -1; background: var(--bg); border: 1px solid var(--line); padding: 0.9rem 1rem; }
.po-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.po-h3 { font-size: 0.92rem; margin: 0 0 0.5rem; }
.po-mini { width: 100%; max-width: 320px; height: 90px; display: block; }
.po-note { padding: 0.6rem 1rem; background: var(--bloom-soft); border-bottom: 1px solid var(--line); }
@container (max-width: 1180px) {
  .po-row { grid-template-columns: minmax(220px, 1fr) 72px 96px 124px 124px 172px; }
  .po-row > :nth-child(6), .po-row > :nth-child(7) { display: none; }
}
@container (max-width: 760px) {
  .po-row { grid-template-columns: minmax(0, 1fr) 72px 124px; }
  .po-row > :nth-child(3), .po-row > :nth-child(5), .po-head > :nth-child(8) { display: none; }
  .po-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@container (max-width: 460px) {
  .po-row { grid-template-columns: minmax(0, 1fr) 124px; }
  .po-row > :nth-child(2) { display: none; }
}

.po-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.po-two .an-card { margin-bottom: 0; }
.po-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0.6rem 0 0; }
.po-take { margin: 0.9rem 0 0; font-weight: 700; }
.po-heat { display: grid; grid-template-columns: 40px repeat(8, minmax(0, 1fr)); gap: 3px; margin-top: 0.75rem; font-size: 0.72rem; }
.po-hh { color: var(--muted); text-align: center; line-height: 1.15; padding-bottom: 0.25rem; }
.po-hd { color: var(--muted); align-self: center; font-weight: 700; }
.po-cell { height: 26px; background: color-mix(in srgb, var(--bloom) calc(var(--a) * 100%), var(--raised)); }

/* One shared grid: every bar sits in the same first row, so all bars rise from one baseline even when a label wraps */
.po-funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 1fr auto auto; grid-auto-flow: column; column-gap: 0.6rem; height: 140px; margin-top: 0.6rem; text-align: center; }
.po-fb { display: contents; }
.po-fb span { align-self: end; justify-self: center; width: 70%; background: var(--bloom); }
.po-fb b { font-variant-numeric: tabular-nums; margin-top: 0.3rem; }
.po-fb em { align-self: start; font-style: normal; color: var(--muted); font-size: 0.74rem; line-height: 1.2; }
.po-vid { display: flex; gap: 1.1rem; align-items: flex-start; }
.po-vid-body { flex: 1; min-width: 0; }
.po-vid-body .muted.small { margin: 0.3rem 0 0; }
@media (max-width: 620px) { .po-vid { flex-direction: column; } }
@media print { .an-tabs, #an-range, .po-chart-bar, .po-toolbar, .po-row .acts { display: none !important; } .an-panel[hidden] { display: block !important; } }

/* Overview: Recent changes fills exactly the Follower count box's height, with a tighter gap between them */
.split.ov-split { gap: 0.85rem; align-items: stretch; }
.ov-split > div:last-child { display: flex; flex-direction: column; min-height: 0; }
.ov-split .events { flex: 1 1 0; min-height: 0; max-height: none; }
.ov-split .events { padding-right: 0.85rem; scrollbar-gutter: stable; }
@media (max-width: 860px) { .ov-split .events { flex: none; max-height: 380px; } }   /* stacked under the chart there's no box height to fill, and flex-basis 0 would collapse the list to nothing */

/* Settings: every section's content starts the same distance below its header, and nothing trails extra space */
#settings fieldset > legend + * { margin-top: 0; }
#settings fieldset > :last-child { margin-bottom: 0; }
#plan-actions:empty { display: none; }
#settings fieldset > p { margin: 0; }
/* Settings: a little narrower than other dialogs */
#settings { max-width: min(31.25rem, 100%); }   /* never wider than the screen: on a 320px phone it was 352px and cut off on the right */
#settings .settings { min-width: 0; }
#settings { overflow-x: hidden; }   /* Settings never scrolls sideways */
/* Settings: Terms and Privacy links sit on the left of the Done button */
.settings-foot { justify-content: space-between; flex-wrap: nowrap; align-items: flex-end; }
.settings-foot .fine { margin: 0; line-height: 1.2; }   /* text bottom lines up with the Done button's bottom edge */
.pal-color { width: 52px !important; min-width: 0; padding: 0; border: 0; }

/* Settings: plan tiers, styled like the theme cards above them */
.plan-tiers { display: grid; gap: 0.5rem; grid-auto-rows: 1fr; }   /* every plan box the same height */
.plan-tier { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); background: var(--surface); }
.plan-tier.current { border-color: var(--bloom); background: var(--bloom-soft); }
.plan-tier strong { color: var(--ink-bright); }
.plan-tier-price { color: var(--muted); font-weight: 700; margin-left: 0.3rem; }
.plan-tier-desc { display: block; margin-top: 0.15rem; }
.plan-tier-act { flex: none; }

/* Settings: download and delete side by side, matching buttons, half width each */
.data-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.data-btns .btn { width: 100%; justify-content: center; text-align: center; color: var(--bloom); }
.data-btns #del-open[aria-expanded="true"] { border-color: var(--danger); }
.del-panel { display: grid; gap: 0.5rem; padding: 0.8rem 0.9rem; border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.del-panel[hidden] { display: none; }
.del-panel p { margin: 0; }
.del-panel .btn { justify-self: start; }
.data-btns #del-open { color: var(--danger); }
/* Settings: larger section headers */
.settings legend { font-size: 1.15rem; color: var(--ink-bright); line-height: 1.2; margin-bottom: 0.2rem; }

/* Settings: usage button and ledger */
.usage-box { display: grid; gap: 0.5rem; }
.usage-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.usage-toggle[aria-expanded="true"] .usage-caret { transform: rotate(180deg); }
.usage-caret { transition: transform 0.15s ease; }
.usage-ledger { display: grid; gap: 0.5rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); background: var(--surface); }
.usage-ledger[hidden] { display: none; }
.usage-ledger p { margin: 0; }
.ledger-h { font-size: 0.85rem; margin: 0.3rem 0 0; color: var(--muted); }
.ledger { display: grid; }
.ledger-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.ledger-row:first-child { border-top: 0; }
.ledger-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-total { font-weight: 700; color: var(--ink-bright); }
@media (prefers-reduced-motion: reduce) { .usage-caret { transition: none; } }
#appearance-legend { margin-bottom: 0.68rem; }   /* the theme boxes keep their original space below the header */
/* Settings: the usage button and the monthly limit menu match in width and height */
#usage-toggle, #cap-select { width: 100%; height: 2.4rem; box-sizing: border-box; }
#cap-wrap .row { display: flex; width: 100%; }
#usage-toggle { padding-top: 0; padding-bottom: 0; height: auto; min-height: 2.4rem; white-space: normal; text-align: left; }   /* the usage line wraps on the narrowest phones instead of pushing Settings wider */
#cap-select { font: 700 0.85rem var(--body); }
.sum-next { margin: 0.45rem 0 0; }
#an-summary p { margin: 0; } #an-summary .muted.small { margin-top: 0.45rem; }
/* Settings: every theme box and plan box is the same height */
.settings fieldset:first-of-type { grid-auto-rows: auto; }
.theme-opt, .plan-tier { min-height: 6rem; box-sizing: border-box; }
@media (max-width: 380px) { .theme-opt, .plan-tier { min-height: 7.25rem; } }
.faq-page { margin: 1.25rem 0 1.5rem; }
.warn .link, .wnames .link, .events .link { padding: 0; color: inherit; }
.events li.pending { align-items: center; }

/* Phones and tablets zoom into any text box under 16px when it's tapped, and
   don't zoom back out. Keep every typing field at 16px on touch screens. */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
  textarea, select { font-size: 16px !important; }
  .pal-hex { width: 92px !important; }
}

/* Analytics: folder tabs, in the site's own chip and card style (square containers, 3px controls, 1px lines).
   The tabs sit on one bordered panel; the active tab shares the panel's fill and covers its top line, so it flows into it. */
.an-top { flex-wrap: wrap-reverse; align-items: flex-start; margin-bottom: 0; }
.an-top #an-range { margin-bottom: 0.5rem; }
.an-tabs, .wl-bar :is(#wl-chips, #help-chips) { gap: 0.4rem; flex-wrap: nowrap; align-items: flex-end; }
.an-tabs .chip, :is(#wl-chips, #help-chips) .chip {
  padding: 0.5rem 1rem; border-radius: var(--r-control) var(--r-control) 0 0; border-bottom-color: transparent;
  background: none; color: var(--muted);
}
.an-tabs .chip:hover:not(.on), :is(#wl-chips, #help-chips) .chip:hover:not(.on) { color: var(--ink); }
.an-tabs .chip.on, :is(#wl-chips, #help-chips) .chip.on { position: relative; z-index: 1; background: var(--surface); color: var(--ink-bright); border-color: var(--line); border-bottom-color: var(--surface); margin-bottom: -1px; padding-bottom: calc(0.5rem + 1px); }
.an-folder { background: var(--surface); border: 1px solid var(--line); padding: 1.25rem 1.25rem 0.1rem; margin-bottom: 1.5rem; }
/* Once the tabs no longer fit beside search and export, they get the bottom row to themselves and share its full width,
   so the last tab reaches the list's right corner */
#v-admin { container: adm / inline-size; }
@container adm (max-width: 720px) {
  .wl-bar :is(#wl-chips, #help-chips) { flex: 1 1 100%; min-width: 0; gap: 0.25rem; }
  :is(#wl-chips, #help-chips) .chip { flex: 1 1 auto; min-width: 0; padding-inline: 0.2rem; font-size: clamp(0.62rem, 3.5vw, 0.9rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wl-bar input { max-width: none; }
}
/* Date range: one bordered control with a highlight that slides to the chosen range (equal columns, positioned by which chip is on). */
#an-range {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control);
}
#an-range::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 5);
  background: var(--ink); border-radius: 2px; transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1);
}
#an-range:has(.chip:nth-child(2).on)::before { transform: translateX(100%); }
#an-range:has(.chip:nth-child(3).on)::before { transform: translateX(200%); }
#an-range:has(.chip:nth-child(4).on)::before { transform: translateX(300%); }
#an-range:has(.chip:nth-child(5).on)::before { transform: translateX(400%); }
#an-range .chip {
  position: relative; border: 0; background: none; border-radius: 2px; padding: 0.35rem 0.85rem;
  white-space: nowrap; text-align: center; transition: color 0.2s ease;
}
#an-range .chip:hover:not(.on) { color: var(--ink); }
#an-range { touch-action: pan-y; cursor: grab; user-select: none; }   /* horizontal drags slide the highlight instead of scrolling the page */
#an-range.dragging, #an-range.dragging .chip { cursor: grabbing; }
#an-range .chip.on { background: none; color: var(--bg); }
@media (prefers-reduced-motion: reduce) { #an-range::before { transition: none; } }
:root[data-theme="light"] #an-range::before { background: var(--bloom); }   /* Light: the selected range in the bar graph's blue */
.an-folder .an-card { background: none; }
#an-range .chip span { font-weight: inherit; margin-left: 0; }   /* undo the generic .chip span count styling */
#an-range .rl-short { display: none; }
/* Narrowing order: the range stays beside the tabs and shrinks its text first (smaller, then 7d/2w/4w/3m/1y);
   only when even that won't fit does it move above the tabs. app.js measures which step fits (fitRange) and sets
   the class, so the highlight always lines up with its label whatever the fonts or the number of tabs. */
#v-analytics { container: an / inline-size; }
.an-top { flex-wrap: nowrap; align-items: flex-end; column-gap: 1rem; }
.an-tabs { flex: none; }
#an-range { flex: 0 1 auto; min-width: 0; }
#v-analytics.rg-tight #an-range .chip { padding-inline: 0.5rem; font-size: 0.8rem; }
#v-analytics.rg-short #an-range .rl-long { display: none; } #v-analytics.rg-short #an-range .rl-short { display: inline; }
#v-analytics.rg-stack .an-top { flex-direction: column-reverse; align-items: stretch; }
#v-analytics.rg-stack .an-top #an-range { margin-bottom: 0.9rem; }
#v-analytics.rg-stack #an-range .chip { padding-inline: 0.2rem; font-size: 0.8rem; }
/* stacked, the tabs share the width and their text scales down on narrow screens, so the row never overflows */
#v-analytics.rg-stack .an-tabs { gap: 0.2rem; }
#v-analytics.rg-stack .an-tabs .chip { flex: 1 1 0; min-width: 0; padding-inline: 0.15rem; text-align: center; font-size: clamp(0.6rem, 3.9vw, 0.9rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v-analytics.rg-stack .an-folder { padding: 0.9rem 0.75rem 0.1rem; }
@media (max-width: 300px) { .side > .brand { font-size: 3.6vw; } .side .me .link { font-size: 3vw; } .side { column-gap: 1.6vw; } }   /* tiny windows: keep the whole top row readable on one line */
@media print { .an-folder { border: 0; padding: 0; background: none; } }

/* Ask Rudi: round button in the corner, chat window above it */
.ask-fab { position: fixed; right: max(1.1rem, env(safe-area-inset-right, 0px)); bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 56;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--primary-border); background: var(--bloom-strong); color: var(--on-accent);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px var(--shadow); transition: transform 0.12s ease, filter 0.12s ease; }
.ask-fab:hover { filter: brightness(1.12); }
.ask-fab:active { transform: scale(0.96); }
.ask-fab:focus-visible { outline: 2px solid var(--bloom); outline-offset: 3px; }
.ask-fab .ask-sun { width: 30px; height: 30px; }
.ask-fab .ask-sun circle { fill: currentColor; }
.ask-fab .ask-sun line { stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.ask-fab .ask-x, .ask-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ask-fab .ask-x, .ask-fab.open .ask-sun, .ask-fab .ask-vsun { display: none; }
/* Vaporwave: a hot-pink button with the logo's striped sunset sun in black */
:root[data-theme="vapor"] .ask-fab { background: #FF71CE; border: 2px solid #2A0E4A; box-shadow: 0 0 16px rgba(255, 113, 206, 0.55); color: #0D0518; }
:root[data-theme="light"] .ask-fab { background: #FFFFFF; color: var(--bloom); border: 2px solid var(--bloom); }   /* light: the outlined button, a white face with a blue ring and sun */
/* Dark (default) theme: a black sun on the green button, to match Vaporwave's black sun */
:root:not([data-theme]) .ask-fab .ask-sun, :root[data-theme="dark"] .ask-fab .ask-sun { color: #0A0A0A; }
:root[data-theme="vapor"] .ask-fab:not(.open) .ask-sun { display: none; }
:root[data-theme="vapor"] .ask-fab:not(.open) .ask-vsun { display: block; width: 36px; height: 36px; }
:root[data-theme="vapor"] .ask-fab .ask-vsun circle { fill: #0D0518; }
.ask-fab.open .ask-x { display: block; }
body:has(.ask-fab:not([hidden])) .to-top { bottom: calc(1.1rem + 68px + env(safe-area-inset-bottom, 0px)); }
body:has(.taskbar:not([hidden])) .ask-fab { bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
body:has(.swipe:not([hidden])) .ask-fab, body:has(.swipe:not([hidden])) .ask-panel { display: none; }
.ask-panel { position: fixed; right: max(1.1rem, env(safe-area-inset-right, 0px)); bottom: calc(1.1rem + 68px + env(safe-area-inset-bottom, 0px)); z-index: 56;
  width: min(400px, calc(100vw - 2.2rem)); height: min(600px, calc(100vh - 7rem)); display: flex; flex-direction: column;
  background: linear-gradient(var(--surface), var(--surface)), var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 36px var(--shadow); }
/* --surface is see-through in some themes (Vaporwave); the solid --bg underneath keeps the chat fully opaque */
.ask-panel[hidden] { display: none; }
body:has(.taskbar:not([hidden])) .ask-panel { bottom: calc(4.4rem + 68px + env(safe-area-inset-bottom, 0px)); }
.ask-head { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.9rem 1rem 0.75rem; border-bottom: 1px solid var(--line); }
.ask-head > div { flex: 1; min-width: 0; }
.ask-head h2 { font-size: 1.1rem; margin: 0 0 0.1rem; }
.ask-head .fine { display: block; font-size: 0.8rem; }
.ask-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.15rem; display: grid; place-items: center; border-radius: var(--r-control); }
.ask-close:hover { color: var(--ink); }
.ask-close:focus-visible { outline: 2px solid var(--bloom); outline-offset: 2px; }
.ask-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ask-log { flex: 1; min-height: 0; overflow-y: auto; padding: 0.9rem 1rem 0.25rem; }
/* Chat bubbles, like a phone's messages app: your questions on the right, Rudi's answers on the left */
.ask-msg { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 0.9rem; min-width: 0; overflow-wrap: anywhere; }
.ask-you { align-items: flex-end; }
.ask-bubble { max-width: 88%; min-width: 0; padding: 0.55rem 0.8rem; border-radius: 18px; border-bottom-left-radius: 5px;
  background: var(--raised); color: var(--ink); border: 1px solid var(--line); }
.ask-you .ask-bubble { max-width: 80%; border-radius: 18px; border-bottom-right-radius: 5px; background: var(--bloom-strong); color: var(--on-accent); border-color: var(--bloom-strong); }
.ask-bubble > :last-child { margin-bottom: 0; }
.ask-you .ask-bubble p { white-space: pre-wrap; }
.ask-failed .ask-bubble { background: transparent; color: var(--ink); border-color: var(--danger); }
.ask-failed .ask-err { color: var(--danger); font-size: 0.85rem; margin: 0.3rem 0 0; text-align: right; }
.ask-msg p, .ask-msg ul { margin: 0 0 0.4rem; }
.ask-msg ul { padding-left: 1.2rem; }
.ask-who { display: block; font-weight: 700; font-size: 0.8rem; color: var(--muted); margin: 0 0.4rem 0.2rem; }
.ask-rudi .ask-who { color: var(--bloom); }
.ask-when { font-weight: 400; color: var(--muted); margin-left: 0.35rem; }
.ask-rudi .ask-ideas, .ask-rudi .ask-niche-proposal { align-self: stretch; }
.ask-rate { display: flex; gap: 0.5rem; margin: 0.25rem 0 0 0.2rem; }
.ask-rate .link.on { color: var(--ink); font-weight: 700; }
.ask-suggest { flex-direction: column; align-items: flex-start; }
.ask-ideas { display: grid; gap: 0.6rem; margin: 0.5rem 0; }
.ask-idea { padding: 0.7rem 0.8rem; margin: 0; }
.ask-idea p { margin: 0 0 0.35rem; }
.ask-draft { margin: 0.2rem 0 0.45rem; padding: 0.45rem 0.6rem; border-left: 3px solid var(--bloom); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-idea a { overflow-wrap: anywhere; }
.ask-idea-acts { gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.ask-idea-acts .btn.on { border-color: var(--bloom); color: var(--bloom); font-weight: 700; }
/* Ask Rudi on an Ideas card: the idea above the conversation, and the new versions Rudi proposes */
.ask-about { border-bottom: 1px solid var(--line); padding: 0.55rem 1rem; font-size: 0.88rem; max-height: 40%; overflow-y: auto; }
.ask-about[hidden] { display: none; }
.ask-about summary { cursor: pointer; overflow-wrap: anywhere; }
.ask-about summary:hover b { color: var(--bloom); }
.ask-about-k { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ask-about-draft { margin: 0.4rem 0 0; padding-left: 0.6rem; border-left: 3px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.ask-rev .ask-draft { position: relative; }
.ask-rev-n { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.1rem; }
.ask-rev .idea-blanks { margin: 0 0 0.45rem; }
.ask-rev-sent { margin: 0; }
:is(.ask-rev, .ask-about) .idea-blank { background: color-mix(in srgb, var(--amber, #E8A33D) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.ask-niche { margin-bottom: 1rem; padding: 0.8rem 1rem; }
.ask-niche p { margin: 0 0 0.35rem; }
.ask-suggest .chip { text-align: left; }
.ask-form { display: flex; gap: 0.5rem; align-items: flex-end; border-top: 1px solid var(--line); padding: 0.75rem 1rem 0.4rem; }
.ask-form textarea { resize: none; flex: 1; }
.ask-form textarea:focus-visible { outline: none; border-color: var(--muted); }   /* no thick accent ring while typing; a quieter border shows where the cursor is */
.ask-fine { margin: 0; padding: 0 1rem 0.75rem; font-size: 0.78rem; }
@media (max-width: 560px) {
  .ask-panel { inset: 0; width: auto; height: auto; border: 0; z-index: 65;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  body.ask-open .ask-fab { display: none; }
  body.ask-open { overflow: hidden; }
}
.ask-hist-bar { margin-bottom: 1rem; }
.ask-hist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
.ask-hist-row:first-child { border-top: 0; }
.ask-hist-now { display: none; margin-left: 0.5rem; vertical-align: middle; background: var(--bloom-soft); color: var(--bloom); }
.ask-hist-row.on:not(.open) .ask-hist-now { display: inline-block; }   /* "Open now" = it's in the floating window */
.ask-hist-sum { cursor: pointer; min-width: 0; }
/* A chat opened on the page: full size, filling the screen below the sticky header, with its own scrolling */
.ask-hist-chat { display: none; }
body:has(#v-ask:not([hidden]) .ask-hist-row.open) .ask-fab { display: none; }   /* the open chat is right there, and the button would cover its Ask button on phones */
.ask-hist-row.open .ask-hist-chat { grid-column: 1 / -1; display: flex; flex-direction: column; height: clamp(380px, calc(100dvh - 210px), 1000px);
  background: linear-gradient(var(--surface), var(--surface)), var(--bg); border: 1px solid var(--line); }
.ask-hist-chat .ask-log { padding: 1.1rem 1.25rem 0.25rem; }
.ask-hist-chat .ask-form { padding: 0.75rem 1.25rem 0.4rem; }
.ask-hist-chat .ask-fine { padding: 0 1.25rem 0.75rem; }
.ask-hist-chat .ask-bubble { max-width: min(88%, 44rem); }
.ask-hist-chat .ask-you .ask-bubble { max-width: min(80%, 36rem); }
.ask-hist-chat :is(.ask-ideas, .ask-niche-proposal) { max-width: 46rem; }
.ask-hist-last { color: var(--ink); overflow-wrap: anywhere; }
.ask-hist-row strong { overflow-wrap: anywhere; }
.ask-hist-empty { padding: 1rem; margin: 0; }
@media (max-width: 560px) {
  .ask-hist-row { grid-template-columns: 1fr; gap: 0.5rem; } .ask-hist-row .row-acts { justify-content: flex-start; }
  .ask-hist-row.open { padding: 0.8rem 0.6rem; }
  .ask-hist-row.open .ask-hist-chat { height: clamp(340px, calc(100dvh - 270px), 900px); }
  .ask-hist-chat .ask-log { padding: 0.9rem 0.8rem 0.25rem; }
  .ask-hist-chat .ask-form { padding: 0.65rem 0.8rem 0.4rem; }
  .ask-hist-chat .ask-fine { padding: 0 0.8rem 0.65rem; }
}
.admin-ask-q { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.how-premium { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; max-width: 46rem; scroll-margin-top: 5rem; }
.how-premium h3 { margin: 1.6rem 0 0.4rem; font-size: 1.05rem; }
.how-premium p, .how-premium li { line-height: 1.55; }
.how-premium li { margin: 0.35rem 0; }
.how-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.95rem; }
.how-table th, .how-table td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
.how-table th { color: var(--muted); font-weight: 600; }
.how-table td:first-child { white-space: nowrap; }
@media (max-width: 520px) { .how-table td:first-child { white-space: normal; } }

/* Analytics: now and then a small polar bear pokes his head up from behind the panel, between the tabs and the date range,
   raises a paw and waves, then ducks back down. He sits two-thirds of the way across that gap, not in its middle */
.an-bear { flex: 1 1 0; align-self: flex-end; height: 46px; min-width: 89px; overflow: hidden; display: flex; justify-content: flex-start; pointer-events: none;
  --bear-fur: #A9CFC7; --bear-shade: #5F8F88; --bear-muzzle: #C4E0DA; --bear-ink: #0A1822; }
:root[data-theme="light"] .an-bear { --bear-fur: #FFFFFF; --bear-shade: #AEB8CC; --bear-muzzle: #EEF2F8; --bear-ink: #1B2233; }
:root[data-theme="vapor"] .an-bear { --bear-fur: #F3E9FF; --bear-shade: #B967FF; --bear-muzzle: #FFFFFF; --bear-ink: #1A0B2E; }
.an-bear svg { width: 89px; height: 46px; flex: none; margin-left: clamp(0px, 100% * 2 / 3 - 44.5px, 100% - 89px); }   /* the whole bear, paw included, is one drawing, so they move together */
.ab-fur { fill: var(--bear-fur); } .ab-shade { fill: var(--bear-shade); } .ab-muzzle { fill: var(--bear-muzzle); } .ab-ink { fill: var(--bear-ink); }
.ab-ink-line { fill: none; stroke: var(--bear-ink); stroke-width: 1.1; stroke-linecap: round; }
/* in Vaporwave he wears black wayfarers with a cyan glint, and the eyes (and their blink) hide behind them */
.ab-shades { display: none; }
:root[data-theme="vapor"] .ab-shades { display: inline; }
:root[data-theme="vapor"] .ab-eye { visibility: hidden; }
.ab-glint { fill: #01CDFE; opacity: 0.75; }
/* one 10s cycle: the head rises, then the paw comes up and waves, the paw drops, then the head ducks */
.ab-body { transform: translateY(100%); animation: bear-peek 10s ease-in-out 1 both; }
.ab-arm { transform: translateY(100%); transform-box: fill-box; transform-origin: 50% 100%; animation: bear-wave 10s ease-in-out 1 both; }
.ab-eye { transform-box: fill-box; transform-origin: center; animation: bear-blink 10s 1 both; }
@keyframes bear-peek { 0%, 6% { transform: translateY(100%); } 13%, 64% { transform: translateY(0); } 71%, 100% { transform: translateY(100%); } }
@keyframes bear-wave { 0%, 18% { transform: translateY(100%) rotate(0); } 25% { transform: translateY(0) rotate(0); }
  29% { transform: translateY(0) rotate(14deg); } 33% { transform: translateY(0) rotate(-10deg); } 37% { transform: translateY(0) rotate(14deg); }
  41% { transform: translateY(0) rotate(-10deg); } 45% { transform: translateY(0) rotate(14deg); } 49% { transform: translateY(0) rotate(0); }
  56%, 100% { transform: translateY(100%) rotate(0); } }
@keyframes bear-blink { 0%, 15%, 16.5%, 52%, 53.5%, 100% { transform: scaleY(1); } 15.8%, 52.8% { transform: scaleY(0.1); } }
@media (prefers-reduced-motion: reduce) { .an-bear { display: none; } }
/* once the bear has waved, his flat iceberg (the homepage's, with him on it) slowly floats in from off the left edge of the screen
   to the foot of the side panel, then keeps drifting back and forth across it for the rest of the visit. Its waterline sits on
   the mountain art's horizon: the land is drawn 900px wide (1600x1150 units, so 0.5625px a unit) with its foot 84px below the
   panel, so the horizon (y=930) is 220 x 0.5625 - 84 = 39.75px up. The berg is 90x62, its waterline 45/110 of the way down
   (25.4px), so its foot sits 39.75 - 36.6 = 3px up. It sits between the mountain (the panel's ::before) and, in light, the mist
   (::after), so the mist washes it like the mountain; dark keeps it a little faint. The arrival moves `transform` and the drift
   moves `translate`, so the drift picks up from where the berg comes to rest.
   Light and dark, wide screens only, where the side panel has its art; without motion it is simply there */
.side-berg { position: absolute; left: 124px; bottom: 3px; width: 90px; height: 62px; z-index: -1; pointer-events: none;
  background: url(/static/img/hero/dark-iceberg-flat.svg) center / contain no-repeat; opacity: var(--side-berg-fade, 0.75);
  transform: translateX(-240px); transition: transform 116s linear; }
/* one constant speed throughout, the homepage footer berg's average pace (70px every 34s, about 2px a second):
   240px in takes 116s, and each 100px leg of the drift takes 48s */
.side.berg-in .side-berg { transform: none; animation: side-berg-drift 48s linear 116s infinite alternate; }
@keyframes side-berg-drift { from { translate: 0 0; } to { translate: -100px 0; } }   /* from its resting spot to the panel's left side */
:root[data-theme="light"] .side-berg { background-image: url(/static/img/hero/light-iceberg-flat.svg); --side-berg-fade: 1; }
@media (max-width: 860px) { .side-berg { display: none; } }
:root[data-theme="vapor"] .side-berg { display: none; }   /* no iceberg in Vaporwave, like its homepage */
@media (prefers-reduced-motion: reduce) { .side-berg { transform: none; transition: none; animation: none !important; } }
@container an (max-width: 470px) { .an-bear { display: none; } }

/* Wide screens: Analytics becomes a multi-column dashboard. It switches on the space Analytics actually has (its container,
   so the side panel is already taken off), not the device or the screen's resolution: a big monitor with a narrowed window
   keeps the normal layout, and a 1920px window or wider gets the dashboard. Phones, tablets and laptops never see it. */
@media (min-width: 1800px) { .main { max-width: 2400px; } }
@container an (min-width: 1500px) {
  .an-folder .an-card { margin-bottom: 0; }
  .an-folder .tiles { margin-bottom: 0; }
  #an-p-overview, #an-p-posts, #an-body { display: grid; gap: 1.25rem; padding-bottom: 1.15rem; align-items: start; }
  /* Overview: headline numbers across the top, then the trend beside the findings */
  #an-p-overview { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "tiles tiles" "tip tip" "chart find" "cov cov"; }
  #an-p-overview:has(#po-findings-card[hidden]) { grid-template-areas: "tiles tiles" "tip tip" "chart chart" "cov cov"; }
  #po-tiles { grid-area: tiles; } #an-tip-overview { grid-area: tip; } #po-chart-card { grid-area: chart; } #po-findings-card { grid-area: find; } #po-coverage { grid-area: cov; margin: 0; }
  #an-p-overview > .an-card { align-self: stretch; }
  /* Posts: the table on the left, replies vs. originals and best times pinned beside it while it scrolls */
  #an-p-posts { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); grid-template-areas: "tip tip" "tool side" "cov side" "list side"; row-gap: 0.75rem; }
  #an-tip-posts { grid-area: tip; } #an-p-posts .po-toolbar { grid-area: tool; margin: 0; } #po-list-cov { grid-area: cov; margin: 0; } #po-list { grid-area: list; align-self: start; }
  #an-p-posts .po-two { grid-area: side; grid-template-columns: minmax(0, 1fr); margin: 0; align-self: start; position: sticky; top: 1rem; }
  /* Audience: three columns. Growth on the left two thirds, who left on the right, then quality, topics and comparisons */
  #an-body { grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas: "note note note note note note note note note note note note" "tip tip tip tip tip tip tip tip tip tip tip tip"
      "sum sum sum sum tl tl tl tl tl tl tl tl" "line line line line line line line line unf unf unf unf"
      "flow flow flow flow flow flow flow flow unf unf unf unf" "qual qual qual qual qual top top top top top top top"
      "vis vis vis vis vis top top top top top top top" "watch watch watch watch watch watch watch watch watch watch watch watch" "wrap wrap wrap wrap wrap wrap wrap wrap wrap wrap wrap wrap"; }
  #an-body:has(#an-summary[hidden]) { grid-template-areas: "note note note note note note note note note note note note" "tip tip tip tip tip tip tip tip tip tip tip tip"
      "tl tl tl tl tl tl tl tl tl tl tl tl" "line line line line line line line line unf unf unf unf"
      "flow flow flow flow flow flow flow flow unf unf unf unf" "qual qual qual qual qual top top top top top top top"
      "vis vis vis vis vis top top top top top top top" "watch watch watch watch watch watch watch watch watch watch watch watch" "wrap wrap wrap wrap wrap wrap wrap wrap wrap wrap wrap wrap"; }
  #an-body > .po-demo-note { grid-area: note; margin: 0; } #an-tip-audience { grid-area: tip; } #an-summary { grid-area: sum; align-self: stretch; }
  #an-tiles { grid-area: tl; } #topics-card { grid-area: top; align-self: stretch; }
  #an-body > .an-card:has(#an-line) { grid-area: line; } #an-body > .an-card:has(#an-flows) { grid-area: flow; }
  #an-body > .an-split { display: contents; }
  #an-body > .an-split > .an-card:has(#an-quality) { grid-area: qual; align-self: stretch; }
  #an-body > .an-split > .an-card:has(#an-unfollowers) { grid-area: unf; align-self: stretch; display: flex; flex-direction: column; }
  #an-body #an-unfollowers { flex: 1 1 0; min-height: 0; max-height: none; }
  #an-body > [data-feature="watchlist"] { grid-area: watch; } #an-body > [data-feature="visibility"] { grid-area: vis; align-self: stretch; }
  #an-body > .an-card:has(#an-wraps) { grid-area: wrap; }
  /* Video: the videos side by side, two to a row */
  #po-video { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding-bottom: 1.15rem; }
  #po-video > .tiles, #po-video > .an-card:only-child { grid-column: 1 / -1; }
  #an-p-video > .an-tip:not([hidden]) { margin-bottom: 1.25rem; }
}

/* My dashboard: a 12-column grid of cards you arrange yourself (dashboard.js). Sizes step Tiny, Small, Medium, Half,
   Wide, Full width; on narrower screens they round up so nothing gets too thin to read, and phones get one card per row
   with single numbers two to a row */
#an-t-mine .tab-short { display: none; }
#v-analytics.rg-stack #an-t-mine .tab-long { display: none; } #v-analytics.rg-stack #an-t-mine .tab-short { display: inline; }
#v-analytics.rg-stack .an-tabs .chip { flex-basis: auto; }   /* phones: a short name, and each tab as wide as its word, so all five fit */
#an-p-mine { container: dash / inline-size; padding-bottom: 1.15rem; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.dash-hint { margin: 0; max-width: 46rem; }
.dash-acts { display: flex; gap: 0.5rem; margin-left: auto; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }   /* no dense packing: cards stay in the order you put them */
.dash-item { grid-column: span 12; position: relative; min-width: 0; display: flex; flex-direction: column; }
.dash-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dash-body > * { flex: 1 1 auto; margin: 0 !important; width: 100%; box-sizing: border-box; }
.dash-body > .tiles { flex: none; }
.dash-body > .tile { height: 100%; }
.dash-item:has(.dash-body > [hidden]):not(:has(.dash-body > :not([hidden]))) { display: none; }   /* a card with nothing to show this period steps aside */
.dash-none { display: none; margin: 0; padding: 1.1rem 1.25rem; border: 1px dashed var(--line); }
.dash-tools { display: none; }
/* Each card's width (columns of 12) and height are set on it directly; see place() in dashboard.js */
.dash-item { container: ditem / inline-size; }
@container ditem (max-width: 240px) { .dash-name { display: none; } .dash-tools { justify-content: space-between; } }   /* small cards: the card says what it is */
/* A card with its own height: what's inside is fitted to it, never cut off or scrolled */
.dash-item.has-h > .dash-body { min-height: 0; overflow: hidden; }
.dash-item.has-h:not(.dash-page) > .dash-body > * { flex: none; }
.dash-page.has-h > .dash-body > .view { max-height: none; height: 100%; }
.dash-num > .dash-body { container: dnum / inline-size; }
.dash-num.has-h > .dash-body { container-type: size; }
/* A single number with its own size: the number and its words grow and shrink with the card */
.dash-num.has-h .tile { display: flex; flex-direction: column; justify-content: safe center; }
.dash-num.has-h .tile.has-viz { justify-content: flex-start; }
.dash-num.has-h .tile > b { font-size: clamp(1rem, min(17cqw, 30cqh), 9rem); line-height: 1.05; }
.dash-num.has-h .tile > span { font-size: clamp(0.66rem, min(6cqw, 9cqh), 1.35rem); }
.dash-num.has-h .dash-spark { flex: 1 1 auto; height: auto; min-height: 24px; }
.dash-num.has-h .dash-donut { width: clamp(30px, min(26cqw, 44cqh), 160px); height: auto; aspect-ratio: 1; }
.dash-num.has-h .tile.viz-donut > b, .dash-num.has-h .tile.viz-donut > span { padding-right: calc(clamp(30px, min(26cqw, 44cqh), 160px) + 6px); }
/* Editing: every card gets a bar with a handle to drag, its size, and a remove button; empty cards show as outlines */
#an-p-mine.editing .dash-tools { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.4rem 0.35rem 0.25rem;
  border: 1px solid var(--line); border-bottom: 0; background: var(--raised); font-size: 0.82rem; }
#an-p-mine.editing .dash-item { outline: 1px dashed var(--primary-border); outline-offset: 3px; }
/* The resize corner: bottom right of each card while editing */
.dash-resize { display: none; position: absolute; right: -6px; bottom: -6px; z-index: 3; width: 24px; height: 24px; padding: 0; border: 1px solid var(--primary-border);
  background: var(--raised); color: var(--ink); cursor: nwse-resize; touch-action: none; place-items: center; }
.dash-resize svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
#an-p-mine.editing .dash-resize { display: grid; }
.dash-resize:hover, .dash-resize:focus-visible { background: var(--bloom-soft); }
.dash-grid.resizing, .dash-grid.resizing * { cursor: nwse-resize !important; user-select: none; }
.dash-item.resizing { outline-style: solid !important; }
@media (pointer: coarse) { .dash-resize { width: 34px; height: 34px; right: -10px; bottom: -10px; } }
#an-p-mine.editing .dash-item:has(.dash-body > [hidden]):not(:has(.dash-body > :not([hidden]))) { display: flex; }
#an-p-mine.editing .dash-item:has(.dash-body > [hidden]):not(:has(.dash-body > :not([hidden]))) .dash-none { display: block; }
.dash-grip { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); cursor: grab; touch-action: none; padding: 0; }
.dash-grip svg { width: 10px; height: 16px; fill: currentColor; }
.dash-grip:hover, .dash-grip:focus-visible { color: var(--ink); }
.dash-name { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-x { width: 26px; height: 26px; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; }
.dash-x:hover { background: var(--bloom-soft); }
.dash-x { flex: none; color: var(--muted); font-size: 1.15rem; }
.dash-grid.dragging, .dash-grid.dragging * { cursor: grabbing !important; user-select: none; }
.dash-item.lifted { opacity: 0.55; outline-style: solid !important; }
.dash-empty { margin: 0; padding: 2rem 0; text-align: center; }
.dash-pick { max-width: 44rem; }
.dash-pick h3 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
.dash-pick-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.4rem 1.5rem; }
.dash-pick fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.3rem; align-content: start; }
.dash-pick legend { font-size: 0.8rem; color: var(--muted); padding: 0; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
#dash-picker { max-width: min(46rem, calc(100vw - 2rem)); }
@media print { .dash-bar, .dash-tools { display: none !important; } }
/* My dashboard "Show as": the picker in the edit bar, and the small charts inside a single number */
.dash-viz { flex: none; height: 26px; padding: 0 1.4rem 0 0.4rem; font-size: 0.78rem; width: auto; max-width: 8.5rem; }
@container ditem (max-width: 240px) { .dash-viz { flex: 0 1 auto; min-width: 2.6rem; max-width: 5.6rem; } }
.tile.has-viz { position: relative; display: flex; flex-direction: column; }
.dash-spark { display: block; width: 100%; height: 44px; margin-top: auto; padding-top: 0.6rem; overflow: visible; }
.dash-spark polyline { fill: none; stroke: var(--bloom); stroke-width: 2; stroke-linejoin: round; }
.dash-spark .area { stroke: none; }
.dash-spark rect { fill: var(--bloom); }
.dash-spark rect.neg { fill: var(--danger); }
.dash-donut { position: absolute; top: 0.85rem; right: 0.85rem; width: 46px; height: 46px; }
.dash-donut circle { fill: none; stroke-width: 4.5; }
.dash-donut .track { stroke: var(--line); }
.dash-donut .fill { stroke: var(--bloom); stroke-linecap: round; }
.tile.viz-donut > b, .tile.viz-donut > span { padding-right: 52px; }
.dash-bar-meter { display: block; margin-top: auto; height: 8px; border-top: 0.8rem solid transparent; box-sizing: content-box;
  background: var(--line); background-clip: content-box; border-radius: 4px; overflow: hidden; }
.dash-bar-meter i { display: block; height: 100%; background: var(--bloom); border-radius: 4px; }
.q-donut { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 1rem 1.5rem; align-items: center; }
.q-donut svg { width: 100%; height: auto; max-height: 190px; }
.q-donut .q-donut-n { font-size: 7px; font-weight: 700; fill: var(--ink); }
.q-donut .q-donut-l { font-size: 3.4px; fill: var(--muted); }
.q-donut .an-legend { display: grid; gap: 0.4rem; }
@container dash (max-width: 520px) { .q-donut { grid-template-columns: 1fr; justify-items: center; } }
/* My dashboard: whole pages (Ideas, Calendar, Following…) sit in a card of their own and scroll inside it */
.dash-page > .dash-body { background: var(--surface); border: 1px solid var(--line); }
.dash-page > .dash-body > .view { padding: 1.1rem 1.25rem; max-height: min(1100px, 88vh); overflow: auto; overscroll-behavior: contain; }
.dash-page > .dash-body > .view > .list-head { margin-bottom: 1rem; }
.dash-page > .dash-body > .view > .list-head h1, .dash-page > .dash-body > .view h1:first-child { font-size: 1.3rem; margin-top: 0; }
@container dash (max-width: 699px) { .dash-page > .dash-body > .view { padding: 0.9rem 0.8rem; } }
/* The Rudi chat: a fixed-height conversation; while it's in the floating window the card says so */
.dash-item[data-k="p:rudi"] > .dash-body { height: clamp(420px, 70vh, 720px); }
.dash-item[data-k="p:rudi"] .ask-body { min-height: 0; }
.dash-away { display: none; padding: 1.1rem 1.25rem; flex: none !important; }
.dash-item[data-k="p:rudi"] > .dash-body:not(:has(#ask-body)) { height: auto; }
.dash-item[data-k="p:rudi"] > .dash-body:not(:has(#ask-body)) .dash-away { display: block; }
.dash-rudi-head { flex: none !important; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.dash-num { max-height: 420px; }   /* a single number beside a whole page doesn't stretch to the page's height */

/* The new look. Everything above this comment is the legacy design, kept untouched so admins can switch back
   (Settings > Design > Legacy). Everything from here down is scoped to [data-design="new"]; to drop the new look,
   delete from here to the end of the file. Rounded containers, pill buttons and chips first. */
:root[data-design="new"] { --r-control: 12px; --r-card: 18px; }
:root[data-design="new"] :is(.chart, .table, .steps, .preview, .find-source, .find-rules, .lp-shot, .lp-grid article, .lp-steps li,
  .lp-faq-item, .guide-cta, .guide-list li, .demo-archive, .lp-demo, .lock-card, .unlock-opt, .glance-card, .wrapup-card, .arch-ai,
  .tile, .an-card, .plan, .ai-profile, .enterprise, .pp-card, .help-card, .plan-tier, .usage-ledger, .dash-page > .dash-body,
  .cal-month, .cal-day, .idea-card, .idea-signals, .theme-opt, .drop, .demo-banner, .demo-bar, dialog) { border-radius: var(--r-card); }
:root[data-design="new"] :is(.btn, .demo-bar .btn, .chip:not(:is(.an-tabs, #wl-chips, #help-chips) .chip), .pill, .tag, .suggest, .plan-tag,
  .theme-tag, .toast, .mode-toggle) { border-radius: 999px; }
:root[data-design="new"] .table { overflow: hidden; }

/* The new look is the whole "sleek" look from the mockup, not just corners: softer lines, a faint glow behind the page,
   a floating sidebar, cards that sit on the page instead of inside a folder, calmer banners and Geist headings. */
:root[data-design="new"] { --display: "Geist", "Inter", "Inter Fallback", "Segoe UI", system-ui, sans-serif; }
:is(:root:not([data-theme]), :root[data-theme="dark"])[data-design="new"] { --bg: #07090D; --surface: #0E1218; --raised: #151A22;
  --line: rgba(255, 255, 255, 0.08); }
:root[data-theme="light"][data-design="new"] { --bg: #F4F6FA; --line: rgba(15, 23, 42, 0.09); }
:root[data-design="new"] :is(h1, h2, h3) { font-weight: 600; letter-spacing: -0.03em; }
:root[data-design="new"] h1 { letter-spacing: -0.035em; }
:root[data-design="new"] .brand { font-weight: 600; letter-spacing: -0.01em; }
/* the glow: two soft lights behind everything, in the theme's accent */
:root[data-design="new"]:not([data-theme="vapor"]) body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(40rem 32rem at 8% -8%, color-mix(in srgb, var(--bloom) 16%, transparent), transparent 70%),
    radial-gradient(36rem 30rem at 100% 18%, rgba(110, 90, 255, 0.13), transparent 70%); }
:root[data-theme="light"][data-design="new"] body::after {
  background: radial-gradient(40rem 32rem at 8% -8%, rgba(46, 220, 196, 0.22), transparent 70%),
    radial-gradient(36rem 30rem at 100% 18%, rgba(124, 108, 242, 0.16), transparent 70%); }
:root[data-design="new"] body { background: var(--bg); }
@media (min-width: 861px) {
  /* a floating sidebar panel */
  :root[data-design="new"] .shell { grid-template-columns: 248px minmax(0, 1fr); }
  :root[data-design="new"]:is([data-theme], :not([data-theme])) .side { top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px;
    border: 1px solid var(--line); border-radius: 28px; overflow: hidden; padding: 1.4rem 0.9rem; }
  :root[data-design="new"] .side nav { margin: 0; gap: 4px; }
  :root[data-design="new"] .nav { border-left: 0; border-radius: 14px; padding: 0.6rem 0.85rem; font-weight: 600; }
  :root[data-design="new"] .nav.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bloom) 30%, transparent); }
}
/* cards float on the page instead of sitting inside a bordered folder */
:root[data-design="new"] :is(.an-folder, #v-analytics.rg-stack .an-folder) { background: none; border: 0; padding: 0; border-radius: 0; }
:root[data-design="new"] .an-folder .an-card { background: var(--surface); }
:root[data-design="new"] .an-tabs { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); align-items: center; }
:root[data-design="new"] .an-tabs .chip { border: 0; border-radius: 999px; padding: 0.45rem 1rem; margin: 0; }
:root[data-design="new"] .an-tabs .chip.on { background: var(--raised); border: 0; margin: 0; padding: 0.45rem 1rem;
  box-shadow: inset 0 0 0 1px var(--line); }
:root[data-design="new"] #an-range { padding: 4px; border-radius: 999px; }
:root[data-design="new"] #an-range::before { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 5); border-radius: 999px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="light"][data-design="new"] #an-range::before { background: #FFFFFF; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12); }
:root[data-design="new"] #an-range .chip { border-radius: 999px; }
:root[data-design="new"] #an-range .chip.on { color: var(--ink-bright); }
:root[data-design="new"] .an-top { margin-bottom: 1.25rem; }
/* stat tiles: more room, bigger numbers */
:root[data-design="new"] .tile { padding: 1.1rem 1.15rem; border-radius: 22px; }
:root[data-design="new"] .tile b { font: 600 1.85rem/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 0.3rem; }
:root[data-design="new"] .an-card { border-radius: 22px; padding: 1.35rem 1.5rem; }
/* Rudi's tip glows: a thin accent-to-violet edge */
:root[data-design="new"] :is(.an-tip, .an-folder .an-card.an-tip) { border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--bloom), #62D3FF 45%, #8B7CFF) border-box; }
/* the demo notice is a slim, calm strip */
:root[data-design="new"] .demo-banner { background: color-mix(in srgb, var(--bloom) 7%, var(--surface)); border-color: color-mix(in srgb, var(--bloom) 22%, transparent);
  padding: 0.65rem 0.75rem 0.65rem 1.1rem; font-size: 0.88rem; }
@media (max-width: 860px) {
  /* the phone header sits on the same deep background, so the glow reads all the way up */
  :is(:root:not([data-theme]), :root[data-theme="dark"])[data-design="new"] .side { background: var(--bg); }
  :root[data-design="new"] .demo-banner { font-size: 0.85rem; }
}
/* Depth for the new look: the page behind the cards isn't flat. A stronger two-color glow and a faint dot texture sit
   behind everything, and cards are lit slightly from the top with a soft shadow, so they lift off the page. */
:root[data-design="new"]:not([data-theme="vapor"]) body::after {
  background: radial-gradient(48rem 36rem at 6% -10%, color-mix(in srgb, var(--bloom) 26%, transparent), transparent 70%),
    radial-gradient(44rem 36rem at 104% 12%, rgba(110, 90, 255, 0.24), transparent 70%),
    radial-gradient(56rem 30rem at 45% 115%, color-mix(in srgb, var(--bloom) 12%, transparent), transparent 70%); }
:root[data-theme="light"][data-design="new"] body::after {
  background: radial-gradient(48rem 36rem at 6% -10%, rgba(46, 220, 196, 0.32), transparent 70%),
    radial-gradient(44rem 36rem at 104% 12%, rgba(124, 108, 242, 0.24), transparent 70%),
    radial-gradient(56rem 30rem at 45% 115%, rgba(61, 155, 255, 0.16), transparent 70%); }
:root[data-design="new"]:not([data-theme="vapor"]) body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
:root[data-design="new"] :is(.tile, .an-card, .an-folder .an-card, .glance-card, .wrapup-card, .help-card, .idea-card, .cal-month, .cal-day, .table, .chart) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 4%, var(--surface)), var(--surface) 60%);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent) inset, 0 12px 32px rgba(0, 0, 0, 0.28); }
:root[data-theme="light"][data-design="new"] :is(.tile, .an-card, .an-folder .an-card, .glance-card, .wrapup-card, .help-card, .idea-card, .cal-month, .cal-day, .table, .chart) {
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(30, 41, 59, 0.08); }
:root[data-design="new"] :is(.an-tabs, #an-range) { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
:root[data-design="new"] .an-tip, :root[data-design="new"] .an-folder .an-card.an-tip {
  background: linear-gradient(120deg, color-mix(in srgb, var(--bloom) 9%, var(--surface)), color-mix(in srgb, #8B7CFF 9%, var(--surface))) padding-box,
    linear-gradient(120deg, var(--bloom), #62D3FF 45%, #8B7CFF) border-box; }
@media (min-width: 861px) {
  :root[data-design="new"]:not([data-theme="vapor"]):is([data-theme], :not([data-theme])) .side {
    background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}

/* The boot skeleton in the new look: the same floating sidebar panel, pill tabs and range, and the cards below the tiles
   (Rudi's glowing insight, Findings, Trend), so the first screen matches the page that replaces it. */
.bs-nav > span { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.bs-badge { width: 2rem; height: 1.05rem; border-radius: 999px; flex: none; }
.boot-skel .an-folder > .an-card + .an-card { margin-top: 1rem; }
.boot-skel .an-folder > .an-card.bs-tip { display: flex; flex-direction: row; align-items: center; gap: 1rem; }
.boot-skel .bs-tip .skel-stack { flex: 1; }
.bs-tag { width: 3.6rem; height: 1.25rem; border-radius: 999px; flex: none; align-self: flex-start; }
.bs-tip-btn { width: 7rem; height: 2.1rem; border-radius: 999px; flex: none; }
.boot-skel .skel-stack .skel-line.gap { margin-top: 0.35rem; }
:root[data-design="new"] .bs-gear { border-radius: 999px; }
:root[data-design="new"] .bs-tabs { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
:root[data-design="new"] .bs-tabs > span { padding: 0.75rem 1rem; border: 0; border-radius: 999px; }
:root[data-design="new"] .bs-tabs > span.on { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); margin: 0; padding-bottom: 0.75rem; }
:root[data-design="new"] .bs-tabs .skel-line { height: 0.75rem; }
:root[data-design="new"] .bs-range { width: 476px; height: 2.85rem; margin-bottom: 0; border-radius: 999px; }
:root[data-design="new"] .bs-top { align-items: center; margin-bottom: 1.25rem; }
:root[data-design="new"] .boot-skel .an-folder { background: none; border: 0; padding: 0; border-radius: 0; }
:root[data-design="new"] .boot-skel .tiles { margin-bottom: 1.25rem; }
@media (min-width: 861px) {
  :root[data-design="new"] .boot-skel { grid-template-columns: 262px minmax(0, 1fr); }
  :root[data-design="new"] .bs-side { top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px; padding: 1.4rem 0.9rem; gap: 1.6rem;
    border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
  :root[data-design="new"]:not([data-theme="vapor"]) .bs-side { background: color-mix(in srgb, var(--surface) 78%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  :root[data-design="new"] .bs-nav { margin: 0; gap: 4px; }
  :root[data-design="new"] .bs-nav > span { padding: 0.8rem 0.85rem; border-left: 0; border-radius: 14px; }
  :root[data-design="new"] .bs-nav > span.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bloom) 30%, transparent); }
  :root[data-design="new"] .bs-me { padding: 0 0.4rem 2.6rem; }
}
@media (max-width: 860px) {
  /* on phones the real page has no title here, and the range sits above the tabs, both full width */
  :root[data-design="new"] .bs-title { display: none; }
  :root[data-design="new"] .bs-sub { margin-bottom: 1.25rem; }
  :root[data-design="new"] .bs-top { flex-direction: column-reverse; align-items: stretch; gap: 1rem; }
  :root[data-design="new"] .bs-range { width: 100%; }
  :root[data-design="new"] .bs-tabs { display: flex; width: 100%; }
  :root[data-design="new"] .bs-tabs > span { flex: 1 1 0; padding: 0.7rem 0.5rem; }
  :root[data-design="new"] .bs-tabs .skel-line { width: 100% !important; }
  .bs-nav .bs-badge { display: none; }
  .boot-skel .bs-tip { flex-wrap: wrap; } .boot-skel .bs-tip .skel-stack { flex-basis: 100%; order: 1; } .bs-tip-btn { order: 2; }
}

/* Loading sketches for the other sections (boot-skel.js sets data-view from the address): the Analytics sketch shows by
   default; a section opened from the homepage shows its own instead. */
.boot-skel .bs-main[data-boot] { display: none; }
.boot-skel[data-view] .bs-main:not([data-boot]) { display: none; }
.boot-skel[data-view="list"] .bs-main[data-boot="list"], .boot-skel[data-view="health"] .bs-main[data-boot="health"],
.boot-skel[data-view="ideas"] .bs-main[data-boot="ideas"], .boot-skel[data-view="ask"] .bs-main[data-boot="ask"],
.boot-skel[data-view="find"] .bs-main[data-boot="find"], .boot-skel[data-view="page"] .bs-main[data-boot="page"] { display: block; }
.bs-main[data-boot] .bs-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bs-main[data-boot] .bs-title { margin-bottom: 0; }
.bs-mode { width: 8rem; height: 2.3rem; border-radius: 999px; flex: none; }
.bs-subs { margin: 0.9rem 0 1.4rem; max-width: 42rem; }
.bs-pill { display: block; width: 8.5rem; height: 2.4rem; border-radius: 999px; margin-bottom: 1.25rem; }
.bs-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.bs-chip { height: 2.1rem; border-radius: 999px; }
.bs-tool { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.bs-search { flex: 1; height: 2.6rem; border-radius: 14px; }
.bs-btn { width: 7.5rem; height: 2.6rem; border-radius: 999px; flex: none; }
.bs-note { margin-bottom: 1.1rem; }
.bs-glance { margin-bottom: 1.5rem; }
.bs-glance .bs-head { margin-bottom: 1rem; }
.bs-glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; margin-top: 1.1rem; }
.bs-rings { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.bs-ringcol { display: grid; justify-items: center; gap: 1.5rem; }
.bs-ringcol .skel-stack { width: 100%; }
.bs-ring { width: min(220px, 70%); aspect-ratio: 1; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%); mask: radial-gradient(circle, transparent 57%, #000 58%); }
.bs-main[data-boot] .bs-tabs { margin: 0 0 1rem; }
.bs-cands { display: grid; gap: 0.75rem; }
@media (max-width: 860px) {
  :root[data-design="new"] .bs-main[data-boot] .bs-title { display: block; width: min(12rem, 55%); }
  .bs-chip:nth-child(n+4) { display: none; }
  .bs-rings { gap: 0.75rem; } .bs-ringcol .skel-line.tall { height: 0.9rem; }
  .bs-glance-grid { grid-template-columns: 1fr; }
  /* phones: list rows are just avatar, name lines and a button */
  .bs-main[data-boot="list"] .thead, .bs-main[data-boot="list"] .acct .nums, .bs-main[data-boot="list"] .acct .score { display: none; }
  .bs-main[data-boot="list"] .acct { display: flex; align-items: center; gap: 0.85rem; }
  .bs-main[data-boot="list"] .acct .who { flex: 1; min-width: 0; }
  .bs-main[data-boot="list"] .acct .row-acts { flex: none; }
  .bs-main[data-boot="list"] .bs-btn { width: 5.5rem; }
}

/* Posts Rudi quotes in an answer (app.js askRefs): the quote links to the post, and hovering it shows the post */
.ask-ref { color: var(--bloom); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.ask-ref:hover, .ask-ref:focus-visible { text-decoration-style: solid; }
.ref-card { position: fixed; z-index: 90; width: min(340px, calc(100vw - 24px)); padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 40px var(--shadow); font-size: 14px; line-height: 1.45; color: var(--ink); }
.ref-card[hidden] { display: none; }
.ref-head { display: flex; align-items: center; gap: 10px; }
.ref-av { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; background: var(--line); }
.ref-who { min-width: 0; flex: 1; }
.ref-who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-who span { color: var(--muted); font-size: 13px; }
.ref-kind { flex: none; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bloom-soft); color: var(--bloom); }
.ref-text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ref-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ref-stats b { color: var(--ink); font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.ref-foot { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.ref-foot a { color: var(--bloom); }
