@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..800;1,400..600&display=swap');

/* Growth Hub design system v3
   Principles: one job per screen, quiet surfaces, one accent, detail on demand (menus, modals, disclosures). */

:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --sunk: #f3f4f8;
  --sunk-2: #eceef4;
  --ink: #12151c;
  --muted: #5d6676;
  --faint: #8f98a8;
  --rule: #e7e9ef;
  --rule-strong: #d6dae4;
  --signal: #4a43e8;
  --signal-ink: #3b35c9;
  --signal-soft: #eeeeff;
  --hit: #0c9a69;
  --hit-soft: #e3f6ee;
  --warn: #b45d05;
  --warn-soft: #fdf1df;
  --bad: #c8283a;
  --bad-soft: #fce8eb;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-xs: 0 1px 2px rgba(18, 21, 28, 0.04);
  --shadow: 0 1px 2px rgba(18, 21, 28, 0.05), 0 8px 24px -12px rgba(18, 21, 28, 0.14);
  --shadow-pop: 0 4px 6px -2px rgba(18, 21, 28, 0.06), 0 16px 40px -8px rgba(18, 21, 28, 0.22);
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c1117; --surface: #131a23; --sunk: #0f151d; --sunk-2: #19212c; --ink: #e8edf3; --muted: #9aa6b5; --faint: #6c7886; --rule: #212b38; --rule-strong: #2c3847;
    --signal: #8f8cff; --signal-ink: #aaa8ff; --signal-soft: #22234a; --hit: #3ccf95; --hit-soft: #11342a; --warn: #f0a24b; --warn-soft: #38290f; --bad: #ff6b7a; --bad-soft: #3b1a20;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0c1117; --surface: #131a23; --sunk: #0f151d; --sunk-2: #19212c; --ink: #e8edf3; --muted: #9aa6b5; --faint: #6c7886; --rule: #212b38; --rule-strong: #2c3847;
  --signal: #8f8cff; --signal-ink: #aaa8ff; --signal-soft: #22234a; --hit: #3ccf95; --hit-soft: #11342a; --warn: #f0a24b; --warn-soft: #38290f; --bad: #ff6b7a; --bad-soft: #3b1a20;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5;
  font-feature-settings: 'tnum' 1, 'ss01' 1; -webkit-font-smoothing: antialiased;
}
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.014em; }
h1 { font-size: 26px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 15.5px; font-weight: 650; }
h3 { font-size: 13.5px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px 14px; border-right: 1px solid var(--rule);
  background: var(--surface); display: flex; flex-direction: column; gap: 2px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; font-weight: 750; font-size: 15px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  color: var(--muted); font-weight: 540;
}
.nav a svg.i { color: var(--faint); }
.nav a:hover { background: var(--sunk); color: var(--ink); text-decoration: none; }
.nav a:hover svg.i { color: var(--muted); }
.nav a[aria-current='page'] { background: var(--signal-soft); color: var(--signal-ink); font-weight: 650; }
.nav a[aria-current='page'] svg.i { color: var(--signal); }
.nav .group { margin: 16px 10px 4px; }
.nav .count { margin-left: auto; font-size: 11.5px; font-weight: 650; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--signal); color: #fff; text-align: center; }
.nav .spacer { flex: 1; }
.nav .newpost { justify-content: center; margin: 0 2px 10px; color: #fff; padding: 9px 12px; }
.nav .newpost svg.i { color: #fff; }
.nav .newpost:hover { color: #fff; }
.nav .foot { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 8px; }
.main { padding: 32px 40px 72px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin-top: 5px; color: var(--muted); max-width: 66ch; }

/* ---------- surfaces */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); box-shadow: var(--shadow-xs); }
.panel > .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; }
.panel > .ph + .tablewrap, .panel > .ph + .pb.flush { border-top: 1px solid var(--rule); }
.panel > .pb { padding: 4px 20px 20px; }
.panel > .pb:first-child { padding-top: 20px; }
.panel > .pf { display: flex; justify-content: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--rule); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack.tight { gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.divided { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.divided > * { padding: 18px 20px; border-left: 1px solid var(--rule); }
.divided > *:first-child { border-left: 0; }

/* stat cards: a number with a label, nothing else */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); box-shadow: var(--shadow-xs); color: var(--ink); }
a.stat:hover { text-decoration: none; border-color: var(--rule-strong); box-shadow: var(--shadow); }
.stat .sv { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; display: flex; align-items: baseline; gap: 6px; }
.stat .sl { color: var(--muted); font-size: 13px; }
.stat.warn .sv { color: var(--warn); }
.stat.bad .sv { color: var(--bad); }
.stat.good .sv { color: var(--hit); }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 650; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--sunk); }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--sunk); }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--ink); }
.tablewrap { overflow-x: auto; }
.clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- the signal bar */
.signal { display: grid; grid-template-columns: 96px 38px; min-width: 142px; gap: 8px; align-items: center; }
.signal .track { position: relative; height: 8px; background: var(--sunk-2); border-radius: 4px; }
.signal .fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--faint); border-radius: 4px; }
.signal.up .fill { background: var(--signal); }
.signal.hit .fill { background: var(--hit); }
.signal .tick { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink); opacity: 0.4; }
.signal .tick.two { opacity: 0.2; }
.signal .v { font-size: 12.5px; font-weight: 650; text-align: right; }
.signal.none .v { color: var(--faint); font-weight: 400; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- small things */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--rule); font-size: 12px; color: var(--muted); white-space: nowrap; }
.chip.tag b { color: var(--ink); font-weight: 600; }
a.chip:hover { text-decoration: none; border-color: var(--rule-strong); color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 620; white-space: nowrap; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status.published, .status.active, .status.ok, .status.connected { background: var(--hit-soft); color: var(--hit); }
.status.published::before, .status.active::before, .status.ok::before, .status.connected::before { background: var(--hit); }
.status.scheduled, .status.running { background: var(--signal-soft); color: var(--signal-ink); }
.status.scheduled::before, .status.running::before { background: var(--signal); }
.status.pending_approval, .status.publishing, .status.partial, .status.manual, .status.attention { background: var(--warn-soft); color: var(--warn); }
.status.pending_approval::before, .status.publishing::before, .status.partial::before, .status.manual::before, .status.attention::before { background: var(--warn); }
.status.failed, .status.error, .status.expired { background: var(--bad-soft); color: var(--bad); }
.status.failed::before, .status.error::before, .status.expired::before { background: var(--bad); }
.status.off { background: var(--sunk); color: var(--faint); }
.plat { display: inline-flex; align-items: center; gap: 7px; font-weight: 560; white-space: nowrap; }
.plat svg { width: 15px; height: 15px; }
.pmark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pmark svg { width: 12px; height: 12px; }
.applogo { display: inline-grid; place-items: center; border-radius: 6px; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--rule); font-size: 11px; font-weight: 700; color: #fff; }
.where { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.where .pmark { margin-left: -12px; margin-top: 12px; width: 16px; height: 16px; border-radius: 5px; box-shadow: 0 0 0 2px var(--surface); }
.where .pmark svg { width: 10px; height: 10px; }
.delta { font-size: 12px; margin-left: 6px; font-weight: 600; }
.delta.up { color: var(--hit); }
.delta.down { color: var(--bad); }
.note { padding: 11px 14px; border-radius: var(--radius-m); background: var(--sunk); color: var(--muted); font-size: 13px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.good { background: var(--hit-soft); color: var(--hit); }
.empty { padding: 36px 20px; color: var(--muted); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty b { color: var(--ink); display: block; font-size: 15px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.copy { display: flex; gap: 8px; align-items: center; background: var(--sunk); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 6px 6px 6px 12px; }
.copy code { flex: 1; overflow-x: auto; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.avatar.s { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 16px; height: 4px; border-radius: 2px; background: var(--sunk-2); }
.pips i.on { background: var(--hit); }
.ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--signal) calc(var(--p) * 1%), var(--sunk-2) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: ''; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); }

/* ---------- forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 580; font-size: 13px; }
label.f .hint { font-weight: 400; color: var(--faint); font-size: 12px; }
label.f.req > span:first-child::after { content: ' *'; color: var(--signal); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-s);
  padding: 8px 11px; min-width: 0; transition: border-color 120ms, box-shadow 120ms;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f98a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
select.compact { padding: 5px 28px 5px 10px; font-size: 13px; font-weight: 560; border-radius: 9px; background-position: right 9px center; }
textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
input[type='checkbox'] { accent-color: var(--signal); width: 16px; height: 16px; padding: 0; }
input[type='color'] { padding: 2px; height: 38px; width: 100%; cursor: pointer; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.fields.one { grid-template-columns: 1fr; }
.fields.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 34px; }

button, .btn {
  font: inherit; font-weight: 600; font-size: 13px; border-radius: 10px; padding: 8px 14px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  box-shadow: var(--shadow-xs); transition: background 120ms, border-color 120ms, box-shadow 120ms;
}
button:hover, .btn:hover { border-color: var(--faint); text-decoration: none; background: var(--sunk); }
button.primary, .btn.primary { background: var(--signal); border-color: var(--signal); color: #fff; box-shadow: 0 1px 2px rgba(74, 67, 232, 0.35); }
button.primary:hover, .btn.primary:hover { background: var(--signal-ink); border-color: var(--signal-ink); }
button.good { background: var(--hit); border-color: var(--hit); color: #fff; }
button.good:hover { background: var(--hit); filter: brightness(1.06); }
button.danger { color: var(--bad); }
button.ghost { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
button.ghost:hover { color: var(--ink); background: var(--sunk-2); }
button.icon { padding: 0; width: 32px; height: 32px; }
button.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
button:disabled { opacity: 0.5; cursor: default; }
.seg { display: inline-flex; background: var(--sunk-2); border-radius: 11px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--muted); padding: 6px 12px; }
.seg button:hover { background: transparent; color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 21, 28, 0.12); }
.seg .n { font-size: 11.5px; font-weight: 650; color: var(--faint); }
.seg .n.hot { color: #fff; background: var(--warn); border-radius: 8px; padding: 0 6px; }
.seg button[aria-pressed='true'] .n { color: var(--signal-ink); }
.seg button[aria-pressed='true'] .n.hot { color: #fff; }

/* ---------- tabs (section nav) */
.tabs { display: inline-flex; gap: 2px; margin-bottom: 22px; padding: 3px; background: var(--sunk-2); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 6px 14px; color: var(--muted); font-weight: 580; border-radius: 9px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current='page'] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(18, 21, 28, 0.12); }

/* ---------- disclosure rows */
details.acc { border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-xs); }
details.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-radius: var(--radius-l); }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary:hover { background: var(--sunk); }
details.acc > summary .chev { transition: transform 150ms; color: var(--faint); }
details.acc[open] > summary .chev { transform: rotate(180deg); }
details.acc[open] > summary { border-bottom: 1px solid var(--rule); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details.acc > .acc-body > .pb { padding: 16px 20px; }
details.more > summary { cursor: pointer; color: var(--signal); font-weight: 600; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ' +'; }
details.more[open] > summary::after { content: ' \2212'; }

/* ---------- list rows (settings, connections, accounts) */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--rule); min-height: 58px; }
.li:first-child { border-top: 0; }
.li.click { cursor: pointer; }
.li.click:hover { background: var(--sunk); }
.li .grow { flex: 1; min-width: 0; }
.li .title { font-weight: 620; }
.li .sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li.off .title, .li.off .sub { color: var(--faint); }
.li.off .avatar { opacity: 0.5; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.appcard { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); box-shadow: var(--shadow-xs); cursor: pointer; text-align: left; font-weight: 400; white-space: normal; align-items: stretch; justify-content: flex-start; color: var(--ink); }
.appcard:hover { border-color: var(--rule-strong); box-shadow: var(--shadow); background: var(--surface); }
.appcard .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.appcard .srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 580; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rule); color: var(--faint); }
.src::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--faint); }
.src.on { color: var(--ink); background: var(--hit-soft); border-color: transparent; }
.src.on::before { background: var(--hit); border-color: var(--hit); }
.appcard.add { border-style: dashed; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; min-height: 150px; box-shadow: none; background: transparent; }
.appcard.add:hover { color: var(--signal); border-color: var(--signal); background: var(--signal-soft); }

