/* "Pressed peony" — design handoff 20 Nov 2026. One lead accent (peony), neutral buttons, plum-grey neutrals. */
:root {
  --paper: #f5f4f7; --surface: #ffffff; --raised: #f1eff4;
  --ink: #1c1822; --muted: #5e5869; --faint: #8a8494;
  --line: #e6e3ea; --line-strong: #cdc8d4;
  --peony: #b0245c; --peony-soft: #fae8ef; --peony-ink: #ffffff;
  --pollen: #8a5300; --pollen-soft: #fbefd8;
  --leaf: #2d6a4c; --leaf-soft: #e3efe8;
  --cool: #857e90;
  --risk: #a3311a; --risk-soft: #fdebe5;
  --btn: #1c1822; --btn-text: #ffffff;
  --scrim: rgb(28 24 34 / .45);
  --radius: 12px;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --text: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121014; --surface: #1b181f; --raised: #26222b;
    --ink: #f1edf4; --muted: #aea6b8; --faint: #6f6878;
    --line: #2f2a35; --line-strong: #463f4e;
    --peony: #f27aa7; --peony-soft: #3d1d2c; --peony-ink: #1b0d14;
    --pollen: #e8b25a; --pollen-soft: #372810;
    --leaf: #86cfa6; --leaf-soft: #17301f;
    --cool: #938b9e;
    --risk: #ff9d80; --risk-soft: #3b1c15;
    --btn: #f1edf4; --btn-text: #121014;
    --scrim: rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121014; --surface: #1b181f; --raised: #26222b;
  --ink: #f1edf4; --muted: #aea6b8; --faint: #6f6878;
  --line: #2f2a35; --line-strong: #463f4e;
  --peony: #f27aa7; --peony-soft: #3d1d2c; --peony-ink: #1b0d14;
  --pollen: #e8b25a; --pollen-soft: #372810;
  --leaf: #86cfa6; --leaf-soft: #17301f;
  --cool: #938b9e;
  --risk: #ff9d80; --risk-soft: #3b1c15;
  --btn: #f1edf4; --btn-text: #121014;
  --scrim: rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[v-cloak] { display: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--text); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--peony); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--ink); background: var(--raised); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.btn.primary:hover:not(:disabled) { background: var(--btn); border-color: var(--btn); opacity: .86; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); height: 32px; font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: var(--raised); border-color: transparent; color: var(--ink); }
.btn.ghost.tracking { color: var(--leaf); opacity: 1; }
.btn.quiet { background: var(--raised); border-color: var(--raised); color: var(--ink); font-weight: 500; }
.btn.quiet:hover:not(:disabled) { border-color: var(--line-strong); }
.btn.quiet span[aria-hidden] { font-weight: 700; color: var(--muted); }
.btn.view { background: var(--peony-soft); border-color: var(--peony-soft); color: var(--peony); }
.btn.view:hover:not(:disabled) { background: var(--peony-soft); border-color: var(--peony); }
.linkish.view { color: var(--peony); text-decoration-color: var(--peony); }
.btn.danger { color: var(--risk); }
.btn.danger:hover:not(:disabled) { background: var(--risk-soft); border-color: var(--risk); }
.btn.later { border-style: dashed; background: transparent; color: var(--muted); font-weight: 500; }
.btn.later small { font-size: 11px; font-weight: 600; background: var(--raised); color: var(--muted); padding: 1px 6px; border-radius: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost.tracking:disabled { opacity: 1; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkish:hover { text-decoration-color: var(--ink); }

.spinner { width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--peony); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 24px; padding: 16px 32px; background: var(--surface); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.mark { width: 30px; height: 30px; border-radius: 999px; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--peony) 78%, var(--line-strong) 0); }
.mark::before { content: ''; width: 22px; height: 22px; border-radius: 999px; background: var(--surface); grid-area: 1 / 1; }
.mark::after { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--peony); grid-area: 1 / 1; }
.freshness { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--raised); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--muted); }
.freshness .live { width: 7px; height: 7px; border-radius: 999px; background: var(--leaf); flex: none; }
.freshness .dotsep { color: var(--faint); }
.freshness .short { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.freshness.busy { background: var(--peony-soft); color: var(--ink); }
.top > .btn.primary { height: 38px; }
.theme-toggle { margin-left: -12px; }
.theme-toggle span[aria-hidden] { font-size: 15px; line-height: 1; }

/* ---------- banner ---------- */
.banner { margin: 16px 32px 0; padding: 12px 16px; border-radius: var(--radius); background: var(--risk-soft); color: var(--ink);
  display: flex; gap: 14px; align-items: center; font-size: 14px; }
.banner b { color: var(--risk); font-weight: 600; flex: none; }
.banner span { flex: 1; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.count { background: var(--raised); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 600; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 24px 32px 40px; max-width: 1440px; margin: 0 auto; }
.single { padding: 24px 32px 40px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } } /* minmax: a long source name in the filter must not widen the page */

.filters { display: flex; gap: 8px; margin-bottom: 14px; }
input, select { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; height: 38px; }
input::placeholder { color: var(--muted); }
.filters input { flex: 1; min-width: 0; }
.filters select { min-width: 0; max-width: 45%; }
.board-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin: 0 2px 10px; flex-wrap: wrap; }

