/* ═══════════════════════════════════════════════════════════════
   whatcould.ai CRM — styles
   Fresh Mint palette, ported from the whatcould.ai marketing site
   (v03, 1 Sep 2026 rebrand). Ink text on paper cream, Inter Tight
   throughout (italic 400 handles accent role), deep sage (#4E7A62)
   as the primary accent, light sage (#A9C7B4) for hover/interaction.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg:            #FBFDFA;   /* PAPER — page background */
  --surface:       #FDFEFC;   /* elevated cards */
  --surface-2:     #F1F5EF;   /* CREAM — inputs / recessed */
  --line:          #d2ddd1;   /* CARD-BORDER — stronger rule */
  --line-2:        #E9F0E8;   /* LINEN — softer rule / bands */

  /* Ink */
  --cream:         #253129;   /* INK — primary text on paper (legacy name, now dark) */
  --cream-2:       #4F5D55;   /* INK-MUTED — secondary text */
  --muted:         #84908A;   /* mid-grey muted */
  --faint:         #B4C0B6;   /* CREAM-MUTED — very faint */

  /* Accents */
  --c-pine:        #4E7A62;   /* SAGE-DEEP — primary accent (kept name for legacy alias compatibility) */
  --c-build:       #A9C7B4;   /* SAGE-LIGHT — hover / active-state accents on light bg */
  --c-integrate:   #7B9BAB;   /* muted blue — semantic tag */
  --c-advise:      #9E9BC0;   /* muted lavender — semantic tag */
  --c-educate:     #D5B8CB;   /* muted rose — semantic tag */

  --danger:        #C25A3A;   /* terracotta */
  --danger-soft:   rgba(194, 90, 58, 0.10);
  --good:          #4E7A62;   /* deep sage doubles as success */
  --good-soft:     rgba(78, 122, 98, 0.10);
  --warn:          #B48844;   /* deeper amber for legibility on light bg */
  --warn-soft:     rgba(180, 136, 68, 0.10);

  /* ── Legacy alias names ──
     Used by 275+ CSS declarations across 29 templates. Kept alive because
     `document_print.css` re-declares these SAME names for its own light-
     paper PDF theme; any change here must not cascade into print output.
     Any new code MUST use the primary names; don't grow the surface area. */
  --paper:         var(--bg);
  --paper-2:       var(--surface);
  --warm:          rgba(37, 49, 41, 0.04);
  --rule:          var(--line-2);
  --rule-strong:   var(--line);
  --ink:           var(--cream);
  --ink-2:         var(--cream-2);
  --accent:        var(--c-pine);   /* primary accent is now deep sage, aligned to site */
  --accent-2:      var(--c-build);  /* light sage for secondary/hover */
  --c-orange:      var(--c-pine);   /* DEPRECATED — variable was pine-green, name was misleading */

  --font-display:  "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-body:     "Inter Tight", ui-sans-serif, system-ui, sans-serif;

  --ease:          cubic-bezier(.2, .6, .2, 1);

  --max-w:         1360px;
  --gutter:        clamp(24px, 4vw, 48px);
  --radius:        10px;
  --radius-sm:     6px;
  --radius-pill:   100px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Numbers use tabular figures everywhere */
input, select, textarea, .mono, code, kbd, pre { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0;
}
h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.1; }
h2 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0.25rem 0; }

/* Lora italic display accent — use .display-italic on any inline span
   or heading fragment for the site's signature look */
.display-italic,
.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--c-pine);
  letter-spacing: -0.015em;
}

p { margin: 0 0 0.75rem; color: var(--cream-2); }

a { color: var(--cream); text-decoration: none; transition: color 140ms var(--ease); }
a:hover { color: var(--c-build); text-decoration: none; }

::selection { background: rgba(78, 122, 98, 0.28); color: var(--cream); }

/* ─── Layout: app shell with left sidebar ─────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}
.app-main {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}
.page-wrap {
  width: 100%;
  margin: 0;
  padding: 40px var(--gutter) 80px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: 236px;
  flex-shrink: 0;
  border-right: 1px solid var(--line-2);
  background: var(--surface);
  padding: 22px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  padding: 2px 8px 22px;
}
.sidebar-brand svg {
  width: 22px;
  height: 22px;
  color: var(--c-build);
}
.sidebar-brand .wm {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.sidebar-section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 22px 10px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--cream-2);
  text-decoration: none;
  font-size: 13.5px;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.sidebar-link:hover {
  background: rgba(37, 49, 41, 0.04);
  text-decoration: none;
  color: var(--cream);
}
.sidebar-link.is-active {
  color: var(--cream);
  font-weight: 600;
  background: rgba(46, 92, 78, 0.18);
  border-left: 2px solid var(--c-orange);
  padding-left: 8px;
}
.sidebar-link-quiet {
  color: var(--muted);
  font-size: 13px;
}
.sidebar-link-quiet:hover { color: var(--cream); }
.sidebar-footer {
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-user {
  padding: 4px 10px 8px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Legacy brand class (login etc.) */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
}
.brand svg { width: 26px; height: 26px; color: var(--c-build); }
.brand .wm {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.crm-tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-build);
  font-weight: 500;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

/* ─── Mobile: sidebar becomes off-canvas drawer ───────────── */
.mobile-hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--cream);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 25;
}
@media (max-width: 900px) {
  .mobile-hamburger { display: inline-flex; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 200ms var(--ease);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-backdrop { display: block; }
  .page-wrap { padding-top: 64px; }
}

/* Notification badge next to a nav link */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 9px;
  background: var(--c-orange);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
}

.team-list { list-style: none; padding: 0; margin: 20px 0 0; }
.team-item {
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.team-item:first-child { border-top: 0; }
.team-item strong { color: var(--cream); }
.team-username { color: var(--muted); margin-left: 6px; font-size: 13px; }
.team-item .tag { margin-left: 8px; }
.team-item p.meta { margin: 4px 0; font-size: 12px; color: var(--muted); }

/* ─── Page head ─────────────────────────────────────────── */
.page-head {
  margin-bottom: 2.5rem;
}
.page-head.with-actions {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-orange);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.eyebrow::before { content: "{ "; color: var(--muted); }
.eyebrow::after  { content: " }"; color: var(--muted); }
.lede {
  color: var(--cream-2);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0.75rem 0 0;
  line-height: 1.65;
}
.page-actions { display: flex; gap: 12px; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--bg);
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--c-build);
  border-color: var(--c-build);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.small { padding: 8px 16px; font-size: 11.5px; letter-spacing: 0.16em; }
