/* Kamila by Kloü (docs/brand/kamila.md). Every color, size, space, corner, and shadow comes from these tokens.
   Light is the default; dark follows the device unless the Theme choice (data-theme on <html>, app/public/theme.js) says otherwise.
   The only fixed colors left below: #000 behind real video and photos, #fff behind the QR code, and white words over footage. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --paper: #FBF6EF; --surface: #FFFFFF; --surface-sunk: #F3EBDF; --ink: #1A1714; --ink-muted: #6B6158; --hairline: #E6DCCD;
  --coral: #C9452C; --on-coral: #FFFFFF; --coral-text: #A8371F; --blush: #F6D9CF; --champagne: #B08400; --champagne-text: #7A5C00;
  --success: #2F7D4F; --danger: #C2303D;
  --shadow-card: 0 1px 2px rgba(26, 23, 20, .06), 0 8px 24px rgba(26, 23, 20, .06);
  --shadow-pop: 0 1px 2px rgba(26, 23, 20, .08), 0 8px 24px rgba(26, 23, 20, .12);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B6158' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110; --surface: #1C1A17; --surface-sunk: #24211D; --ink: #F6F0E7; --ink-muted: #A8A097; --hairline: #34302A;
    --coral: #F07055; --on-coral: #1A1714; --coral-text: #F58A72; --blush: #3A221C; --champagne: #B08400; --champagne-text: #D9AD3C;
    --success: #4ADE80; --danger: #F25C66;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .5); --shadow-pop: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .6);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A8A097' stroke-width='1.6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110; --surface: #1C1A17; --surface-sunk: #24211D; --ink: #F6F0E7; --ink-muted: #A8A097; --hairline: #34302A;
  --coral: #F07055; --on-coral: #1A1714; --coral-text: #F58A72; --blush: #3A221C; --champagne: #B08400; --champagne-text: #D9AD3C;
  --success: #4ADE80; --danger: #F25C66;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .5); --shadow-pop: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .6);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A8A097' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root {
  /* Roles made from the tokens above, the same in both themes. */
  --edge: var(--ink-muted);                                        /* a field's or control's edge (hairline is too faint) */
  --hover: color-mix(in srgb, var(--ink) 6%, transparent);         /* hover on outlined buttons and rows */
  --selected: var(--surface-sunk);                                 /* the chosen tab, day, or option */
  --success-soft: color-mix(in srgb, var(--success) 7%, var(--surface));
  --danger-soft: color-mix(in srgb, var(--danger) 7%, var(--surface));
  --coral-hover: color-mix(in srgb, var(--coral) 86%, var(--ink));
  --danger-hover: color-mix(in srgb, var(--danger) 86%, var(--ink));
  --scrim: rgba(0, 0, 0, .72);                                     /* behind a word over real footage */
  --backdrop: color-mix(in srgb, var(--ink) 55%, transparent);     /* behind a dialog */
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-heading: 24px; --lh-heading: 30px; --fs-subhead: 18px; --lh-subhead: 26px; --fs-body: 16px; --lh-body: 24px;
  --fs-small: 14px; --lh-small: 20px; --fs-eyebrow: 12px; --lh-eyebrow: 16px;
  --sp-4: 4px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-24: 24px; --sp-32: 32px; --sp-48: 48px; --sp-64: 64px;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --tap: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; font-weight: 400; } /* 1.5 is 24px at 16px (--lh-body), and stays in proportion for smaller text. */
a { color: var(--coral-text); }
h1 { font-size: var(--fs-heading); line-height: var(--lh-heading); font-weight: 700; margin: 0 0 var(--sp-12); }
h2 { font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: 500; margin: 0 0 var(--sp-8); }
/* Eyebrow: the one uppercase style. */
.eyebrow { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
/* The older address's sign-in page points to studio.getkamila.com (Nov 18, 2026): spaced by the card's stack alone. */
.moved { margin: 0; }
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16);
  padding: var(--sp-12) var(--sp-16); padding-top: max(var(--sp-12), env(safe-area-inset-top)); background: var(--paper); border-bottom: 1px solid var(--champagne); }
.brand { display: inline-flex; align-items: baseline; gap: var(--sp-4); min-height: var(--tap); color: var(--ink); font-weight: 900; font-size: var(--fs-heading); line-height: 1; letter-spacing: -.01em; text-decoration: none; }
.brand span { color: var(--champagne-text); font-weight: 500; font-size: var(--fs-small); letter-spacing: 0; }
.menu summary { list-style: none; cursor: pointer; padding: var(--sp-8) var(--sp-16); border: 1px solid var(--ink); border-radius: var(--r-pill); font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] nav { position: absolute; right: 16px; left: 16px; top: 100%; background: var(--surface); box-shadow: var(--shadow-pop); border-radius: var(--r-lg); padding: var(--sp-8); max-height: 75vh; overflow-y: auto; }
nav a, nav .link { display: block; padding: var(--sp-12) var(--sp-12); border-radius: var(--r-md); color: var(--ink); text-decoration: none; min-height: var(--tap); }
nav a[aria-current="page"] { background: var(--selected); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--champagne); }
nav a:hover, nav .link:hover { background: var(--hover); }
.shell { display: block; }
.side { display: none; }
main { padding: var(--sp-16); max-width: 760px; margin: 0 auto; width: 100%; }
.card { background: var(--surface); border: 0; box-shadow: var(--shadow-card); border-radius: var(--r-lg); padding: var(--sp-16); margin: 0 0 var(--sp-16); overflow-wrap: anywhere; }
/* A card inside a card is a panel: a hairline border, no second shadow (cards get one or the other, never both). */
.card .card { box-shadow: none; border: 1px solid var(--hairline); }
.narrow { max-width: 440px; margin: var(--sp-24) auto; }
.stack { display: grid; gap: var(--sp-16); }
label { display: grid; gap: var(--sp-4); font-weight: 600; }
label.check { display: flex; align-items: center; gap: var(--sp-8); font-weight: 400; min-height: var(--tap); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface-sunk); border: 1px solid var(--edge); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-12); min-height: var(--tap); }
/* Safari draws its own small menu box and ignores the height above, so menus get their own arrow. */
select { -webkit-appearance: none; appearance: none; padding-right: var(--sp-32);
  background: var(--surface-sunk) var(--chevron) no-repeat right .85rem center / 12px 8px; }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--ink); }
