/* Idea Engine — Renegades house style, Idea Engine edition (2026-10-19, see
   docs/design/accent-preview-v2.html). Shared base: cool light gray page, white cards,
   ink/gray text ramp. Idea Engine's own accent: magenta. Light only; the one dark place is the
   Co-Writer "writing room" (house rule, ~/.agents/design/renegades-style.md). The active tenant only
   tints --tenant-accent (its label swatch and "home" chips). */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@800&family=Caveat:wght@600&display=swap');

:root {
  /* shared base (same in every Renegades app) */
  --bg: #f5f5f7;
  --card: #ffffff;
  --surface-2: #ececf0;              /* wells, quiet fills */
  --ink: #1d1d1f;                    /* body */
  --ink-strong: #1d1d1f;             /* headings */
  --ink-soft: #5f5f66;               /* secondary, >= 4.5:1 on --bg */
  --line: #e6e6e9;
  --line-2: #d2d2d7;
  --hair: rgba(25,23,28,.07);
  --primary: var(--ink);             /* legacy alias = strong ink (code blocks, headings) */

  /* status (shared; red = urgent only, yellow = warning only) */
  --ok: #1f7d54;  --ok-soft: #e6f4ec;
  --warn: #9a6200; --warn-soft: #fbf3e3; --warn-line: #ecd6a8;
  --bad: #c9373d;  --bad-soft: #fdecec;

  /* Idea Engine accent: magenta */
  --accent: #b8237f;                 /* controls + selection only */
  --accent-ink: #8e1a62;             /* magenta text on light surfaces */
  --on-accent: #ffffff;              /* text on magenta fills (5.9:1) */
  --chip: #fbeaf4;
  --soft: #fdf3f9;                   /* hover wash */
  --hover: #f2b6d9;                  /* hover borders */
  --hl: rgba(232,74,166,.30);        /* the hook highlighter */
  --label-bg: #f0f0f3;               /* neutral label pills (labels are gray, controls are accent) */
  --tenant-accent: #14B8A6;          /* the active tenant's color — set by wearBrand, labels only */

  --shadow: 0 1px 2px rgba(25,23,28,.04), 0 14px 34px rgba(184,35,127,.07);
  --shadow-hover: 0 1px 2px rgba(25,23,28,.04), 0 22px 50px rgba(184,35,127,.14);

  /* type: Apple's system font (house rule), weight + scale contrast; Archivo only for hero headlines */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --step-00: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.3rem;
  --step-2: 1.72rem;
  --step-3: 2.25rem;
  --step-display: clamp(2.4rem, 1.5rem + 3.4vw, 3.55rem);
  --lh-tight: 1.14;
  --lh-body: 1.62;

  /* spacing — 8px base scale */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* the one bold moment: the gradient hero (deep stops so white text passes AA) */
  --grad: linear-gradient(130deg, #a81f74 0%, #c22f84 50%, #5b3fd6 135%);
  --glow: 184, 35, 127;
  --display: "Archivo", var(--font);
  --chrome: #141216;                 /* the dark header bar */
}

::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar: dark anchor, floating nav pill ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--chrome); color: #f2eff4; }
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brandmark { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ie-mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-weight: 800; letter-spacing: -0.02em; color: #fff; font-size: 1.12rem; white-space: nowrap; }
.bar-right { display: flex; align-items: center; gap: 10px; }
/* brand selector: a squarer chip than the round "me" pill, so the two read as different controls */
.tenant {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.84rem; color: #d9d4dc; cursor: pointer; white-space: nowrap;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 6px 12px 6px 8px; transition: background .16s ease, border-color .16s ease;
}
.tenant:empty { display: none; }
.tenant:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.tenant-name { font-weight: 650; color: #fff; }
.tenant-logo { height: 20px; width: 20px; display: block; object-fit: contain; }
.tenant-swatch { width: 16px; height: 16px; border-radius: 5px; display: block; }
.tenant svg { color: #a39aa8; }
.tenant.static { cursor: default; }
.tenant.static:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
/* brand switcher: same white menu as the account menu, opening under the brand chip */
.switch { position: relative; }
.brand-menu { right: 0; }
.me-item.brand-item { display: flex; align-items: center; gap: 10px; }
.brand-item.on { font-weight: 650; }
.brand-check { margin-left: auto; color: var(--accent); }
/* signed in: photo + name pill; Option-click reveals the owner-only items */
.me { position: relative; }
.me-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: inherit;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff;
  border-radius: 999px; padding: 4px 14px 4px 4px; font-size: 0.88rem; font-weight: 600;
  transition: background .16s ease, border-color .16s ease;
}
.me-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.me-btn svg { color: #a39aa8; }
.me-photo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 20;
  background: var(--card); color: var(--ink); border: 1px solid var(--hair); border-radius: 14px;
  padding: 6px; box-shadow: 0 18px 44px rgba(20,18,22,.22); animation: menuIn .22s var(--spring) both;
}
.me-menu[hidden] { display: none; }
.me-note { font-size: 0.75rem; color: var(--ink-soft); padding: 8px 10px 6px; }
.me-item {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 0.9rem; color: var(--ink);
  background: none; border: 0; border-radius: 9px; padding: 9px 10px; cursor: pointer; text-decoration: none;
}
.me-item:hover { background: var(--soft); }
.me-owner { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* main nav: a floating pill under the dark bar */
.navbar { max-width: 1080px; width: 100%; margin: 0 auto; padding: 18px 24px 0; }
.nav { display: flex; }
.nav-pill {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(25,23,28,.04);
}
.nav-btn {
  border: 0; background: transparent; font: inherit; font-size: 0.9rem; font-weight: 550;
  color: var(--ink-soft); padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  cursor: pointer; transition: background .16s ease, color .16s ease;
}
.nav-btn:hover { color: var(--ink); background: var(--soft); }
.nav-btn.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(var(--glow), .35); }

/* ---------- screens ---------- */
main { flex: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding: 20px 24px 96px; }
.screen { display: none; animation: rise 0.45s ease; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sub { color: var(--ink-soft); margin-top: var(--sp-3); font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }
/* week switcher: quiet, pinned to the hero's bottom line (level with the last idea-type row) */
.bank-copy { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.bank-copy .sub:empty { display: none; }
.bank-week { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: rgba(255,255,255,.78); }
.week-label { font-weight: 500; }
.week-pick {
  font: inherit; font-weight: 600; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 2px 6px; cursor: pointer; field-sizing: content; transition: border-color .16s ease, background .16s ease;
}
.week-pick:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.week-pick:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.week-pick option { color: var(--ink); }
.week-older { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 0.72rem; }

/* The gradient hero: one per screen, holds the screen title + its one-line purpose */
.hero-copy, .bank-head {
  background: var(--grad); background-size: 220% 220%; color: #fff;
  border-radius: 20px; padding: 30px 32px;
  box-shadow: 0 10px 30px rgba(var(--glow), .28);
  animation: heroIn .46s var(--ease) both, gradShift 10s ease-in-out infinite;
}
.hero-copy h1, .bank-head h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.4rem); letter-spacing: -0.01em; line-height: 1.02;
  color: #fff; text-wrap: balance;
}
.hero-copy .sub, .bank-head .sub { color: #fff; opacity: 1; font-size: 1rem; max-width: 62ch; }
.bank-head .bank-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bank-head .cue { background: rgba(255,255,255,.16); color: #fff; }
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero-copy, .bank-head { animation: none; } }

/* ---------- brand room ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.brand-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--hair); cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.brand-card .swatch { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; display: block; }
.brand-card .swatch-logo { object-fit: contain; border-radius: 0; }
.brand-card h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-card p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 6px; line-height: 1.5; }
.brand-card .meta-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chip {
  font-size: 0.75rem; padding: 4px 10px; border-radius: 999px;
  background: var(--label-bg); color: var(--ink-soft);
}
.brand-card.ghost {
  border: 1.5px dashed var(--line-2); box-shadow: none; background: transparent; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; color: var(--ink-soft);
}
.brand-card.ghost:hover { border-color: var(--hover); background: var(--soft); }
.brand-card.ghost .plus { font-size: 1.8rem; margin-bottom: 8px; color: var(--accent); }

/* ---------- idea bank ---------- */
.bank-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 2; }
.bank-eyebrow { font-size: 0.66rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.bank-head h1 { margin: 6px 0 2px; }
/* idea types on the right of the hero: each one filters the bank */
.kinds { display: grid; gap: 8px; }
.kinds-head { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.9); }
.kinds-info { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: none; color: #fff; font: 600 0.68rem/1 Georgia, serif; font-style: italic; cursor: pointer; padding: 0; text-transform: none; }
.kinds-info:hover, .kinds-info[aria-expanded="true"] { background: #fff; color: var(--accent-ink); }
.kinds-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; background: var(--card); color: var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.18); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.85rem; }
.kinds-pop[hidden] { display: none; }
.kinds-defs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kinds-defs b { display: block; color: var(--accent-ink); }
/* header over the cards when one type is picked */
.kind-head { margin: 26px 0 -4px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 16px; }
.kind-head[hidden] { display: none; }
.kind-head h2 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.kind-head p { grid-column: 1; margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.kind-all { grid-column: 2; grid-row: 1 / span 2; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--accent-ink); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.kind-all:hover { background: var(--soft); border-color: var(--hover); }
.kind {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  font: inherit; font-size: 0.9rem; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 14px;
  transition: background .16s ease, transform .3s var(--spring);
}
.kind b { font-size: 1.15rem; }
.kind em { display: block; font-style: normal; font-size: 0.74rem; opacity: .8; }
.kind:hover:not(:disabled) { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.kind.on, .kind.on:hover:not(:disabled) { background: #fff; color: var(--accent-ink); border-color: #fff; }
.kind:disabled { cursor: default; background: rgba(255,255,255,.06); border-style: dashed; }
.kind:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the bar above the cards: count + used on the left, aperture on the right */
.bank-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 14px; }
.bar-left { display: flex; align-items: center; gap: 14px; }
.ap { position: relative; display: flex; align-items: center; gap: 8px; }
.ap-label { font-size: 0.8rem; color: var(--ink-soft); }
.used-toggle { font: inherit; font-size: 0.8rem; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hover); }
.used-toggle:hover { text-decoration-color: currentColor; }
/* three-stop switch with a sliding thumb */
.seg { --i: 1; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px;
  background: var(--card); box-shadow: 0 1px 3px rgba(20,18,22,.14); transform: translateX(calc(var(--i) * 100%)); transition: transform .35s var(--spring); }
.seg button { position: relative; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); background: none; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: color .16s ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .seg-thumb { transition: none; } }
.ap-count { color: var(--ink-soft); font-size: 0.8rem; }
.ap-info {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card);
  font: italic 700 0.72rem/1 Georgia, serif; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center;
}
.ap-info:hover, .ap-info[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.ap-pop {
  position: absolute; z-index: 15; right: 0; top: calc(100% + 8px); width: min(360px, 90vw);
  background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(20,18,22,.18); font-size: 0.84rem; line-height: 1.5; color: var(--ink);
  animation: menuIn .22s var(--spring) both;
}
.ap-pop[hidden] { display: none; }
.ap-pop p + p, .ap-pop ul + p { margin-top: 8px; color: var(--ink-soft); }
.ap-stops { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ap-stops li { display: grid; grid-template-columns: 76px 1fr; }
.bank-links a {
  font-size: 0.85rem; color: var(--accent-ink); text-decoration: none; margin-left: 16px;
}
.bank-links a:hover { text-decoration: underline; }

.edge-controls {
  display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap;
  margin: 30px 0 26px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.control label { font-size: 0.8rem; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.slider-control { min-width: 260px; }
.slider-control input { width: 100%; accent-color: var(--accent); }
.floor-note { font-size: 0.75rem; margin-top: 6px; color: var(--ink-soft); }
.floor-note.warn { color: var(--warn); font-weight: 600; }
#slider-value { color: var(--accent-ink); font-weight: 700; }
.pf-chip {
  display: inline-block; font-size: 0.8rem; padding: 5px 12px; margin: 0 6px 6px 0;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  cursor: pointer; color: var(--ink-soft); font-family: inherit;
}
.pf-chip:hover { border-color: var(--hover); }
.pf-chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.disabled-seam { margin-left: auto; opacity: 0.45; }
.seam-chip {
  font-size: 0.75rem; border: 1px dashed var(--line); padding: 5px 10px;
  border-radius: 999px; margin-left: 6px; color: var(--ink-soft);
}

/* Topic pre-filter - what the NEXT batch scans (input side). Quiet by default: a single
   expandable line, not primary real estate. Gets the panel treatment only when open. */
.scan-fold { margin: 18px 0 0; }
.scan-fold > summary {
  cursor: pointer; list-style: none; padding: 8px 2px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); transition: color 0.15s ease;
}
.scan-fold > summary:hover { color: var(--ink); }
.scan-fold > summary::-webkit-details-marker { display: none; }
.scan-fold > summary::before {
  content: '\25B8'; color: var(--ink-soft); font-size: 0.78rem; transition: transform 0.2s ease;
}
.scan-fold[open] > summary::before { transform: rotate(90deg); }
.scan-sum-title { font-weight: 600; color: inherit; font-size: 0.82rem; }
.scan-count { font-size: 0.78rem; color: var(--accent-ink); font-weight: 600; }
#scan-panel {
  margin-top: 8px; padding: 20px 22px;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.scan-sharp {
  margin: 0 0 20px; padding: 14px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--tenant-accent) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--tenant-accent) 30%, transparent);
}
.scan-sharp-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.scan-sharp-chip {
  display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 4px 11px; margin: 8px 6px 0 0;
  border-radius: 999px; color: var(--ink);
  background: color-mix(in srgb, var(--tenant-accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--tenant-accent) 38%, transparent);
}
.scan-sharp-note { font-size: 0.78rem; color: var(--ink-soft); margin: 10px 0 0; max-width: 70ch; }
.scan-intro { font-size: 0.85rem; color: var(--ink-soft); max-width: 70ch; margin: 0 0 18px; }
.scan-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 24px; }
.scan-group-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 8px; }
.scan-chip {
  display: inline-block; font-size: 0.8rem; padding: 5px 11px; margin: 0 6px 6px 0;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; color: var(--ink); font-family: inherit; transition: background 0.15s ease, border-color 0.15s ease;
}
.scan-chip:hover { border-color: var(--hover); }
.scan-chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.scan-chip.home {
  background: color-mix(in srgb, var(--tenant-accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--tenant-accent) 42%, transparent);
  color: var(--ink); cursor: default; font-weight: 600;
}
.scan-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.scan-next { font-size: 0.82rem; color: var(--ink); margin: 0 0 12px; }
.scan-run { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); }
.scan-run code { background: var(--card); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; color: var(--ink); }

