/* ViralBrand design system.
   Light and dark are both designed, not inverted: every color is a token,
   dark values are their own steps. Chart series colors are the validated
   categorical slots (checked against --surface in each mode); status colors
   always come with an icon or a word, never alone. */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The app in Slovak or Czech: hidden for the moment its words load, rather than shown in English first. */
.i18n-wait #app { visibility: hidden; }

/* ------------------------------------------------------------------ tokens */
/* Black is the default. Light is opt-in from the account menu, and
   "System" follows the OS (resolved in the page's head script). */
:root {
  color-scheme: dark;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --bg: #050505;
  --sidebar: #000000;
  --surface: #0D0D0E;
  --surface-2: #141416;
  --surface-3: #1C1C1F;
  --input: #0A0A0B;
  /* A segmented control: its track, and the selected part raised above it. */
  --seg-track: var(--surface-2);
  --seg-on: #26262A;
  --seg-edge: rgba(255, 255, 255, .06);
  --border: #1E1E21;
  --border-2: #2B2B30;
  --border-3: #3C3C42;
  --text: #EDEDEC;
  --text-2: #A8A8A3;
  --text-3: #8A8A84;
  --text-4: #5E5E5A;

  --primary: #EDEDEC;
  --primary-hover: #FFFFFF;
  --primary-fg: #0A0A0A;
  --accent: #FF7A2F;
  --accent-2: #FFA35C;
  --accent-text: #FF8A4C;
  --accent-soft: rgba(255, 122, 47, .12);
  --ring: #FF7A2F;
  --ring-soft: rgba(255, 122, 47, .3);

  --ok: #0ca30c;      --ok-text: #3DBE3D;   --ok-bg: rgba(12, 163, 12, .12);    --ok-border: rgba(12, 163, 12, .3);
  --warn: #fab219;    --warn-text: #F5B53D; --warn-bg: rgba(250, 178, 25, .10); --warn-border: rgba(250, 178, 25, .28);
  --bad: #d03b3b;     --bad-text: #F07070;  --bad-bg: rgba(208, 59, 59, .13);   --bad-border: rgba(208, 59, 59, .34);
  --info: #3987e5;    --info-text: #6CA6EE; --info-bg: rgba(57, 135, 229, .12); --info-border: rgba(57, 135, 229, .32);
  --violet: #9085e9;  --violet-text: #A89DF0; --violet-bg: rgba(144, 133, 233, .12); --violet-border: rgba(144, 133, 233, .32);

  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --grid: #1C1C1F;
  --axis: #34343A;

  --shadow-xs: 0 1px 1px rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .6);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .5);
  --overlay: rgba(0, 0, 0, .72);

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  /* Quick to answer, slow to settle: how everything that moves here moves. */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F7F5;
  --sidebar: #F3F3F1;
  --surface: #FFFFFF;
  --surface-2: #F6F6F4;
  --surface-3: #EDEDEA;
  --input: #FFFFFF;
  --seg-track: var(--surface-3);
  --seg-on: var(--surface);
  --seg-edge: transparent;
  --border: #E7E6E2;
  --border-2: #D8D7D2;
  --border-3: #BDBCB6;
  --text: #111110;
  --text-2: #4D4C48;
  --text-3: #6F6E69;
  --text-4: #9A9993;

  --primary: #111110;
  --primary-hover: #2D2D2B;
  --primary-fg: #FFFFFF;
  --accent: #F76B15;
  --accent-2: #FF9A3D;
  --accent-text: #C2410C;
  --accent-soft: #FFF1E7;
  --ring: #C2410C;
  --ring-soft: rgba(194, 65, 12, .2);

  --ok: #0ca30c;      --ok-text: #0F7B0F;   --ok-bg: #EDF8ED;   --ok-border: #C9EAC9;
  --warn: #fab219;    --warn-text: #8A5300; --warn-bg: #FFF7E6; --warn-border: #F4DEA9;
  --bad: #d03b3b;     --bad-text: #B42318;  --bad-bg: #FDEFEE;  --bad-border: #F5CDCA;
  --info: #2a78d6;    --info-text: #1C5CAB; --info-bg: #EEF4FC; --info-border: #CADDF4;
  --violet: #6250d6;  --violet-text: #5B47C9; --violet-bg: #F2F0FD; --violet-border: #D9D3F7;

  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --grid: #EEEDE9;
  --axis: #C9C8C1;

  --shadow-xs: 0 1px 1px rgba(16, 16, 15, .04);
  --shadow-sm: 0 1px 2px rgba(16, 16, 15, .05), 0 1px 1px rgba(16, 16, 15, .03);
  --shadow-md: 0 4px 12px rgba(16, 16, 15, .07), 0 1px 3px rgba(16, 16, 15, .05);
  --shadow-lg: 0 16px 40px rgba(16, 16, 15, .14), 0 2px 8px rgba(16, 16, 15, .06);
  --overlay: rgba(17, 17, 16, .38);
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 14px/1.5 var(--font);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; }
a.link, .link { color: var(--accent-text); font-weight: 550; text-decoration: underline transparent; text-underline-offset: 2px;
  transition: text-decoration-color .15s, color .15s; }
a.link:hover, .link:hover { text-decoration-color: currentColor; }
button.link { background: none; border: 0; padding: 0; font-size: inherit; }
/* An icon inside a link in running text stays in the line (svg is a block everywhere else). */
a.link > .ic, button.link > .ic { display: inline-block; vertical-align: -2px; }
/* In What to try, a button does what a link next to it does: it looks like one. */
.rescue button.link { color: inherit; text-decoration: underline; font-weight: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, video { display: block; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
html { scroll-padding-top: 72px; scroll-padding-bottom: 96px; }
/* Past the menu, straight to the page: out of sight until the keyboard reaches it. */
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 500; padding: 10px 14px; border-radius: 10px; font: inherit; font-weight: 600;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-2); cursor: pointer; }
/* Its shadow only once it's shown: hidden above the page, it would still cast one into the corner. */
.skip-link:focus { top: 12px; box-shadow: var(--shadow-lg); }
#content:focus, #page-h h1:focus, #view h1:focus, #view h2[tabindex="-1"]:focus { outline: none; }
.ic { width: 16px; height: 16px; flex: none; transition: transform .22s var(--ease), color .15s; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----------------------------------------------------------------- utility */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.duo { display: grid; gap: 16px; grid-template-columns: var(--cols, minmax(0, 1fr) minmax(0, 1fr)); align-items: start; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; } .clamp3 { -webkit-line-clamp: 3; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.sep { height: 1px; background: var(--border); border: 0; margin: 16px 0; }

/* ------------------------------------------------------------------- shell */
.app {
  display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh;
  /* The sidebar column keeps its color below the fold, past the sticky panel. */
  background: linear-gradient(to right, var(--sidebar) 251px, var(--border) 251px, var(--border) 252px, transparent 252px);
}
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px;
  background: var(--sidebar); border-right: 1px solid var(--border); padding: 10px 10px 12px; z-index: 30;
  /* Taller than the window (a phone on its side, a short laptop screen): it scrolls, on its own. */
  overflow-y: auto; overscroll-behavior: contain;
}
.ws-switch {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px;
  background: none; border: 1px solid transparent; text-align: left; transition: background .15s;
}
.ws-switch:hover, .ws-switch[aria-expanded="true"] { background: var(--surface-3); }
.ws-logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: -.02em;
  background: linear-gradient(140deg, var(--accent-2), var(--accent) 55%, #E5470A);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .12);
}
.ws-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.ws-logo.wide { width: auto; max-width: 84px; padding: 4px 6px; background: #fff; }
.ws-logo.wide img { width: auto; max-width: 100%; border-radius: 0; }
.ws-name { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.ws-plan { display: block; font-size: 12px; color: var(--text-3); line-height: 1.3; }
.ws-switch .chev { margin-left: auto; color: var(--text-3); width: 15px; height: 15px; }

.nav { display: grid; gap: 1px; margin-top: 6px; }
.nav .group { font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 14px 10px 5px; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 7px;
  color: var(--text-2); font-weight: 500; font-size: 13.5px; text-decoration: none; transition: background .15s, color .15s;
}
.nav a .ic { color: var(--text-3); }
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); }
.nav a.on .ic { color: var(--text); }
/* In the dark, the page you're on is the brightest row, and hovering another is a step below it. */
:root:not([data-theme="light"]) .nav a.on { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-2); }
:root:not([data-theme="light"]) .nav a:hover:not(.on) { background: var(--surface-2); }
.nav .count {
  margin-left: auto; min-width: 20px; height: 19px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 650; color: var(--text-2); background: var(--surface-3); font-variant-numeric: tabular-nums;
}
.nav .count.hot { background: var(--accent); color: #111110; }

.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 10px; }
.usage { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-xs); }
.usage .top { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.usage .top b { font-weight: 600; }
.usage .meter { margin-top: 8px; }
.usage .cta { margin-top: 10px; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.usage .cta .link { margin-left: auto; }
.me-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px;
  background: none; border: 0; text-align: left;
}
.me-btn:hover, .me-btn[aria-expanded="true"] { background: var(--surface-3); }
.me-btn > svg.ic:last-child { margin-left: auto; width: 15px; height: 15px; color: var(--text-3); flex: none; }
.me-btn .who { min-width: 0; line-height: 1.25; }
.me-btn .who b { font-weight: 600; font-size: 13px; display: block; }
.me-btn .who span { font-size: 12px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 10px;
  padding: 0 28px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(12px);
}
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); min-width: 0; }
.crumbs b { color: var(--text); font-weight: 550; }
.crumbs .slash { color: var(--border-2); }
.search-btn {
  height: 34px; width: 240px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-3);
  font-size: 13px; box-shadow: var(--shadow-xs);
}
.search-btn:hover { border-color: var(--border-2); color: var(--text-2); }
.search-btn .kbd { margin-left: auto; }
/* The phone's way to the sidebar: nothing to open on a desktop, where the sidebar is always there. */
.menu-btn, .btn.menu-btn { display: none; }
.content { padding: 28px 32px 112px; width: 100%; max-width: 1320px; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-h h1 { font-size: 24px; letter-spacing: -.025em; }
.page-h p { color: var(--text-3); margin-top: 4px; max-width: 720px; }
.page-h .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.banner {
  display: flex; align-items: center; gap: 10px; padding: 9px 28px; font-size: 13px;
  background: var(--warn-bg); color: var(--warn-text); border-bottom: 1px solid var(--warn-border);
}
.banner a { color: inherit; font-weight: 600; }

/* -------------------------------------------------------------- components */
.btn {
  --bbg: var(--surface); --bfg: var(--text); --bbd: var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: var(--r); border: 1px solid var(--bbd); background: var(--bbg); color: var(--bfg);
  font-weight: 550; font-size: 13.5px; letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  box-shadow: var(--shadow-xs); user-select: none; position: relative;
  transition: background .15s, border-color .15s, color .15s, box-shadow .2s var(--ease), transform .2s var(--ease), opacity .15s, filter .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn:active:not([aria-disabled="true"]) { transform: translateY(0) scale(.97); transition-duration: .06s; }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn.primary { --bbg: var(--primary); --bfg: var(--primary-fg); --bbd: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.accent { --bbg: var(--accent); --bfg: #111110; --bbd: var(--accent); }
.btn.accent:hover { filter: brightness(1.05); background: var(--accent); }
.btn.ghost { --bbg: transparent; --bbd: transparent; --bfg: var(--text-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }
.btn.danger { --bfg: var(--bad-text); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad-border); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; gap: 6px; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
.btn.icon { width: 34px; padding: 0; }
.btn.icon.sm { width: 28px; }
.btn .ic { width: 16px; height: 16px; }
.btn.sm .ic { width: 14px; height: 14px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
/* Not now, and says why: still reachable (its tooltip, by keyboard and pointer), doing nothing. */
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: var(--bbg); border-color: var(--bbd); }
.btn.primary[disabled], .btn.primary.disabled, .btn.primary[aria-disabled="true"] {
  opacity: 1; --bbg: var(--surface-3); --bbd: var(--border-2); --bfg: var(--text-4); box-shadow: none;
}
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--bfg); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-group { display: inline-flex; }
.btn-group .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.btn-group .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Base field look at the lowest specificity, so component rules can adjust it. */
input:where(:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range])), select, textarea {
  width: 100%; height: 36px; padding: 0 11px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--input); color: var(--text); font-size: 14px; outline: none; box-shadow: var(--shadow-xs);
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 92px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238E8D87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
input:focus, select:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); outline: none; }
/* A touch screen: 16px in every field, the size below which an iPhone zooms the page in to type, and stays zoomed. */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select, textarea { font-size: 16px !important; }
}
input:where(:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):hover:not(:focus, :disabled)),
textarea:where(:hover:not(:focus, :disabled)) { border-color: var(--border-3); }
input::placeholder, textarea::placeholder { color: var(--text-4); }

/* A dropdown (select.js): the select stays in the page, hidden, holding the value; this button shows
   it and opens the list. It looks and sizes like the field it replaces. */
