@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');
/* omni-look.css — the skin layer for the company CRM. WO-0028. Ben, 2026-09-05: "the white looks nicer, flows nice,
   easier on the eyes"; company colours from the company's own website. The structure (cards, quiet labels, pills, light
   titles) comes from Zeus's prototype (design/crm-look.md); the ground is white. Omni, the brain, stays dark.
   Loaded after the app's own styles when PHR_LOOK=omni. Nothing here changes a page's markup, data or behaviour: it re-values
   the app's own design variables and restyles the shared pieces. Remove the link, the old look is back.
   The company colour comes in as --brand (from <tenant>_ACCENT in .env, inlined by header.php); default below. */

:root {
  --brand: #ff6a3d;                /* overridden per company by header.php */
  --brand-ink: #ffffff;            /* text on the brand colour */
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --bg: #f4f6f8;            --bg-panel: #ffffff;        --bg-surface: #f8fafb;     --bg-elevated: #ffffff;
  --bg-hover: #f1f4f6;      --bg-active: var(--brand-soft);
  --border: #dfe6ea;        --border-subtle: #edf1f4;   --border-strong: #c9d4da;
  --text: #0b1720;          --text-secondary: #33434d;  --text-muted: #6b7c86;     --text-dim: #8a9aa3;
  --accent: var(--brand);   --accent-hover: color-mix(in srgb, var(--brand) 85%, black); --accent-light: var(--brand-soft); --accent-bright: var(--brand);
  --green: #3f9d2f;         --green-light: rgba(63,157,47,.10);
  --red: #d9414f;           --red-light: rgba(217,65,79,.10);
  --yellow: #c98a0a;        --yellow-light: rgba(201,138,10,.12);
  --orange: #d97706;        --cyan: #0891b2;            --purple: #6d5bd0;         --blue: #2563eb; --indigo: #4f46e5; --teal: #0f766e;
  --sidebar-bg: #ffffff;    --sidebar-bg-hover: #f1f4f6; --sidebar-bg-active: var(--brand-soft);
  --sidebar-text: #5b6b75;  --sidebar-text-active: #0b1720; --sidebar-text-bright: #0b1720; --sidebar-border: #e6ebee;
  --radius: 12px;           --radius-sm: 8px;           --radius-lg: 14px;         --radius-xl: 18px;
  --shadow: 0 1px 2px rgba(11,23,32,.04), 0 6px 20px rgba(11,23,32,.05); --shadow-md: 0 10px 28px rgba(11,23,32,.08); --shadow-lg: 0 16px 44px rgba(11,23,32,.12);
  --shadow-glow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  color-scheme: light;
}