.empty { color: var(--muted); padding: 24px 0; max-width: 60ch; }
.empty-card { display: flex; gap: 18px; align-items: flex-start; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.empty-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.empty-card p { max-width: 60ch; margin-bottom: 12px; }
.empty-ring { width: 52px; height: 52px; border-radius: 999px; border: 3px solid var(--line-strong); display: grid; place-items: center; font: 700 18px var(--display); color: var(--muted); flex: none; }

/* ---------- ranked rows ---------- */
.rows-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 120px 136px; gap: 20px; align-items: start; padding: 20px 22px; }
.row + .row { border-top: 1px solid var(--line); }

.fit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ring { --c: var(--cool); width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 48px; height: 48px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; font: 700 21px/1 var(--display); }
.ring.hot { --c: var(--peony); }
.ring.warm { --c: var(--pollen); }
.band { font-size: 11px; font-weight: 600; color: var(--muted); }
.band.hot { color: var(--peony); }
.band.warm { color: var(--pollen); }

.headline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.headline h2 { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.cat { color: var(--muted); font-size: 13px; }
.explainer { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 66ch; }
.angle { margin: 6px 0 10px; font-size: 16px; line-height: 1.5; max-width: 66ch; }
.angle b { font-weight: 600; }
.risk { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin: 0 0 10px; max-width: 72ch; }
.risk b { color: var(--pollen); font-weight: 600; flex: none; }

.growth { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.growth.up { background: var(--peony-soft); color: var(--peony); }
.growth.new { background: var(--leaf-soft); color: var(--leaf); }
.growth.down, .growth.flat { background: var(--raised); color: var(--muted); }

.meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; font-size: 13px; color: var(--muted); }
.meta .srcs { color: var(--ink); font-weight: 500; }

.links { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.links a { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: baseline; font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.links a:hover { text-decoration-color: var(--ink); }
.kind { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; display: inline-block; }
.kind.video, .kind.sound { color: var(--peony); }

.spark { width: 120px; height: 40px; overflow: visible; margin-top: 10px; }
.spark polyline { fill: none; stroke: var(--muted); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--peony); }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }

.other { border-top: 1px solid var(--line); background: var(--raised); }
.other summary { cursor: pointer; font-weight: 600; padding: 14px 22px; font-size: 14px; }
.other summary span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.other ul { list-style: none; padding: 0; margin: 0; background: var(--surface); }
.other li { display: flex; gap: 12px; align-items: center; padding: 10px 22px; font-size: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.other li .linkish { margin-left: auto; }
.o-score { width: 28px; color: var(--muted); font-weight: 600; text-align: right; }
.o-meta { color: var(--muted); font-size: 13px; }

/* ---------- side rail ---------- */
.rail { display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.panel h3 { font-size: 16px; font-weight: 700; }
.panel-head small { font-size: 12px; font-weight: 600; color: var(--leaf); }
.panel-head small.warn { color: var(--pollen); }
.soon, .sources { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.soon li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.days { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.1; }
.days b { display: block; font: 700 22px/1.1 var(--display); color: var(--ink); }
.soon strong { display: block; font-size: 14px; font-weight: 600; }
.soon small { font-size: 13px; color: var(--muted); }
.prep { color: var(--peony); font-weight: 600; }
.sources { gap: 8px; margin: 0; }
.sources li { display: grid; grid-template-columns: 7px 1fr auto; column-gap: 10px; align-items: center; font-size: 14px; }
.sources .num { font-size: 13px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--leaf); }
.sources .bad .dot { background: transparent; border: 2px solid var(--pollen); }
.sources .bad .num { color: var(--pollen); font-weight: 600; }
.sources .err { grid-column: 2 / -1; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
.sources .err.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sources .err-toggle { grid-column: 2 / -1; justify-self: start; margin-top: 2px; }

/* ---------- saved ideas ---------- */
.from { color: var(--muted); font-size: 14px; }

/* ---------- ideas pop-up ---------- */
.modal { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 14px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / .28); }
.modal::backdrop { background: var(--scrim); }
.modal-inner { padding: 24px 28px 28px; }
/* sticky header owns the top padding so nothing is clipped when the list scrolls under it */
.modal-inner { padding-top: 0; }
.modal-inner > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; position: sticky; top: 0; background: var(--paper); padding: 24px 0 12px; z-index: 1; border-bottom: 1px solid var(--line); }
.modal h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.modal-actions { display: flex; gap: 8px; }

.thinking { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 0 24px; text-align: center; }
.thinking h3 { font-size: 20px; font-weight: 600; max-width: 34ch; }
.thinking small { font-size: 13px; color: var(--muted); }
.sweep { position: relative; width: 96px; height: 96px; border-radius: 999px; overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 15px, var(--line-strong) 15px 16px); }
.sweep::before { content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--peony-soft) 85%, var(--peony) 100%); animation: spin 2.4s linear infinite; }
.sweep::after { content: ''; position: absolute; left: 42px; top: 42px; width: 12px; height: 12px; border-radius: 999px; background: var(--peony); }
@media (prefers-reduced-motion: reduce) { .sweep::before { animation-duration: 8s; } .spinner { animation-duration: 3s; } }
.timebar { width: min(440px, 100%); }
.timebar .track { position: relative; height: 8px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.timebar .window { position: absolute; left: 44%; right: 0; top: 0; bottom: 0; background: var(--peony-soft); }
.timebar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--peony); border-radius: 999px; transition: width 1s linear; }
.timebar .labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.timebar .labels b { color: var(--ink); font-weight: 600; }

