:root {
  color-scheme: dark light;
  /* Design tokens. Dark is the default; the light set follows the system setting. */
  --bg: #14151a;
  --surface: #1c1d24;
  --raised: #262730;
  --hover: #32343e;
  --field: #121319;
  --stroke: #343640;
  --stroke-strong: #454753;
  --hover-stroke: #7b7e8d;
  --muted: #b4b6c3;
  --placeholder: #a6a9b8;
  --text: #f4f3f8;
  --accent: #b7a5ff;
  --accent-hover: #cdc0ff;
  --accent-text: #c5b6ff;
  --on-accent: #20153f;
  --focus: #b7a5ff;
  --hero-tint: #26213a;
  --danger: #ffb5a9;
  --select-arrow: #b4b6c3;
  --backdrop: #0c0d15bb;
  --shadow: 0 10px 30px #0009;
  --chip-bg: #2a2b35; --chip-fg: #dedfeb;
  --deleted-bg: #4a2420; --deleted-fg: #ffc2b8;
  --used-bg: #213a2a; --used-fg: #b4e9c4;
  --episode-bg: #20304a; --episode-fg: #b9d2ff;
  --cut-bg: #2e3039; --cut-fg: #b4b6c3;
  --radius-s: 6px; --radius: 10px; --radius-l: 14px;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2.25rem;
  --text-s: .84rem; --text-m: .95rem; --text-l: 1.15rem;
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fa;
    --surface: #ffffff;
    --raised: #eeedf3;
    --hover: #e4e3ec;
    --field: #ffffff;
    --stroke: #dedde6;
    --stroke-strong: #c2c0cf;
    --hover-stroke: #878493;
    --muted: #575866;
    --placeholder: #636475;
    --text: #20212b;
    --accent: #5d42c4;
    --accent-hover: #4b32a6;
    --accent-text: #5238b1;
    --on-accent: #ffffff;
    --focus: #5d42c4;
    --hero-tint: #eeebfc;
    --danger: #a8261b;
    --select-arrow: #575866;
    --backdrop: #20212b80;
    --shadow: 0 10px 30px #1b163017;
    --chip-bg: #eae9f0; --chip-fg: #424354;
    --deleted-bg: #fbe0dc; --deleted-fg: #8f2116;
    --used-bg: #dcf2e2; --used-fg: #1d5f32;
    --episode-bg: #dfe9fb; --episode-fg: #1f4b8f;
    --cut-bg: #eae9f0; --cut-fg: #575866;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .23em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2.45rem, 7.1vw, 5.65rem); font-weight: 720; letter-spacing: -.067em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.042em; font-weight: 680; }
h3 { font-size: 1.13rem; font-weight: 680; letter-spacing: -.02em; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 1; top: 8px; left: 8px; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; }
.top { border-bottom: 1px solid var(--stroke); }
.top-row { min-height: 73px; display: flex; gap: 2.15rem; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: .58rem; text-decoration: none; font-size: 1.3rem; font-weight: 760; letter-spacing: -.045em; white-space: nowrap; }
.top nav, .footer nav { display: flex; align-items: center; gap: 1.4rem; }
.top nav a, .header-help, .footer nav a { text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 540; }
.top nav a[aria-current=page] { color: var(--text); }
.top nav a:hover, .header-help:hover, .footer nav a:hover { color: var(--accent-text); }
.header-help { margin-left: auto; }
.hero { padding-block: 75px 49px; }
.hero-intro p, .page-intro > p:first-of-type { margin-top: .75rem; max-width: 62ch; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.24rem); }
.resolve-box { display: grid; gap: .6rem; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--stroke); background: var(--surface); border-radius: 12px; }
label { color: var(--text); font-weight: 580; font-size: .92rem; }
label input:not([type=checkbox]), label textarea, label select { display: block; width: 100%; margin-top: .36rem; }
input:not([type=checkbox],[type=range]), textarea, select {
  background: var(--field); color: var(--text); width: 100%; border: 1px solid var(--stroke);
  border-radius: 7px; padding: .72rem .85rem; min-height: 44px; min-width: 0;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input[type=range] { accent-color: var(--accent); min-height: 28px; }
input[type=checkbox] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
input[type=file] { color: var(--muted); font-size: .875rem; }
input::file-selector-button { cursor: pointer; padding: .3rem .56rem; margin-right: .65rem; background: var(--raised); color: var(--text); border: 1px solid var(--stroke); border-radius: 4px; }
textarea { resize: vertical; }
select {
  appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--select-arrow) 50%), linear-gradient(135deg, var(--select-arrow) 50%, transparent 50%);
  background-position: calc(100% - 17px) 51%, calc(100% - 12px) 51%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.entry-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .6rem; }