fieldset { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-12); display: grid; gap: var(--sp-12); margin: 0; min-width: 0; }
legend { color: var(--ink-muted); padding: 0 var(--sp-4); }
button, .button { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; min-height: var(--tap); padding: var(--sp-8) var(--sp-16);
  border-radius: var(--r-pill); border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
button.primary, .button.primary { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
button.danger, .button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .35; cursor: default; }
/* A clear ink ring shows where the keyboard is. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) {
  button:not(:disabled):hover, .button:hover { background: var(--hover); }
  button.primary:not(:disabled):hover, .button.primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
  button.secondary:not(:disabled):hover, .button.secondary:hover, .goals button:not(:disabled):hover { background: var(--hover); border-color: var(--ink); }
  button.danger:not(:disabled):hover, .button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
  button.link:hover { background: var(--hover); }
  .library a:hover { border-color: var(--edge); background: var(--hover); }
  .status a:hover span:last-child, .more summary:hover { text-decoration: underline; }
  .links a:hover { text-decoration-thickness: 2px; }
  .result:hover { border-color: var(--edge); }
  .result .name:hover { text-decoration: underline; }
}
button.link { background: none; border: 0; color: var(--ink); width: 100%; text-align: left; font-weight: 400; justify-content: flex-start; padding: var(--sp-12) var(--sp-12); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; }
/* A badge with long words (a video concept, a due date) wraps instead of running out of its card on a phone. */
.row .badge { white-space: normal; }
.row form { margin: 0; }
.flash { background: var(--success-soft); border: 1px solid var(--success); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); }
.notice { background: var(--blush); color: var(--ink); border: 1px solid var(--blush); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); }
/* A review account's banner (Meta's App Review), on every page it opens. */
.review-banner { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-12); }
/* Team Access: a review account's buttons, and the test accounts to tick. */
.reviewer-actions { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; }
.reviewer-actions form { margin: 0; }
#reviewers .links li { gap: var(--sp-4); padding-block: var(--sp-8); }
.error { background: var(--danger-soft); border: 1px solid var(--danger); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); }
.crumb { margin: 0 0 var(--sp-4); color: var(--ink-muted); }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: var(--sp-4) 0 var(--sp-4); border-bottom: 1px solid var(--hairline); display: grid; }
.links li > a { display: flex; align-items: center; min-height: var(--tap); }
.links li:last-child { border-bottom: 0; }
.goals { list-style: none; margin: 0; padding: 0; }
.goals li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: var(--sp-8); padding: var(--sp-8) 0; border-bottom: 1px solid var(--hairline); }
.goals li:last-child { border-bottom: 0; }
.goals .n { color: var(--ink); font-weight: 700; font-size: var(--fs-subhead); }
.goals form { display: flex; gap: var(--sp-8); margin: 0; }
.goals button { padding: var(--sp-8) var(--sp-12); min-width: 60px; background: transparent; color: var(--ink); border-color: var(--edge); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-4) var(--sp-16); margin: var(--sp-8) 0 var(--sp-16); }
dt { color: var(--ink-muted); }
dd { margin: 0; }
.badge { white-space: nowrap; font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: 600; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-sm); display: inline-block; border: 1px solid var(--hairline); vertical-align: middle; }
.badge.active { border-color: var(--success); color: var(--ink); }
.badge.paused, .badge.cancelled { border-color: var(--ink-muted); color: var(--ink-muted); }
.badge.planned { border-color: var(--champagne); color: var(--champagne-text); }
/* Check results and rule kinds (Phase 5): failed in red, warnings in gold, passed in green (.active). */
.badge.fail { border-color: var(--danger); color: var(--danger); }
.badge.warn { border-color: var(--champagne); color: var(--champagne-text); }
/* Links inside a details list stay a full tap target on a phone. */
dd > a { display: inline-flex; align-items: center; min-height: var(--tap); }
.big { font-size: var(--fs-heading); font-weight: 700; margin: var(--sp-4) 0; color: var(--ink); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: var(--sp-8) 0; border-bottom: 1px solid var(--hairline); }
.history .when { display: block; color: var(--ink-muted); font-size: var(--fs-small); }
.qr { background: #fff; display: inline-block; padding: var(--sp-8); border-radius: var(--r-md); }
.qr svg { display: block; max-width: 100%; height: auto; }
.key { font-family: ui-monospace, Menlo, monospace; font-size: var(--fs-body); letter-spacing: .05em; }
details summary { cursor: pointer; }
/* Upload and Library */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pick { width: 100%; min-height: calc(var(--tap) + 12px); font-size: var(--fs-subhead); }
#upload.after .setup { display: none; }
#upload.after .pick { background: transparent; color: var(--ink); border-color: var(--edge); min-height: calc(var(--tap) + 4px); }
.summary { font-size: var(--fs-subhead); font-weight: 600; }
.file-input:focus-visible + .pick { outline: 2px solid var(--ink); outline-offset: 2px; }
body.dropping main { outline: 2px dashed var(--champagne); outline-offset: -8px; }
button.small, .button.small { min-height: calc(var(--tap) - 4px); padding: var(--sp-4) var(--sp-12); font-size: var(--fs-body); }
.queue, .uploads { list-style: none; margin: 0; padding: 0; }
.queue li, .uploads li { display: grid; gap: var(--sp-4); padding: var(--sp-12) 0; border-bottom: 1px solid var(--hairline); }
.uploads .row > a, .queue li a { display: inline-flex; align-items: center; min-height: var(--tap); }
.queue li:last-child, .uploads li:last-child { border-bottom: 0; }
.queue .state, .uploads .state { color: var(--ink); }
.queue li.failed .state, .uploads .state.failed, .uploads .state.rejected { color: var(--danger); }
.queue li.done .state, .queue li.duplicate .state, .uploads .state.ready { color: var(--success); }
.queue li.offline .state { color: var(--champagne-text); }
progress { width: 100%; height: 10px; accent-color: var(--ink); }
.problem { padding: var(--sp-8) 0; border-bottom: 1px solid var(--hairline); }
.problem:last-child { border-bottom: 0; }
.problem p { margin: 0 0 var(--sp-4); }
.problem ul { margin: 0; padding-left: var(--sp-16); }
.steps { margin: 0; padding-left: var(--sp-24); }
.steps li + li { margin-top: var(--sp-8); }
.filters { display: grid; gap: var(--sp-12); }
.library { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-12); }
.library li { display: grid; gap: var(--sp-4); align-content: start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-8); overflow-wrap: anywhere; font-size: var(--fs-small); }
.library a { display: grid; gap: var(--sp-4); text-decoration: none; color: var(--ink); min-height: var(--tap); overflow-wrap: anywhere; }
.library .pv { width: 100%; }
.library img, .library .nothumb { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-md); background: var(--surface-sunk); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.library .name { font-weight: 600; }
/* Home status: one row per count, each a link to where it is acted on. */
.status { list-style: none; margin: 0 0 var(--sp-12); padding: 0; }
.status li { border-bottom: 1px solid var(--hairline); }
.status li:last-child { border-bottom: 0; }
.status a { display: flex; align-items: baseline; gap: var(--sp-8); min-height: var(--tap); padding: var(--sp-8) 0; color: var(--ink); text-decoration: none; }
.status .count { min-width: 2ch; font-weight: 700; font-size: var(--fs-subhead); font-variant-numeric: tabular-nums; color: var(--ink); }
.status a.attention .count { color: var(--danger); }
/* Technical details on a footage page, folded away until asked for. */
.more summary { cursor: pointer; display: flex; align-items: center; min-height: var(--tap); color: var(--coral-text); font-weight: 600; }
.more[open] summary:not(.button) { border-bottom: 1px solid var(--hairline); margin-bottom: var(--sp-4); }
.way { display: grid; gap: var(--sp-4); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--hairline); }
.way:last-child { border-bottom: 0; }
.way p { margin: 0; }
.player { width: 100%; max-height: 70vh; object-fit: contain; background: #000; border-radius: var(--r-md); margin: 0 0 var(--sp-8); }
/* Library search results: a picture, then what matched, each match opening at its time. */
h3 { font-size: var(--fs-body); margin: var(--sp-16) 0 var(--sp-8); color: var(--ink); }
.search input[type="search"] { font-size: var(--fs-body); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-12); }
.result { display: grid; grid-template-columns: 90px 1fr; gap: var(--sp-12); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-8); overflow-wrap: anywhere; }
.result .pic { display: block; }
.result > img { width: 90px; height: 160px; object-fit: cover; border-radius: var(--r-md); background: var(--surface-sunk); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: var(--fs-eyebrow); text-align: center; }
.result .about { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; }
.result .name { font-weight: 600; color: var(--ink); text-decoration: none; display: flex; align-items: center; min-height: var(--tap); }
.moments, .lines, .tags, .evidence { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.moments li { display: grid; gap: 0; padding: var(--sp-4) 0; border-top: 1px solid var(--hairline); }
.moments a, .lines a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: 3.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lines li { padding: 0 0; border-bottom: 1px solid var(--hairline); }
.lines li:last-child { border-bottom: 0; }
/* Schedule form: read-only rows for platforms that can't be scheduled now (scheduled, posted, or not available). */
.status-row { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); min-height: var(--tap); }
.status-list .button { justify-self: start; margin-top: var(--sp-4); }
/* Schedule form: a platform's settings, greyed out while it isn't selected. */
.platform-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.platform-fields:disabled { opacity: .45; }
.platform-settings.off h2 { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Schedule form: the exact video version being scheduled, small enough to leave the form in view. */
.schedule-video { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-12); align-items: start; padding: var(--sp-12); }
.schedule-player { display: block; width: 135px; height: 240px; object-fit: contain; background: #000; border-radius: var(--r-md); }
.schedule-player:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.schedule-video.landscape { grid-template-columns: minmax(0, 1fr); }
.schedule-video.landscape .schedule-player { width: 100%; max-width: 320px; height: auto; aspect-ratio: 16 / 9; }
.schedule-video-about { display: grid; gap: var(--sp-4); }
.schedule-video-about p { margin: 0; }
.schedule-video-about .error { margin-top: var(--sp-4); }
@media (min-width: 640px) { .schedule-video.landscape { grid-template-columns: auto minmax(0, 1fr); } .schedule-video.landscape .schedule-player { width: 320px; } }
/* One video preview on every screen (app/web/video.js): a real picture, playing in the page, or a clear error. */
.pv { min-width: 0; }
.pv-card { width: 135px; max-width: 100%; }
.pv-small { width: 90px; max-width: 100%; }
.pv-btn { position: relative; display: block; width: 100%; min-height: 0; padding: 0; border: 0; background: none; border-radius: var(--r-md); overflow: hidden; }
.pv-btn img, .pv-video, .pv-card > img, .pv-small > img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: var(--r-md); }
.pv-video { object-fit: contain; }
.pv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--scrim); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-pill); padding: var(--sp-4) var(--sp-12); font-weight: 600; font-size: var(--fs-small); white-space: nowrap; }
.pv-small .pv-play { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-eyebrow); }
@media (hover: hover) { .pv-btn:hover { background: none; } .pv-btn:hover .pv-play { background: var(--surface); color: var(--ink); border-color: var(--ink); } }
.pv.playing.pv-small { width: 135px; }
.pv-note { margin: var(--sp-4) 0 0; font-size: var(--fs-small); }
.pv-none { margin: 0; font-size: var(--fs-small); }
.pv-err { background: var(--danger-soft); border: 1px solid var(--danger); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); display: grid; gap: var(--sp-8); justify-items: start; }
.pv-err .row { margin: 0; }
.pv-failed.pv-card, .pv-failed.pv-small { width: 100%; }
.pv-failed .pv-btn, .pv-failed > video { display: none; }
.pv-full .pv-err { margin-bottom: var(--sp-8); }
.pv-row { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.pv-line { margin-bottom: var(--sp-4); }
.pv-line .pv-small { width: 72px; }
.wide-dd { grid-column: 1 / -1; }
.result .pv-small { width: 100%; }
.result .pv.playing, .result .pv-failed { grid-column: 1 / -1; width: 135px; max-width: 100%; }
.result .pv-failed { width: 100%; }
/* The Calendar (Gabe, Nov 5, 2026): the grid, Not on a date yet beside it, and one inline detail. */
main.wide { max-width: none; }
.badge.plan { border: 1px dotted var(--champagne-text); color: var(--champagne-text); }
.badge.trial { border: 1px dashed var(--champagne); color: var(--champagne-text); }
.badge.draft { border: 1px dotted var(--ink-muted); color: var(--ink-muted); }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0 0 var(--sp-12); }
.calbar { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; justify-content: space-between; margin-bottom: var(--sp-12); }
.cal-label { margin: 0 0 var(--sp-8); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--r-md); overflow: hidden; }
.seg a { display: inline-flex; align-items: center; min-height: var(--tap); padding: var(--sp-8) var(--sp-16); color: var(--ink); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--edge); }
.seg a[aria-current] { background: var(--selected); color: var(--ink); font-weight: 600; }
.calwrap { display: grid; gap: var(--sp-16); min-width: 0; }
.calwrap > * { min-width: 0; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); border-radius: var(--r-md); }
.month .dow { padding: var(--sp-4); text-align: center; color: var(--ink-muted); font-size: var(--fs-eyebrow); border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.cell { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); min-width: 0; padding: var(--sp-4); display: grid; align-content: start; gap: var(--sp-4); min-height: 60px; }
.cell.other { background: var(--surface-sunk); }
.cell.other .num { color: var(--ink-muted); }
.cell.drop, .slot.drop { outline: 2px solid var(--ink); outline-offset: -2px; background: var(--selected); }
.daynum { color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.only-narrow-block.daynum { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); min-height: 54px; padding: var(--sp-4) 0; border-radius: var(--r-sm); }
.only-wide-inline.daynum { display: none; }
.cell.today .num { color: var(--paper); background: var(--ink); border-radius: var(--r-pill); padding: 0 var(--sp-8); font-weight: 700; }
.cell.picked .only-narrow-block.daynum { outline: 2px solid var(--ink); outline-offset: -2px; }
.dots { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; min-height: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-muted); }
.dot.scheduled { background: var(--champagne-text); border-color: var(--champagne-text); }
.dot.live, .dot.approved { background: var(--success); border-color: var(--success); }
.dot.trial { border: 1px dashed var(--champagne-text); }
.dot.plan { border: 1px dotted var(--champagne-text); }
.dot.failed { background: var(--danger); border-color: var(--danger); }
.chips { display: none; gap: var(--sp-4); }
.chip { display: block; font-size: var(--fs-eyebrow); line-height: 1.3; padding: var(--sp-4) var(--sp-4); border-radius: var(--r-sm); border: 1px solid var(--hairline); background: var(--surface-sunk); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.chip .when { display: block; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.chip .ttl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip.scheduled { border-color: var(--champagne); }
.chip.live, .chip.approved { border-color: var(--success); }
.chip.trial { border: 1px dashed var(--champagne); }
.chip.plan { border: 1px dotted var(--champagne-text); }
.chip.failed { border-color: var(--danger); }
.chip.failed .when { color: var(--danger); }
.chip.grab, .trow-btn.grab { cursor: grab; }
.chip.dragging, .trow-btn.dragging { opacity: .4; }
.more-n { font-size: var(--fs-eyebrow); color: var(--ink-muted); padding: 0 var(--sp-4); }
.only-wide { display: none; }
.wk { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-8); margin-bottom: var(--sp-8); }
.wk.today { border-color: var(--champagne); }
.wk h3 { margin: 0 0 var(--sp-4); }
.daypane { margin-top: var(--sp-12); }
.daylist { list-style: none; margin: 0; padding: 0; }
.daylist > li { border-bottom: 1px solid var(--hairline); }
.daylist > li:last-child { border-bottom: 0; }
.dayrow { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0 var(--sp-8); color: var(--ink); text-decoration: none; padding: var(--sp-8) var(--sp-4); border-radius: var(--r-md); min-height: var(--tap); align-items: start; }
.dayrow .tm { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dayrow .sub { grid-column: 2; color: var(--ink-muted); font-size: var(--fs-small); }
.tgrid { display: grid; border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.tgrid.days-7 { grid-template-columns: 4.8rem repeat(7, minmax(0, 1fr)); }
.tgrid.days-1 { grid-template-columns: 4.8rem minmax(0, 1fr); }
.tgrid .hd, .tgrid .hr, .tgrid .slot { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); min-width: 0; }
.tgrid .hd { padding: var(--sp-4); text-align: center; font-size: var(--fs-eyebrow); font-weight: 600; }
.tgrid .hd.today { color: var(--ink); }
.tgrid .hr { padding: var(--sp-4) var(--sp-4); color: var(--ink-muted); font-size: var(--fs-eyebrow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slot { min-height: 34px; padding: var(--sp-4); display: grid; gap: var(--sp-4); align-content: start; }
.tray { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-12); align-self: start; min-width: 0; }
.tray h2 { margin: 0 0 var(--sp-4); }
.tray h3 { margin: var(--sp-12) 0 var(--sp-4); }
.tray p { margin: 0; font-size: var(--fs-small); }
.hint-drag { display: none; }
.trow { padding: var(--sp-4) 0; display: grid; gap: var(--sp-4); }
.trow-btn { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--sp-8); color: var(--ink); text-decoration: none; padding: var(--sp-4); border-radius: var(--r-md); min-height: var(--tap); align-items: start; }
.trow-btn img { display: block; width: 36px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.noimg { display: block; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px dotted var(--edge); }
.ttl2 { display: block; font-size: var(--fs-body); line-height: 1.3; overflow-wrap: anywhere; }
.sub2 { display: block; font-size: var(--fs-eyebrow); line-height: 1.3; }
.addcal { width: 100%; }
.detail { background: var(--surface); border: 1px solid var(--champagne); border-radius: var(--r-lg); padding: var(--sp-16); margin: var(--sp-8) 0; display: grid; gap: var(--sp-12); scroll-margin-top: 80px; overflow-wrap: anywhere; min-width: 0; font-size: var(--fs-body); }
.month .detail { grid-column: 1 / -1; margin: var(--sp-8); }
.detail h2 { margin: 0; }
.detail p { margin: 0; }
.detail dl { margin: 0; }
.detail .caption { margin: var(--sp-4) 0; }
.detail-top { display: grid; gap: var(--sp-12); }
.capblock { border-top: 1px solid var(--hairline); padding-top: var(--sp-8); display: grid; gap: var(--sp-8); min-width: 0; }
.cfrow { border-top: 1px dashed var(--hairline); padding-top: var(--sp-8); gap: var(--sp-8); }
.twofields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
.twofields input { min-width: 0; width: 100%; }
.tray .twofields { grid-template-columns: minmax(0, 1fr); }
.flash .undo { display: inline; margin: 0 0 0 var(--sp-8); }
button.linkish { background: none; border: 0; color: var(--coral-text); text-decoration: underline; padding: 0 var(--sp-4); font-weight: 400; min-height: var(--tap); min-width: 44px; }
[id^="when-"] { scroll-margin-top: 80px; }
.between { justify-content: space-between; }
.cal-filters { margin-top: var(--sp-4); }
#cal-root[aria-busy] { opacity: .7; }
@media (hover: hover) {
  .chip:hover { border-color: var(--ink); background: var(--hover); }
  .dayrow:hover, .trow-btn:hover { background: var(--hover); }
  .seg a:hover { background: var(--hover); }
  button.linkish:hover { background: none; text-decoration-thickness: 2px; }
}
@media (min-width: 600px) { .twofields { max-width: 26rem; } }
@media (min-width: 760px) {
  .chips { display: grid; }
  .only-narrow, .only-narrow-block.daynum, .only-narrow-block { display: none; }
  .only-wide { display: block; }
  .only-wide-inline.daynum { display: inline-flex; padding: 0 var(--sp-4); min-height: 26px; }
  .cell { min-height: 7rem; }
  .hint-drag { display: block; }
  .hint-tap, .addcal { display: none; }
  .detail-top { grid-template-columns: auto minmax(0, 1fr); }
}
@media (min-width: 900px) { .filters.cal-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) {
  .calwrap { grid-template-columns: minmax(0, 1fr) 300px; }
  .tray { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
  .tray .detail-top { grid-template-columns: minmax(0, 1fr); }
  .filters.cal-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; }
}
.bulk-bar { background: var(--surface); border: 1px solid var(--champagne); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); display: grid; gap: var(--sp-8); margin-top: var(--sp-12); }
.bulk-bar p { margin: 0; }
.bulk-bar.on { position: sticky; bottom: max(.25rem, env(safe-area-inset-bottom)); z-index: 3; }
/* Settings: Autonomy (Phase 8). */
.lvls { list-style: none; margin: 0 0 var(--sp-8); padding: 0; display: grid; gap: var(--sp-8); }
.lvls li { display: grid; gap: 0; }
.ctype { border-bottom: 1px solid var(--hairline); }
.ctype:last-child { border-bottom: 0; }
.ctype > summary { cursor: pointer; display: grid; gap: var(--sp-4); min-height: var(--tap); padding: var(--sp-8) 0; list-style: none; }
.ctype > summary::-webkit-details-marker { display: none; }
.ctype .name { font-weight: 600; }
.ctype .arrow { color: var(--coral-text); font-weight: 600; font-size: var(--fs-small); }
.pl { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-12); margin: 0 0 var(--sp-8); }
.pl p { margin: var(--sp-8) 0 0; }
.gates { list-style: none; margin: var(--sp-8) 0 var(--sp-8); padding: 0; display: grid; gap: var(--sp-4); }
.gates li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: var(--sp-8); align-items: baseline; }
.threefields { display: grid; gap: var(--sp-8); }
@media (min-width: 600px) { .threefields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-manager [data-owner-only] { display: none; }
/* A review account (Meta's App Review, Nov 18, 2026) sees Gabe's controls only where it may act for its test account: marked data-review-ok. */
.role-reviewer [data-owner-only]:not([data-review-ok]) { display: none; }
/* A viewer (Gabe's developer) looks and changes nothing. Every field and button that would send a change is switched off and
   dimmed, so nothing on the screen looks like it can be pressed. The server refuses them as well (app/web/roles.js). */
.role-viewer main form[method="post"] :is(button, input, select, textarea), .role-viewer main input[type="file"] { pointer-events: none; opacity: .45; }
.tablewrap { overflow-x: auto; }
table.rule-table { border-collapse: collapse; width: 100%; }
.rule-table th, .rule-table td { text-align: left; padding: var(--sp-4) var(--sp-8); border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.rule-table th { color: var(--ink-muted); font-size: var(--fs-small); }
.rule-table .c { text-align: center; white-space: nowrap; }
.rule-table label.check { justify-content: center; }
.rule-table .no { color: var(--danger); }
.rule-all { margin-bottom: var(--sp-8); }
/* Content Studio: the view tabs, and an idea card's title, tabs, and panels. */
.idea-card h2 a { display: inline-flex; align-items: center; min-height: var(--tap); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: 0 0 var(--sp-16); }
.tabs a, .tabs button { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8); min-height: var(--tap); min-width: 48px; padding: var(--sp-8) var(--sp-16); border: 1px solid var(--edge); border-radius: var(--r-pill); background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.tabs a[aria-current="page"], .tabs button[aria-selected="true"] { border-color: var(--champagne); color: var(--ink); background: var(--selected); }
@media (hover: hover) { .tabs a:hover, .tabs button:hover { border-color: var(--ink); background: var(--hover); } }
.count-pill { font-size: var(--fs-eyebrow); font-weight: 700; line-height: 1.4; padding: 0 var(--sp-8); border-radius: var(--r-pill); background: var(--ink); color: var(--paper); }
.dot { color: var(--champagne-text); }
.platform-tabs { margin: var(--sp-12) 0 var(--sp-8); }
.idea-title { display: grid; justify-items: start; }
.idea-title h2 { margin: 0; }
.idea-full { margin: 0; padding: var(--sp-8) 0 var(--sp-4); white-space: pre-line; }
/* A small text control: the label and arrow on one line, a full tap target, no box. */
.text-toggle { padding: 0 var(--sp-4); margin-left: calc(-1 * var(--sp-4)); border: 0; background: transparent; color: var(--coral-text); }
@media (hover: hover) { button.text-toggle:not(:disabled):hover { background: transparent; text-decoration: underline; } }
/* A control with two labels shows the one that applies: closed with a down arrow, open with an up arrow. */
[aria-expanded="true"] > .when-closed, [aria-expanded="false"] > .when-open, details[open] > summary > .when-closed, details:not([open]) > summary > .when-open { display: none; }
.idea-open > summary { list-style: none; }
.idea-open > summary::-webkit-details-marker { display: none; }
.idea-open[open] > summary { margin-bottom: var(--sp-8); }
.platform-row .status-row { min-height: var(--tap); }
.needs-group h3 { display: flex; align-items: center; gap: var(--sp-8); margin: 0; font-size: var(--fs-body); }
/* The shared left-and-right option viewer: Previous, "Option X of Y", Next, then one option at a time. */
.options { display: grid; gap: var(--sp-8); }
.options:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: var(--r-lg); }
.options-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-8); }
.options-count { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.options > .option > .card { margin-bottom: 0; }
/* Original and New version on a Threads, X, or LinkedIn draft: side by side on a wide screen, stacked on a phone. */
.compare { display: grid; gap: var(--sp-12); }
.compare-col { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-12); min-width: 0; display: grid; gap: var(--sp-8); align-content: start; }
.compare-col h3 { font-size: var(--fs-body); margin: 0; color: var(--ink-muted); }
.compare-col .caption { margin: 0; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.tags > li { display: grid; gap: var(--sp-4); padding: var(--sp-8) 0; border-bottom: 1px solid var(--hairline); }
.tags > li:last-child { border-bottom: 0; }
.evidence li { font-size: var(--fs-small); }
.evidence a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: 3.2rem; font-variant-numeric: tabular-nums; }
.tags form { margin-top: var(--sp-4); }
.grow { flex: 1 1 100%; }
.caption { white-space: pre-wrap; margin: 0; }
/* Directory: entries with their handles, each with a box to verify several at once. */
.entries { list-style: none; padding: var(--sp-4) var(--sp-16); }
.entry { display: grid; gap: 0; padding: var(--sp-12) 0; border-bottom: 1px solid var(--hairline); }
.entry:last-child { border-bottom: 0; }
.entry .name { font-weight: 600; display: inline-flex; align-items: center; min-height: var(--tap); }
.entry label.check { min-height: var(--tap); scroll-margin-bottom: 6rem; }
.badge.found { border-color: var(--champagne); color: var(--champagne-text); }
.badge.verified { border-color: var(--success); color: var(--ink); }
.badge.rejected { border-color: var(--danger); color: var(--danger); }
.handles li { gap: var(--sp-4); padding: var(--sp-8) 0; }
.decisions { list-style: none; margin: 0; padding: 0; }
.decision { display: grid; gap: var(--sp-4); padding: var(--sp-12) 0; border-bottom: 1px solid var(--hairline); }
.decision:last-child { border-bottom: 0; }
.decision p { margin: 0; }
.decision .evidence a { display: inline-flex; align-items: center; min-height: var(--tap); }
.button[aria-current="page"] { border-color: var(--champagne); color: var(--ink); }
.item-link { display: inline-flex; align-items: center; min-height: var(--tap); }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: var(--sp-8) 0; padding-bottom: max(var(--sp-8), env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
@media (min-width: 640px) { .filters { grid-template-columns: 1fr 1fr; align-items: end; } .result { grid-template-columns: 120px 1fr; } .result img, .result .nothumb { width: 120px; height: 213px; } }
@media (max-width: 420px) {
  dl { grid-template-columns: 1fr; }
  dt { margin-top: var(--sp-8); }
  .goals li { grid-template-columns: 1.6rem 1fr; }
  .goals form { grid-column: 1 / -1; }
  .goals button { flex: 1; }
  /* Connect's Opening page (Nov 19, 2026): its one action, full width on a phone. */
  a[data-leave] { width: 100%; }
}
/* On iPhone the Menu already lists these, so Home shows only the status. */
@media (max-width: 899px) { .ready-now { display: none; } }
@media (min-width: 900px) {
  .menu { display: none; }
  .shell { display: grid; grid-template-columns: 14rem 1fr; }
  .shell.plain { display: block; }
  .side { display: block; position: sticky; top: 4.2rem; align-self: start; height: calc(100vh - 4.2rem); overflow-y: auto; padding: var(--sp-16) var(--sp-12); border-right: 1px solid var(--hairline); }
  main { padding: var(--sp-24) var(--sp-32) var(--sp-48); }
}
/* Sign-in */
[hidden] { display: none !important; }
.wide { width: 100%; }
.backup > summary { display: flex; align-items: center; min-height: var(--tap); color: var(--coral-text); }
.backup[open] > summary { margin-bottom: var(--sp-8); }
.devices { list-style: none; margin: 0; padding: 0; }
.devices li { display: grid; gap: var(--sp-4); padding: var(--sp-12) 0; border-bottom: 1px solid var(--hairline); }
.devices li:last-child { border-bottom: 0; }
.devices .row { justify-content: space-between; }

/* Phase 6: drafts and voice memos */
#memo-status:empty { display: none; }
/* Voice memo recorder: a clear recording state (docs/ui-standards.md, "Recording audio"). */
.memo h2 { font-size: var(--fs-body); margin: 0; color: var(--ink); }
.memo-start, .memo-stop { min-height: calc(var(--tap) + 16px); font-size: var(--fs-subhead); }
.memo-stop { background: var(--danger); border-color: var(--danger); color: var(--on-coral); }
.memo-live { border: 1px solid var(--danger); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-16); display: grid; gap: var(--sp-8); }
.memo-rec { display: flex; align-items: center; gap: var(--sp-8); margin: 0; font-size: var(--fs-subhead); }
.memo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--danger); flex: none; animation: memo-pulse 1.2s ease-in-out infinite; }
.memo-time { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.memo-level { height: 10px; border-radius: var(--r-sm); background: var(--hairline); overflow: hidden; }
.memo-level span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left center; transform: scaleX(.03); }
@keyframes memo-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .memo-dot { animation: none; } }