.note { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.note > span { font: 600 14px/1.4 var(--display); }
.note p { font-size: 14px; line-height: 1.55; max-width: 90ch; }
.note .linkish { margin-top: 4px; }
.note .linkish, .idea-side .linkish { align-self: flex-start; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.concept.clamp { -webkit-line-clamp: 4; }

.ideas-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ideas-grid .featured { grid-column: 1 / -1; }
.ideas-grid > li { min-width: 0; }
/* every child may shrink: long titles, URLs and hashtags wrap instead of pushing past the card */
.idea-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; height: 100%; min-width: 0; overflow-wrap: anywhere; }
.idea-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: normal; }
.idea-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.idea-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.idea-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.idea-body, .idea-main, .idea-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wide .idea-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.idea-side section { display: flex; flex-direction: column; gap: 6px; }
.idea-side h4, .shots summary { font: 600 12px/1.3 var(--text); color: var(--muted); margin: 0; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.chip.fmt { border: 1px solid var(--line-strong); }
.u-post-today, .u-this-week, .u-evergreen { font-size: 13px; padding: 3px 10px; }
.u-post-today { background: var(--peony); color: var(--peony-ink); }
.u-this-week { background: var(--pollen-soft); color: var(--pollen); }
.u-evergreen { background: var(--raised); color: var(--muted); }
.effort { font-size: 13px; color: var(--muted); }
.hook { background: var(--peony-soft); border-radius: 10px; padding: 14px 16px; }
.hook span { display: block; font-size: 12px; font-weight: 600; color: var(--peony); margin-bottom: 4px; }
.hook p { font: 500 17px/1.45 var(--display); }
.concept { font-size: 15px; line-height: 1.55; }
.shots { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.shots summary { cursor: pointer; font-size: 13px; color: var(--ink); }
.shots summary small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.shots ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: shot; display: grid; gap: 8px; }
.shots li { counter-increment: shot; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.45; }
.shots li::before { content: counter(shot); width: 22px; height: 22px; border-radius: 999px; background: var(--raised); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.caption { background: var(--raised); padding: 12px 14px; border-radius: 8px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.facts div { border-left: 2px solid var(--line-strong); padding-left: 10px; }
.facts .watch { border-left-color: var(--pollen); }
.facts dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.facts .watch dt { color: var(--pollen); }
.facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.examples { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.examples li { min-width: 0; }
.examples a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; min-width: 0; }
.examples a:hover { border-color: var(--ink); background: var(--raised); }
.ex-title { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.examples small { font-size: 12px; color: var(--peony); font-weight: 600; }
.modal .banner { margin: 0; }

/* ---------- tracker ---------- */
.track-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.track-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.track-add input { width: 380px; max-width: 100%; }
.hint { color: var(--muted); font-size: 13px; }
.range { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; margin-left: auto; }
.range button { border: 0; background: var(--surface); padding: 0 12px; height: 34px; cursor: pointer; font-size: 13px; color: var(--muted); }
.range button.on { background: var(--ink); color: var(--paper); font-weight: 600; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.chart-head h3 { font-size: 17px; font-weight: 700; }
.chart-head small { font-size: 13px; color: var(--muted); }
.chart-wrap { position: relative; height: 280px; padding: 12px 16px 12px; }
.track-table { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--line); }
.track-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; }
.track-table th, .track-table td { padding: 11px 20px; border-bottom: 1px solid var(--line); }
.track-table tr:last-child td { border-bottom: 0; }
.track-table .term { font-weight: 600; }
.track-table .article { color: var(--muted); }
.track-table .views { font: 600 15px var(--display); }
.track-table .pos { color: var(--leaf); font-weight: 600; }
.track-table td:last-child { text-align: right; }
.swatch { display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: 10px; vertical-align: middle; }

/* ---------- dates ---------- */
.month { font-size: 18px; font-weight: 700; margin: 24px 2px 10px; display: flex; align-items: baseline; gap: 10px; }
.month:first-child { margin-top: 0; }
.month small { font: 400 13px var(--text); color: var(--muted); }
.date-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.date-list li { display: grid; grid-template-columns: 72px 1fr 220px 130px 230px; gap: 12px; align-items: center; padding: 14px 22px; }
.date-list li + li { border-top: 1px solid var(--line); }
.date-list .days { font-size: 12px; }
.date-list .days b { font-size: 28px; }
.d-body strong { display: block; font-size: 16px; font-weight: 600; }
.d-body small, .prep-by small { display: block; font-size: 13px; color: var(--muted); }
.prep-by b { font-size: 14px; font-weight: 600; }
.prep-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--peony); font-weight: 600; font-size: 13px; margin-left: 8px; }
.prep-flag::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--peony); }
.date-list .chip { justify-self: start; }
.date-list .d-actions { justify-self: end; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.k-peak { background: var(--peony-soft); color: var(--peony); }
.k-fun { background: var(--pollen-soft); color: var(--pollen); }
.k-awareness { background: var(--leaf-soft); color: var(--leaf); }
.k-bank-holiday { background: var(--raised); color: var(--muted); }

/* ---------- tablet & phone ---------- */
@media (max-width: 860px) {
  .row { grid-template-columns: 64px minmax(0, 1fr); }
  .spark { display: none; }
  .actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .date-list li { grid-template-columns: 72px 1fr auto; }
  .date-list .prep-by { grid-column: 2; }
  .date-list .chip { grid-column: 3; grid-row: 1; justify-self: end; }
  .date-list .d-actions { grid-column: 3; grid-row: 2; }
}
@media (max-width: 640px) {
  .top { padding: 12px 16px; gap: 6px 10px; }
  .brand h1 { font-size: 20px; }
  .mark { width: 26px; height: 26px; }
  .mark::before { width: 19px; height: 19px; }
  .mark::after { width: 7px; height: 7px; }
  .theme-toggle { margin-left: auto; height: 44px; }
  .top > .btn.primary { height: 44px; }
  .freshness { order: 3; width: 100%; margin: 0; background: none; padding: 0; font-size: 12px; }
  .freshness .live { display: none; }
  .freshness .long, .top > .btn .long { display: none; }
  .freshness .short { display: inline; }
  .tabs { padding: 0 8px; }
  .banner { margin: 12px 16px 0; flex-wrap: wrap; }
  .layout, .single { padding: 16px; }
  .filters input, .filters select { height: 44px; }
  .row { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 14px; }
  .ring { width: 48px; height: 48px; }
  .ring span { width: 38px; height: 38px; font-size: 17px; }
  .actions .btn { height: 44px; flex: 1; }
  .ideas-grid { grid-template-columns: 1fr; }
  .wide .idea-body { display: flex; flex-direction: column; }
  .note { grid-template-columns: 1fr; gap: 6px; }
  .modal-inner { padding: 0 16px 20px; }
  .modal-inner > header { padding-top: 16px; }
  .modal h2 { font-size: 22px; }
  .track-add input { width: 100%; }
  .range { margin-left: 0; }
  .track-table th:nth-child(2), .track-table td:nth-child(2) { display: none; }
  .track-table th, .track-table td { padding: 10px 12px; }
  .date-list li { grid-template-columns: 56px 1fr; padding: 14px 16px; }
  .date-list .chip, .date-list .d-actions, .date-list .prep-by { grid-column: 2; grid-row: auto; justify-self: start; justify-content: flex-start; }
}

/* ---- sign in ---- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; }
.auth { width: min(400px, 100%); display: grid; gap: 20px; }
.auth > .brand { justify-content: center; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.auth-card[hidden] { display: none; }
.auth-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.auth-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-card label[hidden] { display: none; }
.auth-card input { width: 100%; box-sizing: border-box; font-size: 16px; } /* 16px stops iOS zooming on focus */
.auth-card .btn.primary { height: 42px; margin-top: 4px; }
.auth-card .linkish { justify-self: center; }
.auth-help { margin: 0; font-size: 13px; color: var(--muted); }
.auth-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--risk-soft); color: var(--ink); font-size: 14px; }
.auth-error[hidden], .auth-help[hidden] { display: none; }

