:root {
  --bg: #f3f5f9; --panel: #fff; --panel-2: #f7f9fc; --ink: #0f172a; --ink-2: #475569; --muted: #7c8799;
  --line: #e2e7ef; --line-2: #edf1f6; --accent: #1d4ed8; --accent-ink: #fff; --accent-soft: #e8efff;
  --brand: #1d4ed8; --brand-ink: #fff; --spark: #60a5fa; --lime: #93c5fd;
  --sel-bg: #1d4ed8; --sel-ink: #fff; --sel-num: #c7d7fe;
  --ok: #15803d; --ok-soft: #e8f6ee; --warn: #a16207; --warn-soft: #fdf8e1; --bad: #b91c1c; --bad-soft: #fdecec;
  --info: #0369a1; --info-soft: #e4f2fa;
  --c1: #1d4ed8; --c2: #60a5fa; --c3: #0d9488; --c4: #f59e0b; --c5: #84cc16; --c6: #94a3b8;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.12);
  --radius: 14px; --nav-w: 236px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* The sidebar, and the bottom bar on a phone, is navy. */
  --nav-bg: #0f1d3a; --nav-line: #0f1d3a; --nav-ink: #b6c3db; --nav-dim: #7d8db0; --nav-hover: rgba(255,255,255,.07);
  --nav-on-bg: rgba(96,165,250,.2); --nav-on-ink: #fff; --nav-brand: #fff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --panel: #121a2c; --panel-2: #172238; --ink: #e6edf7; --ink-2: #a9b6c9; --muted: #7a879b;
    --line: #24324a; --line-2: #1b263b; --accent: #60a5fa; --accent-ink: #06142b; --accent-soft: #132a4d;
    --brand: #60a5fa; --brand-ink: #06142b; --sel-bg: #60a5fa; --sel-ink: #06142b; --sel-num: #0b2a5a;
    --ok: #4ade80; --ok-soft: #12261a; --warn: #fbbf24; --warn-soft: #2a2110; --bad: #f87171; --bad-soft: #2c1515;
    --info: #38bdf8; --info-soft: #0f2a3d;
    --c1: #60a5fa; --c2: #93c5fd; --c3: #2dd4bf; --c4: #fbbf24; --c5: #a3e635; --c6: #8492a6;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 14px 40px rgba(0,0,0,.5); color-scheme: dark;
    --nav-bg: #070d1a; --nav-line: #1b263b;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --panel: #121a2c; --panel-2: #172238; --ink: #e6edf7; --ink-2: #a9b6c9; --muted: #7a879b;
  --line: #24324a; --line-2: #1b263b; --accent: #60a5fa; --accent-ink: #06142b; --accent-soft: #132a4d;
  --brand: #60a5fa; --brand-ink: #06142b; --sel-bg: #60a5fa; --sel-ink: #06142b; --sel-num: #0b2a5a;
  --ok: #4ade80; --ok-soft: #12261a; --warn: #fbbf24; --warn-soft: #2a2110; --bad: #f87171; --bad-soft: #2c1515;
  --info: #38bdf8; --info-soft: #0f2a3d;
  --c1: #60a5fa; --c2: #93c5fd; --c3: #2dd4bf; --c4: #fbbf24; --c5: #a3e635; --c6: #8492a6;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 14px 40px rgba(0,0,0,.5); color-scheme: dark;
  --nav-bg: #070d1a; --nav-line: #1b263b;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 650; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: var(--bad); font-size: 13px; min-height: 1em; margin: 0; }

/* buttons and inputs */
button, .btn { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 6px 11px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1.3; }
button:hover, .btn:hover { background: var(--panel-2); }
button:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.12); background: var(--brand); }
.btn.saved, .btn.saved:disabled { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); opacity: 1; }
.btn.failed { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn.ok { color: var(--ok); }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.ghost { border-color: transparent; background: transparent; color: var(--ink-2); padding: 6px; }
.ghost:hover { background: var(--line-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; }
/* iOS Safari gives date inputs a native minimum width that ignores width: 100%,
   so they spill out of narrow grid cells. Drop the native look and left-align. */
input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; display: block; min-height: 2.45em; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 4px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: 100%; max-width: 340px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }

/* shell */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--nav-line, var(--line)); background: var(--nav-bg, var(--panel)); color: var(--nav-brand, var(--ink)); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; }
.nav nav { display: grid; gap: 2px; }
.nav nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--nav-ink, var(--ink-2)); font-weight: 550; }
.nav nav a:hover { background: var(--nav-hover, var(--line-2)); }
.nav nav a.on { background: var(--nav-on-bg, var(--accent-soft)); color: var(--nav-on-ink, var(--accent)); }
.nav .ghost { color: var(--nav-ink, var(--ink-2)); }
.nav .ghost:hover { background: var(--nav-hover, var(--line-2)); }
.nav nav a .count { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.nav-foot { margin-top: auto; display: flex; gap: 4px; }
main { padding: 28px 32px 64px; max-width: 1680px; width: 100%; margin: 0 auto; outline: none; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 2px 0 0; color: var(--muted); }

/* cards and grids */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.card-h .muted { font-size: 12px; }
.card-b { padding: 0 16px 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; text-decoration: none; display: block; }
.kpi .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi .val { font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.kpi .sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 18px 16px; color: var(--muted); text-align: center; font-size: 13px; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.row { text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line-2); }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.click { cursor: pointer; }
.row.click:hover { background: var(--panel-2); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gold { background: var(--warn-soft); color: var(--warn); }
.info-i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font: italic 600 11px/1 Georgia, serif; vertical-align: middle; cursor: pointer; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; flex: none; }
.thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--line-2); flex: none; }