/* type: light weights, tight titles, quiet labels */
body { font-family: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.topbar h1 { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.card-header h2, .section-title, .section-head h2, .section-head h3 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.nav-group-label, .stat-label, .info-label, .label, th, .form-group label, .eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
}

/* side panel: white, quiet, the company colour only on the active item */
.sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); }
.sidebar::-webkit-scrollbar-thumb { background: #dfe6ea; }
.sidebar-brand { border-bottom: 1px solid var(--sidebar-border); }
.sidebar-brand .logo { background: var(--brand); box-shadow: none; }
.sidebar-brand .name { font-weight: 600; color: var(--text); }
.sidebar-brand .sub { color: var(--text-muted); }
.nav-group-label { color: var(--text-dim); }
.nav-item { font-weight: 500; font-size: 13.5px; border-left: 0; margin: 2px 10px; padding: 9px 12px; border-radius: 8px; color: var(--sidebar-text); }
.nav-item:hover { background: var(--sidebar-bg-hover); color: var(--sidebar-text-bright); }
.nav-item.active { background: var(--sidebar-bg-active); color: var(--sidebar-text-active); box-shadow: inset 2px 0 0 var(--brand); }
.nav-item .nav-badge { background: var(--brand-soft); color: var(--accent-hover); }
.sidebar-footer { border-top: 1px solid var(--sidebar-border); }
.sidebar-footer * { color: var(--text-secondary); }

/* top bar */
.topbar { background: rgba(255,255,255,.86); border-bottom: 1px solid var(--border); }
.topbar .back-to-site { background: #fff; color: var(--text-secondary); border: 1px solid var(--border-strong); font-weight: 500; }
.topbar .back-to-site:hover { box-shadow: none; transform: none; border-color: var(--brand); color: var(--text); }
.hamburger { background: var(--bg-surface); border-color: var(--border); }
.hamburger svg { color: var(--text-secondary); }

/* cards and tiles */
.card, .stat-card, .info-block, .section, .panel, .empty-state {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { padding: 16px 18px; }
.stat-card { padding: 16px 18px; }
.stat-card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border-strong); }
.stat-value, .num, .value { font-weight: 500; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-value { font-size: 28px; }
.stat-change { font-size: 11px; color: var(--text-muted); }
.stat-icon { background: var(--bg-surface); color: var(--brand); border-radius: 10px; }
.desc, .sub, .muted, .info-value, .k { color: var(--text-muted); }

/* pills: tinted ground, coloured text, small uppercase */
.badge {
  font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px;
  background: #eef2f4; color: #5b6b75; border: 0;
}
.badge-green, .badge-success, .badge.green, .badge.success, .badge-paid, .badge-completed, .badge-active { background: rgba(63,157,47,.10); color: #2f7f22; }
.badge-yellow, .badge-warning, .badge.yellow, .badge.warning, .badge-pending, .badge-quoted { background: rgba(201,138,10,.12); color: #9a6a05; }
.badge-red, .badge-danger, .badge.red, .badge.danger, .badge-cancelled, .badge-lost, .badge-overdue { background: rgba(217,65,79,.10); color: #b32f3c; }
.badge-blue, .badge-info, .badge.blue, .badge-cyan, .badge-scheduled, .badge-in_progress, .badge-new { background: rgba(8,145,178,.10); color: #0b6f88; }
.badge-purple, .badge.purple, .badge-contacted { background: rgba(109,91,208,.10); color: #5546b0; }

/* buttons */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: none; }
.btn-ghost { background: #fff; color: var(--text-secondary); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-strong); }
.btn-danger { background: rgba(217,65,79,.10); color: #b32f3c; border: 1px solid rgba(217,65,79,.30); }
.btn-success { background: rgba(63,157,47,.10); color: #2f7f22; border: 1px solid rgba(63,157,47,.30); }

/* tables */
table { border-collapse: collapse; }
th { padding: 10px 12px; border-bottom: 1px solid var(--border); background: transparent; }
td { padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
tr:hover td { background: var(--bg-surface); }
.totals-row td { color: var(--text); font-weight: 500; }

/* forms */
input, select, textarea { background: #fff; color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-glow); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
.form-group { margin-bottom: 14px; }

/* module tabs and pipeline chips */
.tabs a, .tab, .pill-tab { border-radius: 10px; padding: 6px 10px; color: var(--text-muted); font-weight: 500; }
.tabs a.active, .tab.active, .pill-tab.active { background: var(--brand); color: var(--brand-ink); font-weight: 600; }

/* misc */
.sidebar-overlay { background: rgba(11,23,32,.35); }
hr { border-color: var(--border); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3dce1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================================
   v3 — structure, not paint. The page header, tiles, section heads, the board, the dashboard band.
   ============================================================================ */
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.content { padding: 8px 32px 40px; max-width: 1360px; }

/* page header: eyebrow → title → sentence; actions on the right, on the same baseline */
.topbar { position: static; background: transparent; border-bottom: 0; padding: 26px 32px 14px; align-items: flex-end; backdrop-filter: none; }
.topbar .ph .eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.topbar .ph h1 { font-size: 28px; font-weight: 400; letter-spacing: -.035em; line-height: 1.15; color: var(--text); white-space: normal; }
.topbar .ph .blurb { margin: 6px 0 0; font-size: 13.5px; color: var(--text-muted); max-width: 64ch; }
.topbar .actions { padding-bottom: 6px; }

/* stat tiles: label over a big quiet number; the icon becomes a small tinted mark; no coloured left bars */
.stat-card, .kpi-box { border-left: 1px solid var(--border) !important; padding: 16px 18px 14px; box-shadow: none; }
.stat-card .stat-icon, .stat-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; top: 14px; right: 14px; background: var(--bg-surface) !important; color: var(--text-muted) !important; }
.stat-card .stat-label, .kpi-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.stat-card .stat-value, .kpi-num { font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--text) !important; line-height: 1; }
.stat-card .stat-change { margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }
.stats-grid { gap: 12px; margin-bottom: 20px; }

/* the dashboard band: the company, said quietly, not a blue billboard */
.phr-hero { background: var(--bg-panel) !important; border: 1px solid var(--border); color: var(--text); padding: 18px 22px !important; border-radius: 14px !important; }
.phr-hero * { color: inherit; }
.phr-hero [style*="animation"] { display: none; }
.phr-hero h1, .phr-hero h2, .phr-hero .name { font-weight: 500; letter-spacing: -.02em; }
.phr-hero .fa-solid, .phr-hero i { color: var(--brand); opacity: .9; }

/* section heads: small tinted mark, a plain title, a pill with the count */
.section { box-shadow: none; overflow: hidden; }
.section-head { background: transparent !important; border-bottom: 1px solid var(--border-subtle); padding: 12px 16px; }
.section-head h2 { font-size: 13.5px; font-weight: 600; color: var(--text); }
.section-icon { width: 26px !important; height: 26px !important; border-radius: 8px !important; font-size: 11px; background: var(--bg-surface) !important; color: var(--text-muted) !important; }
.section-body { padding: 14px 16px; }
.pill, .tag, .col-count { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pill { background: #eef2f4 !important; color: #5b6b75 !important; }
.pill-alert { background: rgba(217,65,79,.10) !important; color: #b32f3c !important; }
.view-btn { background: #fff; border: 1px solid var(--border-strong); color: var(--text-secondary); border-radius: 8px; font-weight: 500; }
.empty { color: var(--text-dim); font-size: 13px; }

/* the jobs board: column heads become labels with a count, the colour is a thin line under each column */
.kanban-board { gap: 12px; }
.kanban-col-header { background: transparent !important; border-bottom-width: 2px !important; padding: 8px 10px 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; border-radius: 0; }
.kanban-col-header .col-icon { display: none; }
.kanban-col-header .col-count { margin-left: auto; background: var(--bg-surface) !important; color: var(--text-secondary) !important; }
.kanban-col { background: transparent; }

/* cards: 1px line, faint lift, roomier */
.card { padding: 18px 20px; box-shadow: none; }
.card-header { margin-bottom: 14px; }

/* filters row: quiet controls */
.btn-ghost, select, input[type="search"], input[type="text"] { min-height: 36px; }

/* v3 fixes after the first look */
.phr-hero, .phr-hero * { color: var(--text) !important; }
.phr-hero .fa-solid, .phr-hero i { color: var(--brand) !important; }
.phr-hero [style*="letter-spacing"] { color: var(--text-dim) !important; font-size: 10.5px !important; letter-spacing: .14em !important; }
.phr-hero img { background: #fff; border: 1px solid var(--border); }
.kanban-col-header .col-icon { display: none !important; }
.kanban-col-header { white-space: normal !important; line-height: 1.3; letter-spacing: .08em !important; font-size: 10px !important; align-items: flex-start; }
.kanban-col { min-width: 220px !important; }

/* ============================================================================
   The strip: Lead → Quoted → Scheduled → Done → Paid (money_strip.php) and its board on the dashboard (money_board.php)
   ============================================================================ */
/* The strip carries five stages. As an inline-flex that could not wrap, Done and Paid bled out past the edge of a
   narrow card. It wraps now, and never draws wider than whatever holds it. */
.mstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 0; row-gap: 6px; max-width: 100%; }
.mstrip-wrap { max-width: 100%; overflow: hidden; }
.mstrip .ms { display: inline-flex; align-items: center; gap: 5px; position: relative; padding-right: 13px; min-width: 0; }
.mstrip .ms:after { content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 1px; background: var(--border-strong); }
.mstrip .ms:last-child { padding-right: 0; } .mstrip .ms:last-child:after { display: none; }
.mstrip .ms i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: #fff; display: inline-block; }
.mstrip .ms b { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.mstrip .ms-done i { background: var(--text-dim); border-color: var(--text-dim); } .mstrip .ms-done b { color: var(--text-muted); }
.mstrip .ms-now i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } .mstrip .ms-now b { color: var(--text); font-weight: 700; }
.mstrip.is-stuck .ms-now i { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.mstrip-lg .ms b { font-size: 11px; } .mstrip-lg .ms { padding-right: 22px; } .mstrip-lg .ms:after { width: 12px; right: 5px; }
.mstrip-note { margin-top: 8px; font-size: 13px; color: var(--text-muted); } .mstrip-note b { color: var(--text); font-weight: 600; }
.mstrip-note.is-stuck { color: #b32f3c; } .mstrip-note .dot, .mrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: middle; }

.mboard { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px 16px; margin-bottom: 18px; }
.mboard-head h2 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin: 4px 0 4px; color: var(--text); }
.mboard-head h2 .stuck { color: #b32f3c; }
.mboard-head .blurb { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); max-width: 70ch; }
.mboard-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mcol { border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px 12px 8px; background: var(--bg-surface); min-width: 0; }
.mcol.has-stuck { border-color: rgba(217,65,79,.25); }
.mcol-head { display: flex; align-items: baseline; gap: 8px; }
.mcol-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.mcol-n { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-secondary); }
.mcol-amt { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.mcol-sub { font-size: 11.5px; color: var(--text-dim); margin: 2px 0 10px; }
.mrow { display: block; background: #fff; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 9px 10px; margin-bottom: 6px; color: var(--text); text-decoration: none; transition: border-color .15s; }
.mrow:hover { border-color: var(--brand); color: var(--text); }
.mrow.is-stuck { border-left: 3px solid var(--red); }
.mrow.empty { color: var(--text-dim); font-size: 12px; border-style: dashed; }
.mrow-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .mrow-top b { font-weight: 600; }
.mrow-amt { font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.mrow-why { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; } .mrow.is-stuck .mrow-why { color: #b32f3c; }
.mrow-next { font-size: 11.5px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
@media (max-width: 1100px) { .mboard-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mboard-cols { grid-template-columns: 1fr; } }

/* the company mark (brand_mark.php) */
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; display: block; filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--brand) 28%, transparent)); }
.brand-name { font-size: 14.5px; font-weight: 650; letter-spacing: -.015em; color: var(--text); line-height: 1.15; }
.brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }
.sidebar-brand { padding: 18px 18px; }
.phr-hero .brand-mark { filter: none; }

.mstrip-wrap { margin: 8px 0 12px; }
.mstrip-cell { white-space: normal !important; min-width: 300px; }
.mstrip-why { font-size: 11px; color: #b32f3c; margin-top: 4px; }
.mstrip-card { margin: 6px 0 4px; }
.mstrip-card .mstrip .ms b { font-size: 9px; }

/* the way back to the brain, for whoever came in through Omni's door */
.topbar .omni-back { background: #0b0f17 !important; color: #e9ecf5 !important; border: 1px solid #9A8CFF !important; margin-right: 6px; }
.topbar .omni-back:hover { background: #151a2b !important; border-color: #c4b5fd !important; color: #fff !important; }
.omni-back-foot { display: block; margin-bottom: 6px; color: #6d5bd0 !important; font-weight: 600; }

/* find anyone, from any page */
.topbar { flex-wrap: wrap; gap: 10px 16px; }
.topbar .find { display: flex; align-items: center; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.topbar .find input { flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-right: 0; border-radius: 10px 0 0 10px; background: #fff; font: inherit; font-size: 13.5px; color: var(--text); min-width: 0; }
.topbar .find input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.topbar .find button { height: 36px; width: 40px; border: 1px solid var(--border-strong); border-radius: 0 10px 10px 0; background: var(--bg-surface); color: var(--text-secondary); font-size: 16px; cursor: pointer; }
.topbar .find button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 900px) { .topbar .find { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; } }

/* the today line: what today looks like, and the one thing to do first */
.phr-hero { display: none !important; }                 /* the decorative band gives way to real numbers */
.today { margin-bottom: 14px; }
.today-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.today-facts .fact { background: var(--bg-panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.today-facts .n { font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.today-facts .l { font-size: 11.5px; color: var(--text-muted); }
.today-first { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 12px 16px; border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 12px; background: var(--bg-panel); color: var(--text); text-decoration: none; }
.today-first:hover { border-color: var(--brand); color: var(--text); }
.today-first .tag { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.today-first b { font-size: 14px; font-weight: 600; }
.today-first .why { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 900px) { .today-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the company's bot, beside the customer */
.botpane { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-panel); margin: 10px 0 14px; overflow: hidden; }
.bp-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); }
.bp-head b { font-size: 13.5px; font-weight: 600; }
.bp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63,157,47,.14); flex: none; }
.bp-sub { font-size: 11.5px; color: var(--text-dim); }
.bp-toggle { margin-left: auto; height: 26px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text-secondary); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.bp-body { padding: 12px 14px 14px; }
.bp-thread { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.bp-empty { font-size: 12.5px; color: var(--text-dim); padding: 6px 0; }
.bp-msg { font-size: 13px; line-height: 1.45; padding: 9px 11px; border-radius: 10px; max-width: 92%; }
.bp-msg .bp-who { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px; }
.bp-msg.me { align-self: flex-end; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.bp-msg.them { align-self: flex-start; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.bp-msg.waiting { opacity: .6; font-style: italic; }
.bp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.bp-quick button { height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: var(--text-secondary); font: inherit; font-size: 11.5px; font-weight: 500; cursor: pointer; }
.bp-quick button:hover { border-color: var(--brand); color: var(--text); }
.bp-ask { display: flex; gap: 0; }
.bp-ask input { flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-right: 0; border-radius: 10px 0 0 10px; font: inherit; font-size: 13px; color: var(--text); min-width: 0; }
.bp-ask input:focus { outline: none; border-color: var(--brand); }
.bp-ask button { height: 36px; padding: 0 16px; border: 1px solid var(--brand); border-radius: 0 10px 10px 0; background: var(--brand); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.est-link { display: inline-block; margin: 0 0 14px; padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; }
.est-link:hover { border-color: var(--brand); color: var(--text); }

/* what the pane knows before the bot says a word */
.bp-knows { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 10px; }
.bp-know { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.bp-know .k { flex: none; width: 92px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding-top: 2px; }
.bp-know .v { color: var(--text-secondary); min-width: 0; }
.bp-know .v b.stuck { color: #b32f3c; font-weight: 600; }

/* the search answering as you type */
.topbar .find { position: relative; }
.find-hits { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 12px 32px rgba(11,23,32,.14); overflow: hidden; }
.find-hits .fh { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 12px; border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: var(--text); }
.find-hits .fh:last-child { border-bottom: 0; }
.find-hits .fh:hover { background: var(--bg-surface); }
.find-hits .fh b { font-size: 13.5px; font-weight: 600; }
.find-hits .fh-stage { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); align-self: center; }
.find-hits .fh-stage.stuck { color: #b32f3c; }
.find-hits .fh-why { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-muted); }
.find-hits .fh-none { padding: 12px; font-size: 12.5px; color: var(--text-muted); }

/* the customer's own page: the link, to copy by hand */
.cust-link { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-panel); padding: 12px 14px; margin: 0 0 14px; }
.cl-head { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cl-head span { font-weight: 400; color: var(--text-dim); }
.cl-row { display: flex; gap: 6px; }
.cl-row input { flex: 1; height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-surface); color: var(--text-secondary); font: inherit; font-size: 12px; min-width: 0; }
.cl-row button, .cl-row a { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.cl-row button:hover, .cl-row a:hover { border-color: var(--brand); color: var(--text); }
.cl-note { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

/* who sent us this customer */
.came-from { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); text-align: left; }
.came-from .cf-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); flex: none; }
.came-from select { height: 32px; }

/* Readability pass: retain company identity and existing workflows. */
:root { --text-muted:#52616d; --text-dim:#596975; --bg-card:#fff; }
body .info-value { color:var(--text); }
body .topbar .ph h1 { font-weight:600; }
body .stat-label, body .stat-card .stat-label, body .info-label,
body .form-group label, body th, body .eyebrow, body .nav-group-label {
  font-size:12px; letter-spacing:.045em; color:var(--text-muted);
}
body .card-header h2, body .section-head h2 { font-size:16px; }
body .badge, body .status-badge, body .vert-badge {
  font-size:11px !important; letter-spacing:.025em !important; line-height:1.5;
}
body .nav-item { min-height:42px; font-size:14px; }
body .nav-badge { color:#634510; background:#fff3d7; }
body .btn-primary { color:#17212b; font-weight:650; }
body .today-first .tag { color:#725011; }
body .today-facts .l, body .mrow-why, body .mrow-next { font-size:13px; }
body .mrow { padding:12px; }
body .btn, body .view-btn { min-height:40px; }
body .topbar .find input, body .topbar .find button { height:42px; }
body a:focus-visible, body button:focus-visible, body input:focus-visible,
body select:focus-visible, body textarea:focus-visible {
  outline:3px solid #165da6; outline-offset:3px;
}
body .contacts-layout { grid-template-columns:190px minmax(0,1fr); }
body .contacts-layout > * { min-width:0; }
body .contacts-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); }
body .contact-card { background:#fff; display:grid; grid-template-columns:42px minmax(0,1fr); align-items:start; }
body .contact-card-actions { grid-column:2; flex-wrap:wrap; }
body .contact-card-name { font-size:16px; white-space:normal; overflow-wrap:anywhere; }
body .contact-card-meta { color:var(--text-muted); font-size:13px; }
body .contact-card-actions { opacity:1; }
body .contact-card-actions a { color:var(--text-secondary); min-width:36px; min-height:36px; }
body .contact-detail-layout { grid-template-columns:minmax(240px,340px) minmax(0,1fr); }
@media (max-width:1100px) {
  body .contacts-layout { grid-template-columns:minmax(0,1fr); }
  body .filter-sidebar { position:static; max-height:180px; }
}
@media (max-width:768px) {
  body .content { padding:12px 16px 32px; }
  body .topbar { padding:20px 16px 12px; }
  body .contact-detail-layout { grid-template-columns:minmax(0,1fr); }
  body input, body select, body textarea { font-size:16px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* Workspace refinement: calm canvas, clear hierarchy, customer-first flow. */
:root { --bg:#f5f4f0; --border:#e3e5df; --border-subtle:#edf0e9; --bg-surface:#f8faf7; }
body .main { min-width:0; }
body .sidebar { background:linear-gradient(180deg,#fff 0%,#fafbf8 100%); }
body .sidebar-brand { padding:24px 18px; }
body .nav-item.active { background:#f5edda; box-shadow:inset 3px 0 0 var(--brand); font-weight:650; }
body .nav-group-label { margin-top:20px; letter-spacing:.08em; font-size:11px; }
body .topbar { margin:20px 24px 18px; padding:24px; border:1px solid #e3e5df; border-radius:20px; background:linear-gradient(115deg,#fff 40%,#faf3e4); box-shadow:0 4px 18px rgba(35,45,32,.035); }
body .topbar .ph h1 { font-size:30px; letter-spacing:-.04em; line-height:1.2; }
body .topbar .ph .blurb { line-height:1.65; font-size:14px; max-width:60ch; }
body .topbar .ph .eyebrow { color:#71551f; font-size:11px; letter-spacing:.09em; }
body .content { padding:0 24px 40px; }
body .card, body .stat-card, body .mboard, body .today-facts { border-radius:16px; box-shadow:0 3px 12px rgba(31,44,34,.035); }
body .stat-card { padding:20px; }
body .stat-value, body .stat-card .stat-value { font-size:32px; font-weight:650; }
body .today-first { padding:18px 20px; border-left:4px solid var(--brand); background:#fffdf7; gap:8px 14px; }
body .today-first .tag { flex-basis:100%; font-size:11px; }
body .today-first b { font-size:17px; }
body .today-first .why { font-size:14px; }
body .mboard { padding:22px; }
body .mboard-head h2 { font-size:22px; font-weight:600; }
body .mboard-head .blurb { font-size:14px; line-height:1.65; }
body .mcol { background:#f7f9f6; padding:14px; }
body .mcol-label { font-size:12px; letter-spacing:.04em; }
body .mrow { box-shadow:0 2px 6px rgba(31,44,34,.025); }
body .btn { border-radius:10px; padding:10px 15px; }
body .btn-primary:hover { color:#17212b; filter:brightness(.97); }
body .contacts-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
body .crm-filter-panel { display:block; position:static; max-height:none; background:#fff; border:1px solid var(--border); border-radius:14px; overflow:visible; }
body .crm-filter-panel summary { padding:15px 18px; cursor:pointer; font-size:14px; font-weight:650; color:var(--text); }
body .crm-filter-panel summary span { font-size:13px; font-weight:400; color:var(--text-muted); margin-left:12px; }
body .crm-filter-panel[open] .filter-section { padding:12px 18px; }
body .crm-filter-panel .filter-item { display:inline-flex; gap:12px; margin:4px; padding:9px 12px; border:1px solid var(--border); border-radius:9px; }
body .crm-filter-panel .filter-item .count { background:#eef2ea; color:#445442; }
body .search-bar-main { padding:14px; background:#fff; border:1px solid var(--border); border-radius:14px; flex-wrap:wrap; }
body .search-bar-main form { min-width:0; flex-wrap:wrap; }
body .search-bar-main input { min-width:140px; width:100px; }
body .contacts-grid { gap:16px; grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr)); }
body .contact-card { padding:20px; border-radius:16px; gap:12px 16px; box-shadow:0 3px 10px rgba(31,44,34,.035); }
body .contact-card:hover { transform:none; box-shadow:0 6px 18px rgba(31,44,34,.08); }
body .contact-card-name { font-size:17px; font-weight:650; margin-bottom:8px; }
body .contact-card-meta { margin-top:7px; line-height:1.5; }
body .contact-card-actions { padding-top:10px; border-top:1px solid var(--border-subtle); }
body .contact-card-actions a { width:42px; height:40px; background:#f7f9f6; }
body .alpha-bar { flex-wrap:wrap; gap:3px; }
body .alpha-bar a { min-width:25px; min-height:30px; }
body table th { background:#f7f9f6; }
body table td { padding:14px 12px; }
@media(max-width:768px) {
 body .topbar { margin:12px; padding:18px; }
 body .topbar .ph h1 { font-size:26px; }
 body .content { padding:0 12px 28px; }
 body .mboard { padding:16px; }
 body .crm-filter-panel summary span { display:block; margin:5px 0 0; }
}

/* Website-to-CRM identity, verified against the public site 2026-09-07.
   Light working surfaces are intentional; status colors retain their meaning. */
body { --brand:#f59e0b; --company-ink:#0b1120; --company-soft:#fff7e6; --company-line:#e8dfcd; background:#fff7e6; font-family:Inter,"Segoe UI",sans-serif; }
body .brand-name, body .topbar h1, body .v360-overview h1, body .v360-overview-note strong { font-family:"Fredoka",system-ui,sans-serif; }
body .brand-name { color:#0b1120; }
body .sidebar { background:#fff; }
body .topbar, body .v360-overview .v360-overview-hero { background:linear-gradient(120deg,#fff,#fff7e6); border-color:#e8dfcd; }
body .v360-overview { --ov-ink:#0b1120; --ov-green:#0b1120; --ov-line:#e8dfcd; }
body .v360-overview .v360-primary { background:#f59e0b; color:#0b1120; border-color:#f59e0b; }
body .v360-overview .v360-secondary { color:#0b1120; border-color:#e8dfcd; }
body .v360-overview .v360-overview-note { background:#fff7e6; border-color:#e8dfcd; }
body .v360-overview .v360-overview-note strong { color:#0b1120; }
body .v360-overview .v360-overview-note p, body .v360-overview .v360-overview-note small, body .v360-overview .v360-eyebrow, body .v360-overview .v360-metric-label { color:#40566b; }
body .v360-note-rule { background:#f59e0b; }
body .v360-step { background:#fff7e6; border-color:#e8dfcd; color:#76561b; }
body .v360-overview a:focus-visible { outline-color:#0b1120; }
body .nav-item.active { background:#fff7e6; box-shadow:inset 3px 0 0 #f59e0b; }
body .brand-mark { flex-shrink:0; }