.download-settings { width: min(100%, 22rem); }
.download-settings summary { width: fit-content; padding-block: .48rem; color: var(--muted); cursor: pointer; font-size: .9rem; }
.download-settings select { margin-block: .3rem; }
.download-settings > p { font-size: .85rem; }
.download-settings > label { display: block; margin-top: .4rem; }
.download-settings .check-line { display: flex; gap: .45rem; align-items: center; margin-block: .5rem; font-size: .9rem; }
.trim-video { margin-top: .52rem; }
.trim-video summary { width: fit-content; padding-block: .4rem; color: var(--muted); cursor: pointer; font-size: .9rem; }
.trim-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .52rem; margin-block: .3rem; }
.trim-fields label { display: grid; gap: .2rem; font-size: .9rem; }
.trim-fields input { min-width: 0; }
.trim-video > p { font-size: .85rem; margin-block: .3rem .52rem; }
.button { display: inline-flex; min-height: 44px; justify-content: center; align-items: center; gap: .45rem; padding: .65rem .95rem;
  border-radius: 7px; border: 1px solid transparent; font-weight: 660; font-size: .95rem; line-height: 1.25; text-align: center; text-decoration: none; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { color: var(--text); border-color: var(--stroke-strong); background: var(--raised); }
.button.secondary:hover, .button.secondary[aria-pressed=true] { background: var(--hover); border-color: var(--hover-stroke); }
.button.small { font-size: .87rem; padding: .52rem .72rem; min-height: 40px; }
.text-button { padding: 0; width: fit-content; border: 0; background: none; color: var(--text); text-align: left; text-decoration: underline; text-underline-offset: .22em; font-size: .9rem; }
.danger, .form-status.error { color: var(--danger); }
.form-status { font-size: .9rem; color: var(--muted); }
.form-status:empty { margin: 0; display: none; }
.result { border-top: 1px solid var(--stroke); padding-top: 1rem; margin-top: .35rem; display: grid; gap: .75rem; }
.download-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.download-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--stroke); border-radius: 9px; background: var(--raised); }
.download-stage { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--field); }
.download-stage img { width: 100%; height: 100%; object-fit: contain; }
.instagram-story-card { grid-template-columns: minmax(0, 1fr); }
.instagram-story-card .download-stage {
  aspect-ratio: auto;
  block-size: clamp(10rem, 30svh, 15rem);
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
}
.instagram-story-card .download-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.instagram-story-card .download-controls { align-content: start; }
.download-stage .channel-picture-preview { width: auto; height: auto; max-width: min(100%, 160px); max-height: 160px; }
.post-author-picture .download-card { max-width: 18rem; }
.post-author-picture .download-stage { aspect-ratio: 1; }
.download-controls { display: grid; align-content: end; gap: .45rem; padding: .78rem; }
.download-controls strong { font-size: .9rem; }
.download-controls .muted { font-size: .84rem; }
.file-selection { display: grid; gap: .45rem; }
.file-selection-count, .file-selection-check { font-size: .9rem; }
.file-selection-check { display: flex; gap: .55rem; align-items: center; min-height: 44px; cursor: pointer; }
.file-selection-check:has(input:checked) { color: var(--accent-text); }
.muted, .feature p, .editor-callout p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1.13fr; gap: clamp(26px,5vw,66px); }
.home-split { align-items: start; padding-bottom: 40px; }
.platforms > p, .editor-callout p { margin-top: .4rem; }
.sources { margin-top: 1rem; border-top: 1px solid var(--stroke); }
.source-row { display: grid; grid-template-columns: 36px 1fr 10px; gap: .72rem; align-items: center; min-height: 61px; padding: .45rem .3rem .45rem .1rem; border-bottom: 1px solid var(--stroke); text-decoration: none; }
.source-row:hover { background: var(--surface); }
.source-row strong, .source-row small { display: block; }
.source-row strong { font-size: .95rem; font-weight: 650; }
.source-row small { color: var(--muted); font-size: .81rem; padding-top: .06rem; }
.source-mark, .platform-tile { --mark-bg: #30332c; --mark: #d7dacd; background: var(--mark-bg); color: var(--mark); }
.source-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; font-weight: 730; font-size: .92rem; }
@media (prefers-color-scheme: light) {
  .source-mark, .platform-tile { background: color-mix(in srgb, var(--mark) 45%, #fff); color: color-mix(in srgb, var(--mark-bg) 80%, #000); }
}
.source-mark.instagram, .tile-instagram { --mark-bg: #3a2730; --mark: #ffc0d5; }
.source-mark.tiktok, .tile-tiktok { --mark-bg: #20332f; --mark: #a4ecd9; }
.source-mark.snapchat, .tile-snapchat { --mark-bg: #38341f; --mark: #fae29f; }
.source-mark.bluesky, .tile-bluesky { --mark-bg: #233444; --mark: #a9d6ff; }
.source-mark.youtube, .tile-youtube { --mark-bg: #422827; --mark: #ffc0b2; }
.source-mark.pinterest, .tile-pinterest { --mark-bg: #3d2426; --mark: #ffb7b9; }
.source-mark.threads, .tile-threads { --mark-bg: #2c2d2b; --mark: #ecebe4; }
.source-mark.tumblr, .tile-tumblr { --mark-bg: #232c3b; --mark: #b5c8ef; }
.source-mark.telegram, .tile-telegram { --mark-bg: #1f3340; --mark: #9fd8f6; }
.source-mark.flickr, .tile-flickr { --mark-bg: #362436; --mark: #f5b8e8; }
.source-mark.imgur, .tile-imgur { --mark-bg: #24352a; --mark: #addfb8; }
.source-mark.linkedin, .tile-linkedin { --mark-bg: #1f3042; --mark: #a8cdf4; }
.source-mark.mastodon, .tile-mastodon { --mark-bg: #2c2741; --mark: #c9bdfa; }
.source-mark.gifs, .tile-gifs { --mark-bg: #352f22; --mark: #f3d698; }
.source-mark.odysee, .tile-odysee { --mark-bg: #3b2a22; --mark: #ffc49e; }
.tile-x, .tile-web { --mark-bg: #2c2d2b; --mark: #ecebe4; }
.tile-reddit { --mark-bg: #42291f; --mark: #ffbfa3; }
.tile-facebook { --mark-bg: #1f2c44; --mark: #b3cdfa; }
.tile-discord { --mark-bg: #262a45; --mark: #c3c8fb; }
.tile-vimeo { --mark-bg: #1d3640; --mark: #a4e0f2; }
.tile-twitch { --mark-bg: #2f2541; --mark: #d4c1fb; }
.related-guides { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--stroke); }
.related-guides h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.related-guides ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.related-guides a { color: var(--muted); }
.related-guides a:hover { color: var(--text); }
.chevron { height: 7px; width: 7px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.feature { border: 1px solid var(--stroke); border-radius: 12px; background: var(--surface); overflow: hidden; }
.feature-copy { padding: 1.2rem 1.3rem 1.12rem; }
.feature-copy p { margin: .45rem 0 .8rem; max-width: 48ch; }
.sample { border-radius: 9px; overflow: hidden; background: var(--raised); }
.feature .sample { margin: 0 .75rem .75rem; }
.sample img { width: 100%; object-fit: cover; aspect-ratio: 2.75 / 1; height: auto; }
.sample figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .52rem .74rem; font-size: .84rem; }
.sample figcaption span:last-child { color: var(--muted); }
.editor-callout { padding-block: 1.15rem 2.15rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--stroke); }
.footer { border-top: 1px solid var(--stroke); padding-block: 1.45rem 2rem; margin-top: 1.35rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.footer .wordmark { color: var(--muted); font-size: 1rem; }
.footer .wordmark img { width: 24px; height: 24px; }
.page-intro { padding-top: 55px; padding-bottom: 28px; }
.page-intro h1 { font-size: clamp(2.3rem,6vw,4.45rem); }
.page-intro .form-status { margin-top: .7rem; }
.reading { max-width: 740px; min-height: 62vh; }
.reading p { margin-top: .65rem; }
.reading h1 { margin-top: .65rem; }
.reading section { margin-block: 1.65rem; }
.back-link { color: var(--accent-text); font-size: .9rem; }
.article-actions { margin-top: 1.1rem; }
.guide-sources { max-width: 480px; }
.report-form { margin-top: .9rem; max-width: 490px; }
.file-name { overflow-wrap: anywhere; min-width: 0; }
.post-preview { width: 100%; min-height: 200px; aspect-ratio: 16 / 9; border: 0; background: #111; border-radius: var(--radius-s); }
.post-preview.portrait { max-width: 320px; min-height: min(510px, 61dvh); aspect-ratio: 9 / 16; }
.panel { border: 1px solid var(--stroke); background: var(--surface); border-radius: 10px; padding: 1.1rem; min-width: 0; }
.form-stack { display: grid; gap: .95rem; align-content: start; }
.form-stack .muted { font-size: .9rem; }
.auth-wrap { display: grid; grid-template-columns: minmax(240px,390px) minmax(0,1fr); gap: 1.4rem; min-height: 380px; align-items: start; }
.auth-art img { aspect-ratio: 2 / 1; }
.workspace { display: grid; grid-template-columns: minmax(180px,225px) minmax(0,1fr); gap: 1.4rem; min-height: 420px; align-items: start; }
.board-index-top, .board-heading, .dialog-top, .split-line { display: flex; justify-content: space-between; align-items: start; gap: .7rem; }
.board-index h2 { font-size: 1.12rem; }
.board-index-top { align-items: center; }
.board-index #board-index { margin-block: .7rem; display: grid; gap: .25rem; }
.board-index .board-choice { text-align: left; display: block; overflow-wrap: anywhere; }
.board-index details { border-top: 1px solid var(--stroke); padding-top: .65rem; }
.board-index details button { display: block; margin-top: .65rem; }
.board-index summary { overflow-wrap: anywhere; cursor: pointer; }
.search-all { display: grid; gap: .45rem; border-top: 1px solid var(--stroke); padding-top: .65rem; margin-top: .65rem; }
.search-all .check-line, .bulk-bar .check-line { display: flex; gap: .45rem; align-items: center; font-weight: 500; }
.search-all button { justify-self: start; }
.saved-searches { border-top: 1px solid var(--stroke); padding-top: .65rem; margin-top: .65rem; }
.saved-searches h3 { font-size: .95rem; margin: 0 0 .4rem; }
.saved-search { display: flex; gap: .4rem; align-items: center; justify-content: space-between; margin-block: .25rem; }
.saved-search .text-button { overflow-wrap: anywhere; text-align: left; }
.queue-banner, .bulk-bar { display: grid; gap: .52rem; margin-bottom: .8rem; }
.queue-banner p { margin: 0; }
.board-updates { display: flex; flex-wrap: wrap; gap: .52rem; align-items: center; margin-block: .52rem; color: var(--muted); }
.item-select { display: flex; gap: .45rem; align-items: center; font-size: .9rem; }
.item-card.selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.favourite-button[aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent); }
.search-result .muted { margin-block: .2rem; }
.offline-wrap { max-width: 34rem; }
.collection-content > .empty { margin-top: 0; }
.board-heading h2 { overflow-wrap: anywhere; }
.board-heading { flex-wrap: wrap; }
.board-heading p { overflow-wrap: anywhere; margin-top: .25rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .52rem; align-items: center; }
.publisher-course { flex: 0 1 20rem; min-width: 0; max-width: 100%; }
.publisher-course select { min-width: 0; }
.instagram-date-filter { align-items: end; margin-block: .65rem; }
.instagram-date-filter label { display: grid; gap: .25rem; }
.filters { display: flex; gap: .52rem; margin-block: 1rem; align-items: center; flex-wrap: wrap; }
.filters input { flex: 1 1 190px; width: auto; }
.filters select { width: auto; max-width: 100%; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(226px,100%),1fr)); gap: .65rem; }
.item-grid.list { grid-template-columns: 1fr; }
.item-card { display: grid; gap: .65rem; align-content: start; overflow-wrap: anywhere; }
.item-card p { white-space: pre-wrap; }
.item-card .card-source { color: var(--accent-text); font-size: .86rem; font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; gap: .32rem; }
.tags span { border: 1px solid var(--stroke); padding: .18rem .45rem; border-radius: 4px; font-size: .79rem; color: var(--muted); }
.empty { padding: 1.3rem; border: 1px dashed var(--stroke); border-radius: 9px; color: var(--muted); }
.invite-banner { margin-bottom: .85rem; display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
#more-items { margin-top: 1rem; }
dialog { width: min(540px, calc(100% - 32px)); max-height: 88dvh; padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--stroke-strong); border-radius: 11px; }
dialog::backdrop { background: var(--backdrop); }
.dialog-body { display: grid; gap: .75rem; padding: 1.2rem; }
.dialog-top { align-items: center; }
.dialog-top h2 { margin: 0; }
.dialog-section { display: grid; gap: .55rem; margin-bottom: .85rem; }
.dialog-section h3 { font-size: 1rem; }
.comment { border-bottom: 1px solid var(--stroke); padding-bottom: .5rem; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-workspace { min-height: 52vh; }
.editor-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.editor-grid { gap: 1rem; align-items: start; grid-template-columns: minmax(0,1.45fr) minmax(270px,1fr); }
.editor-preview { min-height: 340px; display: grid; place-items: center; overflow: hidden; }
.editor-preview canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 68vh; object-fit: contain; }
.preview-empty { display: grid; justify-items: center; text-align: center; color: var(--muted); gap: .8rem; }
.preview-symbol { display: block; width: 42px; height: 32px; border: 1px solid var(--muted); border-radius: 6px; position: relative; overflow: hidden; }
.preview-symbol::before { content: ""; position: absolute; right: 8px; top: 6px; width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; }
.preview-symbol::after { content: ""; position: absolute; left: 8px; top: 17px; width: 20px; height: 20px; border: 1px solid var(--muted); transform: rotate(45deg); }
.paired { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .65rem; }
.check { display: flex; gap: .55rem; align-items: center; }
#file-preview { width: 100%; display: grid; gap: .7rem; }
#file-preview audio, #file-preview video, #file-preview img { display: block; max-width: 100%; max-height: 300px; }
.file-preview-row { padding-block: .65rem; border-bottom: 1px solid var(--stroke); display: grid; gap: .5rem; overflow-wrap: anywhere; }
.archive-input { display: grid; gap: .6rem; margin-top: 1.2rem; min-width: 0; }
.archive-input input { max-width: 100%; }
.archive-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .75rem; }
@media (min-width: 701px) {
  .archive-filters:has(label[for="x-archive-year"]:not([hidden])) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .65fr); }
}
.archive-filters label { display: grid; gap: .35rem; min-width: 0; }
.archive-filters label[hidden] { display: none; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
#x-archive-results > .archive-toolbar { margin-top: .65rem; }
.archive-toolbar h2 { overflow-wrap: anywhere; font-size: 1.1rem; }
.archive-files { list-style: none; padding: 0; margin: .8rem 0 0; border-top: 1px solid var(--stroke); }
.archive-file-row { display: grid; gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--stroke); }
.archive-file-row p { font-size: .85rem; margin-top: .2rem; }
.archive-file-row .archive-caption { overflow-wrap: anywhere; }
.archive-pagination { margin-top: .8rem; }
.archive-preview-media { display: grid; justify-items: start; gap: .8rem; }
.archive-preview-media img, .archive-preview-media video { display: block; max-width: 100%; max-height: 62vh; }
.archive-preview-media audio { max-width: 100%; }
@media (max-width: 800px) {
  .download-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split { gap: 1.4rem; }
  .hero { padding-top: 52px; }
  .workspace { grid-template-columns: minmax(130px,180px) minmax(0,1fr); gap: .75rem; }
}
@media (max-width: 440px) {
  .download-grid { grid-template-columns: 1fr; }
  .archive-filters { grid-template-columns: 1fr; }
}
@media (max-width: 630px) {
  .shell { width: calc(100% - 32px); }
  .top-row { flex-wrap: wrap; padding-block: .78rem; column-gap: .9rem; row-gap: .6rem; min-height: auto; }
  .top-row .wordmark { flex: 1 1 50%; }
  .top-row nav { order: 1; width: 100%; gap: clamp(.55rem, 4vw, 1.25rem); }
  .footer { align-items: start; flex-direction: column; }
  .footer nav { gap: 1rem; flex-wrap: wrap; }
  .hero { padding-block: 40px 32px; }
  .resolve-box { margin-top: 1.3rem; padding: .8rem; }
  .entry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-row input { grid-column: 1/-1; }
  .split, .workspace, .auth-wrap { grid-template-columns: 1fr; }
  .page-intro { padding-top: 37px; }
  .editor-callout { align-items: start; flex-direction: column; }
  .editor-preview { min-height: 190px; }
  .board-index { align-self: start; }
  .board-index #board-index { display: flex; flex-wrap: wrap; }
  .board-index .board-choice { width: fit-content; }
  .auth-art { order: 2; }
}

/* ---------- Collections app (growth plan phases 2, 3 and 5) ---------- */
/* The page fills the screen before the session check, so nothing visible moves when the form or workspace appears. */
main:has(> #workspace) { min-height: calc(100dvh - 74px); }
.auth-title { font-size: clamp(2rem, 5vw, 3rem); }
.auth-wrap { padding-block: 2.2rem 2rem; }
.product-shot { margin: 0; border: 1px solid var(--stroke); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.product-shot img { width: 100%; height: auto; }
.product-shot figcaption { padding: .6rem .85rem; font-size: var(--text-s); color: var(--muted); border-top: 1px solid var(--stroke); }
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); width: min(1480px, 100%); margin-inline: auto; min-height: calc(100dvh - 74px); }
.sidebar { border-right: 1px solid var(--stroke); padding: 1.1rem 1rem 2rem; display: grid; gap: 1.1rem; align-content: start; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sidebar-title { font-size: 1.05rem; letter-spacing: -.01em; }
.board-groups { display: grid; gap: .9rem; }
.board-group h3 { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: .3rem; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.board-choice { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .6rem; align-items: center; width: 100%; padding: .32rem .45rem; border: 0; border-radius: var(--radius-s); background: none; color: var(--text); text-align: left; min-height: 46px; }
.board-choice:hover { background: var(--hover); }
.board-choice[aria-current=page] { background: var(--raised); box-shadow: inset 3px 0 0 var(--accent); }
.board-cover img, .cover-tile { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; }
.cover-tile { display: grid; place-items: center; background: var(--raised); color: var(--muted); font-weight: 700; font-size: .85rem; border: 1px solid var(--stroke); }
.cover-tile.kind-inbox { background: var(--episode-bg); color: var(--episode-fg); border-color: transparent; }
.cover-tile.kind-episode { background: var(--used-bg); color: var(--used-fg); border-color: transparent; }
.cover-tile.kind-project { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent-text); border-color: transparent; }
.board-name { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; font-size: .93rem; font-weight: 560; line-height: 1.25; }
.board-count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar .search-all, .sidebar .saved-searches { margin: 0; }
.checklist { border: 1px solid var(--stroke); border-radius: var(--radius); padding: .8rem .9rem; display: grid; gap: .5rem; background: var(--surface); }
.checklist h3 { font-size: .95rem; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9rem; }
.checklist li { display: flex; gap: .5rem; align-items: center; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.check-mark { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid var(--stroke-strong); font-size: .7rem; flex: 0 0 auto; }
.checklist li.done .check-mark { background: var(--used-bg); color: var(--used-fg); border-color: transparent; }
.account-menu { border-top: 1px solid var(--stroke); padding-top: .7rem; }
.account-menu summary { cursor: pointer; overflow-wrap: anywhere; font-weight: 600; }
.account-menu button { display: block; margin-top: .65rem; }
.board-pane { padding: 1.1rem clamp(1rem, 2.4vw, 1.9rem) 3rem; min-width: 0; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 1rem; }
.topbar-title { display: grid; gap: .2rem; min-width: 0; }
.topbar-title h1 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.topbar-actions { display: flex; gap: .5rem; align-items: center; flex: 1 1 22rem; justify-content: flex-end; max-width: 34rem; }
.topbar-actions input { flex: 1 1 12rem; min-height: 40px; padding-block: .5rem; }
.board-description { margin-top: .35rem; max-width: 70ch; font-size: .93rem; }
.kind-chip { justify-self: start; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; color: var(--muted); }
.kind-chip.kind-episode { color: var(--used-fg); }
.kind-chip.kind-inbox { color: var(--episode-fg); }
.kind-chip.kind-project { color: var(--accent-text); }
.icon-button { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 .4rem; border-radius: var(--radius-s); border: 1px solid transparent; background: none; color: var(--text); font-size: 1.05rem; line-height: 1; }
.icon-button:hover { background: var(--hover); }
.icon-button:disabled { opacity: .35; cursor: default; }
.button.icon-button { padding: 0 .6rem; }
.view-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-block: 1rem .7rem; }
.segmented { display: inline-flex; border: 1px solid var(--stroke-strong); border-radius: 8px; padding: 2px; background: var(--raised); flex-wrap: wrap; }
.segment { border: 0; background: none; color: var(--muted); padding: .4rem .8rem; border-radius: 6px; font-weight: 600; font-size: .87rem; min-height: 36px; }
.segment[aria-pressed=true] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px #0003; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: end; padding: .8rem; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); margin-block: 0 .7rem; }
.filters label { font-size: .82rem; display: grid; gap: .2rem; }
.filters label input, .filters label select { margin: 0; min-height: 38px; padding-block: .4rem; width: auto; min-width: 9rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .14rem .55rem; font-size: .76rem; font-weight: 600; background: var(--chip-bg); color: var(--chip-fg); border: 0; line-height: 1.5; min-height: 24px; }
button.chip { cursor: pointer; }
button.chip:hover { background: var(--hover); }
.tag-chip { font-weight: 560; }
.muted-chip { color: var(--muted); }
.filter-chip { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--text); padding-right: .2rem; }
.chip-clear { border: 0; background: none; color: inherit; border-radius: 50%; width: 26px; height: 26px; font-size: 1rem; line-height: 1; }
.chip-clear:hover { background: var(--hover); }
.status-deleted { background: var(--deleted-bg); color: var(--deleted-fg); }
.status-unavailable { background: var(--cut-bg); color: var(--cut-fg); }
.status-used, .segment-used.chip { background: var(--used-bg); color: var(--used-fg); }
.status-episode, .segment-candidate.chip { background: var(--episode-bg); color: var(--episode-fg); }
.segment-cut.chip { background: var(--cut-bg); color: var(--cut-fg); }
.text-chip { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--stroke-strong); text-underline-offset: .2em; min-height: 24px; }
.text-chip:hover { color: var(--accent-text); }
.masonry { columns: 15.5rem; column-gap: .9rem; }
.masonry > * { break-inside: avoid; margin-bottom: .9rem; }
.masonry > .empty-state { column-span: all; }
.card { display: grid; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); overflow: hidden; position: relative; }
.card:hover { border-color: var(--stroke-strong); }
.card.selected { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-media { display: block; padding: 0; border: 0; background: var(--raised); width: 100%; cursor: pointer; }
.card-media img { width: 100%; height: auto; display: block; }
.platform-tile { display: grid; place-items: center; align-content: center; gap: .1rem; aspect-ratio: 4 / 3; width: 100%; font-weight: 760; font-size: 2rem; letter-spacing: -.04em; }
.platform-tile small { font-size: .74rem; letter-spacing: .02em; font-weight: 600; opacity: .85; }
.platform-tile.small { width: 56px; height: 56px; aspect-ratio: 1; font-size: 1.1rem; border-radius: 8px; }
.card-body { display: grid; gap: .45rem; padding: .7rem .8rem .55rem; }
.card-meta { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.platform-name { font-weight: 650; color: var(--text); }
.card h3 { font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; }
.card-title { border: 0; background: none; padding: 0; color: var(--text); font: inherit; text-align: left; overflow-wrap: anywhere; }
.card-title:hover { text-decoration: underline; text-underline-offset: .18em; }
.card-foot { display: flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.card-tools { margin-left: auto; display: inline-flex; gap: .1rem; }
.star[aria-pressed=true] { color: var(--accent-text); }
.card.is-deleted .card-media { position: relative; }
.card.is-deleted .card-media::after { content: "Deleted at source"; position: absolute; left: .5rem; top: .5rem; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--deleted-bg); color: var(--deleted-fg); }
.card .item-select { position: absolute; z-index: 1; top: .45rem; right: .45rem; background: var(--surface); padding: .25rem .5rem; border-radius: var(--radius-s); border: 1px solid var(--stroke); }
.skeleton { pointer-events: none; }
.skeleton-media { aspect-ratio: 4 / 3; background: var(--raised); }
.skeleton-media.tall { aspect-ratio: 3 / 4; }
.skeleton-line { height: .8rem; margin: .7rem .8rem 0; border-radius: 4px; background: var(--raised); }
.skeleton-line.short { width: 45%; margin-bottom: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton-media, .skeleton-line { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .55; } }
}
.empty-state { display: grid; justify-items: start; gap: .8rem; padding: 2.4rem clamp(1rem, 4vw, 2.6rem); border: 1px dashed var(--stroke-strong); border-radius: var(--radius-l); max-width: 60rem; }
.empty-state h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.empty-state p { max-width: 58ch; }
.empty-state.compact { padding: 1.6rem; }
.spot { width: 88px; height: 64px; border-radius: 12px; background:
  linear-gradient(var(--surface), var(--surface)) 10px 10px / 30px 22px no-repeat,
  linear-gradient(var(--surface), var(--surface)) 46px 10px / 32px 34px no-repeat,
  linear-gradient(var(--surface), var(--surface)) 10px 38px / 30px 16px no-repeat,
  color-mix(in srgb, var(--accent) 35%, var(--raised)); }
.spot-episode { background-color: color-mix(in srgb, var(--used-fg) 30%, var(--raised)); }
.spot-inbox { background-color: color-mix(in srgb, var(--episode-fg) 30%, var(--raised)); }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .7rem; width: 100%; margin-top: .4rem; }
.template-card { display: grid; gap: .3rem; text-align: left; padding: 1rem; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); color: var(--text); min-height: 96px; align-content: start; }
.template-card:hover { border-color: var(--accent); }
.template-card span { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.item-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.item-table th, .item-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--stroke); text-align: left; vertical-align: top; }
.item-table tr:last-child td { border-bottom: 0; }
.item-table td:first-child { min-width: 16rem; }
.item-table td:first-child .chip { margin: .3rem .3rem 0 0; }
.th-button { border: 0; background: none; padding: .2rem 0; font: inherit; font-weight: 650; color: var(--muted); white-space: nowrap; min-height: 32px; }
.th-button:hover, th[aria-sort] .th-button { color: var(--text); }
.row-title { font-weight: 600; text-decoration: none; }
.row-title:hover { text-decoration: underline; }
tr.is-deleted .row-title { text-decoration: line-through; }
.run-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.run-totals { font-weight: 650; font-variant-numeric: tabular-nums; }
.run-sheet { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.run-row { border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); padding: .7rem .8rem; display: grid; gap: .55rem; }
.run-row.segment-cut { opacity: .62; }
.run-row.segment-used { box-shadow: inset 3px 0 0 var(--used-fg); }
.run-row.dragging { opacity: .4; }
.run-row.drop-target { outline: 2px dashed var(--focus); outline-offset: 2px; }
.run-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .6rem; align-items: start; }
.run-number { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--raised); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.drag-handle { cursor: grab; color: var(--muted); padding-top: .2rem; user-select: none; }
.run-main { display: grid; gap: .2rem; min-width: 0; }
.run-title { font-weight: 650; font-size: 1rem; text-decoration: none; overflow-wrap: anywhere; }
.run-title:hover { text-decoration: underline; }
.run-main .button.small { min-height: 0; padding: 0; border: 0; background: none; color: var(--accent-text); text-decoration: underline; font-weight: 560; font-size: inherit; }
.run-fields { display: flex; flex-wrap: wrap; gap: .5rem .7rem; align-items: end; padding-left: 2.4rem; }
.clock-field { display: grid; gap: .15rem; font-size: .76rem; color: var(--muted); font-weight: 600; }
.clock-field select, .clock-field input { margin: 0; min-height: 36px; padding: .35rem .5rem; width: auto; }
.clock-field .clock { width: 5.4rem; font-variant-numeric: tabular-nums; }
.run-moves { display: inline-flex; gap: .2rem; margin-left: auto; }
.run-row textarea { margin-left: 2.4rem; width: calc(100% - 2.4rem); min-height: 44px; font-size: .9rem; }
.talking-text { white-space: pre-wrap; font-size: .9rem; }
.timeline-month { margin-bottom: 1.4rem; }
.timeline-month h2 { font-size: 1.05rem; letter-spacing: -.01em; padding-bottom: .4rem; border-bottom: 1px solid var(--stroke); margin-bottom: .5rem; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.timeline-item { display: grid; grid-template-columns: 7.2rem 64px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .45rem .3rem; border-radius: var(--radius-s); }
.timeline-item:hover { background: var(--surface); }
.timeline-item time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-thumb img, .timeline-thumb .platform-tile { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; aspect-ratio: auto; font-size: 1rem; }
.timeline-thumb .platform-tile small { display: none; }
.timeline-main { display: grid; gap: .2rem; min-width: 0; }
.timeline-title { font-weight: 620; text-decoration: none; overflow-wrap: anywhere; }
.timeline-item.is-deleted .timeline-title { text-decoration: line-through; }
dialog.sheet { margin: 0 0 0 auto; width: min(580px, 100%); height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0 0 0 1px; }
.sheet-body { display: grid; gap: .9rem; padding: 1.1rem 1.2rem 2rem; }
.sheet-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--raised); }
.sheet-media img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.sheet-media .platform-tile { aspect-ratio: 16 / 7; }
.sheet-section { display: grid; gap: .55rem; border-top: 1px solid var(--stroke); padding-top: .9rem; }
.sheet-section h3 { font-size: .95rem; }
.caption-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.roomy { min-height: 9rem; }
.notice { padding: .7rem .85rem; border-radius: var(--radius-s); background: var(--deleted-bg); color: var(--deleted-fg); font-size: .9rem; }
.place-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; font-size: .92rem; }
.menu { position: fixed; inset: auto; margin: 0; padding: .3rem; min-width: 13rem; max-width: calc(100vw - 16px); border: 1px solid var(--stroke-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.menu-item { display: block; width: 100%; text-align: left; padding: .5rem .75rem; min-height: 40px; border: 0; border-radius: var(--radius-s); background: none; color: var(--text); font-size: .92rem; }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline-offset: -2px; }
.menu-item.danger { color: var(--danger); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; gap: 1rem; align-items: center; max-width: calc(100% - 32px); padding: .7rem 1rem; border-radius: var(--radius); background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: .92rem; }
.toast-undo { color: var(--bg); font-weight: 700; }
dialog.triage { width: min(920px, calc(100% - 24px)); }
.triage-body { display: grid; gap: .9rem; padding: 1.2rem; }
.triage-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: start; }
.triage-media { border-radius: var(--radius); overflow: hidden; background: var(--raised); }
.triage-media img { width: 100%; height: auto; max-height: 50vh; object-fit: contain; }
.triage-targets { display: flex; flex-wrap: wrap; gap: .45rem; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; }
.shortcuts dd { margin: 0; }
kbd { display: inline-block; min-width: 1.6rem; padding: .05rem .4rem; border: 1px solid var(--stroke-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--raised); font: 600 .85rem/1.4 ui-monospace, Consolas, monospace; text-align: center; }
.search-result { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--stroke); }
.search-result img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.search-result h3 { font-size: .98rem; margin-block: .15rem; }
.bottom-bar { display: none; }
.print-view { display: none; }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .sidebar { display: none; }
  body.show-boards .sidebar { display: grid; position: fixed; z-index: 15; inset: 0 0 64px 0; overflow-y: auto; background: var(--bg); border: 0; padding: 1rem 16px 2rem; }
  .board-pane { padding: .9rem 16px 6rem; }
  .bottom-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 16; left: 0; right: 0; bottom: 0; height: 64px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--stroke); background: var(--surface); }
  .bottom-bar button { border: 0; background: none; color: var(--text); font-weight: 600; font-size: .86rem; min-height: 56px; }
  .bottom-bar .bar-add { color: var(--accent-text); font-weight: 760; }
  .topbar-actions { flex-basis: 100%; max-width: none; }
  .masonry { columns: 2 10rem; column-gap: .6rem; }
  .masonry > * { margin-bottom: .6rem; }
  .card-body { padding: .55rem .6rem .45rem; }
  .card h3 { font-size: .93rem; }
  .card-foot .saved { display: none; }
  .run-fields, .run-row textarea { padding-left: 0; margin-left: 0; width: 100%; }
  .timeline-item { grid-template-columns: 64px minmax(0, 1fr); }
  .timeline-item time { grid-column: 1 / -1; }
  .triage-card { grid-template-columns: 1fr; }
  .toast { bottom: 76px; }
  .filters label input, .filters label select { min-width: 0; width: 100%; }
  .filters label { flex: 1 1 8rem; }
}
@media print {
  body.printing > :not(.print-view) { display: none !important; }
  body.printing { background: #fff; color: #000; }
  .print-view { display: block; font: 11pt/1.45 Georgia, serif; color: #000; }
  .print-view h1 { font-size: 20pt; letter-spacing: 0; margin-bottom: 6pt; }
  .print-view h2 { font-size: 13pt; letter-spacing: 0; margin-top: 12pt; }
  .print-view li { margin-bottom: 6pt; break-inside: avoid; }
}

/* ---------- Marketing pages (growth plan phase 5) ---------- */
.download-hero {
  padding-block: clamp(2.65rem, 6vw, 4.55rem) clamp(2.5rem, 4.25vw, 3.45rem);
  background: radial-gradient(ellipse 65% 90% at 50% 0%, var(--hero-tint), transparent);
  border-bottom: 1px solid var(--stroke);
}
.download-hero .hero-intro { text-align: center; }
.download-hero h1 { font-size: clamp(2.45rem, 7vw, 5.15rem); line-height: .99; }
.download-hero .hero-intro p { margin: 1.15rem auto 0; max-width: 40ch; }
.download-hero .resolve-box { max-width: 900px; margin-inline: auto; border-radius: 15px; box-shadow: var(--shadow); }
.download-hero .entry-row > * { min-height: 49px; }
.home-guides { padding-block: 2rem 2.4rem; }
.home-guides-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem 1.5rem; }
.home-guides-heading a { color: var(--accent-text); font-size: .95rem; }
.home-guides .sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; border: 0; }
.home-guides .source-row { padding: .65rem .8rem; border: 1px solid var(--stroke); border-radius: 10px; background: var(--surface); }
.home-guides .source-row:hover { background: var(--raised); border-color: var(--hover-stroke); }
.home-guides .source-row small { font-size: .88rem; }
@media (max-width: 960px) { .home-guides .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 630px) { .download-hero .entry-row button { padding-inline: .4rem; } }
@media (max-width: 480px) { .home-guides .sources { grid-template-columns: 1fr; } }
.home-collections, .landing-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 4vw, 3.4rem); align-items: center; padding-block: 2.6rem; border-top: 1px solid var(--stroke); }
.landing-split.reverse > :first-child { order: 2; }
.landing-copy { display: grid; gap: .9rem; justify-items: start; }
.landing-copy p, .landing-split p { color: var(--muted); max-width: 52ch; }
.eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent-text) !important; }
.lead { font-size: clamp(1.02rem, 2.2vw, 1.22rem); }
.small-print { font-size: .86rem; }
.landing-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; padding-block: clamp(2.2rem, 6vw, 4.5rem) 2.6rem; }
.landing-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -.055em; line-height: 1.02; }
.landing-section { padding-block: 2.6rem; border-top: 1px solid var(--stroke); display: grid; gap: 1.2rem; }
.landing-split h2, .landing-section h2 { margin-bottom: .2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { display: grid; gap: .55rem; align-content: start; padding: 1.1rem; border: 1px solid var(--stroke); border-radius: var(--radius-l); background: var(--surface); }
.steps h3 { counter-increment: step; }
.steps h3::before { content: counter(step) ". "; color: var(--accent-text); }
.steps p, .feature-grid p { color: var(--muted); font-size: .95rem; }
.spot-art { width: 120px; height: auto; border-radius: 14px; }
.checks { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.checks li { position: relative; padding-left: 1.6rem; color: var(--text); font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: .15rem; top: .38rem; width: .55rem; height: .3rem; border: solid var(--accent-text); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem 1.6rem; }
.feature-grid h3 { margin-bottom: .3rem; }
.keep { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.keep-copy { display: grid; gap: .7rem; justify-items: start; }
.keep-copy p { color: var(--muted); }
.keep-cards { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .8rem; align-items: center; }
.keep-arrow { font-size: 1.6rem; color: var(--accent-text); }
.demo-card .card-media { cursor: default; }
.pricing-intro { text-align: center; display: grid; justify-items: center; gap: .3rem; }
.pricing-intro p { margin-inline: auto; }
.billing-toggle { display: inline-flex; gap: 0; border: 1px solid var(--stroke-strong); border-radius: 999px; padding: 3px; margin: 1.2rem 0 0; background: var(--raised); }
.billing-toggle label { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; min-height: 40px; }
.billing-toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; cursor: pointer; }
.billing-toggle label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 3px #0003; }
.billing-toggle label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.billing-toggle .save { font-size: .76rem; color: var(--used-fg); background: var(--used-bg); padding: .05rem .45rem; border-radius: 999px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.pricing-card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .7rem; padding: 1.4rem; border: 1px solid var(--stroke); border-radius: var(--radius-l); background: var(--surface); }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-flag { justify-self: start; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.pricing-card h3 { font-size: 1.3rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
.price .amount { font-size: 2.4rem; font-weight: 760; letter-spacing: -.04em; }
.price .period { color: var(--muted); }
.price .equivalent { flex-basis: 100%; color: var(--muted); font-size: .85rem; }
.pricing-card .button { width: 100%; }
.preview-note { margin-top: 1.2rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--stroke); }
.pricing-faq, .landing-section.reading { padding-bottom: 2.4rem; }
.pricing-faq { margin-top: 2.6rem; }
.pricing-faq h2 { margin-bottom: .6rem; }
.faq { display: grid; border-top: 1px solid var(--stroke); }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 650; min-height: 44px; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }
.cta-band { text-align: center; display: grid; justify-items: center; gap: .7rem; padding: 2.8rem 1rem 3.4rem; border-top: 1px solid var(--stroke); }
.cta-band p { color: var(--muted); max-width: 52ch; }
@media (max-width: 860px) {
  .home-collections, .landing-split, .landing-hero, .keep { grid-template-columns: 1fr; }
  .landing-split.reverse > :first-child { order: 0; }
  .steps, .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .keep-cards { grid-template-columns: 1fr; }
  .keep-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 630px) {
  .top-row nav { flex-wrap: wrap; row-gap: .4rem; }
}

/* ---------- Capture page (growth plan phase 4) ---------- */
.key-list { list-style: none; margin: .6rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.key-row { display: grid; gap: .45rem; padding: .8rem .9rem; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.key-row code, .capture-page code { overflow-wrap: anywhere; font-size: .88rem; }
.key-token { margin-top: .8rem; border-color: var(--accent); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.steps-list { padding-left: 1.3rem; display: grid; gap: .5rem; }
.steps-list li { padding-left: .2rem; }
.bookmarklet { cursor: grab; }
.capture-page section { border-top: 1px solid var(--stroke); padding-top: 1.2rem; }
.demo-loop { margin: 0; display: grid; gap: .5rem; }
.demo-loop video { width: 100%; height: auto; border-radius: var(--radius-l); border: 1px solid var(--stroke); background: var(--bg); }
.demo-loop figcaption { color: var(--muted); font-size: .86rem; }
/* Plans and billing */
.usage-note { border: 1px solid var(--stroke); border-radius: var(--radius); padding: .7rem .85rem; background: var(--surface); font-size: .88rem; display: grid; gap: .3rem; }
.meter { display: grid; gap: .3rem; }
.meter progress { width: 100%; height: .55rem; accent-color: var(--accent); }
.price-line { font-weight: 650; }
/* Teams, mentions, activity and search help (growth plan phase 8) */
.inbox-link { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; padding: .5rem .55rem; border: 1px solid var(--stroke); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font-weight: 600; font-size: .88rem; min-height: 40px; text-align: left; }
.inbox-link:hover { background: var(--hover); }
.inbox-link .count { min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .78rem; text-align: center; }
.inbox-list, .activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.inbox-list li.unread .inbox-entry { font-weight: 700; }
.inbox-entry { text-decoration: none; text-align: left; }
.status-assigned { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--text); }
.search-help { flex-basis: 100%; font-size: .8rem; }
.search-help code { font-size: .78rem; padding: 0 .2rem; border-radius: 3px; background: var(--raised); }
.notices { border: 1px solid var(--stroke); border-radius: var(--radius-s); padding: .6rem .8rem; display: grid; gap: .45rem; }
.notices legend { font-weight: 650; font-size: .9rem; padding: 0 .3rem; }
.upgrade-hint { font-size: .88rem; }