.btn-text {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  white-space: normal;           /* long-form summary/toggle text may wrap */
  max-width: 100%;
}
.btn-text:hover {
  background: rgba(37, 49, 41, 0.05);
  color: var(--cream);
  border-color: var(--cream-2);
}
.btn-text.danger { color: var(--danger); border-color: transparent; text-transform: none; letter-spacing: 0; padding: 8px 12px; }
.btn-text.danger:hover { background: var(--danger-soft); text-decoration: none; border-color: transparent; color: var(--danger); }

/* Primary CTA — pre-filled sage. Use ONE per view for the highest-emphasis
   action (Generate, Save, Send). Everything else stays as ghost .btn. */
.btn-primary {
  background: var(--c-build);
  color: var(--bg);
  border-color: var(--c-build);
}
.btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--bg);
}

/* Destructive action — pill with coral outline, coral fill on hover. Use for
   Delete, Purge, Cancel-subscription, anything that removes state. */
.btn-danger {
  display: inline-block;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
  white-space: nowrap;
}
.btn-danger:hover {
  background: var(--danger);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-danger.small { padding: 8px 16px; font-size: 11.5px; letter-spacing: 0.16em; }

/* Compact icon-only button. Use for row actions (delete, edit, expand) where
   an emoji or one-char glyph is the whole affordance. Square hit target,
   muted default, cream+outline on hover. */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  transition: color 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}
.btn-icon:hover { color: var(--cream); background: rgba(37, 49, 41, 0.04); border-color: var(--line); }
.btn-icon.danger { color: var(--muted); }
.btn-icon.danger:hover { color: var(--danger); background: var(--danger-soft); border-color: transparent; }

/* ─── Search bar ────────────────────────────────────────── */
.dashboard-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}
.dashboard-search input[type="search"] {
  flex: 1;
  min-width: 260px;
}
.clear-search {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}
.clear-search:hover { color: var(--danger); text-decoration: underline; }

/* ─── Stats bar ─────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  background: var(--surface);
  padding: 22px 24px;
  min-height: 100px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.stat-value {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ─── Empty state ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  max-width: 560px;
  margin: 2rem auto;
}
.empty-state svg {
  width: 44px;
  height: 44px;
  color: var(--muted);
  margin-bottom: 20px;
  opacity: 0.6;
}
.empty-state h2 {
  font-family: var(--font-body);
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--cream);
  font-weight: 600;
}
.empty-state p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ─── Pipeline board ────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 20px;
}
/* Wide desktops: give columns a bit more room */
@media (min-width: 1400px) {
  .pipeline { grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 12px; }
}
/* Tablets / narrow laptops: allow horizontal scroll with fixed narrow columns */
@media (max-width: 900px) {
  .pipeline { grid-template-columns: repeat(6, 180px); gap: 10px; }
}
.pipeline-col {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 60vh;
  min-width: 0;   /* allow columns to shrink below their content min-width */
  display: flex;
  flex-direction: column;
}
.pipeline-col-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.pipeline-col-body {
  flex: 1;
  min-height: 100px;
  transition: background 140ms var(--ease);
}
.pipeline-col-body.drop-over {
  background: rgba(78, 122, 98, 0.08);
  outline: 2px dashed var(--c-build);
  outline-offset: -6px;
}
.stage-name {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
}
.stage-count {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.lead-card {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 140ms var(--ease), transform 140ms var(--ease), opacity 140ms var(--ease), box-shadow 140ms var(--ease);
  cursor: grab;
  user-select: none;
}
.lead-card:hover {
  border-color: var(--c-build);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.lead-card.dragging {
  opacity: 0.35;
  cursor: grabbing;
  transform: rotate(-1deg) scale(1.02);
}
.lead-card:active { cursor: grabbing; }
.lead-card-link {
  display: block;
  color: var(--cream);
  text-decoration: none;
}
.lead-card-link:hover { text-decoration: none; }
.lead-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.lead-card .meta { font-size: 12px; color: var(--muted); margin: 0; }
.lead-card .deal-value {
  font-size: 13px;
  color: var(--c-build);
  margin: 6px 0 0;
  font-weight: 600;
}
.lead-card .owner {
  font-size: 10px;
  color: var(--cream-2);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.stage-mover {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}
.stage-mover select {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  min-width: 0;
}
.empty { color: var(--muted); font-size: 13px; text-align: center; margin: 20px 0 0; font-style: italic; }

/* ─── Dormant section (collapsed) ───────────────────────── */
.dormant-section {
  margin-top: 2.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
.dormant-section summary {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  list-style: none;
}
.dormant-section summary::-webkit-details-marker { display: none; }
.dormant-section summary::before {
  content: "▸";
  margin-right: 8px;
  color: var(--muted);
  transition: transform 140ms var(--ease);
  display: inline-block;
}
.dormant-section[open] summary::before { transform: rotate(90deg); }
.dormant-section summary:hover { color: var(--cream); background: rgba(37, 49, 41, 0.03); }
.dormant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line-2);
}

/* ─── Detail page grid ──────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--cream);
  letter-spacing: -0.01em;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  font-size: 14px;
  margin: 0;
}
.kv dt {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-top: 3px;
}
.kv dd {
  margin: 0;
  color: var(--cream);
  white-space: pre-wrap;
}

/* ─── Forms ─────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 16px; }
.big-form { max-width: 800px; }

.stack label,
.inline-form label {
  display: block;
}
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-2);
  font-weight: 500;
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
  font-variant-numeric: tabular-nums;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--c-build);
  background: var(--surface);
}
textarea { resize: vertical; min-height: 60px; font-family: var(--font-body); line-height: 1.55; }
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8B6A0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px !important;
  padding-right: 34px;
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) {
  .row-2, .row-3 { grid-template-columns: 1fr; }
}

label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
}
label.checkbox input[type="checkbox"] { width: auto; accent-color: var(--c-orange); }
label.checkbox span { font-size: 14px; color: var(--cream-2); }

.inline-form {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.inline-form label { margin-bottom: 12px; }
.inline-form .row-2, .inline-form .row-3 { margin-bottom: 12px; }

.form-actions {
  display: flex; gap: 12px; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin: 0;
}

.flash {
  background: var(--good-soft);
  border: 1px solid rgba(78, 122, 98, 0.28);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--cream);
}

/* ─── Comms log / contact list / project list ───────────── */
.comms-list, .contact-list, .project-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.comms-list li, .contact-list li, .project-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.comms-list li:first-child,
.contact-list li:first-child,
.project-list li:first-child { border-top: 0; }

.comms-meta {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.comms-list h4 { margin: 2px 0; color: var(--cream); }
.comms-list p { margin: 4px 0; white-space: pre-wrap; color: var(--cream-2); }

.contact-head, .project-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px;
}
.contact-list p { margin: 2px 0; font-size: 13px; color: var(--cream-2); }
.contact-list .meta { color: var(--muted); font-size: 12px; }

.project-list p { margin: 2px 0; font-size: 13px; color: var(--cream-2); }

.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(37, 49, 41, 0.06);
  color: var(--cream-2);
  font-weight: 500;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
}
.tag-email   { background: rgba(123, 155, 171, 0.15); color: var(--c-integrate); border-color: rgba(123, 155, 171, 0.35); }
.tag-call    { background: rgba(217, 179, 106, 0.15); color: var(--warn);         border-color: rgba(217, 179, 106, 0.35); }
.tag-meeting { background: rgba(78, 122, 98, 0.15); color: var(--c-build);      border-color: rgba(78, 122, 98, 0.35); }
.tag-loom    { background: rgba(213, 184, 203, 0.15); color: var(--c-educate);    border-color: rgba(213, 184, 203, 0.35); }
.tag-note    { background: rgba(37, 49, 41, 0.06); }
.tag-status  { background: rgba(158, 155, 192, 0.15); color: var(--c-advise);     border-color: rgba(158, 155, 192, 0.35); }

.empty-list { color: var(--muted); font-size: 13px; margin: 12px 0 0; font-style: italic; }

.delete-form { display: inline; }
.link-danger {
  background: none;
  border: 0;
  color: var(--danger);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 6px;
}
.link-danger:hover { text-decoration: underline; }

form.inline { display: inline; margin-right: 10px; }
form.inline select {
  padding: 6px 10px;
  font-size: 12px;
  width: auto;
  min-width: 140px;
}

/* ═══════════════════════════════════════════════════════════════
   Company detail — header, tabs, panes
   ═══════════════════════════════════════════════════════════════ */

.c-breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.c-breadcrumb a { color: var(--muted); text-decoration: none; }
.c-breadcrumb a:hover { color: var(--cream); text-decoration: none; }
.c-breadcrumb .sep { margin: 0 8px; color: var(--line); }

.c-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 0;
}
.c-header-main { flex: 1; min-width: 0; }
.c-name-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.c-name-line h1 {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.stage-inline { display: inline-block; }
.stage-pill {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 7px 32px 7px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--cream);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8B6A0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px !important;
}
.stage-pill:hover { border-color: var(--c-build); }
.stage-pill-lead        { background-color: rgba(37, 49, 41, 0.06); }
.stage-pill-discovery   { background-color: rgba(123, 155, 171, 0.18); color: var(--c-integrate); border-color: rgba(123, 155, 171, 0.4); }
.stage-pill-scoped      { background-color: rgba(217, 179, 106, 0.18); color: var(--warn);         border-color: rgba(217, 179, 106, 0.4); }
.stage-pill-in-build    { background-color: rgba(78, 122, 98, 0.18); color: var(--c-build);      border-color: rgba(78, 122, 98, 0.4); }
.stage-pill-delivered   { background-color: rgba(78, 122, 98, 0.18); color: var(--c-build);      border-color: rgba(78, 122, 98, 0.4); }
.stage-pill-on-retainer { background-color: rgba(46, 92, 78, 0.28);    color: var(--cream);        border-color: var(--c-orange); }
.stage-pill-dormant     { background-color: var(--surface-2);          color: var(--muted); }