select.cs-native { display: none !important; }
.cs-trigger {
  display: inline-flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 9px 0 11px; min-width: 0;
  border-radius: var(--r); border: 1px solid var(--border-2); background: var(--input); color: var(--text);
  font-size: 14px; text-align: left; vertical-align: middle; box-shadow: var(--shadow-xs); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cs-trigger.sm { height: 32px; font-size: 13px; }
.cs-face { display: grid; flex: 1 1 auto; min-width: 0; }
.cs-value, .cs-size { grid-area: 1 / 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.cs-value { text-overflow: ellipsis; }
.cs-size { display: grid; height: 0; visibility: hidden; }
.cs-chev { width: 16px; height: 16px; flex: none; color: var(--text-3); transition: transform .2s var(--ease), color .15s; }
.cs-trigger:hover:not(:disabled, :focus, [aria-expanded="true"]) { border-color: var(--border-3); }
.cs-trigger:hover .cs-chev { color: var(--text-2); }
.cs-trigger:focus, .cs-trigger[aria-expanded="true"] { border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); outline: none; }
.cs-trigger[aria-expanded="true"] .cs-chev { transform: rotate(180deg); color: var(--text-2); }
.cs-trigger.placeholder .cs-value { color: var(--text-4); }
.cs-trigger[aria-invalid="true"] { border-color: var(--bad-text); }
.cs-trigger:disabled { opacity: .55; cursor: not-allowed; }
.cs-pop {
  position: fixed; z-index: 110; inset: auto; margin: 0; padding: 4px; display: flex; flex-direction: column;
  min-width: 180px; max-width: min(440px, calc(100vw - 16px)); overflow: hidden; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 11px; box-shadow: var(--shadow-lg);
  transform-origin: top center; animation: cs-in .14s var(--ease);
}
.cs-pop.up { transform-origin: bottom center; animation-name: cs-in-up; }
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes cs-in-up { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.cs-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; }
.cs-opt {
  display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; font-size: 13.5px; line-height: 1.35;
  color: var(--text); cursor: pointer; transition: background .08s;
}
.cs-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cs-opt.active { background: var(--surface-3); }
.cs-list:focus-visible .cs-opt.active { box-shadow: inset 0 0 0 1px var(--border-3); }
.cs-opt[aria-selected="true"] { font-weight: 600; }
.cs-check { width: 15px; height: 15px; flex: none; color: var(--accent-text); visibility: hidden; }
.cs-opt[aria-selected="true"] .cs-check { visibility: visible; }
.cs-opt[aria-disabled="true"] { color: var(--text-4); cursor: default; }
.cs-group { padding: 8px 9px 4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.cs-list > [role=group] + [role=group] { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.cs-pop .cs-search { flex: none; height: 32px; margin-bottom: 4px; font-size: 13px; border-radius: 7px;
  background: var(--surface-2); border-color: transparent; box-shadow: none; }
.cs-pop .cs-search:focus { border-color: var(--border-2); box-shadow: none; }
.cs-empty { padding: 10px 9px; font-size: 13px; color: var(--text-3); }
input[type=color] { width: 44px; height: 36px; padding: 3px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--input); cursor: pointer; }
/* Checkboxes and radios drawn in the app's own style: the browser's are grey blobs in the dark. */
input[type=checkbox]:not(.switch), input[type=radio] {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--text-4); border-radius: 4px; background: var(--input);
  display: inline-grid; place-content: center; transition: background .12s, border-color .12s;
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:not(.switch):checked { background: var(--primary); border-color: var(--primary); }
input[type=checkbox]:not(.switch):checked::after {
  content: ""; width: 9px; height: 5px; border: 2px solid var(--primary-fg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg);
}
input[type=radio]:checked { border: 5px solid var(--primary); background: var(--primary-fg); }
input:is([type=checkbox]:not(.switch), [type=radio]):hover { border-color: var(--text-3); }
input:is([type=checkbox]:not(.switch), [type=radio]):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
input:is([type=checkbox], [type=radio]):disabled { opacity: .5; cursor: not-allowed; }
.input-group { display: flex; align-items: stretch; }
.input-group > .addon {
  display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border-2); border-right: 0;
  border-radius: var(--r) 0 0 var(--r); background: var(--surface-2); color: var(--text-3); font-size: 13.5px;
}
.input-group > input { border-radius: 0 var(--r) var(--r) 0 !important; }

.field { display: grid; gap: 6px; align-content: start; }
.field > .label, .label { font-size: 13px; font-weight: 550; color: var(--text); display: flex; align-items: center; gap: 6px; }
/* A checkbox with a long label: the words beside it, not wrapped under it. */
label.row:has(> input[type=checkbox]:not(.switch)) { flex-wrap: nowrap; align-items: flex-start; }
label.row:has(> input[type=checkbox]:not(.switch)) > span { flex: 1; min-width: 0; }
label.row > input[type=checkbox]:not(.switch) { margin-top: 2px; }
/* A choice under a switch reads as part of it: lined up with the switch's words. */
[data-unpaid] { margin-left: 46px; }
.field .hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
/* An icon at the start of a hint sits in its line ("Read 4 pages of ..."). */
.field .hint > .ic:first-child { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; color: var(--ok); }
.rescue { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.funnel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.funnel.two { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.fn-step { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fn-step .v { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.fn-step .k { font-size: 12.5px; color: var(--text-2); }
.fn-rate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; max-width: 132px; text-align: center; font-size: 12px; color: var(--text-3); line-height: 1.35; }
.fn-rate svg { width: 18px; height: 18px; color: var(--text-3); }
@media (max-width: 720px) {
  .funnel, .funnel.two { grid-template-columns: minmax(0, 1fr); }
  .fn-rate { flex-direction: row; max-width: none; justify-content: flex-start; padding-left: 16px; }
  .fn-rate svg { transform: rotate(90deg); }
}
.pilot-end { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 550; color: var(--warn-text); background: var(--warn-bg);
  border: 1px solid var(--warn-border); border-radius: 7px; padding: 3px 7px; margin-bottom: 6px; min-width: 0; text-decoration: none; }
.pilot-end .ic { width: 12px; height: 12px; flex: none; }
.persona-card .pc-pilot { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; color: var(--text-2); line-height: 1.4; }
.persona-card .pc-pilot .dot { margin-top: 5px; }
.persona-card .pc-pilot .ic { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.persona-card .pc-pilot .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pilot-next { padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-2); line-height: 1.5; }
.pilot-next .pn-row { display: flex; gap: 8px; align-items: flex-start; }
.pilot-next .pn-row > .ic { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--text-3); }
.rescue ul { margin: 6px 0 8px; padding-left: 18px; display: grid; gap: 5px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.spend-line { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.hint.warn-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--warn-text); margin-top: 6px; }
.hint.warn-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.hint.warn-note.bad-note { color: var(--bad-text); }
.field .err { font-size: 12.5px; color: var(--bad-text); }
.form-rows { display: grid; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; }

.switch {
  appearance: none; -webkit-appearance: none; width: 34px !important; height: 20px !important; border-radius: 99px;
  background: var(--border-2); position: relative; cursor: pointer; transition: background .15s; flex: none; border: 0;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .16s cubic-bezier(.3, .7, .4, 1);
}
.switch:checked { background: var(--primary); }
:root:not([data-theme="light"]) .switch:checked::after { background: #0A0A0A; }
.switch:checked::after { transform: translateX(14px); }
.switch:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; gap: 12px; }
/* A video marked as paid, on Create: the switch, then who pays. */
.paid-box { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.paid-box .field[hidden] { display: none; }
.toggle-row .t { font-weight: 550; font-size: 13.5px; }
.toggle-row .d { font-size: 12.5px; color: var(--text-3); }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--seg-track); border-radius: 9px;
  min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > * {
  height: 28px; padding: 0 11px; border: 0; border-radius: 6px; background: none; display: inline-flex; align-items: center;
  gap: 6px; font-size: 13px; font-weight: 550; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.seg > *:hover { color: var(--text); }
.seg > .on { background: var(--seg-on); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--seg-edge); }
.seg .n { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs > :focus-visible { outline-offset: -3px; border-radius: 6px; }
/* More tabs than fit: the edge fades, so it's clear the row scrolls. */
.more-r { mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.more-l { mask-image: linear-gradient(90deg, transparent, #000 44px); }
.more-l.more-r { mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
textarea[data-caption] { field-sizing: content; min-height: 4.6em; max-height: 16em; resize: vertical; }
.tabs a {
  padding: 10px 10px; font-size: 13.5px; font-weight: 550; color: var(--text-3); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.tabs .n {
  font-size: 11.5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 12px; font-weight: 550; line-height: 1; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border); white-space: nowrap; text-decoration: none;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
/* A suggestion that's a whole phrase (a look to start from): it wraps on a narrow screen instead of running off it. */
.badge.wrap { height: auto; min-height: 22px; max-width: 100%; padding: 4px 9px; line-height: 1.35; white-space: normal; text-align: left; border-radius: 11px; }
.badge.wrap .ic { flex: none; }
.badge .ic { width: 12px; height: 12px; }
.badge-btn { cursor: pointer; font: inherit; font-size: 12px; font-weight: 550; vertical-align: middle; }
.badge-btn:hover { filter: brightness(1.15); }
.badge-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-border); }
.badge.bad { background: var(--bad-bg); color: var(--bad-text); border-color: var(--bad-border); }
.badge.info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.badge.violet { background: var(--violet-bg); color: var(--violet-text); border-color: var(--violet-border); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge.solid { background: var(--surface); box-shadow: var(--shadow-sm); }
a.badge:hover { filter: brightness(.97); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-h { display: flex; align-items: flex-start; gap: 8px 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-h > div:first-child { flex: 1 1 220px; min-width: 0; }
.card-h h2, .card-h h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.card-h p { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.card-h .actions { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-b { padding: 16px 18px 18px; }
.card-b.flush { padding: 0; }
.card-f {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border);
  background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.card-f .spacer + .btn, .card-f .right { margin-left: auto; }
a.card { display: block; text-decoration: none; transition: box-shadow .25s var(--ease), border-color .2s, transform .25s var(--ease); }
a.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }

.stat { padding: 16px 18px; }
.stat .label { font-size: 13px; color: var(--text-3); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 650; letter-spacing: -.025em; margin-top: 6px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 15px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.stat .sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.stat .sub a { color: var(--text-2); }
.stat .spark { height: 36px; margin-top: 10px; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 500; color: var(--text-3); font-size: 12.5px; padding: 9px 14px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2);
}
.table th:first-child { border-top-left-radius: var(--r-lg); }
.table th:last-child { border-top-right-radius: var(--r-lg); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody td { transition: background .12s; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td input.cell { height: 30px; width: 84px; text-align: right; font-variant-numeric: tabular-nums; padding: 0 8px; }
.table-wrap { overflow-x: auto; }

.avatar {
  --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--surface-3) center 22% / cover no-repeat; color: #fff; font-weight: 650;
  font-size: calc(var(--s) * .4); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.avatar.sq { border-radius: calc(var(--s) * .26); }
.avatar.xs { --s: 20px; } .avatar.sm { --s: 26px; } .avatar.md { --s: 36px; } .avatar.lg { --s: 48px; } .avatar.xl { --s: 64px; }
.avatars { display: flex; } .avatars .avatar { box-shadow: 0 0 0 2px var(--surface); } .avatars .avatar + .avatar { margin-left: -8px; }

.meter { position: relative; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--series-1) 16%, var(--surface-3)); overflow: hidden; }
.meter > .tick, .meter-key { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text-2); border-radius: 1px; }
.meter-key { position: static; display: inline-block; height: 10px; margin: 0; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--series-1); transition: width .4s ease; }
.meter.warn > i { background: var(--warn); }
.meter.bad > i { background: var(--bad); }
.meter.ok > i { background: var(--ok); }

/* A picked filter or persona chip: selected, not the page's call to action. */
.ppick > .btn.primary, .filt-row > .btn.primary { --bbg: var(--surface-3); --bfg: var(--text); --bbd: var(--text-4); box-shadow: none; }
.callout {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13.5px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
}
.callout > .ic { margin-top: 2px; }
.callout b { color: inherit; font-weight: 600; }
.callout a { color: inherit; font-weight: 600; }
.callout .link, .callout button.link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* A neutral notice (how something works here, nothing to fix): its icon quiet too. */
.callout:not(.warn):not(.bad):not(.info):not(.ok) > .ic { color: var(--text-3); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.callout.bad { background: var(--bad-bg); border-color: var(--bad-border); color: var(--bad-text); }
.callout.info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.callout.ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }

.kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
  font: 500 11px/1 var(--font); color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.empty {
  display: grid; justify-items: center; text-align: center; gap: 6px; padding: 52px 24px;
  border: 1px dashed var(--border-2); border-radius: var(--r-lg); background: var(--surface);
}
.empty .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.empty .ico .ic { width: 20px; height: 20px; }
.empty h2, .empty h3 { font-size: 15px; font-weight: 600; }
.empty p { color: var(--text-3); max-width: 400px; font-size: 13.5px; }
.empty .row { margin-top: 12px; justify-content: center; }
.empty.compact { padding: 28px 18px; }

.sk {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 6px;
}
.loading-view { display: grid; gap: 16px; }
.loading-view .sk.h { height: 30px; width: 280px; }
.loading-view .sk.b { height: 120px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.sk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .sk-grid { grid-template-columns: minmax(0, 1fr); } .sk-grid > .sk { aspect-ratio: auto !important; height: 220px; } .sk-cal { grid-template-columns: minmax(0, 1fr); } .sk-cal > .sk:nth-child(n+4) { display: none; } }

.menu {
  overscroll-behavior: contain;
  position: fixed; z-index: 90; min-width: 230px; max-width: 320px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; box-shadow: var(--shadow-lg); padding: 5px; animation: pop .12s ease-out;
}
.menu .item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 7px; font-size: 13.5px;
  color: var(--text); text-decoration: none; background: none; border: 0; text-align: left;
}
.menu .item .ic { color: var(--text-3); }
.menu .item .two { display: grid; min-width: 0; text-align: left; line-height: 1.3; }
.menu .item .sub { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.menu .item:hover, .menu .item:focus-visible { background: var(--surface-3); outline: none; }
.menu .item:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.menu .item .end { margin-left: auto; color: var(--text-3); font-size: 12px; }
.menu .item.danger { color: var(--bad-text); }
.menu .item.danger .ic { color: var(--bad-text); }
.menu .sep { height: 1px; background: var(--border); margin: 5px -5px; }
.menu .label { padding: 7px 9px 4px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.menu .seg { display: flex; margin: 4px 4px 6px; }
.menu .seg > * { flex: 1; justify-content: center; }

.overlay {
  position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 20px;
  background: var(--overlay); backdrop-filter: blur(3px); animation: fade .15s ease-out;
}
/* A tall dialog scrolls its body: the title and the buttons stay in view. */
.dialog {
  width: min(520px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2, .8, .3, 1);
}
.dialog > .dialog-b { overflow: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
/* A phone: a dialog sits at the top of what its keyboard leaves showing (--vvh, measured), so its
   buttons are above the keyboard, not under it; a tall one scrolls its middle. */
@media (max-width: 560px), (max-height: 500px) and (pointer: coarse) {
  .overlay { inset: auto 0 auto 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); place-items: start center; padding: 12px;
    padding-top: calc(12px + var(--toasts-h, 0px)); transition: padding-top .2s; }
  .dialog { max-height: calc(var(--vvh, 100dvh) - 24px - var(--toasts-h, 0px)); }
  /* Over a dialog, a toast sits above it at the top, one at a time, and the dialog makes room. */
  body:has(.overlay) .toasts { top: calc(var(--vvt, 0px) + 12px); }
  body:has(.overlay) .toasts > .toast:nth-last-child(n+2) { display: none; }
}
.dialog > .dialog-h, .dialog > .dialog-f { flex: none; }
.dialog.wide { width: min(760px, 100%); }
.dialog-h { padding: 20px 22px 0; display: flex; gap: 12px; align-items: flex-start; }
.dialog-h h2 { font-size: 16.5px; font-weight: 650; }
.dialog-h p { color: var(--text-3); margin-top: 4px; font-size: 13.5px; }
.dialog-h .x { margin-left: auto; flex: none; }
.dialog-b { padding: 18px 22px; }
.dialog-f {
  padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px;
  background: var(--surface-2); border-radius: 0 0 14px 14px;
}

/* Under a menu (z-index 90) that opens while one shows, over dialogs and panels. */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 89; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
/* A save bar showing its buttons: toasts above it, not over Save. */
body:has(.savebar.show) .toasts, body:has(.savebar.just) .toasts { bottom: 84px; }
.toast { cursor: default; touch-action: pan-y; }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slidein .22s cubic-bezier(.2, .8, .3, 1);
}
.toast > .ic { color: var(--ok); margin-top: 2px; }
.toast.err > .ic { color: var(--bad); }
.toast.info > .ic { color: var(--info); }
.toast .t { font-weight: 600; }
.toast .m { color: var(--text-2); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.toast > div { flex: 1; min-width: 0; }
.toast-act {
  margin: -4px -6px -4px 4px; padding: 4px 10px; border-radius: 7px; border: 0; background: none; color: var(--accent-text);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.toast-act:hover { background: var(--surface-3); }

.cmdk { width: min(600px, 100%); align-self: start; margin-top: 12vh; padding: 0; overflow: hidden; }
.cmdk .q { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.cmdk .q input { border: 0 !important; box-shadow: none !important; height: 52px; padding: 0; font-size: 15px; background: none; }
.cmdk .list { max-height: 380px; overflow: auto; padding: 6px; }
.cmdk .grp { padding: 8px 10px 4px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.cmdk .it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.cmdk .it .ic { color: var(--text-3); }
.cmdk .it.on { background: var(--surface-3); }
.cmdk .it > span:not(.end) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk .it .end { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; flex: none; padding-left: 12px; }
.cmdk .none { padding: 28px; text-align: center; color: var(--text-3); }
/* Videos are being looked for: a small turning ring at the end of the search box. */
.cmdk .q.busy::after { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-2);
  border-top-color: var(--text-2); animation: spin .7s linear infinite; }

.steps { display: grid; gap: 2px; }
.step {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text);
}
a.step:hover { background: var(--surface-2); }
.step .tick {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px dashed var(--border-2); color: transparent;
}
.step.done .tick { background: var(--ok); border: 0; color: #fff; }
.step.done .tick .ic { width: 13px; height: 13px; }
.step.done .t { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--border-2); }
.step .t { font-weight: 550; font-size: 13.5px; }
.step .d { font-size: 12.5px; color: var(--text-3); }
.step .go { margin-left: auto; color: var(--text-3); }
.step.next { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-2); }
.step.next .tick { border-style: solid; border-color: var(--accent); }
.step.next .go { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--text); font-size: 12.5px; font-weight: 600; }
.step.next .go .ic { width: 14px; height: 14px; }

/* How the partner program works: three numbered steps side by side, stacked on a phone. */
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pt-step { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pt-step p { margin: 4px 0 0; }
.pt-n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 650;
  background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .pt-steps { grid-template-columns: minmax(0, 1fr); } }
/* The ambassador's link, on every tab of its page. On a narrow screen it breaks after a slash, never inside its code. */
.pt-url { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pt-url b { font-size: 20px; font-weight: 650; letter-spacing: -.01em; overflow-wrap: break-word; min-width: 0; }
@media (max-width: 760px) { .pt-url b { font-size: 17px; } }
/* The ambassador's goal (what it wants a month, how far, the pace that gets there) beside its rank. */
.pt-goal .card-b { padding: 20px 22px; }
.pt-goal-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pt-goal .label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.pt-goal-main { display: grid; gap: 10px; min-width: 0; }
.pt-goal-main p { margin: 0; }
.pt-goal-h { font-size: 15px; color: var(--text-2); }
.pt-goal-h b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pt-bar { height: 10px; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.pt-bar span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-text)); }
.seg.sm > * { height: 26px; padding: 0 9px; font-size: 12.5px; }
.pt-rank { padding-left: 24px; border-left: 1px solid var(--border); display: grid; gap: 8px; min-width: 0; }
.pt-rank p { margin: 0; }
.pt-rank-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; }
.pt-medal { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--medal, var(--accent)); }
.pt-medal .ic { width: 16px; height: 16px; }
[data-rank="bronze"] { --medal: #B87333; } [data-rank="silver"] { --medal: #8E99A6; } [data-rank="gold"] { --medal: #C9A227; }
[data-rank="platinum"] { --medal: #5B9AA8; } [data-rank="diamond"] { --medal: #4F7FE0; }
.pt-ladder { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pt-ladder li { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 9px; border-radius: 99px; font-size: 12px;
  color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border); }
.pt-ladder li b { font-weight: 600; }
.pt-ladder li.on { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-2); }
@media (max-width: 760px) {
  .pt-goal-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pt-rank { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--border); }
}
.pt-money { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.pt-money b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pt-rules { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }
.pt-kit { display: grid; gap: 18px; }
.pt-kit-item { display: grid; gap: 8px; min-width: 0; }
.pt-kit-item textarea { font-size: 13.5px; line-height: 1.5; resize: vertical; }
/* A partner's links: the page, the link as people read it, and Copy, on one line at any width. */
.pt-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pt-links li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px;
  border-bottom: 1px solid var(--border); }
.pt-links li:last-child { border-bottom: 0; }
.pt-link { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: baseline; min-width: 0; }
.pt-link b { font-weight: 600; font-size: 13.5px; }
.pt-link .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .pt-link { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .grid.g4.pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The ambassador program: picked by a person. Its own warm gradient (the site's), on the pitch, the money
   and the moment someone is picked; plain cards for everything else. */
.pt-pitch, .pt-top, .pt-welcome, .pt-wait { --amb-a: var(--accent); --amb-b: #FF4FA3; position: relative; overflow: hidden;
  border-color: color-mix(in srgb, var(--amb-a) 34%, var(--border));
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--amb-b) 13%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--amb-a) 10%, var(--surface)), var(--surface) 60%); }
.pt-pitch .card-b, .pt-wait .card-b { padding: 26px 26px 24px; display: grid; gap: 10px; }
.pt-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent-text); }
.pt-kicker .ic { width: 15px; height: 15px; }
.pt-pitch h2, .pt-wait h2 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; max-width: 760px; }
.pt-lede { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 720px; }
.pt-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-facts li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--border); min-width: 0; }
.pt-facts b { font-size: 24px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--amb-a), var(--amb-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-facts span { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.pt-apply-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pt-looks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pt-looks li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pt-looks li > .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); }
.pt-looks p { margin: 3px 0 0; }
.pt-steps.col { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pt-chip { position: relative; display: inline-flex; cursor: pointer; }
.pt-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pt-chip span { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 99px; font-size: 13.5px;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); transition: background .15s, border-color .15s, color .15s; }
.pt-chip:hover span { border-color: var(--border-3); color: var(--text); }
.pt-chip input:checked + span { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.pt-chip input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pt-wait-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--amb-a), var(--amb-b)); box-shadow: 0 10px 26px -12px var(--amb-b); }
.pt-wait-ic.muted { color: var(--text-2); background: var(--surface-3); box-shadow: none; }
.pt-wait-ic .ic { width: 22px; height: 22px; }
/* A path of steps: done, the one now, and the ones after. */
.pt-track { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pt-track.wide { margin: 0; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.pt-track li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border-radius: var(--r-lg); border: 1px dashed var(--border-2);
  color: var(--text-3); min-width: 0; }
.pt-track li > .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pt-track li div { display: grid; gap: 2px; min-width: 0; }
.pt-track li b { font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.pt-track li span { font-size: 12px; line-height: 1.35; }
.pt-track li.done { border-style: solid; border-color: var(--ok-border); background: var(--ok-bg); }
.pt-track li.done > .ic { color: var(--ok-text); }
.pt-track li.done b { color: var(--text); }
.pt-track li.now { border-style: solid; border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.pt-track li.now > .ic { color: var(--accent-text); }
.pt-track li.now b { color: var(--text); }
.pt-next { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--border); }
.pt-next > div { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.pt-next .label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.pt-next p { margin: 0; font-size: 14px; line-height: 1.55; }
.pt-sent { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.pt-sent > div { min-width: 0; }
.pt-sent .wide { grid-column: 1 / -1; }
.pt-sent dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.pt-sent dd { margin: 4px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pt-sent ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.pt-sent q { color: var(--text-2); }
.pt-note { margin: 4px 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--surface-2); }
.pt-note .label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.pt-note p { margin: 4px 0 0; white-space: pre-line; }
/* Just picked. */
.pt-welcome .card-b { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px 22px; }
.pt-welcome-t { flex: 1 1 320px; min-width: 0; }
.pt-welcome h2 { font-size: 22px; letter-spacing: -.02em; }
.pt-welcome p { margin: 4px 0 0; color: var(--text-2); line-height: 1.55; }
/* The money, beside the link: on every tab. */
.pt-top .card-b { padding: 22px 24px; }
.pt-top-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.pt-top .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.pt-big { margin: 0; font-size: clamp(38px, 5vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--amb-a), var(--amb-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-top-sub { margin: 10px 0 0; color: var(--text-2); line-height: 1.5; }
.pt-top-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pt-top-row > div { padding: 10px 12px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); min-width: 0; }
.pt-top-row .label { margin-bottom: 2px; font-size: 11px; }
.pt-top-row b { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pt-top-link { display: grid; gap: 10px; padding-left: 24px; border-left: 1px solid var(--border); min-width: 0; }
.pt-top-link .label { margin-bottom: 0; }
.pt-top-link p { margin: 0; }
.pt-share { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pt-share li { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.pt-share li:last-child { border-bottom: 0; }
.pt-share li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pt-share .mono { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The program from the side that runs it: its money and funnel up top, then each application as a card to answer. */
.am-top .card-b { display: grid; gap: 18px; }
.am-top-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.am-funnel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.am-funnel li { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); min-width: 0;
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--border); }
.am-funnel li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--border-3);
  border-right: 2px solid var(--border-3); transform: translate(-2px, -50%) rotate(45deg); }
.am-funnel b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.am-funnel span { font-size: 12.5px; color: var(--text-2); }
.am-funnel small { font-size: 11.5px; color: var(--text-3); }
.am-top-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.am-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--border); text-decoration: none; }
.am-pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.am-pill.hot { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.am-pill.hot b { color: var(--accent-text); }
.am-apps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.am-app { display: grid; gap: 12px; padding: 18px; border-bottom: 1px solid var(--border); }
.am-app:last-child { border-bottom: 0; }
.am-app-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.am-av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), #FF4FA3); }
.am-app-who { flex: 1 1 220px; min-width: 0; display: grid; gap: 1px; }
.am-app-who b { font-size: 15px; }
.am-app-when { flex: none; }
.am-app-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.am-before { display: flex; gap: 6px; align-items: baseline; margin: 0; }
.am-before .ic { width: 14px; height: 14px; flex: none; align-self: center; }
.am-app-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
.am-app-body .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.am-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; overflow-wrap: anywhere; }
.am-why { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.am-app-facts { list-style: none; margin: 0; padding: 10px 12px; display: flex; gap: 6px 18px; flex-wrap: wrap; border-radius: var(--r);
  background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.am-app-facts li { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
.am-app-facts .ic { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.am-app-f { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.am-empty { display: grid; gap: 14px; }
.am-empty p { margin: 0; }
.am-rank { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; font-size: 11px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2); vertical-align: 1px; }
.am-answered > summary { list-style: none; cursor: pointer; padding-bottom: 16px; }
.am-answered > summary::-webkit-details-marker { display: none; }
.am-answered > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); margin: 6px 6px 0 auto; transition: transform .15s; flex: none; }
.am-answered[open] > summary::after { transform: rotate(-135deg); margin-top: 10px; }
@media (max-width: 860px) {
  .am-top-in, .am-app-body { grid-template-columns: minmax(0, 1fr); }
  .am-funnel { grid-template-columns: minmax(0, 1fr); }
  .am-funnel li + li::before { display: none; }
}
@media (max-width: 860px) {
  .pt-apply-grid, .pt-top-in { grid-template-columns: minmax(0, 1fr); }
  .pt-top-link { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--border); }
  .pt-facts, .pt-track { grid-template-columns: minmax(0, 1fr); }
  .pt-track.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-sent { grid-template-columns: minmax(0, 1fr); }
}

.verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.verdict .ic { width: 16px; height: 16px; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--text-2); animation: spin .7s linear infinite; flex: none; }

/* ------------------------------------------------------------ app surfaces */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.persona-card { overflow: hidden; }
.persona-card .cover { aspect-ratio: 4 / 3; background: var(--surface-2) center 30% / cover no-repeat; position: relative; }
/* Clients with a persona or two each, side by side: a client's two personas take two columns. */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 18px; align-items: start; }
.cg-sec { min-width: 0; grid-column: span var(--span, 1); }
.cg-h { display: flex; align-items: center; gap: 2px; min-height: 32px; }
.cg-h .group-h { flex: 1; min-width: 0; margin: 0; }
.cg-glance { margin: 0 0 10px; min-height: 2.9em; }
.cg-cards { grid-template-columns: repeat(var(--span, 1), minmax(0, 1fr)) !important; }
@media (max-width: 600px) {
  .cg-sec { grid-column: auto; }
  .cg-cards { grid-template-columns: minmax(0, 1fr) !important; }
  .cg-glance { min-height: 0; }
}
.persona-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.persona-card .cover .tl { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.persona-card .body { padding: 14px 16px 16px; }
.persona-card .name { font-weight: 650; font-size: 15px; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.persona-card .meta { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); }
.persona-card .meta b { color: var(--text); font-weight: 600; display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.new-card {
  display: grid; place-items: center; gap: 10px; align-content: center; min-height: 280px; text-decoration: none;
  border: 1.5px dashed var(--border-2); border-radius: var(--r-lg); color: var(--text-3); background: transparent;
  transition: border-color .15s, color .15s, background .15s; font-weight: 550;
}
.new-card:hover { border-color: var(--text-3); color: var(--text); background: var(--surface); }
.new-card .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.profile-head .avatar { --s: 64px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border); }
.profile-head h1 { font-size: 22px; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; }
.profile-head p { color: var(--text-3); margin-top: 2px; }
/* The client it posts for: quieter than the name above it, the accent only on hover. */
.profile-head p .link { display: inline-flex; align-items: center; gap: 5px; vertical-align: bottom; color: var(--text-2); }
.profile-head p .link:hover { color: var(--accent-text); }
.profile-head p .link .ic { width: 14px; height: 14px; }
.profile-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tile {
  position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 9 / 16;
  cursor: pointer; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.tile .x {
  position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(10, 10, 12, .6); color: #fff; border: 0; opacity: 0; transition: opacity .12s; backdrop-filter: blur(4px);
}
.tile:hover .x, .tile:focus-within .x { opacity: 1; }
/* No hover on a touch screen: the discard button shows, at a size a thumb can hit. */
@media (hover: none) {
  .tile .x { opacity: 1; width: 32px; height: 32px; }
  .tile .pick { width: 24px; height: 24px; }
}
.tile .x .ic { width: 13px; height: 13px; }
.tile-hit { position: absolute; inset: 0; background: none; border: 0; padding: 0; cursor: pointer; border-radius: inherit; }
.tile-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile .x, .tile .pick, .tile .tag { z-index: 1; }
.tile .pick { position: absolute; left: 7px; top: 7px; width: 18px; height: 18px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.tile .tag {
  position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 650; padding: 3px 7px; border-radius: 6px;
  background: var(--accent); color: #111110; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px;
  max-width: calc(100% - 12px); overflow: hidden;
}
.tile .tag .ic { width: 11px; height: 11px; flex: none; }
.grid.g2.mail-pair { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid.coins .stat .value { font-size: 22px; }
@media (max-width: 560px) {
  /* Ten coins as a compact two-up grid, so the signals aren't a long scroll away. */
  .grid.g5.coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid.coins .stat { padding: 12px; }
  .grid.coins .stat .value { font-size: 17px; }
  .grid.coins .spark { display: none; }
  .grid.coins .stat .label { flex-wrap: wrap; row-gap: 4px; }
  .wizard .progress .lbl-t { display: none; }
  .wizard .progress .on .lbl-t { display: inline; }
}
.group-h { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.client-pick { display: grid; gap: 8px; }
.menu-foot { padding: 8px 10px 6px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); line-height: 1.45; max-width: 300px; }
.no-risk { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; color: var(--warn-text);
  padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-border); }
.no-risk > .ic { width: 14px; height: 14px; flex: none; }
/* Its coin moved a long way since its numbers: said, and held at its time until someone decides. */
.moved { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; line-height: 1.45; color: var(--warn-text); }
.moved > .ic { width: 14px; height: 14px; flex: none; }
.moved span { flex: 1 1 180px; }
.moved.held { padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-border); }
.no-risk span { flex: 1 1 160px; }
.sig-when { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.or-rule { display: flex; align-items: center; gap: 10px; margin: -6px 0; font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* A coin nobody covers: set back, without fading its words below what can be read. */
.grid.coins .stat.idle { background: transparent; border-style: dashed; }
.grid.coins .stat.idle .value, .grid.coins .stat.idle .spark { opacity: .6; }
.tile .tag.tr { left: auto; right: 6px; bottom: auto; top: 6px; }
.tile .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.video { overflow: hidden; display: flex; flex-direction: column; }
.video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video .frame { aspect-ratio: 9 / 16; background: #0B0B0C; position: relative; overflow: hidden; }
.video .frame video, .video .frame img { width: 100%; height: 100%; object-fit: cover; }
.video .frame .tl { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 1; }
.video .frame .bl, .video .frame .br {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(10, 10, 12, .62); padding: 2px 7px; border-radius: 6px; backdrop-filter: blur(4px); font-variant-numeric: tabular-nums;
}
.video .frame .bl { right: auto; left: 10px; }
.video .frame .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #8E8D87; font-size: 13px; text-align: center; padding: 20px; }
.video .frame .play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 10, 12, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
  transition: transform .15s, background .15s; z-index: 1;
}
.video .frame .play .ic { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.video .frame:hover .play { transform: scale(1.06); background: rgba(10, 10, 12, .7); }
.video .frame .play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video .body { padding: 12px 14px 4px; display: grid; gap: 8px; align-content: start; flex: 1; }
.video .who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.video .v-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text); letter-spacing: -.005em; }
.rv-title { font-size: 16px; font-weight: 650; line-height: 1.35; margin: 0 0 2px; }
.video .title { font-weight: 600; font-size: 13.5px; letter-spacing: -.005em; }
.video .cap { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.video .cap.sent { white-space: pre-line; }
.video textarea { min-height: 78px; font-size: 13px; }
/* A caption someone changed while it was on screen: drawn at once, and marked for a moment. */
.just-changed { animation: justchanged 2.4s ease-out; }
/* A question with its answers as radios, inside a field: no box of its own. */
fieldset.sells { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
fieldset.sells legend { padding: 0; margin-bottom: 6px; }
fieldset.sells label + label { margin-top: 6px; }
@keyframes justchanged { 0%, 30% { box-shadow: 0 0 0 2px var(--warn-border); background-color: var(--warn-bg); } 100% { box-shadow: none; } }
/* A card's caption reads as its text until it's being edited: no box, no grip, until hovered or focused. */
.video textarea[data-caption] { border-color: transparent; background: var(--surface-2); box-shadow: none; resize: none; }
.video textarea[data-caption]:hover { border-color: var(--border-2); }
.video textarea[data-caption]:focus { border-color: var(--ring); background: var(--input); box-shadow: 0 0 0 3px var(--ring-soft); }
/* A waiting card's line about when it posts: two lines at most, so the buttons under it line up across a row. */
.video .body > .xs.muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video .stats { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-3); }
.video .stats b { color: var(--text); font-weight: 600; }
.video .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.video .acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 14px; }
/* Waiting for a decision: its buttons under its title, inside the card's text. */
.video .acts.top { padding: 2px 0 2px; }
/* The locked lines around a caption, one line each on a card (all of it in its panel). */
.video .cap-tail span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.said { font-size: 12.5px; color: var(--text-2); padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border-left: 2px solid var(--border-2); }
.said b { color: var(--text); font-weight: 600; }
.said.ok { border-left-color: var(--info); background: var(--info-bg); }
.same { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn-text); }
.same .ic { width: 13px; height: 13px; flex: none; }
.same.preview-line { color: var(--text-2); }
.card.plan-first { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); }
.card.plan-first .card-h { padding-bottom: 16px; align-items: center; }
.card.plan-first .offer { margin-top: 8px; color: var(--text-2); }
.card.plan-first .offer b { color: var(--text); font-weight: 600; }
.video .acts .more { margin-left: auto; }
.qa {
  background: var(--bad-bg); border: 1px solid var(--bad-border); color: var(--bad-text); border-radius: 8px;
  padding: 9px 11px; font-size: 12.5px; display: grid; gap: 3px;
}

.script { display: grid; gap: 8px; }
.script .line { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 11px 13px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.script .line .k { font-size: 11.5px; font-weight: 650; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }

.signal { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.signal > .score { min-width: 0; width: 100%; }
.signal:last-child { border-bottom: 0; }
.signal.pick { cursor: pointer; transition: background .15s; }
.signal.pick:hover { background: var(--surface-2); }
.signal.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
:root:not([data-theme="light"]) .signal.on { background: var(--surface-2); }
.signal.used { background: var(--surface-2); }
.score {
  min-width: 64px; height: 28px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-weight: 650; font-size: 12px;
  background: var(--surface-2); border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.score.hi { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
/* A business story's kind, as an icon where a market signal shows its rarity. */
.signal:has(> .st-kind) { grid-template-columns: 34px minmax(0, 1fr) auto; }
.signal > .score.st-kind { width: 34px; min-width: 34px; height: 34px; padding: 0; color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.st-kind .ic { width: 16px; height: 16px; }
.pv-head { display: grid; gap: 3px; padding: 11px 13px; border-radius: 10px; border: 1px dashed var(--border-2); }
.pv-head b { font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }
.signal .k { font-weight: 600; font-size: 13.5px; }
/* On a phone the badges go under the story, not beside it, so the line keeps its width. */
@media (max-width: 560px) {
  .signal { grid-template-columns: 64px minmax(0, 1fr); }
  .signal:has(> .st-kind) { grid-template-columns: 34px minmax(0, 1fr); }
  .signal > .stack:last-child:not(:empty) { grid-column: 2; display: flex !important; flex-wrap: wrap; gap: 4px; justify-items: start; margin-top: -4px; }
  .signal > .stack:last-child:empty, .signal > span:last-child:empty { display: none; }
  .signal > .row:last-child { grid-column: 2; }
}
.signal .kv { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.signal .kv b { color: var(--text-2); font-weight: 550; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--border); gap: 1px; box-shadow: var(--shadow-sm); }
.cal .dow { background: var(--surface-2); padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.cal .day { background: var(--surface); min-height: 120px; padding: 9px; display: flex; flex-direction: column; gap: 6px; }
.cal .day.past { background: var(--surface-2); }
.cal .past-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; background: var(--surface-2);
  color: var(--text-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.cal .past-toggle:hover { color: var(--text); }
.cal .past-toggle svg { width: 16px; height: 16px; flex: none; transition: transform .15s; }
:root:not([data-theme="light"]) .cal .day.past { background: var(--input); }
.cal .day .d { font-size: 12.5px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.cal .day.today .d b { background: var(--primary); color: var(--primary-fg); border-radius: 99px; padding: 1px 7px; }
.cal .day .wd { display: none; font-weight: 500; }
@media (min-width: 561px) { .cal .day .phone-only { display: none; } }
.cal .slot {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); font-size: 12px; box-shadow: var(--shadow-xs); text-decoration: none;
}
.cal .slot.open { border-style: dashed; box-shadow: none; background: transparent; color: var(--text-3); }
.open-row { display: flex; flex-wrap: wrap; gap: 4px; }
.open-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11.5px;
  color: var(--text-3); border: 1px dashed var(--border-2); font-variant-numeric: tabular-nums;
}
.open-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); }
button.open-chip { background: transparent; font: inherit; font-size: 11.5px; cursor: pointer; }
button.open-chip:hover, button.open-chip:focus-visible { color: var(--text); border-color: var(--text-3); }
/* Moving a booked video: it can be picked up, days take it, and its persona's open slots stand out. */
.cal .slot[draggable="true"] { cursor: grab; }
.cal .slot[draggable="true"]:active { cursor: grabbing; }
.cal.dragging .day[data-day] { transition: background .12s, box-shadow .12s; }
.cal .day.drop-over { background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--primary); }
.cal.dragging .open-chip.drop-ok { color: var(--text); border: 1px solid var(--primary); background: var(--surface-2); }
/* Said at the bottom of the screen while dragging, so nothing on the page moves under the pointer. */
.drag-hint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; width: max-content;
  max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); pointer-events: none;
  background: var(--surface); border-color: var(--border-2); color: var(--text);
}
.open-chip b { font-weight: 650; color: var(--text-2); }
.cal .slot .th { width: 26px; height: 38px; border-radius: 5px; background: #0B0B0C center / cover; }
.cal .slot.open .th { background: var(--surface-2); }
.cal .slot .who { font-weight: 600; display: flex; align-items: center; gap: 5px; min-width: 0; }
.cal .slot.held { border-style: dashed; background: transparent; grid-template-columns: minmax(0, 1fr); }
.cal .slot .who .dot { width: 7px; height: 7px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.plan.current { box-shadow: 0 0 0 2px var(--primary), var(--shadow-md); border-color: transparent; }
.plan-flag {
  position: absolute; top: -10px; left: 18px; font-size: 11.5px; font-weight: 650;
  padding: 2px 9px; border-radius: 99px; background: var(--accent); color: #111110;
}
.plan .name { font-weight: 650; font-size: 15px; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
/* While the launch runs: this week's price is a launch price; what it goes up to, when, and the regular one. */
.launch-t { color: var(--accent-text); font-weight: 600; margin-top: 4px; line-height: 1.4; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic { color: var(--ok); margin-top: 2px; width: 15px; height: 15px; }
.plan .btn { margin-top: auto; }

.wizard { max-width: 760px; margin: 0 auto; }
.wizard .progress { display: flex; gap: 8px; margin-bottom: 26px; }
.wizard .progress > div { flex: 1; }
.wizard .progress .bar { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.wizard .progress .bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s; }
.wizard .progress .done .bar i, .wizard .progress .on .bar i { width: 100%; }
.wizard .progress .lbl { font-size: 12px; color: var(--text-3); margin-top: 7px; font-weight: 550; }
.wizard .progress .on .lbl { color: var(--text); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease);
}
.choice:hover { border-color: var(--text-3); }
.choice.on, .choice:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.choice .t { font-weight: 600; font-size: 13.5px; }
.choice .d { font-size: 12.5px; color: var(--text-3); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }

.platform { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.platform:last-child { border-bottom: 0; }
.platform .logo { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.platform .logo svg { width: 19px; height: 19px; }
.platform .t { font-weight: 600; }
.platform .d { font-size: 12.5px; color: var(--text-3); }
.platform .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
/* On a phone the actions go under what's said, not beside it: the words keep the width. */
@media (max-width: 560px) {
  .platform { flex-wrap: wrap; align-items: flex-start; }
  .platform > div:not(.end) { flex: 1 1 calc(100% - 50px) !important; }
  .platform .end { flex-wrap: wrap; justify-content: flex-end; width: 100%; margin-left: 50px; }
}

.job { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.job:first-child { border-top: 0; }
.jdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.jdot.running { background: var(--accent); animation: pulse 1s infinite; }
.jdot.done { background: var(--ok); }
.jdot.failed { background: var(--bad); }

.kv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.kv-list .r { display: flex; gap: 10px; align-items: center; min-width: 0; }
.kv-list .r .k { flex: none; color: var(--text-3); }
/* A long value wraps (or, with .ellipsis, is cut) inside the row, never widening the page. */
.kv-list .r .v { margin-left: auto; min-width: 0; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.kv-list.roles .r { display: grid; grid-template-columns: 84px minmax(0, 1fr); }
.kv-list.roles .r .badge { justify-self: start; }

.code {
  font-family: var(--mono); font-size: 12.5px; min-height: 460px; line-height: 1.6; tab-size: 2;
  white-space: pre; overflow: auto; background: var(--surface-2) !important;
}
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--mono); font-size: 12.5px; }

/* --------------------------------------------------------------- charts */
figure.chart { position: relative; }
/* The note goes under the title, so a half-width chart never squeezes either. */
figure.chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 14px; }
figure.chart figcaption .t { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
figure.chart figcaption .s { font-size: 12.5px; color: var(--text-3); order: 3; flex-basis: 100%; }
figure.chart svg { width: 100%; overflow: visible; }
.tt {
  position: fixed; z-index: 120; pointer-events: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow-lg); display: none; min-width: 120px;
}
.tt .v { font-size: 14px; font-weight: 650; color: var(--text); }
.tt .n { color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.tt .key { width: 12px; height: 2px; border-radius: 2px; }

/* ------------------------------------------------------------- auth pages */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--surface); }
.auth-side { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-form { width: 100%; max-width: 380px; margin: auto; display: grid; gap: 22px; padding: 32px 0; }
.auth-form h1 { font-size: 26px; letter-spacing: -.03em; }
.auth-form .sub { color: var(--text-3); margin-top: 6px; }
.auth-form .launch-note { color: var(--accent-text); font-weight: 600; }
.auth-form :is(.btn.primary, .btn.accent) { width: 100%; min-height: 40px; height: auto; }
/* What signing up does and doesn't mean, under its button, at every width. */
.auth-form .trust { list-style: none; margin: -8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.auth-form .trust li { display: inline-flex; align-items: center; gap: 5px; }
.auth-form .trust li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border: solid var(--ok-text); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
/* Someone who came through an ambassador's link: whose it was. */
.auth-form .rec { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text);
  font-size: 13.5px; font-weight: 600; text-align: center; }
.auth-foot { font-size: 12.5px; color: var(--text-3); }
.auth-art {
  position: relative; overflow: hidden; margin: 12px; border-radius: 20px; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 85% 0%, #3A1C0C 0%, #17110E 38%, #0C0C0E 70%);
  color: #F1F0ED;
}
.auth-art .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .55; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
/* The logo is drawn as shapes (public.LOGO): sized by its height, the name in the text's colour. */
.brand .logo { display: block; height: 21px; width: auto; }

/* ------------------------------------------------------------- animation */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes fade { from { opacity: 0; } }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 2px var(--accent); } }
.flash { animation: flash 1.8s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ motion */
/* What can be pressed answers the pointer: it rises a little under it, gives when pressed, and an
   icon that points somewhere moves that way. Only for a pointer that hovers: a tap leaves nothing raised. */
.seg > *, .tabs a, .menu .item, .me-btn, .search-btn, .ibx-row, a.step, .fb-q, .help-links a, .help-links button,
.time-chip button, .why-chips label, .mode-pill, button.open-chip, .day-more, .toast-act, .hint-i, .badge-btn, a.badge,
.cover-strip .cf, .note-flag, .cm-flag, .td-flag, .back-link, th.sortable-h, .rv-made a {
  transition: background .15s, border-color .2s, color .15s, box-shadow .2s, filter .15s;
}
.card.video { transition: border-color .2s, box-shadow .25s var(--ease), opacity .2s; }
.video .frame img, .tile img { transition: transform .5s var(--ease); }
.persona-card .cover { overflow: hidden; }
.persona-card .cover::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform .6s var(--ease); }
.new-card .ico { transition: transform .25s var(--ease), background .15s; }
@media (hover: hover) {
  .btn:not(.ghost):not([aria-disabled="true"]):not(.busy):hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
  .btn.primary:not([aria-disabled="true"]):not(.busy):hover { box-shadow: 0 6px 16px -6px rgba(16, 16, 15, .45); }
  :root:not([data-theme="light"]) .btn.primary:not([aria-disabled="true"]):not(.busy):hover { box-shadow: 0 6px 20px -8px rgba(255, 255, 255, .38); }
  .btn.accent:not([aria-disabled="true"]):not(.busy):hover { box-shadow: 0 6px 18px -6px rgba(255, 122, 47, .55); }
  .btn-group .btn:hover { transform: none; }

  :is(a, button):hover > :is(.ic-arrowRight, .ic-chevRight) { transform: translateX(2px); }
  :is(a, button):hover > .ic-chevLeft { transform: translateX(-2px); }
  :is(a, button):hover > :is(.ic-arrowUpRight, .ic-external, .ic-send) { transform: translate(1.5px, -1.5px); }
  :is(a, button):hover > .ic-plus { transform: rotate(90deg); }
  :is(a, button):hover > .ic-refresh { transform: rotate(180deg); }
  :is(a, button):hover > :is(.ic-sparkles, .ic-wand, .ic-bolt) { transform: rotate(-10deg) scale(1.12); }
  :is(a, button):hover > .ic-download { transform: translateY(1.5px); }
  :is(a, button):hover > .ic-upload { transform: translateY(-1.5px); }

  a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .persona-card:hover .cover::before { transform: scale(1.05); }
  .card.video:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
  .video .frame:hover img { transform: scale(1.03); }
  .tile:hover { transform: translateY(-2px); }
  .tile:hover img { transform: scale(1.05); }
  .choice:hover:not(.on):not(:has(input:checked)) { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
  .new-card:hover .ico { transform: scale(1.08); background: var(--surface-2); }
  .new-card:hover .ic-plus { transform: rotate(90deg); }
  .nav a:hover:not(.on) .ic { color: var(--text-2); }
  .tabs a:hover:not(.on) { border-bottom-color: var(--border-2); }
  .seg > :hover:not(.on) { background: color-mix(in srgb, var(--seg-on) 55%, transparent); }
  .cs-opt:not([aria-disabled="true"]):hover { background: var(--surface-3); }
  .btn:not(.ghost):not([aria-disabled="true"]):not(.busy):hover:active { transform: translateY(0) scale(.97); transition-duration: .06s; }
}
/* Pressed, it gives (after the hover rules, so it wins over the lift). */
:is(a.card, .choice):active { transform: scale(.99); transition-duration: .08s; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  /* One column: how the pilot is going comes before the activity log. */
  .ov-split, .ov-split > .stack-lg { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .ov-split > .stack-lg { display: contents; }
  .ov-split .card { order: 3; }
  .ov-split .ov-setup { order: 1; }
  .ov-split .ov-pilot, .ov-split .ov-slots { order: 2; }
  .ov-split .ov-activity { order: 4; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-102%);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s;
  }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: var(--overlay); z-index: 25; }
  .menu-btn, .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .search-btn { width: auto; }
  .search-btn .search-label, .search-btn .kbd { display: none; }
  .content { padding: 20px 16px 64px; }
  .g2, .g3, .duo { grid-template-columns: minmax(0, 1fr); }
  .grid.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .banner { padding: 9px 16px; }
}
@media (max-width: 560px) {
  .g4, .g5 { grid-template-columns: minmax(0, 1fr); }
  .page-h h1 { font-size: 21px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .video .acts .btn { flex: 1; }
  .cal { grid-template-columns: minmax(0, 1fr); }
  .cal .dow { display: none; }
  .cal .day { min-height: 0; }
  .cal .day .wd { display: inline; }
  .cal .day.bare { display: none; }
  .cal:not(.show-past) .day.past { display: none; }
  .cal .past-toggle { display: flex; }
  .cal.show-past .fold-only { display: none; }
  .cal.show-past .past-toggle svg { transform: rotate(180deg); }
  .crumbs > :not(:last-child) { display: none; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-f { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  /* The page's own heading names it; a clipped copy in the top bar doesn't help. */
  .topbar .crumbs { display: none; }
  /* Wide tables become one card per row, every number labelled, nothing off to the side. */
  .table.stackable thead { display: none; }
  .table.stackable, .table.stackable tbody { display: block; width: 100%; }
  .table.stackable tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 14px;
    border-bottom: 1px solid var(--border); }
  .table.stackable td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
  .table.stackable tbody tr:hover td { background: none; }
  .table.stackable td:nth-child(-n+2) { grid-column: 1 / -1; }
  .table.stackable td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
  .table.stackable td .cell { width: 100%; }
  .grid.g2.mail-pair { grid-template-columns: minmax(0, 1fr); }
  /* Team rows: who on top, then role, last seen and the remove button on one line. */
  .table.stackable.team tr { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; }
  .table.stackable.team td:nth-child(2) { grid-column: auto; }
  .table.stackable.team td:nth-child(2) :is(select, .cs-trigger) { width: 100% !important; }
  /* Stat tiles stay two by two, an odd last one across the row; review rows put their buttons under the text. */
  .grid.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Persona chips scroll sideways in one row, out to the screen's edges, instead of stacking. */
  .ppick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .ppick::-webkit-scrollbar { display: none; }
  .ppick > .btn { flex: none; }
  .an-head > :first-child { flex-basis: 100%; }
  .an-head .ppick { margin-bottom: 4px !important; }
  .an-head .seg { width: 100%; }
  .an-head .seg > * { flex: 1; justify-content: center; }
  .page-h .actions { margin-left: 0; }
  .grid.tiles .stat { padding: 14px; }
  .grid.tiles .stat .value { font-size: 24px; }
  .row.nowrap.review-row { flex-wrap: wrap; }
  .review-row > a { flex: 1 1 100% !important; }
  .review-acts { width: 100%; justify-content: flex-end; padding-left: 54px; }
  .review-acts .btn { flex: 1; }
}
@media (max-width: 480px) {
  /* One card per row, video on the left, so names and captions have room. */
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .video { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .video .frame { grid-row: 1 / 3; align-self: start; }
  .video .frame .tl { left: 6px; top: 6px; }
  .video .frame .tl .badge { font-size: 10.5px; padding: 0 6px; }
  .video .body { padding: 10px 12px 2px; }
  .video > .acts { grid-column: 2; padding: 6px 12px 12px; }
  /* A waiting card's buttons, inside its text: no column of their own. */
  .video .body > .acts.top { grid-column: auto; padding: 2px 0; }
  .video .frame .play { width: 40px; height: 40px; }
  /* A 116px thumbnail has room for the length and nothing else: the video says it's AI-made on screen. */
  .video .frame .tl, .video .frame .bl { display: none; }
}

/* ------------------------------------------------------------------ tour */
.tour { position: fixed; inset: 0; z-index: 300; animation: fade .2s ease-out; }
.tour.out { opacity: 0; transition: opacity .18s; }
.tour-block { position: absolute; inset: 0; }
.tour-spot {
  position: fixed; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72);
  outline: 2px solid var(--accent); outline-offset: 2px;
  transition: left .32s cubic-bezier(.2, .8, .3, 1), top .32s cubic-bezier(.2, .8, .3, 1),
              width .32s cubic-bezier(.2, .8, .3, 1), height .32s cubic-bezier(.2, .8, .3, 1);
}
.tour-spot.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; outline-color: transparent; }
.tour-pop {
  position: fixed; z-index: 1; width: min(348px, calc(100vw - 24px)); padding: 16px 18px; outline: none;
  /* A short window: the words scroll, the card's buttons stay on it. */
  display: flex; flex-direction: column; max-height: calc(100dvh - 20px);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-lg);
  transition: left .32s cubic-bezier(.2, .8, .3, 1), top .32s cubic-bezier(.2, .8, .3, 1);
}
.tour-pop.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 24px)); }
.tour-pop.sheet { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; transform: none; }
.tour-pop[data-side]::before {
  content: ""; position: absolute; width: 12px; height: 12px; background: var(--surface);
  border: 1px solid var(--border-2); transform: rotate(45deg);
}
.tour-pop[data-side="right"]::before { left: -7px; top: calc(var(--a) - 6px); border-top: 0; border-right: 0; }
.tour-pop[data-side="left"]::before { right: -7px; top: calc(var(--a) - 6px); border-left: 0; border-bottom: 0; }
.tour-pop[data-side="bottom"]::before { top: -7px; left: calc(var(--a) - 6px); border-right: 0; border-bottom: 0; }
.tour-pop[data-side="top"]::before { bottom: -7px; left: calc(var(--a) - 6px); border-left: 0; border-top: 0; }
.tour-n { font-size: 12px; font-weight: 600; color: var(--accent-text); }
.tour-pop h3 { font-size: 16.5px; margin-top: 2px; letter-spacing: -.015em; }
.tour-pop p { color: var(--text-2); margin-top: 6px; line-height: 1.55; font-size: 13.5px; }
.tour-pop #tour-d { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tour-pop .kbd { vertical-align: 1px; }
.tour-pop p b { color: var(--text); font-weight: 600; }
.tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-dots { display: flex; gap: 4px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--border-2); transition: width .2s, background .2s; }
.tour-dots i.done { background: var(--text-4); }
.tour-dots i.on { width: 18px; background: var(--accent); }
.tour-art { margin: -2px 0 14px; }
.tour-flow {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px 10px; flex-wrap: wrap;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
}
.tour-flow .node { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); }
.tour-flow .node .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-2); color: var(--accent-text); }
.tour-flow .node b { font-weight: 550; }
.tour-flow .arrow .ic { color: var(--text-4); width: 14px; height: 14px; margin-bottom: 20px; }
.tour-done { display: grid; place-items: center; padding: 6px 0 2px; }
.tour-done .ic { width: 46px; height: 46px; color: var(--ok); }