/* ---------- popover menus */
.pop { position: fixed; z-index: 60; min-width: 190px; max-width: 360px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; }
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; box-shadow: none; border-radius: 9px; font-weight: 560; justify-content: flex-start; text-align: left; }
.pop .mi:hover { background: var(--sunk-2); }
.pop .mi.danger { color: var(--bad); }
.pop .mi.on { color: var(--signal-ink); }
.pop .mi .chk { margin-left: auto; color: var(--signal); }
.pop hr { border: 0; border-top: 1px solid var(--rule); margin: 6px 4px; }
.pop .mh { padding: 6px 10px 4px; }
.pop.form { padding: 14px; width: 320px; max-width: calc(100vw - 24px); }
.pop.form .stack { gap: 12px; }
.pop.form select, .pop.form input { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .pop { animation: popin 120ms ease-out; }
  @keyframes popin { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
}

/* ---------- composer */
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.acct { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--radius-s); cursor: pointer; background: var(--surface); }
.acct:has(input:checked) { border-color: var(--signal); background: var(--signal-soft); }
.acct small { color: var(--faint); display: block; font-size: 11.5px; }
.drop { border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-m); padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.drop:hover { border-color: var(--signal); color: var(--signal); }
.drop.over { border-color: var(--signal); background: var(--signal-soft); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 96px; height: 128px; border-radius: var(--radius-s); overflow: hidden; background: var(--sunk); border: 1px solid var(--rule); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; padding: 0 6px; font-size: 12px; }
.preview { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px; background: var(--sunk); white-space: pre-wrap; font-size: 13.5px; }
.counter { font-size: 12px; color: var(--faint); text-align: right; }
.counter.over { color: var(--bad); }