.long-body h2, .long-body h3 { font-size: var(--fs-body); margin: var(--sp-8) 0 var(--sp-4); }
.long-body p, .long-body ul, .long-body ol { margin: 0 0 var(--sp-8); }
.draft .lines li { padding: var(--sp-8) 0; }
.draft .links li { padding-bottom: var(--sp-8); }
.draft h2 { font-size: var(--fs-body); margin: 0; color: var(--ink); }
@media (hover: hover) { button.memo-stop:not(:disabled):hover { background: var(--danger-hover); border-color: var(--danger-hover); color: var(--on-coral); } }

/* Voice answers: the recorder bar stays at the bottom of the screen, so the questions above stay in view. */
.answer-bar { background: var(--surface); border-top: 1px solid var(--hairline); padding: var(--sp-12) var(--sp-16); margin: 0 calc(-1 * var(--sp-16)); }
/* Pinned to the bottom only while recording or saving, so the questions stay in view; afterwards it sits below them. */
.answer-bar.docked { position: sticky; bottom: 0; z-index: 5; border-top-color: var(--danger); padding-bottom: max(var(--sp-12), env(safe-area-inset-bottom)); }
.answer-bar .memo-live { padding: var(--sp-8) var(--sp-12); }
.answer-choose { border: 1px solid var(--champagne); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-16); }
.answer-recordings li > span { display: block; }
.answer-recs { margin: 0; }
.answer-rec { padding: var(--sp-8) 0 var(--sp-8); }
.answer-rec audio { width: 100%; max-width: 420px; height: var(--tap); margin: var(--sp-4) 0; }
.answer-rec-status { margin: 0; }
#answers-send:disabled { opacity: .55; }

/* A linked item (#d12, #captions) stops below the sticky top bar, clearly in view. */
[id] { scroll-margin-top: calc(5rem + env(safe-area-inset-top)); }
@media (hover: hover) and (pointer: fine) { [id] { scroll-margin-top: calc(72px + env(safe-area-inset-top)); } }
/* Leave room so a linked item at the end of a short page can still come up near the top. */
body:has(:target) main { padding-bottom: 60vh; }
/* Approve anyway: a button that opens the failed checks and the confirm. */
.approve-anyway > summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: var(--tap); cursor: pointer; }
.approve-anyway > summary::-webkit-details-marker { display: none; }
.approve-anyway[open] > summary { margin-bottom: var(--sp-8); }

/* Creation Studio and Review & Publish (Gabe, Nov 6, 2026): a title row with Sort and More, one slim row of statuses and dropdowns, and the list right
   under it. A dropdown shows short text, with the real menu laid over it at 16px, so a phone opens its own picker and never zooms in. */
main:has(.stage-page) { max-width: 78rem; margin: 0; }
.stage-page { display: block; }
.stage-page h1 { font-size: var(--fs-heading); }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8); margin: 0 0 var(--sp-8); }
.head h1 { margin: 0; }
.head-tools { margin-left: auto; display: flex; gap: var(--sp-4); align-items: center; }
.modechip { display: none; font-size: var(--fs-small); }
.tools { display: grid; gap: var(--sp-4); margin: 0 0 var(--sp-8); }
.chk-set { border: 0; padding: 0; margin: 0; min-width: 0; display: block; }
.chk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.chk, label.chk { display: flex; align-items: center; gap: var(--sp-8); min-height: var(--tap); padding: 0 var(--sp-8); border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--surface); cursor: pointer; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.chk input[type="checkbox"] { width: 1.1rem; height: 1.1rem; }
.chk:has(input:checked) { border-color: var(--champagne); background: var(--selected); }
.chk:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chk input:focus-visible { outline-color: transparent; }
.chk .n { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-muted); font-weight: 400; }
.chk:has(input:checked) .n { color: var(--ink); font-weight: 700; }
.ddrow { display: flex; gap: var(--sp-4); min-width: 0; }
.ddrow .dd { flex: 1 1 auto; }
label.dd, .ddbtn { position: relative; display: inline-flex; align-items: center; gap: 0; min-height: var(--tap); min-width: 0; padding: 0 var(--sp-16) 0 var(--sp-8); border: 1px solid var(--edge); border-radius: var(--r-md); color: var(--ink); font-size: var(--fs-small); font-weight: 400; line-height: 1.2; cursor: pointer;
  background: var(--surface-sunk) var(--chevron) no-repeat right .45rem center / 9px 6px; }
.dd.on, .ddbtn.on { border-color: var(--champagne); background-color: var(--selected); color: var(--ink); }
.dd-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dd select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; font-size: var(--fs-body); cursor: pointer; }
.dd:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.narrow-only { display: inline; }
.wide-only { display: none; }
.moremenu { position: relative; }
.moremenu > summary { list-style: none; }
.moremenu > summary::-webkit-details-marker { display: none; }
.morepanel { position: absolute; right: 0; top: calc(100% + .25rem); z-index: 5; width: min(21rem, 86vw); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); display: grid; gap: var(--sp-4); box-shadow: var(--shadow-pop); }
.morepanel label:not(.check) { font-weight: 400; margin-bottom: var(--sp-4); }
.morepanel .sep { border-top: 1px solid var(--hairline); margin: var(--sp-4) 0; }
.reset { display: inline-flex; align-items: center; min-height: var(--tap); }
.count-line { margin: 0 0 var(--sp-4); color: var(--ink-muted); font-size: var(--fs-small); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-8); }
.count-line a { display: inline-flex; align-items: center; min-height: var(--tap); }
.listnote { margin-top: var(--sp-12); font-size: var(--fs-small); }
.stage-page nav.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin: 0 0 var(--sp-8); border: 0; border-radius: 0; overflow: visible; }
.stage-page nav.seg a { border: 1px solid var(--edge); border-radius: var(--r-md); justify-content: center; text-align: center; padding: 0 var(--sp-4); font-size: var(--fs-small); font-weight: 400; line-height: 1.2; background: transparent; color: var(--ink); }
.stage-page nav.seg a + a { border-left: 1px solid var(--edge); }
.stage-page nav.seg a[aria-current] { background: var(--selected); color: var(--ink); border-color: var(--champagne); }
.addpanel { padding: var(--sp-12); margin-bottom: var(--sp-8); }
.group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-8); margin: var(--sp-8) 0 var(--sp-4); }
.group-head h2 { margin: 0; }
.small { font-size: var(--fs-small); }
.rowcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); margin: 0 0 var(--sp-8); overflow-wrap: anywhere; }
.rowcard.open { border-color: var(--champagne); }
.rowhead { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4); align-items: start; }
.rowhead.pick { grid-template-columns: 2rem minmax(0, 1fr); }
.pickbox, label.pickbox { display: flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: 2rem; cursor: pointer; font-weight: 400; }
.rowopen { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: var(--sp-8); color: var(--ink); text-decoration: none; padding: var(--sp-4); border-radius: var(--r-md); align-items: start; min-height: var(--tap); }
.rowopen.notype { grid-template-columns: minmax(0, 1fr) auto; }
.mini { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 4.9rem; border-radius: var(--r-sm); font-size: var(--fs-eyebrow); color: var(--ink-muted); text-align: center; line-height: 1.15; object-fit: cover; background: #000; }
.mini.text { height: 2.75rem; background: var(--surface-sunk); border: 1px solid var(--edge); }
.mini.none { border: 1px dotted var(--edge); background: transparent; }
.rowtitle { font-weight: 600; display: block; }
.rowchips { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: var(--sp-4) 0; }
.rowchips .badge { white-space: normal; min-width: 0; }
.rowmeta { display: block; color: var(--ink-muted); font-size: var(--fs-small); }
[aria-expanded="true"] > .arrow > .when-closed, [aria-expanded="false"] > .arrow > .when-open { display: none; }
.rowopen .arrow { color: var(--coral-text); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.uses { display: none; padding: 0 var(--sp-12) var(--sp-8) var(--sp-48); font-size: var(--fs-small); margin: 0; }
.rowcard:has([data-pick-row]:checked) .uses { display: block; }
/* What just happened, or the next step, scrolled into view below the top bar. */
[data-card-body] > .flash, [data-card-body] > .error, .check-out, .rowcard.stub { scroll-margin-top: calc(5rem + env(safe-area-inset-top)); }
.rowcard.stub { background: var(--success-soft); border-color: var(--success); }
.stubline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8); padding: var(--sp-4) var(--sp-12); }
.stubline span { flex: 1 1 14rem; }
.openlink { display: inline-flex; align-items: center; min-height: var(--tap); }
.cardbody { padding: 0 var(--sp-12) var(--sp-12); display: grid; gap: var(--sp-8); min-width: 0; }
.card-top { display: grid; gap: var(--sp-12); min-width: 0; }
.card-top.has-pv { grid-template-columns: auto minmax(0, 1fr); }
/* A wide video gets a wide player, above its details on a phone. */
.card-top.has-pv:has(.landscape) { grid-template-columns: minmax(0, 1fr); }
.pv-card.landscape { width: min(320px, 100%); }
.pv-card.landscape .pv-btn img, .pv-card.landscape .pv-video { aspect-ratio: 16 / 9; }
.history-fold .draft-old { border-top: 1px solid var(--hairline); padding: var(--sp-8) 0; display: grid; gap: var(--sp-4); }
.about { display: grid; gap: var(--sp-8); min-width: 0; align-content: start; }
.about dl { margin: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.platform-tabs { margin: 0; border-top: 1px solid var(--hairline); padding-top: var(--sp-8); gap: var(--sp-4); }
.platform-tabs button { flex-direction: column; align-items: flex-start; border-radius: var(--r-md); padding: var(--sp-4) var(--sp-12); line-height: 1.25; gap: 0; }
.platform-tabs button .st { font-size: var(--fs-eyebrow); font-weight: 400; color: var(--ink-muted); }
.platform-tabs button .st.bad { color: var(--danger); }
.platform-panel { min-width: 0; }
.draft { min-width: 0; }
.draft > p { margin: 0; }
.acts { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: flex-start; }
.acts > form { margin: 0; }
.acts .button, .acts > form > button { width: 100%; }
.acts > .act { flex: 0 1 auto; min-width: 0; }
.acts > .act > summary { list-style: none; }
.acts > .act > summary::-webkit-details-marker { display: none; }
.acts > .act[open] { flex: 1 1 100%; }
.act > summary.button { display: inline-flex; min-height: var(--tap); margin: 0; color: var(--ink); }
.act > summary.button.primary { color: var(--on-coral); }
.more[open].act > summary { margin-bottom: var(--sp-4); }
.acts > .act[open] > summary.button { width: auto; } /* Open, it says Cancel, only as wide as that word, so it can't be taken for the button that sends. */
.actbox { border: 1px solid var(--edge); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); }
.actbox, .error[data-said], #cal-root > .flash, #cal-root > .error, #cal-root [data-upload] { scroll-margin-top: calc(5rem + env(safe-area-inset-top)); }
.actbox, .actbox button { scroll-margin-bottom: 1rem; }
.sched { border-top: 1px solid var(--hairline); padding-top: var(--sp-4); }
.platform-settings.off > summary { color: var(--ink-muted); }
.bulkbox { border: 1px solid var(--champagne); border-radius: var(--r-lg); padding: var(--sp-12); margin: 0 0 var(--sp-12); display: grid; gap: var(--sp-8); background: var(--surface); }
.bulkbox h2 { margin: 0; }
.pinned { border: 1px solid var(--champagne); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-8); margin: 0 0 var(--sp-8); }
.pinned > p { margin: 0 0 var(--sp-4); }
.needs-group h3 { margin: 0; }
main[aria-busy] { opacity: .75; }
/* Desktop sizes (Gabe, Nov 6, 2026). The 13px desktop text is gone, so a device with a mouse has its original sizes again: 16px text,
   44px controls, 26px page titles, a 230px side menu. These hold the original values where a phone's differ, and none of them reaches a phone. */