/* Stage select AJAX states. .is-saving pulses opacity while the fetch is
   in flight; .is-saved flashes a sage border for 900ms on success so the
   change is felt without a full-page reload. */
.stage-pill.is-saving {
  animation: stage-pulse 1.2s ease-in-out infinite;
  cursor: wait;
}
.stage-pill.is-saved {
  animation: stage-saved-flash 900ms ease-out;
}
@keyframes stage-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@keyframes stage-saved-flash {
  0%   { box-shadow: 0 0 0 0 rgba(78, 122, 98, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(78, 122, 98, 0); }
}

.c-contact-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--cream);
}
.c-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.c-info-item svg { width: 15px; height: 15px; color: var(--muted); }
.c-info-item a { color: var(--cream); text-decoration: none; }
.c-info-item a:hover { color: var(--c-build); text-decoration: none; }
.c-info-item.muted { color: var(--muted); font-size: 13px; }
.c-info-item.muted strong { color: var(--cream); font-weight: 600; }
.c-info-item.accent {
  color: var(--c-build);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.c-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}

/* ─── Tab strip ─────────────────────────────────────────── */
.c-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 4px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 2rem;
}
.c-tab {
  background: none;
  border: 0;
  padding: 14px 22px 14px 0;
  margin-right: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 140ms var(--ease);
  white-space: nowrap;
}
.c-tab:hover { color: var(--cream); }
.c-tab.active { color: var(--cream); font-weight: 600; }
.c-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 18px;
  height: 2px;
  background: var(--c-orange);
}
.tab-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: rgba(37, 49, 41, 0.06);
  color: var(--cream-2);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.c-tab.active .tab-count {
  background: var(--c-orange);
  color: var(--cream);
}

/* ─── Tab panes (only .active is visible) ───────────────── */
.c-tab-pane { display: none; }
.c-tab-pane.active { display: block; }