/* Theme-filter dials (master + overlay) */
.tune-section { margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.tune-section:last-of-type { border-bottom: none; }
.tune-head { font-size: 0.92rem; font-weight: 700; color: var(--ink-strong); margin-bottom: 12px; }
.tune-sub { font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); margin-left: 6px; }
.tune-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tune-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; font-family: inherit; font-weight: 500;
}
.tune-chip.sharp.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 650; }
.tune-chip.sharp.off { opacity: 0.55; text-decoration: line-through; }
.tune-chip.added { background: color-mix(in srgb, var(--tenant-accent) 16%, transparent); border-color: color-mix(in srgb, var(--tenant-accent) 40%, transparent); cursor: default; }
.tune-chip.nogo { cursor: default; font-size: 0.8rem; }
.tune-chip.nogo.locked { background: var(--surface-2); color: var(--ink-soft); }
.tune-chip.nogo.added { background: color-mix(in srgb, var(--tenant-accent) 14%, transparent); border-color: color-mix(in srgb, var(--tenant-accent) 38%, transparent); }
.tune-x { border: none; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0 0 2px; opacity: 0.7; }
.tune-x:hover { opacity: 1; }
.tune-add { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tune-input {
  font-family: inherit; font-size: 0.85rem; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0;
}
.tune-add .tune-input { flex: 1; min-width: 200px; }
.tune-input.sm { width: 140px; } .tune-input.xs { width: 64px; }
.tune-input:focus { outline: none; border-color: var(--accent); }
.tune-dials { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.tune-dial { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.dial-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }

.pillar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pillar-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 24px; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.pillar-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pillar-card .badges { display: flex; gap: 6px; margin: 14px 0 0; align-items: center; flex-wrap: wrap; }
.pillar-card .sentence { margin-top: 0; }
.card-top-actions { margin-top: 16px; }
.pillar-card .footnote { font-size: 0.75rem; color: var(--ink-soft); margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); opacity: 0.85; }
.badge { font-size: 0.7rem; padding: 3px 9px; border-radius: 999px; background: var(--label-bg); color: var(--ink-soft); }
.badge.judgment { background: var(--label-bg); color: var(--ink); font-weight: 700; }   /* scores are labels: gray, not accent */
.badge.aperture { background: var(--label-bg); color: var(--ink-soft); font-weight: 600; }
.slider-hint { font-size: 0.7rem; font-weight: 400; color: var(--ink-soft); text-transform: none; }
.badge.warn { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.badge.fresh { background: transparent; border: 1px solid var(--line); }
.pillar-card .sentence { font-size: 1.19rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.38; color: var(--ink); text-wrap: pretty; margin: 0; }
.pillar-card .reveal { margin-top: 14px; display: none; }
.pillar-card.stage-1 .reveal.abstract, .pillar-card.stage-2 .reveal.abstract { display: block; }
.pillar-card.stage-2 .reveal.full { display: block; }
.reveal p { font-size: 0.92rem; line-height: 1.6; color: var(--ink); }
.reveal .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 14px 0 6px; }
.explosion { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.explosion .pf { flex: 0 0 108px; font-weight: 650; color: var(--ink); font-size: 0.8rem; padding-top: 2px; }
.explosion .angle { color: var(--ink); line-height: 1.45; }
.explosion .fmt { color: var(--ink-soft); font-size: 0.8rem; display: block; margin-top: 2px; }
.explosion .hooks { color: var(--accent-ink); font-size: 0.78rem; display: block; margin-top: 4px; font-style: italic; }
.src-list { margin-top: 6px; }
.src-list a { display: block; font-size: 0.8rem; color: var(--accent-ink); text-decoration: none; padding: 3px 0; }
.src-list a:hover { text-decoration: underline; }
.card-actions { margin-top: 16px; display: flex; gap: 10px; }
.mini-btn {
  font: inherit; font-size: 0.82rem; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  transition: transform 0.3s var(--spring), border-color 0.16s ease;
}
.mini-btn:hover { transform: translateY(-1px); border-color: var(--hover); }
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 650; }
.hint { font-size: 0.75rem; color: var(--ink-soft); margin-top: 18px; text-align: center; letter-spacing: 0.02em; }
.empty-state { color: var(--ink-soft); padding: 60px 0; text-align: center; }

/* ---------- co-writer ---------- */
.cowrite-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1.1fr; gap: 22px; margin-top: 36px; }
.cowrite-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin: 14px 0 10px; }
.cw-list { display: flex; flex-direction: column; gap: 8px; }
.cw-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; font-size: 0.9rem; line-height: 1.4;
  transition: border-color 0.15s ease;
}
.cw-item:hover { border-color: var(--hover); background: var(--soft); }
.cw-item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cw-item .small { font-size: 0.75rem; color: var(--ink-soft); display: block; margin-top: 3px; }
.cw-item.suggested::after { content: "suggested"; float: right; font-size: 0.68rem; color: var(--accent-ink); font-weight: 700; }
.cw-item.disabled { opacity: 0.45; cursor: not-allowed; }
.cw-item.multi { display: flex; align-items: baseline; gap: 8px; }
.cw-item.multi .small { flex-basis: 100%; }
.cw-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none;
  border-radius: 5px; border: 1.5px solid var(--line); font-size: 0.72rem; color: var(--on-accent); align-self: center; }
.cw-item.multi.selected .cw-check { background: var(--accent); border-color: var(--accent); }
.cw-item.capped { opacity: 0.4; cursor: not-allowed; }
.cw-note { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.5; padding: 4px 2px; }
.handoff-hint { font-size: 0.82rem; color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); border-radius: 10px; padding: 10px 12px; margin: 12px 0; line-height: 1.5; }
.handoff-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; font-size: 0.9rem; line-height: 1.55; position: sticky; top: 90px;
}
.handoff-card.empty { color: var(--ink-soft); }
.handoff-card pre {
  background: #1d1d1f; color: #fff; border-radius: 12px; padding: 14px;
  font-size: 0.78rem; white-space: pre-wrap; word-break: break-word; margin: 12px 0; line-height: 1.5;
}
.kitchen-card pre { overflow-x: auto; }
.handoff-card .warn-box {
  background: var(--warn-soft); border: 1px solid var(--warn-line); color: #7a4d00;
  border-radius: 10px; padding: 10px 12px; font-size: 0.8rem; margin-bottom: 12px;
}

/* ---------- kitchen ---------- */
#kitchen .hero-copy h1::after { content: " 🔧"; }
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 36px; }
.kitchen-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.kitchen-card h3 { font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink-strong); }
.kitchen-card p { font-size: 0.87rem; color: var(--ink-soft); line-height: 1.55; margin: 8px 0 14px; }
.kitchen-card code, .handoff-card code {
  background: rgba(0,0,0,0.05); border-radius: 6px; padding: 2px 6px; font-size: 0.8rem;
}
.kitchen-card ol { padding-left: 18px; font-size: 0.85rem; color: var(--ink); line-height: 1.7; }
.kitchen-card.disabled-card { opacity: 0.55; border-style: dashed; }
.kitchen-card .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-on { background: var(--ok); } .dot-off { background: var(--line-2); }

/* Add a brand - public education + sales surface */
.onboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 32px; }
.onboard-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.onboard-num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-ink); margin-bottom: 10px; }
.onboard-card h3 { font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink-strong); margin: 0 0 8px; }
.onboard-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.onboard-cta {
  margin-top: 30px; padding: 34px; border-radius: var(--radius);
  background: var(--soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  text-align: center;
}
.onboard-cta h2 { font-size: var(--step-2); letter-spacing: -0.02em; color: var(--ink-strong); max-width: 22ch; margin: 0 auto 12px; text-wrap: balance; }
.onboard-cta p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; max-width: 56ch; margin: 0 auto; }
.cta-btn {
  display: inline-block; margin: 20px 0 14px; padding: 13px 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 0.95rem; text-decoration: none;
}
.cta-btn:hover { filter: brightness(1.08); }
.onboard-fineprint { font-size: 0.8rem !important; opacity: 0.8; }

/* Admin - owner-only builder */
.admin-banner {
  margin: 24px 0 8px; padding: 14px 18px; border-radius: 12px; font-size: 0.85rem; color: var(--ink);
  background: color-mix(in srgb, var(--tenant-accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--tenant-accent) 34%, transparent);
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.admin-section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); font-weight: 700; margin: 26px 0 4px; }
.admin-section-label:first-of-type { margin-top: 20px; }

/* ---------- kitchen wizard ---------- */
.wizard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.wizard-head h3 { font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink-strong); }
.wizard-brand { color: var(--accent-ink); }
.wizard-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 6px; max-width: 640px; line-height: 1.55; }
.wizard-progress {
  font-size: 0.85rem; font-weight: 700; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.wizard-intro {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 22px; font-size: 0.9rem;
}
.wizard-intro p { color: var(--ink); margin-top: 6px; line-height: 1.55; }
.wizard-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.wizard-step.done { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.step-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.step-head:hover { background: var(--soft); }
.step-mark {
  flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--label-bg); color: var(--ink-soft); font-weight: 700; font-size: 0.9rem;
}
.wizard-step.done .step-mark { background: var(--ok); color: #fff; }
.step-title { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.step-title strong { color: var(--ink-strong); }
.step-desc { font-size: 0.82rem; color: var(--ink-soft); }
.step-chevron { color: var(--ink-soft); }
.step-body { display: none; padding: 4px 20px 20px 66px; }
.wizard-step.open .step-body { display: block; }
.concept-box {
  background: rgba(0,0,0,0.035); border-radius: 10px; padding: 12px 14px;
  font-size: 0.83rem; line-height: 1.6; color: var(--ink); margin-bottom: 12px;
}
.step-why, .step-mistake { font-size: 0.84rem; line-height: 1.5; margin-bottom: 6px; }
.step-mistake { color: var(--warn); }
.step-found { font-size: 0.82rem; color: var(--accent-ink); margin: 8px 0; }
.depth-toggle { margin: 12px 0 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.depth-note { font-size: 0.76rem; color: var(--ink-soft); margin-left: 8px; }
.mode-tabs { display: flex; gap: 6px; margin: 14px 0 10px; flex-wrap: wrap; }
.mode-tab {
  font: inherit; font-size: 0.82rem; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
}
.mode-tab.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mode-hint { font-size: 0.8rem; color: var(--ink-soft); margin: 8px 0; line-height: 1.5; }
.mode-body pre {
  background: #1d1d1f; color: #fff; border-radius: 10px; padding: 12px;
  font-size: 0.78rem; white-space: pre-wrap; word-break: break-word; margin: 8px 0;
}
.field-label { display: block; font-size: 0.8rem; color: var(--ink-soft); margin: 10px 0; }
.field-input {
  display: block; width: 100%; max-width: 420px; margin-top: 4px; font: inherit; font-size: 0.9rem;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.template-editor {
  width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem;
  line-height: 1.6; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); resize: vertical; margin: 8px 0;
}
.upload-input { font-size: 0.85rem; margin: 8px 0; }
.save-result { font-size: 0.82rem; margin-top: 8px; color: var(--ink-soft); }
.example-viewer {
  background: rgba(0,0,0,0.04); border-radius: 10px; padding: 12px; margin-top: 10px;
  font-size: 0.72rem; line-height: 1.6; overflow-x: auto; max-height: 320px; overflow-y: auto;
  white-space: pre-wrap; color: var(--ink);
}

/* ---------- "stays here / hands off" cues ---------- */
.cue {
  display: inline-flex; align-items: center; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  vertical-align: middle; white-space: nowrap;
}
.cue-here { background: var(--chip); color: var(--accent-ink); }
.cue-cc { background: var(--ink); color: #fff; }
.cue-notion { background: var(--label-bg); color: var(--ink-soft); }

/* ---------- co-writer drafts + style step ---------- */
.style-crosslink { font-size: 0.8rem; color: var(--ink-soft); padding: 6px 2px; }
.style-crosslink a { color: var(--accent-ink); text-decoration: none; }
.style-crosslink a:hover { text-decoration: underline; }
.drafts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 44px 0 4px; flex-wrap: wrap; }
.drafts-head h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.draft-item { cursor: pointer; }
.draft-item .badge { margin-right: 8px; }
.draft-viewer {
  background: rgba(0,0,0,0.04); border-radius: 10px; padding: 12px; margin-top: 10px;
  font-size: 0.74rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  max-height: 380px; overflow-y: auto; color: var(--ink); cursor: auto;
}

/* ---------- creator library ---------- */
.transcript { font-size: 0.82rem; line-height: 1.65; color: var(--ink-soft); white-space: pre-line; }
.embed-slot { margin: 10px 0; }
.video-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }

/* ---------- IA restructure: nav corner, descriptions, folds, action zone ---------- */
.nav-spacer { flex: 1 1 auto; }
.screen-desc { max-width: 700px; line-height: 1.55; }

.slider-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--ink-soft); margin-top: 4px; }

.step-hint { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; margin: 0 0 10px; }
.step-optional { font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); background: var(--label-bg); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.cw-add { border-style: dashed; color: var(--ink-soft); }
.cw-add:hover { border-color: var(--hover); color: var(--ink); }

/* Co-Writer "ready to write" action zone — distinct from the input columns (D10) */
.cowrite-action { align-self: start; }
.action-heading {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink);
  font-weight: 700; margin: 14px 0 10px; padding-top: 4px;
}
.cowrite-action .handoff-card { border-width: 2px; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cowrite-action .handoff-card.empty { border-style: dashed; border-color: var(--line); }

/* Style Library fold inside Co-Writer */
.library-fold { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 18px; }
.library-fold > summary {
  cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--primary);
  letter-spacing: -0.01em; list-style: none; display: flex; align-items: center; gap: 8px;
}
.library-fold > summary::before { content: "▸"; color: var(--ink-soft); font-size: 0.8rem; }
.library-fold[open] > summary::before { content: "▾"; }
.library-fold > summary::-webkit-details-marker { display: none; }
.lib-count { font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); }

/* Brand Room setup toggle + wizard host */
.setup-toggle { margin-top: 32px; }
.wizard-host { margin-top: 8px; }

/* ---------- Production Studio ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.prod-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.prod-headline { font-size: 1.05rem; font-weight: 650; line-height: 1.4; color: var(--primary); letter-spacing: -0.01em; }
.prod-card .prod-open { align-self: flex-start; margin-top: 6px; }

.perform-head { margin: 20px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.perform-headline { font-size: 1.7rem; letter-spacing: -0.02em; color: var(--primary); margin: 12px 0 8px; line-height: 1.25; max-width: 800px; }
.perform-desc { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.6; max-width: 760px; }
.info-toggle { font: inherit; font-size: 0.85rem; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: 999px; width: 26px; height: 26px; cursor: pointer; }
.info-toggle:hover { color: var(--ink); border-color: var(--hover); }
.perform-meta { margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.7; }

#prod-back { margin-top: 8px; }
.perform-toolbar { display: flex; align-items: center; gap: 18px; margin: 22px 0; flex-wrap: wrap; }
.cue-toggle { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; cursor: pointer; }

.script-read { max-width: 760px; }
.beat { margin: 0 0 var(--sp-6); }
.beat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; }
.beat-hook .beat-label { color: var(--accent-ink); }
.beat-hook .beat-label::before { content: "● "; }
.spoken-line { font-size: 1.45rem; line-height: 1.5; font-weight: 550; color: var(--primary); margin: 0 0 8px; letter-spacing: -0.01em; }
.cue-line { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; margin: 0 0 6px; }
.script-read.hide-cues .cue-line { display: none; }

.publish-note { font-size: 0.85rem; color: var(--ink-soft); margin: 20px 0 14px; }
.publish-text { max-width: 680px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; }
.publish-text p { font-size: 1.02rem; line-height: 1.65; color: var(--ink); margin: 0 0 1em; }
.publish-text p:last-child { margin-bottom: 0; }
.perform-extended { margin-top: 20px; max-width: 760px; }
.perform-extended summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.perform-extended p { font-size: 0.9rem; line-height: 1.6; color: var(--ink); margin-top: 10px; }

.foot { text-align: center; padding: 28px; font-size: 0.75rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .topbar-inner { padding: 10px 16px; gap: 10px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav-pill { flex: none; }
  .navbar { padding: 12px 16px 0; }
  main { padding: 16px 16px 72px; }
  .me-name { display: none; }
  .me-btn { padding-right: 10px; }
  .hero-copy, .bank-head { padding: 24px 22px; }
  .bank-head { grid-template-columns: 1fr; gap: 20px; }
  .cowrite-grid { grid-template-columns: 1fr; }
  .handoff-card { position: static; }
  .disabled-seam { margin-left: 0; }
}

/* Used ideas — marked "used" in the bank so a story you've already written drops off.
   Hidden by default (JS filter); when "Show used" is on, they render muted with a badge. */
.pillar-card.used { opacity: 0.5; }
.pillar-card.used:hover { opacity: 0.82; }
.badge.used-badge { background: var(--ok-soft); color: var(--ok); font-weight: 700; }

/* "Used by": label + overlapping faces, at the bottom of the card (and in the full view's footer). */
.pillar-card > .used-by { margin-top: 12px; }
.used-by { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 0.72rem; max-width: 100%; }
.used-by .faces { display: inline-flex; }
.face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center;
  background: var(--soft); color: var(--accent-ink); font-size: 0.6rem; font-weight: 700; box-shadow: 0 0 0 2px var(--surface); }
.faces .face + .face { margin-left: -6px; }
.pf-chip.used-toggle { margin-left: auto; }

/* ---------- Co-Writer: the dark writing room (house rule, renegades-style.md) ----------
   Walking into the Co-Writer flips the page tokens; every component inside follows. */
