/* WCS Intelligence, Design v4 (DESIGN_V4.md). One stylesheet for the whole app: tokens, shell, components, pages,
   a handful of spacing helpers, dark theme and print. Inspiration: Linear (precision, calm hierarchy) and Stripe
   (deep navy headings, chromatic shadows, light weights). Weights 400 / 500 / 600 only. 8px grid. */

/* ------------------------------------------------------------------------------------------------ tokens */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --sidebar: #0b1b33;
  --heading: #061b31;
  --body: #334155;
  --muted: #64748b;
  --border: #e5edf5;
  --border-strong: #d5dfeb;
  --accent: #0f9d8f;
  --accent-hover: #0b7f74;
  --accent-soft: #e6f6f4;
  --accent-ink: #0b6e65;
  --navy: #1e3a8a;
  --navy-soft: #eef2fb;
  --green: #15be53;
  --amber: #f59e0b;
  --amber-soft: #fff7e6;
  --amber-ink: #8a5300;
  --cold: #94a3b8;
  --cold-soft: #eef2f6;
  --red: #e11d48;
  --red-soft: #fff0f3;
  --red-ink: #b0123a;
  --radius: 10px;
  --radius-btn: 8px;
  --shadow: 0 1px 2px rgba(6, 27, 49, .06), 0 8px 24px -12px rgba(50, 50, 93, .25);
  --shadow-hover: 0 1px 2px rgba(6, 27, 49, .06), 0 12px 32px -12px rgba(50, 50, 93, .35);
  --focus: 0 0 0 3px rgba(15, 157, 143, .35);
  --sidebar-w: 232px;
  --max: 1280px;
  --gutter: 24px;
  /* angle colours (consistent across the app) */
  --ang-full_tcm: #0f9d8f;     --ang-full_tcm-bg: #e6f6f4;
  --ang-regional_tcm: #0e7490; --ang-regional_tcm-bg: #e5f4f8;
  --ang-gsa: #1e3a8a;          --ang-gsa-bg: #eef2fb;
  --ang-interline: #7c3aed;    --ang-interline-bg: #f3effd;
  --ang-block_hours: #b45309;  --ang-block_hours-bg: #fdf3e7;
  --ang-cluster: #be185d;      --ang-cluster-bg: #fcedf4;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1424;
  --surface: #101e33;
  --surface-2: #0d192b;
  --sidebar: #07111f;
  --heading: #eef3fa;
  --body: #c5d0de;
  --muted: #8d9bb0;
  --border: #1e2f48;
  --border-strong: #2a3e5c;
  --accent: #19b3a3;
  --accent-hover: #2cc7b7;
  --accent-soft: #0f2e30;
  --accent-ink: #5fd8cb;
  --navy: #8ea8f0;
  --navy-soft: #16264a;
  --amber-soft: #2e2410;
  --amber-ink: #f7c46a;
  --cold-soft: #1a283d;
  --red-soft: #33141f;
  --red-ink: #ff8aa5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .75);
  --ang-full_tcm-bg: #0f2e30; --ang-full_tcm: #5fd8cb;
  --ang-regional_tcm-bg: #0d2a35; --ang-regional_tcm: #67c6e0;
  --ang-gsa-bg: #16264a; --ang-gsa: #9db4f5;
  --ang-interline-bg: #261a45; --ang-interline: #b89bf7;
  --ang-block_hours-bg: #33230f; --ang-block_hours: #f0b46a;
  --ang-cluster-bg: #351326; --ang-cluster: #f28dbd;
  color-scheme: dark;
}

/* ------------------------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; color: var(--heading); font-weight: 600; }
p, ul, ol, dl, dd, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; }
code { font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .money-num, .tabular { font-variant-numeric: tabular-nums; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
       stroke-linejoin: round; }
.ico-sm { width: 13px; height: 13px; }
.ico-lg { width: 20px; height: 20px; }

/* type scale */
.page-title { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.5px; color: var(--heading); }
.section-title { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--heading); }
.overline, .card-title { font-size: 11px; line-height: 1.4; font-weight: 500; letter-spacing: .6px; text-transform: uppercase;
                         color: var(--muted); }
.card-title { display: block; margin-bottom: 12px; }
.h1 { font-size: 28px; font-weight: 600; letter-spacing: -.5px; color: var(--heading); }
.h2 { font-size: 15px; font-weight: 600; color: var(--heading); }
.h3 { font-size: 16px; font-weight: 600; color: var(--heading); }
.muted, .meta { font-size: 13px; color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; color: var(--heading); }
.medium { font-weight: 500; }
.ink { color: var(--heading); }
.danger { color: var(--red); }
.warn-ink { color: var(--amber-ink); }
.accent { color: var(--accent); }
.prose li { margin-top: 4px; }
.list-disc { list-style: disc; padding-left: 18px; }
.list-num { list-style: decimal; padding-left: 20px; }
.list-num li::marker { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------------------------------------------ helpers (spacing) */
.flex { display: flex; } .inline-flex { display: inline-flex; } .grid { display: grid; } .block { display: block; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; } .items-center { align-items: center; } .items-start { align-items: flex-start; }
.items-end { align-items: flex-end; } .items-baseline { align-items: baseline; }
.between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.grow { flex: 1 1 0%; min-width: 0; } .none { flex: none; } .min-w-0 { min-width: 0; } .w-full { width: 100%; }
.ml-auto { margin-left: auto; } .text-right { text-align: right; } .center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nowrap { white-space: nowrap; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; }
.p-0 { padding: 0; } .pt-3 { padding-top: 12px; }
.stack > * + * { margin-top: 8px; } .stack-3 > * + * { margin-top: 12px; } .stack-4 > * + * { margin-top: 16px; }
.divide > * + * { border-top: 1px solid var(--border); }
.sep { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.hidden { display: none !important; }
.print-only { display: none; }

/* ------------------------------------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar);
           color: #cbd5e1; padding: 20px 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
              color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 6px 16px -6px rgba(15, 157, 143, .8); }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.navlink { position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px;
           border-radius: 8px; font-size: 14px; font-weight: 500; color: #b6c2d3; }
.navlink::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
                   -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.navlink:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.navlink.active { color: #fff; background: rgba(255, 255, 255, .1); }
.navlink.active::after { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
                         border-radius: 0 3px 3px 0; background: var(--accent); }
.navlink[data-icon="radar"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.07 4.93A10 10 0 0 0 6.99 3.34'/%3E%3Cpath d='M4 6h.01'/%3E%3Cpath d='M2.29 9.62A10 10 0 1 0 21.31 8.35'/%3E%3Cpath d='M16.24 7.76A6 6 0 1 0 8.23 16.67'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M17.99 11.66A6 6 0 0 1 15.77 16.67'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='m13.41 10.59 5.66-5.66'/%3E%3C/svg%3E"); }
.navlink[data-icon="opportunities"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.navlink[data-icon="pipeline"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M8 7v7M12 7v4M16 7v9'/%3E%3C/svg%3E"); }
.navlink[data-icon="airlines"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/svg%3E"); }
.navlink[data-icon="admin"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4'/%3E%3C/svg%3E"); }
.navlink[data-icon="queue"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect width='4' height='12' x='2' y='9'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E"); }
.side-sub { margin: 18px 12px 6px; font-size: 11px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: #6b7d96; }
.side-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user .initials { background: rgba(255, 255, 255, .12); color: #fff; }
.side-user-name { font-size: 13px; font-weight: 500; color: #fff; }
.side-user-role { font-size: 12px; color: #8b9bb2; text-transform: capitalize; }
.side-actions { display: flex; gap: 6px; margin-top: 12px; }
.side-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px;
            font-size: 12px; font-weight: 500; color: #b6c2d3; background: rgba(255, 255, 255, .05); }
.side-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.theme-dark-ico { display: none; }
[data-theme="dark"] .theme-dark-ico { display: block; }
[data-theme="dark"] .theme-light-ico { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px;
          padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent);
          backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.topbar-title { font-size: 15px; font-weight: 600; color: var(--heading); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.search { position: relative; }
.search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 280px; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 8px;
                background: var(--surface); font-size: 13px; color: var(--heading); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.topbar-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.menu-btn { display: none; }
.page { width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
             margin-bottom: 24px; }
.page-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.footer { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) 32px; display: flex; flex-wrap: wrap;
          gap: 8px 24px; font-size: 12px; color: var(--muted); }
.popover { position: absolute; bottom: 26px; left: 0; z-index: 30; width: 380px; max-width: 86vw; padding: 16px;
           border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-hover);
           border: 1px solid var(--border); font-size: 12px; line-height: 1.6; color: var(--body); }
.linkish { color: var(--accent); cursor: pointer; font-weight: 500; }
.linkish:hover { color: var(--accent-hover); text-decoration: underline; }

/* mobile: the sidebar collapses to a top bar with a menu button */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; z-index: 40; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
             padding: 10px 14px; }
  .brand { padding: 4px; }
  .menu-btn { display: inline-flex; margin-left: auto; color: #fff; padding: 8px; border-radius: 8px; }
  .side-nav, .side-foot, .side-sub { display: none; width: 100%; }
  .sidebar.open .side-nav, .sidebar.open .side-foot { display: flex; }
  .sidebar.open .side-foot { display: block; }
  .navlink.active::after { left: 0; }
  .topbar { position: static; height: auto; flex-wrap: wrap; padding: 12px 16px; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .topbar-date { display: none; }
  .page { padding: 20px 16px 32px; }
}

/* ------------------------------------------------------------------------------------------------ cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
        border: 1px solid var(--border); }
.card-pad-sm { padding: 14px 16px; }
.card-flat { box-shadow: none; }
.lift { transition: box-shadow .18s ease, transform .18s ease; }
.lift:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.clickable { cursor: pointer; }
.well { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.well-accent { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
               border-radius: var(--radius); padding: 12px 14px; }
.section { margin-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
                margin-bottom: 16px; }
.section-head .card-title { margin: 0; font-size: 12px; }
.callout { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.callout-red { background: var(--red-soft); color: var(--red-ink); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.callout-red-solid { background: var(--red); color: #fff; border-color: var(--red); font-weight: 600; }
.callout-amber { background: var(--amber-soft); color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.callout-grey { background: var(--surface-2); color: var(--muted); border-color: var(--border); font-size: 13px; }
.callout-teal { background: var(--accent-soft); color: var(--heading); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ------------------------------------------------------------------------------------------------ buttons */
.btn, .btn-teal, .btn-primary, .btn-ghost, .btn-secondary, .btn-xs, .btn-plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-btn); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; border: 1px solid transparent;
}
.btn, .btn-teal, .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(6, 27, 49, .12); }
.btn:hover, .btn-teal:hover, .btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost, .btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 13px; background: var(--surface); color: var(--heading);
          border-color: var(--border-strong); }