/* ---- account + users ---- */
.account { position: relative; font-size: 14px; }
.account > summary { list-style: none; gap: 8px; padding: 0 8px 0 4px; color: var(--ink); }
.account > summary::-webkit-details-marker { display: none; }
.account .avatar { width: 26px; height: 26px; border-radius: 999px; background: var(--peony-soft); color: var(--peony); display: grid; place-items: center; font: 700 13px var(--display); }
.account .who { font-weight: 600; }
.account .caret { font-size: 10px; color: var(--muted); }
.account .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgb(28 24 34 / .14); padding: 6px; display: flex; flex-direction: column; }
.account .menu-who { font-size: 12px; color: var(--muted); padding: 8px 10px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account .menu-who b { color: var(--ink); }
.account .menu a, .account .menu button { all: unset; box-sizing: border-box; padding: 10px; border-radius: 6px; cursor: pointer; color: var(--ink); font-size: 14px; }
.account .menu a:hover, .account .menu button:hover, .account .menu a:focus-visible, .account .menu button:focus-visible { background: var(--raised); }
.users-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.users-add input[type=text] { width: 220px; }
.users-add label.check { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.users-add label.check input { height: auto; }
.temp-pw { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--leaf-soft); color: var(--ink); }
.temp-pw code { font: 600 18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--leaf); }
.temp-pw p { margin: 0; flex-basis: 100%; font-size: 13px; }
.users-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.users-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.users-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.users-table tr:last-child td { border-bottom: 0; }
.users-table .actions { display: flex; gap: 8px; justify-content: flex-end; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--raised); color: var(--muted); }
.tag.warn { background: var(--pollen-soft); color: var(--pollen); }
.tag.bad { background: var(--risk-soft); color: var(--risk); }
@media (max-width: 640px) {
  .users-table thead { display: none; }
  .users-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 14px; border-bottom: 1px solid var(--line); gap: 4px; }
  .users-table td { padding: 0; border: 0; }
  .users-table .actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 6px; }
  .users-add input[type=text] { width: 100%; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- ideas modal: what's going on ---- */
.trend-explain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.trend-explain h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.trend-explain p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 80ch; }
.trend-explain .links { margin-top: 12px; }

