/* Blossom NC Command Center v5: bright, calm, and decision-first. */
:root {
    color-scheme: light;
    --bg: #f4f8fc;
    --card: #ffffff;
    --card-2: #f7faff;
    --ink: #10263d;
    --ink-2: #486078;
    --ink-3: #74879b;
    --ink-4: #5e7185;
    --line: #dbe6f0;
    --line-2: #edf3f8;
    --line-strong: #bfd0df;
    --accent: #1769e0;
    --accent-2: #00a7c7;
    --blue: #1769e0;
    --cyan: #00a7c7;
    --mint: #00a889;
    --rose: #e14f72;
    --good: #008c70;
    --warn: #b66d08;
    --bad: #cc3653;
    --gold: #b88710;
    --orchid: #6575c8;
    --hot: #fff2f5;
    --warm: #fff8ea;
    --top: #ffffff;
    --top-ink: #10263d;
    --brand: #1769e0;
    --r: 7px;
    --display: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
    --rail: #102a48;
    --rail-2: #173959;
    --rail-text: #dcecff;
    --rail-muted: #8faccc;
    --shadow: 0 14px 32px rgba(30, 70, 110, .07);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
body::before { display: none; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); letter-spacing: 0; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 21px; line-height: 1.2; }
h3 { font-size: 16px; line-height: 1.25; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Application shell */
.shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--rail);
  border-right: 1px solid #244767;
  color: var(--rail-text);
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
}
.rail-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 7px;
  background: #fff;
  color: var(--accent);
  font: 800 20px/1 var(--display);
}
.rail-brand b,
.rail-brand small { display: block; }
.rail-brand b { font-size: 16px; }
.rail-brand small { margin-top: 1px; color: var(--rail-muted); font-size: 11px; }
.rail .tabs {
  position: static;
  z-index: auto;
  display: block;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 11px 9px 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.rail .tabs .nav-label {
  display: block;
  padding: 14px 10px 6px;
  color: var(--rail-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.rail .tabs a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 39px;
  margin: 2px 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c9dcf0;
  font-size: 12.5px;
  text-decoration: none;
}
.rail .tabs a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.rail .tabs a.on {
  background: #edf6ff;
  border-color: #edf6ff;
  color: #12375b;
  font-weight: 750;
}
.nav-glyph {
  color: var(--rail-muted);
  font: 700 9px/1 var(--display);
}
.rail .tabs a.on .nav-glyph { color: var(--accent); }
.rail .pill {
  min-width: 20px;
  padding: 1px 5px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  color: #dbeaf8;
  font-size: 10px;
}
.rail .tabs a.on .pill { background: #d8eaff; color: #155ab4; }
.rail .tabs .pill.warn { background: #d94a68; color: #fff; }
.rail-foot {
  padding: 14px 18px 17px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.rail-foot span,
.rail-foot small { display: block; }
.rail-foot small { margin-top: 4px; color: var(--rail-muted); font-size: 10px; }
.rail-live { color: #e7f4ff; font-size: 11px; font-weight: 700; }
.rail-live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #4fe0bf;
  box-shadow: 0 0 0 3px rgba(79, 224, 191, .14);
}
.workspace { min-width: 0; }
.top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 9px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  box-shadow: 0 5px 22px rgba(32, 77, 115, .05);
}
.page-context {
  display: grid;
  gap: 1px;
  min-width: 150px;
}
.page-context span { color: var(--ink-3); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.page-context b { font-size: 15px; line-height: 1.2; }
.topright { margin-left: auto; flex-wrap: nowrap; }
.search-wrap { position: relative; }
.gsearch {
  width: 235px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card-2);
  color: var(--ink);
}
.gsearch::placeholder { color: var(--ink-3); }
.stamp {
  max-width: 230px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stamp.bad { color: var(--bad); }
.btn,
.card .btn,
.note .btn,
.tblbar .btn,
.errbox .btn,
.dialog .btn,
.growthhead .btn,
.growthview .btn {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}
.btn:hover,
.card .btn:hover,
.growthview .btn:hover { border-color: #8fb8e7; background: #f0f7ff; }
.btn.dark,
.card .btn.dark,
.note .btn.dark,
.dialog .btn.dark,
.growthhead .btn.dark,
.growthview .btn.dark {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.btn.dark:hover { background: #0f5ecb; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.menu-toggle { display: none; }

main {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px 28px 58px;
}
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 16px;
  padding: 5px 2px 3px;
}
.page-intro h1 { margin-bottom: 5px; }
.page-intro .lede { max-width: 850px; margin: 0; font-size: 13px; }
.intro-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.lede { color: var(--ink-2); }
.fine { color: var(--ink-3); }

/* Core surfaces */
.card {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }
.sectionhead {
  align-items: flex-start;
  margin-bottom: 10px;
}
.sectionhead h2,
.sectionhead h3 { margin-top: 0; }
.sectionhead p { color: var(--ink-2); }
.source-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #c8ddf0;
  border-left: 4px solid var(--cyan);
  border-radius: 7px;
  background: #f7fbff;
  box-shadow: none;
}
.source-cell {
  min-height: 67px;
  padding: 12px 14px;
  border: 0;
  border-left: 1px solid #dce9f4;
  background: transparent;
}
.source-cell:first-child { border-left: 0; }
.source-cell span { color: #6e849a; font-size: 9px; }
.source-cell b { color: var(--ink); font-size: 13px; }
.source-cell em { color: var(--ink-3); font-size: 10px; }
.source-action:hover { background: #eaf5ff; }
.source-action b { color: var(--accent); }

.pulse-card { padding: 0; overflow: hidden; border-color: #c8dbed; }
.pulse-head {
  align-items: center;
  padding: 17px 19px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}
.pulse-head h2 { margin-bottom: 3px; font-size: 22px; }
.pulse-head p { font-size: 12px; }
.journey-snapshot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}
.journey-metric {
  position: relative;
  min-height: 155px;
  padding: 17px 18px 15px;
  border: 0;
  border-left: 1px solid var(--line);
  border-bottom: 3px solid var(--cyan);
  background: #fff;
}
.journey-metric::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 55px;
  right: -7px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
}
.journey-metric:last-child::after { display: none; }
.journey-metric:hover { background: #f4f9ff; }
.journey-metric:hover::after { background: #f4f9ff; }
.journey-metric.inquiry { border-bottom-color: #5e9dea; }
.journey-metric.qualified { border-bottom-color: var(--cyan); }
.journey-metric.auth { border-bottom-color: #6179cf; }
.journey-metric.active { border-bottom-color: var(--mint); }
.journey-index { color: #91a5b7; }
.journey-label { margin-top: 8px; color: var(--ink-2); font-size: 12px; }
.journey-metric > b { margin: 4px 0 8px; color: var(--ink); font-size: 38px; }
.journey-metric strong { color: var(--accent); font-size: 11.5px; }
.journey-metric em { font-size: 10px; }

.overview-page > .kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  min-height: 103px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-left: 3px solid #75a9e8;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}
.kpi:hover { transform: none; border-color: #a9c8e7; background: #f8fbff; box-shadow: none; }
.kpi[data-kpi="qualified_leads_30"] { border-left-color: var(--cyan); }
.kpi[data-kpi="initial_auth_30"] { border-left-color: #6179cf; }
.kpi[data-kpi="starts_30"] { border-left-color: var(--mint); }
.kpi[data-kpi="median_days_to_start"] { border-left-color: #8aa1b8; }
.kl { color: var(--ink-3); font-size: 9.5px; }
.kv { margin: 4px 0 5px; color: var(--ink); font-size: 26px; }
.ks { color: var(--ink-2); font-size: 10.5px; }
.delta { font-size: 10px; }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
  gap: 14px;
  align-items: start;
}
.overview-side { min-width: 0; }
.analytics-card { min-width: 0; }
.analytics-card .visual-head { margin-bottom: 6px; }
.analytics-card .visual-head h2 { font-size: 22px; }
.analytics-card .overview-executive {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 20px;
}
.analytics-card .overview-executive > section + section { padding-left: 20px; }
.overview-side .card { box-shadow: none; }
.overview-side .sectionhead h2 { font-size: 18px; }
.overview-side .sectionhead p { font-size: 11px; }
.overview-side .exc { margin: 0; padding: 0; list-style: none; }
.overview-side .exc li {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 11.5px;
}
.overview-side .exc li:first-child { border-top: 0; }
.blocker-list { display: grid; gap: 7px; }
.blocker-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 49px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-left: 3px solid #8aa1b8;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.blocker-list button.hot { border-left-color: var(--bad); background: #fff8fa; }
.blocker-list button.warn { border-left-color: #e2a12d; background: #fffdf8; }
.blocker-list button:hover { border-color: #a9c8e7; background: #f3f8fd; }
.blocker-list button > b {
  color: var(--ink);
  font: 750 22px/1 var(--display);
  text-align: center;
}
.blocker-list button span,
.blocker-list button strong,
.blocker-list button em { display: block; min-width: 0; }
.blocker-list button strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.blocker-list button em { margin-top: 2px; color: var(--ink-3); font-size: 9.5px; font-style: normal; }
.clear-state {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid #c9e7df;
  border-radius: 6px;
  background: #f5fcfa;
}
.clear-state b { color: var(--good); font-size: 12px; }
.clear-state span { color: var(--ink-2); font-size: 10.5px; }
.movement-columns { grid-template-columns: 1fr; gap: 14px; }
.movement-columns > section + section { padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.movement-list li { padding: 6px 0; }
.movement-list b { font-size: 11.5px; }
.movement-list span { max-width: 150px; font-size: 9.5px; }

/* Charts */
.chart-frame {
  padding: 8px 0 2px;
  border-top: 0;
  border-bottom: 0;
}
.journey-chart-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
}
.journey-chart-summary > div {
  min-width: 0;
  padding: 8px 10px;
  border-left: 1px solid var(--line);
}
.journey-chart-summary > div:first-child { border-left: 0; }
.journey-chart-summary span,
.journey-chart-summary b,
.journey-chart-summary em { display: block; }
.journey-chart-summary span { color: var(--ink-3); font-size: 8.5px; font-weight: 800; text-transform: uppercase; }
.journey-chart-summary b { margin-top: 2px; font: 750 20px/1 var(--display); }
.journey-chart-summary em { margin-top: 4px; color: var(--ink-3); font-size: 8.5px; font-style: normal; }
.journey-chart-summary em.up { color: var(--good); }
.journey-chart-summary em.down { color: var(--bad); }
.chart-legend {
  justify-content: flex-start;
  gap: 16px;
  min-height: 24px;
  padding: 0 4px;
  color: var(--ink-3);
  font-size: 9.5px;
}
.chart-legend i { height: 2px; border-radius: 0; background: var(--cyan); }
.chart-legend i.inquiries { height: 8px; background: #b9d9f8; }
.chart-legend i.qualified { background: var(--cyan); }
.chart-legend i.initial-auth { background: #667bce; }
.chart-legend i.starts { background: var(--mint); }
.chart-grid line { stroke: #e8eff6; }
.chart-grid text,
.chart-x { fill: #7d91a5; font-size: 9.5px; }
.journey-bar { fill: #78afe8; opacity: .32; }
.journey-current-band { fill: rgba(23, 105, 224, .035); }
.journey-area.qualified { fill: rgba(0, 167, 199, .07); }
.journey-line { stroke-width: 2.4; }
.journey-line.qualified { stroke: var(--cyan); }
.journey-line.initial-auth { stroke: #667bce; }
.journey-line.starts { stroke: var(--mint); }
.journey-point { stroke-width: 2; }
.journey-point.qualified { fill: var(--cyan); }
.journey-point.initial-auth { fill: #667bce; }
.journey-point.starts { fill: var(--mint); }
.chart-end.qualified text { fill: var(--cyan); }
.chart-end.initial-auth text { fill: #586fc4; }
.chart-end.starts text { fill: var(--mint); }
.conversion-path { gap: 11px; }
.conversion-step span { color: var(--ink-2); font-size: 10.5px; }
.conversion-step b { font-size: 22px; }
.conversion-step em,
.conversion-step > strong { font-size: 9px; }
.conversion-track { height: 9px; background: #eef4f8; border-radius: 5px; }
.conversion-track i { border-radius: 5px; background: #71a7e8; }
.conversion-step.s1 .conversion-track i { background: var(--cyan); }
.conversion-step.s2 .conversion-track i { background: #667bce; }
.conversion-step.s3 .conversion-track i { background: var(--mint); }
.aging-legend { justify-content: flex-start; }
.aging-row { padding: 6px 1px; }
.aging-track { height: 9px; border-radius: 5px; }
.aging-volume,
.aging-volume i { border-radius: 5px; }
.aging-volume .ontrack { background: var(--mint); }
.aging-volume .past { background: #efb747; }
.aging-volume .escalated { background: var(--bad); }
.flow-card { padding: 0; overflow: hidden; }
.overview-flow-card { margin-top: 0; }
.flow-head { background: #fbfdff; }
.flow-head h2 { font-size: 23px; }
.flow-section { background: #fff; }
.flow-periods { gap: 8px; }
.flow-period {
  border: 1px solid var(--line);
  border-top: 2px solid #71a7e8;
  border-radius: 6px;
  background: #fbfdff;
}
.flow-period header { min-height: 48px; }
.flow-period header span { color: var(--ink); }
.flow-period > div { padding: 7px 0; }
.flow-period strong.up { color: var(--good); }
.flow-period strong.down { color: var(--bad); }
.metric-switch { border-radius: 6px; background: #eef5fb; }
.metric-switch button { border-radius: 4px; }
.metric-switch button.on { background: var(--accent); }
.trend-stage { border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: #f8fbff; }
.executive-trend { background: #fff; }
.trend-line.s0 { stroke: var(--accent); }
.trend-line.s1 { stroke: var(--cyan); }
.trend-line.s2 { stroke: #667bce; }
.trend-line.s3 { stroke: var(--mint); }

/* Tables and detailed workspaces */
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.panel-grid > .card { min-width: 0; }
table { font-size: 12px; }
th {
  padding: 7px 8px;
  color: #6f8498;
  background: #f6f9fc;
  font-size: 9px;
}
td { padding: 8px; border-top-color: #e7eef5; }
tbody tr:not(.hot):not(.warm):not(.dim):nth-child(even) td { background: #fbfdff; }
tbody tr:hover td { box-shadow: inset 0 0 0 999px rgba(23, 105, 224, .035); }
.tblbar {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfe;
}
.tblbar input,
.tblbar select,
input,
select,
textarea {
  border-color: var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.tag { border-radius: 5px; background: #f1f6fb; }
.tag.ok { background: #e7f7f2; }
.tag.no { background: #fff0f3; }
.bar,
.bar i { border-radius: 5px; }
.bar { background: #eaf1f7; }
.bar i { background: var(--cyan); }
.workforce-chart { border-radius: 6px; background: #f8fbff; }
.distribution-track { border-radius: 5px; background: #e7eff6; }
.distribution-track i { border-radius: 5px; }
.distribution-track i.s0 { background: #61a1e8; }
.distribution-track i.s1 { background: var(--cyan); }
.distribution-track i.s2 { background: #667bce; }
.distribution-track i.s3,
.distribution-track i.s4 { background: var(--rose); }
.lollipop-line i,
.lollipop-line i b { background: var(--cyan); }
.hours-head {
  margin-top: 0;
  border: 1px solid #c8ddf0;
  border-left: 4px solid var(--cyan);
  border-radius: 7px;
  background: #f8fbff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hours-head h2 { color: var(--ink); }
.hours-head p,
.hours-head > div:last-child span { color: var(--ink-2); }
.hours-kpis,
.hours-period,
.hours-rollups article { border-radius: 6px; }
.hours-bar.c51 { fill: var(--accent); }
.hours-bar.c53 { fill: var(--cyan); }
.hours-bar.c55 { fill: #667bce; }
.hours-bar.c56 { fill: var(--mint); }

/* Social studio */
.growthhead {
  align-items: flex-end;
  margin-bottom: 12px;
  padding: 5px 2px 14px;
  border-bottom: 0;
}
.growthhead h2 { color: var(--ink); font-size: 29px; }
.growthhead p { color: var(--ink-2); font-size: 12px; }
.syncstate { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.syncstate b { color: var(--ink-2); }
.growthnav,
.subnav {
  position: sticky;
  top: 62px;
  z-index: 8;
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(248, 251, 255, .97);
  box-shadow: 0 8px 20px rgba(35, 75, 110, .05);
}
.subnav button {
  min-height: 33px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.subnav button:hover { background: #edf5fc; color: var(--ink); }
.subnav button.on { background: var(--accent); color: #fff; }
.subnav button span { border-radius: 4px; }
.privacybar {
  border: 1px solid #c9e7df;
  border-left: 4px solid var(--mint);
  border-radius: 7px;
  background: #f5fcfa;
}
.privacybar .eyebrow { color: var(--good); }
.sourcebar { display: none; }
.worksection {
  margin-bottom: 12px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(35, 78, 117, .045);
}
.growth-kpis { gap: 8px; }
.growth-kpis.kpis.small { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.growth-kpis .kpi { min-height: 91px; }
.social-command-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, .72fr); gap: 24px; align-items: center; margin: 12px 0 18px; padding: 21px 22px; border: 1px solid #c7ddec; border-left: 5px solid var(--cyan); border-radius: 7px; background: #f4fbff; box-shadow: 0 12px 28px rgba(31, 78, 115, .05); }
.social-command-banner h3 { margin: 3px 0 6px; font-size: 24px; }
.social-command-banner p { max-width: 760px; margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.social-command-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #cfe0ec; border-radius: 6px; background: #fff; }
.social-command-actions button { min-height: 78px; padding: 10px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.social-command-actions button:first-child { border-left: 0; }
.social-command-actions button:hover { background: #edf7fd; }
.social-command-actions b,
.social-command-actions span { display: block; }
.social-command-actions b { font: 800 25px/1 var(--display); }
.social-command-actions span { margin-top: 6px; color: var(--ink-3); font-size: 9.5px; font-weight: 750; }
.social-channel-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.social-channel-desk { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid #2f73d9; border-radius: 7px; background: #fff; box-shadow: 0 14px 30px rgba(28, 72, 108, .07); }
.social-channel-desk.facebook { border-top-color: #19a9c9; }
.social-channel-desk > header { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.social-channel-desk > header h3 { margin: 3px 0 0; font-size: 18px; }
.channel-desk-status { padding: 5px 7px; border-radius: 5px; background: #fff4df; color: #8d5a00; font-size: 8.5px; font-weight: 850; text-transform: uppercase; }
.channel-desk-status.ready { background: #e3f7f0; color: var(--good); }
.channel-desk-main { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 216px; }
.channel-desk-image { display: grid; place-items: center; min-width: 0; overflow: hidden; border: 0; border-right: 1px solid var(--line); background: #e9f3f9; color: var(--accent); text-decoration: none; }
.channel-desk-image img { width: 100%; height: 100%; object-fit: cover; }
.channel-desk-image.empty { padding: 20px; font-size: 10.5px; font-weight: 800; text-align: center; cursor: pointer; }
.channel-desk-copy { min-width: 0; padding: 16px; }
.channel-desk-copy h4 { margin: 5px 0 8px; font-size: 18px; line-height: 1.3; }
.channel-desk-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink-2); font-size: 11.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.channel-desk-counts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.channel-desk-counts button { padding: 9px 11px; border: 0; border-left: 1px solid var(--line); background: #f8fbfe; color: var(--ink); text-align: left; cursor: pointer; }
.channel-desk-counts button:first-child { border-left: 0; }
.channel-desk-counts button:hover { background: #edf6fd; }
.channel-desk-counts b,
.channel-desk-counts span { display: block; }
.channel-desk-counts b { font-size: 16px; }
.channel-desk-counts span { margin-top: 2px; color: var(--ink-3); font-size: 8.5px; }
.social-channel-desk > footer { display: flex; gap: 7px; padding: 11px 13px; }
.social-showcase {
  min-width: 0;
  margin: 0 0 6px;
  padding: 22px 2px;
  border-top: 1px solid var(--line);
}
.growth-kpis + .social-showcase { border-top: 0; }
.social-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.social-preview-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 74, 115, .065);
}
.social-preview-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #eaf3fa;
  color: var(--ink-2);
  text-decoration: none;
}
.social-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
.social-preview-card:hover .social-preview-media img { transform: scale(1.012); }
.social-preview-media.empty {
  min-height: 178px;
  color: var(--accent);
  font: 750 12px/1.4 var(--display);
}
.social-preview-copy { display: flex; min-height: 225px; flex-direction: column; padding: 15px; }
.social-preview-copy header,
.conversation-preview header,
.social-preview-copy footer,
.conversation-preview footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.social-preview-copy time,
.conversation-preview time { color: var(--ink-3); font-size: 10.5px; }
.social-preview-copy h4,
.conversation-preview h4 { margin: 10px 0 5px; font-size: 16px; line-height: 1.28; }
.social-preview-copy p {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 15px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.preview-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eef4f9;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.preview-status.approved { background: #e5f7f1; color: var(--good); }
.preview-status.urgent,
.preview-status.rejected { background: #fff0f3; color: var(--bad); }
.preview-status.needs-approval,
.preview-status.draft { background: #fff7e8; color: var(--warn); }
.visual-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.visual-plan article {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 310px;
  padding: 16px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 7px;
  background: #fff;
}
.visual-plan article:nth-child(2n) { border-top-color: var(--cyan); }
.visual-plan article:nth-child(3n) { border-top-color: var(--mint); }
.visual-plan header { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-3); font-size: 10px; text-transform: uppercase; }
.visual-plan header b { color: var(--accent); }
.plan-number {
  position: absolute;
  top: 32px;
  right: 12px;
  color: #e7f0f8;
  font: 800 46px/1 var(--display);
}
.visual-plan h4 { position: relative; max-width: calc(100% - 42px); margin: 25px 0 9px; font-size: 16px; }
.visual-plan p { position: relative; margin: 0 0 17px; color: var(--ink-2); font-size: 11.5px; line-height: 1.48; }
.visual-plan footer { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.visual-plan footer span,
.visual-plan footer b { display: block; }
.visual-plan footer span { color: var(--ink-3); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.visual-plan footer b { margin-top: 2px; color: var(--ink-2); font-size: 10.5px; line-height: 1.3; }
@media (max-width: 980px) {
  .visual-plan { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .visual-plan { grid-template-columns: 1fr; }
  .visual-plan article { min-height: 0; }
}
.table-details {
  margin-top: 16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
}
.table-details > summary { padding: 11px 13px; color: var(--accent); font-size: 11px; font-weight: 800; cursor: pointer; }
.table-details[open] > summary { border-bottom: 1px solid var(--line); }
.table-details .tablewrap { margin: 0; border: 0; border-radius: 0; }
.source-detail { padding: 0; overflow: hidden; }
.source-detail > .table-details { margin: 0; border: 0; border-radius: 0; background: #fff; }
.source-detail > .table-details > summary { padding: 15px 17px; }
.source-detail-body { padding: 16px; }
.supporting-social-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 16px;
}
.supporting-social-data h3 { margin-top: 0; }
.platform-split.visual {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  border-top: 1px solid var(--line);
}
.platform-split.visual > .social-showcase { border-top: 0; }
.platform-preview-stack,
.conversation-preview-stack { display: grid; gap: 10px; }
.platform-preview-stack .social-preview-card {
  grid-template-columns: 158px minmax(0, 1fr);
}
.platform-preview-stack .social-preview-media { height: 100%; min-height: 218px; aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
.platform-preview-stack .social-preview-copy { min-height: 218px; }
.conversation-preview {
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  background: #fff;
}
.conversation-preview p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11.5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.production-showcase { border-top: 0; }
.focusitem {
  border-radius: 6px;
  background: #fbfdff;
}
.focusitem:hover { border-color: #a9c8e7; background: #f4f9ff; }
.rank { border-radius: 5px; color: var(--accent); }
.account,
.sourcebar,
.privacybar,
.emptycall,
.manualhandoff,
.calendarcard,
.engagementcard,
.assetcard,
.groupcard,
.postreviewcard {
  border-radius: 7px;
}
.account { border-color: var(--line); background: #fbfdff; }
.account.good { border-top-color: var(--mint); }
.assetgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.assetcard {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 72, 111, .06);
}
.assetmedia { aspect-ratio: 4 / 5; background: #e9f1f8; }
.assetmedia img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
.assetcard:hover .assetmedia img { transform: scale(1.012); }
.assetmedia.wide { aspect-ratio: 16 / 9; }
.assetcard.wide { grid-column: span 2; }
.assetbody { padding: 12px; }
.assetbody h4 { font-size: 13px; }
.assetactions { gap: 6px; }
.postreviewlist { gap: 12px; }
.postreviewcard {
  overflow: hidden;
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 72, 111, .06);
}
.postreviewimage { grid-template-columns: 210px minmax(0, 1fr); }
.postreviewimage img { width: 210px; min-height: 260px; }
.postreviewcopy { padding: 15px; }
.postreviewhead { border-bottom-color: var(--line); background: #f8fbff; }
.newsletter-hero {
  overflow: hidden;
  border: 1px solid #c8ddf0;
  border-top: 3px solid var(--cyan);
  border-radius: 7px;
  box-shadow: var(--shadow);
}
.newsletter-current { background: #fbfdff; }
.newsletter-gallery article { border-top-color: var(--cyan); border-radius: 7px; }
.social-channel-visual {
  border-radius: 7px;
  border-top-color: var(--accent);
  background: #f8fbff;
}
.social-channel-visual.s1 { border-top-color: var(--cyan); }
.social-channel-visual > div > i { border-radius: 4px; background: #e4edf5; }
.social-channel-visual > div > i > b { border-radius: 4px; background: var(--cyan); }
.answer { border-radius: 6px; }
.answer input:checked + span { border-color: var(--accent); background: #edf5ff; color: #124d9a; }
.question > legend span { background: var(--accent); }

.boot {
  min-height: calc(100vh - 62px);
  color: var(--ink-2);
}
.spin { border-color: #d7e6f3; border-top-color: var(--accent); }
.errbox { max-width: 760px; margin: 26px auto; border-radius: 7px; }
.foot { color: var(--ink-3); font-size: 10px; }
.toast { border-radius: 6px; background: var(--rail); }

/* Sign-in */
body.gate {
  min-height: 100vh;
  padding: 24px;
  background: #eef6fc;
}
.gatecard {
  max-width: 430px;
  padding: 32px;
  border: 1px solid #cadceb;
  border-top: 4px solid var(--cyan);
  border-radius: 7px;
  box-shadow: 0 22px 50px rgba(25, 66, 103, .12);
}
.gatebrand { color: var(--accent); }
.gatecard .mark { color: var(--cyan); }
.gatecard h1 { color: var(--ink); font-size: 32px; }
.gatecard input { border-radius: 6px; background: #f8fbff; }
.gatecard button {
  border-radius: 6px;
  background: var(--accent);
}
.gatefacts span { border-radius: 6px; background: #f6faff; }

/* High-clarity graph keys */
.chart-frame {
  padding-top: 0;
  border-color: #d7e4ef;
  background: #fff;
}
.chart-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-top: 1px solid #d8e6f1;
  border-bottom: 1px solid #d8e6f1;
  background: #f6faff;
}
.chart-key-title {
  padding-top: 0;
  color: #546b82;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}
.chart-key .chart-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 10px;
  min-height: 0;
  padding: 0;
  color: var(--ink);
}
.chart-key .legend-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #d9e6f0;
  border-radius: 6px;
  background: #fff;
}
.chart-key .legend-copy { display: block; min-width: 0; line-height: 1.15; }
.chart-key .legend-copy b,
.chart-key .legend-copy small { display: block; }
.chart-key .legend-copy b {
  color: var(--ink);
  font-size: 14px;
  white-space: normal;
}
.chart-key .legend-copy small { margin-top: 4px; color: #567086; font-size: 11.5px; line-height: 1.25; }
.chart-key .legend-item > strong {
  color: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.legend-swatch { display: block; width: 38px; flex: 0 0 38px; }
.legend-swatch.line { min-width: 38px; height: 5px; border-radius: 0; }
.legend-swatch.bar { width: 18px; min-width: 18px; max-width: 18px; height: 17px; margin-left: 10px; border-radius: 2px; }
.legend-swatch.inquiries { background: #6aa7e6; }
.legend-swatch.qualified { background: var(--cyan); }
.legend-swatch.initial-auth { background: repeating-linear-gradient(90deg, #667bce 0 9px, transparent 9px 14px); }
.legend-swatch.starts { background: repeating-linear-gradient(90deg, var(--mint) 0 3px, transparent 3px 8px); }
.legend-swatch.s0 { background: var(--accent); }
.legend-swatch.s1 { background: repeating-linear-gradient(90deg, var(--cyan) 0 9px, transparent 9px 14px); }
.legend-swatch.s2 { background: repeating-linear-gradient(90deg, #755bd4 0 3px, transparent 3px 6px, #755bd4 6px 16px, transparent 16px 21px); }
.legend-swatch.s3 { background: repeating-linear-gradient(90deg, var(--mint) 0 3px, transparent 3px 8px); }
.legend-swatch.c51 { background: #1769e0; }
.legend-swatch.c53 { background: #00a7c7; }
.legend-swatch.c55 { background: #755bd4; }
.legend-swatch.c56 { background: #00a889; }
.legend-swatch.rolling { background: var(--ink); }
.legend-swatch.potential { background: repeating-linear-gradient(90deg, #71869a 0 9px, transparent 9px 14px); }
.chart-key .chart-legend .legend-swatch.inquiries { background: #6aa7e6; }
.chart-key .chart-legend .legend-swatch.qualified { background: var(--cyan); }
.chart-key .chart-legend .legend-swatch.initial-auth { background: repeating-linear-gradient(90deg, #667bce 0 9px, transparent 9px 14px); }
.chart-key .chart-legend .legend-swatch.starts { background: repeating-linear-gradient(90deg, var(--mint) 0 3px, transparent 3px 8px); }
.chart-key .chart-legend .legend-swatch.s0 { background: var(--accent); }
.chart-key .chart-legend .legend-swatch.s1 { background: repeating-linear-gradient(90deg, var(--cyan) 0 9px, transparent 9px 14px); }
.chart-key .chart-legend .legend-swatch.s2 { background: repeating-linear-gradient(90deg, #755bd4 0 3px, transparent 3px 6px, #755bd4 6px 16px, transparent 16px 21px); }
.chart-key .chart-legend .legend-swatch.s3 { background: repeating-linear-gradient(90deg, var(--mint) 0 3px, transparent 3px 8px); }
.chart-key .chart-legend .legend-swatch.c51 { background: #1769e0; }
.chart-key .chart-legend .legend-swatch.c53 { background: #00a7c7; }
.chart-key .chart-legend .legend-swatch.c55 { background: #755bd4; }
.chart-key .chart-legend .legend-swatch.c56 { background: #00a889; }
.chart-key .chart-legend .legend-swatch.rolling { background: var(--ink); }
.chart-key .chart-legend .legend-swatch.potential { background: repeating-linear-gradient(90deg, #71869a 0 9px, transparent 9px 14px); }
.chart-key-note {
  grid-column: 1;
  margin: 0;
  color: #60768b;
  font-size: 11.5px;
}
.chart-grid line { stroke: #dfe9f2; }
.chart-grid text,
.chart-x { fill: #586f85; font-size: 11px; font-weight: 650; }
.chart-axis-title { fill: #536b81; font: 750 11px var(--display); }
.journey-line { stroke-width: 3.25; }
.journey-line.initial-auth { stroke-dasharray: 10 6; }
.journey-line.starts { stroke-dasharray: 2 7; }
.chart-end text {
  font-size: 11px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.chart-end path { fill: none; stroke: #9fb2c3; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart-end rect { fill: #fff; stroke: #d6e2ec; stroke-width: 1; }
.chart-end.qualified path { stroke: var(--cyan); }
.chart-end.initial-auth path { stroke: #667bce; stroke-dasharray: 6 4; }
.chart-end.starts path { stroke: var(--mint); stroke-dasharray: 2 5; }
.journey-bar-value { fill: #4d6a84; font: 800 10.5px var(--display); pointer-events: none; }
.trend-line { stroke-width: 3.2; }
.trend-line.s1 { stroke-dasharray: 10 6; }
.trend-line.s2 { stroke-dasharray: 3 4 12 4; }
.trend-line.s3 { stroke-dasharray: 2 7; }
.trend-point { r: 4.25px; }
.trend-point.s0 { fill: var(--accent); }
.trend-point.s1 { fill: var(--cyan); }
.trend-point.s2 { fill: #755bd4; }
.trend-point.s3 { fill: var(--mint); }
.hours-code-key { grid-template-columns: repeat(4, minmax(190px, 1fr)) !important; }
.chart-mark { cursor: pointer; outline: none; }
.chart-mark:hover,
.chart-mark:focus-visible { filter: brightness(.88) saturate(1.2); }
.chart-mark:focus-visible { stroke: #10263d; stroke-width: 3; }
.chart-detail-modal { z-index: 65; }
.chart-detail-dialog { width: min(520px, 100%); padding: 0; overflow: hidden; }
.chart-detail-dialog header { padding: 17px 19px 14px; border-bottom: 1px solid var(--line); background: #f7fbff; }
.chart-detail-dialog h3 { margin: 3px 0 0; font-size: 23px; }
.chart-detail-value { padding: 24px 20px; color: var(--ink); font: 750 18px/1.55 var(--display); white-space: pre-line; }
.chart-detail-dialog footer { padding: 12px 19px; border-top: 1px solid var(--line); background: #f7fbff; text-align: right; }
.hours-point { stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hours-point.rolling { fill: var(--ink); }
.hours-point.potential { fill: #71869a; }
.hours-end line { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hours-end text {
  font: 800 11px var(--display);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.hours-end.rolling line { stroke: var(--ink); }
.hours-end.rolling text { fill: var(--ink); }
.hours-end.potential line { stroke: #71869a; stroke-dasharray: 5 4; }
.hours-end.potential text { fill: #61778c; }

/* Guided walkthrough */
.tour-trigger { display: inline-flex; align-items: center; gap: 6px; }
.tour-trigger > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f2ff;
  color: var(--accent);
  font: 850 11px/1 var(--display);
}
.tour-trigger > b { font-size: 11px; }
.tour-modal { z-index: 60; background: rgba(10, 32, 53, .56); }
.tour-dialog { width: min(760px, 100%); padding: 0; overflow: hidden; border-radius: 8px; }
.tour-dialog .dialog-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.tour-dialog .dialog-head h3 { margin-top: 2px; font-size: 23px; }
.tour-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  font: 500 22px/1 Arial, sans-serif;
  cursor: pointer;
}
.tour-close:hover { border-color: #8fb8e7; color: var(--accent); }
.tour-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 750;
}
.tour-progress > i { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: #e5edf5; }
.tour-progress > i > b { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--cyan); }
.tour-progress > strong { color: var(--accent); }
.tour-body {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
  min-height: 275px;
  padding: 28px 28px 24px;
}
.tour-number { color: #d7e8f6; font: 850 58px/1 var(--display); }
.tour-body p { max-width: 580px; margin: 2px 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.tour-body ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tour-body li { position: relative; padding-left: 20px; color: var(--ink); font-size: 13px; }
.tour-body li::before { content: ""; position: absolute; top: 7px; left: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); }
.tour-actions { justify-content: flex-end; padding: 13px 20px; border-top: 1px solid var(--line); background: #f7fbff; }
.tour-actions .btn:first-child { margin-right: auto; }

@media (max-width: 1250px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .analytics-card .overview-executive { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
  .assetgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-preview-grid .social-preview-card:last-child { display: none; }
  .platform-split.visual { grid-template-columns: 1fr; gap: 0; }
  .platform-split.visual > .social-showcase + .social-showcase { border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .rail .tabs a { grid-template-columns: 23px minmax(0, 1fr) auto; padding-inline: 7px; }
  main { padding: 20px 18px 48px; }
  .top { padding-inline: 18px; }
  .stamp { display: none; }
  .overview-page > .kpis { grid-template-columns: 1fr 1fr; }
  .journey-snapshot { grid-template-columns: 1fr 1fr; }
  .journey-metric:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .journey-metric:nth-child(4) { border-top: 1px solid var(--line); }
  .journey-metric:nth-child(2)::after { display: none; }
  .analytics-card .overview-executive { grid-template-columns: 1fr; }
  .analytics-card .overview-executive > section + section { padding: 17px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .panel-grid { grid-template-columns: 1fr; }
  .growth-kpis.kpis.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .rail {
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    width: 245px;
    transition: transform .18s ease;
    box-shadow: 18px 0 40px rgba(10, 31, 52, .22);
  }
  body.nav-open .rail { transform: translateX(0); }
  .rail-scrim {
    position: fixed;
    z-index: 19;
    inset: 0;
    background: rgba(8, 27, 45, .38);
  }
  body.nav-open .rail-scrim { display: block !important; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: 750 11px/1 inherit;
  }
  .top { flex-wrap: wrap; padding: 8px 12px; }
  .page-context { min-width: 0; }
  .page-context span { display: none; }
  .topright { width: 100%; order: 3; gap: 6px; }
  .search-wrap { flex: 1; }
  .gsearch { width: 100%; }
  .top-action { white-space: nowrap; }
  main { padding: 16px 12px 42px; }
  .page-intro { align-items: flex-start; }
  .page-intro h1 { font-size: 25px; }
  .intro-actions { display: none; }
  .source-ribbon { grid-template-columns: 1fr 1fr; }
  .source-cell:nth-child(3) { border-top: 1px solid #dce9f4; border-left: 0; }
  .source-cell:nth-child(4) { border-top: 1px solid #dce9f4; }
  .overview-side { grid-template-columns: 1fr; }
  .assetgrid { grid-template-columns: 1fr 1fr; }
  .assetcard.wide { grid-column: 1 / -1; }
  .postreviewimage { grid-template-columns: 150px minmax(0, 1fr); }
  .postreviewimage img { width: 150px; min-height: 210px; }
  .growthnav { top: 111px; }
  .social-preview-grid { grid-template-columns: 1fr; }
  .social-preview-grid .social-preview-card:last-child { display: grid; }
  .platform-preview-stack .social-preview-card { grid-template-columns: 130px minmax(0, 1fr); }
  .platform-preview-stack .social-preview-media { min-height: 205px; }
  .platform-preview-stack .social-preview-copy { min-height: 205px; }
  .supporting-social-data { grid-template-columns: 1fr; }
  .chart-key { grid-template-columns: 1fr; }
  .chart-key-title,
  .chart-key-note { grid-column: 1; }
  .chart-key .chart-legend,
  .hours-code-key { grid-template-columns: 1fr 1fr !important; }
  .tour-body { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 22px 18px; }
  .tour-number { font-size: 42px; }
}

@media (max-width: 520px) {
  .top .btn.ghost { display: none; }
  .gsearch { font-size: 12px; }
  .page-intro { margin-bottom: 12px; }
  .source-ribbon,
  .journey-snapshot,
  .overview-page > .kpis { grid-template-columns: 1fr; }
  .source-cell,
  .source-cell:nth-child(3),
  .source-cell:nth-child(4) { min-height: 58px; border-left: 0; border-top: 1px solid #dce9f4; }
  .source-cell:first-child { border-top: 0; }
  .journey-metric,
  .journey-metric:nth-child(3),
  .journey-metric:nth-child(4) {
    min-height: 123px;
    padding: 13px 15px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .journey-metric:first-child { border-top: 0; }
  .journey-metric::after { display: none; }
  .journey-metric > b { font-size: 33px; }
  .journey-chart-summary { grid-template-columns: 1fr 1fr; }
  .journey-chart-summary > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .journey-chart-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .pulse-head { display: block; padding: 15px; }
  .pulse-head .btn { margin-top: 9px; }
  .card { padding: 15px 13px; }
  .assetgrid { grid-template-columns: 1fr; }
  .assetcard.wide { grid-column: auto; }
  .postreviewimage { grid-template-columns: 1fr; }
  .postreviewimage img { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .growthhead { display: block; }
  .growthhead-actions { margin-top: 10px; }
  .growthnav { top: 111px; }
  .focusitem { grid-template-columns: 28px minmax(0, 1fr); }
  .focusitem > strong { grid-column: 2; justify-self: start; }
  .growth-kpis.kpis.small { grid-template-columns: 1fr 1fr; }
  .platform-preview-stack .social-preview-card { grid-template-columns: 1fr; }
  .platform-preview-stack .social-preview-media { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--line); }
  .social-preview-copy { min-height: 210px; }
  .tour-trigger > b { display: none; }
  .tour-trigger { width: 36px; padding: 7px; justify-content: center; }
  .chart-key .chart-legend,
  .hours-code-key { grid-template-columns: 1fr !important; }
  .tour-progress { grid-template-columns: auto 1fr; }
  .tour-progress > strong { display: none; }
  .tour-body { grid-template-columns: 1fr; min-height: 0; }
  .tour-number { font-size: 34px; }
  .tour-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tour-actions .btn:first-child { margin-right: 0; }
  .tour-actions .btn:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}

@media print {
  .rail,
  .top { display: none; }
  .shell { display: block; }
  main { max-width: none; padding: 0; }
}

/* Clear, directly labelled operating visuals */
.journey-small-multiples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.journey-mini {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 7px;
  background: #fbfdff;
}
.journey-mini.qualified { border-top-color: var(--cyan); }
.journey-mini.initial-auth { border-top-color: #6575c8; }
.journey-mini.starts { border-top-color: var(--mint); }
.journey-mini > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-height: 66px;
  padding: 12px 14px 5px;
}
.journey-mini > header span,
.journey-mini > header em,
.journey-mini > header b,
.journey-mini > header strong { display: block; }
.journey-mini > header span { color: var(--ink); font-size: 13px; font-weight: 800; }
.journey-mini > header em { margin-top: 2px; color: var(--ink-3); font-size: 10.5px; font-style: normal; }
.journey-mini > header > div:last-child { flex: 0 0 auto; text-align: right; }
.journey-mini > header b { color: var(--ink); font: 800 28px/1 var(--display); }
.journey-mini > header strong { margin-top: 5px; color: var(--ink-3); font-size: 10px; }
.journey-mini > header strong.up { color: var(--good); }
.journey-mini > header strong.down { color: var(--bad); }
.journey-mini svg { display: block; width: 100%; height: 176px; }
.journey-small-multiples.compact .journey-mini svg { height: 150px; }
.journey-mini-bar { fill: #8db6ee; cursor: pointer; transition: opacity .15s ease, filter .15s ease; }
.journey-mini.qualified .journey-mini-bar { fill: #18a8c4; }
.journey-mini.initial-auth .journey-mini-bar { fill: #7b86d7; }
.journey-mini.starts .journey-mini-bar { fill: #14aa8c; }
.journey-mini-bar:hover,
.journey-mini-bar:focus { opacity: .78; filter: saturate(1.25); outline: none; }
.journey-mini-baseline { stroke: #dce7f1; stroke-width: 1; }
.journey-mini-max { fill: #8a9caf; font-size: 9px; }
.chart-click-note { margin: 9px 0 0; color: var(--ink-3); font-size: 10.5px; }

.period-visual { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.period-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #f4f8fc;
}
.period-tabs button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: 750 11px/1.2 inherit;
  cursor: pointer;
}
.period-tabs button:first-child { border-left: 0; }
.period-tabs button:hover { background: #edf6ff; color: var(--accent); }
.period-tabs button.on { background: #fff; color: var(--accent); box-shadow: inset 0 -3px var(--accent); }
.period-focus { padding: 16px; }
.period-focus > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.period-focus h3 { margin: 2px 0; font-size: 18px; }
.period-focus p { margin: 0; color: var(--ink-2); font-size: 11.5px; }
.period-note { padding: 5px 8px; border: 1px solid #cfe2f4; border-radius: 5px; background: #eef7ff; color: #35617e; font-size: 10px; font-weight: 750; }
.period-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.period-metric { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fbfdff; }
.period-metric > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.period-metric > header span { color: var(--ink-2); font-size: 11px; font-weight: 750; }
.period-metric > header b { font: 800 25px/1 var(--display); }
.period-bars { display: grid; gap: 5px; margin: 13px 0 9px; }
.period-bars > span { height: 8px; overflow: hidden; border-radius: 4px; background: #e8eff6; }
.period-bars i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); }
.period-bars .prior i { background: #b8c6d5; }
.period-metric.qualified .period-bars > span:first-child i { background: var(--cyan); }
.period-metric.auth .period-bars > span:first-child i { background: #6575c8; }
.period-metric.active .period-bars > span:first-child i { background: var(--mint); }
.period-metric > footer { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; color: var(--ink-3); font-size: 9.5px; }
.period-metric > footer span { display: flex; align-items: center; gap: 4px; }
.period-metric > footer span:nth-child(2) { grid-row: 2; }
.period-metric > footer i { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.period-metric > footer .prior-dot { background: #b8c6d5; }
.period-metric > footer strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 11px; }
.period-metric > footer strong.up { color: var(--good); }
.period-metric > footer strong.down { color: var(--bad); }

.wait-summary { display: grid; gap: 8px; }
.wait-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(120px, 1.6fr) 92px;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-bottom-color: var(--line-2);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.wait-row:hover { border-color: #bfd9ef; border-radius: 6px; background: #f5faff; }
.wait-name b, .wait-name em, .wait-count b, .wait-count em { display: block; }
.wait-name b { font-size: 11.5px; }
.wait-name em { color: var(--ink-3); font-size: 9.5px; font-style: normal; }
.wait-track { height: 9px; overflow: hidden; border-radius: 5px; background: #e8eff6; }
.wait-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #71a9dd; }
.wait-row.overdue .wait-track i { background: #e3a63d; }
.wait-count { text-align: right; }
.wait-count b { font: 800 18px/1 var(--display); }
.wait-count em { margin-top: 4px; color: var(--ink-3); font-size: 9px; font-style: normal; }
.wait-row.overdue .wait-count em { color: #9b6109; font-weight: 750; }

.conversion-story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.conversion-story-step { position: relative; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: #fbfdff; }
.conversion-story-step > span { display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 12px; border-radius: 50%; background: #e7f1fd; color: var(--accent); font-size: 10px; font-weight: 850; }
.conversion-story-step > div strong,
.conversion-story-step > div b,
.conversion-story-step > div em,
.conversion-story-step > small { display: block; }
.conversion-story-step > div strong { color: var(--ink-2); font-size: 11px; }
.conversion-story-step > div b { margin: 4px 0; font: 800 28px/1 var(--display); }
.conversion-story-step > div em { min-height: 30px; color: var(--ink-3); font-size: 9.5px; font-style: normal; }
.conversion-story-step > small { margin-top: 10px; color: var(--accent); font-size: 9.5px; font-weight: 750; }

.client-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.client-journey > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  text-align: left;
}
.client-journey > button:hover { border-color: #9fc8ea; background: #f4faff; }
.client-journey > button > span:first-child { align-self: end; font-size: 11.5px; font-weight: 750; }
.client-journey > button > b { grid-row: 1; grid-column: 2; align-self: end; font: 800 24px/1 var(--display); }
.client-journey-bar { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 4px; background: #e6eef6; }
.client-journey-bar .bar { height: 100%; background: #69a9df; }
.client-journey > button > em { grid-column: 1 / -1; color: var(--ink-3); font-size: 9.5px; font-style: normal; }
.client-journey > button > em.overdue { color: #a15e00; font-weight: 750; }

@media (max-width: 980px) {
  .period-metrics { grid-template-columns: 1fr 1fr; }
  .client-journey { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .journey-small-multiples { grid-template-columns: 1fr; }
  .period-tabs { grid-template-columns: 1fr 1fr; }
  .period-tabs button:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .period-tabs button:nth-child(4) { border-top: 1px solid var(--line); }
  .period-focus > header { display: block; }
  .period-note { display: inline-block; margin-top: 8px; }
  .period-metrics { grid-template-columns: 1fr; }
  .wait-row { grid-template-columns: minmax(125px, 1fr) 80px; }
  .wait-track { grid-column: 1 / -1; grid-row: 2; }
  .wait-count { grid-column: 2; grid-row: 1; }
  .conversion-story { grid-template-columns: 1fr 1fr; }
  .client-journey { grid-template-columns: 1fr; }
}

/* Hours: week-first explorer and readable service-code splits */
.hours-week-explorer {
  margin: 14px 0;
  padding: 17px 18px 18px;
  border: 1px solid #cfe0ef;
  border-radius: 7px;
  background: #f8fcff;
}
.hours-week-explorer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.hours-week-explorer h3 { margin: 3px 0 2px; font-size: 23px; }
.hours-week-explorer header p { margin: 0; color: var(--ink-2); font-size: 11px; }
.hours-week-status { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #a9d9ca; border-radius: 5px; background: #e9f8f3; color: var(--good); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.hours-week-status.partial { border-color: #efd189; background: #fff8e7; color: #8d6000; }
.hours-week-picker { display: flex; gap: 6px; margin: 14px -2px 12px; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: thin; }
.hours-week-picker button { flex: 0 0 auto; min-width: 86px; padding: 7px 9px; border: 1px solid #cbdbea; border-radius: 5px; background: #fff; color: var(--ink-2); text-align: left; cursor: pointer; }
.hours-week-picker button span,
.hours-week-picker button small { display: block; }
.hours-week-picker button span { color: var(--ink); font-size: 10px; font-weight: 800; }
.hours-week-picker button small { margin-top: 2px; color: var(--ink-3); font-size: 8px; }
.hours-week-picker button:hover,
.hours-week-picker button:focus { border-color: var(--accent); outline: 2px solid rgba(55, 99, 232, .13); }
.hours-week-picker button.on { border-color: var(--accent); background: #eaf2ff; box-shadow: inset 0 -3px 0 var(--accent); }
.hours-week-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hours-week-metrics article { min-width: 0; padding: 12px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; background: #fff; }
.hours-week-metrics article.c51 { border-top-color: #4776e6; }
.hours-week-metrics article.c53 { border-top-color: #16a1c4; }
.hours-week-metrics article.c55 { border-top-color: #e14f72; }
.hours-week-metrics article.c56 { border-top-color: #b77809; }
.hours-week-metrics article.clients53 { border-top-color: #009f8f; }
.hours-week-metrics article.average { border-top-color: #7c67d9; }
.hours-week-metrics article.coordination { border-top-color: #e0a238; }
.hours-week-metrics article span,
.hours-week-metrics article b,
.hours-week-metrics article em { display: block; }
.hours-week-metrics article > span { color: var(--ink-2); font-size: 10.5px; font-weight: 750; }
.hours-week-metrics article b { margin: 7px 0 5px; font: 800 25px/1 var(--display); }
.hours-week-metrics article.total b { font-size: 31px; }
.hours-week-metrics article b small { margin-left: 2px; color: var(--ink-3); font-size: 11px; }
.hours-week-metrics article em { color: var(--ink-3); font-size: 9.5px; font-style: normal; }
.hours-week-metrics article em .hours-delta { display: inline; }
.week-progress { display: block; margin-top: 3px; color: #9a6810; font-size: 9px; font-weight: 750; }
.chart-key .chart-legend .legend-swatch.total { background: var(--accent); }
.chart-key .chart-legend .legend-swatch.total-stack { height: 17px; border-radius: 3px; background: linear-gradient(90deg, #1769e0 0 18%, #00a7c7 18% 73%, #755bd4 73% 91%, #00a889 91%); }
.chart-key .chart-legend .legend-swatch.rolling { background: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 14px); }
.chart-key .chart-legend .legend-swatch.potential { background: repeating-linear-gradient(90deg, #71869a 0 3px, transparent 3px 8px); }
.hours-line.total { stroke: var(--accent); stroke-width: 3.5; }
.hours-line.rolling { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 6; }
.hours-line.potential { stroke: #71869a; stroke-width: 2.2; stroke-dasharray: 2 7; }
.hours-point.total { fill: var(--accent); }
.hours-end.total line { stroke: var(--accent); }
.hours-end.total text { fill: var(--accent); }
.hours-week-target { fill: transparent; cursor: pointer; }
.hours-week-target.selected { fill: rgba(55, 99, 232, .07); }
.hours-bar.selected { stroke: #173a8a; stroke-width: 1.4; }
.hours-roster-check { margin-top: 10px; border: 1px solid #bfe1d7; border-left: 4px solid var(--mint); border-radius: 6px; background: #f2fbf8; }
.hours-roster-check.aligned { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; }
.hours-roster-check b,
.hours-roster-check p { display: block; margin: 0; }
.hours-roster-check p { margin-top: 3px; color: var(--ink-2); font-size: 10px; }
.roster-check-mark { flex: 0 0 auto; padding: 6px 9px; border-radius: 5px; background: #dff5ed; color: var(--good); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.hours-roster-check.review { border-color: #efcf8a; border-left-color: #d59624; background: #fffbf2; }
.hours-roster-check.review > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; cursor: pointer; list-style: none; }
.hours-roster-check.review > summary::-webkit-details-marker { display: none; }
.hours-roster-check.review > summary strong { padding: 6px 9px; border: 1px solid #e7c879; border-radius: 5px; background: #fff; color: #895800; font-size: 9.5px; white-space: nowrap; }
.hours-roster-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 12px; }
.hours-roster-lists > div { min-width: 0; padding: 11px; border: 1px solid #eadfbf; border-radius: 6px; background: #fff; }
.hours-roster-lists ul { columns: 2; gap: 20px; margin: 8px 0 0; padding-left: 17px; color: var(--ink-2); font-size: 10.5px; }
.hours-roster-check.review > .fine { padding: 0 14px 12px; }

/* Client 360 opens with the answer, then the supporting record. */
.client-holding-summary { margin: 12px 0 16px; padding: 16px; border: 1px solid #c8dfee; border-left: 5px solid var(--cyan); border-radius: 7px; background: #f5fbff; }
.client-holding-title h4 { margin: 3px 0; color: var(--ink); font-size: 23px; }
.client-holding-title p { margin: 0; color: var(--ink-2); font-size: 11px; }
.client-holding-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.client-holding-facts span { min-width: 0; padding: 9px 10px; border: 1px solid #d7e5ef; border-radius: 6px; background: #fff; color: var(--ink-2); font-size: 10.5px; }
.client-holding-facts b { display: block; margin-bottom: 3px; color: var(--ink-3); font-size: 8.5px; text-transform: uppercase; }
.client-holding-summary blockquote { margin: 10px 0 0; padding: 12px 14px; border: 0; border-radius: 6px; background: #eaf5fc; }
.client-holding-summary blockquote p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.55; }
.client-holding-summary blockquote footer { margin-top: 7px; color: var(--ink-3); font-size: 9.5px; font-weight: 750; }
.client-holding-empty { margin-top: 10px; padding: 11px; border-radius: 6px; background: #edf3f8; color: var(--ink-2); font-size: 11px; }

/* System status: infrastructure and work queues are visually distinct */
.conn-head {
  padding: 20px 22px;
  border-left: 5px solid var(--mint);
  background: #f3fbf9;
}
.conn-head h2 { font-size: 31px; }
.conn-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.conn-summary span {
  min-height: 70px;
  padding: 12px 13px;
  border-radius: 6px;
  background: #fff;
}
.conn-summary b { display: block; margin-bottom: 4px; font-size: 25px; }
.conn-section { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.conn-section .sectionhead { margin-bottom: 10px; }
.conn-section .sectionhead h3 { margin: 3px 0 0; font-size: 19px; }
.conn-section.work .conn-card.warn { border-left-color: #d5a034; background: #fffaf0; }
.conn-card { min-height: 138px; padding: 14px; border-radius: 6px; background: #f9fcff; }
.conn-card p { font-size: 12.5px; line-height: 1.5; }
.conn-freshness { margin-top: 18px; }
.cancellation-events-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cancel-source-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fbff;
}
.cancel-source-bar span { padding: 11px 13px; color: var(--ink-2); font-size: 11.5px; }
.cancel-source-bar span + span { border-left: 1px solid var(--line); }
.cancel-source-bar b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 10px; text-transform: uppercase; }
.cancel-import-details { margin: 7px 0 12px; }

@media (max-width: 980px) {
  .hours-code-key { grid-template-columns: repeat(2, minmax(190px, 1fr)) !important; }
  .conn-summary { grid-template-columns: 1fr 1fr; }
  .cancellation-events-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hours-code-key,
  .conn-summary,
  .cancellation-events-kpis { grid-template-columns: 1fr !important; }
  .chart-key .legend-item { min-height: 54px; }
  .cancel-source-bar { grid-template-columns: 1fr; }
  .cancel-source-bar span + span { border-top: 1px solid var(--line); border-left: 0; }
}

/* Referral desk: read-only action surface */
.desk-command-head,
.group-command > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.desk-command-head h2,
.group-command h3 { margin: 3px 0 4px; }
.desk-source-rule,
.group-draft-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin: 10px 0 14px;
  padding: 11px 13px;
  border-left: 4px solid var(--cyan);
  background: #edf8fc;
  color: var(--ink-2);
  font-size: 11px;
}
.desk-source-rule b,
.group-draft-rule b { color: var(--ink); }
.desk-call-section,
.desk-research-section,
.desk-directory { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.desk-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.desk-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.desk-detail-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfe; }
.desk-detail-grid article span { color: var(--ink-3); font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.desk-detail-grid article p { margin: 5px 0 0; color: var(--ink); font-size: 11.5px; }

/* Personal social voice and Facebook Group approvals */
.platform-voice-guide { margin: 12px 0; padding: 18px 20px; border: 1px solid #cfe1f1; border-left: 5px solid var(--cyan); border-radius: 7px; background: #f5fbff; }
.platform-voice-guide.linkedin { border-left-color: #4073d8; background: #f6f9ff; }
.platform-voice-guide h3 { margin: 3px 0 13px; font-size: 18px; }
.platform-voice-guide > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.platform-voice-guide > div > span { min-height: 66px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2); font-size: 10.5px; }
.platform-voice-guide > div b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 11px; }
.group-command { margin-bottom: 12px; }
.group-command-stats { display: grid; grid-template-columns: repeat(3, 105px); gap: 7px; }
.group-command-stats button { min-height: 72px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #f7fbff; color: var(--ink); text-align: left; cursor: pointer; }
.group-command-stats button:hover,
.group-command-stats button[aria-pressed="true"] { border-color: #89b9e3; background: #eaf5ff; }
.group-command-stats b,
.group-command-stats span { display: block; }
.group-command-stats b { font: 800 23px/1 var(--display); }
.group-command-stats span { margin-top: 5px; color: var(--ink-3); font-size: 9.5px; }
.groupcard { border-top: 3px solid #79b5df; }
.groupcard.join { border-top-color: #dca23b; }
.group-membership { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; background: #e9f7f3; color: var(--good); font-size: 9.5px; font-weight: 800; }
.group-membership.join { background: #fff5df; color: #9c6107; }
.group-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.group-draft-dialog { width: min(720px, 100%); }
.group-draft-dialog .replybox { display: block; padding: 0 18px 16px; }
.group-draft-dialog .replybox textarea { min-height: 190px; font: 14px/1.55 var(--display); }

/* Hands-free weekly interview */
.interview-intro-actions { display: flex; align-items: center; gap: 9px; }
.voice-start { min-height: 39px; }
.voice-interview-modal { z-index: 70; background: rgba(10, 32, 53, .62); }
.voice-interview-dialog { width: min(760px, 100%); padding: 0; overflow: hidden; }
.voice-interview-dialog > header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.voice-interview-dialog > header h3 { margin: 3px 0 4px; font-size: 22px; }
.voice-interview-dialog > header p { margin: 0; color: var(--ink-2); font-size: 11px; }
.voice-progress { display: grid; grid-template-columns: auto minmax(120px, 1fr); gap: 12px; align-items: center; padding: 9px 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 10px; font-weight: 750; }
.voice-progress > i { height: 6px; overflow: hidden; border-radius: 3px; background: #e5edf5; }
.voice-progress > i > b { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s ease; }
.voice-interview-dialog > main { min-height: 320px; padding: 28px 34px 22px; text-align: center; }
.voice-meter { display: flex; justify-content: center; align-items: center; gap: 5px; width: 92px; height: 38px; margin: 0 auto 13px; border: 1px solid #cfe0ef; border-radius: 6px; background: #f2f8fe; }
.voice-meter i { width: 5px; height: 10px; border-radius: 2px; background: #78aede; }
.voice-meter i:nth-child(2), .voice-meter i:nth-child(4) { height: 18px; }
.voice-meter i:nth-child(3) { height: 25px; }
.voice-interview-modal.listening .voice-meter i { animation: voice-bars .7s ease-in-out infinite alternate; background: var(--cyan); }
.voice-interview-modal.listening .voice-meter i:nth-child(2) { animation-delay: -.4s; }
.voice-interview-modal.listening .voice-meter i:nth-child(3) { animation-delay: -.2s; }
.voice-interview-modal.listening .voice-meter i:nth-child(4) { animation-delay: -.55s; }
@keyframes voice-bars { from { transform: scaleY(.45); } to { transform: scaleY(1.25); } }
.voice-state { color: var(--accent); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.voice-interview-dialog main h4 { max-width: 620px; margin: 9px auto 12px; font-size: 21px; line-height: 1.35; }
.voice-transcript { max-width: 600px; min-height: 48px; margin: 0 auto; color: var(--ink-2); font-size: 13px; }
.voice-interview-dialog main ol { max-height: 105px; margin: 12px auto 0; padding: 0; overflow: auto; list-style: none; text-align: left; }
.voice-interview-dialog main li { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 10px; }
.voice-interview-dialog main li span { color: var(--ink-2); }
.voice-interview-dialog > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 13px 20px; border-top: 1px solid var(--line); background: #f7fbff; }
.voice-interview-dialog > footer [data-voice-start] { order: -1; margin-right: auto; }
.roster-count { padding: 7px 10px; border: 1px solid #b9decf; border-radius: 6px; background: #effaf6; color: var(--good); font-size: 11px; }

@media (max-width: 980px) {
  .hours-week-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hours-week-metrics article.total { grid-column: 1 / -1; }
  .group-command > header { display: block; }
  .group-command-stats { margin-top: 13px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hours-week-explorer > header { display: block; }
  .hours-week-status { display: inline-block; margin-top: 8px; }
  .hours-week-metrics { grid-template-columns: 1fr 1fr; }
  .hours-week-metrics article.total { grid-column: 1 / -1; }
  .desk-command-head { display: block; }
  .desk-command-head .btn { margin-top: 10px; }
  .desk-detail-grid,
  .platform-voice-guide > div { grid-template-columns: 1fr; }
  .group-command-stats { grid-template-columns: 1fr; }
  .voice-interview-dialog > main { min-height: 280px; padding: 24px 18px 18px; }
  .voice-interview-dialog > footer { display: grid; grid-template-columns: 1fr 1fr; }
  .voice-interview-dialog > footer [data-voice-start] { grid-column: 1 / -1; margin: 0; }
  .voice-interview-dialog main li { grid-template-columns: 1fr; }
  .interview-intro-actions { align-items: flex-end; flex-direction: column-reverse; }
}

/* Trends: one calm, independently scaled chart per measure */
.trend-small-multiples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.trend-mini { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 7px; background: #fff; }
.trend-mini.s1 { border-top-color: var(--cyan); }
.trend-mini.s2 { border-top-color: #6575c8; }
.trend-mini.s3 { border-top-color: var(--mint); }
.trend-mini > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 67px; padding: 12px 14px 4px; }
.trend-mini > header span,
.trend-mini > header em,
.trend-mini > header b,
.trend-mini > header strong { display: block; }
.trend-mini > header span { color: var(--ink); font-size: 12px; font-weight: 800; }
.trend-mini > header em { margin-top: 2px; color: var(--ink-3); font-size: 9.5px; font-style: normal; }
.trend-mini > header > div:last-child { text-align: right; }
.trend-mini > header b { font: 800 25px/1 var(--display); }
.trend-mini > header strong { margin-top: 5px; color: var(--ink-3); font-size: 9px; }
.trend-mini > header strong.up { color: var(--good); }
.trend-mini > header strong.down { color: var(--bad); }
.trend-mini svg { display: block; width: 100%; height: 184px; }
.trend-mini-grid { stroke: #e4edf5; stroke-width: 1; }
.trend-mini-y { fill: #7f92a5; font-size: 9px; }
.trend-mini-area { opacity: .13; fill: var(--accent); }
.trend-mini-area.s1 { fill: var(--cyan); }
.trend-mini-area.s2 { fill: #6575c8; }
.trend-mini-area.s3 { fill: var(--mint); }
.trend-mini .trend-line { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; }
.trend-mini .trend-point { stroke: #fff; stroke-width: 2; cursor: pointer; }
.trend-compare { margin-top: 13px; }
.trend-compare > details { border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.trend-compare > details > summary { padding: 13px 15px; }
.client-journey-bar .bar { min-width: 0; height: 100%; background: transparent; }
.client-journey-bar .bar i { height: 100%; background: #69a9df; }

@media (max-width: 680px) {
  .trend-small-multiples { grid-template-columns: 1fr; }
}

/* Approval studio: exact copy and image in one calm decision surface */
.approval-titlebar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.approval-titlebar h2 { margin: 3px 0 5px; font-size: 25px; }
.approval-titlebar .lede { max-width: 850px; margin: 0; }
.approval-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 17px 0 11px; overflow: hidden; border: 1px solid #cbdbea; border-radius: 7px; background: #f4f8fc; }
.approval-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border: 0; border-left: 1px solid #d8e3ed; background: transparent; color: var(--ink-2); cursor: pointer; }
.approval-tabs button:first-child { border-left: 0; }
.approval-tabs button b { font: 800 22px/1 var(--display); color: var(--ink); }
.approval-tabs button span { font-size: 11px; font-weight: 800; }
.approval-tabs button.on { background: #fff; box-shadow: inset 0 4px 0 var(--accent); color: var(--accent-2); }
.approval-safety { display: flex; justify-content: space-between; gap: 18px; padding: 10px 12px; border-left: 4px solid var(--mint); background: #f0faf7; color: var(--ink-2); font-size: 11px; }
.approval-safety b { color: var(--ink); }
.approval-safety span { text-align: right; }
.approval-list { gap: 13px; margin-top: 15px; }
.approval-list .ap { padding: 0; overflow: hidden; border-left-width: 1px; border-top: 4px solid #dca23b; background: #fff; }
.approval-list .ap.approved { border-top-color: var(--mint); }
.approval-list .ap.rejected { border-top-color: #9aa9b7; }
.approval-list .aphead { min-height: 48px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: #f7fafd; }
.approval-list .aphead > b { font-size: 12px; }
.approval-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.approval-layout.with-media { grid-template-columns: minmax(220px, 310px) minmax(0, 1fr); }
.approval-media { position: relative; display: block; min-height: 310px; overflow: hidden; border-right: 1px solid var(--line); background: #e7eef5; color: #fff; text-decoration: none; }
.approval-media img { display: block; width: 100%; height: 100%; min-height: 310px; aspect-ratio: 4 / 5; object-fit: cover; }
.approval-media > span { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 30px 12px 11px; background: linear-gradient(transparent, rgba(9, 28, 46, .86)); }
.approval-media > span b,
.approval-media > span em { display: block; }
.approval-media > span b { font-size: 11px; }
.approval-media > span em { color: #d9e8f3; font-size: 9px; font-style: normal; white-space: nowrap; }
.approval-media.empty { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px; background: #f2f6fa; color: var(--ink); text-align: center; }
.approval-media.empty span { position: static; display: block; padding: 0; background: transparent; color: var(--ink-2); }
.approval-copy { min-width: 0; padding: 13px; }
.approval-context { margin-bottom: 10px; padding: 10px 11px; border-left: 3px solid var(--cyan); background: #f0f8fc; }
.approval-context span,
.approval-exact > span { display: block; margin-bottom: 5px; color: var(--ink-3); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.approval-context p { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.48; }
.approval-exact .apbody { max-height: 340px; margin: 0 0 11px; padding: 11px 12px; font-size: 12px; line-height: 1.58; }
.approval-list .apact { padding-top: 1px; }
.approval-list .apnote { min-width: 210px; flex: 1 1 260px; }
.approval-hold { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #efbec7; background: #fff2f4; color: var(--bad); font-size: 10px; }
.approval-empty { margin-top: 14px; padding: 28px 20px; border: 1px dashed #bfcfdd; border-radius: 7px; background: #f7fafc; text-align: center; }
.approval-empty b,
.approval-empty span { display: block; }
.approval-empty span { margin-top: 5px; color: var(--ink-2); font-size: 11px; }

@media (max-width: 760px) {
  .approval-titlebar,
  .approval-safety { display: block; }
  .approval-titlebar .btn { margin-top: 10px; }
  .approval-safety span { display: block; margin-top: 4px; text-align: left; }
  .approval-layout.with-media { grid-template-columns: 1fr; }
  .approval-media { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .approval-media img { max-height: 520px; min-height: 0; }
}

/* 2026-09-07 clarity pass: one visual story, explicit handoffs, and compact work queues */
.journey-focus { --journey-color: #00a7c7; min-width: 0; }
.journey-focus.inquiries { --journey-color: #5f93e8; }
.journey-focus.qualified { --journey-color: #00a7c7; }
.journey-focus.initial-auth { --journey-color: #6575c8; }
.journey-focus.starts { --journey-color: #00a889; }
.journey-selectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #f2f7fc;
}
.journey-selector {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 11px 13px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.journey-selector:first-child { border-left: 0; }
.journey-selector:hover { background: #eaf4fc; }
.journey-selector.on { background: #fff; box-shadow: inset 0 4px 0 var(--journey-color); }
.journey-selector > i { width: 8px; height: 32px; border-radius: 4px; background: #5f93e8; }
.journey-selector.qualified > i { background: #00a7c7; }
.journey-selector.initial-auth > i { background: #6575c8; }
.journey-selector.starts > i { background: #00a889; }
.journey-selector span,
.journey-selector b,
.journey-selector small { display: block; min-width: 0; }
.journey-selector b { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.journey-selector small { margin-top: 2px; overflow: hidden; color: var(--ink-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.journey-selector strong { font: 800 25px/1 var(--display); }
.journey-focus-panel { margin-top: 17px; }
.journey-focus-panel > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 0 3px 12px; border-bottom: 1px solid var(--line); }
.journey-focus-panel > header span,
.journey-focus-panel > header h3 { display: block; }
.journey-focus-panel > header span { color: var(--ink-3); font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.journey-focus-panel > header h3 { margin: 3px 0 0; font-size: 20px; }
.journey-focus-summary { display: flex; align-items: center; gap: 18px; }
.journey-focus-summary > span { min-width: 72px; text-align: right; }
.journey-focus-summary b,
.journey-focus-summary small { display: block; }
.journey-focus-summary b { color: var(--ink); font: 800 23px/1 var(--display); }
.journey-focus-summary small { margin-top: 3px; color: var(--ink-3); font-size: 8.5px; text-transform: none; }
.journey-focus-summary > strong { padding: 5px 8px; border-radius: 5px; background: #edf5fb; color: var(--ink-2); font-size: 9.5px; }
.journey-focus-summary > strong.up { background: #e8f8f3; color: var(--good); }
.journey-focus-summary > strong.down { background: #fff0f3; color: var(--bad); }
.journey-focus-panel svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.journey-latest-band { fill: rgba(23, 105, 224, .045); }
.journey-week-hit { fill: transparent; pointer-events: all; }
.journey-focus-mark { cursor: pointer; outline: none; }
.journey-focus-mark:hover .journey-week-hit,
.journey-focus-mark:focus-visible .journey-week-hit { fill: color-mix(in srgb, var(--journey-color) 9%, transparent); }
.journey-focus-mark:focus-visible .journey-week-hit { stroke: color-mix(in srgb, var(--journey-color) 55%, #10263d); stroke-width: 2; }
.journey-focus-bar { fill: var(--journey-color); opacity: .72; pointer-events: none; }
.journey-focus-mark.latest .journey-focus-bar { opacity: 1; }
.journey-focus-mark:hover .journey-focus-bar,
.journey-focus-mark:focus-visible .journey-focus-bar { opacity: 1; filter: saturate(1.2); }
.journey-value-label { fill: var(--ink); font-size: 11px; font-weight: 800; pointer-events: none; }
.journey-no-history { display: grid; place-items: center; min-height: 260px; margin-top: 6px; background: #f7fafc; text-align: center; }
.journey-no-history b,
.journey-no-history span { display: block; }
.journey-no-history span { max-width: 560px; margin-top: 5px; color: var(--ink-2); font-size: 11px; }

.hours-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid #c7dced;
  border-left: 4px solid var(--mint);
  border-radius: 7px;
  background: #f5fbfa;
}
.hours-import h3 { margin: 2px 0 4px; font-size: 17px; }
.hours-import p { max-width: 820px; margin: 0; color: var(--ink-2); font-size: 11px; }
.hours-import small { display: block; margin-top: 6px; color: var(--ink-3); }
.hours-import-preview { grid-column: 1 / -1; }
.cr-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 13px; border-top: 1px solid #cfe2df; }
.cr-preview-head h4 { margin: 1px 0 3px; font-size: 16px; }
.cr-preview-totals { display: grid; grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.cr-preview-totals span { padding: 9px 11px; border: 1px solid #cfe0e8; border-radius: 6px; background: #fff; color: var(--ink-3); font-size: 9px; }
.cr-preview-totals b { display: block; color: var(--ink); font-size: 17px; }
.cr-roster-preview { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 9px !important; padding: 8px 10px; border-left: 3px solid var(--mint); background: #edf9f5; }
.cr-roster-preview.review { border-left-color: #d99b2d; background: #fff8e9; }
.cr-roster-preview b { color: var(--ink); }
.cr-roster-preview span { color: var(--ink-2); }

.cancel-range { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 12px 0 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #f6faff; }
.cancel-range > div:first-child b,
.cancel-range > div:first-child small { display: block; }
.cancel-range > div:first-child b { font-size: 14px; }
.cancel-range > div:first-child small { color: var(--ink-3); font-size: 9.5px; }
.segmented { display: flex; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.segmented button { min-height: 35px; padding: 7px 11px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 750 10.5px/1.2 var(--display); cursor: pointer; }
.segmented button:first-child { border-left: 0; }
.segmented button:hover { background: #edf6fd; }
.segmented button.on { background: var(--accent); color: #fff; }

.group-workspace { padding-top: 15px; }
.group-queue-section + .group-queue-section { margin-top: 18px; }
.group-queue-title { display: flex; align-items: center; gap: 8px; margin: 12px 0 7px; color: var(--ink-2); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.group-queue-title b { display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 5px; background: #e9f2fa; color: var(--accent); }
.group-list { display: grid; gap: 7px; }
.groupcard.group-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 92px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 7px; background: #fff; }
.groupcard.group-row.join { border-left-color: #dda43a; }
.group-row-status { display: grid; gap: 6px; align-content: center; }
.group-row-status small { color: var(--ink-3); font-size: 9px; }
.group-row-main { min-width: 0; }
.group-row-main .grouphead b { margin: 0; font-size: 13px; }
.group-row-main p { margin: 4px 0; color: var(--ink-2); font-size: 10.5px; }
.group-row-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; color: var(--ink-3); font-size: 9px; }
.group-row-meta span + span::before { content: "·"; margin-right: 13px; }
.group-row .group-actions { justify-content: flex-end; max-width: 300px; margin: 0; }

.linkedin-network { border-top: 4px solid #3974d7; }
.network-summary { min-width: 110px; padding: 9px 11px; border-radius: 6px; background: #ecf4ff; text-align: right; }
.network-summary b,
.network-summary span { display: block; }
.network-summary b { font: 800 24px/1 var(--display); }
.network-summary span { margin-top: 3px; color: var(--ink-3); font-size: 9px; }
.network-list { display: grid; gap: 8px; margin-top: 12px; }
.network-lanes { display: flex; gap: 6px; margin: 12px 0; padding-bottom: 4px; overflow-x: auto; }
.network-lanes button { flex: 0 0 auto; min-width: 96px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2); text-align: left; cursor: pointer; }
.network-lanes button:hover,
.network-lanes button.on { border-color: #79a9dc; background: #edf5ff; color: var(--accent); }
.network-lanes b,
.network-lanes span { display: block; }
.network-lanes b { font-size: 16px; }
.network-lanes span { margin-top: 2px; font-size: 9px; }
.network-discovery {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 2px 0 13px;
  padding: 10px;
  border: 1px solid #d4e3ef;
  border-radius: 6px;
  background: #f5faff;
}
.network-discovery > span {
  margin-right: 3px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.network-discovery .btn { min-height: 31px; padding: 7px 9px; background: #fff; }
.network-person { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-left: 4px solid #87a9cd; border-radius: 7px; background: #fbfdff; }
.network-person.ready { border-left-color: var(--mint); background: #f6fcfa; }
.network-person.approval { border-left-color: #e0a43b; }
.network-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #dcecff; color: #285d9d; font: 800 17px/1 var(--display); }
.network-person-main { min-width: 0; }
.network-person-main > div { display: flex; justify-content: space-between; gap: 12px; }
.network-person-main p { margin: 3px 0 7px; color: var(--ink-2); font-size: 10.5px; }
.network-role { display: inline-flex; margin-top: 4px; padding: 3px 6px; border-radius: 4px; background: #e8f2fb; color: #33698f; font-size: 8.5px; font-weight: 800; }
.network-person-main textarea { width: 100%; min-height: 58px; padding: 7px 9px; font-size: 11px; resize: vertical; }
.network-status { color: var(--ink-3); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.network-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 240px; }

.visual-rotation { margin-bottom: 13px; padding: 16px 18px; border: 1px solid #c9ddef; border-left: 4px solid var(--cyan); border-radius: 7px; background: #f5fbff; }
.visual-lanes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; margin: 10px 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.visual-lanes span { min-height: 62px; padding: 9px; border-left: 1px solid var(--line); color: var(--ink-2); font-size: 9.5px; }
.visual-lanes span:first-child { border-left: 0; }
.visual-lanes b { display: block; margin-bottom: 6px; color: var(--accent); font: 800 13px/1 var(--display); }

.approval-exact { display: block; }
.approval-exact textarea.apbody-edit { display: block; width: 100%; max-height: none; min-height: 150px; resize: vertical; white-space: pre-wrap; }
.approval-handoff { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 4px 0 11px; padding: 11px 12px; border: 1px solid #bfe1d7; border-left: 4px solid var(--mint); border-radius: 6px; background: #f0faf7; }
.approval-handoff b,
.approval-handoff span { display: block; }
.approval-handoff span { margin-top: 2px; color: var(--ink-2); font-size: 9.5px; }
.voice-interview-dialog > footer .voice-done { min-width: 165px; }

@media (max-width: 980px) {
  .social-command-banner { grid-template-columns: 1fr; }
  .social-channel-board { grid-template-columns: 1fr; }
  .journey-selectors { grid-template-columns: 1fr 1fr; }
  .journey-selector:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .journey-selector:nth-child(4) { border-top: 1px solid var(--line); }
  .groupcard.group-row { grid-template-columns: 82px minmax(0, 1fr); }
  .group-row .group-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; padding-left: 96px; }
  .visual-lanes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visual-lanes span:nth-child(5) { border-left: 0; }
  .visual-lanes span:nth-child(n+5) { border-top: 1px solid var(--line); }
  .network-person { grid-template-columns: 42px minmax(0, 1fr); }
  .network-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
}
@media (max-width: 680px) {
  .social-command-actions { grid-template-columns: 1fr; }
  .social-command-actions button { border-top: 1px solid var(--line); border-left: 0; }
  .social-command-actions button:first-child { border-top: 0; }
  .channel-desk-main { grid-template-columns: 125px minmax(0, 1fr); }
  .journey-selectors { grid-template-columns: 1fr; }
  .journey-selector,
  .journey-selector:nth-child(3),
  .journey-selector:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .journey-selector:first-child { border-top: 0; }
  .journey-focus-panel > header,
  .cr-preview-head,
  .cancel-range,
  .approval-handoff { display: block; }
  .journey-focus-summary { justify-content: space-between; margin-top: 11px; }
  .journey-focus-summary > strong { display: none; }
  .hours-import { grid-template-columns: 1fr; }
  .hours-import .btn { width: 100%; }
  .cr-preview-head .btn { margin-top: 10px; }
  .cr-preview-totals { grid-template-columns: 1fr 1fr; }
  .cr-preview-totals span:first-child { grid-column: 1 / -1; }
  .hours-roster-check.aligned,
  .hours-roster-check.review > summary { align-items: flex-start; }
  .hours-roster-lists { grid-template-columns: 1fr; }
  .hours-roster-lists ul { columns: 1; }
  .client-holding-facts { grid-template-columns: 1fr; }
  .segmented { display: grid; grid-template-columns: 1fr 1fr; margin-top: 9px; }
  .segmented button { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .segmented button:nth-child(-n+2) { border-top: 0; }
  .segmented button:nth-child(odd) { border-left: 0; }
  .groupcard.group-row { grid-template-columns: 1fr; }
  .group-row .group-actions { grid-column: auto; padding-left: 0; }
  .visual-lanes { grid-template-columns: 1fr 1fr; }
  .visual-lanes span:nth-child(odd) { border-left: 0; }
  .visual-lanes span:nth-child(n+3) { border-top: 1px solid var(--line); }
  .network-person { grid-template-columns: 36px minmax(0, 1fr); }
  .network-avatar { width: 36px; height: 36px; }
  .network-actions { grid-column: 1 / -1; }
  .voice-interview-dialog > footer .voice-done { grid-column: 1 / -1; }
}
/* Approval-to-publishing: simple daily social workflow. */
.growthnav {
  grid-template-columns: repeat(7, minmax(112px, 1fr));
}

.simple-publish-actions {
  align-items: center;
  gap: 10px;
}

.simple-publish-actions .apnote {
  min-width: 220px;
  flex: 1 1 260px;
}

.approval-publishing {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.publish-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid #cbd9eb;
  border-left: 4px solid #6c83ad;
  background: #f6f9fd;
}

.publish-state > div:first-child {
  display: grid;
  gap: 4px;
}

.publish-state > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.publish-state b {
  color: #08244b;
  font-size: 14px;
}

.publish-state span {
  color: #4b6181;
  font-size: 13px;
  line-height: 1.45;
}

.publish-state.queued,
.publish-state.publishing {
  border-left-color: #4662e8;
  background: #f2f5ff;
}

.publish-state.published {
  border-left-color: #07957a;
  background: #effaf7;
}

.publish-state.waiting {
  border-left-color: #d49317;
  background: #fff9ec;
}

.publish-state.failed {
  border-left-color: #d5445c;
  background: #fff3f5;
}

.publish-state.facebook {
  border-left-color: #1877f2;
  background: #f1f7ff;
}

.linkedin-setup {
  margin-top: 22px;
  border: 1px solid #b9cbed;
  border-top: 4px solid #0a66c2;
  background: #f8fbff;
}

.linkedin-setup > header,
.linkedin-setup.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
}

.linkedin-setup h3 {
  margin: 3px 0 5px;
  color: #08244b;
  font-size: 21px;
}

.linkedin-setup p {
  margin: 0;
  max-width: 760px;
  color: #4a6080;
  line-height: 1.55;
}

.setup-time {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #b9cbed;
  color: #294f85;
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.linkedin-setup ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0 22px 20px;
  list-style: none;
  counter-reset: linkedin-step;
}

.linkedin-setup li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 170px;
  padding: 46px 18px 16px;
  border-left: 1px solid #d4e0f1;
  counter-increment: linkedin-step;
}

.linkedin-setup li:first-child {
  border-left: 0;
}

.linkedin-setup li::before {
  content: counter(linkedin-step);
  position: absolute;
  top: 8px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #0a66c2;
  font-weight: 800;
}

.linkedin-setup li b {
  color: #0a2348;
  font-size: 14px;
}

.linkedin-setup li span {
  flex: 1 1 auto;
  margin: 6px 0 12px;
  color: #526783;
  font-size: 12px;
  line-height: 1.5;
}

.linkedin-callback {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-top: 1px solid #d4e0f1;
  background: #eef5fd;
}

.linkedin-callback span {
  flex: 0 0 auto;
  color: #395475;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.linkedin-callback code {
  overflow-wrap: anywhere;
  color: #0a4078;
  font-size: 12px;
}

.linkedin-connect-prompt {
  border-left: 4px solid #0a66c2;
  background: #f2f7fd;
}

@media (max-width: 1100px) {
  .growthnav { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .linkedin-setup ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linkedin-setup li:nth-child(3) { border-left: 0; border-top: 1px solid #d4e0f1; }
  .linkedin-setup li:nth-child(4) { border-top: 1px solid #d4e0f1; }
}

@media (max-width: 680px) {
  .growthnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publish-state,
  .linkedin-setup > header,
  .linkedin-setup.compact { align-items: flex-start; flex-direction: column; }
  .publish-state > div:last-child { justify-content: flex-start; }
  .linkedin-setup ol { grid-template-columns: 1fr; }
  .linkedin-setup li { min-height: 0; border-left: 0; border-top: 1px solid #d4e0f1; }
  .linkedin-setup li:first-child { border-top: 0; }
  .linkedin-callback { align-items: flex-start; flex-direction: column; }
}

/* Workforce: the "Who is waiting" table is wide; stack it under BCBA capacity so no column is clipped. */
@media (max-width: 1799px) { .panel-grid:has(#card-gap) { grid-template-columns: minmax(0, 1fr); } }