@media (hover: hover) and (pointer: fine) { .stage-page h1 { font-size: var(--fs-heading); } }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .shell { grid-template-columns: 230px 1fr; }
  .side { top: 61px; height: calc(100vh - 61px); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1300px) { .tray { top: 72px; max-height: calc(100vh - 88px); } }
/* The Calendar's side panel is 300px wide, too narrow for a video's picture beside its details at 16px text, so the picture goes above them. */
@media (min-width: 1300px) { .tray .card-top.has-pv, .tray .card-top.has-pv:has(.landscape) { grid-template-columns: minmax(0, 1fr); } }
@media (hover: hover) { .rowopen:hover { background: var(--hover); } }
@media (min-width: 620px) {
  .modechip { display: inline-flex; align-items: center; min-height: var(--tap); }
  .tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-12); }
  .chk-grid { display: flex; flex-wrap: wrap; }
  .chk .n { margin-left: var(--sp-4); }
  .ddrow { flex-wrap: wrap; }
  .ddrow .dd { flex: 0 1 auto; }
  .narrow-only { display: none; }
  .wide-only { display: inline; }
  .stage-page nav.seg a { padding: 0 var(--sp-12); }
  .card-top.has-pv:has(.landscape) { grid-template-columns: auto minmax(0, 1fr); }
}
/* On a phone a long choice wraps to two lines instead of being cut off. */
@media (max-width: 619px) { .dd-text { white-space: normal; overflow-wrap: anywhere; } main:has(.stage-page) { padding-top: var(--sp-8); } .group-head { margin-top: var(--sp-4); } }
@media (max-width: 374px) { label.dd, .ddbtn { font-size: var(--fs-small); padding: 0 var(--sp-16) 0 var(--sp-4); background-position: right .35rem center; } }
@media (max-width: 332px) { .ddrow { flex-wrap: wrap; } .chk, label.chk { white-space: normal; } .chk-grid { grid-template-columns: minmax(0, 1fr); } .head-tools { margin-left: 0; } }

/* The shared filters (Gabe, Nov 6, 2026): a compact button that shows its selection, opening a checklist over the page, so the list doesn't move. */
.fbar { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin: 0 0 var(--sp-8); }
.fwrap { position: static; min-width: 0; }
.fwrap > summary { list-style: none; }
.fwrap > summary::-webkit-details-marker { display: none; }
.fbtn { display: grid; justify-items: start; align-content: center; min-height: var(--tap); padding: var(--sp-4) var(--sp-8); background: var(--surface-sunk); color: var(--ink); border: 1px solid var(--edge); border-radius: var(--r-md); line-height: 1.2; cursor: pointer; }
.fbtn .flabel { font-size: var(--fs-eyebrow); color: var(--ink-muted); white-space: nowrap; }
.fbtn .fval { font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fbtn.on { border-color: var(--champagne); background: var(--selected); }
.fbtn.on .fval { color: var(--ink); font-weight: 600; }
.fwrap[open] > .fbtn { border-color: var(--champagne-text); }
.fbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.freset { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: var(--sp-4) var(--sp-8); border: 1px solid var(--edge); border-radius: var(--r-md); font-size: var(--fs-small); }
.fpanel { position: absolute; left: 0; right: 0; top: calc(100% + .25rem); z-index: 6; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: var(--sp-8); display: grid; gap: var(--sp-4); }
.fpanel-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); border-bottom: 1px solid var(--hairline); padding-bottom: var(--sp-4); }
.fpanel-top b { margin-right: auto; padding-left: var(--sp-4); }
button.ftext { background: transparent; color: var(--coral-text); border: 0; font-weight: 400; padding: var(--sp-4) var(--sp-8); min-width: var(--tap); }
.fwrap:not([open]) > .fpanel { display: none; }
.fopts { max-height: calc(8 * var(--tap)); overflow-y: auto; overscroll-behavior: contain; display: grid; }
.fopt, label.fopt { display: flex; align-items: center; gap: var(--sp-8); min-height: var(--tap); padding: 0 var(--sp-8); font-weight: 400; border-radius: var(--r-sm); cursor: pointer; line-height: 1.2; }
.fopt input[type="checkbox"] { width: 1.2rem; height: 1.2rem; }
.fopt .n { margin-left: auto; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.fgroup { color: var(--ink-muted); font-size: var(--fs-small); padding: var(--sp-8) var(--sp-8) 0; }
@media (hover: hover) { .fbtn:hover { background: var(--hover); border-color: var(--ink); } .fopt:hover { background: var(--hover); } button.ftext:hover { background: var(--hover); } }
@media (min-width: 640px) {
  .fbar { display: flex; flex-wrap: wrap; }
  .fwrap { position: relative; flex: 0 1 auto; }
  .fbtn { min-width: 6.4rem; max-width: 11rem; }
  .fpanel { right: auto; width: 21rem; }
  .fwrap:nth-child(n+4) .fpanel { left: auto; right: 0; }
}
.series-line { align-items: flex-end; margin: 0; }
.series-line .grow { flex: 1 1 14rem; }
.series-note { display: block; }
.viewtabs { margin-bottom: var(--sp-8); }
.stage-page nav.seg.viewtabs a { justify-content: center; }
table.plain-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.plain-table th, .plain-table td { text-align: left; padding: var(--sp-8) var(--sp-8); border-bottom: 1px solid var(--hairline); vertical-align: top; }
.plain-table th { color: var(--ink-muted); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.plain-table td.nw, .plain-table th.nw { white-space: nowrap; }
.plain-table td:not(.nw) > .badge { display: inline-block; white-space: normal; border-radius: var(--r-md); }
.episode.card { margin-bottom: var(--sp-8); }
.plain-table { overflow-wrap: normal; }
.platform-cell { min-width: 5.5rem; white-space: nowrap; }
.perf-tabs a[aria-current] { background: var(--selected); color: var(--ink); border-color: var(--champagne); }
.perf-menu { position: relative; margin: 0 0 var(--sp-8); }
.perf-menu > .fbtn { width: 100%; }
.perf-menu .fopt { color: var(--ink); text-decoration: none; }
.perf-menu .fopt[aria-current] { color: var(--ink); font-weight: 600; }
.wide-tabs { display: none; }
@media (min-width: 900px) { .wide-tabs { display: flex; } .perf-menu { display: none; } }

/* Less-used table columns hide on a phone, so Scorecards, By series, and Reports fit without sideways scrolling (Gabe, Nov 7, 2026). Each post's own
   scorecard still shows every number. */
@media (max-width: 599px) { .col-wide { display: none; } }
.narrow-table-note { display: none; }
@media (max-width: 599px) { .narrow-table-note { display: block; } }
/* A screen recording of ChatGPT on a series episode (Gabe, Nov 7, 2026): the recording, its answer, and the footage to pick from. */
.recording { border-top: 1px solid var(--hairline); padding-top: var(--sp-16); }
.recording .name { overflow-wrap: anywhere; }
/* The ChatGPT check on an episode, before its approve button, with the line it quoted from ChatGPT's answer. */
.chatgpt-check { border-top: 1px solid var(--hairline); padding-top: var(--sp-16); }
.chatgpt-check blockquote { margin: 0; padding-left: var(--sp-12); border-left: 2px solid var(--hairline); overflow-wrap: anywhere; }
.chatgpt-check ul { margin: 0; padding-left: var(--sp-16); }
label.recpick { align-items: center; padding: var(--sp-4) 0; }
.recpick .recname { display: grid; gap: 0; min-width: 0; overflow-wrap: anywhere; }
.recpick .mini { flex: none; }

/* The Performance dashboard (Gabe's approved redesign, Nov 7, 2026). One column on a phone; on a desktop it widens to 1040px, with Working best and least side by side.
   The four line colors are the chart's only colors beyond the Kloü ones, and each line is also named in the key, the hover, and the table. */
.perf-dash { max-width: 1040px; margin: 0 auto; }
.perf-dash > .card, .perf-dash > .pair, .perf-dash > .tiles { margin-bottom: var(--sp-16); }
.perf-filters { margin-bottom: var(--sp-12); }
.fchoice .fopt { color: var(--ink); text-decoration: none; }
.fchoice .fopt[aria-current] { color: var(--ink); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-12) var(--sp-16); display: grid; align-content: start; gap: var(--sp-4); min-width: 0; }
.tile .k { font-size: var(--fs-small); color: var(--ink-muted); }
.tile .v { font-size: var(--fs-heading); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .v .muted { font-size: var(--fs-body); font-weight: 400; }
.chg { font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.chg.up { color: var(--success); }
.chg.down { color: var(--danger); }
.chg.flat { color: var(--ink-muted); }
.perf-chart .seg a { padding: var(--sp-4) var(--sp-12); font-size: var(--fs-small); }
.chart-key { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-16); font-size: var(--fs-small); }
.chart-key span { display: inline-flex; align-items: center; gap: var(--sp-8); }
/* Chart lines: brand colors, each with its own dash pattern, and always a name beside it, so color is never the only signal. */
.sw { display: inline-block; width: 1.5rem; height: .375rem; flex: none; overflow: visible; }
.ln-1 { color: var(--ink); }
.ln-2 { color: var(--coral); }
.ln-3 { color: var(--champagne-text); }
.ln-4 { color: var(--ink-muted); }
.ln-2 line { stroke-dasharray: 6 4; }
.ln-3 line { stroke-dasharray: .5 5; stroke-width: 2.5; }
.ln-4 line { stroke-dasharray: 10 4 2 4; }
.chartbox { position: relative; border-radius: var(--r-md); }
.chartbox:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.chartbox svg { display: block; overflow: visible; font-variant-numeric: tabular-nums; }
.chartbox circle { stroke: var(--surface); stroke-width: 2; }
.chartbox circle.light { opacity: .55; }
.chartbox .hit { fill: transparent; pointer-events: all; cursor: crosshair; }
.chartbox .cross { visibility: hidden; }
.chartbox .cross.on { visibility: visible; }
.tip { position: absolute; top: .5rem; z-index: 3; min-width: 12rem; max-width: min(18rem, 80%); background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); font-size: var(--fs-small); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-pop); pointer-events: none; }
.tip-right { right: .25rem; }
.tip-left { left: .25rem; }
.tip p { margin: 0; }
.tip-head { font-weight: 600; margin-bottom: var(--sp-4); }
.tip ul { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: var(--sp-4); }
.tip li { display: grid; grid-template-columns: .75rem minmax(0, 1fr) auto; gap: var(--sp-8); align-items: center; }
.tip-v { text-align: right; white-space: nowrap; }
.pair { display: grid; gap: var(--sp-16); }
.pair > .card { margin: 0; min-width: 0; }
@media (min-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
ol.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
ol.rank a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-12); align-items: center; padding: var(--sp-8) var(--sp-4); border-radius: var(--r-md); color: var(--ink); text-decoration: none; min-height: var(--tap); }
ol.rank a.has-pic { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
/* A post with no stored picture shows none, rather than an empty box (ui-standards: never a blank box). */
.rank-pic { width: 2.6rem; aspect-ratio: 9 / 16; border-radius: var(--r-sm); border: 1px solid var(--hairline); overflow: hidden; background: var(--surface-sunk); }
.rank-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rank-main { display: grid; min-width: 0; }
.rank-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) { ol.rank a:hover { background: var(--hover); } .rank a:hover .rank-title { text-decoration: underline; } }
.plain-table th.num, .plain-table td.num { text-align: right; }
.plain-table th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.plain-table th.num a { justify-content: flex-end; text-align: right; }
.plain-table th[aria-sort] a { color: var(--coral-text); }
@media (hover: hover) { .plain-table th a:hover { text-decoration: underline; } }
.chart-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.chart-rows li { display: flex; justify-content: space-between; gap: var(--sp-12); }
.phone-only { display: none; }
@media (max-width: 599px) { .phone-only { display: inline; } }
/* Tag decisions (Gabe, Nov 7, 2026): each choice names what it saves, with its one line beside it on a wide screen and under it on a phone. */
.tagdec { display: grid; gap: var(--sp-12); margin-top: var(--sp-8); min-width: 0; }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.choices > li { display: grid; gap: var(--sp-4) var(--sp-12); align-items: center; min-width: 0; }
.choices > li > p { margin: 0; font-size: var(--fs-small); overflow-wrap: anywhere; }
.choices form { margin: 0; }
.choices > li > form > button, .choices > li > details > summary.button { width: 100%; overflow-wrap: anywhere; }
.choices .act[open] > summary.button { width: auto; }
@media (min-width: 620px) {
  .choices > li { grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr); }
  .choices > li:has(details[open]) { grid-template-columns: minmax(0, 1fr); }
}
.tags .tagdec + p, .tags details.more { margin: 0; }
/* A conflict's moments: the clip, where it plays from, and Replay. */
.clips { display: flex; flex-wrap: wrap; gap: var(--sp-12) var(--sp-16); }
.clip { display: grid; gap: var(--sp-4); width: 15rem; max-width: 100%; align-content: start; min-width: 0; }
.clip .pv-card { width: 135px; }
.clip .pv-failed.pv-card { width: 100%; max-width: 15rem; }
.clip-name, .clip-note, .clip-none > p { margin: 0; font-size: var(--fs-small); }
.clip-name a { display: inline-flex; align-items: center; min-height: var(--tap); }
.pv-again { margin: var(--sp-4) 0 0; }
#tag-decided { scroll-margin-top: calc(5rem + env(safe-area-inset-top)); }
/* A link to one tag, or to the tags, opens it below the top bar. */
.tags > li[id], .decision[id], #tags { scroll-margin-top: calc(5rem + env(safe-area-inset-top)); }