/* ─── Documents: drop zone ──────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
  cursor: pointer;
  display: block;
}
.drop-zone:hover { border-color: var(--c-build); background: rgba(78, 122, 98, 0.04); }
.drop-zone.drop-over {
  border-color: var(--c-build);
  background: rgba(78, 122, 98, 0.08);
}
.drop-zone-inner svg {
  width: 36px; height: 36px;
  color: var(--muted);
  margin-bottom: 10px;
}
.drop-zone-inner h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--cream);
}
.drop-zone-inner p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}
.drop-zone-inner kbd {
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: var(--cream-2);
}
.drop-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.drop-choose-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  margin: 12px 0;
  flex-wrap: wrap;
}
.drop-choose-row select { min-width: 160px; }

.doc-kind-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-weight: 500;
  vertical-align: middle;
}
.doc-kind-file { background: rgba(78, 122, 98, 0.15); color: var(--c-build); border-color: rgba(78, 122, 98, 0.35); }
.doc-kind-link { background: rgba(123, 155, 171, 0.15); color: var(--c-integrate); border-color: rgba(123, 155, 171, 0.35); }

/* ─── Documents list ────────────────────────────────────── */
.document-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.document-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.document-list li:first-child { border-top: 0; }
.document-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.document-head strong { color: var(--cream); }
.document-head a { text-decoration: none; color: var(--cream); }
.document-head a:hover { color: var(--c-build); text-decoration: none; }
.document-head .meta { color: var(--muted); font-size: 12px; }
.document-list p { margin: 4px 0; font-size: 13px; color: var(--cream-2); }
.url-line { color: var(--muted); }
.url-line code {
  font-size: 12px;
  background: var(--surface-2);
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  word-break: break-all;
}

/* ─── Task list ─────────────────────────────────────────── */
.task-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.task-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.task-item:first-child { border-top: 0; }
.task-toggle { flex-shrink: 0; padding-top: 2px; }
.task-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.task-check:hover { border-color: var(--c-build); }
.task-check.checked {
  background: var(--c-orange);
  border-color: var(--c-orange);
}
.task-check.checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.task-body { flex: 1; min-width: 0; }
.task-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--cream);
}
.task-item.done .task-title {
  color: var(--muted);
  text-decoration: line-through;
}
.task-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.task-meta .overdue {
  color: var(--danger);
  font-weight: 600;
}
.task-notes {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--cream-2);
}
.task-delete { flex-shrink: 0; }
.task-delete button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  padding: 0 4px;
  line-height: 1;
}
.task-delete button:hover { color: var(--danger); }
.done-tasks {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.done-tasks summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 0;
  list-style: none;
}
.done-tasks summary::-webkit-details-marker { display: none; }
.done-tasks summary::before {
  content: "▸ ";
  color: var(--muted);
  display: inline-block;
  transition: transform 140ms var(--ease);
}
.done-tasks[open] summary::before { transform: rotate(90deg); }
.done-tasks summary:hover { color: var(--cream); }

/* ═══════════════════════════════════════════════════════════════
   Roadmap
   ═══════════════════════════════════════════════════════════════ */

.add-roadmap {
  margin-bottom: 24px;
}
.add-roadmap summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
}
.add-roadmap summary::-webkit-details-marker { display: none; }
.add-roadmap[open] summary { display: none; }

.roadmap-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  padding-bottom: 20px;
}
@media (max-width: 900px) {
  .roadmap-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .roadmap-board { grid-template-columns: 1fr; }
}
.roadmap-col {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
}
.roadmap-col-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.roadmap-col-body {
  flex: 1;
  min-height: 100px;
  transition: background 140ms var(--ease);
}
.roadmap-col-body.drop-over {
  background: rgba(78, 122, 98, 0.08);
  outline: 2px dashed var(--c-build);
  outline-offset: -6px;
}
.roadmap-card {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
  cursor: grab;
  user-select: none;
  transition: border-color 140ms var(--ease), transform 140ms var(--ease), opacity 140ms var(--ease), box-shadow 140ms var(--ease);
}
.roadmap-card:hover {
  border-color: var(--c-build);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.roadmap-card.dragging { opacity: 0.35; cursor: grabbing; transform: rotate(-1deg) scale(1.02); }
.roadmap-cat {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-orange);
  font-weight: 500;
  margin-bottom: 6px;
}
.roadmap-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--cream);
  padding-right: 22px;
  line-height: 1.3;
}
.roadmap-desc {
  font-size: 13px;
  color: var(--cream-2);
  margin: 0 0 10px;
  line-height: 1.5;
}
.roadmap-meta {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.roadmap-meta .overdue { color: var(--danger); }
.roadmap-delete {
  position: absolute;
  top: 8px;
  right: 8px;
}
.roadmap-delete button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
  opacity: 0;
  transition: opacity 140ms var(--ease), color 140ms var(--ease);
}
.roadmap-card:hover .roadmap-delete button { opacity: 1; }
.roadmap-delete button:hover { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   Settings — connection status card
   ═══════════════════════════════════════════════════════════════ */

.conn-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.conn-status-ok {
  border-left: 3px solid var(--good);
}
.conn-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--good);
  font-weight: 500;
  margin: 0 0 4px;
}
.conn-email {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--cream);
  font-weight: 600;
  margin: 0 0 4px;
}
.conn-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Home dashboard — greeting + tile grid
   ═══════════════════════════════════════════════════════════════ */