/* ---------- queue */
.qitem { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--rule); align-items: start; }
.qitem:first-child { border-top: 0; }
.qitem .when { font-weight: 650; }
.qitem .body p { margin: 4px 0 8px; white-space: pre-wrap; max-height: 4.5em; overflow: hidden; color: var(--muted); }
.qitem .acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

/* ---------- calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cal .dh { padding: 8px 10px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sunk); }
.cal .day { min-height: 116px; padding: 6px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.cal .day.out { background: var(--sunk); }
.cal .day.out .d { color: var(--faint); }
.cal .day.today .d { color: #fff; background: var(--signal); border-radius: 10px; padding: 0 7px; }
.cal .d { font-size: 12px; font-weight: 650; align-self: flex-start; }
.cal .ev { display: flex; gap: 5px; align-items: center; font-size: 12px; padding: 3px 6px; border-radius: 6px; background: var(--sunk); border-left: 3px solid var(--faint); overflow: hidden; white-space: nowrap; cursor: pointer; }
.cal .ev:hover { background: var(--sunk-2); }
.cal .ev.published { opacity: 0.75; }
.cal .ev.failed { background: var(--bad-soft); }
.cal .ev.pending_approval { background: var(--warn-soft); }

/* ---------- funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fstep { display: grid; grid-template-columns: 170px 1fr 90px 96px; gap: 12px; align-items: center; }
.fstep .bar { height: 22px; background: linear-gradient(90deg, var(--signal), #7b75ff); border-radius: 6px; min-width: 2px; }
.fstep .bar.empty { background: repeating-linear-gradient(90deg, var(--rule) 0 4px, transparent 4px 8px); }
.fstep .rate { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- drawer + modal */
.scrim { position: fixed; inset: 0; background: rgba(12, 17, 23, 0.4); backdrop-filter: blur(2px); z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--surface); z-index: 21; overflow-y: auto; border-left: 1px solid var(--rule); box-shadow: var(--shadow-pop); }
.drawer .dh { position: sticky; top: 0; background: var(--surface); padding: 16px 22px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 1; }
.drawer .db { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.modal-wrap { position: fixed; inset: 0; z-index: 22; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal { pointer-events: auto; width: min(560px, 100%); max-height: min(86vh, 860px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-pop); border: 1px solid var(--rule); overflow: hidden; }
.modal.wide { width: min(860px, 100%); }
.modal .mh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; }
.modal .mh p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.modal .mb { padding: 4px 24px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.modal .mb.flush { padding: 0; }
.modal .mf { display: flex; justify-content: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--rule); background: var(--surface); }
.modal .mf button { min-width: 160px; padding: 10px 18px; }
.modal .mtabs { padding: 0 24px 12px; }
.modal .pane[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .drawer { animation: slide 180ms ease-out; }
  @keyframes slide { from { transform: translateX(24px); opacity: 0.6; } }
  .modal { animation: rise 160ms ease-out; }
  @keyframes rise { from { transform: translateY(10px) scale(0.985); opacity: 0; } }
}

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; z-index: 80; font-weight: 560; box-shadow: var(--shadow-pop); max-width: 90vw; }
.toast.bad { background: var(--bad); color: #fff; }

.md h1, .md h2, .md h3 { margin: 14px 0 6px; }
.md p, .md ul { margin: 0 0 8px; }
.md ul { padding-left: 20px; }

svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
svg.chart .grid { stroke: var(--rule); }
svg.chart .line { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; }
svg.chart .base { stroke: var(--ink); stroke-dasharray: 3 3; opacity: 0.4; }

/* ---------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; border-radius: 20px; box-shadow: var(--shadow); }

/* ---------- setup banner */
.banner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); box-shadow: var(--shadow-xs); }
.banner .grow { flex: 1; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 0; }
.steps .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; flex: none; color: #fff; }
.steps li.done .tick { background: var(--hit); border-color: var(--hit); }
.steps li.done span { color: var(--faint); }
.steps li a { flex: 1; color: var(--ink); font-weight: 580; }
.steps li .go { color: var(--faint); }