/* URLs Claude wrote inside prose, shown as site-name chips */
.inline-link { display: inline-block; margin: 2px 2px; padding: 0 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 22px; text-decoration: none; white-space: nowrap; vertical-align: baseline; }
.inline-link:hover { border-color: var(--ink); }

/* ---- usage (admins) ---- */
.usage-intro { margin: 0 0 16px; font-size: 14px; color: var(--muted); max-width: 80ch; }
.kpis { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value { font: 600 30px/1.2 var(--text); color: var(--ink); }
.kpi-sub { font-size: 13px; color: var(--muted); }
.usage-h { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.usage-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-table th.num { text-align: right; }
.usage-table .est { color: var(--muted); margin-left: 2px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* phone: request + tokens on top, when + status underneath; the rest is on desktop */
  .usage-table tr { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .usage-table td:nth-child(2) { grid-row: 1; grid-column: 1; font-weight: 600; }
  .usage-table td:nth-child(5) { grid-row: 1; grid-column: 2; }
  .usage-table td:nth-child(1) { grid-row: 2; grid-column: 1; font-size: 13px; color: var(--muted); }
  .usage-table td:nth-child(4) { grid-row: 2; grid-column: 2; justify-self: end; }
  .usage-table td:nth-child(3), .usage-table td:nth-child(n+6) { display: none; }
}

/* ---------- board (shared saved ideas) ---------- */
.board-page { padding: 20px 32px 40px; }
.board-intro { max-width: 1400px; margin: 0 auto 16px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.board-intro b { color: var(--ink); font-weight: 600; }
.board-error { color: var(--risk); font-weight: 600; }
.kanban { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--raised); border-radius: var(--radius); padding: 12px; min-height: 240px; border: 2px dashed transparent; transition: border-color .12s, background .12s; }
.col.over { border-color: var(--peony); background: var(--peony-soft); }
.col-head { padding: 2px 4px 10px; border-top: 3px solid var(--line-strong); margin: -12px -12px 10px; padding: 12px 16px 8px; border-radius: var(--radius) var(--radius) 0 0; }
.col-liked .col-head { border-top-color: var(--peony); }
.col-developing .col-head { border-top-color: var(--pollen); }
.col-editing .col-head { border-top-color: var(--cool); }
.col-done .col-head { border-top-color: var(--leaf); }
.col-head h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.col-head .count { font: 600 12px var(--text); color: var(--muted); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.col-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.col-empty { font-size: 13px; color: var(--faint); padding: 14px 4px; text-align: center; }
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: grab; transition: box-shadow .12s, opacity .12s; }
.bcard:hover { box-shadow: 0 2px 10px rgb(28 24 34 / .08); border-color: var(--line-strong); }
.bcard.dragging { opacity: .4; }
.bcard:active { cursor: grabbing; }
.bcard-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 12px 12px 8px; cursor: pointer; border-radius: 10px 10px 0 0; }
.bcard-open:focus-visible { outline: 2px solid var(--peony); outline-offset: 2px; }
.bcard-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bcard-chips:empty { display: none; }
.bcard-chips .chip { font-size: 11px; padding: 1px 7px; }
.bcard-title { font: 600 15px/1.3 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.bcard-from { font-size: 12px; color: var(--muted); }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 8px 12px; border-top: 1px solid var(--line); }
.bcard-meta { font-size: 12px; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard-move { display: flex; gap: 2px; flex: none; }
.bcard .arrow { width: 28px; height: 28px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.bcard .arrow:hover:not(:disabled) { background: var(--raised); color: var(--ink); border-color: var(--line); }
.bcard .arrow:disabled { opacity: .25; cursor: default; }
.col-done .bcard-title { color: var(--muted); }
.stage-pick select { height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 0 10px; font: 500 14px var(--text); }
/* tablets: two columns; phones: columns scroll sideways, one at a time */
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .board-page { padding: 16px 0 32px; }
  .board-intro { padding: 0 16px; }
  .kanban { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 0 16px 8px; }
  .col { flex: 0 0 85%; scroll-snap-align: center; }
}

/* sources: one line when all healthy; opens itself when one fails */
.sources-panel > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.sources-panel > summary::-webkit-details-marker { display: none; }
.sources-panel[open] > summary { margin-bottom: 12px; }
.sources-panel[open] .caret { display: inline-block; transform: rotate(180deg); }
.col-more { display: block; margin: 10px auto 2px; font-size: 13px; }
@media (max-width: 640px) {
  .account .who, .account .caret { display: none; }
  .account > summary { height: 44px; padding: 0 6px; }
}