.rows-link tbody tr[data-href] { cursor: pointer; }
.rows-link tbody tr[data-href]:hover td { background: var(--surface-2); }
.rows-link tbody tr[data-href]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.sig { margin-top: 3px; }
#pv { scroll-margin-top: 72px; }
.sig-line { font-size: 13px; color: var(--text-2); line-height: 1.45; }

/* -------------------------------------------------------------- tooltips */
.tip-pop {
  position: fixed; z-index: 400; max-width: 280px; padding: 8px 11px; border-radius: 9px;
  background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 1.45; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: fade .12s ease-out;
}
.hint-i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 5px; vertical-align: -3px; border-radius: 50%; color: var(--text-4); cursor: help; }
.hint-i .ic { width: 14px; height: 14px; }
.hint-i:hover, .hint-i:focus-visible { color: var(--text-2); background: var(--surface-3); }
.hint-i:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
[data-tip] { cursor: help; }
.btn[data-tip], a[data-tip], label[data-tip] { cursor: pointer; }

.pr-rows { display: grid; gap: 8px; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pr-row .ic { width: 15px; height: 15px; }
.slot-notes { margin-bottom: 14px; }
.slot-note { gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.slot-notes .label + .slot-note { border-top: 0; }
@media (max-width: 600px) {
  /* The reason takes the width; its buttons go under it. */
  .row.nowrap.slot-note { flex-wrap: wrap; }
  .slot-note > .small { flex-basis: calc(100% - 20px) !important; }
  .slot-note > .btn { margin-left: 16px; }
}
.rescue li .btn.link, .rescue li a { white-space: nowrap; }
.field-err { color: var(--bad-text); font-size: 12.5px; margin-top: 6px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad-text); }
.cap-tail { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--text-3); margin: 6px 0 0; }
.cap-tail .ic { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.phone-cta { display: none; }
@media (max-width: 900px) {
  .phone-cta:not([hidden]) { display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    font-size: 13px; font-weight: 600; }
  .phone-cta span { flex: 1; min-width: 0; }
  .phone-cta.away { display: none !important; }
}
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pick { position: relative; }
.day-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-pick span { display: inline-grid; place-items: center; min-width: 46px; height: 34px; padding: 0 10px; border: 1px solid var(--border-2);
  border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; user-select: none; }
.day-pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.day-pick input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.day-pick input:disabled + span { cursor: default; opacity: .7; }
.time-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.time-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 10px; border-radius: 8px;
  background: var(--surface-3); border: 1px solid var(--border-2); font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; }