/* ---------- composer */
.composer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 24px; align-items: start; }
.cmp-main { display: flex; flex-direction: column; gap: 18px; }
.cmp-main select[name='project'] { min-width: 160px; }
.cmp-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.label { font-weight: 620; font-size: 13px; margin-bottom: 8px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { border-radius: 999px; padding: 6px 13px; font-weight: 540; }
.achip[aria-pressed='true'] { border-color: var(--signal); background: var(--signal-soft); }
.achip:disabled { opacity: 0.4; }
textarea.caption { width: 100%; font-size: 15px; min-height: 160px; }
.fields.five { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cmp-actions { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cmp-actions input { width: 100%; }
.grow { flex: 1; }
button.grow { justify-content: center; }
.drop { padding: 14px; }

.pv-wrap { display: flex; justify-content: center; }
.pv-empty { width: 100%; padding: 60px 16px; text-align: center; color: var(--faint); border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-m); }
.pv { width: 100%; max-width: 300px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.pv.vertical .pv-media { position: relative; aspect-ratio: 9 / 16; background: #0d1117; }
.pv-media img, .pv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-media.square { aspect-ratio: 1; background: var(--sunk); }
.pv-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 14px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); font-size: 12.5px; }
.pv-overlay p { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.pv-nomedia { display: grid; place-items: center; height: 100%; color: #8a95a3; font-size: 13px; }
.pv-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.pv-avatar { width: 26px; height: 26px; border-radius: 50%; }
.pv-text { padding: 0 12px 12px; white-space: pre-wrap; font-size: 13px; max-height: 12em; overflow: hidden; }

.cal .dtop { display: flex; justify-content: space-between; align-items: center; }
.cal .add { visibility: hidden; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--signal); font-weight: 700; }
.cal .day:hover .add, .cal .add:focus-visible { visibility: visible; background: var(--signal-soft); text-decoration: none; }

/* ---------- leave, reviews, website */
.leave { display: flex; flex-direction: column; gap: 2px; }
.lrow { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 44px 36px 64px 70px; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: none; font-weight: 400; }
.lrow:hover, .lrow.on { background: var(--sunk); }
.lrow.on .lname { font-weight: 700; }
.ltrack { height: 8px; border-radius: 4px; background: var(--sunk-2); overflow: hidden; }
.lfill { display: block; height: 100%; border-radius: 4px; background: var(--signal); }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.notes li { padding: 12px 0; border-top: 1px solid var(--rule); }
.notes li:first-child { border-top: 0; }
.notes p { margin: 0 0 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.kpi .kv { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 2px; }
svg.chart .line.alt { stroke: var(--hit); }
.legend i.sw { width: 14px; height: 3px; border-radius: 2px; background: var(--signal); display: inline-block; }
.legend i.sw.alt { background: var(--hit); }
.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.insights a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 9px 12px; border-left: 3px solid var(--faint); border-radius: 0 10px 10px 0; color: inherit; text-decoration: none; }
.insights a:hover { background: var(--sunk); }
.insights .ia { font-size: 12px; color: var(--muted); padding-top: 1px; }
.insights .bad a { border-color: var(--bad); }
.insights .warn a { border-color: var(--warn); }
.insights .good a { border-color: var(--hit); }
.insights .info a { border-color: var(--signal); }
.opps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.stars { color: var(--warn); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--rule-strong); }
.lrow.stars-row { grid-template-columns: 90px 1fr 44px; }

/* ---------- mobile */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; z-index: 30; width: 250px; transform: translateX(-100%); transition: transform 160ms; box-shadow: var(--shadow-pop); }
  .nav.open { transform: none; }
  .menu-btn { display: inline-flex; position: fixed; top: 12px; left: 12px; z-index: 31; }
  .main { padding: 62px 16px 48px; }
  .grid2, .grid3, .split, .composer { grid-template-columns: minmax(0, 1fr); }
  .cmp-side { position: static; }
  .divided { grid-auto-flow: row; }
  .divided > * { border-left: 0; border-top: 1px solid var(--rule); }
  .divided > *:first-child { border-top: 0; }
  .qitem { grid-template-columns: 1fr; }
  .qitem .acts { justify-content: flex-start; }
  .fstep { grid-template-columns: 110px 1fr 70px; }
  .fstep .rate { display: none; }
  .cal { grid-template-columns: 1fr; }
  .cal .dh { display: none; }
  .cal .day { min-height: 0; }
  .cal .day:not(:has(.ev)) { display: none; }
  .modal-wrap { padding: 0; place-items: end center; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
}
@media (max-width: 640px) {
  .lrow { grid-template-columns: 1fr 44px 64px; }
  .lrow .ltrack, .lrow > :nth-child(4), .lrow > :nth-child(6) { display: none; }
  .insights a { grid-template-columns: 1fr; gap: 2px; }
  .lrow.stars-row .ltrack { display: block; }
  .clip { max-width: 190px; }
  .fields.two { grid-template-columns: 1fr; }
}
.shell > *, .split > *, .grid2 > *, .grid3 > *, .stack > * { min-width: 0; }

/* ---------- additions */
.panel > .pb.flush { padding: 0; }
.nav .newpost:hover { background: var(--signal-ink); color: #fff; }
.avatar.neutral { background: var(--sunk-2); color: var(--ink); }
button.solid-bad { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: none; }
button.solid-bad:hover { background: var(--bad); filter: brightness(1.08); border-color: var(--bad); }
.pop a.mi { color: var(--ink); text-decoration: none; }
.pop .mi { font-size: 13px; }
.ph select, .ph input, .page-head select, .page-head input, form.row select, form.row input { padding: 6px 30px 6px 11px; font-size: 13px; font-weight: 560; border-radius: 9px; }
.ph input, .page-head input, form.row input { padding-right: 11px; }
.panel details.sub > summary { list-style: none; border-top: 1px solid var(--rule); }
.panel details.sub > summary::-webkit-details-marker { display: none; }
.panel details.sub .chev { transition: transform 150ms; color: var(--faint); }
.panel details.sub[open] .chev { transform: rotate(180deg); }
.panel details.sub[open] > summary { background: var(--sunk); }
.stack > .seg { align-self: flex-start; }

/* ---------- pass 2 */
#view:focus, .main:focus, [tabindex='-1']:focus { outline: none; }
.num .zero, .zero { color: var(--faint); font-weight: 500; }
label.inl { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.funnel .fhead { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); font-weight: 650; padding-bottom: 4px; }
.funnel .fhead .rate { color: var(--faint); font-size: 11px; }

.cal .ev { color: var(--ink); }
.cal .ev.published { opacity: 1; background: var(--sunk-2); }
.cal .ev .faint, .cal .ev .muted { color: var(--muted); }
.split .tablewrap td.clip { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .hide-m { display: none; }
  .nav { padding-top: 64px; }
}
@media (prefers-color-scheme: dark) { .brand img { filter: invert(1) brightness(1.1); } }
@media (max-width: 640px) { .clip { max-width: 150px; } }

/* in-place navigation: keep the page, dim it, show a thin bar */
#view { transition: opacity .15s ease; }
body.busy #view { opacity: .55; pointer-events: none; }
body.busy::before { content: ''; position: fixed; top: 0; left: 0; height: 2px; width: 40%; z-index: 99; background: var(--signal); animation: busybar 1s ease-in-out infinite; }
@keyframes busybar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- posts table: thumbnails, per-1k columns, heat shading */
.thumb { display: block; flex: none; object-fit: cover; border-radius: 6px; background: var(--sunk-2); box-shadow: 0 0 0 1px var(--rule); }
.thumb.ph { display: grid; place-items: center; }
.postcell { max-width: 300px; }
.drawer.wide svg.chart { max-height: 220px; }
.postcell .clip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
th .per1k { margin-left: 3px; font-weight: 500; color: var(--faint); font-size: 11px; }
td.heat { font-variant-numeric: tabular-nums; }
td.heat.h1 { background: color-mix(in srgb, var(--hit) 6%, transparent); }
td.heat.h2 { background: color-mix(in srgb, var(--hit) 13%, transparent); }
td.heat.h3 { background: color-mix(in srgb, var(--hit) 22%, transparent); font-weight: 600; }
td.heat.h4 { background: color-mix(in srgb, var(--hit) 34%, transparent); font-weight: 700; }

/* ---------- post detail */
.drawer.wide { width: min(900px, 100vw); }
.pd-top { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.pd-preview .thumb, .pd-preview .thumb.ph { width: 150px !important; height: 188px !important; border-radius: 12px; }
.pd-preview .thumb.ph .pmark { width: 40px; height: 40px; border-radius: 10px; }
.pd-preview .thumb.ph .pmark svg { width: 22px; height: 22px; }
.pd-caption { white-space: pre-wrap; max-height: 9.5em; overflow: auto; margin: 10px 0; color: var(--muted); }
.why { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--rule); }
.why.up { background: var(--hit-soft); border-color: color-mix(in srgb, var(--hit) 30%, transparent); }
.why.down { background: color-mix(in srgb, var(--bad) 8%, transparent); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; }
.pstat { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pstat .small { white-space: nowrap; }
.pstat b { display: block; font-size: 16px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pstat .si { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sunk-2); color: var(--muted); flex: none; }
.pstat .si .i { width: 15px; height: 15px; }
.effs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eff { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; }
.eff .ev-num { font-size: 20px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.vs { font-size: 12px; color: var(--muted); }
.vs.up { color: var(--hit); font-weight: 600; }
.vs.down { color: var(--bad); font-weight: 600; }
.chart .w48 { fill: var(--signal-soft); opacity: .6; }
.pfunnel { display: flex; flex-direction: column; gap: 8px; }
.pf-row { display: grid; grid-template-columns: 110px 1fr 150px; gap: 10px; align-items: center; }
.pf-bar { height: 10px; border-radius: 6px; background: var(--sunk-2); overflow: hidden; }
.pf-bar span { display: block; height: 100%; background: var(--signal); border-radius: 6px; }
@media (max-width: 700px) {
  .pd-top { grid-template-columns: 1fr; }
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .effs { grid-template-columns: 1fr; }
  .pf-row { grid-template-columns: 90px 1fr 110px; }
}
/* the floating Menu button must sit under open drawers and dialogs */
body:has(.scrim) .menu-btn { display: none; }
/* wide data tables: let long headers wrap and tighten cells so the last column is not cut off */
table.dense th { white-space: normal; line-height: 1.25; vertical-align: bottom; padding: 10px 10px; }
table.dense td { padding: 10px 10px; }
table.dense th:first-child, table.dense td:first-child { padding-left: 20px; }
table.dense th:last-child, table.dense td:last-child { padding-right: 20px; }
table.dense .signal { grid-template-columns: 72px 38px; min-width: 118px; }
table.dense .tagchips, table.dense td.hide-m .chip { white-space: nowrap; }

/* ============================================================ calendar v2 */
.cal-panel { overflow: hidden; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.cal-title { font-size: 18px; margin: 0 0 0 6px; white-space: nowrap; }
.seg .prev .i { transform: rotate(180deg); }
.tzpick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.tzpick .i { width: 16px; height: 16px; }
.cal-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--rule); background: var(--sunk); }
.sumchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); font-size: 12.5px; }
.sumchip .pmark { width: 16px; height: 16px; border-radius: 5px; }
.sumchip .pmark svg { width: 10px; height: 10px; }
.cstat { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.cstat.warn { background: var(--warn-soft); color: var(--warn); }
.cstat.bad { background: var(--bad-soft); color: var(--bad); }
.cstat.sched { background: var(--signal-soft); color: var(--signal-ink); }
.cstat:not(.warn):not(.bad):not(.sched) { background: var(--sunk-2); color: var(--muted); }
.lstack { display: inline-flex; }
.lstack .applogo { box-shadow: 0 0 0 2px var(--surface); }
.lstack .applogo + .applogo { margin-left: -6px; }
.lmore { font-size: 11px; color: var(--muted); margin-left: 3px; align-self: center; }

/* event chip (month and week) */
.evc { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding: 3px 6px; border: 0; border-radius: 7px; background: var(--sunk); color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; border-left: 3px solid var(--rule-strong); }
.evc:hover { background: var(--sunk-2); }
.evc .where .pmark { width: 14px; height: 14px; border-radius: 4px; margin-left: -9px; margin-top: 9px; }
.evc .where .pmark svg { width: 8px; height: 8px; }
.evc .evt { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.evc .evcap { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.evc.scheduled { border-left-color: var(--signal); }
.evc.pending_approval { border-left-color: var(--warn); background: var(--warn-soft); }
.evc.failed { border-left-color: var(--bad); background: var(--bad-soft); }
.evc.draft { border-left-style: dashed; }

/* month */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mdh { padding: 8px 10px; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--rule); background: var(--sunk); }
.mday { min-height: 124px; padding: 6px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; }
.mday:nth-child(7n + 7) { border-right: 0; }
.mday:hover { background: color-mix(in srgb, var(--signal-soft) 45%, transparent); }
.mday.out { background: var(--sunk); }
.mday.out .d { color: var(--faint); }
.mtop { display: flex; align-items: center; gap: 6px; }
.mtop .d { font-size: 12.5px; font-weight: 650; }
.mday.today .d { color: #fff; background: var(--signal); border-radius: 10px; padding: 0 7px; }
.mcount { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--surface); }
.mtop .add { margin-left: auto; visibility: hidden; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--signal); font-weight: 700; }
.mcount + .add { margin-left: 0; }
.mcount.few { display: none; }
.mday:hover .add { visibility: visible; background: var(--signal-soft); text-decoration: none; }
.mapps { display: flex; flex-direction: column; gap: 3px; }
.mapp { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.mapp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mapp b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mplats { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; }
.mplat { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mplat .pmark { width: 14px; height: 14px; border-radius: 4px; }
.mplat .pmark svg { width: 8px; height: 8px; }
.mstat { display: flex; flex-wrap: wrap; gap: 4px; }
.mstat:empty { display: none; }

/* week */
.week { overflow-x: auto; }
.wrow { display: grid; grid-template-columns: 64px repeat(7, minmax(110px, 1fr)); min-width: 840px; }
.whead { border-bottom: 1px solid var(--rule); background: var(--sunk); position: sticky; top: 0; z-index: 1; }
.wdh { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; border: 0; border-left: 1px solid var(--rule); background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.wdh:hover { background: var(--sunk-2); }
.wdh.today b { color: #fff; background: var(--signal); border-radius: 10px; padding: 0 7px; }
.wdcount { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.wscroll { max-height: min(68vh, 760px); overflow-y: auto; min-width: 840px; }
.wtime { padding: 4px 8px 0 0; text-align: right; font-size: 11px; color: var(--faint); white-space: nowrap; }
.wcell { --heat: 0; min-height: 52px; padding: 3px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0;
  background: color-mix(in srgb, var(--hit) calc(var(--heat) * var(--heat) * var(--heat) * 42%), transparent); }
.wcell:hover { box-shadow: inset 0 0 0 1px var(--signal); }
.wclus { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 6px; border: 0; border-radius: 7px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; text-align: left; }
.wclus:hover { box-shadow: 0 0 0 1px var(--signal); }
.bestpin { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 11px; font-weight: 650; color: var(--hit); padding: 1px 6px; border-radius: 999px; background: var(--hit-soft); white-space: nowrap; }
.bestpin .i { width: 11px; height: 11px; }
.bestpin:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--hit); }
.bestpin.wide { font-size: 12.5px; padding: 6px 10px; border-radius: 9px; gap: 6px; white-space: normal; }
.bestpin .plus { margin-left: 8px; color: var(--signal); }

/* day */
.dayv { display: flex; flex-direction: column; }
.bestbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.bestbar .i { width: 13px; height: 13px; vertical-align: -2px; color: var(--hit); }
.bestchip { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 9px; background: var(--hit-soft); color: var(--ink); line-height: 1.25; font-size: 12.5px; }
.bestchip:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--hit); }
.bestchip.sm { flex-direction: row; padding: 2px 8px; font-size: 12px; }
.dempty { padding: 6px 20px 6px 96px; font-size: 12px; color: var(--muted); border-bottom: 1px dashed var(--rule); }
.dhour { display: grid; grid-template-columns: 96px 1fr; border-bottom: 1px solid var(--rule); }
.dhour.focus { background: color-mix(in srgb, var(--signal-soft) 50%, transparent); }
.dhl { padding: 12px 10px 12px 20px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.heatdot { --heat: 0; width: 26px; height: 5px; border-radius: 3px; margin-top: 4px; background: color-mix(in srgb, var(--hit) calc(var(--heat) * 100%), var(--sunk-2)); }
.dbody { padding: 10px 20px 12px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.dcard { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 0; border-radius: 10px; background: var(--sunk); font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; border-left: 3px solid var(--rule-strong); }
.dcard:hover { background: var(--sunk-2); }
.dcard.scheduled { border-left-color: var(--signal); }
.dcard.pending_approval { border-left-color: var(--warn); }
.dcard.failed { border-left-color: var(--bad); }
.dcard .thumb.ph .pmark { width: 18px; height: 18px; }
.dcm { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dcm .where .pmark { width: 14px; height: 14px; border-radius: 4px; margin-left: -9px; margin-top: 9px; }
.dcm .where .pmark svg { width: 8px; height: 8px; }
.dcap { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dmore { align-self: center; justify-self: start; }

/* heat map */
.heatwrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 24px; padding: 16px 20px 20px; align-items: start; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; }
.hx { font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: visible; }
.hy { font-size: 11.5px; color: var(--muted); align-self: center; }
.hc { --heat: 0; aspect-ratio: 1 / 1; border-radius: 4px; background: color-mix(in srgb, var(--hit) calc(var(--heat) * var(--heat) * 100%), var(--sunk-2)); }
.hlegend { display: inline-block; width: 80px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--sunk-2), var(--hit)); }
.slots { display: flex; flex-direction: column; gap: 6px; }
.srow { display: grid; grid-template-columns: 34px repeat(3, auto); justify-content: start; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .heatwrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cal-bar { padding: 12px 14px; }
  .cal-bar > .row:first-child { flex-wrap: wrap; }
  .cal-title { white-space: normal; font-size: 16px; margin: 4px 0 0; flex-basis: 100%; }
  .mday { min-height: 74px; padding: 4px; }
  .mday .evc, .mday .mapps, .mday .mstat { display: none; }
  .mday.has::after { content: ''; }
  .mday .mplats { display: none; }
  .mday { min-height: 56px; }
  .mcount { margin-left: 0; }
  .mcount.few { display: inline-block; }
  .mtop { flex-wrap: wrap; }
  .dhour { grid-template-columns: 70px 1fr; }
  .dhl { padding-left: 14px; }
  .dempty { padding-left: 70px; }
  .dbody { padding-right: 14px; }
  .dcards { grid-template-columns: 1fr; }
  .heat { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .hx { font-size: 0; }
  .hx:nth-child(7n + 2) { font-size: 9px; }
}

/* ============================================================ post check */
.checkgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.checkside { position: sticky; top: 16px; }
.pb-body { padding: 16px 20px 20px; }
.acclist { display: flex; flex-direction: column; gap: 10px; }
.accgroup { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; }
.accapp { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.accbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.accbtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.accbtn:hover { border-color: var(--rule-strong); }
.accbtn[aria-selected='true'] { border-color: var(--signal); background: var(--signal-soft); box-shadow: 0 0 0 1px var(--signal); font-weight: 600; }
.accbtn .pmark { width: 18px; height: 18px; border-radius: 5px; }
.accbtn .pmark svg { width: 11px; height: 11px; }
.acccard { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--sunk); display: flex; flex-direction: column; gap: 14px; }
.acccard .where .pmark { margin-left: -14px; margin-top: 16px; width: 18px; height: 18px; }
.stagetrack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stagetrack .st { position: relative; padding-top: 10px; font-size: 11.5px; color: var(--faint); }
.stagetrack .st::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--rule-strong); }
.stagetrack .st.done::before { background: color-mix(in srgb, var(--hit) 55%, transparent); }
.stagetrack .st.on::before { background: var(--hit); }
.stagetrack .st.on { color: var(--ink); font-weight: 650; }
.acckpi { display: flex; flex-direction: column; gap: 6px; }
.acckpi .kpi { font-size: 22px; }
.kbar { height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.kbar span { display: block; height: 100%; background: var(--hit); border-radius: 3px; }
.cstat.ok { background: var(--hit-soft); color: var(--hit); }
.cfield { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cfield input, .cfield textarea { font-weight: 400; color: var(--ink); }
.cfield textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.capmeta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 400; }
.tpls { display: inline-flex; gap: 8px; align-items: center; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--signal); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.switches { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.switchrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.switchrow + .switchrow { border-top: 1px solid var(--rule); }
.switchrow > span:first-child { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.switch { position: relative; flex: none; width: 40px; height: 24px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch .knob { position: absolute; inset: 0; border-radius: 999px; background: var(--rule-strong); transition: background .15s; pointer-events: none; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .knob { background: var(--hit); }
.switch input:checked + .knob::after { transform: translateX(16px); }
.switch input:focus-visible + .knob { box-shadow: 0 0 0 3px var(--signal-soft); }
.cres { display: flex; flex-direction: column; gap: 14px; }
.cres.idle { padding: 24px 8px; text-align: center; }
.cres.idle p { margin: 4px 0 0; }
.cverdict { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; }
.cres.go .cverdict { background: var(--hit-soft); }
.cres.fix .cverdict { background: var(--bad-soft); }
.cvt { font-size: 18px; font-weight: 700; }
.cres.go .cvt { color: var(--hit); }
.cres.fix .cvt { color: var(--bad); }
.scorering { position: relative; flex: none; width: 54px; height: 54px; display: grid; place-items: center; }
.scorering svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.scorering circle { fill: none; stroke-width: 5; }
.scorering .rt { stroke: color-mix(in srgb, var(--ink) 10%, transparent); }
.scorering .rv { stroke: var(--hit); stroke-linecap: round; }
.cres.fix .scorering .rv { stroke: var(--bad); }
.scorering b { position: relative; font-size: 15px; }
.cgroup { display: flex; flex-direction: column; gap: 6px; }
.cgh { display: flex; align-items: center; gap: 8px; font-size: 13.5px; list-style: none; }
details.cgroup .cgh { cursor: pointer; }
details.cgroup .cgh::-webkit-details-marker { display: none; }
.cdot { width: 8px; height: 8px; border-radius: 50%; }
.cgroup.bad .cdot { background: var(--bad); }
.cgroup.warn .cdot { background: var(--warn); }
.cgroup.good .cdot { background: var(--hit); }
.cgroup ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.cgroup.good ul { color: var(--muted); }
.pb-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.pb-kpis > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--sunk); }
.pb-kpis b { font-size: 16px; }
.pb-lists { display: grid; gap: 14px; }
.pb-lists ul { margin: 6px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.pb-do li::marker { color: var(--hit); }
.pb-dont li::marker { color: var(--bad); }
@media (max-width: 980px) {
  .checkgrid { grid-template-columns: 1fr; }
  .checkside { position: static; }
}
@media (max-width: 700px) {
  .accgroup { grid-template-columns: 1fr; gap: 6px; }
  .pb-body { padding: 14px; }
  .pb-kpis { grid-template-columns: 1fr; }
}

/* connections: which channels each login reaches */
.reach { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.reachi { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); }
.reachi .where .pmark { width: 13px; height: 13px; border-radius: 4px; margin-left: -9px; margin-top: 9px; }
.reachi .where .pmark svg { width: 8px; height: 8px; }
.reachlist { display: flex; flex-direction: column; gap: 8px; }
.reachrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); }
.reachrow .where .pmark { margin-left: -12px; margin-top: 12px; width: 16px; height: 16px; }
.provmark .pmark { width: 30px; height: 30px; border-radius: 8px; }
.provmark .pmark svg { width: 17px; height: 17px; }

.panel .ph > .row.small.muted { flex-wrap: nowrap; white-space: nowrap; }

/* ---------- insights: traffic bar, followers, comments, revenue */
.tbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--sunk-2); }
.tbar span { display: block; height: 100%; }
.tlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.tlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.fgrid .where .pmark { margin-left: -12px; margin-top: 12px; width: 16px; height: 16px; }
.gain { font-weight: 700; font-size: 15px; }
.gain.up { color: var(--hit); }
.gain.down { color: var(--bad); }
svg.chart .pmarkbar { fill: var(--signal); opacity: .55; }
.ckind { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; background: var(--sunk-2); color: var(--muted); white-space: nowrap; }
.ckind.question { background: var(--signal-soft); color: var(--signal-ink); }
.ckind.objection { background: var(--bad-soft); color: var(--bad); }
.ckind.request { background: var(--warn-soft); color: var(--warn); }
.ckind.praise { background: var(--hit-soft); color: var(--hit); }
.rbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-width: 180px; }
.rbar span { display: block; height: 8px; border-radius: 4px; background: var(--hit); }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr; } .fields.three { grid-template-columns: 1fr; } }

.pvrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; }

/* ---------- Growth page: tiles with vs-last-period pills, one row per channel, detail on tap */
.gh-filters { display: flex; flex-direction: column; gap: 10px; margin-top: -8px; }
.gh-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.gh-chips::-webkit-scrollbar { display: none; }
.gh-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--muted); font-weight: 560; font-size: 13px; white-space: nowrap; box-shadow: none; cursor: pointer; }
.gh-chip:hover { color: var(--ink); border-color: var(--rule-strong); background: var(--surface); }
.gh-chip[aria-pressed='true'] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.gh-chip[aria-pressed='true'] .pmark { box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.gh-chip .applogo { border-radius: 5px; }

.gh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.gh-tile { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-xs); min-width: 0; }
.gh-tl { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 560; }
.gh-i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--rule-strong); color: var(--faint); font-size: 10px; font-weight: 700; font-style: italic; cursor: help; }
.gh-tv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gh-ts { color: var(--faint); font-size: 12px; min-height: 18px; }
.gh-tile .gh-spark { margin-top: 6px; width: 100%; height: 30px; }

.gh-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: 0; background: var(--sunk-2); color: var(--muted); white-space: nowrap; line-height: 1.6; }
.gh-pill.up { background: var(--hit-soft); color: var(--hit); }
.gh-pill.down { background: var(--bad-soft); color: var(--bad); }
.gh-pill.none { background: transparent; color: var(--faint); font-weight: 500; padding: 0; }
.gh-num { font-weight: 650; }
.gh-num.up { color: var(--hit); }
.gh-num.down { color: var(--bad); }
.gh-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