/* Phase 11's launch screens (mockup approved Nov 7, 2026): the Launch checklist and the Full-volume test. */
.show-filter { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: var(--sp-12) 0 var(--sp-16); }
.show-filter a { display: inline-flex; align-items: center; gap: var(--sp-4); min-height: var(--tap); padding: var(--sp-4) var(--sp-12); border: 1px solid var(--edge); border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.show-filter a[aria-current] { background: var(--selected); color: var(--ink); border-color: var(--champagne); font-weight: 600; }
.launch-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.launch-list > li + li { border-top: 1px solid var(--hairline); }
.launch-list > li { padding: var(--sp-8) var(--sp-12); }
.launch-item summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-12); align-items: center; min-height: var(--tap); cursor: pointer; list-style: none; }
.launch-item summary::-webkit-details-marker { display: none; }
.launch-item dl { margin: 0; padding: 0 0 var(--sp-4); display: grid; gap: var(--sp-4); }
.launch-item dt { color: var(--ink-muted); font-size: var(--fs-small); margin-top: var(--sp-4); }
.launch-item dd { margin: 0; max-width: 65ch; }
.tile .v.small-v { font-size: var(--fs-subhead); }
.slotrow { display: grid; gap: var(--sp-8); padding-bottom: var(--sp-12); border-bottom: 1px solid var(--hairline); }
.slotrow:last-of-type { border-bottom: 0; }
.boxes { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); }
.box { width: 28px; height: 28px; border-radius: var(--r-sm); border: 1px solid var(--edge); display: grid; place-items: center; font-size: var(--fs-eyebrow); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.box.filled { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
.scrollx { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); }
.day-svg { display: block; min-width: 520px; }
.day-svg .lane-name { color: var(--ink); }
.day-svg .rule { color: var(--hairline); }
.day-svg .trial { color: var(--ink-muted); }
.day-svg .main { color: var(--champagne-text); }
dl.facts { margin: 0; }
@media (hover: hover) { .show-filter a:not([aria-current]):hover, .launch-list > li:hover { background: var(--hover); } }
.nums { font-variant-numeric: tabular-nums; }
.scrollx-plain { overflow-x: auto; }
@media (min-width: 600px) { .fourfields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .fourfields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Phase 12, photos and carousels. Videos or Photos on the Upload page: two links that look like one switch. */
.upload-kind { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--r-md); overflow: hidden; margin: 0 0 var(--sp-16); }
.upload-kind a { display: inline-flex; align-items: center; min-height: var(--tap); padding: var(--sp-8) var(--sp-16); color: var(--ink); text-decoration: none; font-weight: 600; }
.upload-kind a[aria-current="page"] { background: var(--selected); color: var(--ink); }
@media (hover: hover) { .upload-kind a:not([aria-current]):hover { background: var(--hover); } }
.uploads .state.too-small { color: var(--champagne-text); }
/* Library photos: the photo's own shape, 4:5 like an Instagram slide. */
.library.photo-grid .photo-pic { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); background: var(--surface-sunk); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.library.photo-grid { margin-top: var(--sp-12); }
/* A HEIC from a Mac waits for its picture, made with the posting copies; it says so in the box (photo-pages.js). */
.library.photo-grid .photo-wait { border: 1px dashed var(--edge); text-align: center; padding: var(--sp-8); }
.photo-full { display: block; width: auto; max-width: 100%; height: auto; max-height: 70vh; border-radius: var(--r-md); background: #000; margin: 0 0 var(--sp-8); }
/* One carousel slide in the shared viewer: the whole picture, never cropped, never wider than the screen. */
.slide-pic { display: block; width: auto; max-width: 100%; height: auto; max-height: 70vh; margin: 0 auto; border-radius: var(--r-md); background: #000; }

/* A decided proposal folds into one line and opens again (Nov 12, 2026). */
details.decided-proposal > summary { cursor: pointer; list-style: none; min-height: 44px; align-items: center; }
details.decided-proposal > summary::-webkit-details-marker { display: none; }
details.decided-proposal[open] > summary .muted { display: none; }
details.decided-proposal > .stack { margin-top: var(--sp-8); }

/* Every page uses the desktop layout on a desktop (Gabe, Nov 12, 2026: "every view must use the desktop layout"). Before, only Creation
   Studio, Review & Publish, the Calendar, and the Performance dashboard did, and the rest stayed in a phone-width column. Running text and
   form fields keep a readable line length inside the wider page. */
@media (min-width: 900px) {
  main { max-width: 78rem; margin: 0; }
  main.wide { max-width: none; }
  main :is(p, dd, .notice, .flash, .error):not(td *, th *) { max-width: 75ch; }
  main form label:not(.fopt, .check, .chk) { max-width: 40rem; }
  /* Library search results fill the width in columns instead of one long column. */
  main .results { grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); }
}
/* Source footage in a pop-up (app/public/footage-pop.js): centered over the page, which stays where it was. */
.fpop { width: min(36rem, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow-y: auto; overflow-x: hidden; }
.fpop::backdrop { background: var(--backdrop); }
.fpop-in { display: grid; gap: var(--sp-8); padding: var(--sp-16); min-width: 0; overflow-wrap: anywhere; }
.fpop-title { margin: 0; }
.fpop-why { margin: 0; }
.fpop-video { display: block; max-height: min(70vh, calc(100dvh - 17rem)); margin: 0; }
.fpop-none { margin: 0; }
.fpop-acts { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: 0; }
.fpop-acts > * { flex: 1 1 auto; padding-inline: var(--sp-8); white-space: nowrap; }

/* Ideation redesign (Gabe, Nov 12, 2026): Add Ideas with the microphone inside the box, the writer, and Proposals, Approved, and Rejected
   as rows that open in place, with decided buttons that stay pressed until he refreshes or leaves. */
.viewtabs .n { display: inline-block; min-width: 1.4rem; margin-left: var(--sp-4); padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--hairline); font-size: var(--fs-eyebrow); color: var(--ink-muted); }
.idea-input { position: relative; }
.idea-input textarea { width: 100%; padding-right: var(--sp-64); }
.idea-mic { position: absolute; right: .45rem; bottom: .55rem; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); }
.writer-box h2 { margin: 0; }
.proposal-row { padding: 0; }
.proposal-row > summary { list-style: none; cursor: pointer; padding: var(--sp-12) var(--sp-16); min-height: var(--tap); }
.proposal-row > summary::-webkit-details-marker { display: none; }
.proposal-row > .stack { padding: var(--sp-12) var(--sp-16) var(--sp-16); border-top: 1px solid var(--hairline); }
.proposal-head { display: flex; gap: var(--sp-12); align-items: flex-start; }
.proposal-head .grow { display: grid; gap: var(--sp-4); min-width: 0; }
.proposal-chips { flex-wrap: wrap; gap: var(--sp-4); }
.open-word { color: var(--coral-text); font-weight: 600; white-space: nowrap; }
.proposal-row[open] .open-word .when-closed, .proposal-row:not([open]) .open-word .when-open { display: none; }
.decided-btn { cursor: default; pointer-events: none; }
.decided-btn.is-ok { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.decided-btn.is-red { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.pending-line { margin: 0; }
.selbar { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; justify-content: space-between; padding: var(--sp-8) var(--sp-12); border: 1px solid var(--hairline); border-radius: var(--r-md); margin: 0 0 var(--sp-8); }
.tick-line { display: flex; gap: var(--sp-8); align-items: center; min-height: var(--tap); }
.tick-line input, .proposal-select > .row-select { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.proposal-select { display: flex; gap: var(--sp-8); align-items: flex-start; }
.proposal-select > .row-select { margin-top: var(--sp-16); }
.proposal-select > .proposal-row { flex: 1; min-width: 0; }
.confirm-box { border-color: var(--danger); }
/* Issues (redesign) */
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue { display: grid; gap: var(--sp-4); padding: var(--sp-12) 0; border-bottom: 1px solid var(--hairline); min-width: 0; }
.issue:first-child { padding-top: 0; }
.issue:last-child { border-bottom: 0; padding-bottom: 0; }
.issue p { margin: 0; }
.issue-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-8) var(--sp-12); }
.issue-go { margin-top: var(--sp-4); }
/* Upload duplicates pop-up (redesign) (app/public/upload.js, Gabe, Nov 12, 2026). Built on the footage pop-up (.fpop): centered, inside
   the window at any width. The X sits at the top left and stays in view while the pop-up scrolls. The list scrolls after 5 rows: every row
   is one 44px-plus link with two single lines, so 5 rows are always the same height. */
.dupd-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: var(--sp-8); margin: calc(-1 * var(--sp-16)) calc(-1 * var(--sp-16)) 0; padding: var(--sp-8) var(--sp-8);
  background: var(--surface); border-bottom: 1px solid var(--hairline); }
.dupd-top h2 { margin: 0; font-size: var(--fs-body); }
.dupd-x { flex: none; width: var(--tap); min-width: var(--tap); height: var(--tap); padding: 0; border-radius: var(--r-pill); border: 1px solid var(--edge);
  background: transparent; color: var(--ink); font-size: var(--fs-subhead); line-height: 1; }
.dupd-list { --dupd-row: calc(2 * var(--sp-4) + 1.3rem + 1.1375rem + 1px); list-style: none; margin: 0; padding: 0 var(--sp-12); border: 1px solid var(--hairline);
  border-radius: var(--r-md); max-height: calc(5 * var(--dupd-row) + 2px); overflow-y: auto; overscroll-behavior: contain; }
.dupd-list li { border-bottom: 1px solid var(--hairline); }
.dupd-list li:last-child { border-bottom: 0; }
.dupd-list a { display: grid; align-content: center; min-height: var(--tap); padding: var(--sp-4) 0; line-height: 1.3; text-decoration: none; }
.dupd-name, .dupd-where { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dupd-name { text-decoration: underline; text-underline-offset: 2px; }
.dupd-where { color: var(--ink-muted); font-size: var(--fs-small); }
.dupd-err { margin: 0; }
.dupd-done:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dupd-list a:focus-visible { outline-offset: -2px; }
/* Directory matching (redesign): one entry's accounts (app/web/directory-match.js). Confirm and Reject, then a clear Confirmed or
   Rejected line with Change. Each handle opens the account itself in a new window. */
.dmatch { display: grid; gap: var(--sp-8); }
.dmatch-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); }
.dmatch-name { margin: 0; font-size: var(--fs-subhead); }
.dmatch-plats { margin: 0; }
.dmatch-list { display: grid; gap: var(--sp-8); }
.dmatch-cand { display: grid; gap: var(--sp-8); padding: var(--sp-8) var(--sp-12); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); min-width: 0; }
.dmatch-cand.dmatch-yes { border: 2px solid var(--success); background: var(--success-soft); }
.dmatch-cand.dmatch-no { border-color: var(--danger); }
.dmatch-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-8); }
.dmatch-handle { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; word-break: break-all; }
.dmatch-info { margin: 0; }
.dmatch-state { margin: 0; font-weight: 700; font-size: var(--fs-body); }
.dmatch-state-ok { color: var(--success); }
.dmatch-state-no { color: var(--danger); }
.dmatch-acts form { margin: 0; }
/* Brand Rules pop-ups (redesign) */
/* Review N Rules and View Brand Book (app/public/brand-dialogs.js): centered, an X at the top left, a part that scrolls, and a footer that stays in view. */
.bdlg { width: min(38rem, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.bdlg[open] { display: flex; }
.bdlg::backdrop { background: var(--backdrop); }
.bdlg-in { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; min-width: 0; width: 100%; margin: 0; }
.bdlg-top { flex: none; display: flex; align-items: center; gap: var(--sp-8); padding: var(--sp-8) var(--sp-16) var(--sp-8) var(--sp-8); border-bottom: 1px solid var(--hairline); }
.bdlg-top h2 { margin: 0; font-size: var(--fs-body); min-width: 0; overflow-wrap: anywhere; }
.bdlg-x { flex: none; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); border: 1px solid var(--edge); font-size: var(--fs-subhead); line-height: 1; }
.bdlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-16); display: grid; gap: var(--sp-12); align-content: start; overflow-wrap: anywhere; }
.bdlg-body > * { margin: 0; }
.bdlg-foot { flex: none; display: grid; gap: var(--sp-8); padding: var(--sp-12) var(--sp-16); padding-bottom: max(var(--sp-12), env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: var(--surface); }
.bdlg-foot .row > * { flex: 1 1 auto; }
.bdlg-count { margin: 0; }
.bdlg-count:empty { display: none; }
.bdlg-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.bdlg-rule { display: grid; gap: var(--sp-8); padding: var(--sp-12); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--paper); }
.bdlg-rule > * { margin: 0; }
.bdlg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-8); }
.bdlg-quote { margin: 0; padding-left: var(--sp-12); border-left: 2px solid var(--champagne); }
.bdlg-quote p { margin: 0; }
.bdlg-where { font-size: var(--fs-small); }
.bdlg-doc { margin: 0; padding: var(--sp-16); border-radius: var(--r-md); background: var(--surface-sunk); color: var(--ink); font: inherit; font-size: var(--fs-body); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.bdlg-status > p, .bdlg-replace > p { margin: 0; }
.bdlg-replace:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Creation Studio redesign (Gabe, Nov 12, 2026): what an item needs from him, said first; Ready to Draft with Draft Now; Move Back and Reject. */
.needs-line { background: var(--blush); border: 1px solid var(--champagne); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-12); }
.needs-line strong { color: var(--ink); }
.ready-line { background: var(--success-soft); border: 1px solid var(--success); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-12); }
.ready-line strong { color: var(--success); }
.move-back { border-top: 1px solid var(--hairline); padding-top: var(--sp-12); margin-top: var(--sp-4); }

/* Review & Publish Edit: a change he asked for, made and marked Fixed (Gabe, Nov 12, 2026). */
.fixed-line { border: 1px solid var(--success); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-12); background: var(--success-soft); }

