/* Client review links, in Cirqley's look (cirqley.com): Product Sans — here Google Sans, its open successor — deep plum
   to lavender, pill buttons with the brand gradient. Status stays plain to read: green = approved, orange = changes
   requested, lilac = in progress, gray = still to review. Phone first — clients approve from their phones. */
:root {
  --bg: #f8f5fa;
  --surface: #ffffff;
  --surface-2: #faf7fc;
  --ink: #150d19;
  --ink-2: #46404b;
  --muted: #7a7083;
  --faint: #b1a7b9;
  --line: #ebe3f0;
  --line-2: #f3eef6;
  --brand: #7a0f87;
  --brand-2: #bb5de1;
  --brand-deep: #5e0466;
  --brand-ink: #6e0f7b;
  --brand-soft: #f7ebfb;
  --brand-line: #e7cdf0;
  --grad: linear-gradient(90deg, #7a0f87 0%, #bb5de1 60%, #7a0f87 100%);
  --ok: #12805a;
  --ok-soft: #e7f6ef;
  --ok-line: #b5e0cb;
  --chg: #c2500f;
  --chg-soft: #fff1e7;
  --chg-line: #f4c9a8;
  --part: #9e4ea8;
  --part-soft: #f6ebf9;
  --part-line: #e2c4ea;
  --wait: #8e8496;
  --wait-soft: #f0ebf3;
  --no: #c23a2c;
  --no-soft: #fdecea;
  --no-line: #f2c3bd;
  --scrim: rgb(24 6 30 / 50%);
  --shadow: 0 1px 2px rgb(45 12 55 / 5%), 0 14px 32px -18px rgb(45 12 55 / 26%);
  --shadow-lg: 0 30px 70px -26px rgb(35 6 45 / 50%);
  --radius: 18px;
  --font: 'Google Sans', 'Product Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Google Sans Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0810; --surface: #160f19; --surface-2: #1b1320; --ink: #f6eff8; --ink-2: #d9cfde; --muted: #a698ad; --faint: #75687c;
    --line: #2c2131; --line-2: #22192a; --brand: #c67bd8; --brand-ink: #e3a8f0; --brand-soft: #2a1530; --brand-line: #4b2654;
    --ok: #4fd29a; --ok-soft: #0f261c; --ok-line: #22513b; --chg: #ffa566; --chg-soft: #2f1b0e; --chg-line: #683a1b;
    --part: #d69be4; --part-soft: #2a1630; --part-line: #4b2654; --wait: #8d8194; --wait-soft: #241b29; --scrim: rgb(0 0 0 / 62%);
    --no: #ff8b7d; --no-soft: #2e1411; --no-line: #6b2a23;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 14px 32px -18px rgb(0 0 0 / 65%); --shadow-lg: 0 30px 70px -26px rgb(0 0 0 / 75%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-ink); }
h1, h2, h3, h4, p { margin: 0; }
.icon { flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }

/* ---------- buttons: pills, like cirqley.com ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; white-space: nowrap; text-decoration: none; transition: background .2s, border-color .15s, box-shadow .2s, filter .2s, transform .06s; }
@media (hover: hover) { .btn:hover { border-color: var(--faint); } .btn.primary:hover { filter: brightness(1.08) saturate(1.05); box-shadow: inset 0 0 10px rgb(255 255 255 / 25%), 0 12px 26px -12px rgb(122 15 135 / 85%); } .btn.ghost:hover { background: var(--line-2); } }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { border: 0; color: #fff; background: var(--grad); box-shadow: inset 0 0 10px rgb(255 255 255 / 20%), 0 10px 22px -12px rgb(122 15 135 / 75%); }
.btn.change { background: var(--chg); border-color: var(--chg); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
@media (prefers-color-scheme: dark) { .btn.change { color: #1a0d05; } }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--ink-2); }
.icon-btn:hover:not(:disabled) { background: var(--line-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.link-btn { border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--ink); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* a part's own decision: Approve (green) or Needs changes (orange) — filled once picked */
.pick { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .06s; }
.pick:active:not(:disabled) { transform: scale(.98); }
.pick:disabled { cursor: default; }
.pick.ok { border-color: var(--ok-line); color: var(--ok); }
@media (hover: hover) { .pick.ok:hover:not(:disabled):not(.on):not(.approve-post) { background: var(--ok-soft); border-color: var(--ok); } .pick.change:hover:not(:disabled):not(.on) { background: var(--chg-soft); border-color: var(--chg-line); color: var(--chg); } }
.pick.ok.on { background: var(--ok); border-color: var(--ok); color: #fff; opacity: 1; }
.pick.change.on { background: var(--chg-soft); border-color: var(--chg); color: var(--chg); }
@media (prefers-color-scheme: dark) { .pick.ok.on { color: #04140d; } }

/* ---------- page ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; display: block; flex: none; object-fit: cover; box-shadow: 0 3px 10px -3px rgb(60 10 70 / 35%); }
.brand b { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.brand small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 11px; border-left: 1px solid var(--line); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.who .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 120px; display: grid; gap: 20px; }
.wrap > * { min-width: 0; }   /* a wide child (the filter row) must not widen the page */

/* ---------- summary: the brand's dark plum hero ---------- */
.hero { display: grid; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -.8px; font-weight: 500; text-wrap: balance; }
.hero-meta { color: var(--muted); font-size: 14.5px; }
.hero-note { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; white-space: pre-wrap; }
.brand-hero { position: relative; overflow: hidden; isolation: isolate; gap: 14px; padding: 30px 30px 28px; border: 0; color: #fff;
  background: radial-gradient(90% 120% at 100% 115%, rgb(187 93 225 / 60%), transparent 58%), radial-gradient(70% 90% at 0% -10%, rgb(122 15 135 / 50%), transparent 62%), linear-gradient(160deg, #12041a 0%, #240930 48%, #3b0f48 100%);
  box-shadow: 0 34px 60px -34px rgb(60 8 75 / 75%); }
.brand-hero .eyebrow { color: #efaff8; }
.brand-hero h1 { margin-top: 2px; }
.brand-hero .grad { background: linear-gradient(90deg, #ffffff 35%, #d8a3e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-hero .hero-meta { color: rgb(255 255 255 / 70%); }
.brand-hero .hero-note { background: rgb(255 255 255 / 9%); border-color: rgb(255 255 255 / 14%); color: rgb(255 255 255 / 88%); }
.brand-hero .progress { margin-top: 6px; }
.brand-hero .bar { background: rgb(255 255 255 / 14%); }
.brand-hero .bar .s-ok { background: #45d39a; } .brand-hero .bar .s-chg { background: #ffa566; } .brand-hero .bar .s-part { background: #d9a0e8; } .brand-hero .bar .s-no { background: #ff7b6b; }
.brand-hero .legend { color: rgb(255 255 255 / 78%); }
.brand-hero .legend b { color: #fff; }
.brand-hero .legend .k-ok { background: #45d39a; } .brand-hero .legend .k-chg { background: #ffa566; } .brand-hero .legend .k-part { background: #d9a0e8; } .brand-hero .legend .k-no { background: #ff7b6b; } .brand-hero .legend .k-wait { background: rgb(255 255 255 / 22%); border: 0; }
.brand-hero .hero-actions { margin-top: 4px; }
/* the ring from Cirqley's mark, big and soft behind the summary */
.hero-ring { position: absolute; z-index: -1; right: -70px; top: -110px; width: 340px; aspect-ratio: 1; border-radius: 50%; opacity: .55;
  background: conic-gradient(from 210deg, #2a0b31, #9e4ea8, #f6dafc, #bb5de1, #4b1157, #2a0b31);
  -webkit-mask: radial-gradient(closest-side, transparent 60%, #000 61.5%, #000 98%, transparent 100%); mask: radial-gradient(closest-side, transparent 60%, #000 61.5%, #000 98%, transparent 100%); }
.progress { display: grid; gap: 10px; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--wait-soft); }
.bar span { display: block; height: 100%; transition: width .35s ease; }
.bar .s-ok { background: var(--ok); } .bar .s-chg { background: var(--chg); } .bar .s-part { background: var(--part); } .bar .s-no { background: var(--no); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .k-ok { background: var(--ok); } .legend .k-chg { background: var(--chg); } .legend .k-part { background: var(--part); } .legend .k-no { background: var(--no); } .legend .k-wait { background: var(--wait-soft); border: 1px solid var(--line); }
.legend b { font-weight: 700; color: var(--ink); }
.lg-short { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* every decision saves as it's made: the page says so (there's no "send") */
.autosave { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px 0 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ok); background: var(--ok-soft); white-space: nowrap; transition: background .2s, color .2s; }
.autosave.busy { color: var(--muted); background: var(--line-2); }
.autosave.bad { color: var(--chg); background: var(--chg-soft); }
.as-short { display: none; }
.head-save { flex: none; }
.all-done { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgb(69 211 154 / 14%); border: 1px solid rgb(69 211 154 / 35%); color: rgb(255 255 255 / 88%); font-size: 14.5px; }
.all-done .icon { color: #45d39a; margin-top: 1px; }
.all-done b { color: #fff; font-weight: 600; }
.saved-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.welcome-save { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 14px; background: var(--ok-soft); color: var(--ok) !important; font-weight: 600; font-size: 14px; }
.banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ok-line); background: var(--ok-soft); color: var(--ink); font-size: 14px; }
.banner .icon { color: var(--ok); margin-top: 2px; }
.banner.locked { border-color: var(--line); background: var(--surface-2); }
.banner.locked .icon { color: var(--muted); }
.banner b { font-weight: 600; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--brand-soft); color: var(--brand-ink); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.filter.on { border-color: transparent; background: var(--grad); color: #fff; }
.filter .n { font-variant-numeric: tabular-nums; opacity: .7; }

/* ---------- status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.waiting { background: var(--wait-soft); color: var(--muted); }
.pill.partial { background: var(--part-soft); color: var(--part); }
.pill.approved { background: var(--ok-soft); color: var(--ok); }
.pill.changes, .pill.modified { background: var(--chg-soft); color: var(--chg); }
.pill.rejected { background: var(--no-soft); color: var(--no); }
.parts-mini { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pm { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.pm.ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.pm.change { color: var(--chg); background: var(--chg-soft); border-color: var(--chg-line); }
.pm.unset { color: var(--faint); background: transparent; border-style: dashed; border-color: var(--line); }

/* ---------- calendar ---------- */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.cal-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.month-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 9px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-2); }
.day { min-height: 128px; padding: 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.day:nth-child(7n) { border-right: 0; }
.day.out { background: var(--surface-2); }
.day.past .day-n { color: var(--faint); }
.day-n { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.day.today .day-n b { background: var(--grad); color: #fff; border-radius: 99px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; padding: 0 6px; }
.chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 6px; width: 100%; text-align: left; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--wait); background: var(--surface); font-size: 12.5px; line-height: 1.25; transition: transform .08s, box-shadow .12s; }
.chip:hover { box-shadow: var(--shadow); }
.chip time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; overflow-wrap: anywhere; }
.chip .icon { color: var(--faint); }
.chip.partial { border-left-color: var(--part); background: var(--part-soft); border-color: var(--part-line); }
.chip.partial .icon { color: var(--part); }
.chip.approved { border-left-color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.chip.approved .icon { color: var(--ok); }
.chip.changes { border-left-color: var(--chg); background: var(--chg-soft); border-color: var(--chg-line); }
.chip.changes .icon { color: var(--chg); }
.chip.dim { opacity: .35; }
/* a narrower calendar: the time above the title, so the title gets the chip's width */
@media (max-width: 1100px) {
  .chip { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 4px; padding: 5px 6px; }
  .chip time { grid-column: 1; grid-row: 1; }
  .chip .icon { grid-column: 2; grid-row: 1; }
  .chip span { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
}
.dots { display: none; gap: 3px; flex-wrap: wrap; justify-content: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.partial { background: var(--part); } .dot.approved { background: var(--ok); } .dot.changes { background: var(--chg); } .dot.rejected { background: var(--no); }
.agenda { display: none; }

/* ---------- list ---------- */
.list { display: grid; gap: 18px; }
.group h3 { position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; align-items: baseline; gap: 10px; padding: 6px 2px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--bg); }
.group h3 small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.rows { display: grid; gap: 8px; }
.row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .12s, transform .08s; -webkit-tap-highlight-color: transparent; }
.row:hover { border-color: var(--brand-line); }
.row:active { transform: scale(.99); }
.row-thumb { width: 54px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #22122a; color: #b59bbf; display: grid; place-items: center; position: relative; flex: none; }
.row-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row.partial .row-thumb { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--part); }
.row.approved .row-thumb { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ok); }
.row.changes .row-thumb { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--chg); }
.row.rejected .row-thumb { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--no); }
.row.rejected .row-thumb img { filter: grayscale(.6); }
.row-why { color: var(--no); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-body { display: grid; gap: 3px; min-width: 0; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-time { font-size: 13px; font-weight: 600; color: var(--muted); }
.row-title { font-size: 16px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-cap { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .parts-mini { margin-top: 3px; }
.row-go { color: var(--faint); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 22px; }

/* ---------- dialogs' backdrop ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: grid; place-items: center; padding: 24px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: .6; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }

/* ---------- one post, full screen: the Ziflow proof takes the room, the three parts sit beside it ---------- */
.screen { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); animation: fade .12s ease; }
.screen-head { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; background: var(--surface); border-bottom: 1px solid var(--line); min-width: 0; }
.screen-head .where { display: grid; min-width: 0; padding-left: 6px; }
.screen-head .where small { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); flex: none; }
.screen-nav span { padding: 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.head-pill { flex: none; }
.back-btn { display: none; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
/* closing sits top right, right above the decision panel where the cursor already is */
.close-x { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; }
.close-x:hover { background: var(--line-2); border-color: var(--faint); }
.zf-frame { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid #2a3042; background: #161a25; color: #e7eaf3; }
.zf-frame.live { display: flex; flex-direction: column; background: #fff; }
.zf-frame.live .zf-embed { flex: 1; min-height: 0; height: auto; }
.zf-closed { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; background: #fff4e5; color: #8a4b12; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid #f3d9b5; }
.zf-embed { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.zf-loading { grid-row: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 10px; font-size: 14px; color: #c9cfdf; }
.zf-bar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; background: #1f2433; border-bottom: 1px solid #2a3042; font-size: 13px; }
.zf-logo { font-weight: 700; letter-spacing: .2px; }
.zf-bar small { opacity: .55; font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.zf-bar a { margin-left: auto; color: #a9c1ff; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
/* the stand-in for Ziflow's own decision button (blue, like Ziflow's), with its menu */
.zf-decide { position: relative; flex: none; }
.zf-decide-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; border: 0; background: #2f6bff; color: #fff; font-weight: 600; font-size: 13px; }
.zf-decide-btn:disabled { opacity: .6; cursor: default; }
.zf-decide-btn.zd-approved, .zf-decide-btn.zd-approved_with_changes { background: #1f9d63; }
.zf-decide-btn.zd-changes_required { background: #d0582a; }
.zf-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 210px; display: grid; padding: 6px; border-radius: 10px; background: #fff; color: #1d2230; box-shadow: 0 16px 40px -12px rgb(0 0 0 / 55%); }
.zf-menu button { text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: inherit; }
.zf-menu button:hover { background: #eef1f7; }
.zf-menu button.on { font-weight: 700; }
.zf-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); min-height: 0; }
.zf-video { display: grid; place-items: center; padding: 20px; min-height: 0; min-width: 0; }
.zf-phone { height: min(100%, 720px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 16px; background: radial-gradient(120% 80% at 30% 20%, #4a2a58, #12081a 70%); display: grid; place-items: center; text-align: center; padding: 14px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 70%); }
.zf-phone .play { width: 58px; height: 58px; border-radius: 50%; background: rgb(255 255 255 / 14%); display: grid; place-items: center; margin: 0 auto 12px; }
.zf-phone b { display: block; font-size: 14px; font-weight: 600; }
.zf-phone small { display: block; font-size: 12px; opacity: .65; margin-top: 4px; }
.zf-comments { border-left: 1px solid #2a3042; background: #1b1f2d; padding: 16px; display: grid; align-content: start; gap: 10px; font-size: 13px; overflow-y: auto; }
.zf-comments b { font-size: 13px; }
.zf-comments p { opacity: .65; line-height: 1.5; }
.zf-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgb(255 255 255 / 6%); opacity: .8; }
.panel { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); }
.panel-scroll { overflow-y: auto; padding: 18px 18px 24px; display: grid; align-content: start; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
/* the video's decision in Ziflow, under the Video part */
.zf-sync { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--muted); }
.zf-sync b { font-weight: 600; color: var(--ink-2); }
.zf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; margin-top: 5px; }
.zf-sync.zd-approved .zf-dot, .zf-sync.zd-approved_with_changes .zf-dot { background: var(--ok); }
.zf-sync.zd-approved b, .zf-sync.zd-approved_with_changes b { color: var(--ok); }
.zf-sync.zd-changes_required .zf-dot { background: var(--chg); }
.zf-sync.zd-changes_required b { color: var(--chg); }
/* the post, once all three parts are decided */
.outcome { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--ok-soft); border: 1px solid var(--ok-line); }
.outcome.changes { background: var(--chg-soft); border-color: var(--chg-line); }
.outcome.rejected { background: var(--no-soft); border-color: var(--no-line); }
.outcome-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex: none; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 16%, transparent); }
.outcome.changes .outcome-icon { background: var(--chg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--chg) 16%, transparent); }
.outcome.rejected .outcome-icon { background: var(--no); box-shadow: 0 0 0 6px color-mix(in srgb, var(--no) 16%, transparent); }
.outcome b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.outcome small { color: var(--ink-2); font-size: 13px; }
.panel-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); background: var(--surface); }
.panel-foot .hint { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.panel-foot .hint b { color: var(--ink-2); font-weight: 600; }
.foot-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.caption { white-space: pre-wrap; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.caption .tag { color: var(--brand-ink); font-weight: 500; }
.caption-meta { font-size: 12.5px; color: var(--muted); }
.ask { display: grid; gap: 9px; }
.ask label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ask textarea, .ask input, .field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px 12px; font-size: 16px; line-height: 1.45; resize: vertical; }
.ask textarea { min-height: 80px; }
.ask textarea::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.ask textarea:focus, .ask input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ask-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ask-row label { min-width: 0; }
/* Safari sizes date and time fields to their own content unless told otherwise */
.ask input[type="date"], .ask input[type="time"] { -webkit-appearance: none; appearance: none; min-width: 0; min-height: 46px; display: block; text-align: left; }
.ask input::-webkit-date-and-time-value { text-align: left; }
.ask .err { color: var(--chg); font-size: 13px; font-weight: 600; }
.asked { display: grid; gap: 6px; }
.was { font-size: 13px; color: var(--muted); }
.was s { text-decoration-thickness: 1px; }
.suggested { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--chg-line); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- one post: the video, beside its date, time and caption (on a phone, all one view) ---------- */
.post-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 36vw, 480px); min-height: 0; }
.stage { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 22px; background: radial-gradient(80% 60% at 50% 110%, rgb(122 15 135 / 28%), transparent 70%), #120a16; }
.player { position: relative; height: min(100%, 820px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 80%); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-cover { position: absolute; inset: 0; border: 0; padding: 0; background: #12081a; -webkit-tap-highlight-color: transparent; }
.player-cover img, .vp-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-blank { background: radial-gradient(120% 80% at 30% 20%, #4a2a58, #12081a 70%); }
.player-cover .vp-play { transition: transform .15s; }
.player-cover:active .vp-play { transform: translate(-50%, -50%) scale(.95); }
.player-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; color: #efe6f3; background: rgb(18 8 26 / 92%); }
.pd { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.pd-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); }
.pd-when { display: flex; align-items: center; gap: 14px; }
.pd-when b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.pd-when div > span { display: block; color: var(--muted); font-size: 14px; margin-top: 1px; }
.pd-cap { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.mini-tile { width: 54px; flex: none; display: grid; text-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 6px 14px -10px rgb(60 10 70 / 45%); }
.mini-tile small { background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 3px 0; }
.mini-tile b { font-size: 22px; font-weight: 600; padding: 4px 0 5px; line-height: 1.1; }
.pick.ok.approve-post { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (hover: hover) { .pick.ok.approve-post:hover:not(:disabled) { filter: brightness(1.07); } }
@media (prefers-color-scheme: dark) { .pick.ok.approve-post { color: #04140d; } }
.panel-foot .up-next { width: 100%; margin: 0; text-align: left; font-size: 13px; }
.asked-list { display: grid; gap: 12px; }
.asked-item { display: grid; gap: 6px; }
.asked-item > b { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--chg); }
.asked-item.rejected > b { color: var(--no); }
.asked-item.rejected .suggested { border-color: var(--no-line); }
/* Needs changes · Reject · Approve post: Approve the widest; short labels where it's tight */
.foot-actions.three { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, 1.2fr); }
.foot-actions.three .pick { padding: 0 10px; }
.lbl-short { display: none; }
.panel { container-type: inline-size; }
@container (max-width: 470px) { .foot-actions.three .lbl-long { display: none; } .foot-actions.three .lbl-short { display: inline; } }
.off-note { display: flex; align-items: center; gap: 8px; }
.change-link { font-size: 13px; color: var(--muted); }
.change-link .link-btn { font-size: 13px; }
/* what needs changing: pick the parts, then say how */
.chg { display: grid; gap: 10px; }
.chg-head { padding: 2px 2px 4px; }
.chg-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.chg-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.chg-opt { border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.chg-opt.on { border-color: var(--chg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chg) 14%, transparent); }
.chg-toggle { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 0; background: transparent; font-size: 16px; color: var(--ink); text-align: left; -webkit-tap-highlight-color: transparent; }
.chg-toggle b { font-weight: 600; }
.chg-toggle > .icon { color: var(--muted); }
.chg-opt.on .chg-toggle > .icon { color: var(--chg); }
.chg-box { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--faint); display: grid; place-items: center; flex: none; color: #fff; transition: background .15s, border-color .15s; }
.chg-opt.on .chg-box { background: var(--chg); border-color: var(--chg); }
.chg-body { padding: 0 16px 16px; }
.moments { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--ink); text-align: left; }
.moments b { display: block; font-weight: 600; font-size: 15px; }
.moments small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.moments-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.moments.done { border-color: var(--ok-line); background: var(--ok-soft); }
.moments.done .moments-icon { background: var(--ok); }
.chg .err { color: var(--chg); font-weight: 600; font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.wk { display: grid; justify-items: center; gap: 2px; padding: 6px 0 8px; border-radius: 12px; color: var(--muted); }
.wk small { font-size: 11px; font-weight: 700; }
.wk b { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.wk.on { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.wk.on b { color: var(--brand-ink); }
.wk.to { box-shadow: inset 0 0 0 1.5px var(--chg); background: var(--chg-soft); }
.wk.to b { color: var(--chg); }
.wk-dots { display: flex; gap: 3px; min-height: 7px; }
.up-next { text-align: center; font-size: 13.5px; color: var(--muted); }
.up-next b { color: var(--ink-2); font-weight: 600; }
.pick.big { min-height: 54px; font-size: 16px; gap: 8px; }

/* ---------- dialogs ---------- */
.dialog { width: min(520px, 100%); background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 24px; display: grid; gap: 16px; animation: rise .18s ease; max-height: calc(100dvh - 48px); overflow-y: auto; }
.dialog h2 { font-size: 22px; font-weight: 600; letter-spacing: -.4px; text-wrap: balance; }
.dialog p { color: var(--ink-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.tally { display: grid; gap: 8px; }
.tally > div { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tally .icon.ok { color: var(--ok); } .tally .icon.chg { color: var(--chg); } .tally .icon.part { color: var(--part); } .tally .icon.wait { color: var(--faint); }
.change-list { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; max-height: 220px; overflow-y: auto; }
.change-list div { display: flex; justify-content: space-between; gap: 10px; }
.change-list span { color: var(--muted); white-space: nowrap; }
.welcome { width: min(560px, 100%); }
.welcome-top { display: flex; align-items: center; gap: 12px; }
.steps { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-size: 15.5px; }
.steps li > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #1d1022; color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: rise .18s ease; }
.toast.error { background: var(--chg); color: #fff; }
.screen.phone ~ .toasts, .screen.phone + .toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---------- a tablet: the video and the post side by side, the panel a little narrower ---------- */
@media (max-width: 980px) {
  .post-body { grid-template-columns: minmax(0, 1fr) minmax(320px, 46vw); }
  .stage { padding: 14px; }
  .zf-stage { grid-template-columns: 1fr; }
  .zf-comments { display: none; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar-in { padding: 9px 16px; }
  .brand small { display: none; }
  .who-name { display: none; }
  .who { padding: 0 5px; }
  .wrap { padding: 16px 16px 120px; gap: 16px; }
  .hero { padding: 20px 18px; border-radius: 22px; gap: 14px; }
  .brand-hero { padding: 22px 18px 20px; gap: 12px; }
  .hero-ring { width: 230px; right: -90px; top: -90px; opacity: .45; }
  .hero h1 { font-size: 28px; letter-spacing: -.6px; }
  .hero-meta { font-size: 13.5px; }
  .legend { gap: 4px 14px; font-size: 13px; }
  .legend i { width: 9px; height: 9px; }
  .lg-full { display: none; }
  .lg-short { display: inline; }
  .as-full { display: none; }
  .as-short { display: inline; }
  .autosave { min-height: 34px; padding: 0 11px 0 9px; font-size: 12.5px; }
  .hero-actions .btn { flex: 1; }
  .toolbar { gap: 10px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg button { justify-content: center; padding: 9px 12px; }
  .filters { margin: 0 -16px; width: calc(100% + 32px); padding: 0 16px 2px; overflow-x: auto; flex-wrap: nowrap; scroll-padding: 0 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  /* the calendar becomes a month of dots, with the picked day's posts below it */
  .day { min-height: 56px; padding: 6px 4px; align-items: center; gap: 4px; }
  .day.has { cursor: pointer; }
  .day .chip { display: none; }
  .day.sel { box-shadow: inset 0 0 0 2px var(--brand); border-radius: 12px; background: var(--brand-soft); }
  .day .dots { display: flex; }
  .day-n { justify-content: center; }
  .cal-dow { padding: 7px 2px; text-align: center; font-size: 10.5px; letter-spacing: .4px; }
  .agenda { display: grid; gap: 8px; padding: 14px 12px; border-top: 1px solid var(--line-2); }
  .agenda h4 { font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .row { gap: 12px; padding: 9px 12px 9px 9px; }
  .row-thumb { width: 50px; }
  .pm { font-size: 11.5px; padding: 1px 7px; gap: 3px; }
  .agenda .row { padding-right: 10px; }
  .agenda .row-thumb { width: 46px; }
  .row-go { display: none; }
  .group h3 { top: calc(53px + env(safe-area-inset-top, 0px)); padding: 8px 2px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .dialog { border-radius: 24px 24px 0 0; align-self: end; max-height: 92dvh; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .scrim:has(.dialog) { place-items: end stretch; padding: 0; }
  .dialog-actions .btn { flex: 1; }

  .screen.phone { grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100dvh; }
  .screen-head { gap: 4px; padding: calc(6px + env(safe-area-inset-top, 0px)) 6px 6px 2px; }
  .back-btn { display: grid; }
  .screen-head .where { padding-left: 0; }
  .screen-head h2 { font-size: 17px; }
  .screen-head .where small { font-size: 12px; }
  .close-x, .head-pill, .head-save { display: none; }
  .screen-nav span { padding: 0 2px; font-size: 12.5px; }
  .screen-nav .icon-btn { width: 36px; height: 36px; }
  .m-sum { padding: 0; color: var(--ok); }
  .m-sum.changes { color: var(--chg); }
  .m-sum.on { color: var(--brand-ink); }
  .m-stage { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 16px 20px; }
  /* one post on a phone: the video, its date and time, its caption — one view to scroll; the decision at the bottom */
  .screen.phone.post { grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; }
  .screen.phone .screen-head { position: sticky; top: 0; z-index: 2; }   /* Safari takes the status bar's colour from it again after Ziflow */
  .m-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 16px 22px; display: grid; gap: 14px; align-content: start; animation: fade .18s ease; }
  .m-body .player { height: min(44dvh, 560px); width: auto; max-width: 100%; justify-self: center; border-radius: 20px; }
  .m-body .player .vp-play { width: 58px; height: 58px; }
  .m-was { display: grid; gap: 8px; justify-items: start; }
  .m-body .pd { padding: 12px 14px; gap: 10px; }
  .m-body .pd-when b { font-size: 16px; }
  .m-body .mini-tile { width: 48px; }
  .m-body .mini-tile b { font-size: 20px; }
  .m-body .caption { font-size: 15px; }
  .m-dock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 -14px 30px -24px rgb(40 8 50 / 45%); }
  .m-dock .btn, .m-dock .pick { width: 100%; min-width: 0; padding: 0 12px; }
  .m-dock .hint { font-size: 13px; color: var(--muted); }
  .m-dock > :only-child { grid-column: 1 / -1; }
  .m-dock.three { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.25fr); gap: 8px; }
  .m-dock.three .pick { padding: 0 8px; gap: 6px; }
  .m-dock .lbl-long { display: none; }
  .m-dock .lbl-short { display: inline; }
  .m-dock .pick.ok:not(.on) { background: var(--ok); border-color: var(--ok); color: #fff; }   /* on a phone, Approve is the big green action */
  .m-dock .pick.ok.on { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
  /* all three decided */
  .outcome-big { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 28px 18px 24px; border-radius: 26px; background: var(--ok-soft); border: 1px solid var(--ok-line); }
  .outcome-big.changes { background: var(--chg-soft); border-color: var(--chg-line); }
  .outcome-big.rejected { background: var(--no-soft); border-color: var(--no-line); }
  .ob-icon { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 0 0 9px color-mix(in srgb, var(--ok) 16%, transparent); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
  .outcome-big.changes .ob-icon { background: var(--chg); box-shadow: 0 0 0 9px color-mix(in srgb, var(--chg) 16%, transparent); }
  .outcome-big.rejected .ob-icon { background: var(--no); box-shadow: 0 0 0 9px color-mix(in srgb, var(--no) 16%, transparent); }
  .outcome-big h3 { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin-top: 8px; }
  .outcome-big p { color: var(--ink-2); font-size: 14.5px; max-width: 32ch; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- the team page ---------- */
.section-title { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.team-list { display: grid; gap: 12px; }
.link-card { display: grid; gap: 14px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.link-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.link-name { display: grid; gap: 2px; min-width: 0; }
.link-name b { font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.link-name small { color: var(--muted); font-size: 13px; }
.link-state { display: grid; justify-items: end; gap: 4px; }
.linkline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.linkline a { color: var(--brand-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.linkline a:hover { text-decoration: underline; }
.slug-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slug-input { display: flex; align-items: center; min-height: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.slug-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.slug-input > span { padding: 0 2px 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.field .slug-input input, .slug-input input { border: 0; box-shadow: none; outline: none; min-width: 120px; flex: 1; padding: 8px 12px 8px 0; font-size: 14px; background: transparent; border-radius: 0; }
/* online: the team page's password */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 70% at 50% 110%, rgb(187 93 225 / 22%), transparent 60%), var(--bg); }
.login { width: min(380px, 100%); display: grid; gap: 18px; padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.login .brand-logo { width: 52px; height: 52px; border-radius: 15px; }
.login h1 { font-size: 24px; font-weight: 600; letter-spacing: -.4px; }
.last-at { font-size: 12px; color: var(--muted); }
.linkbox { display: block; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--ok-line); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.field textarea.paste { font-family: var(--mono); font-size: 13px; min-height: 120px; }
.read { display: grid; gap: 12px; }
.problems { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.problems li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--chg); }
.problems .icon { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.confirm { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.decisions { display: grid; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
.table-wrap th { text-align: left; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tr.changes td:first-child { box-shadow: inset 3px 0 0 var(--chg); }
.table-wrap tr.approved td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.table-wrap tr.partial td:first-child { box-shadow: inset 3px 0 0 var(--part); }
.table-wrap small { color: var(--muted); }
.table-wrap a { color: var(--ink); font-weight: 600; text-decoration: none; }
.table-wrap a:hover { text-decoration: underline; }
.table-wrap .parts-mini { margin-top: 6px; }
.nowrap { white-space: nowrap; }
.asks { display: grid; gap: 6px; }
.asks b { font-weight: 600; }

/* tying a link to the client's reviewer in Ziflow */
.zf-link { display: grid; grid-template-columns: minmax(0, 360px) auto; align-items: end; gap: 8px 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.zf-link .field input { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.zf-link .btn { justify-self: start; }
.zf-status, .zf-link .problems { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.zf-cell { color: var(--muted); }
.zf-cell.bad { color: var(--chg); }
@media (max-width: 760px) { .zf-link { grid-template-columns: 1fr; } }

/* the Ziflow connection */
.zf-conn-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.zf-key { display: flex; gap: 8px; flex-wrap: wrap; }
.zf-key input { flex: 1; min-width: 220px; min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 8px 16px; font-family: var(--mono); font-size: 14px; }
.zf-key input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- on a phone: the video's preview (tap → Ziflow full screen, with Done to come back) ---------- */
.vp-blank { background: radial-gradient(120% 80% at 30% 20%, #4a2a58, #12081a 70%); }
.vp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 45%, rgb(18 4 26 / 72%) 100%); }
.vp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 92%); color: var(--brand-deep); box-shadow: 0 8px 24px rgb(0 0 0 / 30%); }
.vp-play .icon { margin-left: 4px; }
html.zf-open, html.zf-open body { background: #161a25; overflow: hidden; }
.zf-full { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); background: #161a25; animation: fade .12s ease; }
/* Sticky, so Safari (iOS 26) tints the status bar from it — it can't see into Ziflow's frame. */
.zf-full-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: calc(2px + env(safe-area-inset-top, 0px)) 12px 2px 4px; background: #161a25; color: #e9ecf4; border-bottom: 1px solid #2a3042; }
.zf-full-bar span { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; padding-right: 64px; }
.zf-done { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 12px 0 6px; border: 0; border-radius: 10px; background: transparent; color: #d9a6ea; font-size: 16px; font-weight: 600; }
.zf-done.commenting { gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: #45d39a; color: #062016; }
.zf-full-bar:has(.commenting) span { padding-right: 0; text-align: left; font-weight: 500; opacity: .8; }
.zf-full-body { border: 0; border-radius: 0; min-height: 0; }
.zf-full-body.live { display: flex; flex-direction: column; }

/* ---------- an ideas review: ideas grouped by pillar — each with its reference video, title, script and decision ---------- */
.ideas-bar { display: grid; gap: 10px; }
.ideas-bar .filters { margin-left: 0; }
.pillar-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pillar-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px dashed var(--brand-line); color: var(--brand-ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pillar-nav a:hover { background: var(--brand-soft); border-style: solid; }
.pillar-nav .n { opacity: .6; font-variant-numeric: tabular-nums; }
.pillars { display: grid; gap: 30px; }
.pillar { display: grid; gap: 14px; scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.pillar-head { position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 6; display: flex; align-items: baseline; gap: 10px; padding: 10px 4px 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pillar-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
.pillar-head small { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.pillar-done { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pillar-done.all { color: var(--ok); }

.idea { display: grid; grid-template-columns: 330px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "media head" "media body"; gap: 6px 26px;
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); scroll-margin-top: calc(112px + env(safe-area-inset-top, 0px)); transition: border-color .2s; }
.idea.approved { border-color: var(--ok-line); }
.idea.modified { border-color: var(--chg-line); }
.idea.rejected { border-color: var(--no-line); }
.idea-head { grid-area: head; display: grid; gap: 8px; align-content: start; padding-top: 4px; min-width: 0; }
.idea-media { grid-area: media; display: grid; gap: 8px; align-content: start; min-width: 0; }
.idea-body { grid-area: body; display: grid; gap: 14px; align-content: start; min-width: 0; padding-top: 8px; }
.idea-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.idea-n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.idea-name { font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.idea-top .pill { margin-left: auto; }
.idea-title { font-size: 25px; line-height: 1.2; font-weight: 600; letter-spacing: -.5px; text-wrap: balance; }

/* the reference video: a big cover with its play button; it plays with its own platform's player */
.ref { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #12081a; box-shadow: 0 22px 44px -26px rgb(20 2 28 / 80%); }
.ref iframe, .ref video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ref video { object-fit: contain; }
.ref.instagram iframe { background: #fff; }
.ref-cover { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: #12081a; -webkit-tap-highlight-color: transparent; }
.ref-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-cover .vp-play { transition: transform .15s; }
@media (hover: hover) { .ref-cover:hover .vp-play { transform: translate(-50%, -50%) scale(1.06); } }
.ref-cover:active .vp-play { transform: translate(-50%, -50%) scale(.95); }
.ref-cover:disabled { cursor: progress; }
.ref-cover .vp-play .spin { margin-left: 0; }
.ref-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: baseline; gap: 7px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 99px; background: rgb(12 4 18 / 62%); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-badge small { font-weight: 500; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.ref-out { position: absolute; left: 0; right: 0; top: calc(50% + 46px); text-align: center; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 8px rgb(0 0 0 / 60%); }
.ref.none { display: grid; place-items: center; }
.ref.none .vp-blank { position: absolute; inset: 0; }
.ref.none .ref-out { position: relative; top: auto; opacity: .8; }
.ref-link { justify-self: center; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.ref-link:hover { color: var(--ink); }
/* the script, easy to read: who's speaking, bullets, lines */
.idea-notes { display: grid; gap: 8px; }
.idea-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-2); font-size: 14px; }
.idea-note .icon { color: var(--brand-ink); margin-top: 2px; }
.idea-note b { font-weight: 700; color: var(--brand-ink); margin-right: 4px; }
.script-box { display: grid; gap: 10px; }
.script-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 26px; }
.script-head .link-btn { margin-left: auto; }
.script-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); }
.script-label.mine { color: var(--chg); }
.opt-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.opt-tabs button { border: 0; background: transparent; padding: 5px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.opt-tabs button.on { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 4px rgb(40 8 50 / 16%); }
.script { display: grid; gap: 8px; padding: 15px 17px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--brand-2); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; max-height: 430px; overflow-y: auto; }
.script.mine { border-left-color: var(--chg); background: color-mix(in srgb, var(--chg-soft) 70%, var(--surface)); }
.script .spk { font-weight: 700; color: var(--brand-ink); margin-right: 7px; }
.script .gap { height: 2px; }
.script .bl { display: flex; gap: 9px; }
.script .bl .mark { color: var(--brand-ink); font-weight: 700; flex: none; }
.script .bl.sub { padding-left: 22px; color: var(--ink-2); font-style: italic; }
.script-none { padding: 13px 15px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14.5px; }
/* a pitched idea's script, beat by beat */
.idea-summary { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.storyboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sb-beat { display: grid; gap: 7px; padding: 13px 15px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.sb-beat.hook { background: var(--brand-soft); border-color: var(--brand-line); }
.sb-step { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sb-step b { font-size: 14.5px; }
.sb-step small { color: var(--muted); font-size: 13px; }
.sb-n { align-self: center; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.sb-line { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.sb-line .icon { flex: none; margin-top: 3px; color: var(--muted); }
.sb-line span { min-width: 0; }
.sb-line i { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.sb-line.heard span { color: var(--ink); }
.sb-line q { quotes: '“' '”'; font-weight: 600; }

/* the decision: Approve · Reject · Modify script */
.idea-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.idea-actions .pick { min-width: 0; padding: 0 10px; }
.pick.ok.approve-idea { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (hover: hover) { .pick.ok.approve-idea:hover:not(:disabled) { filter: brightness(1.07); } }
@media (prefers-color-scheme: dark) { .pick.ok.approve-idea { color: #04140d; } }
.pick.no { border-color: var(--no-line); color: var(--no); }
.pick.mod { border-color: var(--chg-line); color: var(--chg); }
@media (hover: hover) { .pick.no:hover:not(:disabled) { background: var(--no-soft); border-color: var(--no); } .pick.mod:hover:not(:disabled) { background: var(--chg-soft); border-color: var(--chg); } }
.btn.no { background: var(--no); border-color: var(--no); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.no { color: #1e0806; } }
.idea-form { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); }
.idea-form.reject { border-color: var(--no-line); background: color-mix(in srgb, var(--no-soft) 60%, var(--surface)); }
.idea-form.modify { border-color: var(--chg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chg) 14%, transparent); }
.idea-form .ask, .idea-edit { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.idea-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 11px 13px; font-size: 16px; line-height: 1.55; resize: vertical; }
.idea-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.idea-form .hint { font-size: 13px; color: var(--muted); }
.idea-outcome { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--ok-soft); border: 1px solid var(--ok-line); }
.idea-outcome.modified { background: var(--chg-soft); border-color: var(--chg-line); }
.idea-outcome.rejected { background: var(--no-soft); border-color: var(--no-line); }
.oc-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 16%, transparent); }
.idea-outcome.modified .oc-icon { background: var(--chg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--chg) 16%, transparent); }
.idea-outcome.rejected .oc-icon { background: var(--no); box-shadow: 0 0 0 5px color-mix(in srgb, var(--no) 16%, transparent); }
.idea-outcome b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.2px; }
.idea-outcome small { color: var(--ink-2); font-size: 13px; }
.said { display: grid; gap: 3px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--no-line); font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.said span { font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--no); }

@media (max-width: 980px) {
  .idea { grid-template-columns: 270px minmax(0, 1fr); gap: 6px 18px; }
  .idea-title { font-size: 21px; }
}
@media (max-width: 760px) {
  .ideas-bar .filters, .pillar-nav { margin: 0 -16px; width: calc(100% + 32px); padding: 0 16px 2px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pillar-nav::-webkit-scrollbar { display: none; }
  .pillar-nav a { flex: none; }
  .pillars { gap: 22px; }
  .pillar-head { top: calc(53px + env(safe-area-inset-top, 0px)); padding: 10px 2px 8px; }
  .pillar-head h2 { font-size: 21px; }
  .idea { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "body"; gap: 12px; padding: 14px; border-radius: 22px; }
  .idea-title { font-size: 20px; }
  .idea-body { padding-top: 0; }
  /* the video in its card, a phone's shape, as big as the screen allows */
  .idea-media { justify-items: center; }
  .ref { width: auto; height: min(70dvh, 620px); max-width: 100%; border-radius: 18px; }
  .ref .vp-play { width: 62px; height: 62px; }
  .script { max-height: none; font-size: 15px; padding: 13px 14px; }
  .idea-actions .pick { min-height: 52px; font-size: 14.5px; gap: 6px; }
  .idea-outcome { flex-wrap: wrap; }
  .idea-outcome .btn { width: 100%; }
  .form-actions { flex-wrap: wrap; }
  .idea-form .form-actions .btn:not(.small) { flex: 1; }
}

/* the team page: an ideas link */
.new-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pillar-block { display: grid; gap: 8px; }
.pillar-name { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; padding-top: 6px; }
.inline-edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.inline-edit input { flex: 1; min-width: 200px; min-height: 34px; border: 1px solid var(--brand); border-radius: 10px; padding: 4px 10px; font-size: 14px; box-shadow: 0 0 0 3px var(--brand-soft); }
.idea-cell b { font-weight: 600; }
.table-wrap tr.rejected td:first-child { box-shadow: inset 3px 0 0 var(--no); }
.diff { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); max-height: 260px; overflow-y: auto; margin-bottom: 6px; overflow-wrap: anywhere; }
.diff ins { text-decoration: none; background: var(--ok-soft); color: var(--ok); border-bottom: 2px solid var(--ok-line); }
.diff del { color: var(--no); background: var(--no-soft); }