.home-hero {
  padding: 44px 48px 40px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(46, 92, 78, 0.10), transparent 55%);
  pointer-events: none;
}
.home-timestamp {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.home-greeting {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}
.home-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--c-orange);
  letter-spacing: -0.02em;
}
.home-sub {
  color: var(--cream-2);
  margin: 0;
  font-size: 15px;
  max-width: 56ch;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.home-tile {
  display: block;
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--cream);
  text-decoration: none;
  min-height: 180px;
  position: relative;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.home-tile:hover {
  border-color: var(--c-build);
  transform: translateY(-2px);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: var(--cream);
}
.home-tile-icon {
  width: 36px;
  height: 36px;
  color: var(--c-build);
  margin-bottom: 12px;
}
.home-tile-icon svg { width: 100%; height: 100%; }
.home-tile h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.home-tile-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.home-tile-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.stat-big {
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-tag {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.home-tile-secondary {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.home-tile-secondary.danger {
  color: var(--danger);
  font-weight: 600;
}

/* ─── Recent activity row ─────────────────────────────── */
.home-recent {
  margin-top: 30px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.home-recent-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.home-recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.home-recent-item:hover {
  background: rgba(37, 49, 41, 0.03);
  border-color: var(--line-2);
  text-decoration: none;
  color: var(--cream);
}
.recent-stage {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-orange);
  font-weight: 500;
  min-width: 80px;
}
.recent-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}
.recent-meta {
  font-size: 13px;
  color: var(--muted);
}
.recent-arrow {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-body);
  transition: transform 140ms var(--ease), color 140ms var(--ease);
}
.home-recent-item:hover .recent-arrow {
  transform: translateX(4px);
  color: var(--c-build);
}

/* ═══════════════════════════════════════════════════════════════
   Calendar — Google + Calendly unified feed
   ═══════════════════════════════════════════════════════════════ */

.cal-sources {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.cal-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--cream-2);
  padding: 4px 8px;
}
.cal-source.ok { color: var(--good); }
.cal-source.off { color: var(--muted); }
.cal-source a {
  margin-left: 6px;
  font-size: 12px;
  color: var(--c-build);
  font-weight: 600;
  text-decoration: none;
}
.cal-source a:hover { text-decoration: underline; }
.cal-src-dot {
  width: 10px; height: 10px;
  background: var(--c-integrate);
  border-radius: 2px;
}

.cal-days {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cal-day {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.cal-day-head {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 14px 22px;
  margin: 0;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
}
.cal-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cal-event {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid var(--line-2);
}
.cal-event:first-child { border-top: 0; }
.cal-event-time {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cream);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.cal-event-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cal-event-title a {
  color: var(--cream);
  text-decoration: none;
}
.cal-event-title a:hover { color: var(--c-build); text-decoration: none; }
.cal-src-tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 10px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
}
.cal-src-google   { background: rgba(213, 184, 203, 0.12); color: var(--c-educate);   border-color: rgba(213, 184, 203, 0.35); }
.cal-src-calendly { background: rgba(123, 155, 171, 0.14); color: var(--c-integrate); border-color: rgba(123, 155, 171, 0.35); }
.cal-event-loc {
  font-size: 13px;
  color: var(--cream-2);
  margin-bottom: 4px;
}
.cal-event-attendees {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cal-event-attendees span { margin-right: 6px; }
.cal-event-desc {
  font-size: 13px;
  color: var(--cream-2);
  margin-top: 6px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .cal-event { grid-template-columns: 1fr; gap: 6px; }
  .cal-event-time { padding-top: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Leads — top-of-funnel kanban
   ═══════════════════════════════════════════════════════════════ */

.leads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.leads-toolbar-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}
.leads-toolbar-meta a {
  color: var(--c-build);
  font-size: 12px;
  font-weight: 600;
}

.leads-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 20px;
}
@media (max-width: 900px) {
  .leads-board { grid-template-columns: repeat(4, 260px); }
}
.leads-col {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
}
.leads-col-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.leads-col-body {
  flex: 1;
  min-height: 100px;
  transition: background 140ms var(--ease);
}
.leads-col-body.drop-over {
  background: rgba(78, 122, 98, 0.08);
  outline: 2px dashed var(--c-build);
  outline-offset: -6px;
}

.lead-card-full {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
  cursor: grab;
  user-select: none;
  transition: border-color 140ms var(--ease), transform 140ms var(--ease), opacity 140ms var(--ease), box-shadow 140ms var(--ease);
}
.lead-card-full:hover {
  border-color: var(--c-build);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.lead-card-full.dragging { opacity: 0.35; cursor: grabbing; transform: rotate(-1deg) scale(1.02); }
.lead-card-full.converted { opacity: 0.55; border-style: dashed; }

.lead-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.lead-card-full h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: var(--cream);
  line-height: 1.3;
}
.lead-source {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: rgba(37, 49, 41, 0.06);
  color: var(--cream-2);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}
.lead-source-cold-outreach { background: rgba(123, 155, 171, 0.15); color: var(--c-integrate); border-color: rgba(123, 155, 171, 0.35); }
.lead-source-warm-intro    { background: rgba(217, 179, 106, 0.15); color: var(--warn);         border-color: rgba(217, 179, 106, 0.35); }
.lead-source-referral      { background: rgba(78, 122, 98, 0.15); color: var(--c-build);      border-color: rgba(78, 122, 98, 0.35); }
.lead-source-linkedin      { background: rgba(158, 155, 192, 0.15); color: var(--c-advise);     border-color: rgba(158, 155, 192, 0.35); }
.lead-source-event         { background: rgba(213, 184, 203, 0.15); color: var(--c-educate);    border-color: rgba(213, 184, 203, 0.35); }
.lead-source-other         { background: rgba(37, 49, 41, 0.06); }

.lead-card-full .meta { font-size: 12px; color: var(--cream-2); margin: 0 0 3px; }
.lead-card-full .meta.muted { color: var(--muted); font-style: italic; }
.lead-contact { font-size: 12px; margin: 4px 0 0; }
.lead-contact a { color: var(--c-build); text-decoration: none; }

.lead-next {
  font-size: 12px;
  color: var(--cream-2);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
}
.lead-next strong {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}
.lead-next .overdue { color: var(--danger); font-weight: 600; }

.lead-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
  align-items: center;
  flex-wrap: wrap;
}
.lead-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--cream-2);
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
  letter-spacing: 0.02em;
}
.lead-btn:hover { background: rgba(37, 49, 41, 0.06); border-color: var(--cream-2); color: var(--cream); text-decoration: none; }
.lead-btn.convert { color: var(--c-build); border-color: var(--c-build); font-weight: 600; }
.lead-btn.convert:hover { background: var(--c-build); color: var(--bg); }
.lead-btn.view { color: var(--c-integrate); border-color: var(--c-integrate); font-weight: 600; }
.lead-btn.delete {
  border: 0;
  color: var(--muted);
  font-size: 16px;
  padding: 0 6px;
  margin-left: auto;
}
.lead-btn.delete:hover { color: var(--danger); background: transparent; }