/* Library notes (Gabe, Nov 12, 2026): the note box at the top, a note on each clip that has one, and Select on each clip. */
.notes-box { border-color: var(--champagne); }
.note-chips { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.note-chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-8); border-radius: var(--r-pill); border: 1px solid var(--champagne); color: var(--champagne-text); font-size: var(--fs-eyebrow); font-weight: 600; text-decoration: none; }
.note-pick { display: inline-flex; align-items: center; gap: var(--sp-8); min-height: var(--tap); }
.note-pick input { width: 22px; height: 22px; accent-color: var(--ink); }
/* Creation Studio inputs (redesign) */
/* The voiceover box and the video needs box (app/web/needs-pages.js, app/public/voiceover.js and needs.js, Gabe, Nov 12, 2026). The recording
   state reuses the voice memo's (.memo-live, .memo-dot, .memo-level, .memo-stop); the Already Uploaded pop-up reuses the Brand Rules pop-up (.bdlg). */
.vo-box, .needs-box { min-width: 0; overflow-wrap: anywhere; }
.vo-box > *, .needs-box > * { margin: 0; }
.vo-lead, .needs-lead { color: var(--champagne-text); }
.vo-script { display: grid; gap: var(--sp-8); padding: var(--sp-12) var(--sp-16); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--paper); max-width: 46rem; }
.vo-script > * { margin: 0; }
.vo-h { font-size: var(--fs-small); font-weight: 600; color: var(--ink-muted); }
.vo-how { margin: 0; padding-left: var(--sp-16); display: grid; gap: var(--sp-4); max-width: 46rem; }
.vo-saved, .vo-take { gap: var(--sp-8); }
.vo-said { margin: 0; }
.vo-audio { display: block; width: 100%; max-width: 30rem; min-height: var(--tap); }
.vo-acts, .needs-acts { max-width: 46rem; }
.vo-acts > * { flex: 1 1 auto; }
.vo-big { min-height: calc(var(--tap) + 8px); font-size: var(--fs-body); }
.vo-adding { margin: 0; }
.vo-again { padding: var(--sp-12); border: 1px solid var(--danger); border-radius: var(--r-md); gap: var(--sp-8); }
.vo-again > p { margin: 0; }
.needs-ask { max-width: 46rem; }
.needs-acts > * { flex: 1 1 auto; }
.needs-edit { max-width: 46rem; }
.needs-note { display: inline-block; padding: 0 var(--sp-8); border: 1px dotted var(--champagne-text); border-radius: var(--r-pill); color: var(--champagne-text); }
.needs-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--sp-8); }
.needs-tile { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-8); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--paper); min-width: 0; overflow-wrap: anywhere; }
.needs-tile.on { border: 2px solid var(--champagne); background: var(--blush); }
.needs-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-sunk); }
.needs-thumb-blank { display: block; background: var(--hairline); }
.needs-name { font-weight: 600; }
.needs-meta { font-size: var(--fs-small); }
.needs-tile button { width: 100%; }
@media (max-width: 480px) { .needs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The entry name in Accounts to Confirm is a full-size tap target on a phone. */
.dmatch-name a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Home (Gabe, Nov 12, 2026): the Library card with the Free Daily Limit, and Waiting for You, by type. */
.home-library .daily-limit { gap: var(--sp-4); }
.limit-bar { height: 8px; border-radius: var(--r-pill); background: var(--hairline); overflow: hidden; }
.limit-bar > span { display: block; height: 100%; background: var(--ink); }
.home-waiting > h2 { margin-bottom: 0; }
.home-group > .row h2 { margin: var(--sp-8) 0 var(--sp-8); font-size: var(--fs-body); }
.home-group > .row > a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-4); }

/* Calendar (redesign): the side list's reasons and Change the ... Limit buttons, Place It Anyway, Time-Sensitive posts, How Posts Are
   Placed, Post Now's upload progress, and Settings' Blocker highlight when arriving from the Calendar (Gabe, Nov 12, 2026). */
.cal-why { list-style: none; margin: 0; padding: 0 0 0 var(--sp-4); display: grid; gap: var(--sp-8); }
.cal-why li { display: grid; gap: var(--sp-4); justify-items: start; }
.cal-blocker { min-height: var(--tap); }
.cal-ask { background: var(--blush); border: 1px solid var(--champagne); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-16); margin: 0 0 var(--sp-12); display: grid; gap: var(--sp-8); scroll-margin-top: calc(5rem + env(safe-area-inset-top)); }
.cal-ask p { margin: 0; }
.cal-ask form { margin: 0; }
.chip.ts { border-style: dashed; }
.cal-ts { display: block; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .02em; color: var(--champagne-text); }
.badge.cal-ts-badge { border: 1px dashed var(--champagne); color: var(--champagne-text); }
.cal-how { margin-top: var(--sp-16); }
.cal-how summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 600; }
.cal-how ul { margin: var(--sp-8) 0 0; padding-left: var(--sp-16); display: grid; gap: var(--sp-4); }
.cal-upload { gap: var(--sp-8); }
.cal-upload p { margin: 0; }
#limits label.blocker-on { background: var(--selected); outline: 1px solid var(--ink); border-radius: var(--r-md); padding: var(--sp-8); }
/* Phase 12, stills for a carousel on a video's page: each moment, then its sharpest frames side by side, whole and uncropped. */
.still-moments, .still-frames { list-style: none; margin: 0; padding: 0; }
.still-moment { display: grid; gap: var(--sp-8); padding: var(--sp-12) 0; border-top: 1px solid var(--hairline); }
.still-moment p { margin: 0; }
.still-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8); }
.still-frame { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; font-size: var(--fs-small); }
.still-frame img { width: 100%; height: auto; border-radius: var(--r-md); background: #000; display: block; }
.still-missing { display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 16; border: 1px dashed var(--edge); border-radius: var(--r-md); color: var(--ink-muted); text-align: center; padding: var(--sp-4); }
/* Phase 12, carousels. A slide's picture in a platform's shape, cropped by class (inline styles are blocked), with the cover line on it. */
.carousel-shot { position: relative; overflow: hidden; border-radius: var(--r-md); background: #000; width: 100%; max-width: 360px; margin-inline: auto; }
.carousel-shot.ratio-instagram { aspect-ratio: 4 / 5; }
.carousel-shot.ratio-tiktok { aspect-ratio: 9 / 16; }
.carousel-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-shot img.focus-top { object-position: center top; }
.carousel-shot img.focus-center { object-position: center center; }
.carousel-shot img.focus-bottom { object-position: center bottom; }
.carousel-cover { position: absolute; left: 8%; right: 8%; bottom: 12%; margin: 0; color: #fff; font-weight: 600; text-align: center; line-height: 1.25; font-size: var(--fs-subhead); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
.carousel-nopic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--sp-12); text-align: center; color: var(--ink-muted); border: 1px dashed var(--edge); border-radius: var(--r-md); }
.slide-tools { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); max-width: 420px; width: 100%; margin-inline: auto; }
.slide-tools form { margin: 0; }
.slide-tools form:has(select), .slide-tools form:last-child { grid-column: 1 / -1; }
.slide-tools button { width: 100%; }
.slide-tools select { flex: 1; min-width: 0; }
.carousel-line { margin: 0 0 var(--sp-16); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
/* The carousel photo picker: a fixed 4:5 frame the photo fills without stretching (cropped, never squeezed), then the checkbox and name
   on their own row. Not label.check, whose flex row squeezed the picture and stood the name on end (Gabe, Nov 14, 2026). */
.photo-choice { display: grid; gap: var(--sp-4); align-content: start; cursor: pointer; font-weight: 400; }
.photo-choice-pic { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--surface-sunk); }
.library .photo-choice-pic img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.photo-choice-pic .carousel-nopic { border-radius: var(--r-md); font-size: var(--fs-eyebrow); }
.library.photo-choices { grid-template-columns: repeat(auto-fill, minmax(min(150px, 40%), 1fr)); }
.photo-choice-row { display: flex; align-items: center; gap: var(--sp-8); min-height: var(--tap); }
.photo-choice:has(input:checked) .photo-choice-pic { outline: 3px solid var(--ink); outline-offset: -3px; }
.two-up { display: grid; gap: var(--sp-16); }
@media (min-width: 900px) { .two-up { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; } }

/* The Directory page (Gabe approved the mockup Nov 15, 2026): search first, status and kind pills with counts, letters to jump,
   Need You, then every entry A to Z, each opening in place. Scoped to .dir2 so nothing else moves. */