.gh-spark .l { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.gh-spark .a { fill: var(--signal-soft); opacity: .8; }
.gh-spark.none { display: inline-block; width: 84px; height: 2px; background: var(--rule); border-radius: 2px; vertical-align: middle; }

.gh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hit); flex: none; }
.gh-dot.warn { background: var(--warn); }
.gh-dot.bad { background: var(--bad); }

.gh-attn { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: var(--radius-l); padding: 12px 16px; }
.gh-attn > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; flex-wrap: wrap; }
.gh-attn > summary::-webkit-details-marker { display: none; }
.gh-attn-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 12px; font-weight: 700; }
.gh-attn ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gh-attn li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.gh-attn .gh-fix { margin-left: auto; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); }
.gh-alert { border-radius: var(--radius-m); padding: 10px 14px; font-size: 13px; background: var(--warn-soft); }
.gh-alert.bad { background: var(--bad-soft); }

.gh-channels td { vertical-align: middle; }
.gh-channels tbody tr.click { cursor: pointer; transition: background 120ms; }
.gh-channels tbody tr.click:hover, .gh-channels tbody tr.click:focus-visible { background: var(--sunk); }
.gh-channels td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.gh-channels tbody tr.click:hover td:first-child { background: var(--sunk); }
.gh-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gh-who b { font-weight: 650; }
.gh-who span { color: var(--faint); font-size: 12px; }
.gh-live { margin-left: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--signal-ink); background: var(--signal-soft); padding: 1px 6px; border-radius: 999px; }