body.room {
  --bg: #121014; --card: #1b181e; --surface-2: #221e25; --ink: #ece8ef; --ink-strong: #fff; --ink-soft: #a39aa8;
  --line: #2a262e; --line-2: #3a3540; --hair: #2a262e; --soft: #2a2530; --hover: #5a2a48;
  --label-bg: #29252c; --chip: #2a2530; --accent-ink: #e05aa8; --primary: #ece8ef;
  --shadow: none; --shadow-hover: 0 14px 40px rgba(184,35,127,.18);
  background: var(--bg); color: var(--ink);
}
body.room .nav-pill { background: #1d1a20; border-color: #2c2830; box-shadow: none; }
body.room .nav-btn { color: #b9b3bd; }
body.room .nav-btn:hover { background: #2a2530; color: #fff; }
body.room .nav-btn.active { color: #fff; }
body.room .foot { color: #6f6874; }
/* no gradient hero in the room: a quiet title, the page is the bold moment */
body.room #co-writer .hero-copy { background: none; box-shadow: none; animation: none; padding: 8px 0 0; }
body.room #co-writer .hero-copy h1 { color: #fff; }
body.room #co-writer .hero-copy .sub { color: var(--ink-soft); }
/* layout from the v2 model: picks down a left rail, the page on the right */
body.room .cowrite-grid { grid-template-columns: minmax(280px, 340px) 1fr; gap: 28px; animation: roomIn .6s var(--spring) both; }
body.room .cowrite-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; grid-column: 1; }
body.room .cowrite-action { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; background: none; border: 0; padding: 0; }
body.room .cue-cc { background: #2a262e; color: #d9d4dc; }
body.room .cowrite-col h3 { font-size: 0.66rem; letter-spacing: .06em; color: #8f8794; }
body.room .cw-item { background: #211d24; }
body.room .cw-item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #2a1a25; }
body.room .action-heading { color: #e05aa8; font-size: 0.66rem; letter-spacing: .06em; }
body.room .cowrite-action .handoff-card {
  background: #18151b; border: 1px solid var(--line); border-radius: 20px; padding: 36px 44px; min-height: 520px;
  font-size: 1.02rem; line-height: 1.7; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(232,74,166,.06), 0 30px 80px rgba(184,35,127,.12);
}
body.room .cowrite-action .handoff-card.empty { border-style: solid; color: #8f8794; }
body.room .handoff-card pre { background: #0f0d11; border: 1px solid var(--line); color: #ece8ef; }
body.room .handoff-card code { background: #29252c; }
body.room .handoff-card .warn-box { background: #2b2210; border-color: #4a3a14; color: #f0c674; }
body.room .handoff-hint { background: #2a1a25; border-color: #4a2440; color: var(--ink); }
body.room .library-fold { border-top-color: var(--line); }
body.room .mini-btn { background: #211d24; color: var(--ink); border-color: var(--line-2); }
body.room .mini-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
body.room ::selection { background: rgba(232,74,166,.4); color: #fff; }
@keyframes roomIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.room .cowrite-grid { animation: none; } }
@media (max-width: 860px) {
  body.room .cowrite-grid { grid-template-columns: 1fr; }
  body.room .cowrite-col, body.room .cowrite-action { grid-column: 1; grid-row: auto; }
  body.room .cowrite-action { align-self: start; }
  body.room .cowrite-action .handoff-card { padding: 24px 20px; min-height: 0; }
}

/* rating: one tap per idea, per person. Human-only. */
.rate { display: flex; align-items: center; gap: 6px; margin: 14px 0 2px; }
.rate-label { font-size: 0.78rem; color: var(--ink-soft); margin-right: auto; }
.rate-btn {
  width: 36px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 1rem; line-height: 1; cursor: pointer; filter: grayscale(1); opacity: .7;
  transition: transform .3s var(--spring), border-color .16s ease, background .16s ease, filter .16s ease, opacity .16s ease;
}
.rate-btn:hover { filter: none; opacity: 1; border-color: var(--hover); transform: translateY(-1px); }
.rate-btn.on { filter: none; opacity: 1; background: var(--soft); border-color: var(--accent); transform: scale(1.06); }

/* ---------- Tune: the slide-in research panel ---------- */
.tune-open {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: inherit; font-size: 0.86rem; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 16px;
  cursor: pointer; transition: background .16s ease, transform .3s var(--spring);
}
.tune-open:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.tune-open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tune-count { font-weight: 500; opacity: .85; }
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20,18,22,.32); opacity: 0; transition: opacity .28s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(520px, 100vw);
  background: var(--card); color: var(--ink); display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(20,18,22,.18); transform: translateX(100%); transition: transform .34s cubic-bezier(.22,1,.36,1);   /* a drawer stops at its edge: no overshoot */
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-scrim { opacity: 1; }
.drawer[hidden], .drawer-scrim[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: -0.005em; line-height: 1.05; }
.drawer-head p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }
.drawer-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.3rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.drawer-x:hover { border-color: var(--accent); color: var(--accent); }
.drawer-body, #scan-panel.drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px 24px; margin: 0; background: none; border: 0; border-radius: 0; }
body.drawer-open { overflow: hidden; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 28px 22px; background: var(--card); }
.tq { padding: 20px 0; border-bottom: 1px solid var(--line); }
.tq:last-child { border-bottom: 0; }
.tq h3 { font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.tq-hint { font-size: 0.82rem; color: var(--ink-soft); margin: 3px 0 12px; }
.tq .tune-chip.home { background: var(--surface-2); color: var(--ink); border-color: transparent; cursor: default; }
.tq .tune-chip.nogo.locked { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.tq .tune-chip.added, .tq .tune-chip.nogo.added { background: var(--soft); border-color: var(--hover); color: var(--accent-ink); }
.tq-more { margin-top: 14px; }
.tq-more > summary { cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--accent-ink); list-style: none; }
.tq-more > summary::-webkit-details-marker { display: none; }
.tq-more > summary::before { content: "+ "; }
.tq-more[open] > summary::before { content: "− "; }
.tq-more .scan-groups { margin-top: 14px; grid-template-columns: 1fr 1fr; }
.tq-more .scan-chip:not(.on) { color: var(--ink-soft); }
.tq-sentence { font-size: 0.98rem; line-height: 2.4; color: var(--ink); }
.tune-input.inline { display: inline-block; width: auto; padding: 5px 10px; margin: 0 2px; font-size: 0.95rem; }
.tune-input.inline.xs { width: 64px; }
.tq-changes { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 12px; }
.link-btn { font: inherit; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tq-run { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tq-run .mini-btn.primary { padding: 10px 20px; font-size: 0.92rem; }
/* "only new stories": the one setting that sits up top, as a switch */
.tq-new { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 16px 18px;
  background: var(--soft); border: 1px solid var(--hover); border-radius: 14px; }
.tq-new .tq-hint { margin-bottom: 0; }
.switch-btn { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--line-2); cursor: pointer; transition: background .2s ease; }
.switch-btn i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,18,22,.25); transition: transform .3s var(--spring); }
.switch-btn.on { background: var(--accent); }
.switch-btn.on i { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim, .switch-btn i { transition: none; } }
@media (max-width: 560px) { .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; } .tq-more .scan-groups { grid-template-columns: 1fr; } }

/* ---------- idea cards, from the v2 model ---------- */
.pillar-card { display: flex; flex-direction: column; padding: 22px 24px 0; min-height: var(--card-h, 0); }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.75rem; color: var(--ink-soft); }
.card-meta .rated { margin-left: auto; }
.card-meta .rated.on { color: var(--accent-ink); font-weight: 600; }
/* the highlighter: marks the hook line inside a longer draft (Co-Writer). Not used on cards: there the hook IS the card. */
.hl { background-image: linear-gradient(transparent 0 6%, var(--hl) 6% 92%, transparent 92%); background-repeat: no-repeat; background-size: 100% 100%;
  padding: 0 .12em; margin: 0 -.04em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ink-in .hl { background-size: 0% 100%; animation: ink .9s cubic-bezier(.65,0,.35,1) forwards; animation-delay: calc(.45s + var(--n, 0) * .12s); }
@keyframes ink { to { background-size: 100% 100%; } }
.card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; }
.card-foot .rate { margin: 0; gap: 4px; }
.card-foot .rate-btn { width: 32px; height: 30px; font-size: .92rem; }
.card-foot .spacer { flex: 1; }
.used-btn { white-space: nowrap; font: inherit; font-size: 0.78rem; color: var(--ink-soft); background: none; border: 0; padding: 6px 4px; cursor: pointer; }
.used-btn:hover { color: var(--ink); }
.write-btn { white-space: nowrap; font: inherit; font-size: 0.86rem; font-weight: 650; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: transform .3s var(--spring), box-shadow .3s ease; }
.write-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(var(--glow), .3); }
.pillar-card .hook { font-size: 1.24rem; }
.pillar-card .story { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); margin-top: 10px; }
/* "Read the full idea": a tinted pull-tab along the bottom of the card, like a drawer handle */
.pillar-card .more {
  margin: 16px -24px 0; padding: 11px 24px; font: inherit; font-size: 0.82rem; font-weight: 600; text-align: center;
  color: var(--ink); background: #f7f7f9; border: 0; border-top: 1px solid var(--line); cursor: pointer;
  transition: background .16s ease;
}
.pillar-card .more:hover { background: var(--surface-2); }
.pillar-card .more span { display: inline-block; margin-left: 4px; transition: transform .3s var(--spring); }
.pillar-card .reveal .badges { margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) { .ink-in .hl { animation: none; background-size: 100% 100%; } }
.pillar-grid { align-items: start; }   /* opening one card doesn't stretch its neighbors */
.pillar-grid > .empty-state { grid-column: 1 / -1; padding: 28px 0; }

/* the nav pill sticks under the dark bar so you always know where you are; the hero scrolls away beneath it */
.navbar { position: sticky; top: var(--bar-h, 64px); z-index: 9; background: var(--bg); padding-bottom: 14px; }
.navbar::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .2s ease; }
body.scrolled .navbar::after { opacity: 1; }   /* a hairline only once content is passing under it: no fade, no mask */
main#main { padding-top: 0; }
body.room .nav-btn.active, body.room .nav-btn.active:hover { background: var(--accent); color: #fff; }

/* ---------- focus view ---------- */
.focus-scrim { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 32px 24px;
  background: rgba(20,18,22,.42); opacity: 0; transition: opacity .2s ease; }
.focus-scrim[hidden] { display: none; }
body.focus-open { overflow: hidden; }
body.focus-open .focus-scrim { opacity: 1; }
.focus { width: min(1040px, 100%); max-height: calc(100vh - 64px); display: flex; flex-direction: column; background: var(--card);
  border-radius: 20px; box-shadow: 0 30px 80px rgba(20,18,22,.3); overflow: hidden;
  transform: translateY(12px) scale(.985); transition: transform .3s cubic-bezier(.22,1,.36,1); }
body.focus-open .focus { transform: none; }
.focus-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px 28px; border-bottom: 1px solid var(--line); }
.focus-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.focus-nav { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-soft); flex: none; }
.focus-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.3rem; line-height: 1; color: var(--ink); cursor: pointer; transition: border-color .16s ease, transform .3s var(--spring); }
.focus-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.focus-arrow[hidden] { display: none; }
.focus-nav .drawer-x { margin-left: 6px; }
.focus-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; padding: 26px 28px 28px; }
.focus-hook { font-size: 1.7rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.focus-story { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); margin-top: 12px; }
.focus-main p, .focus-side p { font-size: 0.95rem; line-height: 1.62; color: var(--ink); }
.focus .label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; margin: 22px 0 6px; }
.focus-side { border-left: 1px solid var(--line); padding-left: 28px; }
.focus-side .label:first-child { margin-top: 4px; }
.focus-fresh { font-size: 0.8rem !important; color: var(--ink-soft) !important; margin-top: 14px; }
.focus-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 28px; border-top: 1px solid var(--line); background: var(--card); }
.focus-foot .rate { margin: 0; gap: 4px; }
.focus-foot .rated { font-size: 0.78rem; color: var(--ink-soft); margin-left: 6px; }
.focus-foot .rated.on { color: var(--accent-ink); font-weight: 600; }
.focus-foot .spacer { flex: 1; }
.pillar-card .more span { transition: transform .3s var(--spring); }
.pillar-card .more:hover span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .focus, .focus-scrim { transition: none; } }
@media (max-width: 760px) {
  .focus-scrim { padding: 0; }
  .focus { max-height: 100vh; height: 100%; border-radius: 0; }
  .focus-body { grid-template-columns: 1fr; gap: 0; padding: 20px 18px; }
  .focus-side { border-left: 0; padding-left: 0; }
  .focus-hook { font-size: 1.35rem; }
  .focus-head, .focus-foot { padding-left: 18px; padding-right: 14px; }
  .focus-foot .rated { display: none; }
}

/* card eyebrow: type · timely · top pick */
.eyebrow-kind { font-weight: 600; color: var(--ink); }
.eyebrow-time { color: var(--ink-soft); }
.eyebrow-time::before { content: "·"; margin: 0 6px 0 2px; color: var(--line-2); }
.eyebrow-time.past { color: var(--warn); }
.badge.top-pick { background: var(--soft); color: var(--accent-ink); font-weight: 700; }
.owner-score { font-size: 0.72rem; color: var(--ink-soft); margin-left: 8px; opacity: .8; }
.focus-meta { align-items: center; font-size: 0.8rem; }
/* rating icons: thin outlines, fill magenta when picked */
.rate-btn { display: inline-grid; place-items: center; filter: none; opacity: 1; color: var(--ink-soft); }
.rate-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.rate-btn:hover { color: var(--ink); }
.rate-btn.on { color: var(--accent); background: var(--soft); border-color: var(--hover); transform: none; }
.rate-btn.on svg { fill: var(--accent); stroke: var(--accent); transform: scale(1.08); }

/* focus view: one reading column (platform angles live in the Co-Writer now) */
.focus { width: min(1120px, 100%); }
.focus-body { display: block; padding: 30px 44px 32px; }
.focus-main { max-width: none; margin: 0; }
/* Wide screens: the two boxes sit side by side, so there's less to scroll. */
.focus-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .focus-cols { display: block; } }
.focus-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.focus-sources > span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; }
.focus-sources a { color: var(--accent-ink); text-decoration: none; }
.focus-sources a:hover { text-decoration: underline; }
@media (max-width: 760px) { .focus-body { padding: 20px 18px; } }
/* focus view section labels carry the accent: they're the signposts of the reading column */
.focus .focus-main .label { color: var(--accent-ink); font-weight: 700; letter-spacing: 0.07em; }
.focus-sources > span { color: var(--accent-ink); }

/* batch recipes: load at the top of the Tune drawer, save at the bottom */
.tq-recipes { padding: 14px 0 6px; border-bottom: 0; }
.tq-recipes label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.tq-recipe-row { display: flex; align-items: center; gap: 12px; }
.tq-recipe-row select { flex: 1; }
.tq-save { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.84rem; }
.tq-save .tune-input { flex: 1; }
html, body { overflow-x: clip; }   /* the full-width nav hairline must never cause sideways scrolling */