.dir2 { display: grid; gap: var(--sp-16); }
.dir2 h1 { margin: 0; }
.dir2-lead { margin: 0; max-width: 65ch; }
.dir2-find { display: grid; gap: var(--sp-12); }
.dir2-search { display: flex; align-items: center; gap: var(--sp-8); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 0 var(--sp-16); min-height: 52px; color: var(--ink-muted); font-weight: 400; }
.dir2-search:focus-within { border-color: var(--champagne); }
.dir2-search svg { flex: none; }
.dir2-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font-size: var(--fs-body); min-height: 50px; padding: 0; }
.dir2-seg { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.dir2 button.dir2-pill { min-height: var(--tap); padding: 0 var(--sp-16); border: 1px solid var(--hairline); border-radius: var(--r-pill); background: none; color: var(--ink); font-weight: 400; gap: var(--sp-8); }
.dir2 button.dir2-pill .n { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dir2 button.dir2-pill[aria-pressed="true"] { background: var(--selected); border-color: var(--champagne); color: var(--ink); }
.dir2 button.dir2-pill[aria-pressed="true"] .n { color: var(--ink); }
@media (hover: hover) { .dir2 button.dir2-pill:not(:disabled):hover { background: var(--hover); border-color: var(--ink); } .dir2-row:hover { background: var(--hover); } .dir2-letters a:hover { background: var(--hover); } }
.dir2-filters { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-16); align-items: center; }
.dir2-label { font-size: var(--fs-small); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.dir2-letters { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.dir2-letters a, .dir2-letters span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); border-radius: var(--r-md); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.dir2-letters span, .dir2-letters .dir2-off { color: var(--ink-muted); pointer-events: none; }
.dir2-needs { border: 1px solid var(--champagne); border-radius: var(--r-lg); background: var(--surface); padding: var(--sp-16); display: grid; gap: var(--sp-16); }
.dir2-needs h2 { margin: 0; }
.dir2-needs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-8); }
.dir2-ask { border-top: 1px solid var(--hairline); padding-top: var(--sp-16); display: grid; gap: var(--sp-8); }
.dir2-ask p { margin: 0; }
.dir2-ask-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-12); }
.dir2-ask-name { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; min-height: var(--tap); }
.dir2-acts { align-items: flex-start; }
.dir2-acts form { margin: 0; }
.dir2-confirm > summary { list-style: none; }
.dir2-confirm > summary::-webkit-details-marker { display: none; }
.dir2-confirm[open] > summary { background: transparent; color: var(--ink); border-color: var(--edge); }
.dir2-box { margin-top: var(--sp-8); padding: var(--sp-12); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-sunk); display: grid; gap: var(--sp-8); max-width: 60ch; }
.dir2-box p { margin: 0; }
.dir2-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-8); align-items: baseline; }
.dir2-count h2 { margin: 0; }
.dir2-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.dir2-letter { padding: var(--sp-8) var(--sp-16); background: var(--surface-sunk); border-top: 1px solid var(--hairline); color: var(--champagne-text); font-weight: 700; scroll-margin-top: 72px; }
.dir2-list > li:first-child { border-top: 0; }
.dir2-item { border-top: 1px solid var(--hairline); }
.dir2-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: var(--sp-8) var(--sp-16); align-items: center; padding: var(--sp-12) var(--sp-16); cursor: pointer; min-height: 56px; list-style: none; }
.dir2-row::-webkit-details-marker { display: none; }
.dir2-nm { font-weight: 600; overflow-wrap: anywhere; }
.dir2-kind { display: block; color: var(--ink-muted); font-size: var(--fs-small); font-weight: 400; }
.dir2-chips { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-8); }
.dir2-chip { display: inline-flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-small); padding: var(--sp-4) var(--sp-12); border-radius: var(--r-pill); border: 1px solid var(--hairline); max-width: 100%; overflow-wrap: anywhere; }
.dir2-pl { color: var(--ink-muted); }
.dir2-yes { border-color: var(--success); }
.dir2-ok { color: var(--success); }
.dir2-chask, .dir2-chask .dir2-pl { border-color: var(--champagne); color: var(--champagne-text); }
.dir2-maybe { border-style: dashed; color: var(--ink-muted); }
.dir2-none { color: var(--ink-muted); border-color: transparent; padding-left: 0; }
.dir2-chev { color: var(--ink-muted); transition: transform .15s; }
.dir2-entry[open] .dir2-chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .dir2-chev { transition: none; } }
.dir2-detail { border-top: 1px dashed var(--hairline); padding: var(--sp-16) var(--sp-16) var(--sp-16); display: grid; gap: var(--sp-12); background: var(--surface-sunk); }
.dir2-empty { margin: 0; }
.dir2-more { justify-self: center; }
@media (max-width: 640px) { .dir2-row { grid-template-columns: minmax(0, 1fr) auto; } .dir2-chips { grid-column: 1 / -1; grid-row: 2; } }
/* The cover a video posts with, on its review card (Gabe, Nov 15, 2026): each candidate full height and as the profile grid shows it. */
.cover-pick h3 { margin: 0; }
.cover-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--sp-12); }
.cover-opt { display: flex; gap: var(--sp-12); padding: var(--sp-8); border: 1px solid var(--hairline); border-radius: var(--r-md); min-width: 0; }
.cover-opt.is-cover { border-color: var(--champagne); box-shadow: 0 0 0 1px var(--champagne); }
.cover-pics { display: flex; gap: var(--sp-8); align-items: flex-start; flex: none; }
.cover-frame { width: 108px; height: 192px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-sunk); }
.cover-grid { width: 81px; height: 108px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-sunk); }
.cover-about { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.cover-about p { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .cover-opts { grid-template-columns: 1fr; } .cover-frame { width: 90px; height: 160px; } .cover-grid { width: 68px; height: 90px; } }
/* The Usage page in Settings (Nov 16, 2026). Every class starts with usage- so nothing else on the site picks it up. */
.usage-lede { max-width: 62ch; }
.usage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-8) var(--sp-16); margin: 0 0 var(--sp-16); }
.usage-sent { margin: 0; font-size: var(--fs-small); }
.usage-tokens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-16); }
.usage-tokens div { border-top: 1px solid var(--hairline); padding-top: var(--sp-8); }
.usage-tokens dt { color: var(--ink-muted); font-size: var(--fs-small); }
.usage-tokens dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .usage-tokens { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.usage-views { flex-wrap: wrap; margin: var(--sp-8) 0 var(--sp-4); }
.usage-row, .usage-runs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4) var(--sp-16); padding: var(--sp-12) 0; border-top: 1px solid var(--hairline); }
.usage-rows > .usage-row:first-child, .usage-runs li:first-child { border-top: 0; }
.usage-name { font-weight: 600; overflow-wrap: anywhere; }
.usage-cost { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.usage-meta { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.usage-track { grid-column: 1 / -1; display: block; width: 100%; height: 6px; }
.usage-back { fill: var(--hover); }
.usage-fill { fill: var(--ink); }
.usage-runs { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.usage-runs li { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
.usage-runs .usage-meta { grid-column: 2 / -1; }
.usage-rank { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.usage-briefs { margin: var(--sp-4) 0 0; padding-left: var(--sp-16); }
.usage-notes { margin: 0 0 var(--sp-8); padding-left: var(--sp-16); color: var(--ink-muted); max-width: 70ch; }

/* Clip notes (Nov 17, 2026): the note panel stays in view while you scroll the clips (top on a wide screen, bottom on a phone); a marker on each clip with a note; one-clip notes; the undo toast. */
.notes-dock { position: sticky; top: calc(4.2rem + env(safe-area-inset-top, 0px)); z-index: 3; background: var(--surface); }
.notes-dock details > p { margin: var(--sp-8) 0 0; }
.name-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); }
.note-marker { display: inline-flex; align-items: center; padding: 0 var(--sp-8); border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-size: var(--fs-eyebrow); font-weight: 700; }
.note-edit { margin-top: var(--sp-4); }
.note-edit summary { min-height: var(--tap); display: inline-flex; align-items: center; cursor: pointer; color: var(--coral-text); }
.note-edit form { margin-top: var(--sp-8); }
.toast { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); flex-wrap: wrap; }
.toast form { margin: 0; }
@media (max-width: 700px) {
  .notes-dock { padding: var(--sp-8) var(--sp-8); gap: var(--sp-8); }
  .notes-dock details { display: none; }
}

/* Tracked Accounts by your account, the review lists, and the Inspired by block (Feature 1, mockup approved Nov 17, 2026). */
.tk-cols { display: grid; gap: var(--sp-16); margin: 0 0 var(--sp-16); }
@media (min-width: 1100px) { .tk-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.tk-box { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface); overflow-wrap: anywhere; margin: 0 0 var(--sp-16); }
.tk-cols > .tk-box { margin: 0; }
.tk-box > * + * { border-top: 1px solid var(--hairline); }
.tk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--sp-8); padding: var(--sp-16) var(--sp-16); }
.tk-head h2 { margin: 0; }
.tk-item { padding: var(--sp-12) var(--sp-16); display: grid; gap: var(--sp-8); }
.tk-item p { margin: 0; }
.tk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-8) var(--sp-12); }
.tk-handle { font-weight: 600; }
.tk-handle .muted { font-weight: 400; }
.tk-reasons { margin: 0; padding-left: var(--sp-16); color: var(--ink-muted); display: grid; gap: var(--sp-4); }
.tk-seed-head { background: var(--surface-sunk); }
.tk-seed-head h3 { margin: 0; font-size: var(--fs-body); }
.tk-change > summary { min-height: var(--tap); }
.tk-change .stack { margin: var(--sp-8) 0; }
.tk-boxes { gap: var(--sp-4); }
.tk-check { display: flex; align-items: center; gap: var(--sp-8); min-height: var(--tap); cursor: pointer; }
.ichips { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-8); }
.dir2-nm .ichips { margin-top: var(--sp-4); }
.ichip { display: inline-flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-small); min-height: 2rem; padding: 0 var(--sp-8); border-radius: var(--r-pill); border: 1px solid var(--hairline); color: var(--ink); white-space: nowrap; }
.ichip .sc { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ichip.strong { border-color: var(--success); }
.ichip.strong .sc { color: var(--success); }
.ichip.prop { border-color: var(--champagne); color: var(--champagne-text); }
.tk-wait { border-color: var(--champagne); }
.tk-wait h2 { margin: 0; }
.rv-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--sp-8); margin: 0 0 var(--sp-16); }
.rv-stat { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); background: var(--surface-sunk); }
.rv-stat b { display: block; font-size: var(--fs-heading); font-variant-numeric: tabular-nums; }
.rv-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--sp-8); }
.rv-score { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); background: var(--surface-sunk); display: grid; gap: var(--sp-4); }
.rv-score-top { display: flex; justify-content: space-between; gap: var(--sp-8); font-weight: 600; }
.rv-ov { font-variant-numeric: tabular-nums; }
.rv-dims { display: flex; flex-wrap: wrap; gap: 0 var(--sp-12); color: var(--ink-muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.rv-dims b { color: var(--ink); font-weight: 600; }
.rv-ovr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); margin: 0; }
.rv-ovr label { color: var(--ink-muted); }
.rv-ovr select { width: auto; max-width: 100%; }
.badge.rv-keep { border-color: var(--success); color: var(--ink); }
.badge.rv-reassign, .badge.rv-add { border-color: var(--champagne); color: var(--champagne-text); }
.badge.rv-archive, .badge.rv-delete { border-color: var(--danger); color: var(--danger); }
.badge.rv-skip { color: var(--ink-muted); }
.rv-approve { position: sticky; bottom: 0; z-index: 1; background: var(--paper); border-top: 1px solid var(--hairline); padding: var(--sp-12) 0 calc(var(--sp-12) + env(safe-area-inset-bottom, 0)); }
.rv-confirm-wrap > summary { list-style: none; }
.rv-confirm-wrap > summary::-webkit-details-marker { display: none; }
.rv-confirm-wrap:not([open]) > summary { width: 100%; }
.rv-confirm-wrap[open] > summary { background: transparent; color: var(--ink); border-color: var(--edge); }
.rv-confirm { border: 1px solid var(--champagne); border-radius: var(--r-lg); background: var(--surface-sunk); padding: var(--sp-16); margin-top: var(--sp-8); }
.rv-confirm p { margin: 0; }
.rv-confirm form button { width: 100%; }
@media (min-width: 900px) { .rv-confirm-wrap:not([open]) > summary, .rv-confirm form button { width: auto; } }
.insp { border-top: 1px dashed var(--hairline); padding-top: var(--sp-8); margin-top: var(--sp-8); display: grid; gap: var(--sp-8); }
.insp-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--sp-4) var(--sp-12); align-items: start; }
@media (max-width: 520px) { .insp-row { grid-template-columns: minmax(0, 1fr); } }
.insp-row > .k { color: var(--ink-muted); }
.insp-list { display: grid; gap: var(--sp-4); }
.insp-src { display: grid; gap: 0; }
.insp-src .note { color: var(--ink-muted); font-size: var(--fs-small); }
a.tk-handle { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Campaigns (Nov 17, 2026): Ideation > Campaigns and one campaign's page. No new colors: the shared tokens only. */
.campaign-form fieldset { border: 0; padding: 0; margin: 0; }
.campaign-form legend { font-weight: 600; padding: 0; margin-bottom: var(--sp-4); }
.field-c label { font-weight: 600; }
.field-c .error { margin: 0; }
.campaign-list li { gap: var(--sp-4); }
.campaign-list li > a { font-weight: 600; }
.campaign-item dl.item-fields { margin: 0; }
@media (max-width: 520px) { .campaign-item dl.item-fields { grid-template-columns: 1fr; } .campaign-item dl.item-fields dd { margin-bottom: var(--sp-4); } }
.foot-list { margin: 0; padding-left: var(--sp-16); display: grid; gap: var(--sp-4); }
.foot-list a { display: inline-flex; align-items: center; min-height: var(--tap); }
.learn-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 1000px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
.learn-row { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-12); display: grid; gap: var(--sp-4); min-width: 0; }
.learn-row p { margin: 0; }
.label-k { color: var(--ink-muted); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; }
.round { border-left: 2px solid var(--champagne); padding-left: var(--sp-12); display: grid; gap: var(--sp-4); }
.prose { max-width: 72ch; margin: 0; white-space: pre-line; }
#results .tiles + .tiles { margin-top: var(--sp-4); }
[data-campaign-row] h2 a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Inspiration > References (Nov 17, 2026): the paste box, filter rows, and the list. The tab row reuses .seg.viewtabs. */
.viewtabs .soon { display: inline-flex; align-items: center; min-height: var(--tap); padding: var(--sp-8) var(--sp-16); color: var(--ink-muted); border-left: 1px solid var(--edge); }
.ref-paste input[type=url] { width: 100%; }
.ref-for { gap: var(--sp-4); }
.ref-for legend { font-weight: 600; margin-bottom: var(--sp-4); }
.ref-search { margin: var(--sp-4) 0 var(--sp-12); }
.ref-search input[type=search] { flex: 1 1 14rem; min-width: 0; }
.ref-filters { align-items: flex-start; gap: var(--sp-12) var(--sp-16); margin-bottom: var(--sp-16); }
.ref-filter { gap: var(--sp-4); }
.ref-filter .label { text-transform: uppercase; letter-spacing: .06em; }
.ref-filter .seg { flex-wrap: wrap; }
.ref-list li.ref-item { gap: var(--sp-4); padding: var(--sp-8) 0; }
.ref-list li.ref-item > .row > a { min-height: var(--tap); display: inline-flex; align-items: center; font-weight: 600; }
.ref-nums { gap: var(--sp-8) var(--sp-16); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .viewtabs .soon { border-left: 0; border-top: 1px solid var(--edge); width: 100%; }
  /* Four tabs no longer fit one row on a phone (Templates, Nov 17, 2026): they wrap, each its own button. */
  nav.seg.viewtabs { display: flex; flex-wrap: wrap; gap: var(--sp-4); border: 0; border-radius: 0; overflow: visible; }
  nav.seg.viewtabs a { border: 1px solid var(--edge); border-radius: var(--r-md); flex: 1 1 auto; justify-content: center; }
  nav.seg.viewtabs .soon { border: 1px solid var(--edge); border-radius: var(--r-md); justify-content: center; }
}
.flash form.inline { display: inline; margin: 0; }
/* Inspiration > Templates (Nov 17, 2026): the suggested strip slides sideways, the list, one template's checklist and structure. */
#sug-h, [aria-labelledby="sug-h"] { min-width: 0; }
.tpl-strip { min-width: 0; max-width: 100%; display: flex; gap: var(--sp-12); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--sp-8); overscroll-behavior-x: contain; scrollbar-width: thin; }
.tpl-strip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tpl-sug { flex: 0 0 min(17rem, 82%); scroll-snap-align: start; display: grid; gap: var(--sp-8); align-content: start; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-12); background: var(--paper); }
.tpl-empty { flex: 1 1 auto; }
.tpl-name { font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.tpl-chips { gap: var(--sp-4); }
.tpl-list li.tpl-row { gap: var(--sp-4); padding: var(--sp-8) 0; }
.tpl-nums { gap: var(--sp-8) var(--sp-16); font-variant-numeric: tabular-nums; }
.tpl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--sp-12); margin: 0; }
.tpl-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.tpl-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4) var(--sp-12); align-items: start; padding: var(--sp-8) 0; }
.tpl-check p { margin: var(--sp-4) 0 0; }
.tpl-verdict { margin: var(--sp-4) 0 0; }
.tpl-sec p { margin: 0; }
.tpl-line { width: 100%; display: flex; gap: var(--sp-4); height: 2.5rem; margin: var(--sp-12) 0 var(--sp-4); }
.tpl-slot { background: var(--champagne); border-radius: var(--r-sm); min-width: 2px; }
.tpl-slot:nth-child(3n+2) { background: var(--champagne-text); }
.tpl-slot:nth-child(3n) { background: var(--ink-muted); }
.tpl-axis { font-variant-numeric: tabular-nums; }
.tpl-slots .tpl-slotrow { display: grid; grid-template-columns: 2rem 4rem minmax(0, 1fr); gap: var(--sp-8); padding: var(--sp-4) 0; align-items: start; }
.tpl-slotrow .n { font-weight: 600; }

/* The capture pipeline (Feature 6, Nov 17, 2026; the approved mockup docs/mockups/captures.html). Addresses wrap anywhere; captures sit in a grid
   of 9:16 thumbnails, one column on a phone. */
.page-url { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--fs-small); overflow-wrap: anywhere; color: var(--ink-muted); }
.capture-tiles { margin-bottom: var(--sp-16); }
.capture-views .n { margin-left: var(--sp-8); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.capture-views [aria-current] .n { color: var(--ink); }
.capture-row > a { display: inline-flex; align-items: center; min-height: var(--tap); }
.capture-box { border-top: 1px dashed var(--hairline); padding-top: var(--sp-12); }
.capture-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--sp-16); }
.capture-tile { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; font-size: var(--fs-small); }
.capture-tile img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: var(--r-md); border: 1px solid var(--hairline); background: #000; display: block; }
.capture-tile > a { display: block; }
.capture-beats, .capture-beats-read, .capture-tips { margin: 0; padding-left: var(--sp-16); display: grid; gap: var(--sp-8); }
.capture-beats { list-style: none; padding-left: 0; }
.capture-beat { border-top: 1px solid var(--hairline); padding-top: var(--sp-8); display: grid; gap: var(--sp-4); }
.capture-say { font-size: var(--fs-subhead); line-height: 1.55; }
pre.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--fs-small); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); overflow-x: auto; white-space: pre; }
/* The Theme choice above Sign Out (app/public/theme.js): Device, Light, Dark. Pressed is ink-filled, with aria-pressed for readers. */
.theme-pick { display: grid; gap: var(--sp-4); padding: var(--sp-12) var(--sp-12) var(--sp-8); margin-top: var(--sp-8); border-top: 1px solid var(--hairline); }
.theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.theme-seg button { min-height: var(--tap); padding: var(--sp-8); font-size: var(--fs-small); font-weight: 500; }
.theme-seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
@media (hover: hover) { .theme-seg button[aria-pressed="true"]:not(:disabled):hover { background: var(--ink); } }
/* Sign in: Face ID or Touch ID is the coral button when this device can use it; then the backup's Sign In is outlined. */
[data-passkey]:not([hidden]) ~ .backup button.primary { background: transparent; color: var(--ink); border-color: var(--ink); }
/* On a phone the month's cells hold only the day button (the chips show from 760px), so no side padding: each day stays a 44px+ tap target. */
@media (max-width: 759px) { .cell { padding-inline: 0; } }
/* ---- The Instagram Inbox (Feature S4, Nov 17, 2026; Gabe's mockup, two steps smaller): Instagram's own inbox layout. The list on the left,
   one account at a time; the open conversation on the right with the reply box under it. Reading text is the small size (14px) and the
   small lines the eyebrow size (12px), Gabe's choice for this screen only. Typing stays at the body size on a phone, so iPhone doesn't zoom. */
