/* E28E — calm, editorial business OS */
:root {
  --bg: oklch(98.4% 0.005 85);
  --bg-2: oklch(96.6% 0.008 85);
  --bg-3: oklch(94% 0.01 85);
  --ink: oklch(22% 0.01 80);
  --ink-2: oklch(38% 0.012 80);
  --ink-3: oklch(56% 0.012 80);
  --ink-4: oklch(72% 0.012 80);
  --line: oklch(89% 0.01 85);
  --line-2: oklch(82% 0.012 85);
  --accent: oklch(52% 0.13 145);     /* tweakable — default Marigold & Oak green */
  --accent-soft: oklch(52% 0.13 145 / 0.10);
  --accent-ink: oklch(96% 0.02 145);
  --positive: oklch(58% 0.13 150);
  --warn: oklch(68% 0.14 65);
  --danger: oklch(56% 0.17 25);

  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;

  --t-display: "Instrument Serif", "EB Garamond", Georgia, serif;
  --t-ui: "Geist", "Söhne", "Helvetica Neue", system-ui, sans-serif;
  --t-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

[data-theme="dark"] {
  --bg: oklch(20% 0.008 80);
  --bg-2: oklch(23% 0.009 80);
  --bg-3: oklch(27% 0.01 80);
  --ink: oklch(96% 0.005 85);
  --ink-2: oklch(82% 0.008 85);
  --ink-3: oklch(64% 0.01 85);
  --ink-4: oklch(48% 0.01 85);
  --line: oklch(32% 0.01 80);
  --line-2: oklch(40% 0.012 80);
  --accent-soft: oklch(60% 0.13 145 / 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--t-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* App shell */
.app {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.app[data-rail="collapsed"] { grid-template-columns: 64px 1fr; }
.app[data-assistant="open"] { grid-template-columns: 244px 1fr 380px; }
.app[data-rail="collapsed"][data-assistant="open"] { grid-template-columns: 64px 1fr 380px; }

@media (max-width: 900px) {
  .app, .app[data-rail="collapsed"], .app[data-assistant="open"], .app[data-rail="collapsed"][data-assistant="open"] {
    grid-template-columns: 1fr;
  }
  .rail { display: none; }
  .assistant-drawer { display: none; }
  .mobile-bar { display: flex; }
}

.mobile-bar { display: none; }

/* Rail */
.rail {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 12px;
  gap: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--t-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--t-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}
.brand-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}
.app[data-rail="collapsed"] .brand-name, .app[data-rail="collapsed"] .brand-sub,
.app[data-rail="collapsed"] .nav-label, .app[data-rail="collapsed"] .nav-section,
.app[data-rail="collapsed"] .rail-foot-name { display: none; }

.nav-section {
  font-size: 10.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  transition: background 120ms;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: var(--bg-3); color: var(--ink); }
.nav-item[data-active="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-item[data-active="true"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.nav-badge {
  margin-left: auto;
  font-size: 10.5px;
  background: var(--bg-3);
  color: var(--ink-2);
  padding: 1px 6px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.nav-badge[data-tone="accent"] { background: var(--accent-soft); color: var(--accent); }

.rail-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.rail-foot-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.rail-foot-name { font-size: 12.5px; color: var(--ink); line-height: 1.2; }
.rail-foot-name .role { color: var(--ink-3); font-size: 11px; display: block; }

/* Main */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.greeting { font-family: var(--t-display); font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.greeting .accent { color: var(--accent); }
.weather-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  width: 320px; max-width: 36vw;
  padding: 7px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 13px;
}
.search input { background: none; border: 0; outline: 0; flex: 1; min-width: 0; color: var(--ink); }
.kbd {
  font-family: var(--t-mono);
  font-size: 10.5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink-3);
  background: var(--bg);
}
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  position: relative;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

/* Canvas */
.canvas {
  padding: 24px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.canvas-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.h-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.h-title {
  font-family: var(--t-display);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
}
.h-sub { color: var(--ink-3); margin-top: 6px; font-size: 13.5px; max-width: 60ch; }

/* Glance row */
.glance {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
@media (max-width: 1100px) {
  .glance { grid-template-columns: 1fr 1fr; }
}
.glance-cell {
  background: var(--bg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 116px;
}
.glance-cell.feature {
  background: var(--bg-2);
}
.glance-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.glance-value {
  font-family: var(--t-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.glance-value small { font-family: var(--t-ui); font-size: 12px; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.glance-meta { font-size: 12px; color: var(--ink-3); }
.glance-meta .up { color: var(--positive); }
.glance-meta .down { color: var(--danger); }

.spark {
  margin-top: auto;
  height: 28px;
  width: 100%;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .bento { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card[data-tone="muted"] { background: var(--bg-2); }
.card-head {
  display: flex; align-items: center; gap: 10px;
}
.card-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.card-title .dotix {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.card-action {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 4px;
}
.card-action:hover { color: var(--ink); }

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
@media (max-width: 1200px) {
  .col-3 { grid-column: span 4; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 4; }
}
@media (max-width: 720px) {
  .col-2, .col-3, .col-4, .col-6 { grid-column: span 1; }
}

/* Inbox — pitch view: connected-channels strip + unified stream */
.ch-strip {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px;
}
.ch-strip-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-3);
  font-size: 12px; line-height: 1; white-space: nowrap; max-width: 100%;
}
.ch-chip > svg { flex-shrink: 0; }
.ch-chip-name { color: var(--ink); letter-spacing: -0.005em; }
.ch-chip-ok {
  display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%;
  background: var(--positive); color: #fff; flex-shrink: 0; margin-left: 1px;
}
.ch-strip-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.4; text-wrap: pretty;
}
.ch-strip-note svg { color: var(--positive); flex-shrink: 0; }

.inbox-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inbox-subhead-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.inbox-statefilter {
  display: inline-flex; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px;
}
.inbox-statefilter button {
  font-size: 11.5px; padding: 4px 11px; border-radius: 999px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 5px;
}
.inbox-statefilter button[data-active="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.sf-count { font-size: 10px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.inbox-statefilter button[data-active="true"] .sf-count { color: var(--accent); }

.inbox-suggest { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11.5px; color: var(--accent); }
.inbox-suggest svg { color: var(--accent); flex-shrink: 0; }
.inbox-suggest-text { color: var(--ink-2); font-style: italic; }

.inbox-list { display: flex; flex-direction: column; max-height: 330px; overflow-y: auto; margin-right: -6px; padding-right: 6px; }
.inbox-list::-webkit-scrollbar { width: 7px; }
.inbox-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
.inbox-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.inbox-item:first-child { border-top: 0; padding-top: 4px; }
.inbox-item.unread .inbox-name { font-weight: 600; color: var(--ink); }
.inbox-item.unread::before { content: ""; }
.inbox-channel {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.inbox-channel[data-ch="ig"] { background: oklch(96% 0.04 30); color: oklch(45% 0.18 25); border-color: oklch(88% 0.05 30); }
.inbox-channel[data-ch="fb"] { background: oklch(96% 0.04 240); color: oklch(40% 0.16 250); border-color: oklch(88% 0.04 240); }
.inbox-channel[data-ch="email"] { background: var(--bg-2); color: var(--ink-2); }
.inbox-name { font-size: 13px; color: var(--ink-2); }
.inbox-snippet { font-size: 12.5px; color: var(--ink-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.inbox-time { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.inbox-ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}
.inbox-tag-muted {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--ink-3);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 4px; margin-left: 6px;
  white-space: nowrap;
}
.inbox-flag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft);
  padding: 1px 7px; border-radius: 4px; margin-left: 6px;
  white-space: nowrap;
}

/* Agents */
.agent {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.agent:first-of-type { border-top: 0; }
.agent-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--t-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  position: relative;
}
.agent-mark .pulse {
  position: absolute; bottom: -2px; right: -2px;
  width: 10px; height: 10px;
  background: var(--positive);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.agent-mark .pulse[data-state="idle"] { background: var(--ink-4); }
.agent-name { font-size: 13px; color: var(--ink); }
.agent-task { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.agent-stat { font-size: 11px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }

/* Finances */
.fin-row { display: flex; gap: 16px; }
.fin-stat { flex: 1; min-width: 0; }
.fin-stat .v {
  font-family: var(--t-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.fin-stat .l { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.fin-bar {
  height: 6px; border-radius: 4px; background: var(--bg-3); overflow: hidden;
  display: flex; gap: 1px;
}
.fin-seg { height: 100%; }
.fin-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.fin-legend .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* Projects */
.proj { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.proj:first-of-type { border-top: 0; }
.proj-title { font-size: 13px; color: var(--ink); }
.proj-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.proj-stack { display: flex; }
.proj-stack .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -6px;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-size: 10px;
  color: var(--ink-2);
}
.proj-stack .av:first-child { margin-left: 0; }
.proj-progress {
  flex: 1; min-width: 0;
  height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden;
}
.proj-progress > div { height: 100%; background: var(--accent); }
.proj-pct { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }

/* Workflow */
.wf-list { display: flex; flex-direction: column; gap: 8px; }
.wf {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.wf-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.wf-name { font-size: 13px; }
.wf-flow { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; font-family: var(--t-mono); letter-spacing: -0.01em; }
.wf-status { font-size: 11px; }
.wf-status[data-on="true"] { color: var(--positive); }
.wf-status[data-on="false"] { color: var(--ink-3); }
.toggle {
  width: 28px; height: 16px; border-radius: 999px; background: var(--bg-3); position: relative; transition: background 160ms;
  flex-shrink: 0;
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); transition: left 160ms; box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}
.toggle[data-on="true"] { background: var(--accent); }
.toggle[data-on="true"]::after { left: 14px; }

/* Inventory */
.inv-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.inv-row:first-of-type { border-top: 0; }
.inv-name { font-size: 13px; flex: 1; }
.inv-bar { width: 80px; height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.inv-bar > div { height: 100%; background: var(--accent); }
.inv-bar.low > div { background: var(--warn); }
.inv-bar.empty > div { background: var(--danger); }
.inv-qty { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 50px; text-align: right; }

/* Employees */
.emp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.emp {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.emp-av {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-3);
  flex-shrink: 0;
  position: relative;
}
.emp-av .status {
  position: absolute; bottom: -1px; right: -1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--positive);
  border: 2px solid var(--bg-2);
}
.emp-av .status[data-s="off"] { background: var(--ink-4); }
.emp-name { font-size: 12.5px; line-height: 1.1; }
.emp-role { font-size: 11px; color: var(--ink-3); }

/* Integrations */
.intg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.intg {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.2;
  text-align: center;
  padding: 4px;
  position: relative;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
.intg[data-on="false"] { color: var(--ink-4); border-style: dashed; }
.intg .ok {
  position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--positive);
}

/* Notifications */
.card-warm {
  background: oklch(97.5% 0.022 75);
  border-color: oklch(89% 0.035 70);
}
[data-theme="dark"] .card-warm {
  background: oklch(28% 0.025 70);
  border-color: oklch(38% 0.04 70);
}
.card-title-strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.notif { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid oklch(89% 0.035 70); }
[data-theme="dark"] .notif { border-top-color: oklch(38% 0.04 70); }
.notif:first-of-type { border-top: 0; padding-top: 4px; }

/* Notifications horizontal strip (full-width banner) */
.card-notif-strip { gap: 12px; }
.notif-count {
  font-family: var(--t-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(45% 0.14 65);
  background: oklch(94% 0.05 75);
  border: 1px solid oklch(86% 0.06 70);
  padding: 2px 8px;
  border-radius: 999px;
}
[data-theme="dark"] .notif-count {
  color: oklch(85% 0.12 75);
  background: oklch(35% 0.08 65);
  border-color: oklch(45% 0.08 65);
}
.notif-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.notif-strip-item {
  display: flex;
  gap: 10px;
  padding: 4px 18px 4px 0;
  border-right: 1px solid oklch(89% 0.035 70);
  align-items: flex-start;
}
[data-theme="dark"] .notif-strip-item { border-right-color: oklch(38% 0.04 70); }
.notif-strip-item:last-child { border-right: 0; padding-right: 0; }
.notif-strip-item + .notif-strip-item { padding-left: 18px; }
.notif-strip-item .notif-dot { margin-top: 6px; }
@media (max-width: 1100px) {
  .notif-strip { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .notif-strip-item:nth-child(2n) { border-right: 0; padding-right: 0; }
  .notif-strip-item:nth-child(2n+1) { border-right: 1px solid oklch(89% 0.035 70); }
}
@media (max-width: 720px) {
  .notif-strip { grid-template-columns: 1fr; gap: 0; }
  .notif-strip-item { border-right: 0 !important; padding: 8px 0 !important; border-top: 1px solid oklch(89% 0.035 70); }
  .notif-strip-item:first-child { border-top: 0; }
}
.notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.notif-dot[data-tone="muted"] { background: var(--ink-4); }
.notif-text { font-size: 12.5px; color: var(--ink-2); }
.notif-time { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

/* Assistant drawer */
.assistant-drawer {
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.assistant-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.assistant-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--t-display);
  font-size: 14px;
  position: relative;
}
.assistant-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 11px;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0; }
}
.assistant-title { font-family: var(--t-display); font-size: 16px; line-height: 1; }
.assistant-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.assistant-close { margin-left: auto; }

.chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg { max-width: 90%; font-size: 13.5px; line-height: 1.5; }
.msg.bot { align-self: flex-start; color: var(--ink); }
.msg.bot .bubble {
  padding: 0;
  background: none;
}
.msg.user { align-self: flex-end; }
.msg.user .bubble {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 13px;
  border-radius: 14px 14px 4px 14px;
}
.msg-meta { font-size: 10.5px; color: var(--ink-4); margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.msg-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.msg-card-head {
  padding: 10px 12px 6px;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.msg-card-body { padding: 4px 12px 10px; font-size: 13px; }
.msg-card-row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.msg-card-row:first-child { border-top: 0; }
.msg-card-row .l { color: var(--ink-3); }

.suggested {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 16px 0;
  background: var(--bg-2);
}
.suggested-below {
  padding: 10px 16px 16px;
  border-top: 1px solid var(--line);
}
.suggest {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--ink-2);
  display: inline-flex; gap: 6px; align-items: center; align-self: flex-start;
}
.suggest:hover { border-color: var(--line-2); color: var(--ink); }

.composer {
  padding: 10px 16px 16px;
  border-top: 0;
  background: var(--bg-2);
}
.composer-top {
  padding: 14px 16px 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.suggested-below {
  padding: 12px 16px 4px;
  border-top: 0;
  background: var(--bg-2);
}
.chat[data-empty="true"] {
  flex: 0;
  padding: 0;
}
.composer-box {
  display: flex; align-items: end; gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.composer-box:focus-within { border-color: var(--line-2); }
.composer-box textarea {
  flex: 1; resize: none; border: 0; outline: 0; background: none;
  font-size: 13.5px; line-height: 1.45;
  min-height: 18px; max-height: 120px;
}
.composer-send {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.composer-send[disabled] { background: var(--bg-3); color: var(--ink-4); cursor: not-allowed; }
.composer-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--ink-4); }
.scope-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-3);
}
.scope-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Typing indicator */
.typing { display: inline-flex; gap: 3px; padding: 4px 0; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Mobile bar (preview, not focused) */
.mobile-bar {
  display: none;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:hover { background: var(--bg-2); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); }
.btn.ghost { border-color: transparent; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* Role tabs (top of canvas) */
.role-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.role-toggle button {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-3);
}
.role-toggle button[data-active="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

/* Calendar / today list */
.day {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.day:first-of-type { border-top: 0; }
.day-time { font-family: var(--t-mono); font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
.day-title { font-size: 13px; color: var(--ink); }
.day-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.day .pill {
  display: inline-block;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  letter-spacing: 0.02em;
}
.pill.green { background: oklch(94% 0.04 150); color: oklch(40% 0.13 150); }
.pill.amber { background: oklch(94% 0.05 75); color: oklch(45% 0.14 65); }
.pill.blue { background: oklch(94% 0.04 240); color: oklch(40% 0.14 250); }
.pill.gray { background: var(--bg-3); color: var(--ink-2); }
[data-theme="dark"] .pill.green { background: oklch(35% 0.07 150); color: oklch(85% 0.1 150); }
[data-theme="dark"] .pill.amber { background: oklch(35% 0.08 65); color: oklch(85% 0.12 75); }
[data-theme="dark"] .pill.blue { background: oklch(35% 0.07 250); color: oklch(85% 0.1 240); }

/* Employee task */
.task {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.task:first-of-type { border-top: 0; }
.task-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.25px solid var(--line-2);
  margin-top: 1px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.task[data-done="true"] .task-check { background: var(--accent); border-color: var(--accent); }
.task-title { font-size: 13.5px; color: var(--ink); }
.task[data-done="true"] .task-title { text-decoration: line-through; color: var(--ink-3); }
.task-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task-priority { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; }

/* Density */
[data-density="cozy"] .card { padding: 14px; gap: 10px; }
[data-density="cozy"] .canvas { gap: 16px; padding: 18px 22px 60px; }
[data-density="cozy"] .glance-cell { padding: 14px 16px; min-height: 96px; }

/* Smaller things */
.tiny-link { font-size: 11.5px; color: var(--ink-3); }
.tiny-link:hover { color: var(--ink); }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   AI-Native view
   ============================================================ */

.view-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.view-toggle button {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.view-toggle button[data-active="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.view-toggle button[data-active="true"] .vt-dot {
  background: var(--accent);
}
.vt-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-4);
}

.ai-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 0;
  height: calc(100vh - 65px);
  min-height: 600px;
  background: var(--bg);
}
@media (max-width: 1100px) {
  .ai-shell { grid-template-columns: 220px 1fr 220px; }
}
@media (max-width: 900px) {
  .ai-shell { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .ai-rail { display: none; }
}

.ai-rail {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.ai-rail-right {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.ai-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.ai-panel-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.ai-panel-meta {
  font-family: var(--t-mono);
  font-size: 10.5px;
  color: var(--ink-4);
}

/* Today list (left rail) */
.ai-today { display: flex; flex-direction: column; }
.ai-today-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.ai-today-row:first-child { border-top: 0; }
.ai-today-time {
  font-family: var(--t-mono);
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 2px;
}
.ai-today-title { font-size: 12.5px; color: var(--ink); line-height: 1.3; }
.ai-today-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* Activity ticker */
.ai-ticker { display: flex; flex-direction: column; }
.ai-ticker-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
}
.ai-ticker-row:first-child { border-top: 0; }
.ai-ticker-time {
  font-family: var(--t-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  padding-top: 2px;
}
.ai-ticker-text { font-size: 12px; color: var(--ink-2); line-height: 1.35; }

/* Pulse / Hours metrics */
.ai-pulse { display: flex; flex-direction: column; }
.ai-pulse-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.ai-pulse-row:first-child { border-top: 0; }
.ai-pulse-label {
  font-size: 11.5px;
  color: var(--ink-3);
}
.ai-pulse-value {
  font-family: var(--t-display);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ai-pulse-sub {
  font-family: var(--t-ui);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0;
}
.ai-pulse-delta {
  font-family: var(--t-ui);
  font-size: 11px;
  margin-left: 4px;
  letter-spacing: 0;
}
.ai-pulse-delta.up { color: var(--positive); }
.ai-pulse-delta.down { color: var(--danger); }

/* Crew list */
.ai-crew { display: flex; flex-direction: column; gap: 8px; }
.ai-crew-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-crew-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--ink-2);
  position: relative;
  flex-shrink: 0;
}
.ai-crew-status {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--positive);
  border: 2px solid var(--bg-2);
}
.ai-crew-status[data-s="off"] { background: var(--ink-4); }
.ai-crew-name { font-size: 12.5px; color: var(--ink); line-height: 1.1; }
.ai-crew-role { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* Center column */
.ai-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.ai-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 32px;
}
.ai-thread-inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Hero briefing */
.ai-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-hero-eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.ai-hero-greet {
  font-family: var(--t-display);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.ai-hero-greet .accent { color: var(--accent); font-style: italic; }
.ai-hero-lede {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}
.ai-hero-updates {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-hero-updates li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
}
.ai-bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  display: block;
}
.ai-update-title {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 500;
}
.ai-update-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Messages */
.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.ai-msg { display: flex; flex-direction: column; max-width: 100%; }
.ai-msg-user {
  align-self: flex-end;
  max-width: 80%;
}
.ai-msg-user .ai-msg-body {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.ai-msg-bot { align-self: stretch; }
.ai-msg-tag {
  font-family: var(--t-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.ai-msg-bot .ai-msg-body {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}
.ai-msg-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
}
.ai-msg-card-head {
  padding: 10px 14px 6px;
  font-family: var(--t-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ai-msg-card-body { padding: 4px 14px 10px; font-size: 13px; }
.ai-msg-card-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.ai-msg-card-row:first-child { border-top: 0; }
.ai-msg-card-row .l { color: var(--ink-3); }
.ai-msg-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Composer inline within the thread (empty state) */
.ai-composer-inline .ai-composer-wrap {
  padding: 0;
  background: none;
  border-top: 0;
}
.ai-composer-inline .ai-composer {
  background: var(--bg);
  border-color: var(--line-2);
}

/* Suggestion chips — inline below briefing in empty state */
.ai-chips-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 120ms, color 120ms, background 120ms;
}
.ai-chip:hover {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--bg-2);
}
.ai-chip-sm {
  padding: 5px 10px;
  font-size: 12px;
  background: var(--bg);
}

/* Composer */
.ai-composer-wrap {
  padding: 12px 32px 18px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.ai-composer {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 120ms;
}
.ai-composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ai-composer textarea {
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 22px;
  max-height: 140px;
  font-family: var(--t-ui);
}
.ai-composer-send {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 120ms;
}
.ai-composer-send:hover:not([disabled]) { background: var(--accent); color: var(--accent-ink); }
.ai-composer-send[disabled] {
  background: var(--bg-3);
  color: var(--ink-4);
  cursor: not-allowed;
}
.ai-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-4);
}
.ai-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
}
.ai-scope-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.ai-composer-hint {
  font-family: var(--t-mono);
  font-size: 10.5px;
  color: var(--ink-4);
}

@media (max-width: 700px) {
  .ai-hero-greet { font-size: 36px; }
  .ai-thread { padding: 18px 18px; }
  .ai-chips-row { padding: 10px 18px; }
  .ai-composer-wrap { padding: 10px 18px 14px; }
}

/* ============================================================
   V2 refinements — While-you-slept, Approvals, empty states,
   reassurance, plain-English automations, quiet connections
   ============================================================ */

/* "While you slept" money hero (replaces 4-stat glance) */
.recap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--bg-2);
}
@media (max-width: 1100px) { .recap { grid-template-columns: 1fr; gap: 22px; } .recap-items { margin-top: 2px; } }
.recap-lead-wrap { display: flex; flex-direction: column; gap: 10px; }
.recap-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--t-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.recap-eyebrow svg { color: var(--accent); }
.recap-lead {
  font-family: var(--t-display);
  font-size: 34px; line-height: 1.12; letter-spacing: -0.015em;
  color: var(--ink); font-weight: 400; margin: 0; text-wrap: pretty;
}
.recap-lead .accent { color: var(--accent); }
.recap-lead-muted { color: var(--ink-2); }
.recap-lead-muted .accent { font-style: italic; }
.recap-sub { font-size: 13px; color: var(--ink-3); line-height: 1.5; max-width: 46ch; margin: 0; text-wrap: pretty; }
.recap-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.recap-legend span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-4); }
.recap-legend-sw { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.recap-legend-sw[data-tone="warn"] { background: var(--warn); }
.recap-items { display: flex; flex-direction: column; align-self: center; }
.recap-item {
  display: grid; grid-template-columns: 1fr auto auto; column-gap: 14px;
  align-items: center; width: 100%; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line);
  padding: 11px 8px; cursor: pointer; transition: background 120ms;
}
.recap-item:first-child { border-top: 0; }
.recap-item:hover { background: var(--bg-3); }
.recap-item-did { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--ink); }
.recap-item-arrow { grid-column: 1; grid-row: 2; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.recap-item-val {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  font-family: var(--t-mono); font-size: 13px; color: var(--accent); white-space: nowrap;
}
.recap-item-val small {
  font-family: var(--t-ui); font-size: 9.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-4);
}
.recap-item[data-tone="warn"] .recap-item-val { color: var(--warn); }
.recap-item-chev {
  grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--ink-4);
  opacity: 0; transform: translateX(-2px); transition: opacity 120ms, transform 120ms;
}
.recap-item:hover .recap-item-chev { opacity: 1; transform: translateX(0); }
.recap-empty { align-items: center; }
.recap-empty-meter { align-self: center; text-align: right; padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .recap-empty-meter { border-left: 0; padding-left: 0; text-align: left; } }
.recap-empty-meter-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
.recap-empty-meter-val { font-family: var(--t-display); font-size: 34px; color: var(--ink-3); margin-top: 4px; }
.recap-empty-meter-val small { font-family: var(--t-ui); font-size: 12px; color: var(--ink-4); margin-left: 6px; }

/* Approvals — the calm command lane */
.card-approvals { background: var(--bg-2); border-color: var(--line-2); }
.card-approvals .card-head { flex-wrap: wrap; row-gap: 4px; }
.approvals-list { display: flex; flex-direction: column; gap: 10px; }
.approval {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: opacity 160ms;
}
.approval[data-resolved="dismissed"] { opacity: 0.55; }
.approval-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
}
.approval-title { font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-amount {
  font-family: var(--t-mono); font-size: 12px; color: var(--accent);
  background: var(--accent-soft); padding: 1px 7px; border-radius: 5px;
}
.approval-detail { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; text-wrap: pretty; }
.approval-actions { display: flex; gap: 8px; }
.btn.approve { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.approve:hover { filter: brightness(1.06); background: var(--accent); }
.btn.dismiss { color: var(--ink-3); }
.approval-done { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--positive); white-space: nowrap; }
.approval-done[data-verb="dismissed"] { color: var(--ink-4); }
.approval-undo {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px;
}
.approval-undo:hover { color: var(--ink); background: var(--bg-2); }
.approvals-clear {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3);
  padding: 16px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 12px;
}
.approvals-clear svg { color: var(--positive); flex-shrink: 0; }
@media (max-width: 760px) {
  .approval { grid-template-columns: 32px 1fr; }
  .approval-actions, .approval-done { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Reassurance cue */
.reassure {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.4;
}
.reassure svg { color: var(--accent); flex-shrink: 0; }
.reassure-inline { margin-left: auto; max-width: 60%; }
@media (max-width: 760px) { .reassure-inline { max-width: none; margin-left: 0; } }

/* Calm first-run placeholders */
.card-empty { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 2px; }
.card-empty-rows { display: flex; flex-direction: column; gap: 11px; }
.ce-row { display: flex; align-items: center; gap: 11px; }
.ce-dot { width: 18px; height: 18px; border-radius: 6px; background: var(--bg-3); flex-shrink: 0; animation: ce-pulse 2.6s ease-in-out infinite; }
.ce-bar { height: 8px; border-radius: 4px; background: var(--bg-3); animation: ce-pulse 2.6s ease-in-out infinite; }
.ce-row:nth-child(2) .ce-dot, .ce-row:nth-child(2) .ce-bar { animation-delay: 0.3s; }
.ce-row:nth-child(3) .ce-dot, .ce-row:nth-child(3) .ce-bar { animation-delay: 0.6s; }
.card-empty-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; text-wrap: pretty; }
@keyframes ce-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Communications honesty footnote */
.inbox-foot {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11px; color: var(--ink-4); line-height: 1.4;
  padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line);
}
.inbox-foot strong { color: var(--ink-3); font-weight: 600; }
.inbox-foot svg { color: var(--ink-3); flex-shrink: 0; margin-top: 1px; }

/* Automations — plain English, no diagram */
.auto-list { display: flex; flex-direction: column; }
.auto {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 11px 0; border-top: 1px solid var(--line); align-items: start;
}
.auto:first-child { border-top: 0; padding-top: 2px; }
.auto-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.auto-name { font-size: 13px; color: var(--ink); }
.auto-plain { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; text-wrap: pretty; }
.auto-foot { font-size: 11.5px; color: var(--ink-4); padding-top: 11px; margin-top: 8px; border-top: 1px solid var(--line); }

/* Connected — quiet reassurance (was Integrations) */
.card-connected { background: var(--bg-2); }
.card-title-quiet { color: var(--ink-2); font-weight: 500; }
.card-title-quiet svg { color: var(--positive); }
.connected-note { font-size: 12px; color: var(--ink-3); line-height: 1.45; text-wrap: pretty; }
.connected-list { display: flex; flex-wrap: wrap; gap: 6px; }
.connected-chip {
  font-size: 11px; color: var(--ink-3); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}

/* Optional / per-vertical card label */
.card-optional {
  font-size: 10.5px; color: var(--ink-4); font-weight: 400;
  letter-spacing: 0; text-transform: none;
}

/* Inventory laid out 2-up when shown as full-width opt-in */
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 720px) { .inv-grid { grid-template-columns: 1fr; gap: 0; } }
.inv-grid .inv-row { border-top: 1px solid var(--line); }
.inv-grid .inv-row:first-of-type { border-top: 1px solid var(--line); }
@media (min-width: 721px) {
  .inv-grid .inv-row:nth-child(1), .inv-grid .inv-row:nth-child(2) { border-top: 0; }
}
@media (max-width: 720px) { .inv-grid .inv-row:first-of-type { border-top: 0; } }

/* ── AI-native additions ── */
.ai-reassure {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3); line-height: 1.4;
  padding: 11px 13px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; margin-top: 4px;
}
.ai-reassure svg { color: var(--accent); flex-shrink: 0; }

.ai-recap-banner {
  border: 1px solid var(--line-2); border-radius: 14px;
  padding: 18px 20px; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 12px;
}
.ai-recap-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--t-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.ai-recap-eyebrow svg { color: var(--accent); }
.ai-recap-big {
  font-family: var(--t-display); font-size: 30px; line-height: 1.16;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty;
}
.ai-recap-big .accent { color: var(--accent); font-style: italic; }
.ai-recap-line { font-size: 13px; color: var(--ink-3); line-height: 1.5; text-wrap: pretty; margin-top: 2px; }
.ai-recap-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ai-recap-pill {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 9px 28px 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); text-align: left; cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
.ai-recap-pill:hover { border-color: var(--line-2); background: var(--bg-2); }
.ai-recap-pill-did { font-size: 11.5px; color: var(--ink-2); }
.ai-recap-pill-val { font-family: var(--t-mono); font-size: 12.5px; color: var(--accent); }
.ai-recap-pill-cat {
  font-family: var(--t-ui); font-size: 9.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-4); margin-left: 4px;
}
.ai-recap-pill[data-tone="warn"] .ai-recap-pill-val { color: var(--warn); }
.ai-recap-pill-chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--ink-4); }
.ai-recap-foot { font-size: 11px; color: var(--ink-4); line-height: 1.4; }

.ai-onboard-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.ai-onboard-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ai-onboard-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  font-family: var(--t-mono); font-size: 12px; color: var(--ink-2);
}
.ai-onboard-step-t { font-size: 14px; color: var(--ink); font-weight: 500; }
.ai-onboard-step-s { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; text-wrap: pretty; }

.ai-payroll-note {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11px; color: var(--ink-4); line-height: 1.4;
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line);
}
.ai-payroll-note svg { color: var(--ink-3); flex-shrink: 0; margin-top: 1px; }

.ai-wait { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.ai-wait-bar { height: 8px; border-radius: 4px; background: var(--bg-3); animation: ce-pulse 2.6s ease-in-out infinite; }
.ai-wait-bar:nth-child(2) { animation-delay: 0.3s; }
.ai-wait-bar:nth-child(3) { animation-delay: 0.6s; }
.ai-wait-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; margin-top: 4px; text-wrap: pretty; }

/* Drawer assistant reassurance */
.assistant-reassure {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--ink-4); margin-top: 8px; line-height: 1.4;
}
.assistant-reassure svg { color: var(--accent); flex-shrink: 0; }

/* Day 1 — Communications connect states */
.connect-block { display: flex; flex-direction: column; gap: 12px; }
.connect-list { display: flex; flex-direction: column; }
.connect-row {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.connect-row:first-child { border-top: 0; padding-top: 2px; }
.connect-name { font-size: 13px; color: var(--ink); }
.connect-note { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; text-wrap: pretty; }
.connect-req { font-size: 10.5px; color: var(--ink-4); margin-top: 3px; line-height: 1.4; }
.connect-btn { white-space: nowrap; }

/* Recap-row navigation flash on the destination card */
.card-flash { animation: card-flash 1.7s ease; }
@keyframes card-flash {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  12% { box-shadow: 0 0 0 3px var(--accent-soft); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ============================================================
   Employee parity — scoped recap, accept lane, live agent, pay
   ============================================================ */

/* Employee recap rows are informational (not navigation doorways) */
.recap-item-static { cursor: default; }
.recap-item-static:hover { background: none; }
.recap-done {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}

/* Schedule Optimizer — alive */
.emp-agent-summary { font-size: 13px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.emp-agent-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1200px) { .emp-agent-split { grid-template-columns: 1fr; gap: 12px; } }
.emp-agent-h {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.emp-agent-item {
  display: grid; grid-template-columns: 12px 1fr; gap: 8px; align-items: start;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.4; padding: 4px 0;
}
.emp-agent-dot {
  width: 6px; height: 6px; border-radius: 50%; margin-top: 6px;
  background: var(--ink-4); box-shadow: 0 0 0 3px var(--bg-2);
}
.emp-agent-dot[data-done="true"] { background: var(--positive); }
.emp-agent-foot { display: flex; gap: 8px; flex-wrap: wrap; }

/* Hours & pay (scoped, read-only) */
.emp-pay { display: flex; flex-direction: column; }
.emp-pay-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.emp-pay-row:first-child { border-top: 0; }
.emp-pay-row .l { font-size: 12px; color: var(--ink-3); }
.emp-pay-row .v { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.emp-payroll-note {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 10.5px; color: var(--ink-4); line-height: 1.4;
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line);
}
.emp-payroll-note svg { color: var(--ink-3); flex-shrink: 0; margin-top: 1px; }

/* Team messages polish */
.emp-team-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--ink-3); background: var(--bg-2);
  border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px;
}
.emp-team-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 10.5px; color: var(--ink-2);
  font-family: var(--t-mono); flex-shrink: 0;
}
.inbox-item .emp-team-av { grid-column: 1; }

/* Employee assistant — recap pills (time/busywork, no $) */
.ai-recap-pill-emp .ai-recap-pill-val {
  font-family: var(--t-ui); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0;
}

/* Employee assistant — proposal (propose → accept) */
.ai-emp-proposal {
  border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px;
  background: var(--bg-2); display: flex; flex-direction: column; gap: 12px;
}
.ai-emp-proposal-top { display: flex; gap: 10px; align-items: flex-start; }
.ai-emp-proposal-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
}
.ai-emp-proposal-title { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.ai-emp-proposal-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.ai-emp-proposal-actions { display: flex; gap: 8px; }
.ai-chip-accept { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ai-chip-accept:hover { background: var(--accent); filter: brightness(1.06); color: var(--accent-ink); }
.ai-emp-control {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.4;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.ai-emp-control svg { color: var(--accent); flex-shrink: 0; }
.ai-onboard .ai-emp-control { border-top: 0; padding-top: 0; margin-top: 4px; }

/* ============================================================
   Section placeholders — calm "coming online" screens
   ============================================================ */
.section-ph { padding: 64px 32px 80px; display: flex; justify-content: center; }
.section-ph-inner { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; }
.section-ph-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.section-ph-eyebrow svg { color: var(--accent); }
.section-ph-title {
  font-family: var(--t-display); font-size: 44px; line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 400; color: var(--ink); margin: 14px 0 0;
}
.section-ph-desc {
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
  margin: 14px 0 0; max-width: 46ch; text-wrap: pretty;
}
.section-ph-skeleton {
  width: 100%; margin: 32px 0 0; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-2);
  display: flex; flex-direction: column; gap: 18px;
}
.section-ph-skeleton .sk-rows { display: flex; flex-direction: column; gap: 12px; }
.section-ph-skeleton .sk-bar {
  height: 10px; border-radius: 5px; background: var(--bg-3);
  animation: ce-pulse 2.6s ease-in-out infinite;
}
.section-ph-skeleton .sk-bar:nth-child(2) { animation-delay: 0.3s; }
.section-ph-skeleton .sk-bar:nth-child(3) { animation-delay: 0.6s; }
.section-ph-skeleton .sk-panel {
  position: relative; height: 132px; border-radius: 10px;
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--bg-3) 0, var(--bg-3) 1px,
    transparent 1px, transparent 11px
  );
}
.section-ph-skeleton .sk-panel-tag {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-4); background: var(--bg-2); padding: 2px 8px; border-radius: 5px;
}
.section-ph-honesty {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-3); margin: 22px 0 0;
}
.section-ph-honesty svg { color: var(--accent); flex-shrink: 0; }
.section-ph-ask { margin: 22px 0 0; min-height: 40px; }

/* ── Integrations / Connectors screen (connectors.jsx) ──────────────────── */
.intg-screen { gap: 20px; }

/* Logo chip */
.intg-logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
}
.intg-logo-lg { width: 52px; height: 52px; border-radius: 13px; }

/* Connected status pill + dot */
.intg-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--accent);
}
.intg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Featured (Gmail) */
.intg-featured {
  flex-direction: row; gap: 28px; align-items: stretch; padding: 22px;
}
.intg-featured[data-connected="yes"] { box-shadow: inset 0 0 0 1px var(--accent-soft); }
.intg-featured-main { display: flex; gap: 16px; flex: 1; min-width: 0; }
.intg-featured-body { min-width: 0; }
.intg-featured-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.intg-featured-name { font-family: var(--t-display); font-size: 22px; color: var(--ink); line-height: 1; }
.intg-tag {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 8px; border-radius: 999px;
}
.intg-featured-blurb { color: var(--ink-2); font-size: 13.5px; margin: 10px 0 14px; max-width: 52ch; line-height: 1.5; }
.intg-perms { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.intg-perm { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.intg-perm[data-ok="yes"] svg { color: var(--accent); }
.intg-perm[data-ok="no"]  svg { color: var(--ink-4); }
.intg-perm[data-ok="no"] { color: var(--ink-3); }

/* Featured side panel */
.intg-featured-side {
  width: 260px; flex-shrink: 0; border-left: 1px solid var(--line); padding-left: 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.intg-connect-panel { display: flex; flex-direction: column; gap: 12px; }
.intg-connect-cta { justify-content: center; padding: 10px 14px; font-size: 13px; }
.intg-auth-note { display: flex; gap: 7px; font-size: 11px; color: var(--ink-3); line-height: 1.45; }
.intg-auth-note svg { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.intg-connected-panel { display: flex; flex-direction: column; gap: 12px; }
.intg-connected-acct-label { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 3px; }
.intg-connected-acct-val { font-size: 13px; color: var(--ink); font-family: var(--t-mono); }
.intg-synced { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.intg-synced svg { color: var(--accent); }
.intg-disconnect { align-self: flex-start; color: var(--ink-3); }

/* Category groups + grid */
.intg-group { display: flex; flex-direction: column; gap: 12px; }
.intg-group-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.intg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px;
}
.intg-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 150px;
}
.intg-card[data-connected="yes"] { border-color: var(--line-2); }
.intg-card-top { display: flex; align-items: center; justify-content: space-between; }
.intg-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.intg-blurb { font-size: 12px; color: var(--ink-3); line-height: 1.45; flex: 1; }
.intg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.intg-account { font-size: 11px; color: var(--ink-3); font-family: var(--t-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer reassurance */
.intg-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 12px; color: var(--ink-3);
}
.intg-foot svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .intg-featured { flex-direction: column; gap: 18px; }
  .intg-featured-side { width: auto; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
}