/* drafts strip */
.drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.draft { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0; font-weight: 400; }
.draft:hover { border-color: var(--accent); background: var(--panel); }
.draft img, .draft .noimg { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--line-2); display: block; }
.draft .noimg { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.draft .db { padding: 10px 12px 12px; display: grid; gap: 6px; }
.draft .hook { font-weight: 600; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* replies */
.reply { padding: 12px 16px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.reply:first-child { border-top: 0; }
.reply .q, .q { overflow-wrap: anywhere; white-space: pre-wrap; background: var(--panel-2); border-left: 3px solid var(--line); padding: 6px 10px; border-radius: 6px; color: var(--ink-2); font-size: 13px; }
.reply textarea { min-height: 64px; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.chart .grid-l { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
/* the global svg rule strokes icons; charts must not inherit it */
.chart { stroke: none; width: 100%; height: auto; }
.chart rect, .chart text { stroke: none; }
.ch-l { font-size: 12px; font-weight: 600; color: var(--muted); margin: 4px 0 2px; }
.ch-l ~ .ch-l { margin-top: 12px; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.legend { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); padding: 8px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--panel); font-size: 12px; padding: 5px 8px; border-radius: 6px; z-index: 50; white-space: nowrap; }

/* board */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--line-2); border-radius: var(--radius); padding: 10px; display: grid; gap: 10px; min-height: 120px; }
.col.drop { outline: 2px dashed var(--accent); }
.col-h { display: flex; justify-content: space-between; align-items: center; font-weight: 650; padding: 2px 4px; }
.col .draft[draggable="true"] { cursor: grab; }
/* Board cards are one compact row: a small thumbnail beside the hook. */
.board .draft { flex-direction: row; align-items: center; gap: 10px; padding: 8px; }
.board .draft img { width: 56px; height: 56px; aspect-ratio: 1/1; border-radius: 6px; flex: none; }
.board .draft .noimg { display: none; }
.board .draft .db { padding: 0; gap: 4px; min-width: 0; }
.board .draft .hook { -webkit-line-clamp: 2; }
.review-link { display: block; margin: 0 0 12px; font-weight: 600; }
.review-link:empty { display: none; }

/* editor */
.editor { display: grid; gap: 16px; max-width: 720px; }
.li-edit { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
.li-edit textarea.post { display: block; width: 100%; min-height: 160px; resize: none; overflow: hidden; font-size: 15px; line-height: 1.55; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; }
.li-edit textarea.post:hover { background: var(--panel-2); }
.li-edit textarea.post:focus { background: var(--panel); border-color: var(--accent); outline: none; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.meta > *, .fields > * { min-width: 0; }
.counter { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.counter .over { color: var(--bad); font-weight: 600; }
.li { padding: 16px; display: grid; gap: 10px; }
.li-h { display: flex; gap: 10px; align-items: center; }
.li-body { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.li-body .more { color: var(--muted); }
.li img, .li video { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; }
.ask { display: grid; gap: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.suggest { border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); padding: 12px; display: grid; gap: 10px; }
.suggest .diff { white-space: pre-wrap; background: var(--panel); border-radius: 8px; padding: 10px; font-size: 14px; line-height: 1.55; max-height: 380px; overflow: auto; }
.diff ins { background: var(--ok-soft); color: var(--ok); text-decoration: none; border-radius: 3px; }
.diff del { background: var(--bad-soft); color: var(--bad); border-radius: 3px; }
.rc-body .diff { white-space: pre-wrap; background: var(--panel-2); border-radius: 8px; padding: 10px; font-size: 14px; line-height: 1.55; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.why { white-space: pre-wrap; color: var(--ink-2); font-size: 13px; margin-top: 8px; }
.savebar { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 12px; }

/* people */
.ptable { width: 100%; border-collapse: collapse; }
.ptable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 10px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ptable tr.click { cursor: pointer; }
.ptable tr.click:hover td { background: var(--panel-2); }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.who .t { font-weight: 600; }
.who .s { font-size: 12px; color: var(--ink-2); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer-back { position: absolute; inset: 0; background: rgba(10,14,20,.45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; padding: 20px; display: grid; gap: 14px; align-content: start; }
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.tl:first-child { border-top: 0; }
.tl .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); }
.tl .dot svg { width: 14px; height: 14px; }
.tl .sum { color: var(--ink-2); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags button { font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.tags button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--panel); padding: 9px 14px; border-radius: 10px; font-weight: 550; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--bad); color: #fff; }
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; }
.sheet-back { position: absolute; inset: 0; background: rgba(10,14,20,.45); }
.sheet-panel { position: relative; width: min(480px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet-panel .chip { font-size: 14px; padding: 8px 14px; }
@media (min-width: 761px) { .sheet { place-items: center; } .sheet-panel { border-radius: 18px; } }
.skeleton { background: linear-gradient(90deg, var(--line-2), var(--panel-2), var(--line-2)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; }
@keyframes sh { to { background-position: -200% 0; } }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); border: 1px solid var(--line); margin-bottom: 16px; }

@media (max-width: 1100px) {
  .kpis, .kpis.k4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  main { min-width: 0; }
  .nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--nav-line, var(--line)); z-index: 30; gap: 0; }
  .nav .brand, .nav-foot { display: none; }
  .nav nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .nav nav a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px; justify-content: center; position: relative; }
  .nav nav a .count { position: absolute; top: 2px; right: 22%; }
  main { padding: 20px 16px 96px; }
  .kpis, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  /* Each card is as tall as its content, so none has empty space at the bottom. The list card
   stretches to its neighbour and scrolls. */
.deal-cards { grid-auto-rows: auto; align-items: start; }
.deal-cards > .card:has(.list.fill) { align-self: stretch; }
.deal-cards.level { align-items: stretch; }
  .deal-cards .list.fill { flex: none; max-height: 420px; }
  .span2 { grid-column: auto; }
  .board { grid-template-columns: repeat(3, 82vw); }
  .ptable .hide-sm { display: none; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .toolbar input, .toolbar select { min-width: 0; flex: 1; }
  .kpis:not(.k4) .kpi:last-child { grid-column: span 2; }
  .drafts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70vw; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .draft { scroll-snap-align: start; }
  .li { position: static !important; }
  /* 16px stops iOS from zooming into a field when it gets focus */
  input, select, textarea { font-size: 16px; }
}

/* Long names, headlines or links must never widen the page on a phone. */
.card, .grid > *, .list > * { min-width: 0; }
img, svg, video, textarea, input, select { max-width: 100%; }

/* Reply context: the post, comment or DM thread a reply answers. */
.ctx { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.ctx-l { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ctx-l a { color: var(--accent); text-transform: none; letter-spacing: 0; }
.post-snip { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.chat { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.bub { max-width: 85%; justify-self: start; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px 12px 12px 4px; padding: 6px 10px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub.me { justify-self: end; background: var(--accent-soft); border-color: transparent; border-radius: 12px 12px 4px 12px; }

/* Review: one swipeable card at a time. */
/* Filter pills stay on one row; on a narrow screen the row scrolls sideways. */
.seg { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; white-space: nowrap; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.seg button.on { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.seg button.on span { color: var(--sel-num); opacity: 1; }
.deck { position: relative; display: grid; max-width: 560px; margin: 0 auto; }
/* Review > Queued: approved replies waiting for the hourly run */
.qlist { max-width: 720px; margin: 0 auto; padding: 0; overflow: hidden; }
.qlist .qhead { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.qlist .qhead + .reply { border-top: 0; }
.qlist details.qpost summary { cursor: pointer; }
.qlist details.qpost[open] summary { margin-bottom: 6px; }
.rc { grid-area: 1 / 1; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(16,24,40,.08); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .22s ease, opacity .22s ease; position: relative; }
.rc textarea, .rc input { user-select: text; -webkit-user-select: text; }
/* The card underneath sits behind the top one at the top card's size, so a taller card next in line
   can't stretch the top card and leave a blank area under it. */
.rc.under { position: absolute; inset: 0; margin: 0 auto; transform: scale(.96) translateY(10px); opacity: .6; pointer-events: none; }
.rc.dragging { transition: none; cursor: grabbing; }
.rc.fly-right { transform: translateX(130%) rotate(18deg); opacity: 0; }
.rc.fly-left { transform: translateX(-130%) rotate(-18deg); opacity: 0; }
.rc.fly-down { transform: translateY(60px) scale(.94); opacity: 0; }
.rc-head { display: flex; gap: 12px; align-items: center; padding: 16px 16px 10px; }
.rc-head .grow { flex: 1; min-width: 0; }
.rc-head .t { font-weight: 650; }
.rc-head .s { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-why:empty { display: none; }
.rc-why .post-score { margin: 0; }
.rc-body { padding: 0 16px 16px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.rc-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--line-2); }
video.rc-img { aspect-ratio: 4/5; object-fit: contain; } /* a video post is 1080x1350; cropping it to a square cuts the headline */
.rc .li-body { max-height: 40vh; overflow-y: auto; }
.rc textarea.rc-post { display: block; resize: none; overflow: hidden; min-height: 120px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.rc textarea.rc-post:focus { background: var(--panel); border-color: var(--accent); outline: none; }
.rc .actions .grow { flex: 1; }
.rc #rvTa.rc-post { min-height: 60px; }
.rc-ask { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 2px; }
.stamp { position: absolute; top: 18px; z-index: 2; padding: 4px 12px; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; opacity: 0; pointer-events: none; background: var(--panel); }
.stamp.yes { left: 18px; color: var(--ok); transform: rotate(-12deg); }
.stamp.no { right: 18px; color: var(--bad); transform: rotate(12deg); }
.deck-actions { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 18px 0 8px; }
.round { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.round svg { width: 58px; height: 58px; padding: 16px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.round.yes svg { stroke: var(--ok); }
.round.no svg { stroke: var(--bad); }
.round.undo svg, .round.later svg { width: 44px; height: 44px; padding: 11px; stroke: var(--ink-2); }
.round:disabled { opacity: .35; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) {
  .deck { max-width: none; }
  .seg button { padding: 6px 10px; }
  .rc .li-body { max-height: 34vh; }
  .rc-img { max-height: 42vh; object-fit: contain; }
  .deck-actions { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 5; margin: 10px -16px 0; padding: 10px 0 8px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
  .round svg { width: 54px; height: 54px; padding: 15px; }
}

/* Review card: the post and the reply box read at one size. The viewport's
   maximum-scale stops iOS zooming into the 15px field on focus. */
.rc .post-snip, .rc .q, .rc textarea { font-size: 15px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags:empty { display: none; }
.tag { font-size: 12px; line-height: 1.3; padding: 3px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.tag b { font-weight: 600; color: var(--muted); margin-right: 2px; }
a.tag:hover { border-color: var(--accent); }

/* Conversation depth funnel on Today */
.funnel { display: grid; gap: 10px; padding-top: 2px; }
.fstep .fl { font-size: 13px; margin-bottom: 4px; }
.fstep .fl .muted { font-size: 12px; margin-left: 4px; }
.fbar { height: 10px; border-radius: 5px; background: var(--panel-2); overflow: hidden; }
.fbar i { display: block; height: 100%; border-radius: 5px; background: var(--c1); }
.fbar i.won { background: var(--ok); }
.fbar i.lost { background: var(--c6); }
.row .amt { font-variant-numeric: tabular-nums; flex: none; }
.card-h.wrap { flex-wrap: wrap; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Deals: each card is as tall as its content, so none ends in empty space. The weekly chart is sized
   in app.js so the first row ends level; the open-deals list stretches to its neighbour and scrolls. */
.deal-cards { align-items: start; }
.deal-cards > .card { display: flex; flex-direction: column; }
.deal-cards > .card:has(.list.fill) { align-self: stretch; }
.deal-cards .card-b { flex: 1; display: flex; flex-direction: column; }
.deal-cards .list.fill { flex: 1 1 0; min-height: 0; overflow-y: auto; align-content: start; }
.deal-cards .row .pill.warn, .deal-cards .row .pill.ok { flex: none; }
.deal-cards .row .act-s { white-space: normal; }
.deal-cards .fstep.click, .deal-cards .br.click, .kpis .kpi.click { cursor: pointer; }
.deal-cards .fstep.click:hover .fl, .deal-cards .br.click:hover .k { text-decoration: underline; }
@media (max-width: 760px) { .deal-cards .list.fill { flex: none; } .deal-cards .list.fill { max-height: 420px; } }
.kpis .kpi.click:hover { border-color: var(--c1); }
.chip-x { border: 0; background: var(--line-2); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 650; margin-left: 6px; vertical-align: middle; cursor: pointer; }
.na-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; border: 1px solid var(--line-2); border-radius: 10px; }
.na-stat { display: grid; padding: 8px 12px; border-left: 1px solid var(--line-2); min-width: 0; }
.na-stat:first-child { border-left: 0; }
.na-stat b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.na-stat .l { font-size: 12px; font-weight: 600; }
.na-stat .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-h.wrap .segc button { white-space: nowrap; }

/* Content analytics */
.ptable td.num, .ptable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable td.dim { color: var(--muted); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .works { grid-template-columns: minmax(0, 1fr); } }

/* Today */
.page-head.nowrap { flex-wrap: nowrap; align-items: flex-start; }
.page-head .ghost svg { width: 20px; height: 20px; }
.hero { margin-bottom: 24px; overflow: hidden; }
.hero-score { display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-decoration: none; border-top: 1px solid var(--line-2); }
.hero-score .grow { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.hero-score .hs-t { font-size: 14px; margin: 0; }
.hero-score:hover { background: var(--panel-2); }
.lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.hs-t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 1px 0; }
.hero-score .s, .score-top .s { font-size: 12px; color: var(--ink-2); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-stat { display: grid; padding: 12px 16px 14px; text-decoration: none; border-left: 1px solid var(--line-2); }
.hero-stat:first-child { border-left: 0; }
.hero-stat:hover { background: var(--panel-2); }
.hero-stat.go b { color: var(--accent); }
.hero-stat.go .s { color: var(--ink-2); }
.hero-stat b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hero-stat .l { font-size: 13px; font-weight: 600; }
.hero-stat .s { font-size: 12px; color: var(--muted); }
.hero-stat.warn .s { color: var(--warn); font-weight: 600; }
.hero-stat.ok .s { color: var(--ok); }
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; align-items: start; }
.sec { min-width: 0; scroll-margin-top: 16px; }
.sec-h { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 8px; }
.sec-h h2 { font-size: 16px; }
.sec-h .muted { font-size: 13px; }
.sec-more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
span.sec-more { color: var(--muted); font-weight: 500; }
.card.cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; border-color: var(--accent-soft); background: linear-gradient(0deg, var(--accent-soft), var(--panel) 140%); }
.card.cta .t { font-weight: 650; }
.card.cta .s { font-size: 12px; color: var(--ink-2); }
.card.cta .grow { flex: 1; min-width: 0; }
.today-grid .row { padding: 12px 16px; }

.today-grid .row .s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .co { font-weight: 500; color: var(--muted); }
.chev { width: 16px; height: 16px; color: var(--muted); margin-left: -4px; }
.cal { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); padding: 3px 0 4px; line-height: 1.1; }
.cal span { display: block; font-size: 10px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.cal b { font-size: 18px; }
.empty.big { padding: 40px 16px; font-size: 14px; }

/* pace ring */
.ring { flex: none; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 6; }
.ring-fg { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring-tick { fill: var(--ink); opacity: .55; stroke: none; }
.ring text { font: 700 17px var(--font); fill: var(--ink); stroke: none; letter-spacing: -.02em; }
.dp { display: inline-flex; align-items: center; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dp.up { background: var(--ok-soft); color: var(--ok); }
.dp.down { background: var(--warn-soft); color: var(--warn); }

/* Analytics */
.an-top { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: -28px -32px 16px; padding: 28px 32px 0; isolation: isolate; }
.an-top .page-head { margin-bottom: 14px; align-items: center; }
.segc { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.segc button { border: 0; background: transparent; border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.segc button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
/* The tab row scrolls sideways only. The underline is drawn inside each button, so nothing pokes
   out of the row: a row taller than its box by even 1px lets iOS drag and bounce the labels
   vertically inside it, which clips them under the sticky header. */
.tabs { display: flex; gap: 22px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; border-radius: 0; padding: 8px 0 10px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; flex: none; white-space: nowrap; }
.tabs button:hover { background: none; color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.card.score { margin-bottom: 16px; padding: 18px; }
.score-top { display: flex; align-items: center; gap: 16px; }
.score-top .hs-t { font-size: 20px; }
.score-parts { display: grid; gap: 10px; margin-top: 18px; }
.score-parts .sp { display: grid; grid-template-columns: 150px minmax(0, 1fr) 32px; gap: 12px; align-items: center; }
.score-parts .fl { font-size: 13px; color: var(--ink-2); }
.score-parts .v { font-size: 13px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.score-parts .fbar { position: relative; height: 8px; }
.score-parts .fbar i.ok { background: var(--ok); }
.score-parts .fbar i.warn { background: var(--warn); }
.score-parts .fbar b { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--ink); opacity: .45; }
.kpi { padding: 14px 16px 10px; display: grid; align-content: start; }
.kpi .kv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.kpi .val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.kpi .sub { white-space: normal; }
.spark { position: relative; height: 44px; margin-top: 10px; }
.spark svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; overflow: visible; }
.spark .base { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.spark .sa { fill: var(--accent); opacity: .1; stroke: none; }
.spark .sl { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--panel); border: 1.75px solid var(--accent); box-sizing: border-box; }
.spark i.sm { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-width: 1.5px; }
.spark i.now { background: var(--accent); }
.spark .hit { position: absolute; top: 0; bottom: 0; cursor: crosshair; }
.spark .hit::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--line); opacity: 0; }
.spark .hit:hover::before { opacity: 1; }
.spark .hit i.hov { visibility: hidden; }
.spark .hit:hover i { visibility: visible; transform: scale(1.5); }
.minicap { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 3px; }
.hl .row { align-items: flex-start; padding: 12px 16px; }
.hl .txt { font-size: 14px; color: var(--ink-2); }
.hl .txt b { color: var(--ink); font-weight: 650; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c6); flex: none; margin-top: 7px; display: inline-block; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.acc { background: var(--accent); }
.bw { margin-bottom: 16px; }
.bwc { padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; }
.bwc:hover { border-color: var(--accent); }
.bwc .lbl { display: flex; align-items: center; gap: 6px; }
.bwc .lbl .dot { margin-top: 0; }
.t2 { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bwc .nums { font-size: 13px; color: var(--ink-2); }
.bwc .nums b { font-size: 18px; color: var(--ink); }
.bwc .s { font-size: 12px; color: var(--muted); }
.pnum { text-align: right; flex: none; display: grid; }
.pnum b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pnum span { font-size: 11px; color: var(--muted); }
.only-sm { display: none; }
.sel-sm { width: auto; padding: 3px 8px; font-size: 12px; border-radius: 8px; }
.works.w2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.mt { margin-top: 16px; }
.chart .vlab { font-weight: 650; fill: var(--ink); }
.chart circle, .chart path { stroke-linecap: round; }
@media (max-width: 760px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat { padding: 12px 12px 14px; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .hero-score .s { display: none; }
  .an-top { margin: -20px -16px 14px; padding: 14px 16px 0; }
  .an-top .page-head { flex-wrap: nowrap; }
  .an-top .page-head p { display: none; }
  .tabs { gap: 18px; margin: 0 -16px; padding: 0 16px; }
  .score-parts .sp { grid-template-columns: minmax(0, 1fr) 42% 28px; gap: 10px; }
  .score-parts .fl { font-size: 12px; }
  .only-sm { display: grid; }
  .only-lg { display: none; }
  .works.w2 { grid-template-columns: minmax(0, 1fr); }
}
.ptable th.sort { cursor: pointer; user-select: none; white-space: nowrap; }
.ptable th.sort.on { color: var(--ink); }
.sort-sm { justify-content: end; margin-bottom: 8px; }
.works b.best { color: var(--ok); }
.today-grid #replies { grid-column: 1 / -1; }
.brs { display: grid; gap: 6px; margin-bottom: 4px; }
.br { display: grid; grid-template-columns: minmax(0, 1fr) 38% 34px; gap: 10px; align-items: center; font-size: 13px; }
.br .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br .k small { color: var(--muted); margin-left: 6px; font-size: 11px; }
.br b { text-align: right; font-variant-numeric: tabular-nums; }
.br .fbar { height: 8px; }
.br .fbar i { background: var(--c6); opacity: .55; }
.br.best .fbar i { background: var(--ok); opacity: 1; }
.br.best b { color: var(--ok); }
.works { gap: 12px 24px; }
.capped .ptable tbody tr:nth-child(n+9), .capped .only-sm > .row:nth-child(n+9) { display: none; }
.more-btn { display: block; width: 100%; border: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius); padding: 11px; color: var(--accent); background: none; font-weight: 600; }

/* Analytics, Ask a CFO: one row per question; tapping it shows the bot's answer. */
#cfolist.capped > .row:nth-child(n+9) { display: none; }
.cfo-q { align-items: flex-start; }
.cfo-q .avatar, .cfo-q > :first-child { margin-top: 2px; }
.cq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cq-text { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cfo-q.open .cq-text { display: block; -webkit-line-clamp: unset; }
.cq-ans, .cq-link { display: none; }
.cfo-q.open .cq-ans { display: block; margin-top: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--panel-2); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cfo-q.open .cq-link { display: inline-block; margin-top: 6px; color: var(--accent); }
.score-parts { max-width: 760px; }

/* Today: posting calendar, one cell per day for the next two weeks. */
.today-grid #postcal { grid-column: 1 / -1; }
.postcal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px; margin-bottom: 6px; }
.pc { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 6px; row-gap: 4px; align-content: start; min-height: 86px; border-radius: 10px; padding: 9px 11px 10px; line-height: 1.2; border: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.pc .pc-d { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.pc b { font-size: 15px; }
.pc em { justify-self: end; font-style: normal; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--panel); color: var(--ink-2); }
.pc em.hi { color: var(--ok); }
.pc em.lo { color: var(--warn); }
.pc i { justify-self: end; width: 8px; height: 8px; border-radius: 50%; }
.pc-hook { grid-column: 1 / -1; font-size: 12px; font-weight: 550; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-hook.pc-empty { color: var(--warn); font-weight: 500; }
.pc-fill { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--accent); }
.pc.on { background: var(--ok-soft); }
.pc.off { background: var(--warn-soft); border-style: dashed; border-color: var(--warn); }
.pc.off i { border: 1.5px solid var(--warn); }
.pc.now { outline: 2px solid var(--accent); outline-offset: 1px; }
/* A phone keeps the compact tiles: day, date and score, no hook. */
@media (max-width: 720px) {
  .postcal { gap: 6px; }
  .pc { display: block; text-align: center; min-height: 0; padding: 6px 0 8px; line-height: 1.15; }
  .pc .pc-d { display: block; font-size: 10px; }
  .pc b { display: block; font-size: 16px; }
  .pc em, .pc i { justify-self: auto; }
  .pc em { display: block; background: none; padding: 0; margin-top: 2px; font-size: 10px; line-height: 1; color: var(--ok); }
  .pc em.lo { color: var(--warn); }
  .pc i { display: block; margin: 4px auto 0; }
  .pc-hook, .pc-fill { display: none; }
}

/* Desktop: use the width. Review cards split into two panes, the post editor puts Ask Claude
   beside the post, Analytics puts the pace card beside "Worth knowing", and Today's pace sits
   beside its three numbers. Phones keep the single column, in the same order. */
.pane { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
.editor-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1101px) {
  .deck { max-width: 1120px; }
  .rc.narrow { width: 100%; max-width: 560px; justify-self: center; }
  .rc-body.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; align-items: start; }
  .rc-body.split:has(> .pane:only-child) { grid-template-columns: minmax(0, 1fr); }
  .rc-body.split .chat, .rc-body.split .post-snip { max-height: 56vh; overflow-y: auto; }
  .rc-body.split .pane > .ctx + .ctx-l { margin-top: 8px; }
  .rc-body.split .rc-img { max-width: 440px; }
  .rc-body.split .rc-ask { border-top: 0; padding-top: 0; margin-top: 0; }
  .editor { max-width: none; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); align-items: start; }
  .editor > .notice { grid-column: 1 / -1; }
  .editor-side { position: sticky; top: 16px; }
  .li-edit img, .li-edit video { max-width: 560px; }
}
@media (min-width: 1400px) {
  .deck { max-width: 1320px; }
  .rc-body.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 32px; }
}
@media (min-width: 1200px) {
  .an-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
  .an-hero > .card { margin: 0; }
  .an-hero .score-parts { max-width: none; }
}

/* Analytics: a plain-English takeaway under a chart or list. */
.take { margin: 12px 0 0; padding: 8px 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--panel-2); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.take b { color: var(--ink); font-weight: 650; }
.take.in { margin: 4px 16px 16px; }
.rank { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.an-body > .kpis { margin-bottom: 16px; }
.works.w2 .br { grid-template-columns: minmax(0, 1fr) 30% 34px; }

/* Motion: a page's cards rise in one after another the first time it opens (see enter() in app.js). */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes fade { from { opacity: 0; } }
.enter .card:not(.rc), .enter .postcal .pc { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.enter .fbar i { transform-origin: left; animation: grow-x .7s cubic-bezier(.2,.7,.2,1) .15s both; }
.enter .chart rect { transform-box: fill-box; transform-origin: bottom; animation: grow-y .6s cubic-bezier(.2,.7,.2,1) .2s both; }
.enter .spark svg, .enter .spark i { animation: fade .6s ease .25s both; }
/* Small lifts on things you can click. */
.card.kpi, .hero-stat, .row.click, .pc.on { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
a.card.kpi:hover, .pc.on:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.10); }
.btn { transition: background-color .15s ease, border-color .15s ease, transform .08s ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .enter .card, .enter .postcal .pc, .enter .fbar i, .enter .pbar i, .enter .chart rect, .enter .spark svg, .enter .spark i { animation: none; }
  a.card.kpi:hover, .pc.on:hover { transform: none; }
}
/* Content board: how a published post did, and the button for older posts. */
.pres { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.pbar { flex: 1; min-width: 30px; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.enter .pbar i { transform-origin: left; animation: grow-x .7s cubic-bezier(.2,.7,.2,1) .25s both; }
.picp { color: var(--ok); }
.col .more-btn { justify-self: center; background: transparent; border-color: transparent; color: var(--accent); }
.col .more-btn:hover { background: var(--panel); border-color: var(--line); }
/* Review finish screen. */
.rc.done { max-width: 560px; justify-self: center; width: 100%; }
.fin { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 24px 28px; }
.fin p { margin: 0; max-width: 40ch; }
.fin-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.fin-mark svg { width: 34px; height: 34px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s ease-out .25s forwards; }
.fin-mark.small-mark { width: 52px; height: 52px; }
.fin-mark.small-mark svg { width: 26px; height: 26px; }
.fin-t { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.fin-tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 2px; }
.fin-tally .pill { font-size: 12px; padding: 3px 10px; }
.fin-next { display: grid; gap: 2px; width: 100%; text-align: left; text-decoration: none; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); margin-top: 6px; }
.fin-next:hover { border-color: var(--accent); }
.fin-next b { font-weight: 600; font-size: 14px; }
.fin .actions { margin-top: 8px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: absolute; inset: -40px 0 auto; height: 0; pointer-events: none; z-index: 5; }
.confetti i { position: absolute; top: 0; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: fall 2s cubic-bezier(.25,.6,.4,1) both; }
@keyframes fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), 520px) rotate(var(--rot)); } }
@media (prefers-reduced-motion: reduce) { .fin-mark, .fin-mark svg { animation: none; stroke-dashoffset: 0; } }
/* A live post's results strip and its folded-away draft. */
.kpis.results { margin-bottom: 16px; }
.kpis.results .kpi .sub { display: flex; align-items: center; gap: 6px; }
.draft-fold summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--accent); margin: 4px 0 8px; }
/* Jump to (⌘K). */
.jump { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--nav-ink); font-weight: 500; font-size: 13px; }
.jump:hover { background: rgba(255,255,255,.1); color: #fff; }
.jump svg { width: 16px; height: 16px; }
.jump span { flex: 1; text-align: left; }
kbd { font: 600 11px var(--font); padding: 1px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: .6; white-space: nowrap; }
.jumpbox { place-items: start center; padding: 12vh 16px 16px; }
.jump-panel { position: relative; width: min(600px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(10,14,20,.28); overflow: hidden; animation: jump-in .16s cubic-bezier(.2,.7,.2,1) both; }
.jumpbox .sheet-back { animation: fade .16s ease both; }
@keyframes jump-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.jump-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.jump-in input { border: 0; padding: 4px 0; font-size: 16px; background: transparent; }
.jump-in input:focus { outline: none; }
.jump-list { max-height: min(60vh, 440px); overflow: auto; padding: 6px; }
.jump-g { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 10px 4px; }
.jump-it { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font-weight: 400; }
.jump-it.on { background: var(--accent-soft); }
.jump-it .grow { display: grid; min-width: 0; }
.jump-it .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jump-it .s { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jump-it .avatar { width: 28px; height: 28px; font-size: 11px; }
.jump-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); flex: none; }
.jump-it.on .jump-ic { background: var(--accent); color: var(--accent-ink); }
.jump-ic svg { width: 15px; height: 15px; }
.jump-none { padding: 18px; text-align: center; color: var(--muted); }
@media (max-width: 760px) { .nav .jump { display: none; } .jumpbox { padding-top: 8vh; } }

/* Sidebar: the page you're on gets an accent bar, and the logo a soft glow. */
.nav nav a { position: relative; transition: background-color .15s ease, color .15s ease; }
.nav nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--spark); animation: grow-y .25s ease both; }
.nav .logo { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 14px rgba(96,165,250,.35); }
@media (max-width: 760px) { .nav nav a.on::before { left: 30%; right: 30%; top: -6px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; } }

/* Toasts slide up with a mark: a check, or an alert when something failed. */
.toast { display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(10,14,20,.25); }
.toast::before { content: "✓"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: var(--panel); font-size: 11px; font-weight: 800; }
.toast.bad::before { content: "!"; background: #fff; color: var(--bad); }
.toast.info::before { content: "i"; background: var(--c2); color: #0b1120; font-style: italic; }
.toast.show { transition: opacity .2s ease, transform .25s cubic-bezier(.2,1.3,.4,1); }

/* Spice and the hot/safe hook swap on a draft */
.pill.spice-hot { background: var(--bad-soft); color: var(--bad); }
.pill.spice-medium { background: var(--warn-soft); color: var(--warn); }
.hookpick { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.hookpick .btn { padding: 4px 12px; font-size: 13px; }
.hookpick .btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* Vault */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.vault-tile { padding: 16px; display: grid; gap: 4px; color: inherit; text-decoration: none; }
.vault-tile:hover { border-color: var(--accent); }
.vault-tile .t { font-weight: 600; }
.vault-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable.vault th { cursor: pointer; user-select: none; }
.ptable.vault th.on { color: var(--ink); }
.ptable.vault td { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ptable.vault td.vt { font-weight: 600; position: sticky; left: 0; background: var(--panel); max-width: 240px; }
.ptable.vault tr.click:hover td.vt { background: var(--panel-2); }
/* Tables made here: cells edit in place */
.ptable.vapp tr.click { cursor: default; }
.ptable.vapp td.vcell { cursor: text; min-width: 90px; }
.ptable.vapp td.vcell:hover { background: var(--panel-2); }
.ptable.vapp td.vt { min-width: 180px; }
.ptable.vapp td.vt .vtt:empty::before { content: "Untitled"; color: var(--muted); font-weight: 400; }
.ptable.vapp td.saving { opacity: .55; }
.ptable.vapp td:has(.vin) { padding: 2px 4px; overflow: visible; }
.vin { width: 100%; min-width: 120px; padding: 5px 8px; font-size: 13px; }
.vopen { float: right; margin-left: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 6px; font-size: 11px; padding: 1px 6px; cursor: pointer; visibility: hidden; }
.ptable.vapp tr:hover .vopen, .vopen:focus { visibility: visible; }
@media (hover: none) { .vopen { visibility: visible; } }
.ptable.vapp th.vadd { width: 36px; text-align: center; font-size: 16px; color: var(--muted); }
.ptable.vapp th.vadd:hover { color: var(--accent); }
.ptable.vapp tr.vnewline td { position: static; background: transparent; }
.ptable.vapp tr.vnewline .ghost { color: var(--muted); font-size: 13px; padding: 4px 2px; }
.ptable.vapp tr.vnewline .ghost:hover { color: var(--accent); }
.vaddopt { width: 110px; padding: 3px 10px; font-size: 12px; border-radius: 999px; }
.vault-pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.vbody-text { white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 420px; overflow-y: auto; margin-top: 6px; }

/* Docs: a page that reads like a document, with the Editor.js blocks styled to match. */
.crumbs { margin: 0 0 6px; }
.crumbs a { color: inherit; }
.doc-page { max-width: 820px; margin: 0 auto; }
.doc-title { font-size: 32px; line-height: 1.2; margin: 8px 0 6px; outline: none; }
.doc-title:empty::before { content: attr(data-placeholder); color: var(--muted); }
.doc-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-meta .bad { color: var(--bad, #c0392b); }
.doc-meta .doc-mode { margin: 0 0 0 auto; }
.doc-hint { margin: -6px 0 14px; }
.doc-editor { font-size: 15px; line-height: 1.6; color: var(--ink); min-height: 50vh; }
.doc-editor .ce-block__content, .doc-editor .ce-toolbar__content { max-width: none; }
.doc-editor .codex-editor__redactor { padding-bottom: 120px !important; }
.doc-editor .ce-header { font-weight: 650; }
.doc-editor h1.ce-header { font-size: 26px; } .doc-editor h2.ce-header { font-size: 21px; }
.doc-editor h3.ce-header { font-size: 17px; } .doc-editor h4.ce-header { font-size: 15px; }
.doc-editor .ce-paragraph { padding: 3px 0; }
.doc-editor .tc-wrap { --color-background: var(--line-2); --color-text-secondary: var(--muted); --color-border: var(--line); }
.doc-editor .tc-cell { padding: 6px 10px; }
.doc-editor .tc-table--heading .tc-row:first-child { font-weight: 650; }
.doc-editor .ce-code__textarea { background: var(--line-2); color: var(--ink); border-color: var(--line); }
.doc-editor .inline-code { background: var(--line-2); color: var(--ink); }
.doc-editor .cdx-quote__caption { display: none; }
.doc-editor .cdx-quote__text { min-height: 0; border-left: 3px solid var(--line); padding-left: 12px; }
.doc-editor .ce-toolbar__plus, .doc-editor .ce-toolbar__settings-btn { color: var(--muted); background: transparent; }
.doc-editor .ce-toolbar__plus:hover, .doc-editor .ce-toolbar__settings-btn:hover { background: var(--line-2); }
.doc-md { width: 100%; min-height: 60vh; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 14px 16px; }
.doc-newform { display: flex; gap: 8px; padding: 12px; margin-bottom: 12px; }
.doc-newform input { flex: 1; min-width: 0; }
.doc-versions { margin: 24px 0 0; }
.doc-versions summary { cursor: pointer; font-weight: 600; }
.doc-versions ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.doc-versions li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 760px) { .doc-title { font-size: 26px; } .doc-editor .ce-toolbar__actions { right: 0; } }
.vault-tabs a { flex: none; white-space: nowrap; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.vault-tabs a.on { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.doc-editor .cdx-input { border: 0; box-shadow: none; }
.doc-editor .ce-code__textarea { min-height: 0; padding: 10px 12px; }
.doc-editor .ce-delimiter { line-height: 1; padding: 14px 0; }
.doc-editor .ce-delimiter::before { content: ""; display: block; height: 1px; width: 100%; background: var(--line); }

/* ---------- Shell (Nov 2026 redesign) ---------- */
.nav { padding: 20px 14px 16px; gap: 14px; }
.nav nav { gap: 1px; }
.nav .nav-group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nav-dim); padding: 14px 10px 6px; }
.nav .nav-group:first-child { padding-top: 4px; }
.nav nav a { padding: 7px 10px; font-weight: 500; }
.nav nav a.on { font-weight: 600; }
.nav nav a.on svg { color: var(--c2); }
.nav nav a.nav-more { display: none; }
.nav-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.jump { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
.login { background: radial-gradient(1200px 600px at 50% -10%, #1e3a8a 0%, #0f1d3a 55%, #0a1428 100%); }
.login-card { gap: 14px; padding: 32px; border: 0; box-shadow: var(--shadow-lg); }
.page-head h1 + p, .page-head p { font-size: 14px; }
.card { border-color: var(--line); }
.pill { font-weight: 600; }
.kpi .lbl { color: var(--ink-2); font-weight: 500; }
/* "More" sheet on a phone: the pages that don't fit in the bottom bar. */
.more-panel { display: grid; gap: 2px; padding: 12px 10px calc(14px + env(safe-area-inset-bottom)); }
.more-panel a, .more-panel button { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 10px; background: none; text-decoration: none; color: var(--ink); font-weight: 550; font-size: 15px; width: 100%; text-align: left; }
.more-panel a:hover, .more-panel button:hover, .more-panel a.on { background: var(--accent-soft); }
.more-panel svg { width: 20px; height: 20px; color: var(--ink-2); }
.more-panel hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }
@media (max-width: 760px) {
  .nav .nav-group, .nav nav a.nav-extra { display: none; }
  .nav nav a.nav-more { display: flex; }
  .nav nav a { font-weight: 550; }
  .nav nav a.on { background: transparent; }
  .nav nav a.on::before { background: var(--spark); }
  .nav nav a .count { right: 18%; }
  h1 { font-size: 24px; }
}
@media (max-width: 760px) { .nav .brand { display: none; } }
/* Open days on the posting calendar read as space to fill, in a quiet dashed outline. */
.pc.off { background: transparent; border: 1.5px dashed var(--line); }
.pc.off i { border: 1.5px solid var(--c6); }
.pc-hook.pc-empty { color: var(--muted); }
.pc.off:hover { border-color: var(--accent); background: var(--accent-soft); }
.pc.now { outline-color: var(--brand); }
.login-card .btn { justify-content: center; padding: 9px 12px; }

/* ---------- Meeting notes ---------- */
.notes { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.notes-list { position: sticky; top: 20px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.notes-tools { padding: 12px 12px 0; border-bottom: 1px solid var(--line-2); }
.notes-tools .seg { margin: 10px 0 12px; }
.notes-tools .seg button { padding: 4px 10px; font-size: 12px; }
.notes-items { overflow-y: auto; padding: 4px 6px 10px; }
.note-g { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.note-it { display: grid; gap: 3px; padding: 10px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; }
.note-it:hover { background: var(--panel-2); }
.note-it.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.note-it-h { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.note-it .t { font-weight: 600; line-height: 1.3; }
.note-it .s { font-size: 12px; color: var(--ink-2); }
.note-it .p { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notes-read { min-height: 60vh; }
.note-doc { padding: 28px 36px 40px; max-width: 760px; }
.note-back { display: none; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; margin-bottom: 12px; }
.chev.back { transform: rotate(180deg); width: 16px; height: 16px; }
.note-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.note-title { font-size: 28px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; margin: 8px 0 12px; }
.note-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.note-sec { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.atts { display: flex; flex-wrap: wrap; gap: 8px; }
.att { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; max-width: 100%; }
.att .avatar { width: 28px; height: 28px; font-size: 11px; }
.att span:last-child { display: grid; line-height: 1.2; min-width: 0; }
.att b { font-size: 13px; font-weight: 600; }
.att small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.att.on:hover { border-color: var(--accent); background: var(--accent-soft); }
.att-mail { background: var(--line-2); color: var(--muted); }
.note-quote { display: block; text-decoration: none; padding: 10px 14px; border-left: 3px solid var(--spark); background: var(--panel-2); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.5; }
.note-quote small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.note-quote:hover { background: var(--accent-soft); }
.note-body { border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.note-body h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 24px 0 6px; }
.note-body h3 { font-size: 15px; font-weight: 700; margin: 18px 0 4px; }
.note-body h4 { font-size: 14px; font-weight: 700; margin: 14px 0 4px; color: var(--ink-2); }
.note-body p { margin: 8px 0; }
.note-body ul, .note-body ol { margin: 6px 0; padding-left: 22px; }
.note-body li { margin: 3px 0; }
.note-body li::marker { color: var(--c2); }
.note-body blockquote { margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--ink-2); }
.note-body hr { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }
.note-body a { color: var(--accent); }
@media (max-width: 1100px) { .notes { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); } .note-doc { padding: 24px; } }
@media (max-width: 760px) {
  .notes { grid-template-columns: minmax(0, 1fr); }
  .notes-list { position: static; max-height: none; }
  .notes-read { display: none; }
  .notes.reading .notes-list, .notes-head:has(+ .notes.reading) { display: none; }
  .notes.reading .notes-read { display: block; }
  .note-back { display: inline-flex; }
  .note-doc { padding: 18px 16px 28px; }
  .note-title { font-size: 24px; }
}

/* Vault landing: tables grouped by job */
.vault-sec { margin-bottom: 28px; }
.vault-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vault-sec-h p { margin: 1px 0 0; }
.vault-sec-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.vault-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.vault-tile { gap: 6px; padding: 14px 16px; transition: border-color .15s ease, transform .15s ease; }
.vault-tile:hover { transform: translateY(-1px); }
.vault-tile-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vault-n { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.vault-tile { align-content: start; }

/* Content board */
.board { grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(220px, .7fr); }
.col { background: color-mix(in srgb, var(--line-2) 70%, transparent); border: 1px solid var(--line-2); }
.col-h > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.col-h > span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c6); }
.col[data-col="Approved Post"] .col-h > span:first-child::before { background: var(--c4); }
.col[data-col="Published"] .col-h > span:first-child::before { background: var(--c1); }
.col[data-col="Post Idea"] .col-h > span:first-child::before { background: var(--c2); }
.board .draft { border-color: var(--line); box-shadow: var(--shadow); }
.board .draft .noimg { display: grid; width: 56px; height: 56px; aspect-ratio: 1/1; border-radius: 6px; flex: none; border: 1.5px dashed var(--line); background: transparent; font-size: 9px; line-height: 1.1; text-align: center; padding: 4px; color: var(--muted); }
.review-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.review-link:hover { background: var(--sel-bg); color: var(--sel-ink); }
@media (max-width: 760px) { .board { grid-template-columns: repeat(3, 82vw); } }

/* Vault tables */
.vlink { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); text-decoration: none; font-weight: 550; }
.vlink svg { width: 12px; height: 12px; }
.vlink:hover { text-decoration: underline; }
.ptable th { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.ptable.vault tr.click:hover td { background: var(--panel-2); }

/* Today refresh button turns while a fresh copy loads. */
#refresh.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #refresh.spin svg { animation: none; opacity: .5; } }

/* Row sheet: one column that never grows past the panel, long values wrap, the title is the heading. */
.drawer-panel { grid-template-columns: minmax(0, 1fr); }
.vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.vhead .grow { min-width: 0; }
.vtitle { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 2px 0 0; overflow-wrap: anywhere; }
textarea.vtitle { border: 1px solid transparent; background: transparent; padding: 2px 6px; margin-left: -6px; resize: none; overflow: hidden; width: calc(100% + 6px); }
textarea.vtitle:hover { border-color: var(--line); }
.vcard { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.vcard-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
.vf { min-width: 0; }
.vf .lbl { margin-bottom: 4px; }
.vgrow { resize: none; overflow: hidden; min-height: 2.45em; }
.vtext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.drawer-panel .pill { white-space: normal; overflow-wrap: anywhere; }
.vurl { display: flex; gap: 6px; }
.vurl input { min-width: 0; }
.vurl .btn { flex: none; padding: 0 10px; }
.vempty summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.vempty summary:hover { color: var(--ink); }
.vactions { display: flex; gap: 8px; justify-content: space-between; }
.vmulti .chip { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.vmulti.many .chip.on::after { content: "×"; margin-left: 6px; opacity: .7; }
.vmulti .vaddopt { flex: 1 1 140px; min-width: 120px; width: auto; }
.att-list { display: grid; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.att-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; border-top: 1px solid var(--line-2); min-width: 0; }
.att-row:first-child { border-top: 0; }
a.att-row:hover, .att-group summary:hover { background: var(--panel-2); }
.att-row .avatar { width: 32px; height: 32px; font-size: 12px; flex: none; }
.att-row .grow { display: grid; min-width: 0; }
.att-row b { font-weight: 600; font-size: 14px; }
.att-row small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-row .chev { color: var(--muted); flex: none; }
.att-row .pill { flex: none; }
.att-ours { background: var(--panel-2); }
.att-stack { display: flex; flex: none; }
.att-stack .avatar { width: 28px; height: 28px; font-size: 11px; border: 2px solid var(--panel-2); margin-left: -8px; }
.att-stack .avatar:first-child { margin-left: 0; }
.att-more { border-top: 1px solid var(--line-2); }
.att-more summary { padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); list-style: none; }
.att-more summary::-webkit-details-marker { display: none; }
.att-more[open] summary { display: none; }
.att-more .att-row:first-of-type { border-top: 0; }
.note-acts:empty { display: none; }

/* Record read view */
.vwhen { font-size: 14px; color: var(--ink-2); margin-top: 4px; font-weight: 500; }
.vbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.vbtns .btn svg { width: 15px; height: 15px; }
.vfacts { padding: 4px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); column-gap: 20px; }
.vfv a { color: var(--accent); text-decoration: none; }
.vfact { padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.vfv { font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.vfv .chips { gap: 4px; }
.vsec { padding: 14px 16px; }
.vsec .lbl { margin-bottom: 6px; }
.vsec .note-body > :first-child { margin-top: 0; }
.vrel { display: grid; gap: 2px; }
.vrel a { color: var(--accent); text-decoration: none; padding: 4px 0; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.vrel a:last-of-type { border-bottom: 0; }
.note-type { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px 2px 10px; margin: 0; cursor: pointer; font-size: 12px; }
.note-type select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; padding: 0 2px 0 0; width: auto; cursor: pointer; }
.note-type select:focus { outline: none; }
.note-type:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.note-type svg { width: 13px; height: 13px; pointer-events: none; }

/* Scores out of 10: a bold pill on board cards, and a big number with its reasons in the post editor. */
.spill { display: inline-flex; align-items: baseline; font-size: 13px; font-weight: 800; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.spill small { font-size: 10px; font-weight: 600; opacity: .75; margin-left: 1px; }
.spill.hi { background: var(--ok-soft); color: var(--ok); }
.spill.lo { background: var(--warn-soft); color: var(--warn); }
.post-score { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); --sc: var(--accent); }
.post-score.hi { background: var(--ok-soft); --sc: var(--ok); }
.post-score.lo { background: var(--warn-soft); --sc: var(--warn); }
.post-score .sc-num { flex: none; display: flex; align-items: baseline; color: var(--sc); }
.post-score .sc-num b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.post-score .sc-num span { font-size: 16px; font-weight: 700; opacity: .7; margin-left: 2px; }
.post-score .sc-body { min-width: 0; }
.post-score .sc-t { font-size: 16px; font-weight: 750; color: var(--sc); }
.post-score .sc-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.post-score .sc-why { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.post-score .sc-why span, .post-score .sc-like > span { font-weight: 700; }
.post-score .sc-like { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.post-score .sc-like > span { display: block; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.post-score .sc-like ul { margin: 4px 0 0; padding-left: 18px; }
.post-score .sc-like li { margin: 2px 0; }
.post-score .sc-pm { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.post-score .sc-pm ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }

/* Deals filters: dropdown pills on one line. "set" marks a pill moved off its first option. */
.deal-picks { flex-wrap: nowrap; }
.pick { position: relative; display: inline-flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; padding: 7px 30px 7px 14px; width: auto; min-width: 0; cursor: pointer; border-radius: 999px; }
.pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick svg { position: absolute; right: 11px; width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.pick.set { background: var(--accent-soft); border-color: transparent; }
.pick.set select { color: var(--accent); }
.pick.set svg { stroke: var(--accent); }
@media (max-width: 760px) { .deal-picks { width: 100%; justify-content: flex-start; } .deal-picks #refresh { margin-left: auto; } }

/* Planner (Nov 9): built like the Community OS Planner, in Growth OS blues. Program cards with each one's graphic, a
   four-week weekday calendar with a status tag on every item and close-week markers, a legend, then drafts with no day,
   the essay agent and the take bank. */
.phead { flex-wrap: nowrap; align-items: flex-start; }
.phead > div:first-child { min-width: 0; }
.phr { flex: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phr .seg { margin: 0 0 0 4px; }
.phr .btn.icon { width: 30px; height: 30px; padding: 0; border-radius: 999px; font-size: 16px; line-height: 1; }
.prange { min-width: 120px; text-align: center; font-size: 13px; }
.progs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.prog { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; text-decoration: none; border-top: 4px solid var(--k, var(--accent)); }
.prog:hover { box-shadow: var(--shadow-lg); }
.prog .pimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #0F2A4A; border-bottom: 1px solid var(--line); }
.prog .pnone { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 16 / 9; background: #0F2A4A; color: #F5F8FC; padding: 18px 20px; }
.prog .pnone small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7FB8EE; }
.prog .pnone em { font-style: normal; font-size: 19px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prog .pnone em i { font-style: normal; color: #7FB8EE; }
.prog .pnone.blank em { color: #9DB3CC; }
.prog .pb { display: grid; gap: 5px; padding: 12px 14px 14px; text-align: left; }
.prog .ph2 { display: flex; align-items: center; gap: 8px; }
.prog .ph2 b { flex: 1; font-size: 14.5px; }
.prog .ph2 .st { margin: 0; }
.prog .cad, .prog .nx { font-size: 12.5px; color: var(--muted); }
.prog .nx b { color: var(--ink); font-weight: 600; }
.prog .tt { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prog .tt.none { color: var(--muted); font-style: italic; }
.k-li { --k: var(--accent); } .k-essay { --k: #E9A23B; } .k-last { --k: #7FB8EE; }
/* Status tags: the same four states and colors as Community OS. */
.st { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; line-height: 1; border-radius: 4px; padding: 3px 6px; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.st i { font-style: normal; font-size: 10px; }
.st-draft { background: transparent; color: var(--muted); border: 1px dashed var(--muted); padding: 2px 5px; }
.st-approve { background: #C2410C; color: #fff; }
.st-sched { background: #DCE8FB; color: #1F4E96; }
.st-sent { background: var(--ok); color: #fff; }
.st-fail { background: var(--bad-soft); color: var(--bad); }
.pcal { padding: 10px; overflow: hidden; }
.pcalh, .pweek { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pcalh span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px 6px; }
.pweek + .pweek { margin-top: 8px; }
.pday { min-height: 120px; border: 1px dashed var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--panel); min-width: 0; }
.pday.has { background: var(--accent-soft); border: 1px solid transparent; }
.pday.now { border: 2px solid var(--accent); }
.pday.past { opacity: .7; }
.pd { display: flex; align-items: baseline; gap: 5px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pd b { font-size: 13px; color: var(--ink); }
.bd { font-size: 10px; font-weight: 700; color: #C2410C; background: #FDEBDD; border-radius: 3px; padding: 1px 4px; letter-spacing: .02em; }
.pempty { font-size: 11px; color: var(--muted); margin-top: auto; }
.pchip { display: grid; gap: 4px; padding: 0 0 0 7px; border-left: 3px solid var(--k); color: inherit; text-decoration: none; min-width: 0; }
.pchip.pdraft { opacity: .88; }
.pchip:hover .pt { color: var(--accent); }
.pchip .st { justify-self: start; }
.pchip .pt { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pchip .pk { font-size: 11px; color: var(--muted); background: var(--panel-2); border-radius: 4px; padding: 1px 5px; margin-right: 2px; }
.pday.has .pchip .pk { background: color-mix(in srgb, var(--panel) 65%, transparent); }
.stleg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin: 10px 2px 0; }
.pgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; align-items: start; }
.pgrid2 .sech { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.pgrid2 .sech h2 { font-size: 15px; margin: 0; }
.pgrid2 .sech .muted { font-size: 12.5px; }
.pgrid2 .eagent { margin: 16px 0 0; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line-2); }
.plist li:first-child { border-top: 0; }
.plist .main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plist .t { font-size: 13.5px; color: inherit; text-decoration: none; }
.plist a.t:hover { color: var(--accent); }
.plist .s { font-size: 12px; color: var(--muted); }
.plist.bank { max-height: 560px; overflow: auto; }
:root[data-theme="dark"] .st-sched { background: #1D2C47; color: #A9C6F5; }
:root[data-theme="dark"] .st-approve { color: #2A1505; background: #FB923C; }
:root[data-theme="dark"] .bd { background: #3A2412; color: #FDBA74; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-sched { background: #1D2C47; color: #A9C6F5; }
  :root:not([data-theme="light"]) .st-approve { color: #2A1505; background: #FB923C; }
  :root:not([data-theme="light"]) .bd { background: #3A2412; color: #FDBA74; }
}
@media (max-width: 900px) { .progs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pgrid2 { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .phead { flex-wrap: wrap; }
  .progs { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px 4px; }
  .progs::-webkit-scrollbar { display: none; }
  .prog { flex: none; width: 240px; }
  .pcalh { display: none; }
  .pweek { grid-template-columns: 1fr; }
  .pday { min-height: 0; }
  .pday.past:not(:has(.pchip)) { display: none; }
}

/* Review: what an agent draft's checks still flag, and its sources */
.rc-flags,.rc-src{margin:0 0 10px;padding-left:18px;font-size:13px;line-height:1.45}
.rc-flags li{color:var(--warn,#B4521C)}
.rc-src li{color:var(--muted);margin-bottom:4px;overflow-wrap:anywhere}
.rc-src a{color:inherit;text-decoration:underline}

/* Essay agent: Run now and Redraft with a note */
.eagent{margin:0 0 16px}
.eagent .card-h{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.redo{display:flex;gap:8px;margin:0 0 6px}.redo input{flex:1;min-width:0;font-size:13.5px;padding:6px 10px}
.earuns{list-style:none;margin:8px 0 0;padding:0;font-size:13px;display:grid;gap:6px}
.earuns a{color:inherit;text-decoration:none}.earuns a:hover{text-decoration:underline}

/* ---------- Settings: people, roles and who changed what ---------- */
.login-name { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-name > div { display: grid; gap: 6px; }
.login-name input { width: 100%; min-width: 0; }
.nav-foot .me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; color: var(--nav-ink, var(--ink-2)); text-decoration: none; font-size: 13px; font-weight: 500; }
.nav-foot .me:hover { background: var(--nav-hover, var(--line-2)); }
.nav-foot .me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-foot .me .av { width: 24px; height: 24px; flex: none; border-radius: 999px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: rgba(255,255,255,.12); color: inherit; }
.team td .sub { color: var(--muted); font-size: 12.5px; }
.team td.acts { text-align: right; white-space: nowrap; }
.team td.acts .btn + .btn { margin-left: 6px; }
.addrev { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px; }
.addrev input { flex: 1 1 160px; min-width: 0; }
.addrev select { width: auto; flex: 0 0 auto; }
.acts-list { list-style: none; margin: 0; padding: 0; }
.acts-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.acts-list li:last-child { border-bottom: 0; }
.acts-list .when { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; padding-left: 8px; }
.acts-list .what { color: var(--muted); font-size: 12.5px; }
.history { margin-top: 24px; }
.history h2 { font-size: 17px; margin: 0 0 8px; }
.hist-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hist-list li { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.hist-list .hw { color: var(--muted); }
.hist-list b { font-weight: 600; color: var(--ink); }
/* On a phone each person is a small block: name and role on top, the buttons under them. */
@media (max-width: 760px) {
  .team thead, .team .hide-sm { display: none; }
  .team tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line-2); padding: 8px 0; }
  .team td { border: 0; padding: 4px 16px; }
  .team td.acts { grid-column: 1 / -1; text-align: left; }
  .team td.acts:empty { display: none; }
}

/* Watchdog (#watchdog) */
.wd-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; }
.wd-verdict { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wd-verdict .wd-i { width: 52px; height: 52px; }
.wd-verdict h2 { font-size: 22px; letter-spacing: -.02em; }
.wd-verdict p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.wd-counts { display: flex; gap: 8px; }
.wd-counts span { min-width: 84px; text-align: center; border-radius: 12px; padding: 8px 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.wd-counts b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; text-transform: none; }
.wd-counts .ok { background: var(--ok-soft); color: var(--ok); }
.wd-counts .warn { background: var(--warn-soft); color: var(--warn); }
.wd-counts .bad { background: var(--bad-soft); color: var(--bad); }
.wd-notes { margin-bottom: 16px; }
.wd-notes ul { margin: 0; padding: 0 16px 14px 34px; }
.wd-notes li { margin: 3px 0; }
.wd-sec { margin-bottom: 22px; }
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wd-tile { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; min-height: 108px; padding: 13px 14px 12px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; font-weight: 400; }
.wd-tile:hover { background: var(--panel); border-color: var(--c); }
.wd-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.wd-tile.ok { --c: var(--ok); } .wd-tile.warn { --c: var(--warn); } .wd-tile.bad { --c: var(--bad); } .wd-tile.pending { --c: var(--muted); }
.wd-tile.warn, .wd-tile.warn:hover { background: var(--warn-soft); }
.wd-tile.bad, .wd-tile.bad:hover { background: var(--bad-soft); }
.wd-top { display: flex; align-items: flex-start; gap: 9px; }
.wd-top .wd-i { width: 22px; height: 22px; margin-top: 1px; }
.wd-name { display: block; font-weight: 650; line-height: 1.3; }
.wd-feeds { display: block; color: var(--muted); font-size: 12px; }
.wd-age { margin-top: auto; font-size: 20px; font-weight: 700; color: var(--c); line-height: 1.15; }
.wd-num { margin-top: auto; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--c); line-height: 1.05; font-variant-numeric: tabular-nums; }
.wd-age small, .wd-num small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.wd-detail { display: none; font-size: 13px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.wd-tile.open .wd-detail { display: block; }
.wd-detail a { color: var(--accent); }
.wd-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.wd-strip i { height: 9px; border-radius: 2px; background: var(--line); }
.wd-strip i.s { background: var(--ok); } .wd-strip i.f { background: var(--bad); } .wd-strip i.r { background: var(--warn); }
.wd-strip-l { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
@media (max-width: 760px) {
  .wd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wd-tile { min-height: 100px; padding: 11px 10px 10px 14px; }
  .wd-num { font-size: 24px; } .wd-age { font-size: 17px; }
  .wd-age small, .wd-num small { display: block; margin: 2px 0 0; }
  .wd-counts { width: 100%; } .wd-counts span { flex: 1; min-width: 0; }
}
@media (max-width: 380px) { .wd-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- My OS look (Nov 13): built to match Erik's My OS page ----------
   White page, near-black type, soft grey cards with no border or shadow, white panels inside
   them, black pill buttons and pill tabs, Inter Tight for headings and big numbers, IBM Plex Mono
   for small counts. Charts use My OS's series colors and hairline grid, and fill their cards (see
   fitCharts() in app.js). Desktop uses the full width of the screen. Phones keep their layout. */
:root {
  --bg: #ffffff; --panel: #ffffff; --panel-2: #eef0f3; --sunk: #f4f5f7; --ink: #111111; --ink-2: #4b5563; --muted: #6b7280;
  --line: #e7e8ec; --line-2: #e9ebef; --accent: #111111; --accent-ink: #ffffff; --accent-soft: #f1f2f4; --link: #2563eb;
  --brand: #111111; --brand-ink: #ffffff; --spark: #111111; --lime: #86b6ef;
  --sel-bg: #111111; --sel-ink: #ffffff; --sel-num: #9ca3af;
  --ok: #0f9d58; --ok-soft: #e7f6ee; --warn: #d97706; --warn-soft: #fff4e5; --bad: #d93025; --bad-soft: #fdecea;
  --info: #2563eb; --info-soft: #eaf1fe;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #b9b8b2; --grid: #e6e8ec;
  --shadow: none; --shadow-lg: 0 12px 36px rgba(0,0,0,.12); --radius: 20px; --pad-x: clamp(24px, 3vw, 56px);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --nav-bg: #ffffff; --nav-line: #e7e8ec; --nav-ink: #4b5563; --nav-dim: #9ca3af; --nav-hover: #f4f5f7;
  --nav-on-bg: #111111; --nav-on-ink: #ffffff; --nav-brand: #111111;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1013; --panel: #16191e; --panel-2: #23272e; --sunk: #1c2026; --ink: #f2f3f5; --ink-2: #c3c8d0; --muted: #9aa1ad;
    --line: #2a2f37; --line-2: #262a31; --accent: #f2f3f5; --accent-ink: #111111; --accent-soft: #23272e; --link: #8ab4ff;
    --brand: #f2f3f5; --brand-ink: #111111; --spark: #f2f3f5; --sel-bg: #f2f3f5; --sel-ink: #111111; --sel-num: #6b7280;
    --ok: #4cc38a; --ok-soft: #173126; --warn: #f0b25c; --warn-soft: #3a2c16; --bad: #ff7b72; --bad-soft: #3a1d1d;
    --info: #8ab4ff; --info-soft: #1d2a40;
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #5a5a55; --grid: #252c37;
    --shadow: none; --shadow-lg: 0 14px 40px rgba(0,0,0,.5);
    --nav-bg: #0e1013; --nav-line: #2a2f37; --nav-ink: #c3c8d0; --nav-dim: #6b7280; --nav-hover: #1c2026;
    --nav-on-bg: #f2f3f5; --nav-on-ink: #111111; --nav-brand: #f2f3f5;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1013; --panel: #16191e; --panel-2: #23272e; --sunk: #1c2026; --ink: #f2f3f5; --ink-2: #c3c8d0; --muted: #9aa1ad;
  --line: #2a2f37; --line-2: #262a31; --accent: #f2f3f5; --accent-ink: #111111; --accent-soft: #23272e; --link: #8ab4ff;
  --brand: #f2f3f5; --brand-ink: #111111; --spark: #f2f3f5; --sel-bg: #f2f3f5; --sel-ink: #111111; --sel-num: #6b7280;
  --ok: #4cc38a; --ok-soft: #173126; --warn: #f0b25c; --warn-soft: #3a2c16; --bad: #ff7b72; --bad-soft: #3a1d1d;
  --info: #8ab4ff; --info-soft: #1d2a40;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #5a5a55; --grid: #252c37;
  --shadow: none; --shadow-lg: 0 14px 40px rgba(0,0,0,.5);
  --nav-bg: #0e1013; --nav-line: #2a2f37; --nav-ink: #c3c8d0; --nav-dim: #6b7280; --nav-hover: #1c2026;
  --nav-on-bg: #f2f3f5; --nav-on-ink: #111111; --nav-brand: #f2f3f5;
}

/* Type */
h1, h2, .hs-t, .sec-h h2 { font-family: var(--font-display); letter-spacing: -.015em; }
h1 { font-weight: 700; }
h2 { font-weight: 600; font-size: 16px; }
.kpi .val, .hero-stat b, .na-stat b, .pc b, .cal b, .ring text { font-family: var(--font-display); letter-spacing: -.02em; }
.nav nav a .count, kbd { font-family: var(--font-mono); font-weight: 500; }

/* Sidebar: white, with the page you're on as a black pill. */
.nav { border-right-color: var(--line); }
.nav nav a { border-radius: 999px; padding: 7px 12px; }
.nav nav a.on { background: var(--nav-on-bg); color: var(--nav-on-ink); }
.nav nav a.on svg { color: inherit; }
.nav nav a.on::before { display: none; }
.nav nav a.on .count { background: var(--nav-on-ink); color: var(--nav-on-bg); }
.nav .logo { box-shadow: none; }
.nav .jump { background: var(--sunk); border: 0; border-radius: 999px; color: var(--muted); }
.nav .jump:hover { background: var(--panel-2); color: var(--ink); }
.nav-foot { border-top: 1px solid var(--line); }
.nav-foot .me .av { background: var(--sunk); }
@media (max-width: 760px) {
  .nav nav a { border-radius: 12px; }
  .nav nav a.on { background: transparent; color: var(--ink); }
  .nav nav a.on::before { display: block; background: var(--ink); }
  .nav nav a.on .count { background: var(--accent); color: var(--accent-ink); }
}

/* Cards: soft grey, no border or shadow. Tiles and lists inside them are white panels. */
.card { background: var(--sunk); border: 0; box-shadow: none; border-radius: var(--radius); }
.card.kpi, a.card.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
a.card.kpi:hover, .kpis .kpi.click:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.card > .list, .card-b > .list { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card > .list { margin: 0 12px 12px; }
.card > .list:first-child { margin-top: 12px; }
.card > .list .row, .card-b > .list .row { border-top-color: var(--line); }
.card.cta { background: var(--sunk); border: 0; }
.card.cta:hover { background: var(--panel-2); }
.card-h { padding: 16px 18px 10px; }
.card-b { padding: 0 18px 18px; }
.hero-stat, .hero-score { border-color: var(--line); }
.hero-stat:hover, .hero-score:hover { background: var(--panel-2); }
.postcal .pc:not(.on):not(.off) { background: var(--panel); border-color: var(--line); }
.notice { border-radius: 14px; border: 0; }
.login { background: var(--bg); }
.login-card { border: 1px solid var(--line); box-shadow: none; border-radius: 20px; }
.rc { box-shadow: 0 6px 24px rgba(0,0,0,.06); border-radius: 20px; }
.take { background: var(--panel); border-left-color: var(--c1); border-radius: 0 10px 10px 0; }
.fbar, .pbar { background: var(--line); }
.ring-bg { stroke: var(--line); }

/* Buttons, tabs and toggles are pills. Primary is black. */
button, .btn { border-radius: 999px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: none; opacity: .88; background: var(--brand); }
.ghost { border-radius: 999px; }
.tabs { background: var(--sunk); border-radius: 999px; padding: 4px; gap: 2px; box-shadow: none; width: max-content; max-width: 100%; }
.tabs button { border: 0; border-radius: 999px; padding: 7px 16px; color: var(--muted); }
.tabs button:hover { background: var(--panel-2); color: var(--ink); }
.tabs button.on, .tabs button.on:hover { background: var(--accent); color: var(--accent-ink); border-bottom-color: transparent; }
.segc { background: var(--line); border-radius: 999px; padding: 3px; }
.segc button { border-radius: 999px; padding: 5px 13px; }
.segc button.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/* Charts: hairline grid, muted axis text, bold values, My OS colors. */
.chart text { font: 11px var(--font); fill: var(--muted); }
.chart .grid-l { stroke: var(--grid); stroke-dasharray: none; }
.chart .val, .chart .vlab { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart rect[data-tip]:hover, .chart circle[data-tip]:hover { opacity: .82; }
.legend { color: var(--muted); font-size: 12.5px; gap: 6px 14px; }
.legend i { border-radius: 50%; width: 8px; height: 8px; vertical-align: 0; }
.tip { background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 5px 9px; }
.spark .sa { fill: var(--c1); }
.spark .sl { stroke: var(--c1); }
.spark .base { stroke: var(--grid); stroke-dasharray: none; }
.spark i { border-color: var(--c1); }
.spark i.now { background: var(--c1); }

/* Charts fill their card. fitCharts() in app.js wraps each chart in a .chartbox and stretches
   its shapes to the box; text and dots keep their proportions. */
.chartbox { position: relative; min-width: 0; }
.chartbox.on { flex: 1 1 auto; }
.chartbox.on > svg.chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.chartbox .chart * { vector-effect: non-scaling-stroke; }

/* Desktop: the full width of the screen, and cards that share a row are the same height with
   no empty space below: a chart or a list stretches to fill its card. */
@media (min-width: 761px) {
  main { max-width: none; padding: 28px var(--pad-x) 64px; }
  .an-top { margin: -28px calc(-1 * var(--pad-x)) 16px; padding: 28px var(--pad-x) 0; }
}
@media (min-width: 1000px) {
  .grid > .card, .today-grid > .sec > .card, .works > .card { display: flex; flex-direction: column; }
  .today-grid { align-items: stretch; }
  .today-grid > .sec { display: flex; flex-direction: column; }
  .today-grid > .sec > .card { flex: 1 1 auto; }
  .grid > .card > .card-b:last-child, .today-grid > .sec > .card > .card-b:last-child { flex: 1 1 auto; }
  .card-b:has(> .chartbox, > div > .chartbox, > .list:last-child) { display: flex; flex-direction: column; }
  .card-b > div:has(> .chartbox) { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .grid > .card > .list:last-child, .today-grid > .sec > .card > .list:last-child, .card-b > .list:last-child { flex: 1 1 auto; }
  .kpi { display: flex; flex-direction: column; }
  .kpi > .spark { margin-top: auto; }
  .kpi > .sub { padding-bottom: 8px; }
}

/* My OS cards on Today: This week (touches, % of a usual week, split by kind) and the quarter's LinkedIn pace. */
.mo-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
@media (min-width: 1000px) { .mo-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: stretch; } }
.card.mo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.card.mo > h2 { font-size: 18px; }
.mo .inner { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-width: 0; }
.mo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mo-big { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.mo-l { color: var(--muted); font-size: 13px; }
.mo-r { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12.5px; color: var(--muted); max-width: 130px; }
.mo-ring text { font-size: 15px; }
.mo-bar { display: flex; height: 8px; gap: 2px; border-radius: 999px; overflow: hidden; background: var(--sunk); }
.mo-bar span { display: block; height: 100%; min-width: 4px; }
.mo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1 1 auto; justify-content: space-evenly; }
.mo-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }
.mo-list i { width: 8px; height: 8px; border-radius: 50%; }
.mo-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--font-display); }
.mo-head b { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.mo-head span { color: var(--muted); font-size: 15px; font-weight: 600; }
.chart.pace .band.ok { fill: var(--ok-soft); }
.chart.pace .band.warn { fill: var(--warn-soft); }
.chart.pace .band.bad { fill: var(--bad-soft); }
.chart.pace .band-t { font-size: 11.5px; font-weight: 600; }
.chart.pace .band-t.ok { fill: var(--ok); }
.chart.pace .band-t.warn { fill: var(--warn); }
.chart.pace .band-t.bad { fill: var(--bad); }
.chart.pace .today-l { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.plegend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.plegend span { display: inline-flex; align-items: center; gap: 6px; }
.plegend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.spill { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.spill.ok { color: var(--ok); background: var(--ok-soft); }
.spill.warn { color: var(--warn); background: var(--warn-soft); }
.spill.bad { color: var(--bad); background: var(--bad-soft); }
.mo .chartbox.on { flex: 1 1 auto; }
@media (min-width: 1000px) { .mo .inner:has(> .chartbox) { min-height: 0; } }

/* Review on a wide screen: the card uses the width and height of the page. The post fills its side, the
   type is a size up, and the buttons sit right under the card. Phones keep the swipe card as it was. */
@media (min-width: 1101px) {
  .deck { max-width: none; }
  .rc.narrow { max-width: 820px; }
  .rc:not(.done):not(.narrow) { display: flex; flex-direction: column; min-height: max(420px, calc(100vh - 300px)); }
  .rc:not(.done):not(.narrow) > .rc-body { flex: 1 1 auto; }
  .rc-head { padding: 22px 28px 14px; gap: 14px; }
  .rc-head .t { font-size: 16px; }
  .rc-head .s { font-size: 13px; }
  .rc-body { padding: 0 28px 28px; gap: 10px; }
  .rc-body.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 40px; align-items: stretch; }
  .rc-body.split > .pane { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .rc-body.split > .pane > .post-snip, .rc-body.split > .pane > .li-body { flex: 1 1 auto; }
  .rc-body.split .chat, .rc-body.split .post-snip, .rc .li-body { max-height: calc(100vh - 360px); }
  .rc-body.split .rc-img { max-width: 560px; }
  .rc .post-snip, .rc .q, .rc textarea { font-size: 16px; line-height: 1.55; }
  .rc .post-snip { padding: 14px 16px; border-radius: 12px; }
  .rc .q { padding: 12px 14px; border-radius: 10px; }
  .deck-actions { margin-top: 14px; }
}

/* Watchdog, My OS style: a health card beside what needs a look, then each group as a list in its own card. */
.wd-top-row { margin-bottom: 16px; }
.wd-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
@media (min-width: 1000px) { .wd-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.wd-sec { margin: 0; }
.wd-sec .mo-head h2 { font-size: 18px; }
.wd-sec .mo-head span { font-size: 13px; font-weight: 500; }
.wd-hero .mo-big { font-size: 34px; }
.wd-seg.ok, .wd-dot.ok { background: var(--ok); }
.wd-seg.warn, .wd-dot.warn { background: var(--warn); }
.wd-seg.bad, .wd-dot.bad { background: var(--bad); }
.wd-seg.pending, .wd-dot.pending { background: var(--c6); }
.wd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.wd-row.wd-tile { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 0; padding: 11px 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; overflow: visible; cursor: pointer; flex: 1 1 auto; }
.wd-row.wd-tile:first-child { border-top: 0; padding-top: 2px; }
.wd-row.wd-tile::before { display: none; }
.wd-row.wd-tile:hover { background: transparent; }
.wd-row.wd-tile:hover .wd-name { text-decoration: underline; }
.wd-row .wd-i { width: 20px; height: 20px; }
.wd-who { min-width: 0; }
.wd-who .wd-name { font-weight: 600; }
.wd-m { text-align: right; white-space: nowrap; }
.wd-m b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.wd-m small { display: block; font-size: 11.5px; color: var(--muted); }
.wd-row.warn .wd-m b { color: var(--warn); }
.wd-row.bad .wd-m b { color: var(--bad); }
.wd-row.bad .wd-name { color: var(--bad); }
.wd-x { grid-column: 2 / -1; display: grid; gap: 2px; }
.wd-row .wd-detail { grid-column: 2 / -1; border-top: 0; padding-top: 2px; color: var(--ink-2); }
.wd-notes { border-top: 1px solid var(--line); padding-top: 12px; margin: 0; }
.wd-notes ul { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 13.5px; color: var(--ink-2); }
.card.mo.wd-hero { flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; padding: 16px 18px 18px; margin: 0; }
/* Groups flow in two columns like a masonry, so a short list never stretches to match a long one. */
.wd-row.wd-tile { flex: none; }
@media (min-width: 1000px) {
  .wd-groups { display: block; columns: 2; column-gap: 16px; }
  .wd-groups > .card { break-inside: avoid; margin: 0 0 16px; }
}

/* Watchdog, second pass: every card is full width, so no card waits on a taller neighbour. Rows flow in
   columns inside each card; the health card is one band; what needs a look sits beside the upkeep notes. */
.wd-top-row, .wd-groups { display: flex; flex-direction: column; gap: 16px; columns: auto; }
.wd-groups > .card { margin: 0; }
.wd-hero .inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wd-hero .mo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.wd-sec .inner, .wd-needs .inner { overflow: hidden; padding-top: 6px; padding-bottom: 6px; }
.wd-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; margin-top: -1px; }
.wd-row.wd-tile, .wd-row.wd-tile:first-child { border-top: 1px solid var(--line); padding: 11px 4px; }
@media (min-width: 1000px) {
  .wd-hero .inner { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr); grid-template-rows: auto auto; column-gap: 40px; align-items: center; }
  .wd-hero .mo-top { grid-row: 1 / 3; }
  .wd-hero .mo-bar { grid-column: 2; align-self: end; }
  .wd-hero .mo-list { grid-column: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: start; }
  .wd-list { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
  .wd-needs .inner:has(> .wd-notes) { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .wd-needs .wd-list { grid-template-columns: minmax(0, 1fr); }
  .wd-needs .wd-notes { border-top: 0; border-left: 1px solid var(--line); padding: 10px 0 10px 24px; }
}
.wd-list { clip-path: inset(1px 0 0 0); }
/* Watchdog rows: as many to a line as fit (2, 3 or 4), balanced in app.js so no line ends in a gap; the
   last line's rows grow to the card's edge. */
.wd-list { display: flex; flex-wrap: wrap; column-gap: 32px; --cols: 1; }
.wd-list > .wd-row.wd-tile { flex: 1 1 calc((100% - (var(--cols) - 1) * 32px) / var(--cols)); min-width: 0; }
@media (min-width: 1000px) { .wd-sec .wd-list { --cols: var(--wc2, 2); } }
@media (min-width: 1300px) { .wd-sec .wd-list { --cols: var(--wc3, 3); } }
@media (min-width: 1700px) { .wd-sec .wd-list { --cols: var(--wc4, 4); } }
.wd-needs .wd-list { --cols: 1; }

/* Nov 13: Today's posting calendar drawn like the Planner's, with each post's rating out of 10. */
.pst { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pchip .pst .spill { font-size: 11px; padding: 0 7px; line-height: 17px; }
.pchip .pst .spill.hi { color: var(--ok); background: var(--ok-soft); }
.pchip .pst .spill.lo { color: var(--warn); background: var(--warn-soft); }
.pchip .pst .spill:not(.hi):not(.lo) { color: var(--ink-2); background: var(--panel); }
.tcal .pday { min-height: 104px; }
a.pempty { text-decoration: none; }
.tcal a.pempty { color: var(--ink); font-weight: 600; }
.tcal a.pempty:hover { color: var(--accent); }
.today-grid > .sec > .card.pcal { display: block; }
@media (max-width: 720px) { .tcal .pday { min-height: 0; } }

/* Nov 13: Watchdog condensed. Health is a short band across the top, Needs a look runs full width with the
   upkeep notes beside it, the groups are tabs in one card, and rows sit side by side, tighter. */
.wd-list { flex-direction: row; }
@media (min-width: 1000px) {
  .wd-needs .wd-list { --cols: var(--wc2, 1); }
}
@media (min-width: 1300px) {
  .wd-needs .inner:has(> .wd-notes) .wd-list { --cols: var(--wc2, 1); }
  .wd-needs .inner:not(:has(> .wd-notes)) .wd-list { --cols: var(--wc3, 1); }
}
.wd-hero .inner { padding-top: 12px; padding-bottom: 12px; }
.wd-tabs { margin: 0 0 12px; }
.wd-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.wd-tabs .wd-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wd-pane[hidden] { display: none; }
.wd-pnote { margin: 0 0 6px; }
.wd-row.wd-tile, .wd-row.wd-tile:first-child { padding: 8px 4px; }
.wd-m b { font-size: 15px; }
.wd-hero .mo-big { font-size: 30px; }
.wd-list { margin-top: -2px; clip-path: inset(2px 0 0 0); }

/* Nov 13: Open deals by last activity ends level with Which touches reach deals beside it; Recent, This
   month and Older tabs pick the deals, and the list scrolls inside the card. */
.deal-cards > .card.dact { align-self: stretch; display: flex; flex-direction: column; min-height: 0; }
.deal-cards > .card.dact > .list.fill { flex: 1 1 0; min-height: 240px; overflow-y: auto; }
.dact .card-h .segc button span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.dact .card-h .segc button.on span { color: inherit; opacity: .7; }
@media (max-width: 760px) { .deal-cards > .card.dact > .list.fill { flex: none; max-height: 420px; } }

/* Nov 13: People > Quiet deals. Each quiet deal is a header row, with the people Erik has met there under it. */
.bdl { display: grid; gap: 0; }
.bd-acct { padding: 4px 0 8px; border-top: 1px solid var(--line); }
.bd-acct:first-child { border-top: 0; }
.bd-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; color: inherit; text-decoration: none; flex-wrap: wrap; }
.bd-h b { font-size: 15px; }
.bd-h .amt { margin-left: auto; }
.bd-h:hover b:first-child { text-decoration: underline; }
.bd-acct .row { padding-left: 28px; }

/* Nov 13: People laid out like Deals. Tiles, then cadence health beside the quiet deals (level, the list
   scrolls), then everyone in one card with tabs and the search. */
/* Nov 21: cadence health is a slim strip under the tiles: headline and split on the left, a bar per cadence
   on the right. Quiet deals sits full width below it with its own scroll. */
.card.pp-health { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 16px 18px; margin-top: 16px; }
.ch-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ch-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ch-head h2 { margin: 0 12px 0 0; font-size: 16px; }
.ch-big { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ch-sub { color: var(--muted); font-size: 13px; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { width: 8px; height: 8px; border-radius: 50%; }
.ch-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ch-cads { display: grid; gap: 10px; padding-left: 32px; border-left: 1px solid var(--line-2); }
.ch-cad { display: grid; grid-template-columns: 96px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
.ch-cad .mo-bar { height: 6px; }
.ch-cad b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-cad b .muted { font-weight: 400; }
.pp-quiet { margin-top: 16px; }
.pp-quiet > .list.fill { flex: none; min-height: 0; max-height: 440px; }
@media (max-width: 760px) {
  .card.pp-health { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ch-cads { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
}
.pp-quiet { display: flex; flex-direction: column; min-height: 0; }
.pp-quiet > .list.fill { flex: 1 1 0; min-height: 260px; overflow-y: auto; }
@media (max-width: 760px) { .pp-quiet > .list.fill { flex: none; max-height: 420px; } }
#pcard .card-h { gap: 12px; flex-wrap: wrap; }
#pcard .segc button span { color: var(--muted); font-weight: 500; margin-left: 2px; }
#pcard .segc button.on span { color: inherit; opacity: .7; }
.pp-search { margin-left: auto; min-width: 220px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; }
@media (max-width: 760px) { .pp-search { margin-left: 0; width: 100%; } }
#pcard .card-h > .segc { margin-left: auto; }
.pp-search { margin-left: 0; flex: 1 1 100%; max-width: none; order: 3; }

/* Nov 14: Vault groups are cards with white tiles; the row count is the big number; rows balanced. */
.card.mo.vault-sec { margin: 0 0 16px; padding: 18px 18px 18px; }
.vault-sec .vault-sec-h { margin-bottom: 14px; }
.vault-sec .vault-sec-h h2 { margin: 0; }
.vault-sec-n { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vault-sec .vault-grid { display: flex; flex-wrap: wrap; gap: 12px; --cols: 1; }
.vault-sec .vault-tile { flex: 1 1 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); min-width: 0; background: var(--panel); border-radius: 14px; border: 0; padding: 16px 18px; display: grid; gap: 4px; }
.vault-sec .vault-tile:hover { box-shadow: 0 0 0 1.5px var(--accent) inset; transform: none; }
.vault-big { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .vault-sec .vault-grid { --cols: var(--wc2, 2); } }
@media (min-width: 1000px) { .vault-sec .vault-grid { --cols: var(--wc3, 3); } }
@media (min-width: 1300px) { .vault-sec .vault-grid { --cols: var(--wc4, 4); } }

/* Nov 14: Meeting notes tiles; the note sits on a white panel inside its card. */
.notes-kpis .kpi.click.on { box-shadow: 0 0 0 1.5px var(--accent) inset; }
.notes-read { padding: 10px; }
.notes-read > .note-doc { background: var(--panel); border-radius: 14px; max-width: none; }
.notes-read > .empty { background: var(--panel); border-radius: 14px; }
.notes-list { padding: 10px; }

/* Nov 14: a post's How it did / Predicted card sits at the top of the side column. */
.sc-card .card-b { padding: 10px; }
.sc-card .post-score { margin: 0; }

/* ---------- Parity with Community OS and Events OS (Nov 14) ----------
   Erik: Growth OS should feel the same as the other two. The same tokens as their "My OS look in Campfire green" layer:
   a light Campfire green page and sidebar, white cards with no border, rows and stats straight on the card, calendar days
   and tiles as light grey panels, Campfire dark green #142D25 for the active page, buttons and tabs (lime in dark mode),
   Denim for text, Inter Tight for headings and big numbers. Growth-only pages (Deals, Watchdog) keep their layout. */
@font-face { font-family: "Denim"; src: url(/fonts/denim-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Denim"; src: url(/fonts/denim-500.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
:root {
  --bg: #EDF3EC; --panel: #FFFFFF; --card: #FFFFFF; --rail: #F4F5F5; --sunk: #F1F3F2; --panel-2: #E6E9E8;
  --line: #E4E7E6; --line-2: #E4E7E6; --grid: #E7E9E8; --ink: #16241D; --ink-2: #33433A; --muted: #5E6A60;
  --accent: #142D25; --accent-ink: #FFFFFF; --accent-soft: #E6F6DC; --acc-mark: #B3ED97; --link: #2E7D4F;
  --brand: #142D25; --brand-ink: #FFFFFF; --spark: #142D25; --sel-bg: #142D25; --sel-ink: #FFFFFF; --sel-num: #B3ED97;
  --ok: #2E7D4F; --ok-soft: #E6F6DC; --warn: #C25E12; --warn-soft: #FFEBDC;
  --nav-bg: #EDF3EC; --nav-line: #E4E7E6; --nav-ink: #33433A; --nav-dim: #7A8A80; --nav-hover: #E0EADF;
  --nav-on-bg: #142D25; --nav-on-ink: #FFFFFF; --nav-brand: #142D25;
  --font: "Denim", "Hanken Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1410; --panel: #1A1D1C; --card: #161918; --rail: #1E2221; --sunk: #202423; --panel-2: #292E2C;
    --line: #2C3230; --line-2: #2C3230; --grid: #272C2A; --ink: #F1F5F2; --ink-2: #C4D0C8; --muted: #A9B7AE;
    --accent: #B3ED97; --accent-ink: #0E2A1C; --accent-soft: #1E3526; --acc-mark: #142D25; --link: #B3ED97;
    --brand: #B3ED97; --brand-ink: #0E2A1C; --spark: #B3ED97; --sel-bg: #B3ED97; --sel-ink: #0E2A1C; --sel-num: #142D25;
    --ok: #8FD97A; --ok-soft: #1E3526; --warn: #FFB784; --warn-soft: #3D2616;
    --nav-bg: #0B1410; --nav-line: #2C3230; --nav-ink: #C4D0C8; --nav-dim: #76857C; --nav-hover: #15211B;
    --nav-on-bg: #B3ED97; --nav-on-ink: #0E2A1C; --nav-brand: #B3ED97;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1410; --panel: #1A1D1C; --card: #161918; --rail: #1E2221; --sunk: #202423; --panel-2: #292E2C;
  --line: #2C3230; --line-2: #2C3230; --grid: #272C2A; --ink: #F1F5F2; --ink-2: #C4D0C8; --muted: #A9B7AE;
  --accent: #B3ED97; --accent-ink: #0E2A1C; --accent-soft: #1E3526; --acc-mark: #142D25; --link: #B3ED97;
  --brand: #B3ED97; --brand-ink: #0E2A1C; --spark: #B3ED97; --sel-bg: #B3ED97; --sel-ink: #0E2A1C; --sel-num: #142D25;
  --ok: #8FD97A; --ok-soft: #1E3526; --warn: #FFB784; --warn-soft: #3D2616;
  --nav-bg: #0B1410; --nav-line: #2C3230; --nav-ink: #C4D0C8; --nav-dim: #76857C; --nav-hover: #15211B;
  --nav-on-bg: #B3ED97; --nav-on-ink: #0E2A1C; --nav-brand: #B3ED97;
}
body { background: var(--bg); font-family: var(--font); }
.nav { background: var(--nav-bg); }
.nav nav a.on svg { color: var(--acc-mark); }
.nav .jump { background: var(--card); }
/* Cards are white on the green page; what sits inside them sits straight on the card. */
.card { background: var(--card); }
.card.kpi, a.card.kpi { background: var(--card); border: 0; border-radius: 16px; }
a.card.kpi:hover, .kpis .kpi.click:hover { box-shadow: inset 0 0 0 1px var(--accent); border-color: transparent; }
.card > .list, .card-b > .list { background: transparent; border: 0; border-radius: 0; margin: 0; }
.card > .list:first-child { margin-top: 0; }
.mo .inner { background: transparent; border: 0; border-radius: 0; padding: 0; }
.card.cta { background: var(--card); }
.card.cta:hover { background: var(--rail); }
.notice { background: var(--warn-soft); }
/* Panels inside cards: calendar days, Vault tiles, the open note, the post's score and the take bank. */
.pday { background: var(--rail); border: 1px solid transparent; border-radius: 14px; }
.pday.open { background: transparent; border: 1px dashed var(--line); }
.pday.has { background: var(--accent-soft); }
.pday.now { border: 2px solid var(--accent); }
.pday.has .pchip .pk { background: color-mix(in srgb, var(--card) 70%, transparent); }
.postcal .pc:not(.on):not(.off) { background: var(--rail); border-color: transparent; }
.vault-sec .vault-tile { background: var(--rail); }
.vault-sec .vault-tile:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.notes-read > .note-doc, .notes-read > .empty { background: transparent; }
.notes-read { padding: 0; }
.take { background: var(--rail); border-left-color: var(--acc-mark); }
.tabs, .segc { background: var(--sunk); }
.fbar, .pbar, .mo-bar { background: var(--panel-2); }
.ring-bg { stroke: var(--panel-2); }
.toast { background: var(--accent); color: var(--accent-ink); }
.pp-search, input, select, textarea { background: var(--panel); }
/* ---------- end parity ---------- */

/* Nov 14: phones. A row of tabs in a card header scrolls sideways instead of running off the screen. */
@media (max-width: 760px) {
  .card-h .segc { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .card-h .segc::-webkit-scrollbar { display: none; }
  .card-h .segc button { flex: none; }
}
/* Section titles keep to one line: the note beside a title shortens with "…" rather than breaking it. */
.sec-h h2, .sec-more { white-space: nowrap; flex: none; }
.sec-h .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Phones: the bottom bar keeps its own short padding (the sidebar's padding made it taller than the Review
   buttons allow for), and the page you're on reads in Campfire dark green (lime in dark mode). */
@media (max-width: 760px) {
  .nav { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 0; }
  .nav nav a.on, .nav nav a.on svg { color: var(--accent); }
  .nav nav a.on::before { background: var(--accent); }
}
/* Phones: Vault tables two to a row, with the row count big and the description left for the table itself. */
.vault-sec-n { white-space: nowrap; }
@media (max-width: 699px) {
  .vault-sec .vault-grid { --cols: 2; gap: 8px; }
  .vault-sec .vault-tile { padding: 12px 14px; }
  .vault-sec .vault-tile > .muted { display: none; }
  .vault-big { font-size: 24px; }
  .card.mo.vault-sec { padding: 16px 14px; }
}
/* Phones: a card's title gets the line it needs; the note beside it drops below when there's no room. */
@media (max-width: 760px) { .card-h { flex-wrap: wrap; row-gap: 2px; } .card-h > h2 { flex: 0 1 auto; } }
/* Planner: the week arrows are round buttons with the arrow in the middle, and a post with no picture
   shows on Campfire dark green rather than navy. */
.phr .btn.icon { display: inline-grid; place-items: center; flex: none; min-width: 30px; }
.prog .pimg, .prog .pnone { background: #142D25; }
.prog .pnone small, .prog .pnone em i { color: #B3ED97; }
.prog .pnone.blank em { color: #A9C2B3; }
/* Phones: a count sits on the corner of its icon instead of covering it. */
@media (max-width: 760px) {
  .nav nav a .count { position: absolute; top: 1px; right: auto; left: calc(50% + 4px); margin: 0; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 5px; text-align: center; }
}

/* Nov 14: Today laid out like Today in Community OS and Events OS. Four stat cards, then the LinkedIn
   health card beside the quarter's pace chart, then the next two weeks, then What to do next and the lists. */
.hero-stats.tiles4 { gap: 16px; margin-bottom: 16px; }
.hero-stats.tiles4 .hero-stat { background: var(--card); border: 0; border-radius: 20px; padding: 16px 18px 18px; }
.hero-stats.tiles4 .hero-stat:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.today-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 16px; align-items: stretch; margin-bottom: 24px; }
.today-row > .card { margin: 0; }
.hc { padding: 18px 20px; display: flex; flex-direction: column; }
.hch { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; color: inherit; text-decoration: none; }
.hch .ring { flex: none; }
.ring-none { width: 80px; height: 80px; border-radius: 50%; border: 7px solid var(--panel-2); display: grid; place-items: center; font-size: 22px; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hct { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0; }
.hch p { margin: 0; font-size: 13px; }
.hbars { display: grid; gap: 12px; margin-top: auto; margin-bottom: auto; }
.hb { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 36px; gap: 12px; align-items: center; }
.hb span { display: block; font-size: 13.5px; }
.hb small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.ht { position: relative; height: 8px; background: var(--panel-2); border-radius: 99px; }
.ht i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ok); }
.ht i.lo { background: var(--warn); }
.ht s { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--muted); opacity: .55; border-radius: 2px; }
.hb b { text-align: right; font-weight: 500; font-size: 13.5px; font-variant-numeric: tabular-nums; }
#postcal { margin-bottom: 24px; }
.todo-card { padding: 18px 20px; margin-bottom: 24px; }
.todo-card h2 { margin: 0 0 12px; }
@media (min-width: 1200px) { .todo-card .todo { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.todo li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.todo li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.todo li.warn::before { background: var(--warn); }
.lk { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.lk:hover { text-decoration-color: currentColor; }
@media (max-width: 1100px) { .today-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .hero-stats.tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-stats.tiles4 .hero-stat { padding: 12px 14px 14px; }
}
@media (max-width: 560px) { .hb { grid-template-columns: 1fr 36px; gap: 4px 10px; } .hb .ht { grid-column: 1 / -1; grid-row: 2; } }
/* What to do next has no lines between its items, on Today and in Analytics, as in the other two apps. */
.list.nolines .row, .list.nolines .row + .row { border-top: 0; border-bottom: 0; }
.todo li { border: 0; }

/* Add a photo: greyed out while the upload runs. */
.btn.busy { opacity: .5; pointer-events: none; }
.pgrid2 > div > section + section { margin-top: 16px; }
a.pill { text-decoration: none; }

/* Analytics bar rows (What's working, When to post, Where leads came from and the rest): grey bars,
   the leader in the first chart colour, numbers in ink rather than a green highlight. */
.brs { gap: 8px; }
.br .fbar { height: 8px; border-radius: 4px; }
.br .fbar i { border-radius: 4px; background: var(--c6); opacity: .75; }
.br.best .fbar i { background: var(--c1); opacity: 1; }
.br b { font-weight: 600; color: var(--ink-2); }
.br.best b, .br.best .k { color: var(--ink); font-weight: 600; }
.br.best .k small { font-weight: 400; }

/* What's working: four tiles in a row, leader on top, the rest as label, number and a thin bar. */
.wtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.wt { min-width: 0; padding: 14px 14px 12px; border-radius: 12px; background: var(--rail, var(--panel-2)); }
.wt-h { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.wt-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.wt-k { min-width: 0; display: grid; gap: 2px; }
.wt-k b { font-size: 15px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-k span { font-size: 12px; color: var(--muted); }
.wt-top strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.wt-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.wt-bar i { display: block; height: 100%; border-radius: 2px; background: var(--c6); }
.wt-bar.lead { height: 6px; margin: 10px 0 4px; border-radius: 3px; }
.wt-bar.lead i { background: var(--c1); border-radius: 3px; }
.wt-rows { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wt-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: baseline; font-size: 13px; }
.wt-r span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.wt-r small { margin-left: 6px; font-size: 11px; color: var(--muted); }
.wt-r b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wt-r .wt-bar { grid-column: 1 / -1; }
.enter .wt-bar i { transform-origin: left; animation: grow-x .7s cubic-bezier(.2,.7,.2,1) .15s both; }
@media (max-width: 1100px) { .wtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wtiles { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .enter .wt-bar i { animation: none; } }

/* Where leads came from: totals, then qualified vs not yet per source, take pinned to the bottom. */
.card-b:has(> .lsrc) { display: flex; flex-direction: column; }
.lsrc { flex: 1 1 auto; display: flex; flex-direction: column; }
.lsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.lsum > div { display: grid; gap: 2px; padding: 12px 14px; min-width: 0; }
.lsum > div + div { border-left: 1px solid var(--line-2); }
.lsum b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.lsum span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lsum small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brs.lq { gap: 12px; }
.brs.lq .br { grid-template-columns: minmax(0, 1fr) 40% 34px 40px; }
.brs.lq .fbar { display: flex; overflow: hidden; height: 10px; border-radius: 5px; }
.brs.lq .fbar i { border-radius: 0; opacity: 1; background: var(--c6); }
.brs.lq .fbar i.qf { background: var(--c1); }
.brs.lq .rt { color: var(--muted); font-weight: 500; }
.brs.lq .hd { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.brs.lq .hd b { color: var(--muted); font-weight: 600; }
.lgd { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 500; white-space: nowrap; overflow: hidden; }
.lgd i { width: 8px; height: 8px; border-radius: 2px; background: var(--c6); flex: none; }
.lgd i.qf { background: var(--c1); }
.lgd i:not(:first-child) { margin-left: 8px; }
.lsrc > .take { margin-top: auto; }
.lsrc > .brs { margin-bottom: 16px; }
@media (max-width: 760px) { .lsum b { font-size: 18px; } .brs.lq .br { grid-template-columns: minmax(0, 1fr) 34% 30px 36px; } }

/* Viewers (body.ro, set in app.js from the signed-in role) can look at every page but not change
   anything, so the controls that edit, approve or run are hidden. The server refuses viewer changes too. */
body.ro .ask,
body.ro .savebar,
body.ro #redraftCard,
body.ro .hookpick,
body.ro #gfx .actions,
body.ro .reply .actions,
body.ro .reply .ai-slot,
body.ro #eagent .redo,
body.ro #vtnew, body.ro #vtnewform, body.ro #vnewrow, body.ro #vcols, body.ro .vnewline, body.ro th.vadd, body.ro #vedit,
body.ro #docnew, body.ro #docnewform, body.ro [data-ver],
body.ro #psave, body.ro [data-snooze],
body.ro .card:has(#lsave), body.ro .card:has(#askSlot), body.ro .counter span + span { display: none !important; }
body.ro .tags button { pointer-events: none; }

/* ---------- Sign in with Google (Nov 26, 2026), as in Community OS ---------- */
.login-google, .login-pass { display: grid; gap: 12px; }
.login-google .gbtn { min-height: 44px; display: flex; justify-content: center; }
.login-google .err:empty { display: none; }
.login-card .linkish { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; justify-self: center; font: inherit; font-size: 13px; }
.login-card .linkish:hover { color: var(--ink); }
.login-google + .login-pass { border-top: 1px solid var(--line-2); padding-top: 14px; }
.stack { display: grid; gap: 16px; align-content: start; }
/* Platform bubbles on Review cards: LinkedIn, Reddit and Substack each in their own My OS colour. */
.pill.pf { color: #fff; }
.pill.pf-linkedin { background: var(--c1); }
.pill.pf-reddit { background: var(--c2); }
.pill.pf-substack { background: var(--c5); }

/* The platform pages under Analytics > Platforms: a smaller row of pills under the main tabs. */
.tabs.subtabs { margin: 0 0 16px; background: none; padding: 0; gap: 6px; }
.tabs.subtabs button { padding: 5px 12px; font-size: 13px; background: var(--sunk); }
.tabs.subtabs button.on, .tabs.subtabs button.on:hover { background: var(--ink); color: var(--panel); }
.pfdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pfdot.pf-linkedin { background: var(--c1); }
.pfdot.pf-reddit { background: var(--c2); }
.pfdot.pf-substack { background: var(--c5); }