.ig { display: grid; grid-template-columns: 1fr; font-size: var(--fs-small); line-height: var(--lh-small); }
.ig-list, .ig-thread { display: flex; flex-direction: column; min-width: 0; }
.ig[data-view="thread"] .ig-list { display: none; }
.ig[data-view="list"] .ig-thread { display: none; }
.ig-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); }
.ig-acct select { appearance: none; -webkit-appearance: none; border: 0; background: none var(--chevron) no-repeat right var(--sp-4) center; background-size: 12px 8px; padding: 0 var(--sp-24) 0 0; font-size: var(--fs-body); font-weight: 700; min-height: var(--tap); width: auto; color: var(--ink); cursor: pointer; }
.ig-acct select:disabled { background-image: none; padding-right: 0; opacity: 1; cursor: default; }
.ig-search { margin: var(--sp-8) 0; }
.ig-search input { min-height: var(--tap); border: 0; border-radius: var(--r-md); background: var(--surface-sunk); padding: 0 var(--sp-16); font-size: var(--fs-body); }
.ig-tabs { display: flex; border-bottom: 1px solid var(--hairline); }
.ig-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--sp-4); min-height: var(--tap); padding: 0; border-radius: 0; background: none; box-shadow: none; font-weight: 600; color: var(--ink-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ig-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); background: none; box-shadow: none; font-weight: 600; }
.ig-tabs .n { font-weight: 400; }
.ig-convs { list-style: none; margin: 0; padding: var(--sp-8) 0; overflow-y: auto; flex: 1; }
.ig-conv { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--sp-12); align-items: center; padding: var(--sp-4) 0; min-height: 56px; color: var(--ink); text-decoration: none; }
.ig-conv[aria-current="true"] { background: var(--selected); }
.ig-txt { display: grid; min-width: 0; }
.ig-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-pv { display: flex; gap: var(--sp-4); font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); color: var(--ink-muted); min-width: 0; }
.ig-pv .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ig-pv .ago { flex: none; }
.ig-st { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: 600; color: var(--ink-muted); margin-top: 2px; }
.ig-st.draft { color: var(--coral-text); }
.ig-st.agent { color: var(--champagne-text); }
.ig-conv.unread .ig-nm, .ig-conv.unread .ig-pv .t { font-weight: 700; color: var(--ink); }
.ig-end { display: flex; align-items: center; gap: var(--sp-8); }
.ig-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.ig-mini { width: 36px; height: 46px; border-radius: var(--r-sm); background: var(--surface-sunk); border: 1px solid var(--hairline); color: var(--ink-muted); font-size: var(--fs-eyebrow); display: grid; place-items: center; }
.ig-empty, .ig-pick { color: var(--ink-muted); padding: var(--sp-24) var(--sp-8); text-align: center; }
.ig-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: var(--fs-small); color: var(--ink); background: var(--surface-sunk); border: 1px solid var(--hairline); flex: none; }
.ig-av.s24 { width: 24px; height: 24px; font-size: var(--fs-eyebrow); }
.ig-av.s28 { width: 28px; height: 28px; font-size: var(--fs-eyebrow); }
.ig-av.s32 { width: 32px; height: 32px; font-size: var(--fs-eyebrow); }
.ig-av.s56 { width: 56px; height: 56px; font-size: var(--fs-subhead); }
.ig-th { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-8) 0; border-bottom: 1px solid var(--hairline); }
.ig-who { display: grid; min-width: 0; }
.ig-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-back { display: inline-flex; align-items: center; min-height: var(--tap); padding-right: var(--sp-8); color: var(--ink); text-decoration: none; font-weight: 600; }
.ig-to { margin-left: auto; font-size: var(--fs-eyebrow); color: var(--ink-muted); text-align: right; }
.ig-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: var(--sp-16) 0; }
.ig-intro { display: grid; justify-items: center; gap: var(--sp-4); text-align: center; padding-block: var(--sp-8) var(--sp-16); }
.ig-sep { align-self: center; font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); color: var(--ink-muted); font-weight: 600; padding: var(--sp-12) 0 var(--sp-8); }
.ig-line { display: flex; align-items: flex-end; gap: var(--sp-8); max-width: 100%; }
.ig-line.them { align-self: flex-start; }
.ig-line.us { align-self: flex-end; }
.ig-gap { width: 24px; flex: none; }
.ig-b { max-width: min(28rem, 78vw); padding: 6px 11px; border-radius: var(--r-lg); overflow-wrap: anywhere; white-space: pre-wrap; }
.them .ig-b { background: var(--surface-sunk); }
.us .ig-b { background: var(--ink); color: var(--paper); }
.ig-b.gone { color: var(--ink-muted); font-style: italic; }
.ig-rcpt { align-self: flex-end; font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); color: var(--ink-muted); padding: 2px var(--sp-4) 0; }
.ig-sys { align-self: center; text-align: center; font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); color: var(--ink-muted); max-width: 30rem; padding: var(--sp-12) var(--sp-8); }
.ig-sys strong { display: block; color: var(--ink); font-weight: 600; }
.ig-sys.open strong { color: var(--success); }
.ig-sys.agent strong { color: var(--champagne-text); }
.ig-post { display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-12); align-items: center; padding-bottom: var(--sp-16); border-bottom: 1px solid var(--hairline); margin-bottom: var(--sp-16); }
.ig-thumb { width: 52px; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-sm); background: var(--surface-sunk); border: 1px solid var(--hairline); color: var(--ink-muted); display: grid; place-items: center; font-size: var(--fs-eyebrow); }
.ig-cmt { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-12); align-items: start; padding: var(--sp-8) 0; }
.ig-cmt .ct { display: grid; gap: 2px; overflow-wrap: anywhere; }
.ig-cmt .meta { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); color: var(--ink-muted); font-weight: 600; }
.ig-cmt.reply { margin-left: 40px; }
.ig-comp { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--hairline); padding: var(--sp-12) 0; padding-bottom: max(var(--sp-12), env(safe-area-inset-bottom)); display: grid; gap: var(--sp-8); }
.ig-form, .ig-confirm { display: grid; gap: var(--sp-8); }
.ig-note-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-8); }
.ig-note { margin: 0; font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); color: var(--ink-muted); }
.ig-note .by { font-weight: 600; color: var(--coral-text); }
.ig-redo > summary { list-style: none; }
.ig-redo > summary::-webkit-details-marker { display: none; }
.ig-redo-form { display: grid; gap: var(--sp-8); margin-top: var(--sp-8); }
.ig-field { border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--surface-sunk); padding: var(--sp-4) var(--sp-16); }
.ig-field textarea { border: 0; background: none; resize: none; padding: var(--sp-8) 0; min-height: 40px; max-height: 12em; font-size: var(--fs-body); line-height: 1.4; }
.ig-checks { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-16); margin: 0; padding: 0; list-style: none; font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); color: var(--ink-muted); }
.ig-checks .no { color: var(--danger); font-weight: 600; }
.ig-modes { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.ig-mode { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-16); border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); font-size: var(--fs-small); color: var(--ink); text-decoration: none; }
.ig-mode[aria-current="true"] { border-color: var(--ink); background: var(--selected); font-weight: 600; }
.ig-mode.off { color: var(--ink-muted); }
.ig-send-row { display: flex; flex-wrap: wrap; gap: var(--sp-8); justify-content: flex-end; }
.ig-confirm { border: 1px solid var(--ink); border-radius: var(--r-lg); padding: var(--sp-12) var(--sp-16); background: var(--surface); }
.ig-quote { margin: 0; padding: var(--sp-8) var(--sp-12); border-left: 2px solid var(--champagne); background: var(--surface-sunk); border-radius: var(--r-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.ig-closed { text-align: center; color: var(--ink-muted); margin: 0; padding: var(--sp-8) 0; }
.ig-review { margin-bottom: var(--sp-12); }
.ig-acct-cards { display: grid; gap: var(--sp-12); }
.ig-acct-cards .card { margin: 0; }
.ig-log td, .ig-log th { text-align: left; vertical-align: top; }
@media (min-width: 900px) {
  .ig { grid-template-columns: 24rem 1fr; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; height: max(600px, calc(100vh - 9rem)); }
  .ig[data-view] .ig-list, .ig[data-view] .ig-thread { display: flex; }
  .ig-list { border-right: 1px solid var(--hairline); min-height: 0; padding: var(--sp-16) var(--sp-16) 0; }
  .ig-thread { min-height: 0; }
  .ig-conv { padding-inline: var(--sp-8); border-radius: var(--r-md); }
  .ig-th, .ig-msgs { padding-inline: var(--sp-16); }
  .ig-comp { background: var(--surface); padding-inline: var(--sp-16); }
  .ig-back { display: none; }
  .ig-search input, .ig-field textarea { font-size: var(--fs-small); }
  .ig-acct-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: hover) { .ig-conv:hover { background: var(--hover); } .ig-mode:hover { background: var(--hover); } }

/* Creation Studio, Stories (Gabe, Nov 18, 2026; mockup screen 3): the list beside the builder on a desktop, one column on a phone. The
   picture is 9:16 on black, as the Story shows. */
.stories { display: grid; gap: var(--sp-16); }
.stories > * { min-width: 0; margin: 0; }
@media (min-width: 1100px) { .stories { grid-template-columns: 24rem minmax(0, 1fr); align-items: start; } }
.story-list-card .tabs { margin: 0; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.story-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-12); align-items: center; padding: var(--sp-8); min-height: 64px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; }
.story-item[aria-current="page"] { border-color: var(--ink); background: var(--selected); }
.story-th { display: block; width: 44px; aspect-ratio: 9 / 16; border-radius: var(--r-sm); overflow: hidden; background: #000; }
.story-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-t { display: grid; gap: var(--sp-4); min-width: 0; overflow-wrap: anywhere; }
.story-t .muted { font-size: var(--fs-small); }
.story-build .row.between { align-items: baseline; }
.story-build h2 { margin: 0; overflow-wrap: anywhere; }
.story-acct { max-width: 20rem; }
.story-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); grid-template-columns: repeat(auto-fill, minmax(min(100px, 30%), 1fr)); max-height: 28rem; overflow-y: auto; padding-right: var(--sp-4); }
.story-pick { display: grid; gap: var(--sp-4); width: 100%; padding: var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-weight: 400; text-align: left; align-content: start; justify-content: stretch; }
.story-pick[aria-pressed="true"] { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; background: var(--selected); }
.story-pick-pic { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-sm); background: #000; }
.story-pick-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-pick-pic:not(:has(img)) { background: var(--surface-sunk); }
.story-nopic { padding: var(--sp-8); text-align: center; font-size: var(--fs-small); color: var(--ink); }
.story-pick-name { font-size: var(--fs-small); overflow-wrap: anywhere; }
.story-pv-row { display: grid; gap: var(--sp-24); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); align-items: start; }
.story-pv-row > * { min-width: 0; }
.story-who { margin: 0; }
.story-pv { width: 100%; max-width: 14rem; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.story-pv .pv { width: 100%; height: 100%; }
.story-pv .player, .story-pv img { display: block; width: 100%; height: 100%; max-height: none; margin: 0; object-fit: contain; border-radius: 0; }
.story-pv-empty { margin: 0; padding: var(--sp-16); text-align: center; color: var(--ink); background: var(--surface-sunk); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.story-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.story-checks li { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-12); align-items: baseline; justify-content: space-between; padding-bottom: var(--sp-8); border-bottom: 1px solid var(--hairline); }
.story-check-why { flex-basis: 100%; font-size: var(--fs-small); overflow-wrap: anywhere; }
.story-when { display: flex; flex-wrap: wrap; gap: var(--sp-12); align-items: end; }
.story-when label { flex: 1 1 10rem; max-width: 16rem; }
@media (hover: hover) { .story-item:hover, .story-pick:hover { background: var(--hover); border-color: var(--ink); } }
@media (min-width: 900px) { .story-picks { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 32rem; } }
/* Kamila publishing screens (Gabe, Nov 18, 2026; mockup kamila-publishing screens 1, 2, and 4). */
/* Settings > Connections: one card per account, a row per platform. */
.conn-lead { max-width: 62ch; }
.conn-grid { display: grid; gap: var(--sp-16); align-items: start; }
.conn-grid .card { margin: 0; }
.conn-row { display: grid; gap: var(--sp-8); padding-block: var(--sp-16); border-top: 1px solid var(--hairline); scroll-margin-top: calc(var(--tap) + var(--sp-32)); }
.conn-card > .row + .conn-row { border-top: 0; }
.conn-row h3 { margin: 0; }
.conn-row p { margin: 0; }
.conn-acts:empty { display: none; }
.conn-acts form { margin: 0; }
.conn-acts > .act[open] { flex: 1 1 100%; }
.conn-acts > .act[open] > summary.button { width: auto; }
.chip-status { display: inline-flex; align-items: center; min-height: calc(var(--sp-24) + var(--sp-4)); padding: 0 var(--sp-12); border-radius: var(--r-sm); border: 1px solid var(--hairline); background: var(--surface); font-size: var(--fs-small); line-height: var(--lh-small); white-space: nowrap; color: var(--ink); }
.chip-status.open { border-color: var(--success); background: var(--success-soft); }
.chip-status.bad { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.conn-cross { display: grid; gap: var(--sp-4); border-top: 1px dashed var(--hairline); padding-top: var(--sp-8); margin: 0; }
button.conn-switch { justify-content: flex-start; gap: var(--sp-12); background: none; border: 0; border-radius: var(--r-md); padding: 0 var(--sp-4); font-weight: 400; text-align: left; width: 100%; }
.conn-track { flex: none; width: var(--sp-48); height: calc(var(--sp-24) + var(--sp-4)); border-radius: var(--r-pill); border: 1px solid var(--ink); background: var(--surface-sunk); position: relative; }
.conn-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(var(--sp-16) + var(--sp-4)); height: calc(var(--sp-16) + var(--sp-4)); border-radius: 50%; background: var(--ink); }
.conn-switch[aria-checked="true"] .conn-track { background: var(--ink); }
.conn-switch[aria-checked="true"] .conn-track::after { left: calc(var(--sp-24) - 1px); background: var(--paper); }
.conn-state { font-weight: 600; min-width: 2.2em; flex: none; }
@media (min-width: 900px) { .conn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cross-post and Story badges, the same on the review card and the Calendar. */
.badge.xp-badge { border: 1px dashed var(--ink); color: var(--ink); }
.badge.story-badge { background: var(--blush); border-color: var(--blush); color: var(--ink); }

/* Review & Publish: the Posting part of a video's card. */
.posting { gap: var(--sp-8); }
.posting h3 { margin: 0; }
.post-plan { list-style: none; margin: 0; padding: 0; display: grid; }
.post-plan > li { display: grid; gap: var(--sp-4); padding-block: var(--sp-12); border-top: 1px solid var(--hairline); }
.post-plan > li:first-child { border-top: 0; padding-top: 0; }
.post-plan p { margin: 0; }
.post-line { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; justify-content: space-between; }
.post-what { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-8); align-items: baseline; min-width: 0; }
.post-what strong { font-weight: 600; }
.post-line > .act[open] { flex: 1 1 100%; }
.post-line > .act[open] > summary.button { width: auto; }
.story-form { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-12); display: grid; gap: var(--sp-8); }
.story-form .story-more { display: none; }
.story-form:has(input[name="story"]:checked) .story-more { display: grid; gap: var(--sp-8); }
.story-form p { margin: 0; }

/* Calendar: the badge on a chip, and the two-item legend. */
.chip .chip-bd { display: block; margin-top: 2px; }
.legend.copy-legend { gap: var(--sp-8) var(--sp-24); align-items: center; }
.copy-legend > span { display: inline-flex; gap: var(--sp-8); align-items: center; }
/* Which way a post goes (Gabe, Nov 18, 2026): Through Kamila or Through Blotato, one quiet chip everywhere (PB.routeChip). The words say it;
   the two look the same, so color is never the signal. */
.badge.route-badge { border-color: var(--edge); color: var(--ink); font-weight: 500; }
.post-route { margin: 0; }
.chip .chip-bd .badge + .badge { margin-left: var(--sp-4); }

/* Performance, Kamila (the test account, Nov 18, 2026): room under Refresh Numbers. Add a test post: its closed card is only its button. */
.test-refresh { margin-bottom: var(--sp-16); }
details.test-post > summary { list-style: none; }
details.test-post > summary::-webkit-details-marker { display: none; }
/* Add a test post's upload bar keeps the fields' line length (Nov 19, 2026). */
details.test-post progress { max-width: 40rem; }