/* Production Studio: grayed out until the off-platform handoff is designed */
.nav-btn.nav-soon { color: var(--ink-soft); opacity: .55; cursor: not-allowed; display: inline-flex; align-items: center; gap: 6px; }
.nav-btn.nav-soon:hover { background: none; color: var(--ink-soft); }
.soon-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--label-bg); color: var(--ink-soft); border-radius: 999px; padding: 2px 7px; }
body.room .nav-btn.nav-soon { color: #8f8794; }

/* Full view: the two reading sections are boxed, with real headings. */
.fbox { margin-top: 22px; padding: 18px 22px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.fbox h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.fbox p { margin: 0; }
.fbox-write { background: var(--soft); border-color: transparent; }
.fbox-write h3 { color: var(--accent-ink); }
.coach { font-size: 1rem; line-height: 1.6; }
.used-btn.on { color: var(--ok); font-weight: 600; }
.ways-in { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ways-in li { position: relative; padding-left: 18px; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }
.ways-in li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) { .fbox { padding: 16px 16px 18px; } .focus-foot .ub-label { display: none; } }

/* Admin: run cost ledger (owner only) */
.admin-costs { overflow-x: auto; margin-bottom: 8px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cost-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cost-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.cost-table td small { display: block; color: var(--ink-soft); font-size: 0.74rem; margin-top: 2px; }
.cost-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-table tr.note td { padding-top: 0; font-size: 0.76rem; color: var(--ink-soft); }
.cost-table tr:has(+ tr.note) td { border-bottom: 0; }
.admin-costs .muted { color: var(--ink-soft); font-size: 0.8rem; margin-top: 8px; }

/* "Try this": a way to write it + a sample line. Shown in the Co-Writer (moved out of the Idea Bank 2026-10-20). */
.try-this { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(184, 35, 127, .3); }
.try-this b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); margin-bottom: 4px; }
.try-this p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.try-this .try-sample { margin-top: 6px; font-weight: 650; color: var(--ink); }

/* ---------- Writing room (Co-Writer), from docs/design/cowriter-room-v3.html ---------- */
/* Drafts home: the Co-Writer's front page. Every piece you've started, grouped by week. */
.room-empty { margin: 32px 0; }
.room-empty h1 { color: #fff; margin-bottom: 6px; }
.room-empty p { color: var(--ink-soft); }
.drafts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.draft-week { margin-bottom: 28px; }
.draft-week h3 { font-size: 0.74rem; letter-spacing: .07em; text-transform: uppercase; color: #a39aa8; margin: 0 0 10px; font-weight: 600; }
.draft-week h3 span { margin-left: 6px; color: #7c7480; }
.draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.draft-card { display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; background: #1b181e; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; cursor: pointer; color: var(--ink); transition: border-color .16s ease, transform .2s var(--ease); }
.draft-card:hover { border-color: var(--accent-ink); transform: translateY(-1px); }
.draft-card:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.draft-card b { font-size: 0.95rem; font-weight: 600; line-height: 1.4; color: #fff; }
.dc-plat { font-size: 0.8rem; color: var(--accent-ink); font-weight: 600; }
.dc-meta { font-size: 0.76rem; color: #a39aa8; margin-top: auto; }
.dc-status { font-style: normal; padding: 1px 8px; border-radius: 999px; background: #2a2530; color: #fff; }
.drafts-empty { color: var(--ink-soft); }
.wr-home { flex: none; font: inherit; font-size: 0.8rem; font-weight: 600; color: #fff; background: #2a2530; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.wr-home:hover { border-color: var(--accent-ink); }
.wroom { margin-top: 18px; }
.wr-from { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 0.88rem; color: var(--ink-soft); min-width: 0; }
.wr-from span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wr-from b { color: var(--ink); font-weight: 600; }
.wr-about { flex: none; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.wr-about:hover { border-color: var(--accent-ink); }
.wr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.wr-left { min-width: 0; }
.wr-tabbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 0 0 16px; }
.wr-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: -1px; position: relative; z-index: 1; }
.wr-tab { display: flex; align-items: center; gap: 6px; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); background: none; border: 1px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0; padding: 9px 14px; cursor: pointer; }
.wr-tab:hover { color: #fff; }
.wr-tab.on { background: #18151b; border-color: var(--line); color: #fff; }
.wr-rec { color: var(--accent-ink); }
.wr-close { font-size: 0.72rem; opacity: .5; padding: 0 2px; }
.wr-close:hover { opacity: 1; }
.wr-add { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; }
.wr-plus { font: inherit; font-size: 0.78rem; font-weight: 600; color: #d9d4dc; background: none; border: 1px dashed var(--line-2); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.wr-plus:hover { border-color: var(--accent-ink); border-style: solid; color: #fff; }
.wr-page { background: #18151b; border: 1px solid var(--line); border-radius: 20px; padding: 32px 42px 20px; display: flex; flex-direction: column; min-height: 580px;
  box-shadow: 0 0 0 1px rgba(232,74,166,.06), 0 30px 80px rgba(184,35,127,.12); }
.wr-page-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 0.75rem; color: #7c7480; }
.wr-page-top b { font-size: 0.68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.wr-draft { flex: 1; font-size: 1.15rem; line-height: 1.7; color: var(--ink); max-width: 62ch; outline: none; white-space: pre-wrap; }
.wr-draft p { margin: 0 0 16px; }
.wr-draft .wr-hookline { color: #fff; font-weight: 600; }
/* the hook line gets the highlighter (the one place it's used, 2026-10-19) */
.wr-draft .wr-hookline span { background-image: linear-gradient(transparent 0 8%, rgba(232,74,166,.38) 8% 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 2px; }
.wr-draft.busy > p { opacity: .45; }
.wr-writing { color: #7c7480; }
.wr-writing span { animation: wrdot 1.2s infinite; }
.wr-writing span:nth-child(2) { animation-delay: .2s; } .wr-writing span:nth-child(3) { animation-delay: .4s; }
@keyframes wrdot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.wr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.wr-checks { font-size: 0.78rem; color: #7c7480; }
.wr-checks b { color: #5fc795; font-weight: 600; }
.wr-checks b.warn { color: #e8b04a; }
.wr-btn { font: inherit; font-size: 0.86rem; font-weight: 650; border-radius: 999px; padding: 9px 18px; border: 1px solid transparent; cursor: pointer; }
.wr-btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(184,35,127,.35); }
.wr-btn.ghost { background: transparent; color: #d9d4dc; border-color: var(--line-2); margin-right: 6px; }
.wr-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.wr-coach { background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; height: 640px; position: sticky; top: calc(var(--bar-h, 64px) + 70px); }
.wr-coach-head { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.wr-coach-head i { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #d6338f, #9b1f6c); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; flex: none; }
.wr-coach-head b { font-size: 0.88rem; color: #fff; }
.wr-coach-head small { display: block; font-size: 0.74rem; color: #7c7480; }
.wr-thread { flex: 1; overflow-y: auto; padding: 16px 16px 6px; display: flex; flex-direction: column; gap: 10px; }
.wr-msg { font-size: 0.88rem; line-height: 1.5; padding: 10px 13px; border-radius: 14px; max-width: 92%; white-space: pre-wrap; }
.wr-msg.c { background: #211d24; border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--ink); }
.wr-msg.u { background: var(--accent); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.wr-msg.err { border-color: #6b4a1c; color: #e8b04a; }
.wr-dots { display: flex; gap: 4px; padding: 14px; }
.wr-dots span { width: 6px; height: 6px; border-radius: 50%; background: #a39aa8; animation: wrdot 1.2s infinite; }
.wr-dots span:nth-child(2) { animation-delay: .2s; } .wr-dots span:nth-child(3) { animation-delay: .4s; }
.wr-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.wr-quick button { font: inherit; font-size: 0.78rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: #d9d4dc; cursor: pointer; }
.wr-quick button:hover:not(:disabled) { border-color: var(--accent-ink); }
.wr-quick button:disabled { opacity: .4; cursor: default; }
.wr-quick button.nudge { border-color: var(--accent); background: rgba(184,35,127,.25); color: #fff; }
.wr-ask { margin: 0 12px 12px; display: flex; align-items: center; gap: 8px; background: #141216; border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 8px 8px 14px; }
.wr-ask input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 0.9rem; }
.wr-ask input::placeholder { color: #7c7480; }
.wr-ask button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 16px; cursor: pointer; flex: none; }
.wr-tray { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 60; background: #1b181e; border-left: 1px solid var(--line); padding: 24px 26px; overflow: auto;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.22,1,.36,1); color: var(--ink); }
body.tray-open .wr-tray { transform: none; }
.wr-tray-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wr-tray-top b { font-size: 0.68rem; letter-spacing: .07em; text-transform: uppercase; color: #7c7480; }
.wr-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; }
.wr-tray h2 { font-size: 1.2rem; line-height: 1.35; color: #fff; margin: 0 0 16px; }
.wr-tray h3 { font-size: 0.95rem; color: #fff; margin: 20px 0 6px; }
.wr-tray h3.accent { color: var(--accent-ink); }
.wr-tray p { font-size: 0.92rem; line-height: 1.6; color: #d9d4dc; margin: 0; }
.wr-src { margin-top: 18px; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wr-src a { color: var(--accent-ink); text-decoration: none; }
#wr-scrim { z-index: 59; }
body.tray-open #wr-scrim { opacity: 1; }
@media (max-width: 960px) { .wr-grid { grid-template-columns: 1fr; } .wr-coach { position: static; height: 520px; } }
@media (max-width: 640px) { .wr-page { padding: 22px 18px 16px; min-height: 0; } .wr-draft { font-size: 1.02rem; } .wr-from { flex-wrap: wrap; } .wr-from span { white-space: normal; } .wr-tabbar { padding-left: 8px; } }

/* Writing room: what's happening while the coach writes */
.wr-progress { padding: 40px 0 20px; max-width: 420px; white-space: normal; }
.wr-progress-bar { height: 4px; border-radius: 4px; background: #2a262e; overflow: hidden; margin-bottom: 18px; }
.wr-progress-bar i { display: block; height: 100%; width: 30%; border-radius: 4px; background: linear-gradient(90deg, #b8237f, #e05aa8); animation: wrslide 1.6s ease-in-out infinite; }
@keyframes wrslide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.wr-step { font-size: 1.15rem; font-weight: 600; color: #fff; margin: 0 0 6px; }
.wr-progress small { color: #7c7480; font-size: 0.82rem; }
.wr-status { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: rgba(184,35,127,.14); color: #f2d3e6; font-size: 0.82rem; font-weight: 600; }
.wr-status[hidden] { display: none; }
.wr-status i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #e05aa8; animation: wrspin .8s linear infinite; }
@keyframes wrspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wr-progress-bar i, .wr-status i, .wr-dots span { animation: none; } }

/* Pieces in progress (Co-Writer) */

/* ---------- Library (v10, docs/design/library-v10.html) ----------
   Written one-third (yours, not made yet) | Produced two-thirds (the team's, ready to post). */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px;
  background: var(--chip); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; }
.nav-count:empty { display: none; }
.nav-btn.active .nav-count { background: rgba(255,255,255,.25); color: #fff; }
body.room .nav-btn:not(.active) .nav-count { background: #2a2530; color: #e05aa8; }


.lb-grow { min-width: 0; flex: 1; }

/* written cards: platform logo + title + suggested format */

.lb-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); flex: none; }
/* platform logos in their own colors: you spot a logo faster than a word */
.lb-logo svg { width: 22px; height: 22px; display: block; }
.lb-logo-txt { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); }

.lb-meta { margin-top: 3px; font-size: 0.78rem; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lb-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.lb-ok { color: var(--ok); font-weight: 650; }

/* Produced toolbar: Ready / Sent on the left, filters on the right */
.lb-group { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--card); border-radius: 999px; border: 1px solid var(--line); }
.lb-group[hidden] { display: none; }
.lb-filters { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lb-seg { font: inherit; border: 0; background: none; border-radius: 999px; padding: 6px 13px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background .16s ease, color .16s ease; }
.lb-seg b { font-weight: 700; margin-left: 3px; opacity: .7; }
.lb-seg:hover { background: var(--soft); color: var(--ink); }
.lb-seg.on { background: var(--accent); color: #fff; }
/* time range: quiet on purpose. Small text on a thin gray track; one white knob slides to the choice. */
/* who: faces only, the name on hover */
.lb-person { font: inherit; position: relative; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 999px; padding: 3px; font-size: 0.8rem; font-weight: 650; color: var(--ink-soft); cursor: pointer; transition: background .16s ease, color .16s ease; }
.lb-person .face { width: 28px; height: 28px; font-size: 0.72rem; box-shadow: none; transition: box-shadow .16s ease, transform .3s var(--spring), opacity .16s ease; }
.lb-person:hover .face { transform: scale(1.06); opacity: 1; }
.lb-person.all { padding: 7px 12px; }
.lb-person.all:hover { background: var(--soft); color: var(--ink); }
.lb-person.all.on { background: var(--accent); color: #fff; }
.lb-person.on .face { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.lb-person:not(.on) .face { opacity: .72; }
.lb-person[data-name]::after { content: attr(data-name); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); background: var(--chrome); color: #fff; font-size: 0.74rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; z-index: 5; }
.lb-person[data-name]:hover::after, .lb-person[data-name]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* produced: a grid of bigger cards with a picture of the finished thing */
.lb-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.lb-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; color: rgba(255,255,255,.75); font-size: 0.78rem; position: relative; }
.lb-thumb.video { background: linear-gradient(160deg, #1b2b4b, #2c4a7a); }
.lb-thumb.carousel { background: #1b2b4b; }
.lb-thumb.image { background: #000; }
.lb-thumb.post { background: #fff; border-bottom: 1px solid var(--line); }
.lb-thumb > img, .lb-thumb > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* video: the cover frame with a play button */
.lb-play { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.lb-play::before { content: ""; border-left: 14px solid #1d1d1f; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
/* carousel without media yet: the first slide, the next peeking out behind it */
.lb-slide { position: relative; height: 70%; margin-bottom: 18px; aspect-ratio: 4 / 5; background: #fff; border-radius: 8px; padding: 10px; color: var(--ink); font-size: 0.74rem; font-weight: 800; line-height: 1.2; text-align: left; box-shadow: 10px 0 0 -3px rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.25); display: flex; align-items: flex-end; overflow: hidden; }
.lb-slide::before { content: ""; position: absolute; top: 10px; left: 10px; width: 22px; height: 4px; border-radius: 2px; background: var(--tenant-accent); }
/* text post: the opening lines, the way the feed shows them */
.lb-postprev { position: absolute; inset: 0; padding: 44px 16px 0; color: var(--ink); font-size: 0.8rem; line-height: 1.45; text-align: left; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 88%); mask-image: linear-gradient(#000 62%, transparent 88%); }
.lb-postprev b { display: block; font-size: 0.84rem; margin-bottom: 4px; }

/* waiting too long: yellow means warning (DESIGN.md rule 5) */

/* Select: a plain-words button on every card */

/* Show more: one quiet line under the grid */
.lb-more { display: flex; justify-content: center; margin-top: 16px; }
.lb-more button { font: inherit; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 8px 18px; font-size: 0.84rem; font-weight: 650; color: var(--ink); cursor: pointer; transition: transform .3s var(--spring), border-color .16s ease; }
.lb-more button:hover { transform: translateY(-1px); border-color: var(--hover); }
.lb-more span { color: var(--ink-soft); font-weight: 500; margin-left: 4px; }
.lb-empty { background: var(--card); border: 1px dashed var(--line-2); border-radius: 14px; padding: 40px 28px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

.lb-empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 10px; }

/* the send bar: shows when something is selected. Sending is a Phase 2 seam, so the button stays disabled. */

/* the sheet: one piece, opened over the board */
.lb-scrim { position: fixed; inset: 0; background: rgba(20,18,22,.42); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px 16px; z-index: 50; animation: lbFade .2s ease both; }
.lb-scrim[hidden] { display: none; }
.lb-sheet { background: var(--card); color: var(--ink); border-radius: 20px; width: min(680px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(20,18,22,.3); animation: lbPop .34s var(--spring) both; overflow: hidden; }
.lb-sheet-top { display: flex; gap: 12px; align-items: center; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.lb-sheet-top h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.lb-sheet-top .lb-meta { margin-top: 4px; }
.lb-x { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; font-size: 1rem; }
.lb-x:hover { border-color: var(--hover); }
.lb-sheet-media { background: #000; display: grid; place-items: center; flex: none; }
.lb-sheet-media[hidden] { display: none; }
.lb-sheet-media video, .lb-sheet-media img { max-width: 100%; max-height: 46vh; display: block; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; max-width: 100%; }
.lb-strip.many img { max-height: 40vh; scroll-snap-align: start; flex: none; }
.lb-sheet-body { padding: 20px 26px; overflow: auto; white-space: pre-wrap; font-size: 1rem; line-height: 1.62; min-height: 80px; }
.lb-sheet-add { padding: 0 22px 16px; }
.lb-sheet-add[hidden] { display: none; }
.lb-sheet-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.lb-btn { font: inherit; font-size: 0.86rem; font-weight: 650; border-radius: 999px; padding: 9px 18px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: transform .3s var(--spring), border-color .16s ease; display: inline-flex; align-items: center; gap: 6px; }
.lb-btn:hover { transform: translateY(-1px); border-color: var(--hover); }
.lb-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.lb-btn.primary:disabled { background: var(--surface-2); border-color: var(--line-2); color: var(--ink-soft); opacity: 1; }
.lb-btn .soon-tag { background: var(--card); }
.lb-note { font-size: 0.75rem; color: var(--ink-soft); margin-right: auto; }
.lb-note + .lb-note { display: none; }
/* the trip back in: a drop zone on the written piece */
.lb-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed var(--line-2); border-radius: 14px; padding: 20px 16px; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.lb-drop:hover, .lb-drop.over { border-color: var(--accent); background: var(--soft); }
.lb-drop.busy { pointer-events: none; opacity: .7; }
.lb-drop b { font-size: 0.95rem; }
.lb-drop-msg { font-size: 0.8rem; color: var(--ink-soft); }
.lb-drop.small { flex-direction: row; justify-content: center; gap: 8px; padding: 10px 14px; }
.lb-drop input { display: none; }
.lb-drop-err { margin-top: 8px; font-size: 0.8rem; color: var(--bad); text-align: center; }
.lb-drop-err[hidden] { display: none; }
@keyframes lbPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lb-sheet, .lb-scrim { animation: none; }
  .lb-btn, .lb-more button, .lb-person .face { transition: none; }
}
@media (max-width: 860px) {
  .lb-filters { margin-left: 0; }
}

/* ---------- Library v11: Composed -> Produced -> Published ---------- */
.lb2 .lb-group[hidden] { display: none; }

.lb2 { margin-top: 24px; }
.lb2-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb2-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lb2-tab { font: inherit; border: 0; background: none; display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 14px; cursor: pointer; color: var(--ink-soft); transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.lb2-tab b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: -0.01em; }
.lb2-tab .n { font-size: 0.78rem; font-weight: 650; background: var(--surface-2); color: var(--ink-soft); border-radius: 999px; padding: 2px 9px; }
.lb2-tab:hover { background: var(--soft); color: var(--ink); }
.lb2-tab.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(25,23,28,.12); }
.lb2-tab.on .n { background: var(--accent); color: #fff; }
.lb2-arrow { color: var(--line-2); font-size: 1rem; }
.lb2-scope { margin-left: auto; }
.lb2-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 42px; margin: 8px 0 12px; padding: 0 6px; }
.lb2-hint { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.lb2-well { background: var(--surface-2); border-radius: 20px; padding: 16px; }
.lb2-card { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--card); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .2s ease, border-color .2s ease; }
.lb2-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.lb2-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb2-cbody { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.lb2-ctop { display: flex; align-items: center; justify-content: space-between; }
.lb2-pf { width: 28px; height: 28px; display: grid; place-items: center; }
.lb2-pf svg { width: 24px; height: 24px; display: block; }
.lb2-ctop .face { width: 26px; height: 26px; font-size: 0.66rem; box-shadow: none; }
.lb2-ctitle { font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lb2-status { margin-top: auto; font-size: 0.8rem; color: var(--ink-soft); }
.lb2-late { color: var(--warn); font-weight: 650; }
.lb2-done { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.lb2-done svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.6; fill: none; }
/* Published is the finish line: a calm green wash, so it reads as done at a glance. */
.lb2-card.published { background: color-mix(in srgb, var(--ok) 7%, var(--card)); border-color: color-mix(in srgb, var(--ok) 28%, var(--card)); }
.lb2-card.published .lb2-act { border-color: color-mix(in srgb, var(--ok) 30%, var(--card)); }
.lb-link { display: inline-flex; gap: 6px; align-items: center; flex: 1; min-width: 260px; }
.lb-link input { flex: 1; min-width: 0; font: inherit; font-size: 0.84rem; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); }
.lb-link input:focus { outline: none; border-color: var(--accent); }
.lb2-act { display: block; margin: 0 14px 14px; padding: 8px 12px; border-radius: 999px; text-align: center; font-size: 0.84rem; font-weight: 650; border: 1px solid var(--line-2); color: var(--ink); transition: transform .3s var(--spring), border-color .16s ease, color .16s ease, background .16s ease; }
.lb2-act.go { background: color-mix(in srgb, var(--accent) 11%, var(--card)); border-color: transparent; color: var(--accent-ink); }
.lb2-card:hover .lb2-act.go { background: var(--accent); color: #fff; }
.lb2-card:hover .lb2-act { transform: translateY(-1px); }
.lb2-card:hover .lb2-act:not(.go) { border-color: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .lb2-tab, .lb2-act, .lb2-card { transition: none; } }
a.lb-btn { text-decoration: none; }

/* What goes with it: Composer save bar (dark room) and the Library sheet. */
.wr-media { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.wr-media[hidden] { display: none; }
.wr-media > span { font-size: 0.74rem; color: #9a92a0; padding: 0 8px 0 9px; }
.wr-media button { font: inherit; font-size: 0.78rem; font-weight: 600; border: 0; background: none; color: #d9d4dc; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.wr-media button[aria-checked="true"] { background: var(--accent); color: #fff; }
.lb-media { margin-bottom: 12px; border-color: var(--line); background: var(--card); }
.lb-media > span { color: var(--ink-soft); }
.lb-media button { color: var(--ink-soft); }
.lb-media button:hover { color: var(--ink); }

/* Starter prompt for the media (Library sheet). */
.lb-prompt { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); }
.lb-prompt-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lb-prompt-head b { font-size: 0.9rem; }
.lb-prompt-head span { font-size: 0.8rem; color: var(--ink-soft); }
.lb-prompt-note { margin: 0 0 8px; font-size: 0.84rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.lb-prompt-note.warn { color: var(--warn); }
.lb-prompt-text { margin: 0 0 10px; white-space: pre-wrap; font: inherit; font-size: 0.86rem; line-height: 1.5; color: var(--ink); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; max-height: 260px; overflow: auto; }
.lb-prompt-row { display: flex; gap: 8px; }
.lb-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: lbspin .8s linear infinite; flex: none; }
@keyframes lbspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lb-spin { animation: none; } }
/* Writing style switch: Personal (new) | Classic (old). patches/2026-11-01-personal-voice.md */
.wr-style { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.wr-style button { background: none; border: 0; color: #7c7480; font: inherit; font-size: 0.72rem; padding: 4px 10px; cursor: pointer; }
.wr-style button.on { background: #9b1f6c; color: #fff; }
.wr-style button:focus-visible { outline: 2px solid #d6338f; outline-offset: -2px; }
.wr-coach-head { position: relative; }
.wr-style-i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: none; color: #7c7480; font: italic 600 0.7rem Georgia, serif; cursor: pointer; padding: 0; }
.wr-style-i[aria-expanded="true"], .wr-style-i:hover { color: #fff; border-color: #9b1f6c; }
.wr-style-pop { position: absolute; top: 100%; right: 12px; z-index: 20; width: min(300px, calc(100vw - 32px)); background: #1d181f; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.wr-style-pop p { margin: 0 0 8px; font-size: 0.78rem; line-height: 1.45; color: #cfc8d2; }
.wr-style-pop p:last-child { margin: 0; }
.wr-style-pop b { color: #fff; }


/* ---------- Production view (video tabs in Composer): Story | Production. Dan, 2026-11-02, layout A.
   Left of each beat = the words you say (editable, the same words as Story). Right = that moment's
   phone screen (only the on-screen text) with a handwritten shot note. Your notes ride into the download. */
.pv-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; margin: 0 12px 0 auto; }
.pv-seg[hidden] { display: none; }
.pv-seg button { font: inherit; font-size: 0.74rem; font-weight: 650; border: 0; background: none; color: #a39aa8; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.pv-seg button[aria-checked="true"] { background: var(--accent); color: #fff; }
.pv-seg button:focus-visible { outline: 2px solid #d6338f; outline-offset: 1px; }
.wr-page-top:has(.pv-seg:not([hidden])) { align-items: center; }
.pv { flex: 1; }
.pv-lede { margin: 0 0 14px; font-size: 0.85rem; color: #9a92a0; }
.pv-stale { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: #2a1a25; border: 1px solid #5a2a48; border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; font-size: 0.85rem; color: #f6c1df; }
.pv-beats { display: grid; gap: 12px; }
.pv-beat { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #1b181e; }
.pv-beat.is-hook { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pv-when { font-size: 0.72rem; color: #8f8794; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pv-when strong { font: 800 0.8rem var(--display); text-transform: uppercase; color: var(--accent-ink); margin-right: 8px; }
.pv-i { margin-left: 6px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: #a39aa8; font: italic 600 0.66rem Georgia, serif; cursor: pointer; padding: 0; vertical-align: 1px; }
.pv-i[aria-expanded="true"] { background: #9b1f6c; border-color: #9b1f6c; color: #fff; }
.pv-about { margin: 0 0 8px; font-size: 0.8rem; color: #cfc8d2; background: #221e25; border-radius: 10px; padding: 7px 10px; }
.pv-you { font-size: 0.64rem; letter-spacing: .08em; text-transform: uppercase; color: #8f8794; margin: 0 0 3px; }
.pv-you em { font-style: normal; text-transform: none; letter-spacing: 0; color: #6f6874; }
.pv-say { margin: 0 0 0 -4px; padding: 2px 4px; border-radius: 6px; font-size: 1.04rem; line-height: 1.55; color: #fff; white-space: pre-wrap; outline: none; }
.pv-say:hover, .pv-say:focus { background: #221e25; }
.pv-say:focus { box-shadow: 0 0 0 1px var(--accent-ink); }
.is-hook .pv-say { font-weight: 600; font-size: 1.12rem; }
.pv-shot { display: grid; grid-template-columns: 118px 1fr; gap: 4px; align-items: center; }
.pv-phone { width: 118px; aspect-ratio: 9 / 16; border-radius: 18px; border: 5px solid #2f2a33; position: relative; overflow: hidden; background: #0d0c0f; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.pv-phone .cam { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 30%, #4a3a52, #1a151d 70%); }
.pv-phone .cam svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 96px; color: #6b5873; }
.pv-phone .broll { position: absolute; inset: 0; background: linear-gradient(160deg, #3b2f45, #141018); }
.pv-phone .scr { position: absolute; inset: 0; background: #f4f4f6; padding: 22px 6px 6px; display: flex; flex-direction: column; justify-content: center; }
.pv-phone .scr .bub { align-self: flex-start; max-width: 88%; background: #e2e2e7; color: #111; border-radius: 9px; padding: 4px 6px; font: 500 0.5rem/1.3 var(--font); outline: 2px solid #e05aa8; outline-offset: 1px; }
.pv-phone .ost { position: absolute; left: 6px; right: 6px; bottom: 18%; z-index: 2; text-align: center; font: 800 0.62rem/1.25 var(--display); color: #fff; }
.pv-phone .ost span { background: rgba(0,0,0,.72); padding: 2px 4px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pv-note { font: 600 0.98rem/1.12 "Caveat", cursive; color: #f6c1df; }
.pv-note svg { display: block; width: 52px; height: 28px; margin: 2px 0 0 -8px; }
.pv-notes { margin-top: 10px; }
.pv-addnote { font: inherit; font-size: 0.78rem; font-weight: 600; color: #d9d4dc; background: none; border: 1px dashed var(--line-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.pv-addnote:hover { border-color: var(--accent-ink); border-style: solid; color: #fff; }
.pv-sticky { background: #2a1a25; border: 1px solid #5a2a48; border-radius: 12px; padding: 9px 12px; }
.pv-sticky p { margin: 0; font: 600 1.08rem/1.25 "Caveat", cursive; color: #f6c1df; white-space: pre-wrap; }
.pv-sticky-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.62rem; letter-spacing: .07em; text-transform: uppercase; color: #c98fb3; margin-bottom: 4px; }
.pv-sticky textarea { width: 100%; box-sizing: border-box; background: #1b181e; border: 1px solid #5a2a48; border-radius: 8px; color: #fff; font: inherit; font-size: 0.88rem; padding: 7px 9px; resize: vertical; }
.pv-sticky-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.pv-nb { font: inherit; font-size: 0.72rem; font-weight: 600; text-transform: none; letter-spacing: 0; background: none; border: 1px solid #5a2a48; color: #f6c1df; border-radius: 999px; padding: 2px 9px; cursor: pointer; margin-left: 4px; }
.pv-nb.save { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.pv-box { background: #1b181e; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 0.88rem; color: #d9d4dc; min-width: 0; }
.pv-box p { margin: 0; } .pv-box ol { margin: 0; padding-left: 1.2em; }
.pv-lbl { display: flex; justify-content: space-between; align-items: center; font-size: 0.64rem; letter-spacing: .07em; text-transform: uppercase; color: #8f8794; margin-bottom: 6px; }
.pv-copy { font: inherit; font-size: 0.7rem; font-weight: 700; text-transform: none; letter-spacing: 0; background: #2a2530; color: var(--accent-ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; cursor: pointer; }
@media (max-width: 700px) { .pv-beat { grid-template-columns: 1fr; } }

/* Admin → People (owner's laptop only) */
.admin-people { display: grid; gap: 14px; }
.pp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.pp-join { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: 0.85rem; color: var(--ink-soft); }
.pp-join code { background: var(--surface-2); padding: 4px 8px; border-radius: 8px; font-size: 0.8rem; overflow-wrap: anywhere; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.pp-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.pp-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-file { display: inline-block; font-size: 0.78rem; margin-right: 6px; }
.pp-file.ok { color: var(--ok); } .pp-file.miss { color: var(--ink-soft); }
.pp-wait { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 8px; font-size: 0.86rem; }
.pp-wrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }

/* Composer home (Saul pass, 2026-11-02): two columns on one floor line. Left = drafts for the picked
   week (2/3), right = Waiting for media (1/3). Compact cards: platform logo, when, the hook. */
.drafts-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); column-gap: 24px; row-gap: 12px; align-items: start; }
.dcol-head { display: flex; align-items: center; min-height: 34px; }
.drafts-pick { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.dp-btn { font: inherit; font-size: 0.8rem; font-weight: 650; color: #a39aa8; background: none; border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.dp-btn span { font-size: 0.72rem; color: #7c7480; }
.dp-btn.on { background: var(--accent); color: #fff; } .dp-btn.on span { color: #f6c1df; }
.dp-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.wait-h { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.74rem; letter-spacing: .07em; text-transform: uppercase; color: #a39aa8; font-weight: 600; }
.wait-h span:not(:empty) { font-size: 0.72rem; font-weight: 700; background: #3a2d14; color: #e8b04a; border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.drafts-cols .draft-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dc-compact, .wait-card { padding: 12px 14px; gap: 6px; border-radius: 12px; }
.dc-compact b, .wait-card b { font-size: 0.9rem; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dc-logos { display: inline-flex; gap: 4px; }
.dc-row .lb2-pf svg { width: 18px; height: 18px; display: block; }
.dc-when { font-size: 0.74rem; color: #7c7480; }
.wait-list { display: grid; gap: 10px; }
.wait-card { display: grid; text-align: left; cursor: pointer; }
.wait-card .dc-status { color: #e8b04a; font-style: normal; font-size: 0.74rem; font-weight: 600; }
.wait-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.wa-btn { font: inherit; font-size: 0.74rem; font-weight: 650; border-radius: 999px; padding: 4px 10px; cursor: pointer; border: 1px solid var(--line-2); background: none; color: #d9d4dc; }
.wa-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.wa-btn:hover { border-color: var(--accent-ink); }
.wait-empty { margin: 0; font-size: 0.85rem; color: #8f8794; }
@media (max-width: 860px) { .drafts-cols { grid-template-columns: 1fr; } .dcol-head:nth-child(2), .room-wait { order: -1; } .dcol-head:nth-child(2) { order: -2; } }

/* =====================================================================================
   PLUM & INK v1 (Dan + Saul, 2026-11-02). Light everywhere: no dark room.
   One meaning per color: wine = the main action · ink violet = you are here ·
   green = done · red = urgent. No amber/yellow. Each room's banner has its own gradient
   (Idea Bank plum & ink · Composer midnight & signal blue · Library graphite & copper);
   buttons stay the same in every room.
   ===================================================================================== */
:root {
  --accent: #8e1f5c; --accent-ink: #761a4d; --on-accent: #fff;
  --chip: #f6e9f0; --soft: #fbf4f8; --hover: #dcb6ca; --hl: rgba(61,42,107,.12);
  --here: #3d2a6b; --here-soft: rgba(61,42,107,.08); --here-line: rgba(61,42,107,.35);
  --glow: 61, 42, 107;
  --grad-bank: linear-gradient(130deg, #2a1530 0%, #4a1d45 55%, #2b2350 120%);
  --grad-composer: linear-gradient(130deg, #0f1b2d 0%, #16325a 60%, #1f4f7a 120%);
  --grad-library: linear-gradient(130deg, #1b1b1f 0%, #2e2a28 55%, #4a3326 120%);
  --grad: var(--grad-bank);
  --shadow: 0 1px 2px rgba(25,23,28,.04), 0 14px 34px rgba(42,21,48,.07);
  --shadow-hover: 0 1px 2px rgba(25,23,28,.04), 0 22px 50px rgba(42,21,48,.13);
}
#idea-bank .bank-head { background: var(--grad-bank); background-size: 220% 220%; box-shadow: 0 12px 30px rgba(42,21,48,.25); }
#co-writer .hero-copy { background: var(--grad-composer); background-size: 220% 220%; box-shadow: 0 12px 30px rgba(15,27,45,.25); }
#library .hero-copy { background: var(--grad-library); background-size: 220% 220%; box-shadow: 0 12px 30px rgba(27,27,31,.25); }
.nav-btn.active { background: var(--here); color: #fff; box-shadow: 0 6px 18px rgba(61,42,107,.28); }
.ie-mark rect { fill: var(--accent); }

/* ---- Composer, light ---- */
#co-writer .hero-copy { margin-bottom: 4px; }
.room-empty { margin: 18px 0 32px; }
.drafts-cols { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); column-gap: 24px; row-gap: 10px; }
.dcol-head { display: block; min-height: 0; }
.dcol-title { margin: 0; color: var(--ink); font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.01em; }
.dcol-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin-top: 4px; color: var(--ink-soft); font-size: 0.92rem; }
.dcol-sub .from { font-size: 0.85rem; color: var(--ink-soft); }
.drafts-week { font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.drafts-week:focus-visible { outline: 2px solid var(--here); outline-offset: 2px; }
.draft-card, .wait-card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.draft-card:hover, .wait-card:hover { border-color: var(--here-line); transform: translateY(-1px); }
.draft-card b, .wait-card b, .dc-compact b { color: var(--ink); }
.dc-when { color: var(--ink-soft); }
.dc-for { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: #6e6e76; }
.dc-for .lb2-pf svg { width: 16px; height: 16px; display: block; filter: grayscale(1) brightness(.6) contrast(1.3); }
.wa-btn { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.wa-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.wa-btn:hover { border-color: var(--here-line); } .wa-btn.primary:hover { background: var(--accent-ink); }
.wait-empty, .drafts-empty { color: var(--ink-soft); }

/* ---- the writing room: an overlay over Composer, like Idea Bank's ---- */
body.room-open { overflow: hidden; }
.wroom { position: fixed; inset: 0; z-index: 45; margin: 0; background: rgba(20,18,22,.42); backdrop-filter: blur(3px); overflow: auto; padding: 28px 24px; animation: lbFade .2s ease both; }
.wroom[hidden] { display: none; }
.wroom-panel { width: min(1180px, 100%); margin: 0 auto; background: var(--bg); border-radius: 22px; box-shadow: 0 30px 80px rgba(20,18,22,.3); padding: 22px 26px 26px; animation: lbPop .34s var(--spring) both; }
.wr-from { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; color: var(--ink-soft); }
.wr-from .wr-idea { flex: 1; min-width: 0; }
.wr-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wr-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--here); background: var(--here-soft); border-radius: 999px; padding: 2px 8px; }
.wr-from b#wr-hook { display: block; color: var(--ink); font-size: 1.45rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; white-space: normal; text-wrap: balance; }
.wr-from span { white-space: normal; overflow: visible; }
.wr-home { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.wr-home:hover { border-color: var(--here-line); }
.wr-about { color: var(--ink); border-color: var(--line-2); background: #fff; }
.wr-tabbar { padding-left: 0; }
.wr-tab { color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; margin-bottom: 8px; background: #fff; }
.wr-tab:hover { color: var(--ink); }
.wr-tab.on { background: var(--here-soft); border-color: var(--here); color: var(--ink); }
.wr-rec { color: var(--ink-soft); font-weight: 600; }
.wr-tabs { gap: 6px; margin-bottom: 0; }
.wr-plus { color: var(--ink-soft); border-color: var(--line-2); }
.wr-plus:hover { color: var(--ink); border-color: var(--here); }
.wr-page { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(25,23,28,.04), 0 18px 44px rgba(25,23,28,.08); min-height: 520px; }
.wr-page-top { color: var(--ink-soft); }
.wr-page-top b { color: var(--here); }
.wr-draft { color: var(--ink); }
.wr-draft .wr-hookline { color: var(--ink); border-left: 2px solid var(--here); padding-left: 12px; margin-left: -14px; }
.wr-draft .wr-hookline span { background-image: none; padding: 0; }
.wr-writing, .wr-step, .wr-progress small { color: var(--ink-soft); }
.wr-progress-bar { background: var(--surface-2); }
.wr-progress-bar i { background: linear-gradient(90deg, var(--here), var(--accent)); }
.wr-foot { border-color: var(--line); }
.wr-checks { color: var(--ink-soft); } .wr-checks b { color: var(--ok); } .wr-checks b.warn { color: var(--bad); }
.wr-btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(142,31,92,.22); }
.wr-btn.ghost { color: var(--ink); border-color: var(--line-2); background: #fff; }
.wr-media { border-color: var(--line-2); } .wr-media > span { color: var(--ink-soft); }
.wr-media button { color: var(--ink-soft); } .wr-media button[aria-checked="true"] { background: var(--here-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--here); }
.wr-coach { background: #fbfbfd; border: 1px solid var(--line); top: 0; height: 620px; }
.wr-coach-head { border-color: var(--line); }
.wr-coach-head i { background: var(--grad-bank); }
.wr-coach-head b { color: var(--ink); } .wr-coach-head small { color: var(--ink-soft); }
.wr-msg.c { background: #fff; border-color: var(--line); color: var(--ink); }
.wr-msg.u { background: var(--here); color: #fff; }
.wr-msg.err { border-color: var(--bad); color: var(--bad); }
.wr-dots span { background: var(--ink-soft); }
.wr-quick button { color: var(--ink); border-color: var(--line-2); background: #fff; }
.wr-quick button:hover:not(:disabled) { border-color: var(--here); }
.wr-quick button.nudge { border-color: var(--here); background: var(--here-soft); color: var(--ink); }
.wr-ask { background: #fff; border-color: var(--line-2); } .wr-ask input { color: var(--ink); } .wr-ask input::placeholder { color: #8a8a92; }
.wr-ask button { background: var(--accent); }
.wr-style { border-color: var(--line); } .wr-style button { color: var(--ink-soft); }
.wr-style button.on { background: var(--here-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--here); }
.wr-style-i { color: var(--ink-soft); border-color: var(--line); } .wr-style-i[aria-expanded="true"], .wr-style-i:hover { color: var(--ink); border-color: var(--here); }
.wr-style-pop { background: #fff; border-color: var(--line); box-shadow: var(--shadow-hover); } .wr-style-pop p { color: var(--ink-soft); } .wr-style-pop b { color: var(--ink); }
.wr-tray { background: #fff; color: var(--ink); border-color: var(--line); z-index: 62; }
.wr-tray-top b { color: var(--ink-soft); } .wr-tray h2, .wr-tray h3 { color: var(--ink); } .wr-tray h3.accent { color: var(--here); } .wr-tray p { color: var(--ink); }
.wr-x { color: var(--ink); border-color: var(--line-2); }
#wr-scrim { z-index: 61; }
.wr-status i { background: var(--here); }

/* ---- Production view, light ---- */
.pv-seg { border-color: var(--line-2); } .pv-seg button { color: var(--ink-soft); }
.pv-seg button[aria-checked="true"] { background: var(--here-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--here); }
.pv-lede, .pv-when, .pv-you, .pv-lbl { color: var(--ink-soft); }
.pv-when strong { color: var(--here); }
.pv-stale { background: var(--here-soft); border-color: var(--here-line); color: var(--ink); }
.pv-beat { background: #fff; border-color: var(--line); }
.pv-beat.is-hook { border-color: var(--here); box-shadow: 0 0 0 1px var(--here) inset; }
.pv-i { color: var(--ink-soft); border-color: var(--line-2); } .pv-i[aria-expanded="true"] { background: var(--here); border-color: var(--here); color: #fff; }
.pv-about { background: var(--surface-2); color: var(--ink); }
.pv-say { color: var(--ink); } .pv-say:hover, .pv-say:focus { background: var(--surface-2); } .pv-say:focus { box-shadow: 0 0 0 1px var(--here); }
.pv-note { color: var(--here); }
.pv-addnote { color: var(--ink); border-color: var(--line-2); } .pv-addnote:hover { border-color: var(--here); color: var(--ink); }
.pv-sticky { background: var(--here-soft); border-color: var(--here-line); }
.pv-sticky p { color: var(--here); } .pv-sticky-top { color: var(--ink-soft); }
.pv-sticky textarea { background: #fff; border-color: var(--line-2); color: var(--ink); }
.pv-nb { border-color: var(--line-2); color: var(--ink); } .pv-nb.save { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-box { background: #fff; border-color: var(--line); color: var(--ink); }
.pv-copy { background: var(--surface-2); color: var(--here); border-color: var(--line-2); }

/* ---- the media sheet, opened from Composer: same overlay size and frame as the writing room ---- */
.lb-sheet.wide { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); grid-template-rows: auto 1fr auto; }
.lb-sheet.wide .lb-sheet-top { grid-column: 1 / -1; }
.lb-sheet.wide .lb-sheet-body { grid-column: 1; grid-row: 2; border-right: 1px solid var(--line); }
.lb-sheet.wide .lb-sheet-add { grid-column: 2; grid-row: 2; overflow: auto; padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.lb-sheet.wide .lb-sheet-media { grid-column: 1; }
.lb-sheet.wide .lb-sheet-foot { grid-column: 1 / -1; }
.lb-logo svg { filter: grayscale(1) brightness(.6) contrast(1.3); }
@media (max-width: 860px) { .lb-sheet.wide { display: flex; } .drafts-cols { grid-template-columns: 1fr; } .wroom { padding: 0; } .wroom-panel { border-radius: 0; padding: 16px; } }

/* Plum & Ink v1, round 2 */
:root { --grad-library: linear-gradient(130deg, #1b1b1f 0%, #3a2f2a 50%, #7a4a2a 125%); }
.lb2-pf svg, .lb-logo svg, .dc-for .lb2-pf svg { filter: grayscale(1) brightness(.6) contrast(1.3); }
.lb-seg.on { background: var(--here) !important; color: #fff !important; }
.wr-add { position: relative; padding-bottom: 8px; }
.wr-add-menu { position: absolute; top: calc(100% - 2px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-hover); display: grid; min-width: 230px; }
.wr-add-menu[hidden] { display: none; }
.wr-add-menu button { display: flex; align-items: center; gap: 9px; font: inherit; font-size: 0.88rem; color: var(--ink); background: none; border: 0; border-radius: 9px; padding: 8px 10px; cursor: pointer; text-align: left; }
.wr-add-menu button:hover { background: var(--here-soft); }
.wr-add-menu .lb2-pf svg { width: 18px; height: 18px; display: block; }
.wr-tabbar { align-items: center; }

/* Plum & Ink v1, round 3 (Dan + Saul, 2026-11-02)
   1. The big switch is wayfinding, not an action: the selected tab wears its room's gradient.
   2. One card size: a 3-column grid (drafts span 2 with two cards across, Awaiting media takes 1),
      every card the same width and height; two-line title, bottom row pinned. */
.nav-btn.active[data-screen="idea-bank"] { background: var(--grad-bank); box-shadow: 0 6px 18px rgba(42,21,48,.30); }
.nav-btn.active[data-screen="co-writer"] { background: var(--grad-composer); box-shadow: 0 6px 18px rgba(15,27,45,.30); }
.nav-btn.active[data-screen="library"] { background: var(--grad-library); box-shadow: 0 6px 18px rgba(27,27,31,.30); }
.drafts-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.drafts-cols > .dcol-head:first-child, .drafts-cols > .drafts-list { grid-column: span 2; }
.drafts-cols .draft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wait-list { gap: 14px; }
.dc-compact, .wait-card { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 108px; box-sizing: border-box; padding: 14px 16px; }
.dc-compact b, .wait-card b { min-height: 2.76em; }
.dc-compact .dc-row, .wait-card .dc-row { min-height: 26px; align-items: center; }
.wait-card .wait-act { margin: 0; }
@media (max-width: 860px) { .drafts-cols { grid-template-columns: 1fr; } .drafts-cols > .dcol-head:first-child, .drafts-cols > .drafts-list { grid-column: auto; } .drafts-cols .draft-grid { grid-template-columns: 1fr; } }

/* =====================================================================================
   SEAFOAM & SIGNAL v1: the one system (Dan + Saul, 2026-11-03). Supersedes Plum & Ink.
   Source: docs/design/rooms-blue-band-v3.html + type-test-v1.html; why: docs/design/DESIGN-HISTORY.md.
   - One band: logo + nav + room title + one line, seafoam, the same in every room. Tools sit below it.
   - One action color: Signal orange #d43f00 with white text (4.7:1), only on each card's main button.
   - Charcoal = you are here (selected tab, selected option). Counts are gray. Green = done. Red = urgent.
   - One font: Manrope. Room titles in normal case (no all caps). No gray wells, no room gradients.
   ===================================================================================== */
:root {
  --band: #a5d3d4; --band-ink: #000; --band-soft: rgba(0,0,0,.72); --band-line: rgba(0,0,0,.08);
  --bg: #f4f5f5; --card: #fff; --surface-2: #eeeeee; --label-bg: #eeeeee;
  --ink: #000; --ink-strong: #000; --ink-soft: #5f5f5f; --line: #e2e2e2; --line-2: #d6d6d6; --hair: rgba(0,0,0,.07);
  --accent: #d43f00; --accent-ink: #b33600; --on-accent: #fff; --accent-hover: #bf3900;
  --logo: #ff5000;
  --chip: #ffe9df; --soft: #f2f3f3; --hover: #f0b49a; --hl: rgba(255,80,0,.16);
  --here: #282828; --here-soft: rgba(0,0,0,.06); --here-line: rgba(0,0,0,.3);
  --glow: 0, 0, 0; --chrome: var(--band);
  --grad: var(--band); --grad-bank: var(--band); --grad-composer: var(--band); --grad-library: var(--band);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.06), 0 14px 28px rgba(0,0,0,.10);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --display: var(--font);
}
body { font-family: var(--font); background: var(--bg); color: var(--ink); }
::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline-color: var(--here); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the band: top bar + nav + room head read as one seafoam block ---- */
.topbar { background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-line); }
.wordmark { color: var(--band-ink); font-weight: 800; }
.ie-mark rect { fill: var(--logo); }
.tenant, .me-btn { background: rgba(255,255,255,.4); border-color: rgba(0,0,0,.16); color: var(--band-ink); }
.tenant:hover, .me-btn:hover, .tenant.static:hover { background: rgba(255,255,255,.65); border-color: rgba(0,0,0,.24); }
.tenant-name { color: var(--band-ink); }
.tenant svg, .me-btn svg { color: rgba(0,0,0,.55); }
.navbar { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding-top: 16px; padding-bottom: 0; }
.nav-pill { background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.08); box-shadow: none; }
.nav-btn { color: #3a3a3a; font-weight: 600; }
.nav-btn:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.nav-btn.active, .nav-btn.active[data-screen] { background: var(--here); color: #fff; box-shadow: none; }
.nav-count { background: rgba(0,0,0,.1) !important; color: inherit !important; }
.nav-btn.active .nav-count { background: rgba(255,255,255,.18) !important; }
main { padding-top: 0; }
.hero-copy, .bank-head, #idea-bank .bank-head, #co-writer .hero-copy, #library .hero-copy {
  display: block; background: var(--band); color: var(--band-ink);
  box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
  border-radius: 0; padding: 18px 0 26px; margin: 0 0 20px; animation: none;
}
.hero-copy h1, .bank-head h1 {
  font-family: var(--font); font-weight: 800; text-transform: none; color: var(--band-ink);
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.25; padding-bottom: .1em;
  margin: 0; text-wrap: balance;
}
.hero-copy .sub, .bank-head .sub { color: var(--band-soft); font-size: 0.98rem; margin-top: 4px; max-width: 70ch; }
.bank-copy { display: block; }
.bank-head .bank-links a { color: var(--band-ink); }
@media (min-width: 700px) {
  .hero-copy h1, .bank-head h1, .hero-copy .sub, .bank-head .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- one toolbar under the band, one switch style ---- */
.bank-bar { margin: 0 0 16px; gap: 10px 16px; }
.bank-bar .bar-left, .bank-bar .bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.kinds { display: inline-flex; gap: 2px; padding: 3px; background: #e6e7e7; border-radius: 999px; flex-wrap: wrap; }
.kind { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 6px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transform: none; }
.kind b { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); opacity: .85; }
.kind em { display: none; }
.kind:hover:not(:disabled) { background: rgba(255,255,255,.6); color: var(--ink); transform: none; }
.kind.on, .kind.on:hover:not(:disabled) { background: #fff; color: var(--ink); border: 0; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.kind:disabled { background: transparent; border: 0; color: #a3a7ab; }
.kind:disabled b { display: none; }
.kind:focus-visible { outline: 2px solid var(--here); }
.kinds-info, .ap-info { width: 18px; height: 18px; border: 1px solid var(--line-2); color: var(--ink-soft); background: none; }
.kinds-info:hover, .kinds-info[aria-expanded="true"], .ap-info:hover, .ap-info[aria-expanded="true"] { background: var(--here); border-color: var(--here); color: #fff; }
.kinds-pop { left: 0; right: auto; width: min(340px, 90vw); top: calc(100% + 8px); box-shadow: var(--shadow-hover); }
.kinds-defs b { color: var(--ink); }
.seg { background: #e6e7e7; }
.seg-thumb { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button[aria-checked="true"] { color: var(--ink); font-weight: 700; }
.bank-week { margin: 0; padding: 0; color: var(--ink-soft); font-size: 0.82rem; }
.week-pick { color: var(--ink); background: var(--card); border: 1px solid var(--line-2); padding: 5px 10px; }
.week-pick:hover { border-color: var(--here-line); background: var(--card); }
.week-pick:focus-visible { outline-color: var(--here); }
.week-older { background: var(--surface-2); color: var(--ink-soft); }
.tune-open { margin: 0; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); font-size: 0.82rem; font-weight: 600; padding: 6px 13px; }
.tune-open:hover { background: var(--card); border-color: var(--here-line); transform: none; }
.tune-open:focus-visible { outline-color: var(--here); }
.tune-count { color: var(--ink-soft); font-weight: 500; }
.bank-end { text-align: center; margin-top: 18px; font-size: 0.84rem; color: var(--ink-soft); }
.bank-end .ap-count { display: none; }
.used-toggle { color: var(--ink); text-decoration-color: #c9cdd1; }

/* ---- one card ---- */
.pillar-card, .lb2-card, .draft-card, .wait-card { background: var(--card); border: 1px solid rgba(0,0,0,.06); border-radius: 16px; box-shadow: var(--shadow); }
.pillar-card:hover, .lb2-card:hover, .draft-card:hover, .wait-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(0,0,0,.1); }
.pillar-card .more { background: var(--card); color: var(--ink-soft); }
.pillar-card .more:hover { background: var(--soft); color: var(--ink); }
.write-btn, .wa-btn.primary, .wr-btn.primary, .mini-btn.primary, .cta-btn, .pv-nb.save { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: none; }
.write-btn:hover, .wa-btn.primary:hover, .wr-btn.primary:hover, .cta-btn:hover { background: var(--accent-hover); box-shadow: none; }
.wr-ask button { background: var(--accent); color: #fff; }
.card-meta .rated.on { color: var(--ink); }
.badge.top, .top-pick { background: var(--chip); color: var(--accent-ink); }

/* ---- Library: no gray well, solid Publish, calm selected tab ---- */
.lb2-well { background: transparent; padding: 0; border-radius: 0; }
.lb2-tab b { font-family: var(--font); text-transform: none; font-weight: 800; letter-spacing: -0.01em; }
.lb2-tab.on .n { background: var(--here); color: #fff; }
.lb2-act.go, .lb2-card:hover .lb2-act.go { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb2-card:hover .lb2-act:not(.go) { border-color: var(--here-line); color: var(--ink); }
.lb-seg.on { background: var(--here) !important; color: #fff !important; }
.lb2-card.published { background: var(--card); border-color: rgba(0,0,0,.06); }

/* ---- leftovers that wore the old fonts/colors ---- */
.drawer-head h2 { font-family: var(--font); text-transform: none; letter-spacing: -0.015em; }
.pv-when strong { font-family: var(--font); }
.wr-coach-head i { background: var(--accent); color: #fff; }
.wr-tag, .wr-page-top b, .pv-when strong, .pv-note, .pv-copy, .wr-tray h3.accent { color: var(--ink); }
.brand-check { color: var(--accent); }

@media (max-width: 700px) {
  .hero-copy, .bank-head, #idea-bank .bank-head, #co-writer .hero-copy, #library .hero-copy { padding: 12px 0 20px; }
  .navbar { padding-top: 10px; }
  .nav-pill { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .bank-bar .bar-left, .bank-bar .bar-right { width: 100%; }
  .kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 28px); }
  .kind { white-space: nowrap; }
}
.bank-bar .ap-label, .bank-bar .week-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bank-bar .ap { flex-direction: row-reverse; }
.tune-count:not(:empty) { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--surface-2); color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; }
.lb-pgrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

/* ---- Seafoam & Signal v1, round 2: fixes from the first /impeccable critique (2026-11-03) ---- */
/* 1. One switch everywhere: gray track, white pill for the pick. */
.pv-seg, .wr-style, .wr-media, .lb-group, .lb2-scope { background: #e6e7e7; border: 0; border-radius: 999px; padding: 3px; gap: 2px; overflow: visible; box-shadow: none; }
.pv-seg button, .wr-style button, .wr-media button, .lb-seg { color: var(--ink-soft); background: transparent; border-radius: 999px; box-shadow: none; font-weight: 600; }
.pv-seg button[aria-checked="true"], .wr-style button.on, .wr-media button[aria-checked="true"], .lb-seg.on, .lb-person.all.on {
  background: #fff !important; color: var(--ink) !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; font-weight: 700; }
.wr-media > span { color: var(--ink-soft); }
.pv-seg button:focus-visible, .wr-style button:focus-visible, .wr-media button:focus-visible { outline: 2px solid var(--here); outline-offset: 1px; }
.wr-coach-head { flex-wrap: wrap; row-gap: 8px; }
.wr-style { margin-left: auto; }
/* 2. Colors keep one meaning each. */
.lb-person.on .face { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--here); }
.wr-msg.u { background: #e9eded; color: var(--ink); }
.fbox-write h3, .wr-tray h3.accent { color: var(--ink); }
.wr-ask button { background: var(--here); color: #fff; }
.focus-sources a { color: var(--ink); text-decoration: underline; text-decoration-color: #c9cdd1; text-underline-offset: 3px; }
.wr-progress-bar i { background: var(--accent); animation: none; }
.rate-btn.on { color: var(--ink); background: #fff; border-color: var(--here); }
.rate-btn.on svg { fill: var(--ink); stroke: var(--ink); }
/* 4. No gray wells, no all-caps labels. */
.fbox, .fbox-write { background: var(--card); border: 1px solid var(--line); }
.focus-side { background: transparent; }
.focus-sources > span, .focus .label, .reveal .label, .wr-page-top b, .wr-tray-top b, .wr-tag, .draft-week h3, .try-this b, .bank-eyebrow,
.soon-tag, .beat-label, .pv-sticky-top, .kinds-head, .drafts-head h3, .cowrite-col h3, .scan-sharp-label, .scan-group-label {
  text-transform: none; letter-spacing: 0; }
.focus-sources > span, .wr-page-top b, .wr-tag, .wr-tray-top b { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); background: none; padding: 0; }
.wr-about, .wr-home { font-size: 0.84rem; }
.wr-ask input::placeholder { color: #6f6f6f; }
.kind:disabled { color: #6f7378; }
/* 5. Rating is the bet's signal: bigger targets; the detail view says the words. */
.card-foot .rate-btn, .rate-btn { width: 40px; height: 40px; border-radius: 999px; }
.focus-foot .rate { gap: 6px; }
.focus-foot .rate-btn { width: auto; padding: 0 14px 0 11px; gap: 6px; display: inline-flex; align-items: center; font: inherit; font-size: 0.84rem; font-weight: 600; }
.focus-foot .rate-btn::after { content: attr(aria-label); }
.kinds-info, .ap-info, .wr-style-i { width: 24px; height: 24px; font-family: var(--font); font-style: normal; font-weight: 700; }
/* Engine tools (Aperture, Super-tune) are owner tools: on the laptop only, never on the website. */
body.hosted .pop-ap, body.hosted #tune-open { display: none; }
/* 3. Composer on a phone: your drafts first, then what's waiting for media. */
@media (max-width: 860px) {
  .drafts-cols > .dcol-head:first-child { order: 1; } .drafts-cols > .drafts-list { order: 2; }
  .drafts-cols > .dcol-head:nth-child(2) { order: 3; margin-top: 18px; } .drafts-cols > .room-wait { order: 4; }
}
.wr-coach-head i { background: var(--band); color: var(--band-ink); }
@media (max-width: 700px) { .kinds { max-width: calc(100% - 40px); } }

/* Card footer fits at three-across: compact rating buttons on the card (the detail view keeps the big labeled ones). */
.pillar-card { padding-left: 20px; padding-right: 20px; }
.pillar-card .more { margin-left: -20px; margin-right: -20px; }
.card-foot { gap: 4px; }
.card-foot .rate { gap: 0; }
.card-foot .rate-btn { width: 34px; height: 34px; }


/* Top bar: white, the app's control strip (Dan, 2026-11-03). It casts a soft shadow once the page scrolls under it.
   The tab pill keeps its spot: the sticky nav strip always has the same room above and below the pill. */
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid rgba(0,0,0,.08); transition: box-shadow .2s ease; }
body.scrolled .topbar { box-shadow: 0 2px 14px rgba(0,0,0,.10); }
.wordmark, .tenant-name { color: var(--ink); }
.tenant, .me-btn { background: #f2f3f3; border-color: #e2e2e2; color: var(--ink); }
.tenant:hover, .me-btn:hover, .tenant.static:hover { background: #e9eaea; border-color: #d6d6d6; }
.tenant svg, .me-btn svg { color: rgba(0,0,0,.5); }
.navbar { padding-top: 16px; padding-bottom: 16px; }
.hero-copy, .bank-head, #idea-bank .bank-head, #co-writer .hero-copy, #library .hero-copy { padding-top: 2px; }
@media (max-width: 700px) {
  .navbar { padding-top: 12px; padding-bottom: 12px; }
  .hero-copy, .bank-head, #idea-bank .bank-head, #co-writer .hero-copy, #library .hero-copy { padding-top: 0; }
}

/* Idea Bank tool row sticks under the nav on laptops, so type and Aperture stay in reach (Dan, 2026-11-03).
   Phones keep it scrolling away: three sticky layers would eat the screen. */
@media (min-width: 861px) and (min-height: 600px) {
  .bank-bar { position: sticky; top: calc(var(--bar-h, 65px) + var(--nav-h, 78px)); z-index: 8; padding: 10px 0; margin: -10px 0 6px; }
  .bank-bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--bg); z-index: -1; }
  .bank-bar::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .2s ease; }
  body.tools-stuck .bank-bar::after { opacity: 1; }
  body.tools-stuck .navbar::after { opacity: 0; }
}

/* One "i" for the whole row: idea types + Aperture in one popover. Super-tune moved to the owner menu. (Dan, 2026-11-03) */
#tune-open { display: none; }
.ap-pop { width: min(360px, 90vw); }
.ap-pop .pop-h { margin: 0 0 6px; font-size: 0.86rem; font-weight: 800; color: var(--ink); }
.ap-pop #kinds-pop { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ap-pop .kinds-defs { gap: 6px; } .ap-pop .kinds-defs b { display: inline; margin-right: 6px; }
@media (min-width: 861px) and (min-height: 600px) {
  .bank-bar::before { transition: box-shadow .2s ease; }
  body.tools-stuck .bank-bar::before { box-shadow: 0 8px 16px -8px rgba(0,0,0,.16); }
}

/* Aperture lives in the owner menu now; the one "i" sits right after the type switch (Dan, 2026-11-03). */
.bank-bar .ap-pop { left: 0; right: auto; top: calc(100% + 10px); }
.pop-h small { font-weight: 500; color: var(--ink-soft); }
.me-ap { display: grid; gap: 6px; padding: 8px 10px 10px; }
.me-ap .ap-label { position: static; width: auto; height: auto; clip: auto; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.me-ap .seg { width: 100%; }
/* "Read the full idea" is gone: the whole card opens it. Kept for keyboard users, visible only on keyboard focus. */
.pillar-card { padding-bottom: 20px; }
.pillar-card .more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0; }
.pillar-card .more:focus-visible { position: static; width: auto; height: auto; clip: auto; margin: 14px -20px -20px; padding: 10px 20px; border-top: 1px solid var(--line); }
.pillar-card { cursor: pointer; }
/* Tool row: same family as the green tab strip (Dan, 2026-11-03). */
@media (min-width: 861px) and (min-height: 600px) { .bank-bar { padding: 14px 0; margin-top: -14px; } }
/* "Show used" is a filter, so it lives in the filter row (Saul, 2026-11-03). Charcoal when on = "you are here". */
.bank-bar .used-toggle { font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bank-bar .used-toggle:hover { border-color: var(--here-line); }
.bank-bar .used-toggle.on { background: var(--here); border-color: var(--here); color: #fff; }
.kind-used { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
.bank-end { display: none; }
.kind-all { color: var(--ink); background: var(--card); border-color: var(--line-2); } .kind-all:hover { background: var(--card); border-color: var(--here-line); }

/* Composer v2 (Saul + Dan, 2026-11-03): Idea Bank's shape. Count title in the band, one filter row
   (Drafts | Awaiting media on the left, week on the right, sticky on laptop), one even grid of cards. */
.room-empty { margin: 0 0 32px; }
#room-ip[hidden], #room-wait[hidden] { display: none; }
.room-wait { position: static; top: auto; }
.draft-grid, .wait-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dc-compact, .wait-card { height: auto; min-height: 118px; }
.dc-compact b, .wait-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.98rem; line-height: 1.38; font-weight: 700; }
.drafts-empty, .wait-empty { color: var(--ink-soft); padding: 18px 0; }
.comp-bar .bank-week select { font: inherit; }

/* One close button everywhere: a round × in the top right (Saul, 2026-11-03). */
.wr-home, .lb-x, .drawer-x, .wr-x {
  flex: none; width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 400 1.35rem/1 var(--font); cursor: pointer; }
.wr-home:hover, .lb-x:hover, .drawer-x:hover, .wr-x:hover, .focus-arrow:hover { border-color: var(--here); color: var(--ink); background: var(--card); }
.focus-arrow { width: 36px; height: 36px; border-color: var(--line-2); }

/* Switching rooms: the green band never moves (no white strip). Only its text and the content below rise in. (Dan, 2026-11-03) */
.screen, .screen.active { animation: none; }
.screen.active > .hero-copy > *, .screen.active > .bank-head > *, .screen.active > :not(.hero-copy):not(.bank-head) { animation: rise .45s ease both; }
@media (prefers-reduced-motion: reduce) { .screen.active > * , .screen.active > .hero-copy > *, .screen.active > .bank-head > * { animation: none; } }
/* Platform = a word in a gray pill, no logos (Dan, 2026-11-03). */
.dc-for { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; min-width: 0; }
.pf-pill { background: var(--surface-2); color: #3f454a; border-radius: 6px; padding: 1px 7px; font-size: 0.72rem; font-weight: 650; }
.pf-pill.more { background: none; color: var(--ink-soft); padding: 0 2px; }
/* Awaiting media: the production guide rides along with the piece (Dan, 2026-11-03). */
.lb-pv { display: inline-flex; margin: 0 0 16px; }
.lb-story { white-space: pre-wrap; }
.lb-guide { white-space: normal; }
.lb-guide h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px; }
.lb-guide h4 { font-size: 0.95rem; font-weight: 800; margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.lb-guide p { margin: 0 0 8px; line-height: 1.55; }
.lb-guide b { font-weight: 700; }
.lb-logo:empty { display: none; }
/* Production view on the new system: no all caps, neutral phone screens (no plum), no pink outlines. (2026-11-03) */
.pv-when strong { text-transform: none; font-size: 0.9rem; color: var(--ink); letter-spacing: -0.01em; }
.pv-when { color: var(--ink-soft); }
.pv-you { text-transform: none; letter-spacing: 0; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.pv-phone { border-color: #2b2d2f; }
.pv-phone .cam { background: radial-gradient(120% 70% at 50% 30%, #3e4a4b, #161819 70%); }
.pv-phone .cam svg { color: #5d6b6c; }
.pv-phone .broll { background: linear-gradient(160deg, #354344, #121415); }
.pv-phone .scr .bub { outline-color: var(--logo); }
.pv-beat.is-hook { border-color: var(--here); box-shadow: none; }
/* Library cards: the same height as Idea Bank's (267px); the image takes what the text leaves (Dan, 2026-11-03). */
@media (min-width: 701px) {
  .lb2-card { height: 267px; }
  .lb2-card .lb-thumb { aspect-ratio: auto; flex: 1 1 auto; min-height: 72px; }
  .lb2-card .lb2-cbody { flex: 0 0 auto; padding: 12px 16px 10px; gap: 6px; }
  .lb2-card .lb2-ctitle { -webkit-line-clamp: 2; font-size: 0.98rem; }
  .lb2-card:not(:has(.lb-thumb)) .lb2-cbody { flex: 1 1 auto; }
}
.lb2-card .lb-thumb > img, .lb2-card .lb-thumb > video { object-position: 50% 28%; }

/* Writing room, round 1 (Dan + Saul, 2026-11-03):
   - the top strip wears the room's seafoam, headline in black, so the overlay feels like part of the room
   - more room between the "Draft" label and the headline
   - the coach panel's top lines up with the draft page, and it's tinted: the place you act */
.wroom-panel { padding-top: 0; overflow: hidden; }
.wr-from { background: var(--band); margin: 0 -26px 18px; padding: 20px 26px 20px; align-items: center; }
.wr-from .wr-eyebrow { margin-bottom: 8px; }
.wr-tag { color: var(--band-soft); }
.wr-from b#wr-hook { color: var(--band-ink); }
.wr-about { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.14); }
.wr-about:hover { background: rgba(255,255,255,.8); border-color: rgba(0,0,0,.24); }
.wr-from .wr-home { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.14); }
.wr-coach { margin-top: var(--wr-tab-h, 39px); background: #eaf4f4; border-color: #cfe5e5; }
.wr-coach-head { border-color: #d6e9e9; }
.wr-coach-head i { background: #fff; }
.wr-msg.c { background: #fff; border-color: #d6e9e9; }
.wr-msg.u { background: #d5e9ea; color: var(--ink); }
.wr-quick button { background: #fff; border-color: #cfe0e0; }
.wr-ask { background: #fff; border-color: #cfe0e0; }
.wr-style { background: #d9eaea; }
@media (max-width: 860px) { .wr-from { margin: 0 -16px 14px; padding: 16px; } .wr-coach { margin-top: 18px; } }
/* Writing room, round 2: the headline stays on one line (full text on hover and in About this idea);
   the coach panel gets a real seafoam tint with a seafoam edge, so it separates from the gray. (2026-11-03) */
@media (min-width: 861px) { .wr-from b#wr-hook { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; } }
.wr-coach { background: #d3e9e9; border: 1px solid #a5d3d4; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 24px rgba(31,95,97,.10); }
.wr-coach-head { border-color: #b9dcdc; }
.wr-msg.c, .wr-quick button, .wr-ask { border-color: #b9dcdc; }
.wr-msg.u { background: #bfe0e0; }
.wr-style { background: #c2e0e0; }

/* Writing room, round 3 (Saul + Dan, 2026-11-03) */
/* 1. The finish line is always in view: Copy and Save pinned to the bottom of the draft. */
.wroom-panel { overflow: clip; }
.wr-foot { position: sticky; bottom: 0; z-index: 3; background: #fff; margin: 0 -42px -1px; padding: 14px 42px 16px; border-top: 1px solid var(--line); box-shadow: 0 -10px 18px -12px rgba(0,0,0,.14); border-radius: 0 0 20px 20px; }
/* 3. Say that the draft is editable. */
.wr-page:not(.is-prod) #wr-count:not(:empty)::before { content: "Click anywhere to edit · "; color: var(--ink-soft); }
/* 4. Platform tabs in the one switch style; the page doesn't repeat the platform name. */
.wr-tabs { display: inline-flex; background: #e6e7e7; border-radius: 999px; padding: 3px; gap: 2px; margin: 0; }
.wr-tab, .wr-tab:hover { background: transparent; border: 0; margin: 0; padding: 6px 13px; border-radius: 999px; color: var(--ink-soft); font-weight: 600; }
.wr-tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); border: 0; font-weight: 700; }
.wr-tabbar { padding-bottom: 8px; }
#wr-kind { display: none; }
/* 5. "More…" reads as a quiet link-chip, not a request. */
.wr-quick .more-asks { background: transparent; border-style: dashed; color: var(--ink-soft); }
.wr-foot { bottom: -28px; } @media (max-width: 860px) { .wr-foot { bottom: 0; } }
.wr-page { padding-bottom: 0; } .wr-foot { margin-bottom: 0; }
.dc-saved { color: var(--ok); font-weight: 600; margin-left: 2px; }
.dc-saved { margin-left: 5px; }
.wr-done { color: var(--ok); font-weight: 800; }
.wr-btn.primary:disabled { background: var(--surface-2); color: var(--ok); cursor: default; }

/* Every pop-up's header wears the room's seafoam (Dan, 2026-11-03). */
.lb-sheet, .focus, .drawer { overflow: clip; }
.lb-sheet-top, .focus-head, .drawer-head { background: var(--band); border-bottom: 0; }
.wr-tray-top { background: var(--band); margin: -24px -26px 18px; padding: 18px 26px; }
.lb-sheet-top .lb-meta, .drawer-head p, .wr-tray-top b { color: var(--band-soft); }
.lb-sheet-top .pf-pill, .focus-head .badge, .focus-head .top-pick { background: rgba(255,255,255,.6); }
.lb-x, .drawer-x, .wr-x, .focus-arrow { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.14); }
/* The next step after saving: quiet, but right beside Save. */
.wr-btn.next { background: var(--card); color: var(--ink); border: 1px solid var(--here); font-weight: 700; }
.wr-btn.next:hover { background: var(--here); color: #fff; }

/* Awaiting media sheet = the draft overlay's twin (Dan, 2026-11-03): same header size and spacing,
   buttons anchored left, the drop box first in the right column. */
.lb-eyebrow:empty { display: none; }
.lb-eyebrow { display: block; font-size: 0.8rem; font-weight: 700; color: var(--band-soft); margin-bottom: 8px; }
.lb-sheet.wide .lb-sheet-top { padding: 20px 26px; align-items: center; }
.lb-sheet.wide .lb-sheet-top h3 { font-size: 1.45rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-sheet.wide .lb-sheet-top .lb-meta { margin-top: 6px; }
.lb-sheet.wide .lb-grow { min-width: 0; }
.lb-sheet-foot { justify-content: flex-start; }
.lb-sheet.wide .lb-sheet-add { gap: 14px; }
.lb-sheet.wide .lb-drop:not(.small) { min-height: 150px; }
/* Confirmation toast (2026-11-03) */
.ie-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 90; display: flex; align-items: center; gap: 12px;
  background: var(--here); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 14px 34px rgba(0,0,0,.25); font-size: 0.9rem; font-weight: 600; transition: transform .3s var(--spring), opacity .2s ease; max-width: calc(100vw - 32px); }
.ie-toast.in { transform: translate(-50%, 0); opacity: 1; }
.ie-toast[hidden] { display: none; }
.ie-toast button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; background: #fff; color: var(--ink); white-space: nowrap; }
.ie-toast .ie-toast-x { background: transparent; color: rgba(255,255,255,.75); padding: 4px 10px; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .ie-toast { transition: none; } }
/* Library pop-ups (Ready to post / Published): roomier header with a label, like the other pop-ups (Dan, 2026-11-03). */
.lb-sheet:not(.wide) .lb-sheet-top { padding: 20px 24px 18px; align-items: center; }
.lb-sheet:not(.wide) .lb-sheet-top h3 { font-size: 1.22rem; line-height: 1.3; }
.lb-sheet .lb-sheet-top .lb-meta { margin-top: 8px; }
.lb-nolink { font-size: 0.84rem; color: var(--ink-soft); flex: 1 1 220px; }
/* Library's Ready to post | Published: the one switch, same size as Idea Bank's and Composer's (Dan, 2026-11-03). */
#lb2-tabs { display: inline-flex; gap: 2px; padding: 3px; background: #e6e7e7; border-radius: 999px; flex-wrap: nowrap; }
.lb2-top { align-items: center; }
#library .lb2-top { margin-top: -4px; }
/* Text-post cards: a seafoam block stands in for the picture, with the post's first line (Dan, 2026-11-03). */
.lb-thumb.textblock { background: var(--band); color: var(--band-ink); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 12px 16px; text-align: left; }
.lb-tb-tag { font-size: 0.72rem; font-weight: 700; color: var(--band-soft); }
.lb-tb-line { font-size: 0.86rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Text-post block, v2: a deeper seafoam with just "Text post" in white (5.4:1). (Dan, 2026-11-03) */
.lb-thumb.textblock { background: #357375; color: #fff; justify-content: center; align-items: center; padding: 0; }
.lb-thumb.textblock .lb-tb-tag { color: #fff; font-size: 0.9rem; font-weight: 700; }

/* The Board (2026-11-03): a busy wall of small, image-first cards. Library loses Mine | Team. */
#lb2-scope, #lb2-people { display: none !important; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 32px; }
.board-card { display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid rgba(0,0,0,.06); border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; box-shadow: var(--shadow); transition: transform .25s var(--spring), box-shadow .2s ease; }
.board-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.board-card:focus-visible { outline: 2px solid var(--here); outline-offset: 2px; }
.board-card .lb-thumb { aspect-ratio: 4 / 5; width: 100%; }
.board-card .lb-thumb > img, .board-card .lb-thumb > video { object-position: 50% 28%; }
.board-meta { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0; }
.board-meta .face { width: 22px; height: 22px; font-size: 0.6rem; }
.board-title { padding: 6px 12px 0; font-size: 0.84rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board-when { padding: 4px 12px 12px; font-size: 0.75rem; color: var(--ink-soft); }

/* Idea Bank detail, v2 (Dan + Saul, 2026-11-03): the pop-up header everyone else has, no "1 of 9" arrows
   (the arrow keys still step through), and a 2/3 + 1/3 body: the brand's take unboxed on the left, the story
   boxed on the right with its sources underneath. */
.focus-head { padding: 20px 20px 20px 28px; align-items: center; }
.focus-meta { display: block; min-width: 0; flex: 1; }
.focus-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.78rem; color: var(--band-soft); }
.focus-head .focus-hook { margin: 0; font-size: 1.45rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--band-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#focus-prev, #focus-next, #focus-count { display: none !important; }
.focus-body { padding: 24px 32px 28px; }
.focus-body > .focus-story { margin: 0 0 20px; font-size: 1rem; color: var(--ink-soft); }
.focus-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
.focus-take h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; color: #2a6466; }
.focus-take p { font-size: 1rem; line-height: 1.65; margin: 0 0 12px; }
.focus-side2 .fbox { margin-top: 0; }
.focus-side2 .fbox h3 { font-size: 0.98rem; }
.focus-side2 .fbox p { font-size: 0.9rem; line-height: 1.6; }
.focus-side2 .focus-sources { margin-top: 14px; padding-top: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 900px) { .focus-cols { grid-template-columns: 1fr; gap: 20px; } .focus-head .focus-hook { white-space: normal; } }

/* One tag style everywhere (Dan + Saul, 2026-11-03): small gray pills, like "For LinkedIn".
   Top pick is the one standout, in deep seafoam with white text. Orange stays for actions only. */
.eyebrow-kind, .eyebrow-time, .card-meta .eyebrow-kind, .card-meta .eyebrow-time {
  display: inline-flex; align-items: center; background: var(--surface-2); color: #3f454a; border-radius: 6px; padding: 1px 7px; font-size: 0.72rem; font-weight: 650; }
.eyebrow-time.past { color: var(--ink-soft); }
.badge.top-pick, .top-pick { background: #357375 !important; color: #fff !important; border-radius: 6px; padding: 1px 7px; font-size: 0.72rem; font-weight: 700; border: 0; }
.focus-label .eyebrow-kind, .focus-label .eyebrow-time { background: rgba(255,255,255,.6); }
.pillar-card:focus { outline: none; }
.pillar-card:focus-visible { outline: 2px solid var(--here); outline-offset: 2px; }
.used-btn.on { color: var(--ok); font-weight: 600; }
.pillar-card[tabindex="-1"]:focus-visible { outline: none; }

/* Descender room for every one-line, cut-off headline (Manrope's g/y/p hang low). (Dan, 2026-11-03) */
.focus-head .focus-hook, .wr-from b#wr-hook, .lb-sheet .lb-sheet-top h3, .lb-sheet.wide .lb-sheet-top h3,
.hero-copy h1, .bank-head h1 { line-height: 1.3; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.dc-compact b, .wait-card b, .lb2-ctitle, .board-title, .card.std h4 { line-height: 1.38; }
.eyebrow-time.soon { color: var(--ink); font-weight: 700; }
/* Idea Bank and Library cards share one height (267px) even as tags come and go. */ #pillar-grid .pillar-card { min-height: max(267px, var(--card-h, 0px)); }

/* Library cards: small picture cards, the same size as the Board's (Dan + Saul, 2026-11-03). */
@media (min-width: 701px) {
  #library .lb-pgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  #library .lb2-card { height: auto; }
  #library .lb2-card .lb-thumb { aspect-ratio: 4 / 5; flex: none; min-height: 0; width: 100%; }
  #library .lb2-card .lb2-cbody { padding: 12px 14px 10px; gap: 6px; }
  #library .lb2-card .lb2-ctitle { font-size: 0.92rem; -webkit-line-clamp: 2; }
  #library .lb2-card .lb2-status { font-size: 0.78rem; }
  #library .lb2-act { margin: 0 14px 14px; }
}
@media (max-width: 700px) {
  #library .lb-pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #library .lb2-card .lb-thumb { aspect-ratio: 4 / 5; }
}
/* Library cards v2: Board-scale (5 across, ~195 wide, square image so the button fits at Board height). */
@media (min-width: 701px) {
  #library .lb-pgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  #library .lb2-card { border-radius: 14px; }
  #library .lb2-card .lb-thumb { aspect-ratio: 1 / 1; }
  #library .lb2-card .lb2-cbody { padding: 10px 12px 8px; gap: 5px; }
  #library .lb2-card .lb2-ctop .face { width: 22px; height: 22px; }
  #library .lb2-card .lb2-ctitle { font-size: 0.84rem; line-height: 1.3; }
  #library .lb2-card .lb2-status { font-size: 0.75rem; }
  #library .lb2-act { margin: 2px 12px 12px; padding: 6px 10px; font-size: 0.8rem; }
}
/* One small card size for Library (Narrow) and the Board: same width, same 350px height.
   The Board has no button, so its picture takes the extra room. (Dan, 2026-11-03) */
@media (min-width: 701px) {
  .board-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .board-card { height: 350px; }
  .board-card .lb-thumb { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
  #library .lb2-card { height: 350px; }
  #library .lb2-card .lb-thumb { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
}

/* Library: no hint line; the time range sits at the right end of the tab row, like the Board (Dan, 2026-11-03). */
#library .lb2-sub { display: none; }
#library .lb2-top { margin-bottom: 16px; }
#library .lb2-top #lb2-range { margin-left: auto; }
#library .lb2-top { margin-bottom: 20px; }

/* ---------- Settings (Dan, 2026-11-04): uses the shared pop-up ---------- */
.lb-sheet-body:has(.set-h) { white-space: normal; }
.set-h { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: var(--ink-strong); }
.set-p { margin: 0 0 16px; color: var(--ink-soft); }
.set-steps { margin: 0 0 18px; padding-left: 1.2em; display: grid; gap: 8px; font-size: .95rem; }
.set-steps a { color: var(--accent-ink); }
.set-steps code { font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.set-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.set-field input { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); }
.set-field input:focus-visible { outline: 2px solid var(--here); outline-offset: 1px; }
.set-small { margin: 4px 0 0; font-size: .85rem; color: var(--ink-soft); }
.set-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--chip); color: var(--accent-ink); font-size: .92rem; }
.set-ok { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.set-ok span { color: var(--ink-soft); font-size: .92rem; }
.set-muted { color: var(--ink-soft); }
/* Aperture's explainer sits under its switch in the owner menu (Dan, 2026-11-04) */
.me-ap-info { font-size: .8rem; line-height: 1.45; color: var(--ink-soft); max-width: 260px; }
.me-ap-info p { margin: 4px 0; }
.me-ap-info p:empty { display: none; }
.me-ap-info .ap-stops { margin: 4px 0; padding-left: 1.1em; }
.lb-sheet.settings #lb-s-title { font-size: 1.5rem; font-weight: 800; }
.lb-sheet.settings #lb-s-eyebrow, .lb-sheet.settings #lb-s-meta { display: none; }
.set-sec + .set-sec { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.set-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Send to Blotato (Dan, 2026-11-04) */
.bl-state { font-size: .9rem; color: var(--ink-soft); margin-right: auto; }
.bl-state.bad { color: var(--accent-ink); }
.lb-link.quiet { opacity: .7; }
.bl-panel { display: grid; gap: 4px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--soft); }
.bl-panel select, .bl-panel textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); resize: vertical; }
.bl-when { border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.bl-when legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.bl-when label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-when input[type=datetime-local] { font: inherit; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 8px; }
.set-svc { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 12px; }
.set-svc.off { background: var(--card); }
.set-h5 { margin: 18px 0 4px; font-size: .95rem; font-weight: 700; }
.set-targets { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.set-targets li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.set-targets li > span { display: grid; }
.set-targets small { color: var(--ink-soft); font-size: .82rem; text-transform: capitalize; }
.set-switch { display: flex; align-items: center; gap: 8px; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.set-switch input { width: 18px; height: 18px; accent-color: var(--here); }
.set-who { font: inherit; font-size: .9rem; padding: 8px 32px 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); flex-shrink: 0; cursor: pointer; }
.set-who:focus-visible { outline: 2px solid var(--here); outline-offset: 1px; }