.gh-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 4px 20px 20px; }
.gh-app { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-m); border: 1px solid var(--rule); background: var(--sunk); box-shadow: none; color: var(--ink); cursor: pointer; font: inherit; }
.gh-app:hover { border-color: var(--rule-strong); background: var(--surface); }
.gh-app .gh-tv { font-size: 22px; }
.gh-app .gh-spark { width: 100%; }

.gh-bars { display: flex; align-items: stretch; gap: 6px; height: 170px; padding-top: 6px; overflow-x: auto; }
.gh-bar { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 34px; }
.gh-bar .v { font-size: 11px; font-weight: 650; color: var(--muted); height: 15px; }
.gh-bar .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--rule); }
.gh-bar .col i { display: block; width: 70%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: var(--signal); }
.gh-bar .col i.neg { background: var(--bad); }
.gh-bar.partial .col i { background: repeating-linear-gradient(135deg, var(--signal) 0 4px, color-mix(in srgb, var(--signal) 55%, transparent) 4px 8px); }
.gh-bar .k { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.gh-more { margin-top: 14px; }
.gh-more > summary { cursor: pointer; color: var(--signal); font-weight: 600; font-size: 13px; }
.gh-more .tablewrap { margin-top: 10px; }

.gh-help > summary { cursor: pointer; padding: 14px 20px; list-style: none; }
.gh-help > summary::-webkit-details-marker { display: none; }
.gh-help dl { margin: 0; padding: 0 20px 18px; display: grid; grid-template-columns: minmax(130px, 180px) 1fr; gap: 8px 16px; font-size: 13px; }
.gh-help dt { font-weight: 650; }
.gh-help dd { margin: 0; color: var(--muted); }

.gh-back { font-weight: 600; font-size: 13px; }
.gh-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.gh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.gh-posts { display: flex; flex-direction: column; gap: 8px; }
.gh-post { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 10px; border-radius: var(--radius-m); border: 1px solid var(--rule); background: var(--surface); box-shadow: none; color: var(--ink); font: inherit; cursor: pointer; width: 100%; }
.gh-post:hover { background: var(--sunk); border-color: var(--rule-strong); }
.gh-pbody { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gh-ptitle { font-weight: 600; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-pmeta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--muted); align-items: center; }

@media (max-width: 720px) {
  .gh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gh-tile { padding: 12px; }
  .gh-tv { font-size: 21px; }
  .gh-help dl { grid-template-columns: 1fr; }
  .gh-help dd { margin-bottom: 6px; }
  .gh-channels .gh-who span { display: none; }
}

.gh-quiet { padding: 4px 20px 16px; }
.gh-quiet .gh-chips { margin-top: 10px; }
.gh-tile .gh-spark { display: block; }

/* Business page (2026-11-25) */
.bhealth { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bhealth .chip.stale { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.bfunnel .bstack { position: relative; height: 22px; }
.bfunnel .bstack .bar { position: absolute; left: 0; top: 0; }
.bfunnel .bprev { position: absolute; left: 0; top: 0; height: 22px; border: 1.5px dashed var(--rule-strong); border-radius: 6px; box-sizing: border-box; }
.bfunnel .fstep { grid-template-columns: 150px 1fr 64px 92px; }
.delta.flat { color: var(--faint); }
table.btrend td.partial, table.btrend th.partial { color: var(--muted); background: var(--sunk); }
.bnotes { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 760px) { .bfunnel .fstep { grid-template-columns: 110px 1fr 56px; } }