.time-chip .ic { width: 14px; height: 14px; color: var(--text-3); }
.time-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 5px; background: none; color: var(--text-3); cursor: pointer; }
.time-chip button:hover { background: var(--surface-2); color: var(--text); }

/* --------------------------------------------------------------- savebar */
.savebar {
  position: sticky; bottom: 16px; z-index: 5; display: none; align-items: center; gap: 10px; padding: 10px 10px 10px 16px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 550; animation: slidein .2s cubic-bezier(.2, .8, .3, 1);
}
.savebar.show { display: flex; }
.savebar .sb-dirty, .savebar .sb-saved { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.savebar .sb-dirty .ic { color: var(--accent-text); }
.savebar .sb-saved { display: none; }
/* Saved: a quiet line where the bar was, until the next change. */
.savebar.saved:not(.show) { display: flex; position: static; background: none; border-color: transparent; box-shadow: none;
  padding: 2px 0; color: var(--ok-text); animation: none; }
.savebar.saved:not(.show) .sb-dirty, .savebar.saved:not(.show) .btn { display: none; }
/* Just saved: a moment where the bar was, saying so, before it's the quiet line at the end. */
.savebar.saved.just:not(.show) { position: sticky; padding: 12px 16px; background: var(--surface-2); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.savebar.saved:not(.show) .sb-saved { display: inline-flex; }
.savebar .sb-saved .ic { width: 15px; height: 15px; }
/* A phone has room for the words or the buttons: shorter buttons, so the words don't stack. */
@media (max-width: 480px) {
  .savebar { gap: 8px; padding-left: 12px; font-size: 13px; }
  .savebar .sb-more, .savebar .sb-dirty .ic { display: none; }
}

/* ---------------------------------------------------------- review page */
.share-links { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; max-height: min(420px, 45vh); overflow-y: auto; }
.share-links .label { font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 6px; }
.share-link { padding: 8px 0; gap: 10px; }
.share-link + .share-link { border-top: 1px solid var(--border); }
.rv-page { background: var(--bg); min-height: 100vh; }
.rv-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.rv-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14.5px; min-width: 0; }
/* A long name, or a long agency name, shortens with an ellipsis rather than push the page sideways. */
#whoami { min-width: 0; flex: 0 1 auto; }
#whoami .btn { max-width: 100%; }
#whoami .btn b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { #whoami .lbl { display: none; } }
.rv-brand svg { width: 24px; height: 24px; }
.rv-main { max-width: 880px; margin: 0 auto; padding: 28px 20px 80px; display: grid; gap: 14px; }
.rv-head h1 { font-size: 24px; letter-spacing: -.025em; }
.rv-head p { color: var(--text-2); margin-top: 6px; line-height: 1.55; }
.rv-face { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.rv-h2 { font-size: 14px; font-weight: 650; margin-top: 18px; }
.rv-h2-row { align-items: center; gap: 10px; margin-top: 18px; }
.rv-h2-row .rv-h2 { margin-top: 0; }
.rv-list { display: grid; gap: 12px; }
.rv-card { display: grid; grid-template-columns: 176px minmax(0, 1fr); overflow: hidden; }
.rv-card.done { opacity: .85; }
.rv-side { align-self: start; min-width: 0; }
.rv-side .au-toggle { margin: 6px; font-size: 11.5px; padding: 4px 8px; white-space: normal; text-align: left; }
.rv-media { position: relative; aspect-ratio: 9 / 16; background: #0B0B0C; overflow: hidden; }
.rv-media img, .rv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-media .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 10, 12, .55); border: 1px solid rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px);
}
.rv-media .play .ic { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.rv-body { padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.rv-cap { font-size: 15px; line-height: 1.55; }
.rv-coming { display: grid; gap: 14px; }
.rv-coming .ic { width: 16px; height: 16px; flex: none; color: var(--text-3); margin-top: 2px; align-self: flex-start; }
.rv-tabs a { text-decoration: none; }
.rv-who { margin: 0 0 14px; flex-wrap: wrap; }
.rv-next { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.rv-next .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text-3); }
.rv-next.rv-due { color: var(--text); }
.rv-next.rv-due .ic { color: var(--warn-text); }
.rv-next.rv-moved { color: var(--text); }
.rv-next.rv-moved .ic { color: var(--warn-text); }
.rv-earlier { margin-top: 6px; }
/* Centred and only as wide as its words, inside the page's margins: on a phone, the screen's width. */
.conn-bar { position: fixed; left: 16px; right: 16px; bottom: 20px; margin-inline: auto; width: fit-content; z-index: 90; display: flex; gap: 10px; align-items: center;
  max-width: 640px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2, #1b1b1b);
  border: 1px solid var(--border-2, var(--border)); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13.5px; color: var(--text); }
.conn-bar.bad { border-color: var(--bad-text); }
.conn-bar > .ic { width: 16px; height: 16px; flex: none; color: var(--bad-text); }
.conn-bar .btn { flex: none; }
/* A save bar showing its buttons: the bar above it, not over Save, and toasts above both. In the
   one-by-one review, under its top bar, clear of the decision buttons. */
body:has(.savebar.show) .conn-bar, body:has(.savebar.just) .conn-bar { bottom: 84px; }
body:has(.conn-bar) .toasts { bottom: 88px; }
body:has(.conn-bar):has(.savebar.show) .toasts, body:has(.conn-bar):has(.savebar.just) .toasts { bottom: 152px; }
body:has(.feed) .conn-bar { top: calc(env(safe-area-inset-top, 0px) + 64px); bottom: auto; }
.cap-unsaved { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--bad-text); }
.cap-unsaved > .ic { width: 14px; height: 14px; flex: none; }
.cap-unsaved .link { font-size: 12.5px; }
.rv-unsent { margin-top: 10px; }
.approves { display: flex; gap: 6px; align-items: center; color: var(--info-text); }
.approves .ic { width: 13px; height: 13px; flex: none; }
.sent-to { display: flex; gap: 6px; align-items: center; color: var(--text-2); }
.sent-to .ic { width: 13px; height: 13px; flex: none; }
/* With client: who the sent videos wait on, one line each, with a way to nudge them. */
.waiting-on { padding: 4px 16px; }
.waiting-on .wo-row { padding: 10px 0; gap: 12px; }
.waiting-on .wo-row + .wo-row { border-top: 1px solid var(--border); }
.rv-body details summary { cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 550; }
.rv-body details > summary, .cal-key summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; }
.rv-body details > summary::-webkit-details-marker, .cal-key summary::-webkit-details-marker { display: none; }
.rv-body details > summary::before, .cal-key summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.rv-body details[open] > summary::before, .cal-key[open] summary::before { transform: rotate(45deg); }
.rv-state { gap: 8px; }
.rv-why { display: grid; gap: 8px; }
.why-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.why-chips label {
  position: relative; display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: 13px;
}
.why-chips label:hover { border-color: var(--text-3); color: var(--text); }
.why-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.why-chips label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); color: var(--text); }
.why-chips label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.rv-name .card-b { padding-top: 16px; }
@media (max-width: 600px) {
  /* Stacked: the video at a size worth judging, above what to decide, not a sliver beside it. */
  .rv-card { grid-template-columns: minmax(0, 1fr); }
  .rv-media { width: min(100% - 24px, 232px); margin: 12px auto 0; border-radius: 12px; }
  /* The quickest way through on a phone: the whole width, right under the heading. */
  .rv-h2-row { flex-wrap: wrap; }
  .rv-h2-row #rv-feed { width: 100%; justify-content: center; min-height: 48px; }
  .rv-body { padding: 12px 14px 14px; }
  .rv-cap { font-size: 14px; }
}