.btn-xs:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-plain { background: transparent; color: var(--muted); padding: 0 8px; }
.btn-plain:hover { color: var(--heading); background: var(--surface-2); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.copied, .btn-xs.copied, .btn-teal.copied { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
form.inline { display: inline; }

/* ------------------------------------------------------------------------------------------------ chips */
.chip, .badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px;
                font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.chip .ico { width: 12px; height: 12px; }
.chip-pipeline { color: var(--navy); border-color: color-mix(in srgb, var(--navy) 55%, transparent); background: transparent; }
.chip-new { background: var(--accent); color: #fff; }
.chip-conflict { background: var(--amber-soft); color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.chip-compliance { background: var(--red); color: #fff; }
.chip-red-soft { background: var(--red-soft); color: var(--red-ink); }
.chip-stage { background: var(--cold-soft); color: var(--body); }
.chip-stage b { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: -4px; padding: 0 4px;
                border-radius: 999px; background: var(--surface); color: var(--heading); font-size: 11px; font-weight: 600; }
.chip-grey { background: var(--cold-soft); color: var(--body); }
.chip-teal { background: var(--accent-soft); color: var(--accent-ink); }
.chip-navy { background: var(--navy-soft); color: var(--navy); }
.chip-ok { background: var(--accent-soft); color: var(--accent-ink); }
.chip-amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip-violet { background: var(--ang-interline-bg); color: var(--ang-interline); }
.chip-blue { background: var(--ang-regional_tcm-bg); color: var(--ang-regional_tcm); }
.chip-date { background: var(--surface-2); color: var(--body); border-color: var(--border); }
.chip-date.overdue { background: var(--red-soft); color: var(--red-ink); border-color: transparent; font-weight: 600; }
.chip-solid-teal { background: var(--accent); color: #fff; }
.chip-gap, .gap-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px;
                       border: 1px dashed var(--border-strong); color: var(--muted); font-size: 12px; font-weight: 500;
                       white-space: nowrap; background: transparent; }
.chip-est { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
            background: var(--cold-soft); color: var(--muted); font-size: 11px; font-weight: 500; text-transform: none;
            letter-spacing: 0; }
.angle { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
         font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--c); background: var(--bg-c); }
.angle .ico { width: 13px; height: 13px; }
.angle-full_tcm { --c: var(--ang-full_tcm); --bg-c: var(--ang-full_tcm-bg); }
.angle-regional_tcm { --c: var(--ang-regional_tcm); --bg-c: var(--ang-regional_tcm-bg); }
.angle-gsa { --c: var(--ang-gsa); --bg-c: var(--ang-gsa-bg); }
.angle-interline { --c: var(--ang-interline); --bg-c: var(--ang-interline-bg); }
.angle-block_hours { --c: var(--ang-block_hours); --bg-c: var(--ang-block_hours-bg); }
.angle-cluster { --c: var(--ang-cluster); --bg-c: var(--ang-cluster-bg); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* sources */
.src-link { display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px; color: var(--accent); font-size: 12px;
            font-weight: 500; white-space: nowrap; }
.src-link .ico { width: 13px; height: 13px; }
.src-link:hover { color: var(--accent-hover); }
.src-int { font-size: 12px; color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------------------------------------------ avatars */
.avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px;
          font-size: 20px; line-height: 1; background: var(--tint, var(--accent-soft)); }
.tint-0 { --tint: var(--ang-full_tcm-bg); } .tint-1 { --tint: var(--ang-gsa-bg); } .tint-2 { --tint: var(--ang-interline-bg); }
.tint-3 { --tint: var(--ang-block_hours-bg); } .tint-4 { --tint: var(--ang-cluster-bg); } .tint-5 { --tint: var(--ang-regional_tcm-bg); }
.w { width: calc(var(--w) * 1%); }
.avatar-lg { width: 56px; height: 56px; font-size: 28px; }
.avatar-sm { width: 28px; height: 28px; font-size: 14px; }
.avatar-xs { width: 22px; height: 22px; font-size: 12px; }
.ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ident-name { font-size: 16px; font-weight: 600; color: var(--heading); line-height: 1.25; }
.ident-meta { font-size: 13px; color: var(--muted); }
.ident-sm .ident-name { font-size: 14px; }
.initials { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px;
            background: var(--navy-soft); color: var(--navy); font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.initials-lg { width: 36px; height: 36px; font-size: 13px; }
.initials-teal { background: var(--accent-soft); color: var(--accent-ink); }
.initials-grey { background: var(--cold-soft); color: var(--muted); }
.avatar-stack { display: flex; }
.avatar-stack > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack > *:first-child { margin-left: 0; }

/* ------------------------------------------------------------------------------------------------ money */
.money { display: inline-flex; flex-direction: column; gap: 6px; min-width: 120px; }
.money-line { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.money-num { font-size: 24px; font-weight: 600; color: var(--heading); letter-spacing: -.4px; line-height: 1.1; }
.money-unit { font-size: 13px; color: var(--muted); }
.money-sm .money-num { font-size: 15px; letter-spacing: 0; }
.money-sm .money-unit { font-size: 12px; }
.money-right { align-items: flex-end; }
.range { position: relative; height: 4px; width: 100%; min-width: 100px; border-radius: 999px; background: var(--border); }
.range-fill { position: absolute; top: 0; bottom: 0; left: calc(var(--lo) * 1%); width: calc((var(--hi) - var(--lo)) * 1%);
              border-radius: 999px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.range-mark { position: absolute; top: -3px; left: calc(var(--base) * 1%); width: 10px; height: 10px; margin-left: -5px; border-radius: 999px;
              background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }

/* ------------------------------------------------------------------------------------------------ warmth meter */
.meter { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.meter-bars { display: inline-flex; gap: 2px; }
.meter-bars i { display: block; width: 10px; height: 6px; border-radius: 2px; background: var(--border); }
.meter-warm .meter-bars i.on { background: var(--accent); }
.meter-amber .meter-bars i.on { background: var(--amber); }
.meter-cold .meter-bars i.on { background: var(--cold); }
.meter-label { font-size: 12px; font-weight: 500; }
.meter-warm .meter-label { color: var(--accent-ink); }
.meter-amber .meter-label { color: var(--amber-ink); }
.meter-cold .meter-label { color: var(--muted); }
.meter-mini .meter-bars i { width: 6px; height: 5px; }
.meter-mini { gap: 6px; }

/* ------------------------------------------------------------------------------------------------ fit ring */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--border); }
.ring .val { stroke: var(--accent); transition: stroke-dashoffset .3s ease; }
.ring b { position: relative; font-size: 13px; font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.ring-sm { width: 28px; height: 28px; }
.ring-sm b { font-size: 10px; }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv-label { font-size: 11px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.kv-value { font-size: 15px; font-weight: 600; color: var(--heading); }

/* ------------------------------------------------------------------------------------------------ signal row */
.sig { display: grid; grid-template-columns: 78px 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; }
.sig + .sig { border-top: 1px solid var(--border); }
.sig-date { font: 500 12px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); white-space: nowrap; }
.sig-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--sc);
           background: color-mix(in srgb, var(--sc) 12%, transparent); }
.sig-ico .ico { width: 14px; height: 14px; }
.sig-head { font-size: 14px; font-weight: 500; color: var(--heading); }
.sig-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.sig-gsa_tender { --sc: #e11d48; } .sig-fleet { --sc: #2563eb; } .sig-leadership { --sc: #7c3aed; }
.sig-financial { --sc: #d97706; } .sig-cargo { --sc: #0f9d8f; } .sig-route { --sc: #0e7490; }
.sig-partnership { --sc: #1e3a8a; } .sig-competitor_deal { --sc: #be185d; } .sig-other { --sc: #64748b; }
[data-theme="dark"] .sig-partnership { --sc: #8ea8f0; }

/* ------------------------------------------------------------------------------------------------ door sentence */
.door { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: var(--radius);
        background: var(--surface-2); border: 1px solid var(--border); }
.door-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; font-size: 13px;
              color: var(--heading); font-weight: 500; }
.door-chain .arrow { color: var(--muted); }
.door-chain .arrow .ico { width: 14px; height: 14px; }
.door-node { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.door-why { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.door-text { flex-basis: 100%; font-size: 14px; color: var(--body); }

/* ------------------------------------------------------------------------------------------------ forms */
.input, select.input, textarea.input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong);
                                       border-radius: 8px; background: var(--surface); font-size: 14px; color: var(--heading); }
textarea.input { height: auto; padding: 8px 12px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input-sm { height: 30px; font-size: 13px; padding: 0 8px; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--body); }
.label > .input { margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.form-stack > * + * { margin-top: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.kv-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 12px;
            border-bottom: 1px solid var(--border); }
.kv-input span { min-width: 0; overflow-wrap: anywhere; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
.kv-input input { flex: none; width: 96px; height: 26px; padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 6px;
                  background: var(--surface); text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }

/* pills (filters) */
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
        border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 500;
        color: var(--body); cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--accent); color: var(--accent-ink); }
.pill.on, .pill:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .pill.on, [data-theme="dark"] .pill:has(input:checked) { color: #0a1424; }
.pill input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.pill select { border: 0; background: transparent; font-size: 13px; font-weight: 500; color: inherit; padding: 0 2px; cursor: pointer; }
.pill select:focus { outline: none; }
.pill-sep { width: 1px; height: 20px; background: var(--border-strong); margin: 0 4px; }

/* ------------------------------------------------------------------------------------------------ tables */
.table-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
              overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.th { padding: 12px 12px; text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase;
      color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.td { padding: 10px 12px; font-size: 14px; color: var(--body); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child .td { border-bottom: 0; }
.table .ident { max-width: 260px; }
.td-who { min-width: 200px; max-width: 260px; }
.td-who .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-link { cursor: pointer; transition: background .12s ease; }
.row-link:hover .td { background: var(--surface-2); }
.table-lg .td { height: 56px; }
.th[data-sort] { cursor: pointer; }
.th[data-sort]::after { content: "↕"; margin-left: 4px; opacity: .35; }
.th[data-sort][aria-sort]::after { content: "↓"; opacity: 1; color: var(--accent); }
.th[data-sort]:hover { color: var(--heading); }
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.th-sort .ico { width: 12px; height: 12px; opacity: .45; }
.th-sort.on { color: var(--heading); }
.th-sort.on .ico { opacity: 1; color: var(--accent); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-table td, .mini-table th { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.mini-table th { font-weight: 500; color: var(--muted); }

/* ------------------------------------------------------------------------------------------------ tabs, accordion */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 16px; scrollbar-width: thin; }
.tab { position: relative; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--heading); }
.tab.on, .tab[aria-selected="true"] { color: var(--heading); }
.tab.on::after, .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px;
                                                     height: 2px; border-radius: 2px; background: var(--accent); }
.tabbed > details > summary { display: none; }
.tabbed > details { margin: 0; }
.sec > summary, .acc > summary { list-style: none; }
.sec > summary::-webkit-details-marker, .acc > summary::-webkit-details-marker { display: none; }
.sec-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; padding: 12px 16px;
               border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 14px;
               font-weight: 600; color: var(--heading); }
.acc { border-bottom: 1px solid var(--border); }
.acc:last-of-type { border-bottom: 0; }
.acc > summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; }
.acc > summary h4 { flex: 1; font-size: 14px; font-weight: 600; color: var(--heading); text-transform: none; letter-spacing: 0; margin: 0; }
.acc > summary .chev { color: var(--muted); transition: transform .2s ease; }
.acc[open] > summary .chev { transform: rotate(180deg); }
.acc-body { padding: 0 0 16px; }
.acc-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); }
.acc-ico .ico { width: 14px; height: 14px; }
.toggle-more { font-size: 13px; font-weight: 500; color: var(--accent); }
.toggle-more:hover { color: var(--accent-hover); text-decoration: underline; }

/* ------------------------------------------------------------------------------------------------ drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 18, 31, .35); }
.drawer { position: fixed; right: 0; top: 0; z-index: 50; height: 100%; width: 100%; max-width: 520px; overflow-y: auto;
          background: var(--surface); padding: 24px; box-shadow: -24px 0 48px -24px rgba(6, 27, 49, .45);
          border-left: 1px solid var(--border); }
.drawer-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px;
                border-radius: 8px; color: var(--muted); }
.drawer-close:hover { background: var(--surface-2); color: var(--heading); }

/* ------------------------------------------------------------------------------------------------ copy blocks */
.copybox { white-space: pre-wrap; font: inherit; font-size: 14px; color: var(--body); background: var(--surface);
           border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.copybox-soft { background: var(--surface-2); font-size: 13px; }

/* ------------------------------------------------------------------------------------------------ Opportunities */
.opp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.opp-main { order: 1; }
.opp-layout > .rail { order: 2; }
.rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.rail .card { padding: 16px; }
.rail-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.rail-item + .rail-item { border-top: 1px solid var(--border); }
.rail-date { flex: none; width: 44px; text-align: center; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
             padding: 4px 0; line-height: 1.1; }
.rail-date b { display: block; font-size: 15px; font-weight: 600; color: var(--heading); }
.rail-date span { font-size: 10px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1180px) { .opp-layout { grid-template-columns: minmax(0, 1fr); } .rail { position: static; display: grid;
                             grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

.stackbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--border); }
.stackbar > span { display: block; height: 100%; }
.stackbar > span + span { box-shadow: -1px 0 0 var(--surface); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.legend b { font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.shade-0 { background: #0b6e65; } .shade-1 { background: #0f9d8f; } .shade-2 { background: #3fbcae; }
.shade-3 { background: #7dd6cb; } .shade-4 { background: #b9e9e2; } .shade-5 { background: #dbf4f0; }

.top-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.top-grid > .opp-card { grid-column: span 2; }
.top-grid > .opp-card:nth-child(4) { grid-column: 2 / span 2; }
.top-grid > .opp-card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1400px) { .top-grid > .opp-card:nth-child(4), .top-grid > .opp-card:nth-child(5) { grid-column: span 3; } }
@media (max-width: 900px) { .top-grid { grid-template-columns: minmax(0, 1fr); } .top-grid > .opp-card,
                            .top-grid > .opp-card:nth-child(n) { grid-column: auto; } }
.opp-card { position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.opp-rank { position: absolute; right: 14px; top: -6px; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -3px;
            color: var(--heading); opacity: .05; pointer-events: none; font-variant-numeric: tabular-nums; }
.opp-why { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--body); }
.opp-why p { display: flex; gap: 8px; }
.opp-why p::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 999px; background: var(--accent); }
.opp-why .lbl { font-weight: 600; color: var(--heading); }
.opp-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

.hscroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.qw { flex: none; width: 280px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.qw-type { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--qc); }
.qw-bar { height: 3px; border-radius: 3px; background: var(--qc); margin: -16px -16px 4px; border-radius: 10px 10px 0 0; }
.qw-tender { --qc: #e11d48; } .qw-agent_change { --qc: #1e3a8a; } .qw-first_agent { --qc: #7c3aed; }
.qw-idle_freighter { --qc: #b45309; } .qw-leadership { --qc: #0e7490; } .qw-event { --qc: #0f9d8f; }
[data-theme="dark"] .qw-agent_change { --qc: #8ea8f0; }
.qw-window { font-size: 13px; color: var(--body); }
.qw-next { font-size: 13px; color: var(--heading); margin-top: auto; }

.region { margin-bottom: 28px; }
.region-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.region-head h3 { font-size: 15px; }
.region-summary { flex: 1 1 320px; }
.minibar { display: flex; width: 120px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--border); }
.minibar span { display: block; height: 100%; }
.mb-warm { background: var(--accent); } .mb-amber { background: var(--amber); } .mb-cold { background: var(--cold); }
.minibar-legend { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; color: inherit; }
.tile:hover { color: inherit; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ------------------------------------------------------------------------------------------------ Opportunity detail */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 24px; }
.hero-name { font-size: 28px; font-weight: 600; letter-spacing: -.5px; color: var(--heading); line-height: 1.15; }
.hero-meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.angle-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -20px -20px 16px; padding: 14px 20px;
               background: var(--surface-2); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.angle-strip p { flex: 1 1 260px; font-size: 14px; color: var(--heading); }
.angle-strip .lbl { font-weight: 600; color: var(--accent-ink); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 24px; align-items: start; margin-top: 24px; }
.detail-grid > .col-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sticky { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; max-height: none; } }
.bullets > li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.bullets > li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--accent); }
.bullets .lbl { font-weight: 600; color: var(--heading); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border);
          background: var(--surface-2); }
.person-name { font-size: 14px; font-weight: 600; color: var(--heading); }
.person-title { font-size: 12px; color: var(--muted); }
.tick { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--accent-ink); }
.tick .ico { width: 13px; height: 13px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.path { border-radius: var(--radius); padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); }
.path-first { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.path-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--heading);
          color: var(--surface); font-size: 11px; font-weight: 600; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols-5-3-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 900px) { .cols-2, .cols-3, .cols-5-3-2 { grid-template-columns: minmax(0, 1fr); } }
.bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* contact panel */
.contact-head { display: flex; align-items: flex-start; gap: 12px; }
.channel .item { padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.channel .item + .item { margin-top: 8px; }
.channel .item-warm { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.channel .item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--heading); }

/* ------------------------------------------------------------------------------------------------ Pipeline */
.summary-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .summary-cards { grid-template-columns: minmax(0, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-num { font-size: 28px; font-weight: 600; letter-spacing: -.5px; color: var(--heading); line-height: 1; font-variant-numeric: tabular-nums; }
.funnel { display: flex; gap: 3px; margin-bottom: 16px; }
.funnel > div { flex: 1 1 0; min-width: 0; text-align: center; }
.funnel .f-bar { height: 6px; border-radius: 3px; background: var(--fc); opacity: var(--fo, 1); }
.funnel .f-lbl { margin-top: 4px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.kcol { flex: none; width: 248px; }
.kcol-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius) var(--radius) 0 0;
             border-top: 3px solid var(--kc); background: var(--surface); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.kcol-title { font-size: 13px; font-weight: 600; color: var(--heading); }
.kcol-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kanban-col { min-height: 140px; max-height: 72vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 0 0 var(--radius) var(--radius);
              background: color-mix(in srgb, var(--kc) 6%, var(--surface-2)); border: 1px solid var(--border); border-top: 0; }
.kc-grey { --kc: #94a3b8; } .kc-teal { --kc: #0f9d8f; } .kc-navy { --kc: #1e3a8a; } .kc-green { --kc: #15be53; }
[data-theme="dark"] .kc-navy { --kc: #8ea8f0; }
.deal-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; background: var(--surface);
             border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(6, 27, 49, .05); cursor: pointer; }
.deal-card:hover { box-shadow: var(--shadow-hover); }
.sortable-ghost { opacity: .4; }

/* ------------------------------------------------------------------------------------------------ Settings */
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.subnav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.subnav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.subnav a:hover, .subnav a.on { background: var(--surface); color: var(--heading); box-shadow: var(--shadow); }
.settings-layout .card { scroll-margin-top: 88px; }
@media (max-width: 900px) { .settings-layout { grid-template-columns: minmax(0, 1fr); } .subnav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* ------------------------------------------------------------------------------------------------ Login */
.login-bg { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%,
            #16365f 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #0f4a4a 0%, transparent 55%), #0b1b33; }
.login-card { width: 100%; max-width: 380px; padding: 32px; background: var(--surface); border-radius: 14px;
              box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }

/* ------------------------------------------------------------------------------------------------ print */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; color: #1f2937; font-size: 11px; }
  .sidebar, .topbar, .footer, .no-print, .rail, form, button, .hero-actions, .tabs, .drawer, .scrim { display: none !important; }
  .shell { display: block; }
  .page { max-width: none; padding: 0; }
  .card, .table-card { box-shadow: none !important; border: 1px solid #dbe3ec; break-inside: avoid; padding: 10px; }
  .detail-grid { grid-template-columns: 62fr 38fr; gap: 10px; margin-top: 8px; }
  .detail-grid > .col-left { gap: 8px; }
  .sticky { position: static; max-height: none; overflow: visible; }
  .hero { padding: 10px 12px; }
  .hero-name { font-size: 18px; }
  .money-num { font-size: 16px; }
  .people { gap: 6px; }
  .person { padding: 6px; }
  .acc > summary { padding: 4px 0; }
  .acc > summary .chev, .acc-ico { display: none; }
  /* page 1 = hero + Why them + Who + How to reach (door + first channel); everything else after a page break */
  .page { zoom: .84; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #how-to-reach, #why-them, #who-block { break-inside: auto; }
  #why-them .sep, .contact-head, .acc:not(:first-of-type) .acc-body, .copybox { display: none !important; }
  #what-to-ask { break-before: page; }
  .print-break, #details { break-before: page; }
  #details details > *:not(summary) { display: block !important; }
  .tabbed > details > summary { display: block; font-weight: 600; margin-top: 8px; }
  a { color: inherit !important; }
  #details .src-link::after { content: " (" attr(href) ")"; font-size: 8px; color: #64748b; word-break: break-all; }
  .print-only { display: block !important; }
  .lift:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* narrow single-card pages (Contact, Airline brief) */
.narrow { max-width: 640px; margin: 0 auto; }
.brief { max-width: 760px; margin: 0 auto; padding: 32px; }

/* ------------------------------------------------------------------------------------------------ Radar v5 */
.win-card { position: relative; }
.win-live_tender { --qc: #e11d48; } .win-tip { --qc: #0f9d8f; } .win-predicted_retender { --qc: #1e3a8a; }
.win-capacity { --qc: #0e7490; } .win-leadership { --qc: #7c3aed; } .win-distress { --qc: #b45309; }
[data-theme="dark"] .win-predicted_retender { --qc: #8ea8f0; }
.win-sub { font-size: 13px; color: var(--heading); }
.win-badge { border: 1px solid var(--qc); color: var(--qc); background: transparent; gap: 4px; }
.win-badge .ico { width: 12px; height: 12px; }
.win-list .sig { align-items: center; }
.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 10px 0; align-items: start; }
.tl-row + .tl-row { border-top: 1px solid var(--border); }
.tl-now { background: var(--accent-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.tl-month { font-size: 13px; font-weight: 600; color: var(--heading); padding-top: 4px; }
.win-chip { border: 1px solid var(--qc); color: var(--qc); background: transparent; cursor: pointer; gap: 5px; max-width: 100%; }
.win-chip:hover { background: var(--surface-2); }
.win-chip .ico { width: 13px; height: 13px; }
.way { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 4px 0; }
.checklist li { padding: 3px 0; font-size: 13px; }
.checklist label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.checklist input { margin-top: 3px; }
.respond-panel .item + .item { margin-top: 14px; }
.tip-form textarea { resize: vertical; }
@media (max-width: 700px) { .tl-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- Leads v6: funnel + expandable rows ---------------- */
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.funnel-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--lane); color: var(--heading); text-decoration: none; }
.funnel-tile:hover { transform: translateY(-1px); }
.funnel-n { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--lane); }
.funnel-label { font-size: 14px; font-weight: 600; }
.funnel-money { font-size: 13px; color: var(--muted); }
.lane-bid { --lane: #dc2626; } .lane-contact { --lane: var(--accent); } .lane-strong { --lane: #d97706; } .lane-weak { --lane: #94a3b8; }
.lane-title { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.lane-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lane); }
.card-flush { padding: 0; overflow: hidden; }
.lead-list .lead + .lead { border-top: 1px solid var(--border); }
.lead > summary { list-style: none; cursor: pointer; }
.lead > summary::-webkit-details-marker { display: none; }
.lead-sum { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(0, 2.2fr) 110px 92px 92px 20px; gap: 14px;
  align-items: center; padding: 12px 16px; border-left: 3px solid var(--lane); }
.lead-sum:hover { background: var(--surface-2); }
.lead-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; color: var(--heading); }
.lead-src { font-size: 12px; }
.src-pill { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--body); font-size: 12px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.src-pill { color: var(--accent-ink); }
.src-pill .ico { width: 12px; height: 12px; flex: none; }
.lead-money { font-size: 16px; font-weight: 700; color: var(--heading); text-align: right; font-variant-numeric: tabular-nums; }
.lead-fit { display: flex; flex-direction: column; align-items: center; font-size: 18px; font-weight: 700; line-height: 1.1; }
.lead-fit small { font-size: 11px; font-weight: 500; color: var(--muted); }
.fit-strong { color: var(--accent-ink); } .fit-good { color: var(--heading); } .fit-low, .fit-not { color: var(--muted); }
.lead-chev .ico { width: 16px; height: 16px; transition: transform .15s; color: var(--muted); }
.lead[open] .lead-chev .ico { transform: rotate(180deg); }
.lead-body { padding: 4px 16px 18px 19px; border-left: 3px solid var(--lane); background: var(--surface-2); }
.lead-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.lead-body .overline { margin: 14px 0 6px; }
.lead-body .kv { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.proof { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pts { letter-spacing: 1px; font-size: 11px; color: #d97706; }
.pad { padding: 14px 16px; }
@media (max-width: 860px) {
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-sum { grid-template-columns: 1fr auto 20px; }
  .lead-what, .lead-fit, .lead-door { display: none; }
  .lead-cols { grid-template-columns: 1fr; }
}

/* ---------------- Leads v7: contrast, facts, people cards, notes ---------------- */
.funnel-sub { font-size: 12px; color: var(--muted); }
.lead-sum { grid-template-columns: minmax(170px, 1.1fr) minmax(0, 2.2fr) 84px 64px 92px 20px; }
.lead[open] > .lead-sum { background: var(--surface); border-bottom: 1px solid var(--border); }
.lead-body { background: var(--surface); padding: 16px 20px 20px 22px; border-left-width: 4px;
  box-shadow: inset 0 6px 8px -8px rgba(15, 23, 42, .25); }
.lead-body .overline { color: var(--heading); font-weight: 700; margin: 18px 0 8px; }
.lead-fit { cursor: help; }
.lead-fit:focus { outline: 2px solid var(--accent); border-radius: 6px; }
.size { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; cursor: help; }
.size-big { background: var(--accent); color: #fff; }
.size-medium { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent); }
.size-small { background: var(--surface-2); color: var(--body); border: 1px solid var(--border-strong); }
.size-none { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); }
.checked { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  margin-bottom: 14px; background: var(--surface-2); color: var(--heading); border: 1px solid var(--border); }
.checked .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.check-confirmed { background: #e8f7f1; border-color: #34a37f; color: #0b4f3a; }
.check-closed, .check-awarded, .check-not_found { background: #fdf0f0; border-color: #e5a3a3; color: #7f1d1d; }
.check-pending { color: var(--muted); }
.facts { display: grid; gap: 0; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.fact { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 14px; font-size: 14px;
  color: var(--heading); }
.fact + .fact { border-top: 1px solid var(--border); }
.fact-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; }
.fact-k .ico { width: 14px; height: 14px; }
.fact-warn { background: var(--amber-soft); }
.fact-warn .fact-k { color: var(--amber-ink); }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); }
.pcard-warm { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pcard-head { display: flex; gap: 10px; align-items: center; }
.pcard-via { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--heading); }
.pcard-via .ico { width: 14px; height: 14px; color: var(--accent); flex: none; }
.pcard-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-off { opacity: .5; cursor: default; }
.next { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--navy); color: #fff; }
.next-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; white-space: nowrap; opacity: .85; }
.next-v { font-size: 14px; font-weight: 600; }
.next .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.notes { margin-top: 6px; }
.note { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.note-form { display: flex; gap: 8px; margin-top: 10px; }
.note-form .input { flex: 1; min-width: 0; }
.note-form .input-sm { flex: 0 0 150px; }
.legend { margin-top: 8px; }
@media (max-width: 860px) {
  .lead-sum { grid-template-columns: 1fr auto 20px; }
  .lead-size { display: block; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .note-form { flex-wrap: wrap; }
}

/* Leads v8: hints found */
.hint-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hstr { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff; background: #94a3b8; vertical-align: 1px; }
.hstr-5 { background: #dc2626; } .hstr-4 { background: #ea580c; } .hstr-3 { background: #d97706; }
.heard { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 20px; border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--accent); }

.heard .input { flex: 1; min-width: 0; }
.heard .input-sm { flex: 0 0 170px; }
@media (max-width: 860px) { .heard { flex-wrap: wrap; } }

/* WCS tab v2 (30 Oct 2026): four lanes like the ABDA tab */
.tlane-contact { --lane: var(--accent); } .tlane-now { --lane: #dc2626; } .tlane-year { --lane: #d97706; } .tlane-watch { --lane: #94a3b8; }
.funnel-tile.tlane-contact, .funnel-tile.tlane-now, .funnel-tile.tlane-year, .funnel-tile.tlane-watch { border-top: 3px solid var(--lane); }
.tcm-sum { grid-template-columns: minmax(150px, 1fr) minmax(0, 2.6fr) 120px 64px 20px; }
.lead-name { min-width: 0; }
@media (max-width: 760px) { .tcm-sum { grid-template-columns: 1fr auto 20px; } .tcm-sum .chip { display: none; } }

/* At-a-glance strip (30 Oct 2026): the 5 calls of the week, first thing on each tab */
.glance { margin: 4px 0 24px; }
.glance-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.glance-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.glance-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); border-top: 4px solid var(--lane, var(--accent)); text-decoration: none; color: inherit; min-width: 0; }
.glance-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.glance-tag { font-size: 11px; font-weight: 700; color: var(--lane, var(--accent)); text-transform: uppercase; }
.glance-name { font-size: 16px; color: var(--heading); }
.glance-why { font-size: 13px; color: var(--muted); line-height: 1.3; }
.glance-who { font-size: 12px; font-weight: 600; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .glance-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agent-line{margin-top:.35rem;font-size:.8rem;color:var(--muted-foreground,#6b7280)}
/* Market moves (Scout finds): one article per row, vote buttons on the right */
.mv-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 16px}
.mv-row + .mv-row{border-top:1px solid var(--border)}
.mv-body{flex:1 1 auto;min-width:0}
.mv-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mv-air{font-size:14px}
.mv-title{margin-top:4px;font-size:14px;line-height:1.4;color:var(--heading)}
.mv-src{margin-top:3px}
.mv-src a{text-decoration:underline}
.mv-src a{display:inline-block;padding:5px 0;line-height:16px}   /* d-1123-26: 16 px tap target on a phone */
.mv-btns{flex:none;display:flex;gap:6px}
@media (max-width:640px){.mv-row{flex-direction:column;align-items:stretch}.mv-btns{justify-content:flex-end}}

/* ================================================================================================================
   Design v5 (30 Oct 2026) - modern, young, simple, actionable.
   References: Linear (calm hierarchy, light chrome), Vercel / Cal.com (neutral zinc palette, one accent, big type,
   generous space, ring-shadow cards), Stripe (pill actions). Overrides v4 tokens and components; markup hooks kept.
   ================================================================================================================ */
:root {
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f4f4f5; --sidebar: #ffffff;
  --heading: #09090b; --body: #3f3f46; --muted: #71717a;
  --border: #ececee; --border-strong: #e4e4e7;
  --accent: #0d9488; --accent-hover: #0f766e; --accent-soft: #ecfdf8; --accent-ink: #0f766e;
  --navy: #18181b; --navy-soft: #f4f4f5;
  --radius: 14px; --radius-btn: 999px;
  --ring: 0 0 0 1px rgba(9, 9, 11, .06);
  --shadow: 0 0 0 1px rgba(9, 9, 11, .06), 0 1px 2px rgba(9, 9, 11, .04), 0 4px 12px -6px rgba(9, 9, 11, .08);
  --shadow-hover: 0 0 0 1px rgba(9, 9, 11, .08), 0 2px 4px rgba(9, 9, 11, .05), 0 12px 28px -10px rgba(9, 9, 11, .18);
  --focus: 0 0 0 3px rgba(13, 148, 136, .28);
  --sidebar-w: 240px; --max: 1240px; --gutter: 32px;
  --l-now: #e11d48; --l-now-bg: #fff1f3; --l-year: #d97706; --l-year-bg: #fff8eb;
  --l-contact: #059669; --l-contact-bg: #ecfdf5; --l-watch: #a1a1aa; --l-watch-bg: #f4f4f5;
}
[data-theme="dark"] {
  --bg: #09090b; --surface: #111113; --surface-2: #18181b; --sidebar: #0c0c0e;
  --heading: #fafafa; --body: #d4d4d8; --muted: #a1a1aa; --border: #232326; --border-strong: #2e2e32;
  --accent: #2dd4bf; --accent-hover: #5eead4; --accent-soft: #0b2a27; --accent-ink: #5eead4;
  --navy: #fafafa; --navy-soft: #18181b;
  --ring: 0 0 0 1px rgba(255, 255, 255, .07);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-hover: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 32px -12px rgba(0, 0, 0, .8);
  --l-now-bg: #2a0f16; --l-year-bg: #2a1d08; --l-contact-bg: #0a241b; --l-watch-bg: #1c1c1f;
}
body { font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px;
       letter-spacing: -.005em; }

/* shell: light sidebar, quiet chrome */
.sidebar { background: var(--sidebar); color: var(--body); border-right: 1px solid var(--border); padding: 20px 14px 16px; }
.brand { color: var(--heading); padding: 2px 8px 26px; }
.brand:hover { color: var(--heading); }
.brand-mark { border-radius: 9px; background: var(--heading); color: var(--surface); box-shadow: none; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.navlink { height: 36px; color: var(--muted); font-weight: 500; border-radius: 10px; }
.navlink:hover { color: var(--heading); background: var(--surface-2); }
.navlink.active { color: var(--heading); background: var(--surface-2); }
.navlink.active::after { display: none; }
.navlink.active::before { background: var(--accent); }
.side-foot { border-top: 1px solid var(--border); }
.side-user .initials { background: var(--surface-2); color: var(--heading); }
.side-user-name { color: var(--heading); }
.side-user-role { color: var(--muted); }
.side-btn { color: var(--muted); background: var(--surface-2); border-radius: 999px; }
.side-btn:hover { color: var(--heading); background: var(--border); }
.menu-btn { color: var(--heading) !important; }
.topbar { height: 60px; background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
.topbar-title { font-size: 14px; font-weight: 500; color: var(--muted); }
.search input { width: 300px; height: 36px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--ring); }
.page { padding: 36px var(--gutter) 56px; }

/* typography */
.page-head { margin-bottom: 28px; align-items: flex-start; }
.page-title { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -1.1px; }
.page-sub { margin-top: 10px; max-width: 760px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.overline, .card-title { font-weight: 600; letter-spacing: .5px; color: var(--muted); }
.section { margin-bottom: 44px; }
.section-head { margin-bottom: 12px; }
.section-head .muted { font-size: 13px; }

/* agent stats: a row of pills under the title */
.agent-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
             background: var(--surface); box-shadow: var(--ring); color: var(--body); font-size: 13px; white-space: nowrap; }
.stat-pill b { color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-pill .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--l-contact);
                       box-shadow: 0 0 0 3px color-mix(in srgb, var(--l-contact) 22%, transparent); }

/* cards, buttons, chips */
.card { border: 0; box-shadow: var(--shadow); border-radius: var(--radius); }
.btn, .btn-teal, .btn-primary, .btn-ghost, .btn-secondary, .btn-xs, .btn-plain { border-radius: 999px; font-weight: 500; }
.btn, .btn-teal, .btn-primary { background: var(--heading); color: var(--surface); box-shadow: none; }
.btn:hover, .btn-teal:hover, .btn-primary:hover { background: color-mix(in srgb, var(--heading) 82%, transparent); color: var(--surface); }
.btn-xs { height: 30px; padding: 0 12px; border: 0; box-shadow: var(--ring); background: var(--surface); }
.btn-xs:hover { box-shadow: 0 0 0 1px var(--accent); color: var(--accent-ink); }
.btn-xs.btn-teal { background: var(--accent); color: #fff; box-shadow: none; }
.btn-ghost, .btn-secondary { border: 0; box-shadow: var(--ring); }
.chip, .badge { height: 24px; padding: 0 10px; font-weight: 500; border: 0; }
.chip-stage { background: var(--surface-2); color: var(--body); }
.input { border-radius: 999px; border: 0; box-shadow: var(--ring); background: var(--surface); height: 40px; padding: 0 16px; }
.input:focus { outline: none; box-shadow: 0 0 0 1px var(--accent), var(--focus); }
.callout { border-radius: 12px; }

/* "This week": the top action cards, each with its contact buttons */
.glance { margin: 0 0 36px; }
.glance-title { font-size: 20px; font-weight: 600; letter-spacing: -.4px; text-transform: none; color: var(--heading);
                margin-bottom: 4px; }
.glance-sub { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.glance-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.glance-card { position: relative; gap: 6px; padding: 18px; border: 0; border-radius: 16px; background: var(--surface);
               box-shadow: var(--shadow); transition: box-shadow .18s ease, transform .18s ease; cursor: pointer; }
.glance-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.glance-rank { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 600; color: var(--muted);
               font-variant-numeric: tabular-nums; }
.glance-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
              border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .2px; text-transform: none;
              color: var(--lane, var(--accent)); background: var(--lane-bg, var(--accent-soft)); }
.glance-name { font-size: 17px; font-weight: 600; letter-spacing: -.3px; line-height: 1.25; padding-right: 24px; }
.glance-why { font-size: 13px; line-height: 1.45; color: var(--muted); }
.glance-who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 500;
              color: var(--heading); display: flex; flex-direction: column; gap: 2px; }
.glance-who small { font-size: 12px; font-weight: 400; color: var(--muted); }
.glance-acts { display: flex; gap: 6px; margin-top: 10px; }
.glance-acts a { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px;
                 font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--heading); }
.glance-acts a.primary { background: var(--heading); color: var(--surface); }
.glance-acts a:hover { filter: brightness(.95); }
.glance-acts .ico { width: 13px; height: 13px; }

/* funnel: compact segmented counters */
.funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.funnel-tile { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; padding: 14px 16px;
               border: 0 !important; border-radius: 14px; box-shadow: var(--ring); background: var(--surface); }
.funnel-tile:hover { box-shadow: 0 0 0 1px var(--lane); transform: none; }
.funnel-n { font-size: 26px; font-weight: 600; letter-spacing: -.8px; color: var(--heading); }
.funnel-label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--heading); }
.funnel-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lane); }
.funnel-sub { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* lane colours: one palette for both tabs */
.tlane-now, .lane-bid { --lane: var(--l-now); --lane-bg: var(--l-now-bg); }
.tlane-year, .lane-strong { --lane: var(--l-year); --lane-bg: var(--l-year-bg); }
.tlane-contact, .lane-contact { --lane: var(--l-contact); --lane-bg: var(--l-contact-bg); }
.tlane-watch, .lane-weak { --lane: var(--l-watch); --lane-bg: var(--l-watch-bg); }
.lane-title { font-size: 13px; color: var(--heading); }
.lane-title::before { width: 8px; height: 8px; }

/* region filter: segmented pills */
.chips { gap: 6px; margin-bottom: 16px; }
.chips .chip { height: 32px; padding: 0 14px; font-size: 13px; background: var(--surface); box-shadow: var(--ring); color: var(--body); cursor: pointer; }
.chips .chip.chip-stage { background: var(--heading); color: var(--surface); box-shadow: none; }

/* rows */
.lead-list.card { padding: 0; }
.lead-sum { padding: 16px 20px; border-left: 0 !important; }
.lead-sum:hover { background: var(--surface-2); }
.lead-what b { font-weight: 500; }
.lead-name b, .ident-name { font-weight: 600; letter-spacing: -.2px; }
.lead-fit { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.lead[open] > .lead-sum { background: var(--surface); border-bottom: 1px solid var(--border); }
.lead-body { border-left: 0 !important; box-shadow: none; padding: 20px 24px 24px; background: var(--surface); }
.lead[open] { box-shadow: inset 3px 0 0 var(--lane); }
.facts { border: 0; box-shadow: var(--ring); border-radius: 12px; }
.fact-k { font-weight: 600; letter-spacing: .3px; }
.pcard { border: 0; box-shadow: var(--ring); border-radius: 12px; padding: 14px; }
.pcard-warm { box-shadow: 0 0 0 1.5px var(--accent); }
.next { border-radius: 12px; background: var(--heading); color: var(--surface); }
.next .btn-ghost { color: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface) 40%, transparent); background: transparent; }
.size-big { background: var(--heading); color: var(--surface); }
.size-medium { background: var(--surface-2); color: var(--heading); border: 0; box-shadow: var(--ring); }
.size-small { border: 0; box-shadow: var(--ring); background: transparent; }

/* heard box: one rounded bar */
.heard { padding: 8px 8px 8px 18px; border: 0; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 32px; }
.heard .input { box-shadow: none; background: transparent; }
.heard .btn-teal { height: 40px; padding: 0 20px; }

/* market moves */
.mv-row { padding: 16px 20px; }
.mv-title { font-size: 15px; font-weight: 500; }
.mv-btns .btn-xs { height: 32px; }

@media (max-width: 900px) {
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .page { padding: 24px 16px 40px; }
  .page-title { font-size: 28px; }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heard { border-radius: 16px; padding: 12px; }
}
@media (min-width: 1200px) { .glance-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.glance-who { font-weight: 600; }
.glance-acts a:not(.primary) { box-shadow: var(--ring); background: var(--surface); }

/* ================================================================================================================
   Design v5.1 (30 Oct 2026) - punchy colours, no plain white background (Victor). References: Linear's indigo
   chrome, Stripe's violet gradients, Raycast's vivid accents. Tinted canvas, deep indigo sidebar, electric violet
   accent with a violet->pink gradient on primary actions, saturated lane colours.
   ================================================================================================================ */
:root {
  --bg: #eef0fb; --surface: #ffffff; --surface-2: #f3f2fe; --sidebar: #17133a;
  --heading: #14112e; --body: #3b3858; --muted: #6b6889;
  --border: #e4e2f5; --border-strong: #d9d6f0;
  --accent: #7c3aed; --accent-hover: #6d28d9; --accent-soft: #f1eafe; --accent-ink: #6d28d9;
  --pop: #ec4899; --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #ec4899 100%);
  --ring: 0 0 0 1px rgba(76, 58, 160, .10);
  --shadow: 0 0 0 1px rgba(76, 58, 160, .08), 0 2px 4px rgba(60, 40, 140, .05), 0 10px 28px -12px rgba(76, 58, 160, .30);
  --shadow-hover: 0 0 0 1px rgba(124, 58, 237, .35), 0 4px 8px rgba(60, 40, 140, .08), 0 18px 40px -14px rgba(124, 58, 237, .45);
  --focus: 0 0 0 3px rgba(124, 58, 237, .30);
  --l-now: #f43f5e; --l-now-bg: #ffe4ea; --l-year: #f59e0b; --l-year-bg: #fff1d6;
  --l-contact: #10b981; --l-contact-bg: #d9f8ec; --l-watch: #8b8aa8; --l-watch-bg: #ebeaf6;
}
[data-theme="dark"] {
  --bg: #0d0b1f; --surface: #17142f; --surface-2: #1f1b3d; --sidebar: #0a0818;
  --heading: #f5f3ff; --body: #d6d3f0; --muted: #a29fc4; --border: #2a2550; --border-strong: #352f63;
  --accent: #a78bfa; --accent-hover: #c4b5fd; --accent-soft: #2a1f55; --accent-ink: #c4b5fd;
  --ring: 0 0 0 1px rgba(167, 139, 250, .16);
  --shadow: 0 0 0 1px rgba(167, 139, 250, .14), 0 12px 30px -14px rgba(0, 0, 0, .8);
  --shadow-hover: 0 0 0 1px rgba(167, 139, 250, .45), 0 18px 40px -14px rgba(124, 58, 237, .5);
  --l-now-bg: #3a1022; --l-year-bg: #3a2a08; --l-contact-bg: #08332a; --l-watch-bg: #24213f;
}
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(236, 72, 153, .10), transparent 60%),
                   radial-gradient(900px 600px at 10% 0%, rgba(124, 58, 237, .12), transparent 60%), var(--bg);
       background-attachment: fixed; }

/* deep indigo sidebar */
.sidebar { background: linear-gradient(180deg, #1c1747 0%, #140f33 100%); border-right: 0; color: #c9c5ee; }
[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #120e2c 0%, #0a0818 100%); }
.brand, .brand:hover { color: #fff; }
.brand-mark { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(236, 72, 153, .7); }
.navlink { color: #aaa5d8; }
.navlink:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.navlink.active { color: #fff; background: rgba(167, 139, 250, .18); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25); }
.navlink.active::before { background: #f0abfc; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user .initials { background: var(--grad); color: #fff; }
.side-user-name { color: #fff; }
.side-user-role { color: #9b96c9; }
.side-btn { color: #c9c5ee; background: rgba(255, 255, 255, .07); }
.side-btn:hover { color: #fff; background: rgba(255, 255, 255, .14); }
@media (max-width: 900px) { .menu-btn { color: #fff !important; } }

.topbar { background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--border); }
.search input { color: var(--heading); }
.search input::placeholder { color: #8e8ab0; }

/* gradient headline */
.page-title { background: linear-gradient(90deg, var(--heading) 0%, var(--heading) 45%, #7c3aed 100%);
              -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .page-title { background: linear-gradient(90deg, #fff 0%, #e9d5ff 50%, #f9a8d4 100%);
              -webkit-background-clip: text; background-clip: text; }

/* primary actions: gradient pills */
.btn, .btn-teal, .btn-primary, .btn-xs.btn-teal { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(192, 38, 211, .7); }
.btn:hover, .btn-teal:hover, .btn-primary:hover { background: var(--grad); filter: brightness(1.08); color: #fff; }
.btn-xs:hover { box-shadow: 0 0 0 1px var(--accent); color: var(--accent-ink); }
.linkish { color: var(--accent); }
.next { background: linear-gradient(135deg, #1c1747 0%, #3b1d7a 100%); color: #fff; }
.next .btn-ghost { color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.size-big { background: var(--grad); color: #fff; }

/* agent pills */
.stat-pill { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); }
.stat-pill b { color: var(--accent-ink); }

/* top cards: coloured top bar + tinted tag */
.glance-card { overflow: hidden; }
.glance-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--lane, var(--accent)); }
.tlane-now.glance-card::before { background: linear-gradient(90deg, #f43f5e, #ec4899); }
.tlane-year.glance-card::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.tlane-contact.glance-card::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.glance-rank { color: var(--lane, var(--accent)); font-weight: 700; }
.glance-acts a.primary { background: var(--grad); color: #fff; }

/* funnel: tinted tiles with coloured numbers */
.funnel-tile { background: var(--lane-bg, var(--surface)); box-shadow: none; }
.funnel-tile:hover { box-shadow: 0 0 0 1.5px var(--lane); }
.funnel-n { color: var(--lane); }
.funnel-sub { color: var(--body); opacity: .75; }

/* region pills, lane dots, open rows */
.chips .chip.chip-stage { background: var(--grad); color: #fff; }
.lead[open] { box-shadow: inset 4px 0 0 var(--lane); }
.lead-sum:hover, .mv-row:hover { background: var(--surface-2); }
.chip-stage { background: var(--accent-soft); color: var(--accent-ink); }
.heard { box-shadow: 0 0 0 1.5px rgba(124, 58, 237, .35), var(--shadow); }
.pcard-warm { box-shadow: 0 0 0 1.5px var(--l-contact); }
:root { --muted: #5d5a7e; }
[data-theme="dark"] { --muted: #b4b0d6; }
.navlink { color: #c3bfe8; }

/* ================================================================================================================
   Design v5.2 (30 Oct 2026) - Salesforce-inspired (Lightning Design System 2 / salesforce.com): modern and friendly.
   Brand blue #0176d3, deep navy #032d60, sky-blue canvas, white rounded cards with soft shadows, solid blue pill
   buttons, SLDS status colours (success green, warning orange, error red), friendly rounded headings (Figtree as the
   free stand-in for Salesforce's Avant Garde display face), Inter for body text.
   ================================================================================================================ */
:root {
  --bg: #eef4fb; --surface: #ffffff; --surface-2: #f3f7fc; --sidebar: #032d60;
  --heading: #032d60; --body: #2e3a4d; --muted: #5c6b80;
  --border: #e1e8f0; --border-strong: #d1dbe7;
  --accent: #0176d3; --accent-hover: #014486; --accent-soft: #e5f2fd; --accent-ink: #014486;
  --grad: #0176d3;
  --ring: 0 0 0 1px rgba(3, 45, 96, .08);
  --shadow: 0 0 0 1px rgba(3, 45, 96, .06), 0 2px 4px rgba(3, 45, 96, .06), 0 8px 20px -10px rgba(3, 45, 96, .18);
  --shadow-hover: 0 0 0 1px rgba(1, 118, 211, .35), 0 4px 8px rgba(3, 45, 96, .08), 0 16px 32px -12px rgba(1, 118, 211, .35);
  --focus: 0 0 0 3px rgba(1, 118, 211, .30);
  --l-now: #ea001e; --l-now-bg: #feeff0; --l-year: #dd7a01; --l-year-bg: #fef3e6;
  --l-contact: #2e844a; --l-contact-bg: #ebf7e6; --l-watch: #706e6b; --l-watch-bg: #f0f1f3;
  --radius: 16px;
}
[data-theme="dark"] {
  --bg: #0b1727; --surface: #12233a; --surface-2: #182c47; --sidebar: #021a38;
  --heading: #f2f7ff; --body: #d3dceb; --muted: #a9b8cc; --border: #213752; --border-strong: #2b4566;
  --accent: #1b96ff; --accent-hover: #78b0fd; --accent-soft: #0b2a4d; --accent-ink: #78b0fd; --grad: #1b96ff;
  --ring: 0 0 0 1px rgba(120, 176, 253, .16);
  --shadow: 0 0 0 1px rgba(120, 176, 253, .12), 0 12px 28px -14px rgba(0, 0, 0, .8);
  --shadow-hover: 0 0 0 1px rgba(27, 150, 255, .5), 0 16px 32px -12px rgba(0, 0, 0, .8);
  --l-now-bg: #3a0d14; --l-year-bg: #3a2405; --l-contact-bg: #0d2d18; --l-watch-bg: #1d2a3b;
}
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
       background: linear-gradient(180deg, #cfe7fd 0px, #e3f0fd 260px, var(--bg) 620px) no-repeat, var(--bg); }
[data-theme="dark"] body { background: linear-gradient(180deg, #0d2747 0px, var(--bg) 520px) no-repeat, var(--bg); }
h1, h2, h3, .page-title, .glance-title, .glance-name, .funnel-n, .brand-name, .lead-fit {
  font-family: Figtree, Inter, ui-sans-serif, system-ui, sans-serif; }

/* titles: solid navy, no gradient text */
.page-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--heading);
              font-weight: 800; letter-spacing: -.8px; }
[data-theme="dark"] .page-title { background: none; color: var(--heading); }
.glance-title { font-weight: 700; color: var(--heading); }

/* navy sidebar, brand-blue active item */
.sidebar { background: linear-gradient(180deg, #032d60 0%, #021f45 100%); color: #c7d8ee; }
[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #021a38 0%, #01112a 100%); }
.brand-mark { background: #0176d3; color: #fff; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(27, 150, 255, .8); }
.navlink { color: #c7d8ee; border-radius: 12px; }
.navlink:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.navlink.active { color: #fff; background: #0176d3; box-shadow: 0 6px 16px -8px rgba(27, 150, 255, .9); }
.navlink.active::before { background: #fff; }
.side-user .initials { background: #1b96ff; color: #fff; }
.side-user-role { color: #9fb6d3; }
.topbar { background: rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(3, 45, 96, .08); }
[data-theme="dark"] .topbar { background: rgba(11, 23, 39, .6); }
.search input::placeholder { color: #6b7a8f; }

/* buttons: solid brand blue pills (Salesforce), neutral = white with blue border */
.btn, .btn-teal, .btn-primary, .btn-xs.btn-teal { background: #0176d3; color: #fff; box-shadow: none; }
.btn:hover, .btn-teal:hover, .btn-primary:hover { background: #014486; filter: none; color: #fff; }
.btn-xs, .btn-ghost, .btn-secondary { color: #0176d3; box-shadow: 0 0 0 1px #c9d7e6; background: var(--surface); font-weight: 600; }
.btn-xs:hover, .btn-ghost:hover { box-shadow: 0 0 0 1px #0176d3; background: var(--accent-soft); color: #014486; }
[data-theme="dark"] .btn-xs, [data-theme="dark"] .btn-ghost { color: #78b0fd; box-shadow: 0 0 0 1px var(--border-strong); }
.linkish { color: #0176d3; }
.next { background: linear-gradient(135deg, #032d60 0%, #0b5cab 100%); }
.size-big { background: #0176d3; color: #fff; }

/* agent pills: friendly blue */
.stat-pill { background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(3, 45, 96, .08); }
[data-theme="dark"] .stat-pill { background: var(--surface); }
.stat-pill b { color: #0176d3; }
.stat-pill .dot-live { background: #2e844a; box-shadow: 0 0 0 3px rgba(46, 132, 74, .2); }

/* action cards: white, rounded, solid lane bar, friendly tag */
.glance-card { border-radius: 20px; }
.glance-card::before { height: 5px; background: var(--lane) !important; }
.glance-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; top: 14px; right: 14px; border-radius: 50%;
               background: var(--lane-bg); color: var(--lane); font-size: 12px; }
.glance-tag { color: var(--lane); background: var(--lane-bg); }
.glance-acts a { border-radius: 999px; font-weight: 600; }
.glance-acts a.primary { background: #0176d3; color: #fff; }
.glance-acts a:not(.primary) { color: #0176d3; box-shadow: 0 0 0 1px #c9d7e6; }

/* funnel: white tiles, coloured icon dot + number (Lightning "highlights panel" feel) */
.funnel-tile { background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; position: relative; overflow: hidden; }
.funnel-tile::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--lane); }
.funnel-tile:hover { box-shadow: var(--shadow-hover); }
.funnel-n { color: var(--lane); font-weight: 800; }
.funnel-label::before { width: 10px; height: 10px; }

/* filters, rows, heard box */
.chips .chip { box-shadow: 0 0 0 1px #c9d7e6; color: #014486; font-weight: 600; }
.chips .chip.chip-stage { background: #0176d3; color: #fff; box-shadow: none; }
.chip-stage { background: var(--accent-soft); color: var(--accent-ink); }
.lead-sum:hover, .mv-row:hover { background: #f3f8fe; }
[data-theme="dark"] .lead-sum:hover, [data-theme="dark"] .mv-row:hover { background: var(--surface-2); }
.lead-fit { color: #032d60; }
[data-theme="dark"] .lead-fit { color: var(--heading); }
.heard { box-shadow: 0 0 0 1.5px rgba(1, 118, 211, .35), var(--shadow); }

.initials { background: #e5f2fd; color: #014486; }
.pcard-warm { box-shadow: 0 0 0 1.5px #2e844a; }
.navlink { color: #e1ebf7; }
.funnel-sub { font-size: 13px; color: var(--body); opacity: 1; }
.heard .input::placeholder { color: #5c6b80; }

/* ---------- Events tab (1 Nov 2026) ---------- */
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-green { background: #cdefc4; color: #2e844a; }
.badge-red { background: #fe933933; color: #ba0517; }
.badge-grey { background: #ecebea; color: #444; }
.pill-sm { padding: 3px 10px; font-size: 12px; }
.ev-card { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 18px 20px; }
.ev-soon { border-left: 4px solid #0176d3; }
.ev-when { display: flex; flex-direction: column; gap: 4px; }
.ev-date { font-weight: 700; color: var(--accent, #0176d3); }
.ev-city { font-size: 13px; color: var(--muted-foreground, #5a6472); }
.ev-title { margin: 0 0 4px; font-size: 17px; }
.ev-why { margin: 0 0 10px; }
.ev-people { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.ev-person { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 10px; border: 1px solid var(--border, #e3e6ea); border-radius: 10px; }
.ev-person-name { font-weight: 600; }
.ev-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ev-foot { display: flex; gap: 8px; }
@media (max-width: 760px) { .ev-card { grid-template-columns: 1fr; } }

/* ---------- v5.3 (1 Nov 2026, Victor): badge contrast + email menu + events timeline ---------- */
.fmt-full_tcm { --fmt: var(--ang-full_tcm); --fmt-bg: var(--ang-full_tcm-bg); }
.fmt-regional_tcm { --fmt: var(--ang-regional_tcm); --fmt-bg: var(--ang-regional_tcm-bg); }
.fmt-gsa { --fmt: var(--ang-gsa); --fmt-bg: var(--ang-gsa-bg); }
.fmt-watch { --fmt: var(--cold); --fmt-bg: var(--cold-soft); }
.glance-tag { background: var(--fmt-bg, var(--cold-soft)); color: var(--fmt, var(--body)); border: 1px solid color-mix(in srgb, var(--fmt, var(--border)) 30%, transparent); }
.chip-stage { background: var(--fmt-bg, var(--cold-soft)); color: var(--fmt, var(--body)); }
.btn-mail { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-family: inherit; }
.btn-mail code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; background: none; }
.pcards.flash, .ev-people.flash { animation: pop 1.2s ease; border-radius: 12px; }
@keyframes pop { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: none; } }
/* events timeline */
.tl-month { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.tl-label { font-weight: 700; color: var(--accent); font-size: 15px; }
.tl-label .tl-count { display: block; font-weight: 500; font-size: 12px; color: var(--muted-foreground); }
.tl-events { display: flex; flex-direction: column; gap: 10px; }
.ev-mini { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.ev-mini .ev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-mini .ev-name { font-weight: 700; font-size: 15px; }
.ev-rec-yes { background: #cdefc4; color: #2e844a; }
.ev-rec-no { background: #ecebea; color: #5a6472; }
.ev-rec-maybe { background: var(--amber-soft); color: var(--amber-ink); }
.ev-att-confirmed { background: #cdefc4; color: #2e844a; }
.ev-att-probable { background: #eef2f6; color: #444; }
.ev-att-no { background: var(--red-soft); color: var(--red-ink); }
details.ev-who > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; margin: 8px 0; }
details.ev-who > summary::marker { color: var(--accent); }
@media (max-width: 760px) { .tl-month { grid-template-columns: 1fr; } }

/* ===================================================================================================
   v6 (11 Nov 2026, Victor): pop-ups instead of scrolling, badges everywhere, agents-live bar, grouped nav.
   =================================================================================================== */
/* badges */
.b { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; border: 0;
  font: 600 12px/1 var(--font, inherit); white-space: nowrap; background: var(--surface-2); color: var(--heading);
  text-decoration: none; }
button.b, a.b { cursor: pointer; }
button.b:hover, a.b:hover { filter: brightness(.96); }
.b .ico { width: 13px; height: 13px; }
.b-lg { height: 30px; padding: 0 14px; font-size: 13px; }
.b-green { background: #dcfce7; color: #166534; } .b-green-solid { background: #16a34a; color: #fff; }
.b-blue { background: #dbeafe; color: #1d4ed8; } .b-teal { background: #ccfbf1; color: #0f766e; }
.b-amber { background: #fef3c7; color: #92400e; } .b-grey { background: #f1f5f9; color: #475569; }
.b-violet { background: #ede9fe; color: #6d28d9; } .b-red { background: #fee2e2; color: #b91c1c; }
.b-navy { background: #e0e7ff; color: #1e3a8a; } .b-off { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong, #cbd5e1); }
.fmtb-full { background: #15803d; color: #fff; } .fmtb-regional { background: #ccfbf1; color: #0f766e; }
.fmtb-gsa { background: #dbeafe; color: #1d4ed8; } .fmtb-watch { background: #f1f5f9; color: #475569; }
[data-theme="dark"] .b-green { background: rgba(34,197,94,.18); color: #86efac; }
[data-theme="dark"] .b-blue { background: rgba(59,130,246,.2); color: #93c5fd; }
[data-theme="dark"] .b-teal, [data-theme="dark"] .fmtb-regional { background: rgba(20,184,166,.18); color: #5eead4; }
[data-theme="dark"] .b-amber { background: rgba(245,158,11,.18); color: #fcd34d; }
[data-theme="dark"] .b-grey, [data-theme="dark"] .fmtb-watch { background: rgba(148,163,184,.16); color: #cbd5e1; }
[data-theme="dark"] .b-violet { background: rgba(139,92,246,.2); color: #c4b5fd; }
[data-theme="dark"] .b-red { background: rgba(239,68,68,.18); color: #fca5a5; }
[data-theme="dark"] .b-navy { background: rgba(99,102,241,.2); color: #a5b4fc; }
[data-theme="dark"] .fmtb-gsa { background: rgba(59,130,246,.2); color: #93c5fd; }

/* grouped navigation, settings in the top bar */
.nav-group { margin: 6px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-sep { height: 10px; }
.navlink.navsub { margin-left: 10px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.topbar-link:hover { color: var(--heading); }
.agents-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; font: 600 12.5px/1 inherit; cursor: pointer; }
[data-theme="dark"] .agents-pill { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: #86efac; }

/* agents-live bar (top of every tab) */
.pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; animation: wcs-pulse 1.8s infinite; }
@keyframes wcs-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.agents-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; width: 100%; margin: 0 0 26px; padding: 16px 20px;
  border-radius: 16px; border: 1px solid #bbf7d0; background: linear-gradient(90deg, #f0fdf4, #eff6ff); text-align: left;
  font: inherit; color: inherit; cursor: pointer; }
.agents-bar:hover { box-shadow: var(--shadow-hover); }
[data-theme="dark"] .agents-bar { border-color: rgba(34,197,94,.3); background: linear-gradient(90deg, rgba(34,197,94,.10), rgba(59,130,246,.10)); }
.agents-live { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #166534; font-size: 15px; }
[data-theme="dark"] .agents-live { color: #86efac; }
.agents-text { flex: 1 1 300px; font-size: 14px; color: var(--body); }
.keynum { display: inline-flex; align-items: baseline; gap: 8px; padding-left: 18px; border-left: 1px solid var(--border); }
.keynum b { font-size: 30px; font-weight: 800; color: var(--heading); line-height: 1; }
.keynum span { font-size: 13px; color: var(--muted); max-width: 150px; line-height: 1.25; }
.agents-more { font-size: 13px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.agents-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.agents-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--heading); }
.agents-list .ai { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #dcfce7; color: #166534; }
[data-theme="dark"] .agents-list .ai { background: rgba(34,197,94,.18); color: #86efac; }
.agents-list small { display: block; color: var(--muted); font-size: 13px; }
.agents-stats { display: flex; gap: 8px; flex-wrap: wrap; }

/* section titles */
.v6-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--heading); }
.v6-title .dotc { width: 12px; height: 12px; border-radius: 50%; background: var(--lc, #16a34a); }
.v6-sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.v6-sec { margin-bottom: 30px; }

/* top-5 cards (green = positive, contact them) */

/* lane tiles: a click opens the list in a pop-up */

.ltile { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; border-radius: 16px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--lc); box-shadow: var(--shadow);
  text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .12s; }
.ltile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ltile-n { font-size: 32px; font-weight: 800; line-height: 1; color: var(--lc); }
.ltile-l { font-size: 15px; font-weight: 800; color: var(--heading); }
.ltile-s { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.ltile-flags { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; font-size: 17px; }
.ltile-open { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--lc); }
.lc-contact { --lc: #2563eb; } .lc-now { --lc: #16a34a; } .lc-year { --lc: #d97706; } .lc-watch { --lc: #64748b; }
.lc-bid { --lc: #16a34a; } .lc-strong { --lc: #0d9488; } .lc-weak { --lc: #64748b; }
.lc-hot { --lc: #16a34a; } .lc-early { --lc: #2563eb; } .lc-rest { --lc: #64748b; }

/* pop-ups (native <dialog>) */
dialog.pop { width: min(780px, 94vw); max-height: 90vh; padding: 0; border: 0; border-radius: 20px; background: var(--surface);
  color: var(--body); box-shadow: 0 24px 70px rgba(2, 6, 23, .38); overflow: auto; }
dialog.pop-wide { width: min(1000px, 96vw); }
dialog.pop::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.pop-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 14px;
  background: var(--surface); border-bottom: 1px solid var(--border); border-top: 6px solid var(--lc, #16a34a); }
.pop-flag { font-size: 34px; line-height: 1; }
.pop-title { font-size: 21px; font-weight: 800; color: var(--heading); line-height: 1.2; }
.pop-sub { font-size: 13px; color: var(--muted); }
.pop-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pop-x { flex: none; margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2);
  color: var(--heading); cursor: pointer; display: grid; place-items: center; }
.pop-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 22px; }
.pop-why { padding: 12px 14px; border-radius: 12px; border-left: 4px solid #16a34a; background: #f0fdf4; font-size: 15px;
  font-weight: 600; line-height: 1.45; color: var(--heading); }
[data-theme="dark"] .pop-why { background: rgba(34,197,94,.10); }
.pop-trigger { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--body); }
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pop-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.pop-k { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.pop-k .ico { width: 15px; height: 15px; }
.pop-v { font-size: 13.5px; line-height: 1.45; color: var(--body); }
.pop-v a { color: var(--accent-ink); }
.chips6 { display: flex; flex-wrap: wrap; gap: 6px; }
.pop-warn { padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; }
[data-theme="dark"] .pop-warn { background: rgba(249,115,22,.12); color: #fdba74; }
.pop-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }

/* people: names + channel badges; a click on Email / LinkedIn reveals it */
.pp { display: flex; flex-direction: column; gap: 8px; }
.pp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.pp-name { font-weight: 700; color: var(--heading); }
.pp-ch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.reveal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; padding: 6px 0 0 38px; font-size: 12.5px; }
.reveal[hidden] { display: none; }
.reveal code { padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--heading); user-select: all; font-size: 13px; }

/* next step = numbered steps */
.steps { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--heading); }
.steps li::before { counter-increment: st; content: counter(st); flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: #16a34a; color: #fff; font-weight: 800; font-size: 12px; }

/* list rows inside a lane pop-up */
.pop-list { display: flex; flex-direction: column; gap: 8px; }
.prow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 13px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.prow:hover { border-color: var(--lc, var(--accent)); background: var(--surface-2); }
.prow-flag { font-size: 24px; line-height: 1; }
.prow-name { font-weight: 800; color: var(--heading); }
.prow-name small { font-weight: 500; color: var(--muted); }
.prow-why { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--muted); }
.prow-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.prow-region { margin: 14px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* events: month tiles, event cards */
.mtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.mtile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-top: 5px solid var(--mc, #94a3b8); box-shadow: var(--shadow); text-align: left; font: inherit;
  color: inherit; cursor: pointer; transition: transform .12s; }
.mtile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.mtile:disabled { cursor: default; opacity: .55; transform: none; box-shadow: none; }
.mtile-m { font-size: 15px; font-weight: 800; color: var(--heading); }
.mtile-n { font-size: 26px; font-weight: 800; line-height: 1; color: var(--mc, var(--muted)); }
.mtile-n small { font-size: 12px; font-weight: 600; color: var(--muted); }
.mc-hot { --mc: #16a34a; } .mc-some { --mc: #2563eb; } .mc-none { --mc: #cbd5e1; }
.ev-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--border);
  border-left: 5px solid var(--ec, #94a3b8); background: var(--surface); }
.ec-yes { --ec: #16a34a; } .ec-maybe { --ec: #d97706; } .ec-no { --ec: #94a3b8; }
.ev-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-title { font-size: 16px; font-weight: 800; color: var(--heading); }
.ev-line { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; }
.ev-k { padding-top: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* pipeline rows */
.odds-strong, .odds-good { background: #dcfce7; color: #166534; } .odds-possible { background: #fef3c7; color: #92400e; }
.odds-early { background: #f1f5f9; color: #475569; }
[data-theme="dark"] .odds-strong, [data-theme="dark"] .odds-good { background: rgba(34,197,94,.18); color: #86efac; }
[data-theme="dark"] .odds-possible { background: rgba(245,158,11,.18); color: #fcd34d; }
[data-theme="dark"] .odds-early { background: rgba(148,163,184,.16); color: #cbd5e1; }
.pipe-next { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--heading); }

@media (max-width: 700px) {
  .pop-grid { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 30px minmax(0, 1fr); } .prow-badges { grid-column: 1 / -1; justify-content: flex-start; }
  .ev-line { grid-template-columns: 1fr; } .keynum { border-left: 0; padding-left: 0; }
}
@media print { dialog.pop { display: none !important; } }

/* v6 pipeline board */
.pboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.pcol { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  border-top: 6px solid var(--lc); box-shadow: var(--shadow); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.pcol:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pcol-head { display: flex; align-items: baseline; gap: 10px; }
.pcol-n { font-size: 38px; font-weight: 800; line-height: 1; color: var(--lc); }
.pcol-l { font-size: 17px; font-weight: 800; color: var(--heading); }
.pcol-s { font-size: 13px; line-height: 1.4; color: var(--muted); }
.pcol-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.achip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2);
  font-size: 12.5px; font-weight: 600; color: var(--heading); }
.achip-more { background: transparent; color: var(--muted); }
.piperow .prow-why { white-space: normal; }
@media (max-width: 900px) { .pboard { grid-template-columns: 1fr; } }

/* ===================================================================================================
   v6.1 (11 Nov 2026): modern polish - hero banner with a flying plane, score rings, motion, bigger badges.
   Salesforce Lightning palette kept (brand blue #0176d3, navy #032d60); green = act now.
   =================================================================================================== */
.agents-bar { position: relative; overflow: hidden; gap: 22px; padding: 24px 28px; border: 0; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, #032d60 0%, #014486 45%, #0176d3 100%); box-shadow: 0 18px 40px -18px rgba(1, 68, 134, .65); }
[data-theme="dark"] .agents-bar { background: linear-gradient(120deg, #021a3a 0%, #032d60 50%, #014486 100%); border: 0; }
.agents-bar:hover { box-shadow: 0 22px 46px -16px rgba(1, 118, 211, .7); transform: translateY(-1px); }
.agents-bar > span { position: relative; z-index: 1; }
.agents-live { color: #fff; font-size: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
[data-theme="dark"] .agents-live { color: #fff; }
.agents-text { color: rgba(255, 255, 255, .88); font-size: 14.5px; line-height: 1.5; max-width: 520px; }
.agents-text b { color: #fff; }
.keynum { border-left: 1px solid rgba(255, 255, 255, .25); }
.keynum b { color: #fff; font-size: 44px; letter-spacing: -1px; }
.keynum span { color: rgba(255, 255, 255, .8); }
.agents-more { color: #032d60; background: #fff; padding: 9px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.agents-more .ico { width: 14px; height: 14px; }
.pulse { background: #4ade80; }
.hero-art { position: absolute; right: 150px; top: 0; height: 100%; width: 520px; opacity: .55; pointer-events: none; }
.hero-arc { stroke: rgba(255, 255, 255, .5); stroke-width: 1.6; stroke-dasharray: 3 7; stroke-linecap: round; animation: hero-dash 30s linear infinite; }
.hero-arc2 { stroke: rgba(255, 255, 255, .25); }
.hero-dot { fill: #4ade80; } .hero-dot2 { fill: rgba(255, 255, 255, .7); }
.hero-plane path { fill: #fff; }
@keyframes hero-dash { to { stroke-dashoffset: -400; } }

/* motion */
@keyframes v6-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes v6-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes v6-fade { from { opacity: 0; } to { opacity: 1; } }
.ltile, .mtile, .pcol { animation: v6-up .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 1) * 60ms); }
.ltile:nth-child(2), .mtile:nth-child(2), .pcol:nth-child(2) { --i: 2; } .ltile:nth-child(3), .mtile:nth-child(3), .pcol:nth-child(3) { --i: 3; }
.ltile:nth-child(4), .mtile:nth-child(4) { --i: 4; } .mtile:nth-child(n+5) { --i: 5; } .mtile:nth-child(n+9) { --i: 7; }
dialog.pop[open] { animation: v6-pop .22s cubic-bezier(.2, .8, .2, 1); }
dialog.pop[open]::backdrop { animation: v6-fade .2s ease; }
.reveal:not([hidden]) { animation: v6-up .2s ease both; }
.b { transition: transform .12s, filter .12s; } button.b:hover, a.b:hover { transform: translateY(-1px); }
.prow { transition: transform .12s, border-color .12s, background .12s; } .prow:hover { transform: translateX(3px); }

/* top cards */

.ring { --p: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(#16a34a calc(var(--p) * 1%), #dcfce7 0); }
.ring b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); font-size: 13px; font-weight: 800; color: #166534; }
[data-theme="dark"] .ring { background: conic-gradient(#22c55e calc(var(--p) * 1%), rgba(34, 197, 94, .2) 0); } [data-theme="dark"] .ring b { color: #86efac; }

/* tiles */
.ltile { border: 0; border-left: 0; border-radius: 20px; padding: 20px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.ltile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--lc); }
.ltile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--lc); opacity: .08; transition: transform .25s; }
.ltile:hover::after { transform: scale(1.5); }
.ltile-n { font-size: 44px; letter-spacing: -1px; }
.ltile-l { font-size: 17px; }
.ltile-flags { font-size: 22px; gap: 4px; }
.ltile-open { display: inline-flex; align-items: center; gap: 5px; } .ltile-open .ico { width: 13px; height: 13px; transition: transform .15s; }
.ltile:hover .ltile-open .ico, .pcol:hover .ltile-open .ico { transform: translateX(4px); }
.pcol-n { font-size: 48px; letter-spacing: -1px; } .mtile-n { font-size: 34px; }
.mtile { border: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--border), var(--shadow); position: relative; overflow: hidden; }
.mtile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--mc, #cbd5e1); }
.v6-title { font-size: 22px; letter-spacing: -.3px; }
.v6-title .dotc { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lc) 18%, transparent); }
.page-sub { max-width: 760px; }
.pop-head { background: linear-gradient(180deg, color-mix(in srgb, var(--lc, #16a34a) 9%, var(--surface)) 0, var(--surface) 100%); }
.pop-flag { font-size: 44px; }
.pp-row:hover { border-color: var(--border-strong, #cbd5e1); box-shadow: var(--shadow); }
@media (max-width: 1250px) { .hero-art { right: 0; opacity: .3; } }
@media (max-width: 700px) { .hero-art { display: none; } .keynum { border-left: 0; padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ltile, .mtile, .pcol, dialog.pop[open], .hero-arc, .pulse { animation: none !important; } .hero-plane { display: none; } }
.hero-art { right: 300px; opacity: .38; }
.agents-text { max-width: 440px; }

/* ===== v7 (Victor, 12 Nov 2026): open bids box, minis, live agents pop-up, home, doors, fleet pills, route map ===== */
.bids-box { margin: 0 0 26px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid #16a34a; }
.bids-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bids-k { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #166534; text-transform: uppercase; letter-spacing: .05em; }
.bids-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.bids-none { margin: 0; font-size: 13.5px; color: var(--muted); }
.bidcard { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
  background: var(--surface); box-shadow: 0 0 0 1px var(--border); animation: v6-up .45s both; animation-delay: calc(var(--i, 1) * 60ms); }
.bidcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px #22c55e, var(--shadow-hover); }
.bidcard-flag { font-size: 28px; line-height: 1; }
.bidcard-name { display: block; font-weight: 800; color: var(--heading); }
.bidcard-what { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bidcard-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
[data-theme="dark"] .bidcard { background: linear-gradient(90deg, rgba(34,197,94,.12), var(--surface)); box-shadow: 0 0 0 1px rgba(34,197,94,.35); }

.mini { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "d l go" "d s go"; column-gap: 10px; align-items: center; padding: 11px 14px; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
  background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.mini:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--lc), var(--shadow-hover); }
.mini .dotc { grid-area: d; width: 12px; height: 12px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 18%, transparent); }
.mini-l { grid-area: l; font-weight: 800; color: var(--heading); font-size: 14px; } .mini-l b { color: var(--lc); }
.mini-s { grid-area: s; font-size: 12.5px; color: var(--muted); }
.mini-go { grid-area: go; color: var(--lc); } .mini-go .ico { width: 16px; height: 16px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* live agents pop-up */
.pulse-lg { width: 14px; height: 14px; margin-top: 9px; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ag-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.ag-card { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 16px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ag-card b { font-size: 14px; color: var(--heading); }
.ag-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; margin-bottom: 4px; color: #fff; }
.ag-c1 .ag-ic { background: #0176d3; } .ag-c2 .ag-ic { background: #16a34a; } .ag-c3 .ag-ic { background: #7c3aed; } .ag-c4 .ag-ic { background: #f59e0b; }
.ag-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-style: normal; font-size: 12px; font-weight: 700; color: #166534; }
.ag-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: ag-blink 1.4s ease-in-out infinite; }
.ag-c1 .ag-live i { animation-delay: .3s; } .ag-c3 .ag-live i { animation-delay: .7s; } .ag-c4 .ag-live i { animation-delay: 1s; }
@keyframes ag-blink { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
.ag-stream-wrap { border-radius: 16px; background: #032d60; color: #fff; padding: 12px 14px; display: flex; flex-direction: column; min-height: 280px; }
.ag-stream-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #bfdbfe; margin-bottom: 8px; }
.ag-stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: hidden; position: relative; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ag-stream::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #032d60); pointer-events: none; }
.ag-stream li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: start; opacity: 0; animation: ag-in .4s ease forwards; animation-delay: calc(var(--i, 1) * 90ms); }
.ag-stream li:first-child .ag-ft { color: #86efac; }
.ag-fi .ico { width: 14px; height: 14px; color: #93c5fd; }
.ag-ft { color: #e2e8f0; line-height: 1.35; }
.ag-fw { color: #94a3b8; white-space: nowrap; font-size: 11px; }
@keyframes ag-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.ag-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ag-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--surface-2); font-size: 11.5px; color: var(--muted); text-align: center; }
.ag-stat b { font-size: 24px; letter-spacing: -.5px; color: var(--heading); }
.ag-sched { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
[data-theme="dark"] .ag-stream-wrap { background: #021a3a; } [data-theme="dark"] .ag-stream::after { background: linear-gradient(transparent, #021a3a); }

/* home */
.home-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 300px; padding: 40px 44px; margin-bottom: 20px; border-radius: 26px; color: #fff;
  background: linear-gradient(120deg, #032d60 0%, #014486 45%, #0176d3 100%); box-shadow: 0 24px 50px -22px rgba(1, 68, 134, .7); }
.home-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.home-glow { animation: home-glow 6s ease-in-out infinite; } @keyframes home-glow { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
.home-text { position: relative; z-index: 1; max-width: 620px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.home-title { margin: 0; font-size: 46px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; color: #fff; }
.home-sub { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.88); }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.htile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; text-decoration: none; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow);
  position: relative; overflow: hidden; animation: v6-up .45s both; }
.htile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--lc); }
.htile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--lc), var(--shadow-hover); }
.htile-n { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--lc); }
.htile-l { font-size: 16px; font-weight: 800; color: var(--heading); }
.htile-s { font-size: 13px; color: var(--muted); line-height: 1.35; }
.home-foot { margin: 0 0 10px 4px; }

/* airline pop-up: doors, fleet, map */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doors .door { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.door-open { box-shadow: 0 0 0 1.5px #22c55e; } .door-shut { opacity: .85; }
.door-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #032d60; color: #fff; font-weight: 800; font-size: 13px; }
.door-open .door-n { background: #16a34a; }
.door-l { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.door-who { display: block; font-size: 13.5px; font-weight: 700; color: var(--heading); line-height: 1.3; }
.fleet-sub { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 2px 0 6px; }
.fleet-g { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 6px; }
.netmap { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.netmap img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.netmap:hover img { transform: scale(1.03); }
.lc-bid { --lc: #16a34a; }
@media (max-width: 900px) { .ag-grid, .doors { grid-template-columns: 1fr; } .ag-stats { grid-template-columns: repeat(3, 1fr); } .home-tiles { grid-template-columns: 1fr 1fr; } .home-title { font-size: 32px; } }

/* ===== v7b: WCS network map (home page) ===== */
.home-net { margin: 6px 0 18px; }
.net-card { margin: 12px 0 10px; padding: 10px; border-radius: 22px; background: linear-gradient(135deg, #021a3a 0%, #032d60 55%, #014486 100%);
  box-shadow: 0 22px 46px -18px rgba(1, 68, 134, .55); }
.net-svg { display: block; width: 100%; height: auto; }
.net-land { fill: #93c5fd; fill-opacity: .16; stroke: #93c5fd; stroke-opacity: .35; stroke-width: .7; }
.net-grid line { stroke: rgba(147, 197, 253, .12); stroke-width: .6; }
.net-arc { fill: none; stroke-width: 1.4; stroke-dasharray: 5 9; animation: net-flow 2.6s linear infinite; }
.net-arc-tcm { stroke: #4ade80; stroke-opacity: .65; }
.net-arc-gsa { stroke: #60a5fa; stroke-opacity: .5; }
@keyframes net-flow { to { stroke-dashoffset: -28; } }
.net-dot circle { transition: transform .15s; transform-box: fill-box; transform-origin: center; cursor: pointer; }
.net-dot:hover circle { transform: scale(1.7); }
.net-hq text { fill: #fff; font-size: 15px; font-weight: 700; paint-order: stroke; stroke: rgba(2, 26, 58, .85); stroke-width: 4px; }
.net-hq-ring { fill: none; stroke: #4ade80; stroke-width: 2; animation: net-ring 2.2s ease-out infinite; }
@keyframes net-ring { 0% { r: 7; opacity: .9; } 100% { r: 26; opacity: 0; } }
.net-legend { margin-top: 2px; }

/* ===== v8: airline pop-up compact + interactive network map + agents ticker ===== */
.pop-air .pop-body { gap: 12px; }
.pop-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--heading); }
.pop-line b { color: var(--heading); }
.pb-fleet { box-shadow: inset 3px 0 0 #032d60; } .pb-map { box-shadow: inset 3px 0 0 #0176d3; }
.pb-who { box-shadow: inset 3px 0 0 #16a34a; } .pb-meet { box-shadow: inset 3px 0 0 #7c3aed; }
.pb-next { box-shadow: inset 3px 0 0 #f59e0b; }
.ag-now { display: flex; gap: 8px; align-items: baseline; margin: 2px 0 8px; padding: 6px 10px; border-radius: 10px;
  background: rgba(74, 222, 128, .12); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ag-now b { color: #86efac; text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.ag-now span { color: #e2e8f0; transition: opacity .25s; }
.net-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.net-fbtn.on { background: #032d60; color: #fff; }
.net-names .net-name[hidden] { display: none; }
.net-label { font-size: 11px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(2, 26, 58, .9); stroke-width: 3.5px;
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.net-dot:hover .net-label, .net-dot.spot .net-label { opacity: 1; }
.net-dot.spot circle { transform: scale(1.9); }
#net-wrap[data-cat="wcs_tcm"] .net-g-wcs_tcm .net-label,
#net-wrap[data-cat="abda_gsa"] .net-g-abda_gsa .net-label { opacity: 1; }
#net-wrap[data-cat="wcs_tcm"] .net-arc-gsa, #net-wrap[data-cat="abda_gsa"] .net-arc-tcm,
#net-wrap[data-cat="wcs_tcm"] .net-dot.net-g-abda_gsa, #net-wrap[data-cat="abda_gsa"] .net-dot.net-g-wcs_tcm { opacity: .12; }
#net-wrap[data-cat="wcs_tcm"] .net-arc-tcm, #net-wrap[data-cat="abda_gsa"] .net-arc-gsa { stroke-opacity: .85; stroke-width: 2; }
.pb-reach { box-shadow: inset 3px 0 0 #0d9488; }
.next-line { display: inline-flex; gap: 6px; align-items: center; color: var(--heading); }

/* ===== v9: zoomable network map with whole partner networks ===== */
.net-zoom { position: absolute; right: 18px; top: 18px; z-index: 3; display: flex; gap: 6px; }
.net-card { position: relative; }
.net-zbtn { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .92); color: #032d60;
  font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.net-zbtn:hover { background: #fff; transform: translateY(-1px); }
.net-zreset { width: auto; padding: 0 12px; font-size: 12px; }
.net-dest { fill: none; stroke-width: .7; stroke-opacity: .22; }
.net-dest.net-g-wcs_tcm { stroke: #4ade80; } .net-dest.net-g-abda_gsa { stroke: #60a5fa; }
.net-ddest circle { stroke: rgba(2, 26, 58, .55); stroke-width: .5; cursor: pointer; transition: transform .12s;
  transform-box: fill-box; transform-origin: center; }
.net-ddest:hover circle { transform: scale(2.1); }
.fam-off { opacity: .07 !important; }
#net-wrap[data-sel] [data-fams] { opacity: .10; }
#net-wrap[data-sel] .sel-on, #net-wrap[data-sel] .net-hq, #net-wrap[data-sel] .net-land { opacity: 1; }
#net-wrap[data-sel] .net-dest.sel-on { stroke-opacity: .75; stroke-width: 1.5; }
.net-svg { cursor: grab; } .net-svg:active { cursor: grabbing; }

/* top targets by country (Victor, FEEDBACK.md 16 Nov 2026): name, format, angle, named door, dated action */

/* day session 18 Nov 2026 (A): inputs status line on the WCS tab */

/* day session 18 Nov 2026 (B): cargo presence, tags, why-now. Text >= 4.5:1 on its background (checked on PNG). */
.cp { border: 1px solid transparent; }
.cp-none { background: #dcfce7; color: #14532d; border-color: #16a34a; font-weight: 700; }
.cp-page { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.cp-dept { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.cp-gsa { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.cp-own { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.cp-unk { background: transparent; color: #475569; border: 1px dashed #94a3b8; }
.tg-rescue { background: #7c2d12; color: #fff; }
.tg-start { background: #5b21b6; color: #fff; }
/* part 3 (B6): ownership web - group badge + related business case */
.tg-rel { background: #0f766e; color: #fff; }
.b-group { background: #f0fdfa; color: #134e4a; border: 1px solid #5eead4; text-decoration: none; }
.b-group:hover { border-color: #0f766e; }

.wn { display: block; line-height: 1.45; color: var(--body); }
.wn b { color: #92400e; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.wn-d { font-weight: 700; color: var(--heading); }
.wn-none { color: #64748b; font-style: italic; }
[data-theme="dark"] .cp-none { background: #14532d; color: #dcfce7; }
[data-theme="dark"] .cp-dept { background: #1e3a8a; color: #dbeafe; }
[data-theme="dark"] .cp-gsa { background: #7c2d12; color: #ffedd5; }
[data-theme="dark"] .cp-own, :root[data-theme="dark"] .cp-page { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .wn b { color: #fbbf24; }

/* day session 18 Nov 2026 (C): network overlap block (airline file + /overlap one-pager) */
.ov { margin: 26px 0; }
.ov-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-end; }
.ov-stub { font-size: 12.5px; color: #78350f; background: #fffbeb; border: 1px solid #f59e0b; border-radius: 8px;
  padding: 6px 10px; margin: 8px 0; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-map { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0b1f3a; }
.ov-svg { display: block; width: 100%; height: auto; }
.ov-sea { fill: #0b1f3a; }
.ov-land { fill: #1e3a5f; stroke: #2c5282; stroke-width: .6; }
.ov-r { fill: none; stroke: #94a3b8; stroke-opacity: .28; stroke-width: 1; }
.ov-r-on { fill: none; stroke: #2dd4bf; stroke-opacity: .75; stroke-width: 1.6; }
.ov-d { fill: #cbd5e1; }
.ov-d-on { fill: #2dd4bf; stroke: #0b1f3a; stroke-width: 1.5; }
.ov-d-abda { fill: #93c5fd; stroke: #0b1f3a; stroke-width: 1.5; }
.ov-lbl { fill: #e2e8f0; font: 700 11px system-ui, sans-serif; paint-order: stroke; stroke: #0b1f3a; stroke-width: 3; }
.ov-hub { fill: #fbbf24; stroke: #fff; stroke-width: 2.5; }
.ov-hub-l { fill: #fde68a; font: 800 14px system-ui, sans-serif; paint-order: stroke; stroke: #0b1f3a; stroke-width: 4; }
.ov-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 12px; font-size: 12px; color: #e2e8f0; background: #0b1f3a; }
.ov-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.lg-hub { background: #fbbf24; } .lg-on { background: #2dd4bf; } .lg-off { background: #cbd5e1; } .lg-abda { background: #93c5fd; }
.ov-nums { display: flex; flex-direction: column; gap: 8px; }
.ov-k { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); }
.ov-k b { font-size: 24px; font-weight: 800; color: #0f766e; min-width: 62px; }
.ov-k span { font-size: 13px; color: var(--body); }
.ov-say { padding: 10px 12px; border-radius: 10px; background: #f0fdfa; border: 1px solid #99f6e4; }
.ov-say p { margin: 2px 0 8px; font-size: 13.5px; color: #134e4a; font-weight: 600; }
[data-theme="dark"] .ov-say { background: #134e4a; } [data-theme="dark"] .ov-say p { color: #ccfbf1; }
[data-theme="dark"] .ov-k b { color: #5eead4; }
.ov-roll { margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 13px; }
.ov-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.ov-table th, .ov-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.ov-feed { padding: 8px 12px; border-left: 4px solid #0f766e; background: var(--surface); }
@media print { .ov-map { background: #0b1f3a; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.ov-map { align-self: start; }

/* day session 18 Nov 2026 (D): field asks, reply page, 2-pager */
.fa { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 12px 14px; margin-bottom: 12px; }
.fa-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fa-subj { font-weight: 700; margin: 6px 0 4px; color: var(--heading); }
.fa-body { white-space: pre-wrap; font: 13px/1.5 system-ui, sans-serif; background: #f8fafc; border-radius: 8px; padding: 10px; color: #1e293b; margin: 0; }
[data-theme="dark"] .fa-body { background: #0f172a; color: #e2e8f0; }
.fa-act, .fa-paste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.fa-paste .input { flex: 1; min-width: 200px; }
.reply-page { background: #eef4fb; min-height: 100vh; display: grid; place-items: start center; padding: 24px 12px; }
.reply-card { max-width: 520px; width: 100%; background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.reply-card h1 { margin: 0 0 8px; color: #032d60; } .reply-card textarea { width: 100%; }
.reply-fb { border: 0; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.twop { max-width: 860px; } .twop-s { margin: 18px 0; } .twop-s h2 { font-size: 17px; color: var(--heading); margin: 0 0 6px; }
.twop-s p, .twop-s li { line-height: 1.55; } .twop-map { max-width: 620px; border-radius: 10px; overflow: hidden; }
.twop-t { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; } .twop-t th { text-align: left; color: var(--muted, #5c6b7a); font-weight: 600; border-bottom: 1px solid #d8dde6; padding: 4px 6px; } .twop-t td { border-bottom: 1px solid #eef1f6; padding: 4px 6px; vertical-align: top; }
@media (max-width: 600px) { .twop-t th:nth-child(4), .twop-t td:nth-child(4) { display: none; } }
.twop-src { margin-top: 22px; font-size: 11px; color: var(--muted, #5c6b7a); } .twop-src h3 { font-size: 12px; margin: 0 0 4px; } .twop-src ol { padding-left: 18px; margin: 0; } .twop-src a { word-break: break-all; }

/* day session 18 Nov 2026 part 2 (I-a): one line per lead on the WCS / ABDA tabs */
.llist { display: flex; flex-direction: column; gap: 6px; }
.llist { margin-bottom: 22px; }
.llist-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 6px 0 4px; font-size: 15px; font-weight: 800; color: var(--heading); }
.llist-h .dotc { background: var(--lc); }
.llist-n { font-weight: 800; color: #032d60; background: #eef4fb; border-radius: 999px; padding: 0 8px; font-size: 13px; }
.llist-s { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.llist-more { align-self: flex-start; cursor: pointer; }
.llist .reveal { display: flex; flex-direction: column; gap: 6px; } .llist .reveal[hidden] { display: none; }

[data-theme="dark"] .llist-n { background: #0f2a4a; color: #bfdbfe; }

/* part 2 (I-b): three blocks on the full airline file */
.fblocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.fblock .card-title { display: flex; align-items: center; gap: 6px; }
.fb-big { font-size: 14px; } .fb-big b { font-size: 22px; color: #032d60; font-weight: 800; }
[data-theme="dark"] .fb-big b { color: #bfdbfe; }
@media (max-width: 900px) { .fblocks { grid-template-columns: 1fr; } }

/* part 2 (F): GSA registration push */
.reg-sum { font-size: 14px; margin: 0 0 6px; }
.reg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.reg-list { display: flex; flex-direction: column; gap: 6px; }
.reg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.reg-main { min-width: 0; flex: 1 1 420px; display: flex; flex-direction: column; gap: 3px; }
.reg-l1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reg-name a { color: var(--heading); } .reg-name { color: var(--heading); }
.reg-l2 { font-size: 12.5px; color: var(--body); }
.reg-l2 svg { vertical-align: -2px; margin-right: 3px; }
.reg-l2 svg { width: 13px; height: 13px; }
.reg-sum + p + .v6-sec, .reg-sum ~ p { margin-bottom: 14px; }
.reg-ask { color: #92400e; display: inline-flex; gap: 4px; align-items: center; }
.reg-act { display: flex; gap: 8px; align-items: center; }
.b.reg-must { background: #032d60; color: #fff; }
.b.reg-to_send { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.b.reg-portal_needed { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.b.reg-sent { background: #eef4fb; color: #0b5cab; border: 1px solid #93c5fd; }
.b.reg-acknowledged { background: #ecfeff; color: #155e75; border: 1px solid #a5f3fc; }
.b.reg-registered { background: #166534; color: #fff; }
[data-theme="dark"] .reg-ask { color: #fcd34d; }
.reg-l2 svg { display: inline; }

/* part 2 (J): M&A screen - separate page */
.ma-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-list { display: flex; flex-direction: column; gap: 6px; }
.ma-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); }
.ma-n { font-weight: 800; color: #032d60; text-align: right; }
.ma-name { color: var(--heading); }
.ma-why { font-size: 13px; color: var(--body); margin-top: 2px; }
.b.ma-lost { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.b.ma-weak { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.b.ma-grow { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.b.ma-fit { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
[data-theme="dark"] .ma-n { color: #bfdbfe; }
@media (max-width: 480px) { .agents-pill { display: none; } }
@media (max-width: 480px) {
  .topbar-right { gap: 8px; min-width: 0; flex: 1 1 auto; }
  .topbar-right .search { flex: 1 1 auto; min-width: 0; }
  .topbar-right .search input { width: 100%; min-width: 0; }
  .topbar-date { display: none; }
}
.reg-main, .ma-why { overflow-wrap: anywhere; }
/* part 3 (D3): Field Radar block on the head's reply page */
.reply-radar { margin: 16px 0 8px; padding: 12px 14px; border-radius: 12px; background: #f0fdfa; border: 1px solid #99f6e4; }
.reply-radar h2 { margin: 0 0 6px; font-size: 15px; color: #134e4a; }
.reply-radar p { margin: 4px 0; } .fr-gift { color: #134e4a; font-size: 13px; }
.fr-go { display: inline-block; margin-top: 8px; text-decoration: none; max-width: 100%; white-space: normal; }

/* part 4 (18 Nov, Victor: "reduce the design"): WCS / ABDA tabs = Open bids, Our targets one line each, agent line.
   One accent per section (green = open bids, navy = targets), white rows, badges in plain words, never tinted-on-tint. */
.tsec { margin: 0 0 22px; }
.tsec-h { font-size: 17px; font-weight: 800; color: var(--heading); display: flex; align-items: baseline; gap: 8px;
  padding-left: 10px; border-left: 3px solid #032d60; }
.tsec-n { font-size: 13px; font-weight: 700; color: var(--muted); }
.tsec-s { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.tlist { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.trow { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 300px); gap: 12px; align-items: center;
  width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--border); background: none; text-align: left;
  cursor: pointer; font: inherit; color: var(--body); }
.tlist > .trow:first-child { border-top: 0; }
.trow:hover { background: #f6f9fc; }
.trow-n { font-size: 13px; font-weight: 800; color: #032d60; text-align: right; }
.trow-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trow-l1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.trow-name { font-size: 15px; font-weight: 800; color: var(--heading); }
.trow-ctry { font-size: 12px; color: var(--muted); }
.trow-rung { font-size: 12px; font-weight: 700; color: #032d60; }
.trow-rung::before { content: "·"; margin-right: 6px; color: var(--muted); font-weight: 400; }
.scr { font-size: 11.5px; font-weight: 600; color: #334155; border: 1px solid #cbd5e1; border-radius: 999px; padding: 0 8px;
  line-height: 18px; background: #fff; white-space: nowrap; }
.trow-l2 { font-size: 13px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-d { font-weight: 700; color: #032d60; }
.trow-next { font-size: 12.5px; color: var(--muted); }
.tlist .reveal > .trow { border-top: 1px solid var(--border); }
.tlist-more { display: block; width: 100%; padding: 10px 14px; border-top: 1px solid var(--border); text-align: left; }
.agent-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--muted);
  margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.agent-line .pulse { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; }
.agent-line b { color: var(--body); }
[data-theme="dark"] .trow:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .scr { background: transparent; color: #e2e8f0; border-color: #475569; }
[data-theme="dark"] .trow-n, [data-theme="dark"] .trow-rung, [data-theme="dark"] .trow-d { color: #bfdbfe; }
[data-theme="dark"] .tsec-h { border-left-color: #93c5fd; }
@media (max-width: 760px) {
  .trow { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .trow-next { grid-column: 2; }
  .trow-l2 { white-space: normal; }
}
/* part 3 (item 4): supplier portals */
.b.pt-to_do { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.b.pt-in_progress { background: #eef4fb; color: #0b5cab; border: 1px solid #93c5fd; }
.b.pt-registered { background: #166534; color: #fff; }
.b.pt-blocked { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 14px; align-items: start; }
@media (max-width: 760px) { .pt-row { grid-template-columns: minmax(0, 1fr); } }
.pt-row .reg-act { flex-direction: column; align-items: stretch; }
.pt-tick { font-size: 13px; color: #14532d; display: flex; gap: 4px; align-items: center; }
.pt-tick svg { width: 14px; height: 14px; }
.pt-docs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pt-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 100%; }
.pt-form .input { max-width: 100%; }
.reg-act { flex-wrap: wrap; max-width: 100%; }
[data-theme="dark"] .pt-tick { color: #86efac; }
/* EXPLORE D1 (night 20 Nov 2026): evidence chain in the pop-up */
.pop-chain { margin: 8px 0 6px; } .pop-chain .ec { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.pop-chain .ec li { margin: 3px 0; line-height: 1.4; } .pop-chain .ec-d { color: var(--muted, #5c6b7a); font-variant-numeric: tabular-nums; }
.pop-chain .ec-i { color: var(--muted, #5c6b7a); font-size: 12px; } .pop-chain .ec-a { color: #0b5cab; font-weight: 600; }
.ec-a { color: #0b5cab; }
.net-svg { cursor: grab; } .net-svg:active { cursor: grabbing; }

/* Victor, 20 Nov 2026: one solid colour per offer badge (Full TCM navy, Regional TCM blue, GSA orange) */
.tf { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 9px; line-height: 17px; white-space: nowrap; }
.tf-full { background: #032d60; } .tf-regional { background: #0176d3; } .tf-cluster { background: #5b21b6; }
.tf-gsa { background: #c2410c; } .tf-interline { background: #475569; }
[data-theme="dark"] .tf-full { background: #1e40af; }
/* 20 Nov 2026: mobile top bar fits the screen (the 300px search pushed it 68px past a 390px phone) */
@media (max-width: 760px) {
  .topbar-right { width: 100%; min-width: 0; gap: 10px; margin-left: 0; }
  .topbar-right .search { flex: 1 1 auto; min-width: 0; width: auto; }
  .topbar-right .search input { min-width: 0; width: 100%; }
  .agents-pill { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  .net-fbtn { white-space: normal; max-width: 100%; }
  .net-fbtn:not(:last-child) { margin-bottom: 4px; }
}
@media (max-width: 760px) { .net-tabs { display: flex; flex-wrap: wrap; gap: 6px; } }
/* lane d 21 Nov 2026: wide tables scroll inside their card on a phone (the /explore scorecard pushed the page to 803px) */
.xscroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.b.b-wrap { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
/* lane d 21 Nov 2026: secondary pages fit a phone too - wide tables scroll inside the page, action rows wrap */
@media (max-width: 760px) {
  main.page table.table, main.page table.mini-table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  main.page .flex.gap-2 { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  pre.fa-body { white-space: pre-wrap; overflow-wrap: anywhere; }
  .copybox { min-width: 0; overflow-wrap: anywhere; }
  .queue-item > * { min-width: 0; }
}
/* lane d 21 Nov 2026: on a phone the pop-up header (flag + up to 9 badges, one per line at 193px) stayed sticky and
   hid half the screen - it now scrolls away, the flag shrinks and the badges get the full width */
@media (max-width: 760px) {
  .pop-head { position: static; flex-wrap: wrap; gap: 10px; padding: 16px 16px 12px; }
  .pop-head .pop-flag { font-size: 30px; }
  .pop-head > .min-w-0 { flex: 1 1 0; }
  .pop-head .pop-badges { gap: 5px; }
  /* lane d 22 Nov 2026: "Remove from Open bids" sat on top of the badges on a 390 px phone (flyadeal): own row */
  .pop-head > form { flex: 1 0 100%; order: 3; margin-left: 0 !important; align-self: flex-start !important; }
  .pop-head > .min-w-0 { min-width: 0; }
}
@media (max-width: 760px) {    /* the close button stays on screen while the header scrolls away */
  dialog.pop[open] .pop-head .pop-x { position: fixed; top: calc(5vh + 10px); right: calc(3vw + 10px); z-index: 5;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18); }
}
/* lane d 22 Nov 2026: a long badge never wrapped (white-space: nowrap) and ran past the pop-up edge, its text cut off:
   route pills of 49-263 characters on 29 pop-ups at 1440 px, 58 on a phone. Inside a pop-up a badge wraps; the
   Events plan tables scroll sideways inside their pop-up instead of widening it. */
.pop .b { max-width: 100%; white-space: normal; height: auto; min-height: 24px; line-height: 1.25; padding-top: 4px;
  padding-bottom: 4px; }
.pop .chips6 .b { border-radius: 10px; text-align: left; }
.pop .vp-t { display: block; overflow-x: auto; max-width: 100%; }
/* lane d 22 Nov 2026, contrast audit (WCAG ratio, small bold text needs 4.5): white on #16a34a read 3.3 ("Ready",
   "Open bid", "Recommended"); in dark mode "Cargo: not checked" read 2.1 and the rows' contact lines 3.2 */
.b-green-solid { background: #15803d; }
[data-theme="dark"] .cp-unk { color: #cbd5e1; border-color: #64748b; }
[data-theme="dark"] .tdoor-2 { color: #4ade80; } [data-theme="dark"] .tdoor-1 { color: #fbbf24; }
/* lane d 22 Nov 2026: the Events team-plan table kept its light zebra rows (events.html inline style) under the dark
   theme's light text - every other row unreadable; short pills never split inside a word */
[data-theme="dark"] .vp-t tr:nth-child(even) td { background: rgba(148, 163, 184, .08); }
.pop .vp-t .b { white-space: nowrap; }
/* lane d 22 Nov 2026, dark-mode text contrast (layout audit, all text): the evidence-chain angle (#0b5cab on navy, 2.4,
   324 lines on /wcs + /leads), "Open bids" / agents-live greens (2.0-2.2), the Events plan headings (1.2) and dates,
   the "No carrier meeting yet" warning box (light pink under light text, 1.8), signal chips on /pipeline (2.8-3.0) */
[data-theme="dark"] .ec-a, [data-theme="dark"] .pop-chain .ec-a { color: #93c5fd; }
[data-theme="dark"] .ag-live, [data-theme="dark"] .bids-k { color: #4ade80; }
[data-theme="dark"] .vp-h { color: #bfdbfe; } [data-theme="dark"] .vp-when { color: #7dd3fc; }
[data-theme="dark"] .ev-warn { background: rgba(239, 68, 68, .14); color: #fecaca; }
[data-theme="dark"] .ev-warn .ev-k { color: #fca5a5; }
[data-theme="dark"] .win-capacity { --qc: #67e8f9; } [data-theme="dark"] .win-leadership { --qc: #c4b5fd; }
[data-theme="dark"] .win-distress { --qc: #fcd34d; }
.htile-n { color: color-mix(in srgb, var(--lc) 82%, #000); }       /* amber "11" on white was 2.15 at 44 px */
[data-theme="dark"] .htile-n { color: color-mix(in srgb, var(--lc) 60%, #fff); }
/* lane d 22 Nov 2026: on the airline files every ".chips .chip" (paths, drafts: "Direct", "email", "draft", "Cold")
   kept #014486 text in dark mode - 1.6 on navy, 188 chips on one file */
[data-theme="dark"] .chips .chip { color: #bfdbfe; box-shadow: 0 0 0 1px #334155; }
[data-theme="dark"] .chips .chip-new, [data-theme="dark"] .chips .chip-solid-teal,
[data-theme="dark"] .chips .chip-compliance { color: #fff; }
/* lane d 22 Nov 2026: the later ".topbar { height: 60px }" (line ~916) beat the phone rule "height: auto" (~225): on a
   390 px phone the wrapped search box hung 26 px below the bar, onto every tab's title */
@media (max-width: 900px) { .topbar { height: auto; } }
/* lane d 22 Nov 2026: on a phone the evidence-chain "Useful / Not useful" buttons were 17 px tall and the "source"
   links 16 px (1 180 targets under 24 px on /wcs + /leads pop-ups, WCAG 2.2 asks 24). Touch screens only. */
@media (max-width: 760px), (pointer: coarse) {
  .pop .lv .btn-xs { height: 26px !important; min-height: 26px !important; line-height: 24px !important; padding: 0 10px !important; }
  .pop .linkish.small, .pop a.src-link { display: inline-flex; align-items: center; min-height: 26px; min-width: 26px; }
  .pop .ev-tb { min-height: 28px; } .pop a.muted.small, .pop a.b { display: inline-flex; align-items: center; min-height: 26px; min-width: 26px; }
}