.lead-owner {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   Templates library
   ═══════════════════════════════════════════════════════════════ */

.templates-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 24px;
}
.tpl-tab {
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.tpl-tab:hover { color: var(--cream); text-decoration: none; }
.tpl-tab.active {
  color: var(--cream);
  border-bottom-color: var(--c-orange);
  font-weight: 600;
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.tpl-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
  min-height: 160px;
}
.tpl-card:hover {
  border-color: var(--c-build);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: var(--cream);
}
.tpl-card-head {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.tpl-kind {
  padding: 2px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  color: var(--cream);
}
.tpl-kind-email .tpl-kind { background: rgba(123, 155, 171, 0.15); color: var(--c-integrate); border-color: rgba(123, 155, 171, 0.35); }
.tpl-kind-deck  .tpl-kind { background: rgba(213, 184, 203, 0.15); color: var(--c-educate);   border-color: rgba(213, 184, 203, 0.35); }
.tpl-kind-doc   .tpl-kind { background: rgba(78, 122, 98, 0.15); color: var(--c-build);     border-color: rgba(78, 122, 98, 0.35); }
.tpl-category {
  padding: 2px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: rgba(37, 49, 41, 0.06);
  color: var(--cream-2);
}
.tpl-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tpl-preview {
  font-size: 13px;
  color: var(--cream-2);
  margin: 6px 0;
  line-height: 1.5;
}
.tpl-preview strong {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: 4px;
}
.tpl-body-preview {
  color: var(--muted);
  line-height: 1.55;
}
.tpl-industry {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.tpl-vars-hint {
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--cream-2);
  line-height: 2;
  margin-top: -6px;
}
.tpl-vars-hint strong {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.tpl-vars-hint code {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 2px 6px;
  margin-right: 4px;
  font-size: 12px;
  color: var(--c-build);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

/* ─── Template detail (rendered preview) ────────────────── */
.tpl-preview-picker {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.tpl-render-block { margin-bottom: 20px; }
.tpl-render-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.tpl-render-value {
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--cream);
}
.tpl-render-subject { font-weight: 600; }
.tpl-render-body {
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream);
  white-space: pre-wrap;
  margin: 0 0 12px;
  overflow-x: auto;
}
.tpl-copy-status {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  color: var(--good);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   Outputs tab (per-client AI-generated content)
   ═══════════════════════════════════════════════════════════════ */

.outputs-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .outputs-grid { grid-template-columns: 1fr; }
}

.outputs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.outputs-empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.output-card {
  display: block;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.output-card:hover {
  border-color: var(--c-build);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: var(--cream);
}
.output-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.output-kind { color: var(--c-orange); }
.output-status {
  padding: 2px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: rgba(37, 49, 41, 0.06);
  color: var(--cream-2);
}
.output-status-draft  { background: rgba(37, 49, 41, 0.06); color: var(--cream-2); }
.output-status-edited { background: rgba(123, 155, 171, 0.15); color: var(--c-integrate); border-color: rgba(123, 155, 171, 0.35); }
.output-status-sent   { background: rgba(78, 122, 98, 0.15); color: var(--c-build);      border-color: rgba(78, 122, 98, 0.35); }

.output-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.output-preview {
  font-size: 13px;
  color: var(--cream-2);
  margin: 0 0 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.output-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.outputs-compose { display: flex; flex-direction: column; gap: 16px; }

.preflight-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-size: 13px;
}
.preflight-list li {
  padding: 6px 0;
  color: var(--cream-2);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.preflight-list li.ok { color: var(--good); }
.preflight-list li.miss { color: var(--danger); font-weight: 600; }
.preflight-list li.miss::first-letter { font-weight: 700; }


/* ═══════════════════════════════════════════════════════════════
   Documents tab (redesign — grouped by document, not by save)
   ═══════════════════════════════════════════════════════════════ */

/* Docs tab uses full width — override the two-column .outputs-grid
   layout when it's rendered inside our .docs-tab-wrap. Cards fill the
   available width; the Compose panel lives in a hidden drawer at the
   top of the tab that opens via the + New draft button. */
.docs-tab-wrap {
  display: block;
  width: 100%;
}
.docs-tab-wrap .docs-list {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Compose + Pre-flight drawer — hidden by default; opens above the
   toolbar when + New draft is clicked. Two-column layout inside so
   Compose and Pre-flight sit side-by-side on wide viewports. */
.docs-compose-drawer {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .docs-compose-drawer { grid-template-columns: 1fr; }
}
.docs-compose-drawer[hidden] { display: none; }
.docs-compose-card,
.docs-preflight-card {
  margin-bottom: 0;
}

/* Toolbar actions cluster (right side) */
.docs-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.docs-new-toggle {
  padding: 6px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(78, 122, 98, 0.14);
  border: 1px solid rgba(78, 122, 98, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.docs-new-toggle:hover {
  background: rgba(78, 122, 98, 0.24);
  border-color: var(--c-build);
}
.docs-new-toggle[aria-expanded="true"] {
  color: var(--warn);
  background: rgba(217, 179, 106, 0.12);
  border-color: var(--warn);
}

/* Per-section colour tokens. Match the palette used by chips + section
   headers + card badges + fresh accents. */
.docs-section-integrate,
.docs-chip-integrate.is-active,
.doc-card-integrate.is-fresh {
  --docs-accent: var(--c-integrate);
  --docs-accent-soft: rgba(123, 155, 171, 0.15);
}
.docs-section-build,
.docs-chip-build.is-active,
.doc-card-build.is-fresh {
  --docs-accent: var(--c-build);
  --docs-accent-soft: rgba(78, 122, 98, 0.15);
}
.docs-section-advise,
.docs-chip-advise.is-active,
.doc-card-advise.is-fresh {
  --docs-accent: var(--c-advise);
  --docs-accent-soft: rgba(158, 155, 192, 0.15);
}
.docs-section-warn,
.docs-chip-warn.is-active,
.doc-card-warn.is-fresh {
  --docs-accent: var(--warn);
  --docs-accent-soft: rgba(217, 179, 106, 0.15);
}
.docs-section-muted,
.docs-chip-muted.is-active,
.doc-card-muted.is-fresh {
  --docs-accent: var(--muted);
  --docs-accent-soft: rgba(124, 124, 111, 0.15);
}

/* ── Toolbar (filter chips + archive toggle) ────────────────────────── */
.docs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.docs-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.docs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 140ms var(--ease), background 140ms var(--ease), color 140ms var(--ease);
}
.docs-chip:hover:not(.is-disabled) {
  border-color: var(--line);
  color: var(--cream);
}
.docs-chip.is-active {
  background: var(--docs-accent-soft, rgba(37, 49, 41, 0.06));
  border-color: var(--docs-accent, var(--line));
  color: var(--cream);
}
.docs-chip.is-disabled,
.docs-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.docs-chip .mono {
  font-size: 11px;
  color: var(--muted);
}
.docs-chip.is-active .mono { color: var(--cream); }

.docs-archive-toggle {
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.docs-archive-toggle:hover {
  color: var(--cream);
  border-color: var(--line);
}
.docs-archive-toggle[data-archive-state="hide"] {
  color: var(--c-build);
  border-color: rgba(78, 122, 98, 0.4);
  border-style: solid;
}

/* ── Sections (collapsible per type) ─────────────────────────────────── */
.docs-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.docs-section {
  background: transparent;
  border: 0;
  padding: 0;
}
.docs-section-head {
  /* Chrome renders <summary> as display:list-item by default which fights
     flex — layout the inner div, keep the summary as block. */
  display: block;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.docs-section-head::-webkit-details-marker { display: none; }
.docs-section-head::marker { display: none; }
.docs-section-head-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.docs-section-marker {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--docs-accent, var(--cream-2));
  flex: 0 0 auto;
}
.docs-section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}
.docs-section-count {
  font-size: 11px;
  color: var(--muted);
}
.docs-section-caret {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  transition: transform 140ms var(--ease);
}
.docs-section[open] .docs-section-caret { transform: rotate(180deg); }
.docs-section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
}

/* ── Card (one per document_group_id, showing latest only) ───────────── */
.doc-card {
  position: relative;
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.doc-card:hover {
  border-color: var(--docs-accent, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.doc-card.is-fresh {
  border-left: 3px solid var(--docs-accent);
  padding-left: 14px;
}
.doc-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.doc-card-kind {
  color: var(--docs-accent, var(--cream-2));
}
.doc-card-integrate .doc-card-kind { color: var(--c-integrate); }
.doc-card-build .doc-card-kind     { color: var(--c-build); }
.doc-card-advise .doc-card-kind    { color: var(--c-advise); }
.doc-card-warn .doc-card-kind      { color: var(--warn); }
.doc-card-muted .doc-card-kind     { color: var(--cream-2); }

.doc-card-version {
  padding: 1px 8px;
  font-size: 10px;
  color: var(--cream-2);
  background: rgba(37, 49, 41, 0.06);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: none;
}

.doc-card-status-wrap {
  margin-left: auto;
}
.doc-card-status-form { display: inline-flex; margin: 0; }
.doc-card-status {
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 22px 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: rgba(37, 49, 41, 0.06);
  color: var(--cream-2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'><path d='M1 1l3 3 3-3' stroke='%23B8B6A0' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 7px center;
}
.doc-card-status:focus {
  outline: none;
  border-color: var(--c-build);
}
.doc-card-status-draft {
  background-color: rgba(37, 49, 41, 0.06);
  color: var(--cream-2);
}
.doc-card-status-final {
  background-color: rgba(158, 155, 192, 0.18);
  border-color: rgba(158, 155, 192, 0.4);
  color: var(--c-advise);
}
.doc-card-status-sent {
  background-color: rgba(78, 122, 98, 0.18);
  border-color: rgba(78, 122, 98, 0.4);
  color: var(--c-build);
}
/* Legacy 'Edited' value from pre-redesign rows — treat visually as Draft */
.doc-card-status-edited {
  background-color: rgba(123, 155, 171, 0.15);
  border-color: rgba(123, 155, 171, 0.35);
  color: var(--c-integrate);
}

.doc-card-body {
  display: block;
  color: inherit;
  text-decoration: none;
}
.doc-card-body:hover { color: inherit; text-decoration: none; }

.doc-card-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.doc-card-preview {
  font-size: 12.5px;
  color: var(--cream-2);
  margin: 0 0 8px;
  line-height: 1.5;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.doc-card-fresh-label { color: var(--docs-accent, var(--cream-2)); }

/* ── History (older versions inline, collapsed by default) ──────────── */
.doc-card-history {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
}
.doc-card-history summary {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 2px 0;
  user-select: none;
}
.doc-card-history summary::-webkit-details-marker { display: none; }
.doc-card-history summary:hover { color: var(--cream-2); }
.doc-card-history-icon {
  display: inline-block;
  width: 12px;
  transition: transform 140ms var(--ease);
}
.doc-card-history[open] .doc-card-history-icon { transform: rotate(90deg); }

.doc-card-history-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-card-history-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
  color: var(--cream-2);
  opacity: 0.75;                 /* muted vs the latest card */
}
.doc-card-history-row:hover { opacity: 1; }
.doc-card-history-ver   { color: var(--muted); }
.doc-card-history-date  { color: var(--cream-2); }
.doc-card-history-status {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
}
.doc-card-history-open {
  color: var(--cream-2);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.doc-card-history-open:hover { color: var(--c-build); }


/* ═══════════════════════════════════════════════════════════════
   Client Info tab (Profile + Contacts) — rebuild 31 Aug 2026
   ═══════════════════════════════════════════════════════════════ */

.info-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .info-grid { grid-template-columns: 1fr; }
}
.info-col-main, .info-col-side { min-width: 0; }

/* ── Profile card ─────────────────────────────────────────────────── */
.profile-card { padding-bottom: 20px; }

.profile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.profile-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.profile-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.profile-edit-link svg { width: 13px; height: 13px; }
.profile-edit-link:hover {
  color: var(--c-build);
  background: rgba(78, 122, 98, 0.08);
  text-decoration: none;
}

.profile-empty-simple {
  padding: 22px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-empty-simple p {
  margin: 0;
  color: var(--cream-2);
  font-size: 14px;
}

/* Snapshot grid — short one-line facts (industry, owner, source, …) */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 24px;
  margin: 0 0 4px;
}
.profile-grid-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.profile-grid-row dt {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.profile-grid-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--cream);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Narrative blocks — bottleneck, goals, notes, etc. */
.profile-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.profile-block-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 8px;
}
.profile-block-body {
  margin: 0;
  font-size: 14px;
  color: var(--cream);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* "Not yet on file:" footer — tight nudge listing missing field labels */
.profile-missing {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.profile-missing-label {
  color: var(--cream-2);
  font-weight: 500;
  margin-right: 4px;
}
.profile-missing-item { color: var(--muted); }
.profile-missing a {
  color: var(--cream-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.profile-missing a:hover { color: var(--c-build); text-decoration-color: var(--c-build); }

/* ── Contacts card ─────────────────────────────────────────────────── */
.contacts-card { padding-bottom: 16px; }

.contacts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.contacts-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.contacts-count {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.contacts-add-toggle {
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  color: var(--cream-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), background 140ms var(--ease);
}
.contacts-add-toggle:hover {
  color: var(--cream);
  border-color: var(--c-build);
  background: rgba(78, 122, 98, 0.08);
}
.contacts-add-toggle[aria-expanded="true"] {
  color: var(--warn);
  border-color: var(--warn);
  background: rgba(217, 179, 106, 0.1);
}

.contact-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card {
  position: relative;
  padding: 12px 14px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color 140ms var(--ease), transform 140ms var(--ease);
}
.contact-card:hover {
  border-color: var(--line);
}
.contact-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.contact-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.contact-role-pill {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  color: var(--cream-2);
  background: rgba(37, 49, 41, 0.05);
}
.contact-role-buyer {
  color: var(--c-build);
  border-color: rgba(78, 122, 98, 0.4);
  background: rgba(78, 122, 98, 0.14);
}
.contact-role-operator {
  color: var(--c-integrate);
  border-color: rgba(123, 155, 171, 0.4);
  background: rgba(123, 155, 171, 0.14);
}
.contact-role-champion {
  color: var(--c-advise);
  border-color: rgba(158, 155, 192, 0.4);
  background: rgba(158, 155, 192, 0.14);
}

.contact-card-role {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--cream-2);
  line-height: 1.4;
}

.contact-card-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-card-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--cream-2);
}
.contact-card-links svg {
  width: 13px; height: 13px;
  color: var(--muted);
  flex: 0 0 auto;
}
.contact-card-links a {
  color: var(--cream-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card-links a:hover { color: var(--c-build); }

.contact-card-nolinks {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
}

.contact-card-delete {
  position: absolute;
  top: 8px;
  right: 10px;
  margin: 0;
  opacity: 0;
  transition: opacity 140ms var(--ease);
}
.contact-card:hover .contact-card-delete,
.contact-card:focus-within .contact-card-delete { opacity: 1; }
.contact-card-delete .link-danger {
  font-size: 11px;
  padding: 2px 6px;
}

.contacts-add-form {
  padding-top: 4px;
}
.contacts-add-lead {
  margin: 0 0 12px;
  color: var(--cream-2);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   Meetings tab
   ═══════════════════════════════════════════════════════════════ */

.meetings-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.upload-transcript-block { margin-bottom: 24px; }

.activity-compose,
/* ─── Markdown-lite inline rendering (Meetings tab, in-place reading) ─── */
.mdlite p {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream);
}
.mdlite p:last-child { margin-bottom: 0; }
.mdlite strong { color: var(--cream); font-weight: 600; }
.mdlite-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.mdlite-list li {
  position: relative;
  padding: 3px 0 3px 20px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream);
}
.mdlite-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--good);
}
.mdlite-hr {
  border: 0;
  border-top: 1px dashed var(--line-2);
  margin: 14px 0;
}
.mdlite-callout {
  padding: 10px 14px;
  border-radius: 4px;
  margin: 10px 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream);
}
.mdlite-callout-sage {
  background: rgba(78, 122, 98, 0.10);
  border-left: 2px solid var(--good);
}
.mdlite-callout-coral {
  background: rgba(201, 117, 103, 0.10);
  border-left: 2px solid var(--danger);
}

.meeting-list {
  margin-top: 0;
}
.meeting-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meeting-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
}
.meeting-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin: 6px 0 10px;
  letter-spacing: -0.015em;
}
.meeting-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-2);
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.meeting-actions {
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}
.meeting-actions-body {
  font-size: 13px;
  color: var(--cream-2);
  line-height: 1.7;
  white-space: pre-wrap;
  margin-top: 6px;
}
.meeting-transcript {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.meeting-transcript summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  list-style: none;
}
.meeting-transcript summary::-webkit-details-marker { display: none; }
.meeting-transcript summary::before {
  content: "▸ ";
  color: var(--muted);
  display: inline-block;
  transition: transform 140ms var(--ease);
}
.meeting-transcript[open] summary::before { transform: rotate(90deg); }
.meeting-transcript pre {
  margin: 10px 0 0;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--cream-2);
  line-height: 1.55;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════════
   Studio docs (internal + external, not per-client)
   ═══════════════════════════════════════════════════════════════ */

.docs-section {
  margin-bottom: 40px;
  min-width: 0;
}
/* Long titles / URLs on cards must wrap, not overflow. */
.doc-card { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.doc-card h3, .doc-card h3 a, .doc-card .doc-notes, .doc-card .url-line { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.docs-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.docs-section-head h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.02em;
}
.docs-section-head p {
  grid-column: 1;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.docs-section-head .stage-count {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 14px;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.doc-card:hover {
  border-color: var(--c-build);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.doc-external {
  border-left: 3px solid var(--c-orange);
}
.doc-cat {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-orange);
  font-weight: 500;
  margin-bottom: 8px;
}
.doc-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.doc-card h3 a { color: var(--cream); text-decoration: none; }
.doc-card h3 a:hover { color: var(--c-build); text-decoration: none; }
.doc-notes {
  font-size: 13px;
  color: var(--cream-2);
  margin: 0 0 10px;
  line-height: 1.55;
}
.doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}

/* ─── Login page ────────────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(46, 92, 78, 0.10), transparent 60%);
  pointer-events: none;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 48px 44px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}
.login-card .brand-mark svg {
  width: 44px; height: 44px; color: var(--c-build);
  margin: 0 0 20px;
}
.login-card h1 {
  font-size: 1.75rem;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.login-card h1 em {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--c-orange);
}
.login-card .lede {
  margin: 0 auto 24px;
  color: var(--cream-2);
  font-size: 14px;
  max-width: none;
}
.login-card form { text-align: left; }
.login-card .btn { width: 100%; justify-content: center; }

/* ═══ Responsive table wrapper ═══ */
.card table,
.wrap > table,
main > table,
main > .card > table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px;
}
.table-scroll table {
  min-width: 100%;
}

/* Generic data table used across internal / list pages */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  font-weight: 500;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.data-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  color: var(--cream);
}
.data-table tbody tr:hover {
  background: rgba(37, 49, 41, 0.03);
}

/* ─── Curly-bracket eyebrow variant for section labels ─── */
.brace-eyebrow {
  display: inline-block;
  font-size: 12px;
  color: var(--c-orange);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.brace-eyebrow::before { content: "{ "; color: var(--muted); }
.brace-eyebrow::after  { content: " }"; color: var(--muted); }