/* ------------------------------------------------------------ mode pill */
.mode-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; flex: none;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.mode-pill:hover { background: var(--surface-3); }
.mode-pill .ic { width: 14px; height: 14px; }
.mode-pill .more { font-weight: 500; }
.mode-pill .cnt { display: none; color: var(--warn-text); line-height: 0; }
.mode-pill .cnt .ic { width: 14px; height: 14px; }
.rd { display: grid; gap: 2px; }
.rd-h { font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0 6px; }
.rd-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.rd-row:first-of-type { border-top: 0; }
.rd-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--warn-bg); color: var(--warn-text); }
.rd-row.ok .rd-ic { background: var(--ok-bg); color: var(--ok-text); }
.rd-ic .ic { width: 12px; height: 12px; }
.rd-b { flex: 1; min-width: 0; }
.rd-b .t { font-size: 13.5px; font-weight: 600; }
.rd-row.ok .rd-b .t { color: var(--text-2); font-weight: 500; }
.rd-b .d { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.rd-row .btn { flex: none; }
.mode-menu { width: min(420px, calc(100vw - 24px)); }
/* The checklist scrolls inside, so the pause switch under it is always in view. */
.mode-menu .rd { padding: 4px 12px 8px; max-height: min(52vh, 440px); overflow-y: auto; }
.mode-menu .rd-row { flex-wrap: wrap; row-gap: 8px; }
.mode-menu .rd-b { flex: 1 1 calc(100% - 40px); }
.mode-menu .rd-row .btn { margin-left: 32px; }
.mode-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.mode-pill.ok { color: var(--ok-text); border-color: var(--ok-border); }
.mode-pill.warn { color: var(--warn-text); border-color: var(--warn-border); background: var(--warn-bg); }
.mode-pill.bad { color: var(--bad-text); border-color: var(--bad-border); background: var(--bad-bg); }
.mode-info { padding: 8px 10px 6px; max-width: 290px; }
.mode-info b { font-size: 13.5px; }
.mode-info p { color: var(--text-3); font-size: 12.5px; line-height: 1.5; margin-top: 4px; }
@media (max-width: 560px) {
  .profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
  .profile-head .avatar { --s: 52px; }
  .profile-head h1 { font-size: 20px; flex-wrap: wrap; gap: 6px 10px; }
  .profile-head .actions { grid-column: 1 / -1; margin-left: 0; }
  .rd-row { flex-wrap: wrap; row-gap: 8px; }
  .rd-b { flex: 1 1 calc(100% - 40px); }
  .rd-row .btn { margin-left: 32px; }
}
/* Phones keep the word ("Live", "Test", "Paused"), with the issue count as a bubble. */
@media (max-width: 560px) { .mode-pill { padding: 0 9px; gap: 6px; } .mode-pill .lbl-x, .mode-pill .more { display: none; } .mode-pill .cnt { display: inline-block; } }

/* ----------------------------------------------------------------- inbox */
#activity { position: relative; }
.bell-n {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  background: var(--surface-3); color: var(--text); font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center;
  border: 1.5px solid var(--bg); font-variant-numeric: tabular-nums;
}
.bell-n.hot { background: var(--accent); color: #111110; }
.bell-run { position: absolute; bottom: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.menu.ibx-menu { width: min(400px, calc(100vw - 16px)); max-width: none; padding: 0; }
.ibx-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--border); }
.ibx-h b { font-size: 14px; }
.menu .ibx-h .seg { margin: 0; display: inline-flex; }
.menu .ibx-h .seg > * { flex: none; padding: 4px 10px; font-size: 12.5px; }
.ibx-list { max-height: min(560px, calc(100vh - 120px)); overflow: auto; padding: 6px; overscroll-behavior: contain; }
.ibx-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; padding: 10px; border-radius: 10px; align-items: start; }
.ibx-row:hover { background: var(--surface-2); }
.ibx-row.job { grid-template-columns: 10px minmax(0, 1fr); align-items: center; }
.ibx-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.ibx-ic .ic { width: 16px; height: 16px; }
.ibx-row.bad .ibx-ic { background: var(--bad-bg); color: var(--bad-text); }
.ibx-row.warn .ibx-ic { background: var(--warn-bg); color: var(--warn-text); }
.ibx-row.info .ibx-ic { background: var(--info-bg); color: var(--info-text); }
.ibx-row.ok .ibx-ic { background: var(--ok-bg); color: var(--ok-text); }
.ibx-b .t { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.ibx-b .d { color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.ibx-b .btn { margin-top: 9px; }
.ibx-b .btn .ic { width: 13px; height: 13px; }
.ibx-x { opacity: 0; transition: opacity .12s; }
.ibx-row:hover .ibx-x, .ibx-x:focus-visible { opacity: 1; }
@media (hover: none) { .ibx-x { opacity: .6; } }
.ibx-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; color: var(--text-3); font-size: 13px; }
.ibx-off { display: flex; gap: 8px; align-items: flex-start; margin: 6px 6px 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px;
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.ibx-off .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; }
/* A client's link or a shared report, while it loads: something on the page, not a blank screen. */
.rv-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18vh 20px; color: var(--text-3); font-size: 14px; }
.rv-loading .spinner { width: 18px; height: 18px; }
.ibx-empty .ic { width: 28px; height: 28px; color: var(--ok); margin-bottom: 4px; }
.ibx-empty b { color: var(--text); font-size: 14px; }

/* ---------------------------------------------------------- video detail */
.vd { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.vd-media { position: sticky; top: 0; }
.vd-media .frame { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0B0B0C; position: relative; border: 1px solid var(--border); }
.vd-media video, .vd-media img { width: 100%; height: 100%; object-fit: cover; display: block; background: #0B0B0C; }
.vd-media .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 10, 12, .55); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  backdrop-filter: blur(6px); transition: transform .15s, background .15s;
}
.vd-media .play .ic { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.vd-media .frame:hover .play { transform: translate(-50%, -50%) scale(1.06); background: rgba(10, 10, 12, .7); }
.vd-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #8E8D87; font-size: 13px; }
.vd-main { display: grid; gap: 12px; min-width: 0; }
.vd-acts { gap: 6px; padding-bottom: 4px; }
.vd-sec { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 6px; min-width: 0; }
.vd-sec > h3 { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 10px; }
.vd-sec .cap { color: var(--text-2); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
@media (max-width: 480px) { .sched-fields > .field { flex-basis: 100%; } }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); margin-bottom: 12px; }
.back-link .ic { width: 14px; height: 14px; }
.back-link:hover { color: var(--text); }
/* Autopilot on a paused or stopped persona: kept, but resting until it's live again. */
.btn.is-off { opacity: .55; }
.ov-off .btn { margin-top: 2px; }
.cm-row { padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); display: grid; gap: 8px; }
.cm-row + .cm-row { margin-top: 6px; }
.cm-row .badge { flex: none; }
.cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.cm-head > b { min-width: 0; max-width: 100%; }
/* What was spotted can be a sentence: it wraps on a phone rather than run off the row. */
.cm-row .cm-why { flex: 0 1 auto; white-space: normal; height: auto; min-height: 22px; padding-block: 4px; line-height: 1.3; }
.cm-row.is-done { background: transparent; }
.cm-dealt { margin-top: 8px; }
.cm-dealt summary { display: flex; flex-wrap: wrap; gap: 4px 8px; cursor: pointer; list-style: none; padding: 4px 0; width: fit-content; }
.cm-dealt summary::-webkit-details-marker { display: none; }
.cm-dealt summary .link { color: var(--accent-text, var(--text-2)); text-decoration: underline; text-underline-offset: 3px; }
.cm-dealt[open] summary .link { display: none; }
.cm-dealt[open] summary { margin-bottom: 6px; }
.cm-flag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: 99px; font: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); cursor: pointer; }
.cm-flag .ic { width: 13px; height: 13px; }
.cm-flag:hover { border-color: var(--warn); }
/* Team notes: a quiet count on the card, the notes themselves in the video's panel. */
.note-flag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: 99px; font: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-2); cursor: pointer; }
.note-flag .ic { width: 13px; height: 13px; }
.note-flag:hover { border-color: var(--text-3); color: var(--text); }
/* Taken down: the line on the card, and what's still up, to finish. */
.td-line { display: flex; gap: 6px; align-items: center; color: var(--text-2); }
.td-line .ic { width: 13px; height: 13px; flex: none; }
.td-flag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: 99px; font: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); cursor: pointer; text-align: left; }
.td-flag .ic { width: 13px; height: 13px; flex: none; }
.td-flag:hover { border-color: var(--warn); }
.td-sec .small { margin-bottom: 10px; overflow-wrap: anywhere; }
.td-plan { display: grid; gap: 8px; }
.td-li { display: flex; gap: 10px; align-items: flex-start; }
.td-li .plat-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); flex: none; }
.td-li .plat-ic .ic { width: 15px; height: 15px; }
.notes { display: grid; gap: 10px; margin-bottom: 12px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.note-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.note-h .link { margin-left: auto; color: var(--text-3); }
.note-h .link:hover { color: var(--bad-text); }
.note-t { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-add { display: grid; gap: 8px; justify-items: start; margin-top: 4px; }
.note-add textarea { width: 100%; }
.link.moment { font-variant-numeric: tabular-nums; }
/* What changed since a decision: a line, and the caption's words taken out and put in. */
.changed-since { margin-top: 6px; color: var(--text-2); }
.changed-since .ic { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.changed-since .link { margin-left: 4px; white-space: nowrap; }
.cap-diff { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.cap-diff del { color: var(--bad-text); background: var(--bad-bg); text-decoration: line-through; text-decoration-thickness: 1px; }
.cap-diff ins { color: var(--ok-text); background: var(--ok-bg); text-decoration: none; }
.cap-diff del + ins { margin-left: 3px; }
.rv-back { margin: 8px 0 2px; }
.cm-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); flex: none; }
.cm-ic .ic { width: 13px; height: 13px; }
.cm-text { font-size: 13.5px; color: var(--text-2); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.cv-rows { display: grid; gap: 8px; }
.cv-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cv-t { min-width: 0; }
.cv-th { flex: none; width: 40px; aspect-ratio: 9 / 16; border-radius: 6px; object-fit: cover; background: var(--surface-3); border: 1px solid var(--border); }
.cv-th.ph { display: inline-grid; place-items: center; color: var(--text-3); background: transparent; border-style: dashed; }
.cv-th.ph .ic { width: 15px; height: 15px; }
.cover-strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; }
.cover-strip .cf { position: relative; flex: none; width: 58px; aspect-ratio: 9 / 16; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #0B0B0C; cursor: pointer; }
.cover-strip .cf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-strip .cf span { position: absolute; left: 0; right: 0; bottom: 3px; font-size: 10.5px; font-weight: 600; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.cover-strip .cf:hover { border-color: var(--border-2); }
.cover-strip .cf.on { border-color: var(--accent); }
.cover-strip .cf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks { display: grid; gap: 8px; font-size: 13.5px; }
.checks .c { display: flex; gap: 9px; align-items: flex-start; color: var(--text-2); }
.checks .c .ic { color: var(--ok); width: 16px; height: 16px; margin-top: 1px; flex: none; }
.checks .c.bad { color: var(--bad-text); }
.checks .c.bad .ic { color: var(--bad); }
.plat-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); font-size: 13.5px; }
.plat-row + .plat-row { margin-top: 6px; }
.plat-row .plat-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-3); flex: none; }
.plat-row .plat-ic .ic { width: 16px; height: 16px; }
.plat-row .nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.plat-row .nums b { color: var(--text); font-weight: 600; }
.plat-row .link { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.plat-row .link .ic { width: 12px; height: 12px; }
.timeline { display: grid; }
.timeline .ev { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 14px; }
.timeline .ev::before { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--border-2); }
.timeline .ev:last-child { padding-bottom: 0; }
.timeline .ev:last-child::before { display: none; }
.timeline .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); }
.timeline .ico .ic { width: 14px; height: 14px; color: var(--text-3); }
.timeline .ev.ok .ico .ic { color: var(--ok); }
.timeline .ev.bad .ico .ic { color: var(--bad); }
.timeline .ev.violet .ico .ic { color: var(--violet-text); }
.timeline .ev.warn .ico .ic { color: var(--warn-text); }
.timeline .t { font-size: 13.5px; padding-top: 4px; }
.timeline .d { font-size: 12px; color: var(--text-3); margin-top: 2px; overflow-wrap: anywhere; }
a.ev-link { color: inherit; text-decoration: none; border-radius: 8px; }
a.ev-link:hover .t { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.video .who { background: none; border: 0; padding: 0; text-align: left; color: var(--text-3); font: inherit; font-size: 12.5px; cursor: pointer; min-width: 0; }
.video .who > .ic { width: 13px; height: 13px; margin-left: auto; flex: none; opacity: 0; transition: opacity .12s; }
.video:hover .who > .ic, .video .who:focus-visible > .ic { opacity: 1; }
.video .who-t { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; line-height: 1.3; }
.video .who-t .nm { color: var(--text-2); font-weight: 550; }
.video .who-t .st { font-size: 12px; }
.video .who:hover .nm { color: var(--text); }
/* The status shows on the thumbnail; on a phone's small thumbnail it would cover the persona's name, so it moves here. */
/* Where it is, with its title: the video's own picture keeps its own labels to itself. */
.video .v-flags { display: flex; flex-wrap: wrap; gap: 5px; }
/* Sample data is said on the picture; on a phone's small thumbnail, with the title instead. */
.video .v-flags .v-sample { display: none; }
@media (max-width: 480px) { .video .v-flags .v-sample { display: inline-flex; } }
.video .body { cursor: pointer; }
.video.settled { opacity: .62; transition: opacity .2s; }
a.open-row { color: inherit; text-decoration: none; border-radius: 8px; transition: background .15s; }
a.open-row:hover { background: var(--surface-2); }
a.open-row:hover .strong { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.video .body textarea { cursor: text; }
@media (max-width: 760px) {
  .vd { grid-template-columns: minmax(0, 1fr); }
  .vd-media { position: static; width: min(240px, 70vw); margin: 0 auto; }
  /* Under the video on a phone, the decision is pinned to the bottom of the screen until scrolled to:
     one column of flex items, so it can move up past the video (a grid item can't leave its row). */
  .vd { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .vd-main { display: contents; }
  .vd-media { margin-bottom: 12px; }
  .vd-acts { position: sticky; bottom: -18px; z-index: 2; margin: 0 -18px; padding: 10px 18px 12px; background: var(--surface);
    border-top: 1px solid var(--border); }
}

/* ---------------------------------------------------------------- drawer */
.drawer-bg { position: fixed; inset: 0; z-index: 85; background: var(--overlay); animation: fade .15s ease-out; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 86; display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: slideL .24s cubic-bezier(.2, .8, .3, 1);
}
.drawer.wide { width: min(880px, 100vw); }
.drawer-wrap.out .drawer { transform: translateX(24px); opacity: 0; transition: transform .18s, opacity .18s; }
.drawer-wrap.out .drawer-bg { opacity: 0; transition: opacity .18s; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-h h2 { font-size: 16px; font-weight: 650; }
.drawer-h p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.ok-t { color: var(--ok-text); }
/* Today's decisions, each with Back to review. */
.dec-list { list-style: none; margin: 0; padding: 0; display: grid; }
.dec-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.dec-row:first-child { border-top: 0; }
/* The video panel's Previous and Next, beside its close button. */
.vd-nav { display: inline-flex; gap: 2px; flex: none; }
.vd-nav[hidden] { display: none; }
.drawer-b { flex: 1; overflow: auto; padding: 18px; overscroll-behavior: contain; }
@keyframes slideL { from { transform: translateX(28px); opacity: 0; } }

.help-sec + .help-sec { margin-top: 24px; }
.help-sec > .h { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.qa-list details { border-bottom: 1px solid var(--border); }
.qa-list summary {
  list-style: none; cursor: pointer; padding: 11px 2px; font-weight: 550; font-size: 13.5px; display: flex; gap: 10px; align-items: center;
}
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); transition: transform .15s; flex: none; }
.qa-list details[open] summary::after { transform: rotate(225deg); }
.qa-list details p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; padding: 0 2px 12px; }
.help-links { display: grid; gap: 6px; }
.help-links a, .help-links button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 550; text-align: left; width: 100%;
}
.help-links a:hover, .help-links button:hover { border-color: var(--border-2); background: var(--surface-3); }
.help-links .ic { color: var(--accent-text); }
.help-links .end { margin-left: auto; color: var(--text-3); }
.keys { display: grid; gap: 8px; font-size: 13.5px; list-style: none; margin: 10px 0 0; padding: 0; }
.keys-on { margin-bottom: 4px; }
.keys .r { display: flex; align-items: center; gap: 10px; }
.keys .r span:first-child { color: var(--text-2); }
.keys .r .spacer + span { display: flex; gap: 4px; }

/* ---------------------------------------------------------------- report */
/* A sheet of paper on screen and on the printer, whatever the app theme. */
.report {
  --ink: #16161A; --ink-2: #4A4A52; --ink-3: #66666F; --rule: #E6E6EA; --paper: #FFFFFF; --soft: #F6F6F8;
  max-width: 820px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 48px 56px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.55;
}
.report h1 { font-size: 30px; letter-spacing: -.03em; margin-top: 4px; }
.report h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; font-weight: 650; }
.report section { margin-top: 30px; break-inside: avoid; }
.rp-head { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.rp-kicker { font-size: 12.5px; font-weight: 650; color: #C2410C; letter-spacing: .02em; }
.rp-sub, .rp-meta { color: var(--ink-2); }
.rp-meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); }
.rp-face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 30%; flex: none; }
.rp-note { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: #FFF7ED; color: #9A3412; font-size: 13px; }
.rp-verdict { margin-top: 26px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 12px; background: var(--soft); border: 1px solid var(--rule); }
.rp-verdict p { color: var(--ink-2); }
@media (max-width: 480px) { .rp-verdict { flex-direction: column; align-items: flex-start; gap: 10px; } }
.rp-badge { flex: none; font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 99px; background: #E9E9EE; color: var(--ink); }
.rp-verdict.ok .rp-badge { background: #DCFCE7; color: #166534; }
.rp-verdict.info .rp-badge { background: #DBEAFE; color: #1E40AF; }
.rp-verdict.warn .rp-badge { background: #FEF3C7; color: #92400E; }
.rp-verdict.bad .rp-badge { background: #FEE2E2; color: #991B1B; }
.rp-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rp-targets .k { font-weight: 600; }
.rp-targets .bar { height: 8px; border-radius: 99px; background: #EDEDF1; margin: 10px 0 8px; overflow: hidden; }
.rp-targets .bar i { display: block; height: 100%; background: var(--series-1); border-radius: 99px; }
.rp-targets .v { color: var(--ink-2); font-size: 13px; }
/* Hairlines are the grid's gap, so they hold for any number of cells. */
.rp-stats { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-stats > div { padding: 14px 16px; background: var(--paper); }
.rp-stats .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-stats .k { color: var(--ink-3); font-size: 12.5px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-scroll { overflow-x: auto; }
@media print { .rp-scroll { overflow: visible; } }
.rp-table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.rp-table td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rp-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-table td:first-child { white-space: nowrap; }
.rp-table .cap { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.rp-list { padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.rp-steps-h, .rp-said-h { display: flex; align-items: center; gap: 10px; }
.rp-team { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 10px; }
.rp-team-h { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.rp-steps-h .rp-edit, .rp-said-h .rp-edit { margin-left: auto; text-transform: none; letter-spacing: 0; }
.rp-steps-h .rp-edit .btn, .rp-said-h .rp-edit .btn { color: var(--ink-2); background: transparent; border-color: var(--rule); }
/* The agency's note for the client, under the verdict. */
.rp-said-t { white-space: pre-line; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.rp-said.blank { padding: 14px 16px; border: 1px dashed var(--rule); border-radius: 12px; }
.rp-said.blank .rp-said-h { margin-bottom: 4px; }
.report:not(.with-costs) [data-cost] { display: none; }
.rp-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 11.5px; }
/* Plain definitions, for a client who doesn't speak dashboard. */
.rp-defs dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; }
.rp-defs dt { font-weight: 650; font-size: 13px; color: var(--ink); }
.rp-defs dd { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2, var(--ink-3)); line-height: 1.45; }
@media (max-width: 560px) { .rp-defs dl { grid-template-columns: minmax(0, 1fr); } }
/* In the dark, a dark sheet on screen: a page-sized white block is the brightest thing in the app.
   On paper it's white whatever the theme (see print, below). */
:root:not([data-theme="light"]) .report {
  --ink: var(--text); --ink-2: var(--text-2); --ink-3: var(--text-3); --rule: var(--border-2); --paper: var(--surface); --soft: var(--surface-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
:root:not([data-theme="light"]) .rp-kicker { color: var(--accent-text); }
:root:not([data-theme="light"]) .rp-note { background: var(--warn-bg); color: var(--warn-text); }
:root:not([data-theme="light"]) .rp-badge { background: var(--surface-3); }
:root:not([data-theme="light"]) .rp-verdict.ok .rp-badge { background: var(--ok-bg); color: var(--ok-text); }
:root:not([data-theme="light"]) .rp-verdict.info .rp-badge { background: var(--info-bg); color: var(--info-text); }
:root:not([data-theme="light"]) .rp-verdict.warn .rp-badge { background: var(--warn-bg); color: var(--warn-text); }
:root:not([data-theme="light"]) .rp-verdict.bad .rp-badge { background: var(--bad-bg); color: var(--bad-text); }
:root:not([data-theme="light"]) .rp-targets .bar { background: var(--surface-3); }
@media (max-width: 720px) {
  .report { padding: 28px 20px; border-radius: 10px; }
  .rp-targets { grid-template-columns: 1fr; }
  .rp-stats { grid-template-columns: repeat(2, 1fr); }
  .rp-table .cap { display: none; }
}
/* On the narrowest phones, headings and first columns wrap rather than push the table off the page. */
@media (max-width: 400px) {
  .rp-table th.n, .rp-table td:first-child { white-space: normal; }
  .rp-table th, .rp-table td { padding-left: 6px; padding-right: 6px; }
}
@media print {
  @page { margin: 14mm; }
  :root { color-scheme: light !important; }
  html, body, .app, .main, .content { background: #fff !important; }
  .sidebar, .topbar, #banner, #page-h, .toasts, .tip-pop, .drawer-wrap { display: none !important; }
  .app { display: block !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .report { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  /* Paper is white: the light sheet's colours, whichever theme it was printed from. */
  :root:not([data-theme="light"]) .report { --ink: #16161A; --ink-2: #4A4A52; --ink-3: #66666F; --rule: #E6E6EA; --paper: #FFFFFF; --soft: #F6F6F8;
    border: 0; box-shadow: none; color: var(--ink); }
  :root:not([data-theme="light"]) .rp-kicker { color: #C2410C; }
  :root:not([data-theme="light"]) .rp-note { background: #FFF7ED; color: #9A3412; }
  :root:not([data-theme="light"]) .rp-badge { background: #E9E9EE; color: #16161A; }
  :root:not([data-theme="light"]) .rp-verdict.ok .rp-badge { background: #DCFCE7; color: #166534; }
  :root:not([data-theme="light"]) .rp-verdict.info .rp-badge { background: #DBEAFE; color: #1E40AF; }
  :root:not([data-theme="light"]) .rp-verdict.warn .rp-badge { background: #FEF3C7; color: #92400E; }
  :root:not([data-theme="light"]) .rp-verdict.bad .rp-badge { background: #FEE2E2; color: #991B1B; }
  :root:not([data-theme="light"]) .rp-targets .bar { background: #EDEDF1; }
  .rp-notes { border: 0; padding: 0; min-height: 0; }
  .rp-notes:empty { display: none; }
  .no-print { display: none !important; }
}

/* ------------------------------------------------------ reviewer feedback */
.fb { display: grid; gap: 10px; }
.fb-row { display: flex; gap: 12px; align-items: flex-start; }
.fb-n { min-width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--surface-3); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.fb-row .t { font-size: 13.5px; font-weight: 600; }
.fb-row .d { font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
.fb-row .d a { color: var(--accent-text); }
.fb-c { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.fb-q { display: grid; gap: 2px; font-size: 13px; color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.fb-q:hover { background: var(--surface-3); }

/* ------------------------------------------------------------ danger zone */
.danger-zone { border-color: var(--bad-border); }
.danger-zone .card-h { padding-bottom: 18px; }
.danger-zone h2 { color: var(--bad-text); }

/* ------------------------------------------------- operator-only panels */
details.operator > summary { list-style: none; cursor: pointer; }
details.operator > summary::-webkit-details-marker { display: none; }
details.operator > summary h2 { display: flex; align-items: center; gap: 8px; }
details.operator > summary h2 .ic { width: 15px; height: 15px; color: var(--text-3); }
details.operator > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); margin: 6px 6px 0 auto; transition: transform .15s; flex: none; }
details.operator[open] > summary::after { transform: rotate(-135deg); margin-top: 10px; }
details.operator:not([open]) > summary { padding-bottom: 18px; }
/* Settings → Platform: setting up a service or a platform's app, step by step. */
.guide h2 .badge { font-size: 11.5px; font-weight: 550; }
.guide ol.howto { margin: 2px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.guide ol.howto li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }
.guide ol.howto b, .guide .notes b { color: var(--text); font-weight: 600; }
.guide code, .callout code { font-family: var(--mono); font-size: 12px; padding: 1px 5px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border); overflow-wrap: anywhere; }
.guide .vars { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.guide .vars > span { display: inline-flex; align-items: center; gap: 6px; }
.guide .notes { display: grid; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--text-2); max-width: 75ch; }
.guide .watch { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------------------------------------------------- shared report page */
.sr-main { max-width: 900px; grid-template-columns: minmax(0, 1fr); }
.sr-main > .report { width: 100%; }
/* Phones: the best-videos table keeps date, title, views and likes, so titles get room. */
@media (max-width: 560px) {
  .rp-best th:nth-child(3), .rp-best td:nth-child(3), .rp-best th:nth-child(6), .rp-best td:nth-child(6) { display: none; }
  .rp-best td:first-child { white-space: normal; min-width: 64px; }
}
.rv-logo { height: 28px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.rp-logo { height: 30px; width: auto; max-width: 220px; object-fit: contain; display: block; margin-bottom: 12px; }
/* A logo made for light backgrounds (most are) stays visible on a dark page: on a light chip, as in the app. */
:root[data-theme="dark"] .rv-logo, :root[data-theme="dark"] .rp-logo { background: #fff; padding: 4px 8px; border-radius: 8px; box-sizing: content-box; }
.rv-theme { flex: none; }
.empty h1.gone-h { font-size: 18px; letter-spacing: -.01em; margin-bottom: 6px; }
.brand-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.brand-logo { width: 180px; height: 72px; border-radius: 10px; border: 1px dashed var(--border-2); display: grid; place-items: center;
  padding: 10px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 14px 14px; }
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sr-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #111110; font-weight: 700; font-size: 13px; }
@media print { .shared-report .rv-top { display: none !important; } .shared-report .rv-main { padding: 0; max-width: none; } }

/* The apps' own buttons and caption, laid over a player on request. */
.app-ui { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 3; }
.au-on .app-ui { display: block; }
@media (max-width: 600px) { .rv-side .au-toggle { display: none; } }
.app-ui .au-zone { position: absolute; left: 0; right: 0; bottom: 0; height: 21%; border-top: 1.5px dashed rgba(255, 255, 255, .55);
  background: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .12)); }
.app-ui .au-zone-r { position: absolute; right: 0; top: 39%; bottom: 21%; width: 15%; border-left: 1.5px dashed rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .06); }
.app-ui .au-btn { position: absolute; right: 3.2%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.app-ui .au-btn.me { border: 2px solid #fff; background: rgba(160, 170, 180, .9); }
.app-ui .au-line { position: absolute; left: 4%; height: 1.2%; border-radius: 99px; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.app-ui b.au-line { height: 1.5%; }
.app-ui .au-bar { position: absolute; left: 0; right: 0; bottom: .6%; height: .45%; background: rgba(255, 255, 255, .75); }
.au-toggle { margin-top: 8px; }
.warn-t { color: var(--warn-text); }
.bad-t { color: var(--bad-text); }

/* ------------------------------------------------------------ two-step sign-in */
.tf-setup { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }
.tf-qr { width: 168px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; }
.tf-qr svg { display: block; width: 100%; height: 100%; }
.tf-key { display: block; flex: 1; min-width: 0; font: 600 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
  padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); user-select: all; }
/* The key breaks between its groups of four, never inside one. */
.tf-key span { white-space: nowrap; }
.tf-setup.here { grid-template-columns: minmax(0, 1fr); }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; list-style: none; }
.tf-codes li { display: grid; }
.tf-codes code { font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-align: center;
  padding: 9px 0; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); user-select: all; }
.dialog-b .tf-codes + .row { margin-bottom: 12px; }
/* The box beside its words, however narrow the screen: they wrap, it stays put. */
.tf-saved { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.tf-saved input { flex: none; margin-top: 2px; }
@media (max-width: 560px) {
  .tf-setup { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tf-setup > .stack { width: 100%; }
}
.tf-mark { display: inline-flex; vertical-align: -2px; color: var(--ok-text, var(--text-3)); border-radius: 4px; }
.tf-mark:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle-row.is-disabled { cursor: default; }
.toggle-row.is-disabled .switch, .toggle-row.is-disabled .t { opacity: .5; }
.tf-mark .ic { width: 14px; height: 14px; }
/* Content: the next page of a long history. */
.more-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
/* Content: find a video by its words. */
.find-box { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-3); min-width: 200px; }
.find-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring, rgba(255, 255, 255, .08)); color: var(--text-2); }
.find-box .ic { width: 15px; height: 15px; flex: none; }
.find-box input { border: 0; background: none; padding: 0; height: 100%; min-width: 0; flex: 1; box-shadow: none; outline: none; font: inherit; color: var(--text); }
@media (max-width: 560px) { .find-box { flex: 1 1 100%; order: 5; } }
.cap-tail.cap-head { margin: 0 0 6px; color: var(--text-2); font-weight: 600; }

/* Usage by client: a client's line, its personas under it, the total last. */
.table.usage-table .u-client td { background: var(--surface-2); }
.table.usage-table .u-persona td:first-child { padding-left: 28px; }
.table.usage-table .u-persona a { color: var(--text); text-decoration: none; }
.table.usage-table .u-persona a:hover { text-decoration: underline; }
.table.usage-table .u-total td { border-top: 1px solid var(--border-2); }
#u-month { height: 30px; font-size: 13px; padding: 0 28px 0 10px; }
#u-month + .cs-trigger { height: 30px; font-size: 13px; width: auto; }
#client-usage .card-h .actions { flex-wrap: nowrap; }
@media (max-width: 560px) {
  #client-usage .card-h .actions { margin-left: 0; width: 100%; }
  #client-usage :is(#u-month, #u-month + .cs-trigger) { flex: 1; min-width: 0; }
}

/* The client's review page, opened from an email at one video: that card, marked for a moment. */
.rv-card.rv-here { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .4s; }
@media (prefers-reduced-motion: reduce) { .rv-card.rv-here { transition: none; } }

/* What's new: a dot on Help until it's looked at, and the list in the Help panel. */
#help { position: relative; }
#help.has-news::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.news { display: grid; gap: 8px; }
.news-i { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.news-i span { color: var(--text-2); }
.news-i .link { justify-self: start; margin-top: 2px; }
.news-i b .badge { font-size: 11px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
/* The posting popover's list, taller than its room: a fade says there's more below. */
.mode-menu .rd.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
/* The calendar's key: what an open time and a held one look like, said in words, not on hover. */
.cal-legend { gap: 6px 14px; flex-wrap: wrap; justify-content: flex-end; }
.held-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px dashed var(--border-2); border-radius: 6px; font-size: 11.5px; color: var(--text-2); flex: none; }
/* On a phone, tab rows wrap instead of scrolling: every tab in sight (Issues included), none
   cut in half at either edge. */
@media (max-width: 560px) {
  .tabs, #view .seg-tabs { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .tabs { gap: 0 2px; }
  .tabs a { padding: 9px 8px; font-size: 13px; }
  #view .seg-tabs { display: flex; row-gap: 2px; }
  #view .seg-tabs > * { flex: 1 0 auto; justify-content: center; padding: 0 9px; }
}
/* Content on a phone: its tagline gives way, and search and the persona picker share a row under the
   tabs, so the first video starts higher up. */
.content-tools :is(#who, #who + .cs-trigger) { width: auto; min-width: 180px; }
@media (max-width: 560px) {
  .on-wide { display: none; }
  .page-h p:has(> .on-wide:only-child) { display: none; }
  .content-tools { gap: 8px; }
  .content-tools > .spacer { display: none; }
  .content-tools .find-box { flex: 1 1 150px; order: 2; }
  .content-tools :is(#who, #who + .cs-trigger) { flex: 0 1 auto; order: 3; min-width: 0; max-width: 46%; }
  .content-tools #approve-all { order: 4; }
  /* A persona's tabs: one row that scrolls (it shows where it's at), not five and one left over. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs a { flex: none; }
  .tabs.more-r { mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .tabs.more-l { mask-image: linear-gradient(90deg, transparent, #000 44px); }
  .tabs.more-l.more-r { mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
  /* The theme picker at its narrowest: words without icons, so "Match system" fits. */
  .seg[aria-label="Theme"] .ic { display: none; }
}
/* A long legal line (a risk statement) grows with what's in it, so it's read whole, not through a slot. */
textarea[name=risk_warning] { field-sizing: content; min-height: 6.5em; max-height: 60vh; }

/* Personas as a list: one line each, the face and name opening the persona. */
.pl-table td { padding-top: 9px; padding-bottom: 9px; }
.pl-who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; max-width: 300px; }
.pl-who > span { display: grid; }
.pl-who:hover b { text-decoration: underline; text-underline-offset: 2px; }
.pl-pilot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pl-pilot .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pl-auto { color: var(--text-3); display: inline-grid; vertical-align: middle; }
.pl-auto .ic { width: 14px; height: 14px; }
.pl-table td.num a { font-weight: 600; text-decoration: none; }
.pl-table td.num a:hover { text-decoration: underline; }
@media (max-width: 560px) { .pl-table .hide-sm { display: none; } .pl-who { max-width: 200px; } }
/* Every client's table lines up with the others. */
@media (min-width: 561px) {
  .pl-table { table-layout: fixed; }
  .pl-table th:nth-child(1) { width: 30%; } .pl-table th:nth-child(2) { width: 13%; } .pl-table th:nth-child(3) { width: 23%; }
  .pl-table th:nth-child(4), .pl-table th:nth-child(5) { width: 10%; } .pl-table th:nth-child(6) { width: 14%; }
}
/* Which Instagram account, or Facebook Page, a persona posts to, when one sign-in manages several. */
.ig-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-pick .btn .muted { font-weight: 400; margin-left: 2px; }

/* Phones and touch screens: what's tapped all day is big enough for a thumb (about 40px), not a cursor. */
/* A finger's size on a touch screen: the small buttons, the icon buttons (x, ..., the top bar's),
   menu rows, the menu's links, an (i), a note's Delete. */
@media (pointer: coarse) {
  .btn.sm { height: 36px; }
  .btn.icon { width: 40px; height: 40px; }
  .btn.icon.sm { width: 36px; height: 36px; }
  .menu .item { min-height: 44px; }
  .nav a { height: 40px; }
  .badge-btn { min-height: 32px; padding-top: 4px; padding-bottom: 4px; }
  .hint-i { position: relative; }
  .hint-i::after { content: ""; position: absolute; inset: -12px; }
  .note-h .link { padding: 10px 6px; margin: -10px -6px; }
}
/* Sideways moves on a panel or the phone's menu are a swipe to put it away; up and down still scroll. */
@media (pointer: coarse) { .drawer-b, .drawer-h, .sidebar { touch-action: pan-y pinch-zoom; } }
/* Single-key shortcuts need a keyboard: a phone or tablet without one has nothing to switch. */
@media (hover: none) and (pointer: coarse) { .keys-pref { display: none; } }
@media (pointer: coarse), (max-width: 560px) {
  .video .acts .btn.sm { height: 38px; padding: 0 14px; }
  .review-acts .btn.sm { height: 38px; padding: 0 14px; }
  .seg-tabs > a, .seg-tabs > button { min-height: 36px; }
  .stat .sub a.link { display: inline-block; padding: 8px 0; margin: -8px 0; }
  button.open-chip { min-height: 32px; padding-top: 4px; padding-bottom: 4px; }
  .page-h p a.link { padding: 4px 0; }
  .vd-acts .btn.sm { height: 38px; }
  /* A client's page on a phone: everything they tap is a thumb's size. */
  .rv-page #whoami .btn, .btn.rv-theme { height: 40px; min-width: 40px; }
  .rv-page .rv-tabs > a { min-height: 44px; display: inline-flex; align-items: center; }
  .rv-card details > summary { padding: 10px 0; }
  .rv-page .rv-state .btn { min-height: 40px; display: inline-flex; align-items: center; }
  .rv-page .small a { display: inline; padding: 10px 0; }
  .why-chips label { min-height: 40px; }
}
/* Decided on a client's page: a short line each, not a second full-size video to scroll past. */
.rv-card.done { grid-template-columns: 96px minmax(0, 1fr); }
.rv-card.done .rv-media { width: 96px; margin: 0; border-radius: 0; }
.rv-card.done .rv-cap, .rv-card.done .cap-tail, .rv-card.done details, .rv-card.done .rv-next:not(.rv-moved), .rv-card.done .au-toggle { display: none; }
@media (max-width: 600px) { .rv-card.done { grid-template-columns: 84px minmax(0, 1fr); } .rv-card.done .rv-media { width: 84px; margin: 0; } }
/* A few toasts at most at once: older ones give way, so they don't climb up the screen. */
.toasts > .toast:nth-last-child(n+4) { display: none; }
/* A phone's thumb works the bottom of the screen, where the next video's buttons are: there, toasts
   come in at the top, under the bar, newest first and two at most. */
@media (max-width: 560px), (max-height: 500px) and (pointer: coarse) {
  .toasts { top: 64px; bottom: auto !important; display: flex; flex-direction: column-reverse; }
  /* One at a time, the newest: a stack would sit over the next thing to tap. */
  .toasts > .toast:nth-last-child(n+2) { display: none; }
  .toast { animation-name: slidedown; }
  .toast.out { transform: translateY(-6px); }
  /* With a video's panel open, its decision buttons are at the top: the toast goes to the bottom. */
  body:has(.drawer-wrap:not(.out)) .toasts { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)) !important; flex-direction: column; }
  body:has(.drawer-wrap:not(.out)) .toast { animation-name: slideup; }
}
/* At a desk, the open panel has the right of the screen: toasts go to the left, off its note box. */
@media (min-width: 561px) {
  body:has(.drawer-wrap:not(.out)) .toasts { right: auto; left: 16px; }
}
@media (max-width: 560px) { .toasts { left: 12px; right: 12px; width: auto; } }
@keyframes slidedown { from { opacity: 0; transform: translateY(-8px); } }
@keyframes slideup { from { opacity: 0; transform: translateY(8px); } }
/* The client page's bar: the agency's name gives way before the reviewer's. */
.rv-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-top #whoami { flex: 0 1 auto; max-width: 60%; }
.rv-top .rv-contact { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-top .rv-contact a { display: inline-flex; align-items: center; gap: 6px; }
.rv-top .rv-contact .ic { display: none; }
@media (max-width: 640px) {
  .rv-top .wide-only { display: none; }
  .rv-top .rv-contact .ic { display: block; width: 18px; height: 18px; }
  .rv-top .rv-contact a { width: 34px; height: 34px; justify-content: center; border-radius: 8px; color: var(--text-2); }
}

/* A busy calendar day: its first few videos, then how many more. */
.cal .slot.folded { display: none; }
.cal .day.all .slot.folded { display: grid; }
.day-more { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font: inherit; font-size: 12px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.day-more:hover, .day-more:focus-visible { color: var(--text); border-color: var(--border-2); }
.day-more .ic { width: 12px; height: 12px; }
.open-chip b.ellipsis { max-width: 64px; display: inline-block; vertical-align: bottom; }
.open-chip.open-count i { background: var(--text-4); }
.cal-key summary { cursor: pointer; color: var(--text-2); }
.video-grid > .grid-day { grid-column: 1 / -1; margin: 10px 0 -4px; font-size: 13px; font-weight: 650; color: var(--text-2); letter-spacing: .01em; }
.video-grid > .grid-day:first-child { margin-top: 0; }
/* A sortable column: says so on hover, and which way it's sorted. */
th.sortable-h { cursor: pointer; user-select: none; }
th.sortable-h:hover, th.sortable-h:focus-within { color: var(--text); }
.sort-btn { all: unset; cursor: pointer; border-radius: 4px; }
.sort-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
a.row-a { display: block; color: inherit; text-decoration: none; }
a.row-a:hover { text-decoration: underline; }
th[aria-sort=descending]::after { content: " ↓"; }
th[aria-sort=ascending]::after { content: " ↑"; }
/* The table of every persona fits a laptop: headings may wrap, cells are a little tighter. */
.an-table th { white-space: normal; vertical-align: bottom; }
.an-table td, .an-table th { padding-left: 8px; padding-right: 8px; }
/* The first and last columns line up with the card's own title. */
.card .table th:first-child, .card .table td:first-child { padding-left: 18px; }
.card .table th:last-child, .card .table td:last-child { padding-right: 18px; }

/* ------------------------------------------------------- one by one */
/* A video at a time, filling the screen as the apps show it, the decision under the thumb.
   Always dark, as video is watched. */
.feed {
  position: fixed; inset: 0; z-index: 87; display: flex; flex-direction: column; background: #000; color: var(--text);
  animation: fade .15s ease-out; outline: none; overscroll-behavior: contain;
}
:root[data-theme="light"] .feed {
  color-scheme: dark;
  --bg: #050505; --surface: #0D0D0E; --surface-2: #141416; --surface-3: #1C1C1F; --input: #0A0A0B; --border: #1E1E21; --border-2: #2B2B30;
  --text: #EDEDEC; --text-2: #A8A8A3; --text-3: #8A8A84; --text-4: #5E5E5A;
  --primary: #EDEDEC; --primary-hover: #FFFFFF; --primary-fg: #0A0A0A; --accent-text: #FF8A4C; --ring: #FF7A2F; --ring-soft: rgba(255, 122, 47, .3);
  --ok-text: #3DBE3D; --ok-bg: rgba(12, 163, 12, .12); --bad-text: #F07070; --bad-bg: rgba(208, 59, 59, .13);
  --warn-text: #F5B53D; --warn-bg: rgba(250, 178, 25, .10); --info-text: #6CA6EE; --info-bg: rgba(57, 135, 229, .12);
}
.feed-top { display: flex; align-items: center; gap: 4px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); flex: none; }
.feed-top .btn.ghost { color: #EDEDEC; }
.feed-top .btn:disabled { opacity: .35; }
.feed-top [aria-pressed="true"] { background: var(--surface-3); }
.feed-n { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; margin-left: 4px; }
.feed-keys { color: var(--text-3); margin-left: 12px; }
@media (hover: none), (max-width: 760px) { .feed-keys { display: none; } }
.feed-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 12px; touch-action: none; }
.feed-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: #0B0B0C; }
.feed-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-over {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18% 22px 14px; color: #fff; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .5) 55%, transparent); text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
/* What's locked onto every caption (the ad line, the AI label, the risk warning) folds into one line
   until the caption is opened: the video's own headline above stays readable, as the apps keep it. */
.feed-over:not(:has(.feed-cap.open)) .feed-lock { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.feed-over:not(:has(.feed-cap.open)) .feed-lock ~ .feed-lock { display: none; }
.feed-who { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.feed-cap { font-size: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; pointer-events: auto; cursor: pointer; }
.feed-cap.open { -webkit-line-clamp: unset; max-height: 40vh; overflow: auto; }
.feed-lock { display: flex; gap: 5px; align-items: flex-start; margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.feed-lock .ic { width: 11px; height: 11px; margin-top: 2px; flex: none; }
.feed-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: flex; align-items: flex-end; cursor: pointer; z-index: 4; touch-action: none; }
.feed-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.feed-bar i { position: relative; height: 3px; width: 0; background: #fff; }
.feed-play {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; z-index: 4;
  display: grid; place-items: center; background: rgba(10, 10, 12, .55); color: #fff; cursor: pointer;
}
.feed-play .ic { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.feed-stamp {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 99px; font-weight: 650; font-size: 15px; background: rgba(10, 10, 12, .82); color: #fff; animation: pop .2s ease-out;
}
.feed-stamp.ok .ic { color: var(--ok-text); }
.feed-stamp.bad .ic { color: var(--bad-text); }
.feed-foot { flex: none; width: 100%; max-width: 560px; margin: 0 auto; padding: 10px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.feed-title { font-weight: 650; font-size: 14.5px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-foot .said, .feed-foot .moved, .feed-foot .changed-since, .feed-foot .rv-next { font-size: 12.5px; margin: 0 0 6px; }
.feed-notes { max-height: 22vh; overflow: auto; }
.feed-acts { display: flex; gap: 10px; align-items: center; margin-top: 8px; min-height: 48px; }
.feed-acts .btn { flex: 1; height: 48px; font-size: 15px; justify-content: center; }
/* Note and Caption: there when needed, smaller than the decision. */
.feed-acts { flex-wrap: wrap; }
.feed-acts .feed-more { display: flex; gap: 6px; flex-basis: 100%; justify-content: center; }
.feed-acts .feed-more .btn { flex: 0 0 auto; height: 36px; font-size: 13px; }
.feed-end { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 24px; }
.feed-end .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok-text); }
.feed-end .ico .ic { width: 28px; height: 28px; }
.feed-end h2 { font-size: 20px; }
.feed-end p { color: var(--text-2); }
@media (max-width: 560px) {
  .feed-stage { padding: 0; }
  .feed-frame { border-radius: 0; }
}

/* --------------------------------------------------------------- profile grid */
/* A persona's Instagram grid as it will look: three across, 3:4 covers, the app's own thin gaps. */
.pg-wrap { max-width: 640px; }
.pg-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pg-head b { display: block; font-size: 15px; }
.pg-switch { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; color: var(--text-2); }
.pg-note { margin: 0 0 14px; }
.pg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; list-style: none; margin: 0; padding: 0; }
.pg-t { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.pg-b { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; position: relative; cursor: pointer; color: #fff; }
div.pg-b { cursor: default; }
.pg-b img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pg-b:hover img { filter: brightness(1.08); }
.pg-b:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Not out yet: said on the cover, the way nothing on the real grid is. */
.pg-booked .pg-b::after, .pg-waiting .pg-b::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.pg-waiting .pg-b::after { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); outline: 2px dashed rgba(0, 0, 0, .45); outline-offset: -2px; }
.pg-tag { position: absolute; left: 6px; top: 6px; right: 6px; width: fit-content; max-width: calc(100% - 12px); display: inline-flex; gap: 4px; align-items: center;
  padding: 3px 7px; border-radius: 7px; background: rgba(8, 8, 10, .78); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tag .ic { width: 12px; height: 12px; flex: none; }
.pg-views { position: absolute; left: 6px; bottom: 6px; display: inline-flex; gap: 3px; align-items: center; color: #fff; font-size: 12.5px; font-weight: 650;
  padding: 2px 7px 2px 5px; border-radius: 7px; background: rgba(8, 8, 10, .86); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.pg-views .ic { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 480px) { .pg-tag { font-size: 10.5px; padding: 2px 6px; left: 4px; top: 4px; } }
/* A phone: the handle and counts beside the face, the switch on a row of its own under them. */
@media (max-width: 560px) {
  .pg-head { gap: 10px 12px; }
  .pg-head b.ellipsis { white-space: normal; overflow-wrap: anywhere; }
  .pg-switch { flex: 1 1 100%; }
}

/* --------------------------------------------------------------- pointing at a spot */
.note-tools { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.note-tools [data-point] { display: inline-flex; gap: 4px; align-items: center; }
.note-tools [data-point][hidden] { display: none; }
.note-tools [data-point] .ic { width: 13px; height: 13px; flex: none; }
.pinned { display: inline-flex; gap: 6px; align-items: center; color: var(--accent-text); }
.pinned .ic { width: 13px; height: 13px; flex: none; }
.pin-chip { display: inline-flex; gap: 3px; align-items: center; }
.mention { color: var(--accent-text); font-weight: 600; }
/* A note dealt with: kept, quieter. */
.note.done .note-t { color: var(--text-3); }
.note-h .badge.xs { font-size: 11px; padding: 1px 6px; gap: 3px; }
.note-h .badge.xs .ic { width: 11px; height: 11px; }
.note-flag.quiet { opacity: .7; }
.note-tools [data-mention] { display: inline-flex; gap: 4px; align-items: center; }
.note-tools [data-mention] .ic { width: 13px; height: 13px; flex: none; }
.pin-chip .ic { width: 12px; height: 12px; flex: none; }
/* Where someone pointed: a ring on the picture, over everything but taking no taps. */
.pin-dot { position: absolute; z-index: 4; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  border: 3px solid #fff; background: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .5); animation: pin-in .5s cubic-bezier(.2, .8, .3, 1.4); }
.pin-dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
@keyframes pin-in { from { transform: scale(2.2); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pin-dot { animation: none; } }
/* Choosing the spot: the picture takes the tap, not the player. */
.pin-pick { position: absolute; inset: 0; z-index: 5; cursor: crosshair; background: rgba(0, 0, 0, .18); outline: none; }
.pin-pick:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.pin-hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
  padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(8, 8, 10, .86); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: auto; }
.pin-hint > .ic { width: 14px; height: 14px; }
.pin-x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.pin-x .ic { width: 14px; height: 14px; }
.pin-aim { background: transparent; animation: none; }
@media (pointer: coarse) { .pin-x { width: 36px; height: 36px; } }

/* Made again in other words: the line that says so, and the two side by side. */
.said.remake-said { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.said.remake-said > span { flex: 1 1 220px; min-width: 0; }
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cmp-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cmp-col video { width: 100%; max-height: 46vh; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 10px; }
.cmp-lines { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.cmp-lines li.changed { color: var(--text); background: var(--violet-bg); border-radius: 6px; padding: 2px 6px; margin-left: -6px; }
@media (max-width: 560px) { .cmp { grid-template-columns: minmax(0, 1fr); } .cmp-col video { max-height: 38vh; } }

/* A persona's Analytics on a phone: its pilot first (after any demo notice), not a screen and a half down. */
@media (max-width: 720px) {
  .an-page > .an-pilot-duo { display: contents; }
  .an-page > .an-demo { order: -2; }
  .an-page > .an-pilot-duo > .an-pilot { order: -1; }
}
/* The skip link's shadow shows through as a smudge on paper. */
@media print { .skip-link { display: none !important; } }
/* The small line under a client's pages that says what they're made with. */
.rv-made { text-align: center; padding: 8px 16px 28px; font-size: 12px; }
.rv-made a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); text-decoration: none; }
.rv-made .logo-v { width: 12px; height: auto; }
.rv-made a:hover, .rv-made a:focus-visible { color: var(--text-2); text-decoration: underline; }

/* Video credits on Plan & billing: what's left, where it comes from, and packs to buy. */
.credit-sum { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.credit-n { font-size: 40px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.credit-split { display: grid; gap: 6px; min-width: 220px; }
.credit-split > div:not(.xs) { display: flex; align-items: baseline; gap: 8px; }
.credit-split > div > .muted:first-child { min-width: 112px; }
.pack-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.pack {
  display: grid; gap: 2px; justify-items: start; text-align: left; padding: 14px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease), background .15s;
}
.pack-n { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pack-n small { font-size: 13px; font-weight: 550; color: var(--text-3); letter-spacing: 0; }
.pack-p { font-weight: 600; }
@media (hover: hover) { .pack:hover { border-color: var(--text-3); transform: translateY(-2px); box-shadow: var(--shadow-md); } }
.pack:active { transform: scale(.98); transition-duration: .08s; }
.pack:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* A business persona: what kind it is (in the wizard), and what it talks about (on its page). */
.choice .choice-ic, .choice-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--surface-3); color: var(--text-2); transition: background .15s, color .15s; }
.choice.on .choice-ic, .choice:has(input:checked) .choice-ic { background: var(--accent-soft); color: var(--accent-text); }
.note-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface-2); font-size: 13.5px; }
.note-row > span:first-child { flex: 1; min-width: 0; }
.note-row .xs { white-space: nowrap; }

/* The free video-ideas tool's results: one card per video, its script as numbered lines. */
.ideas { display: grid; gap: 12px; margin: 12px 0 8px; }
.idea { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.idea-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.idea-head b { font-size: 16px; letter-spacing: -.01em; }
.idea-script { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.idea-script li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Lines of work to start a business persona from: chips that say which one is picked. */
.preset-row { gap: 6px; flex-wrap: wrap; }
.preset-row .badge { cursor: pointer; }
.preset-row .badge[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

/* Levels and quests on Home (quests.py): where the workspace stands, and the next few things to do. */
.lvl-card { overflow: hidden; position: relative; }
.lvl-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #FF7A2F, #FF4FA3, #A970FF); }
.lvl-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lvl-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 20px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #FF7A2F, #FF4FA3); box-shadow: 0 10px 24px -12px rgba(255, 79, 163, .8); }
.lvl-who { min-width: 0; flex: 1 1 160px; }
.lvl-k { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.lvl-who h2 { font-size: 20px; letter-spacing: -.02em; }
.lvl-xp { flex: 0 1 240px; min-width: 160px; font-size: 13px; color: var(--text-3); text-align: right; }
.lvl-xp b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.lvl-meter { margin-top: 6px; }
.lvl-meter i { background: linear-gradient(90deg, #FF7A2F, #FF4FA3, #A970FF) !important; }
.lvl-next { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.lvl-next b { color: var(--text); }
.quests { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.quest { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.q-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #FF4FA3; background: rgba(255, 79, 163, .12); }
.q-ic .ic { width: 16px; height: 16px; }
.quest.done .q-ic { color: var(--ok-text); background: var(--ok-bg); }
.q-t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.q-t b { font-size: 14px; font-weight: 600; }
.q-t small { font-size: 12.5px; color: var(--text-3); }
.quest.done .q-t b { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-4); }
.q-xp { flex: none; font-size: 12px; font-weight: 700; color: var(--warn-text); font-variant-numeric: tabular-nums; }
.lvl-all { margin-top: 12px; }
.lvl-all > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2); width: fit-content; }
.lvl-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.lvl-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lvl-n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.lvl-list li.done .lvl-n { color: #fff; background: linear-gradient(135deg, #FF7A2F, #FF4FA3); border-color: transparent; }
/* Days in a row with a video posted. */
.lvl-streak { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 700;
  color: #FFB347; background: rgba(255, 140, 47, .12); border: 1px solid rgba(255, 140, 47, .3); font-variant-numeric: tabular-nums; }
.lvl-streak .ic { width: 15px; height: 15px; }
/* A level just reached: once, at the top of Home. */
.lvl-up { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 122, 47, .16), rgba(255, 79, 163, .14) 55%, rgba(169, 112, 255, .14));
  border: 1px solid rgba(255, 79, 163, .35); animation: lvl-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.lvl-up .lvl-badge { animation: lvl-spin .9s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.lvl-up-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.lvl-up-t b { font-size: 17px; letter-spacing: -.01em; }
.lvl-up-t > span:last-child { font-size: 13.5px; color: var(--text-2); }
.lvl-up-burst { position: absolute; left: 40px; top: 50%; width: 0; height: 0; pointer-events: none; }
.lvl-up-burst i { position: absolute; width: 6px; height: 6px; border-radius: 2px; opacity: 0; animation: lvl-burst 1.1s ease-out .2s both; }
.lvl-up-burst i:nth-child(3n) { background: #FF7A2F; } .lvl-up-burst i:nth-child(3n+1) { background: #FF4FA3; } .lvl-up-burst i:nth-child(3n+2) { background: #A970FF; }
.lvl-up-burst i:nth-child(1) { --x: 70px; --y: -40px; } .lvl-up-burst i:nth-child(2) { --x: 90px; --y: 10px; } .lvl-up-burst i:nth-child(3) { --x: 60px; --y: 46px; }
.lvl-up-burst i:nth-child(4) { --x: -10px; --y: 56px; } .lvl-up-burst i:nth-child(5) { --x: -40px; --y: 30px; } .lvl-up-burst i:nth-child(6) { --x: -36px; --y: -30px; }
.lvl-up-burst i:nth-child(7) { --x: 0px; --y: -58px; } .lvl-up-burst i:nth-child(8) { --x: 120px; --y: -20px; } .lvl-up-burst i:nth-child(9) { --x: 110px; --y: 34px; }
.lvl-up-burst i:nth-child(10) { --x: 30px; --y: -60px; }
@keyframes lvl-pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lvl-spin { from { transform: scale(.4) rotate(-30deg); } to { transform: none; } }
@keyframes lvl-burst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4) rotate(160deg); } }
@media (prefers-reduced-motion: reduce) { .lvl-up, .lvl-up .lvl-badge { animation: none; } .lvl-up-burst { display: none; } }
@media (max-width: 560px) {
  .lvl-xp { flex: 1 1 100%; text-align: left; }
  .quest { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ Clips */
.clp .lvl-streak.off { color: var(--text-3); background: var(--surface-2); border-color: var(--border); }
/* The ambassador program, by application: the next thing to aim for under a clip maker's code. */
.clp-amb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, #FF4FA3 9%, var(--surface))); }
.clp-amb > div { flex: 1 1 220px; min-width: 0; }
.clp-amb p { margin: 2px 0 0; color: var(--text-2); }
.clp-amb.quiet { background: var(--surface-2); border-color: var(--border); }
.clp-amb-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), #FF4FA3); }
.clp-amb.quiet .clp-amb-ic { color: var(--text-2); background: var(--surface-3); }
.clp-amb-ic .ic { width: 18px; height: 18px; }
.clp-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.clp-nums.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.clp-nums > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.clp-nums b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clp-nums span { font-size: 12px; color: var(--text-3); line-height: 1.3; }
/* The plans, as a ladder: the first rung is where people start. */
.clp-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.clp-rung { display: grid; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.clp-rung:nth-child(2) { padding-top: 28px; } .clp-rung:nth-child(3) { padding-top: 40px; }
.clp-rung { position: relative; }
.clp-rung.best { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); }
.clp-rung-tag { position: absolute; top: -10px; left: 14px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 750; color: #fff;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #FF4FA3)); }
.clp-rung-each { font-size: 13px; font-weight: 650; color: var(--accent-text); }
.clp-rung-n { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.clp-rung-p { font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.clp-rung-p small { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.clp-rung-d { font-size: 13px; color: var(--text-2); }
.clp-rung .btn { margin-top: 6px; }
/* Make a clip: a row of chips for each pick. */
.clp-mode { align-self: flex-start; }
.clp-mode .ic { width: 14px; height: 14px; }
.clp-own textarea { min-height: 84px; resize: vertical; }
.clp-own-hint { display: flex; gap: 12px; align-items: flex-start; }
.clp-own-hint .num { flex: none; margin-left: auto; }
.clp-k { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.clp-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.clp-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 550;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.clp-chip:hover { color: var(--text); border-color: var(--border-2); }
.clp-chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.clp-chip.on { color: var(--accent-text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.clp-chip .ic { width: 14px; height: 14px; }
/* The page's own star, first among the stars. */
.clp-chip.mine { color: var(--text); border-color: color-mix(in srgb, #FF4FA3 45%, var(--border)); }
.clp-chip.mine .ic { color: #FF4FA3; }
.clp-chip.mine.on { color: var(--accent-text); }
/* Claude's ideas for their star: whole sentences, so they wrap. */
.clp-sugg { margin-top: 4px; }
.clp-chip.clp-idea-chip { height: auto; min-height: 32px; padding: 7px 12px; border-radius: 12px; text-align: left; line-height: 1.4; white-space: normal; }
/* The first page: what came from the quiz. */
.clp-from ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.clp-from li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border-radius: 10px; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--border); overflow-wrap: anywhere; }
.clp-from .ic { width: 14px; height: 14px; flex: none; color: var(--accent-text); }
/* The page's style: its star, and its look. */
.clp-style-star { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.clp-style-star > div:not(.row) { flex: 1 1 220px; min-width: 0; }
.clp-style-star p { margin: 2px 0 0; color: var(--text-2); }
.clp-amb-ic.quiet { color: var(--text-2); background: var(--surface-3); }
.clp-making { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); border: 1px solid var(--info-border); }
.clp-spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--info) 30%, transparent); border-top-color: var(--info);
  animation: clp-spin .9s linear infinite; }
@keyframes clp-spin { to { transform: rotate(360deg); } }
/* The clip: the video beside what to do with it, or above it where the card is narrow. */
.clp-clip { container-type: inline-size; }
.clp-clip-b { display: flex; gap: 16px; align-items: flex-start; }
.clp-video { width: 200px; max-width: 42%; aspect-ratio: 9 / 16; flex: none; border-radius: 12px; background: #0B0B0C; object-fit: cover; }
.clp-clip-side { min-width: 0; flex: 1; gap: 12px; }
.clp-cap { display: grid; gap: 6px; }
.clp-cap pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 12.5px; line-height: 1.45; color: var(--text-2);
  max-height: 128px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.clp-cap .btn { justify-self: start; }
.clp-acts { gap: 6px; }
@container (max-width: 620px) {
  .clp-clip-b { flex-direction: column; align-items: stretch; }
  .clp-video { width: 100%; max-width: 240px; align-self: center; }
}
/* What to do with a clip, in order: save it, post it with its caption, say so. */
.clp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.clp-steps > li, .clp-flow > li { display: flex; gap: 12px; align-items: flex-start; }
.clp-steps > li > div { display: grid; gap: 8px; min-width: 0; flex: 1; }
.clp-steps b, .clp-flow b { font-size: 14px; font-weight: 650; }
.clp-steps .xs { margin-top: -6px; }
.clp-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 750;
  color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.clp-how { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.clp-how > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.clp-how > summary::-webkit-details-marker { display: none; }
.clp-how > summary .ic { width: 15px; height: 15px; flex: none; }
.clp-how > summary .ic:last-child { margin-left: auto; transition: transform .2s; }
.clp-how[open] > summary .ic:last-child { transform: rotate(180deg); }
.clp-how > summary:hover { color: var(--text); }
.clp-how > summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 10px; }
.clp-how-apps { display: grid; gap: 12px; padding: 4px 12px 0; }
.clp-how-app h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 650; }
.clp-how-app h3 .ic { width: 14px; height: 14px; }
.clp-how-app ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.clp-how-why { margin: 0; padding: 10px 12px 12px; }
.clp-how-tip { padding: 10px 12px 2px; color: var(--text-2); }
.clp-seen { display: inline-flex; align-items: center; gap: 4px; }
.clp-seen .ic { width: 13px; height: 13px; }
.clp-code-in { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.clp-code-in::placeholder { font-weight: 500; }
/* Until the first clip is posted: the whole of it, in three steps. */
.clp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.clp-flow > li > div { display: grid; gap: 3px; min-width: 0; }
.clp-flow > li > div > span { font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
/* Every clip, newest first. */
.clp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.clp-tile { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; padding: 0; border: 0; cursor: pointer; background: #0B0B0C; font: inherit; }
.clp-tile:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.clp-tile.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.clp-thumb { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .25s; }
.clp-tile:hover .clp-thumb { transform: scale(1.04); }
.clp-thumb.making { display: grid; place-items: center; background: var(--surface-2); }
.clp-tag, .clp-views { position: absolute; left: 6px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 12px); padding: 2px 7px; border-radius: 99px;
  font-size: 11px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp-tag { bottom: 6px; } .clp-views { top: 6px; }
.clp-views .ic { width: 11px; height: 11px; }
.clp-tag.ok { background: rgba(12, 120, 12, .85); } .clp-tag.bad { background: rgba(180, 35, 24, .85); } .clp-tag.accent { background: rgba(214, 90, 20, .9); }
.clp-tag.violet { background: rgba(98, 84, 214, .88); } .clp-tag.info { background: rgba(42, 120, 214, .88); }
/* Badges: earned ones in colour, the rest say how. */
.clp-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.clp-badge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.clp-badge > .ic { width: 16px; height: 16px; flex: none; color: var(--ok-text); margin-left: auto; }
.clp-medal { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-4, var(--text-3)); background: var(--surface-3);
  border: 1px dashed var(--border-2); }
.clp-medal .ic { width: 16px; height: 16px; }
.clp-badge.got .clp-medal { color: #fff; border: 0; background: linear-gradient(135deg, #FF7A2F, #FF4FA3); box-shadow: 0 8px 18px -10px rgba(255, 79, 163, .9); }
.clp-bt { display: grid; gap: 1px; min-width: 0; }
.clp-bt b { font-size: 13.5px; font-weight: 650; }
.clp-bt small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.clp-badge:not(.got) .clp-bt b { color: var(--text-2); }
/* Their code, big enough to read off a screen. */
.clp-code-row { gap: 8px; }
.clp-code-v { font-size: 26px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; margin-right: 6px; word-break: break-all; }
@media (max-width: 900px) {
  .clp-main { grid-template-columns: minmax(0, 1fr) !important; }
  .clp-flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .clp-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .clp-ladder { grid-template-columns: minmax(0, 1fr); }
  .clp-rung.best { order: -1; }                 /* one column: the best value first, not three cards down */
  .clp-rung:nth-child(n) { padding-top: 16px; }
  .clp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clp-nums.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clp-clip-b { flex-direction: column; align-items: stretch; }
  .clp-video { width: 100%; max-width: 280px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .clp-spin { animation-duration: 2.4s; } .clp-thumb, .clp-how > summary .ic { transition: none; } }
