/* ---------------------------------------------------------------------------
   VCxO brand (25 Sept 2026). Loaded last, after refresh.css, on every page.
   Applies the Virtual CxO Group brand guidelines: VCxO Blue #1E4E8C, Progress
   Blue #1E6FA8, Executive Gray #6B6B6B, Cloud #EAF3FA, Ink #21313F; Aptos
   type with Montserrat / Arial fallbacks; semibold as the heaviest weight;
   diagonal thin lines taken from the V. Removing this <link> restores the
   previous look exactly.
--------------------------------------------------------------------------- */

:root {
  /* The guideline palette. The old navy and cyan names are pointed at the
     brand blues so every rule that still reads them follows along. */
  --vcxo-blue:      #1e4e8c;
  --progress-blue:  #1e6fa8;
  --executive-gray: #6b6b6b;
  --cloud:          #eaf3fa;

  --navy:        var(--vcxo-blue);
  --navy-deep:   var(--vcxo-blue);
  --navy-soft:   var(--cloud);
  --blue:        var(--vcxo-blue);
  --blue-mid:    var(--progress-blue);
  --blue-link:   var(--progress-blue);
  --blue-soft:   var(--cloud);
  --cyan:        var(--progress-blue);
  --brand-primary: var(--vcxo-blue);
  --brand-accent:  var(--progress-blue);
  --hero-gradient: linear-gradient(135deg, #1e4e8c 0%, #1e6fa8 100%);

  --ink:   #21313f;
  --body:  #21313f;
  --muted: #6b6b6b;
  --field-bg: #ffffff;
  --focus-ring: rgba(30, 78, 140, 0.18);

  /* Aptos ships with Microsoft 365. Montserrat is the guideline fallback for
     headings but is not self-hosted yet (the CSP is font-src 'self'), so
     Arial carries both where Aptos is missing. */
  --font-display: "Aptos Display", Aptos, Montserrat, "Segoe UI", Arial, sans-serif;
  --font:         Aptos, Arial, Calibri, "Segoe UI", sans-serif;

  --text-base: 16px;
  --weight-bold:      600;
  --weight-extrabold: 600;
}

:root[data-theme="dark"] {
  --ink:   #eef2f8;
  --body:  #d5dbe6;
  --muted: #a3a3a3;
  --cloud: #17273f;
  --navy-soft: #17273f;
  --blue-soft: #17273f;
  --field-bg: var(--card);
}

body { font-family: var(--font); color: var(--ink); }

h1, h2, h3, h4, .h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.main h2 { color: var(--vcxo-blue); font-size: 30px; font-weight: 600; }
:root[data-theme="dark"] .main h2 { color: var(--ink); }

.eyebrow {
  color: var(--vcxo-blue);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}
:root[data-theme="dark"] .eyebrow { color: #8ab8ee; }

/* ----------------------------------------------------------- the top bar
   VCxO Blue, the guidelines' ground for the reversed logo, with three thin
   Progress Blue diagonals at the right edge. */
.sidebar {
  position: sticky;
  background: var(--vcxo-blue);
  box-shadow: 0 2px 12px rgba(30, 78, 140, 0.22);
  border-block-end: 0;
  /* No overflow clipping: the account menu drops below the bar and must
     not be cut off. The diagonals are sized to stay inside the bar. */
  overflow: visible;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 72px;
  inline-size: 170px;
  background: repeating-linear-gradient(115deg,
    transparent 0 46px, var(--progress-blue) 46px 48px, transparent 48px 70px);
  pointer-events: none;
  z-index: 0;
}
.sidebar > * { position: relative; z-index: 1; }
.sidebar .lockup img { filter: brightness(0) invert(1); block-size: 34px; }
.sidebar nav .navlink {
  color: #eaf3fa;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: none;
}
.sidebar nav .navlink:hover { color: #ffffff; background: rgba(255, 255, 255, 0.10); }
.sidebar nav .navlink.current,
.sidebar nav .navlink[aria-current="page"] {
  background: #ffffff;
  color: var(--vcxo-blue);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.who-avatar {
  background: var(--progress-blue);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  font-family: var(--font);
  font-weight: 600;
}

/* ------------------------------------------------------------- buttons */
.primary, button.primary, .btn-primary { font-family: var(--font); background: var(--vcxo-blue); }
.primary:hover, button.primary:hover:not(:disabled) { background: var(--progress-blue); }
.ghost, button.ghost { font-family: var(--font); }
.ghost:hover, button.ghost:hover:not(:disabled) { color: var(--vcxo-blue); }
:root[data-theme="dark"] .ghost:hover,
:root[data-theme="dark"] button.ghost:hover:not(:disabled) { color: var(--ink); }

/* Tabs and chips: the current one in VCxO Blue. */
.tab-pill.current { color: var(--vcxo-blue); }
.tab-chip { background: var(--cloud); color: var(--vcxo-blue); }
:root[data-theme="dark"] .tab-pill.current,
:root[data-theme="dark"] .tab-chip { color: var(--ink); }

/* Stepper: current step in VCxO Blue, its disc white. */
.step.current { background: var(--vcxo-blue); border-color: var(--vcxo-blue); }
.stepper-progress span { background: linear-gradient(90deg, var(--vcxo-blue), var(--progress-blue)); }

/* ------------------------------------------------------------ dashboard */
.dash-eyebrow { font-size: 12px; text-transform: uppercase; }
#dash-greeting { font-size: 34px; line-height: 1.15; }

.dash-quickstats {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-4);
}
.dash-tile .dash-count,
.dash-count {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.dash-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: var(--space-5);
  align-items: start;
  margin-block-start: var(--space-5);
}
.dash-main, .dash-side { display: flex; flex-direction: column; gap: var(--space-5); min-inline-size: 0; }
.dash-main > .dash-block, .dash-main > .card,
.dash-side > .card { margin: 0; }
.dash-side .dash-mini { inline-size: auto; }

.dash-needs {
  position: relative;
  overflow: hidden;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--vcxo-blue);
  color: #ffffff;
}
.dash-needs::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -40px;
  inline-size: 200px;
  background: repeating-linear-gradient(115deg,
    transparent 0 46px, var(--progress-blue) 46px 48px, transparent 48px 72px);
  pointer-events: none;
}
.dash-needs > * { position: relative; z-index: 1; }
.dash-needs-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaf3fa;
}
.dash-needs-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: #ffffff;
}
.dash-needs-btn {
  margin-block-start: var(--space-4);
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--vcxo-blue);
  font: 600 14px var(--font);
  cursor: pointer;
}
.dash-needs-btn:hover { background: #eaf3fa; }
.dash-needs-btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
:root[data-theme="dark"] .dash-needs-btn { color: #1e4e8c; }

@media (max-width: 1200px) {
  .dash-quickstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dash-quickstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dash-greeting { font-size: 26px; }
  .sidebar::after { display: none; }
}

/* ---------------------------------------------------------------- login */
body.login-page { background: var(--hero-gradient); }

/* ------------------------------------------- lines of business, one voice
   The group guidelines keep specialist-brand accents out of group-level
   screens, so every line chip and bar uses the group blues. The line's name
   is the label; colour is no longer what tells them apart. */
.line-chip,
.line-chip[class*="line-"] { background: var(--cloud); color: var(--vcxo-blue); }
:root[data-theme="dark"] .line-chip,
:root[data-theme="dark"] .line-chip[class*="line-"] { background: #17273f; color: #a9c3f0; }
.dash-byline-bar,
.dash-byline-bar[class*="tone-line-"] {
  background: linear-gradient(90deg, var(--vcxo-blue), var(--progress-blue));
}

/* One column: what needs a decision comes first. */
@media (max-width: 1000px) {
  .dash-side { order: -1; }
}

/* The top-bar diagonals only where the menu cannot reach them. */
@media (max-width: 1320px) {
  .sidebar::after { display: none; }
}

/* ======================================================================
   Round 2 (25 Sept 2026): the V signature, the RFP journey, client cards.
   ====================================================================== */

/* ---------------------------------------------------- the V signature
   A faint Progress Blue stroke rising behind each page title, fading out:
   the diagonal of the V, used as a directional device, not decoration. */
.main .rowhead h2,
.main .toolbar h2,
.main > section > h2 {
  position: relative;
  isolation: isolate;
}
/* The stroke behind page titles was taken off (Farida, 29 Sept 2026) -
   the nav bar keeps its lines. */
.main .rowhead h2::after,
.main .toolbar h2::after,
.main > section > h2::after { display: none; }

/* ------------------------------------------------------ the RFP journey */
.journey { display: flex; flex-direction: column; gap: 5px; min-inline-size: 260px; margin-block-end: 8px; }
.journey-track { display: flex; align-items: center; }
.journey-stop {
  flex: none;
  inline-size: 11px;
  block-size: 11px;
  border-radius: 50%;
  background: var(--field-line);
}
.journey-stop.done { background: var(--vcxo-blue); }
.journey-stop.current {
  inline-size: 15px;
  block-size: 15px;
  background: var(--progress-blue);
  box-shadow: 0 0 0 4px rgba(30, 111, 168, 0.18);
}
.journey-stop.ended {
  inline-size: 15px;
  block-size: 15px;
  background: var(--status-expired);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
}
.journey-leg { flex: 1; block-size: 3px; margin-inline: 3px; border-radius: 999px; background: var(--line); }
.journey-leg.done { background: linear-gradient(90deg, var(--vcxo-blue), var(--progress-blue)); }
.journey-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
:root[data-theme="dark"] .journey-stop.done { background: #8ab8ee; }

/* The RFP list reads as a stack of cards: each row its own white card on
   the page ground, the header row left plain above them. */
#list-table { border-collapse: separate; border-spacing: 0 10px; }
.table-scroll:has(> #list-table) {
  background: transparent;
  border: 0;
  box-shadow: none;
}
#list-table thead th { background: transparent; border: 0; padding-block: 4px; }
#list-table tbody td {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding-block: 16px;
}
#list-table tbody td:first-child {
  border-inline-start: 1px solid var(--line);
  border-start-start-radius: var(--radius-lg);
  border-end-start-radius: var(--radius-lg);
}
#list-table tbody td:last-child {
  border-inline-end: 1px solid var(--line);
  border-start-end-radius: var(--radius-lg);
  border-end-end-radius: var(--radius-lg);
}
#list-table tbody tr:hover td { background: var(--row-hover); border-color: var(--field-line); }

/* -------------------------------------------------------- client cards */
.view-switch { display: inline-flex; gap: 2px; padding: 4px; background: #e8ecf2; border-radius: 12px; }
:root[data-theme="dark"] .view-switch { background: var(--surface-2); }
.view-switch-btn {
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 13px var(--font);
  cursor: pointer;
}
.view-switch-btn[aria-pressed="true"] { background: var(--card); color: var(--vcxo-blue); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .view-switch-btn[aria-pressed="true"] { color: var(--ink); }
.view-switch-btn:focus-visible { outline: 2px solid var(--vcxo-blue); outline-offset: 2px; }

.client-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-block-end: var(--space-5);
}
.client-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.client-card::after {
  content: "";
  position: absolute;
  inset-block-start: -30px;
  inset-inline-end: 10px;
  inline-size: 10px;
  block-size: 130px;
  background: var(--cloud);
  transform: rotate(-38deg);
  pointer-events: none;
}
.client-card:hover { transform: translateY(-2px); border-color: var(--field-line); box-shadow: var(--shadow); }
.client-card:focus-visible { outline: 2px solid var(--vcxo-blue); outline-offset: 2px; }
.client-card-head { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.client-card-badge {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vcxo-blue), var(--progress-blue));
  color: #ffffff;
  font: 600 18px var(--font-display);
}
.client-card-who { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.client-card-name { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-card-meta { font-size: 13px; color: var(--muted); }
.client-card-deal { display: flex; flex-direction: column; gap: 6px; padding-block-start: 14px; border-block-start: 1px solid var(--line-soft); }
.client-card-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.client-card-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.client-card-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------ the diagonal sign-in */
body.login-split {
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
  justify-content: stretch;
  min-block-size: 100dvh;
  padding: 0;
}
body.login-split .login-card {
  grid-column: 1;
  grid-row: 1;
  inline-size: min(420px, calc(100% - 48px));
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 48px 0;
}
body.login-split .login-card .lockup { text-align: start; }
body.login-split .login-card .lockup img { block-size: 52px; }
body.login-split .login-card .lockup h1 { font-size: 30px; color: var(--vcxo-blue); margin-block-start: 28px; }
body.login-split .login-card .lockup p { font-size: 15px; }
body.login-split .login-card button.primary { block-size: 48px; font-size: 16px; }
.login-hero {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 clamp(40px, 8vw, 120px) clamp(60px, 12vh, 140px) clamp(120px, 14vw, 220px);
  background: var(--vcxo-blue);
  color: #ffffff;
  clip-path: polygon(clamp(80px, 12vw, 200px) 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg,
    transparent 0 110px, var(--progress-blue) 110px 112px, transparent 112px 170px);
  pointer-events: none;
}
.login-hero > * { position: relative; margin: 0; }
.login-hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #eaf3fa; }
.login-hero-title { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; font-weight: 600; max-inline-size: 560px; }
.login-hero-sub { font-size: 16px; line-height: 1.5; color: #eaf3fa; max-inline-size: 420px; }
:root[data-theme="dark"] body.login-split { background: var(--bg); }

@media (max-width: 860px) {
  body.login-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-hero {
    grid-column: 1;
    grid-row: 1;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
    padding: 36px 24px 56px;
    min-block-size: 200px;
  }
  body.login-split .login-card { grid-row: 2; align-self: start; }
}

/* ======================================================================
   Round 3 (25 Sept 2026): Leads and Request a meeting.
   ====================================================================== */

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------- leads: the stepped pipeline
   The four stage tabs become one arrow run, dark to light, each carrying
   its count large: the forward movement of the V applied to the funnel. */
.leads-tabrow { display: block; }
.leads-tabrow .leads-shown { margin: 8px 0 0; }
#leads-tabs.tab-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  inline-size: 100%;
}
#leads-tabs .tab-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  block-size: 88px;
  box-sizing: border-box;
  padding: 0 24px 0 52px;
  margin-inline-start: -20px;
  border-radius: 0;
  background: #eef3f9;
  color: var(--vcxo-blue);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 28px 50%);
}
#leads-tabs .tab-pill:first-child {
  margin-inline-start: 0;
  padding-inline-start: 24px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
}
#leads-tabs .tab-pill:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 28px 50%);
}
#leads-tabs .tab-pill:nth-child(2) { background: #dbe8f5; }
#leads-tabs .tab-pill:nth-child(3) { background: #e6eff8; }
#leads-tabs .tab-pill:nth-child(4) { background: #eef3f9; color: var(--ink); }
#leads-tabs .tab-pill:hover { filter: brightness(0.97); color: var(--vcxo-blue); }
#leads-tabs .tab-pill.current {
  background: var(--vcxo-blue);
  color: #eaf3fa;
}
#leads-tabs .tab-pill .tab-chip {
  order: 2;
  min-inline-size: 0;
  block-size: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: 600 30px/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
#leads-tabs .tab-pill.current .tab-chip { color: #ffffff; background: transparent; }
/* Under Contacted: what it is made of (11 Oct 2026). */
#leads-tabs .tab-pill .tab-sub { order: 3; font-size: 12px; font-weight: 500; opacity: .85; line-height: 1.3; }
#leads-tabs .tab-pill:focus-visible { outline: 3px solid var(--progress-blue); outline-offset: -3px; }
:root[data-theme="dark"] #leads-tabs .tab-pill { background: #1b2640; color: #cfe0f5; }
:root[data-theme="dark"] #leads-tabs .tab-pill:nth-child(2) { background: #22304d; }
:root[data-theme="dark"] #leads-tabs .tab-pill:nth-child(3) { background: #1f2c47; }
:root[data-theme="dark"] #leads-tabs .tab-pill.current { background: var(--vcxo-blue); color: #ffffff; }

/* --------------------------------------------------- leads: card rows */
#leads-table { table-layout: fixed; border-collapse: separate; border-spacing: 0 10px; }
.table-scroll:has(> #leads-table),
.table-scroll:has(#leads-table) { background: transparent; border: 0; box-shadow: none; }
#leads-table thead th { background: transparent; border: 0; padding-block: 4px; }
#leads-table tbody td {
  vertical-align: middle;
  background: var(--card);
  border-block: 1px solid var(--line);
  padding-block: 16px;
}
#leads-table tbody td:first-child {
  border-inline-start: 1px solid var(--line);
  border-start-start-radius: var(--radius-lg);
  border-end-start-radius: var(--radius-lg);
}
#leads-table tbody td:last-child {
  border-inline-end: 1px solid var(--line);
  border-start-end-radius: var(--radius-lg);
  border-end-end-radius: var(--radius-lg);
}
#leads-table tbody tr.lead-row:hover td { background: var(--row-hover); border-color: var(--field-line); }
#leads-table th.bulk-th, #leads-table td.bulk-td { inline-size: 44px; width: 44px; }
#leads-table .lead-name    { width: 27%; }
#leads-table .lead-company { width: 18%; text-transform: none; }
#leads-table .lead-line    { width: 13%; white-space: normal; }
#leads-table .lead-contact { width: 20%; }
#leads-table td:nth-child(6), #leads-table th:nth-child(6) { width: 11%; }
/* The status pill: "Meeting requested" (20 Oct 2026) is the longest - never cut it. */
#leads-table th:nth-child(6), #leads-table td:nth-child(6) { width: 190px; }  /* fixed layout: a width, not a min-width */
#leads-table .lead-act     { width: 13%; }
#leads-table td:nth-child(9), #leads-table th:nth-child(9) { width: auto; }

.lead-who { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.lead-avatar {
  flex: none;
  display: grid; place-items: center;
  inline-size: 40px; block-size: 40px;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--vcxo-blue);
  font-size: 14px; font-weight: 600;
}
:root[data-theme="dark"] .lead-avatar { color: #cfe0f5; }
.lead-who-text { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.lead-who-name { font-size: 15px; font-weight: 600; color: var(--ink); text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; }
.lead-who-sub { font-size: 12px; font-weight: 400; color: var(--muted); text-transform: none; }
.lead-company-name { display: block; font-size: 14px; color: var(--ink); text-transform: capitalize; }
.lead-site { display: block; font-size: 12px; color: var(--blue-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-via { display: block; margin-block-start: 4px; font-size: 11px; color: var(--muted); }
#leads-table .lead-act { text-align: end; }
#leads-table .lead-act button.primary.small,
#leads-table .lead-act .primary {
  display: inline-block;
  inline-size: auto;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  white-space: nowrap;
}

/* --------------------------------------------- request a meeting */
.mr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
#view-meeting h2 { color: var(--vcxo-blue); }

/* Numbered sections, counted in the order they appear. */
#meeting-form { counter-reset: mr-section; }
#view-meeting .card > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--ink);
}
#view-meeting .card > h3::before {
  counter-increment: mr-section;
  content: counter(mr-section);
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: var(--vcxo-blue);
  color: #ffffff;
  font: 600 14px var(--font);
}
#view-meeting .card { border-radius: var(--radius-lg); padding: 28px; }

/* Toggle rows standing in for short selects. */
.seg { display: inline-flex; gap: 2px; padding: 4px; background: #e8ecf2; border-radius: 12px; }
:root[data-theme="dark"] .seg { background: var(--surface-2); }
.seg-btn {
  padding: 8px 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 14px var(--font);
  cursor: pointer;
}
.seg-btn[aria-pressed="true"] { background: var(--card); color: var(--vcxo-blue); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg-btn[aria-pressed="true"] { color: var(--ink); }
.seg-btn:focus-visible { outline: 2px solid var(--vcxo-blue); outline-offset: 2px; }

/* The summary card: VCxO Blue, thin diagonals, sticky beside the form. */
.mr-summary {
  position: sticky;
  inset-block-start: 96px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--vcxo-blue);
  color: #ffffff;
}
.mr-summary::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -40px;
  inline-size: 200px;
  background: repeating-linear-gradient(112deg,
    transparent 0 58px, var(--progress-blue) 58px 60px, transparent 60px 90px);
  pointer-events: none;
}
.mr-summary > * { position: relative; margin: 0; }
.mr-summary-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #eaf3fa; }
.mr-summary-title { font: 600 22px/1.25 var(--font-display); overflow-wrap: anywhere; }
.mr-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(234, 243, 250, 0.25);
}
.mr-summary-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mr-summary-list dt { color: #eaf3fa; }
.mr-summary-list dd { margin: 0; font-weight: 600; text-align: end; }
.mr-ready { display: flex; flex-direction: column; gap: 8px; }
.mr-ready-row { display: flex; justify-content: space-between; font-size: 13px; color: #eaf3fa; }
.mr-ready-bar { block-size: 6px; border-radius: 999px; background: rgba(234, 243, 250, 0.2); overflow: hidden; }
.mr-ready-bar span { display: block; block-size: 100%; inline-size: 0; border-radius: 999px; background: #ffffff; transition: inline-size .2s ease; }
.mr-ready-note { margin: 0; font-size: 13px; color: #eaf3fa; }
.mr-send {
  block-size: 48px;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  color: #1e4e8c;
  font: 600 16px var(--font);
  cursor: pointer;
}
.mr-send:hover:not(:disabled) { background: #eaf3fa; }
.mr-send:disabled { opacity: .6; cursor: not-allowed; }
.mr-send:focus-visible, .mr-restart:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.mr-foot { font-size: 13px; color: #eaf3fa; }
.mr-foot:empty { display: none; }
.mr-restart {
  block-size: 40px;
  border: 1px solid rgba(234, 243, 250, 0.4);
  border-radius: var(--radius);
  background: transparent;
  color: #ffffff;
  font: 600 14px var(--font);
  cursor: pointer;
}
.mr-restart:hover { background: rgba(255, 255, 255, 0.08); }
@media (prefers-reduced-motion: reduce) { .mr-ready-bar span { transition: none; } }

@media (max-width: 1100px) {
  .mr-layout { grid-template-columns: minmax(0, 1fr); }
  .mr-summary { position: static; order: 2; }
}

.client-card-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.client-card-value { flex: 1; }
.client-card-more { font-size: 12px; color: var(--muted); }

/* The title stroke sits just past the words, not at the far edge. */
.main .rowhead h2,
.main .toolbar h2,
.main > section > h2 { display: inline-block; }
.eyebrow.dash-eyebrow { display: block; }

/* ======================================================================
   Round 4 (25 Sept 2026): New RFP.
   ====================================================================== */

#view-form h2#form-title { color: var(--vcxo-blue); }

/* Two columns: the sections on the left, the summary on the right. The
   stepper runs across both. Everything else in the form stays left. */
#request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
}
#request-form > * { grid-column: 1; min-inline-size: 0; }
#request-form > .stepper { grid-column: 1 / -1; }
#request-form > .rfp-summary {
  grid-column: 2;
  grid-row: 2 / span 40;
  align-self: start;
  position: sticky;
  inset-block-start: 190px;
}

/* ---------------------------------------------------- the step strip */
.stepper { background: var(--bg); padding-block-end: var(--space-4); }
.stepper-list {
  gap: 0;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.stepper-item { position: relative; }
.stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 50%;
  inline-size: 12px;
  block-size: 12px;
  border-block-start: 2px solid var(--field-line);
  border-inline-end: 2px solid var(--field-line);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.stepper-item .step,
.step {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px 30px 6px 6px;
  border-radius: var(--radius);
}
.step:hover { background: var(--surface-2); transform: none; }
.step-no {
  inline-size: 40px;
  block-size: 40px;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface-2);
  border-color: var(--line);
}
.step.done .step-no {
  background: var(--status-valid-bg);
  border-color: var(--status-valid-bg);
  color: var(--status-valid);
  font-size: 0;
}
.step.done .step-no::after { content: "\2713"; font-size: 16px; }
.step.current,
.stepper-item .step.current {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.step.current .step-no {
  background: var(--vcxo-blue);
  border-color: var(--vcxo-blue);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(30, 78, 140, 0.14);
}
.step.current .step-name,
.step.current .step-hint { color: var(--vcxo-blue); }
.step.current .step-hint { color: var(--muted); }
.step-name { font-weight: 600; }
.step-gap { background: var(--status-due-soon-bg); color: var(--status-due-soon); }
.step-gap::after { content: " left"; font-weight: 600; }
.stepper-progress { margin-block-start: -3px; margin-inline: 20px; position: relative; }
:root[data-theme="dark"] .step.current .step-name { color: #8ab8ee; }

/* Missing and required, in the section on screen. */
#request-form .is-missing {
  border-color: var(--status-due-soon) !important;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.10);
}

#request-form .card { border-radius: var(--radius-lg); }
.stepnav { gap: var(--space-4); }
#step-next:not(.locked) { background: var(--vcxo-blue); }

/* ------------------------------------------------ the summary card */
.rfp-summary {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  margin-block-end: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--vcxo-blue);
  color: #ffffff;
}
.rfp-summary::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -40px;
  inline-size: 200px;
  background: repeating-linear-gradient(112deg,
    transparent 0 58px, var(--progress-blue) 58px 60px, transparent 60px 90px);
  pointer-events: none;
}
.rfp-summary > * { position: relative; margin: 0; }
.rfp-summary-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #eaf3fa; margin: 0; }
.rfp-summary-title { font: 600 24px/1.2 var(--font-display); overflow-wrap: anywhere; }
.rfp-summary-list {
  display: flex; flex-direction: column; gap: 10px;
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(234, 243, 250, 0.25);
}
.rfp-summary-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rfp-summary-list dt { color: #eaf3fa; }
.rfp-summary-list dd { margin: 0; font-weight: 600; text-align: end; }
.rfp-checks {
  display: flex; flex-direction: column; gap: 10px;
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(234, 243, 250, 0.25);
}
.rfp-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rfp-check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rfp-check-mark {
  flex: none;
  display: grid; place-items: center;
  inline-size: 22px; block-size: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e4e8c;
  font-size: 12px; font-weight: 700;
}
.rfp-check.owing .rfp-check-mark { background: #fdf0e6; color: #c2410c; }
.rfp-check-name { flex: 1; }
.rfp-check-note { font-size: 13px; color: #eaf3fa; }
.rfp-submit {
  block-size: 48px;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  color: #1e4e8c;
  font: 600 16px var(--font);
  cursor: pointer;
}
.rfp-submit:hover:not(:disabled) { background: #eaf3fa; }
.rfp-submit:disabled { background: rgba(255, 255, 255, 0.55); cursor: not-allowed; }
.rfp-submit:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.rfp-saved { font-size: 13px; color: #eaf3fa; text-align: center; }
.rfp-saved:empty { display: none; }

@media (max-width: 1100px) {
  #request-form { grid-template-columns: minmax(0, 1fr); }
  #request-form > .rfp-summary { grid-column: 1; grid-row: auto; position: relative; inset-block-start: auto; }
}

/* Dark mode status text (25 Sept 2026): the light values fell below 4.5:1 on
   their dark grounds. Each of these clears 7:1 on its own ground and on a card. */
:root[data-theme="dark"] {
  --status-expired:  #ff9d94;
  --status-due-soon: #f5a86b;
  --status-upcoming: #e8c35a;
  --status-valid:    #7fd1c2;
  --status-missing:  #b3bccb;
}

/* Montserrat, self-hosted (25 Sept 2026): the guideline fallback for headings
   where Aptos is not installed. Served from this site because the CSP is
   font-src 'self'. One variable file, latin, weights 500 to 600. */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

/* ======================================================================
   Round 5 (25 Sept 2026): Meetings week view, client page, approval,
   search.
   ====================================================================== */

/* ------------------------------------------------ meetings: the week */
.week-nav {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; background: var(--card);
  border: 1px solid var(--field-line); border-radius: var(--radius);
}
.week-nav-btn {
  inline-size: 32px; block-size: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font-size: 18px; cursor: pointer;
}
.week-nav-btn:hover { background: var(--surface-2); }
.week-nav-btn:focus-visible { outline: 2px solid var(--vcxo-blue); outline-offset: 1px; }
.week-nav-label { padding: 0 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }

.meetings-week {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.week-cal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.week-head { display: grid; border-block-end: 1px solid var(--line); }
.week-day { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-inline-start: 1px solid var(--line-soft); }
.week-day.today { background: var(--cloud); }
.week-day-name { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.week-day-num { font: 600 22px var(--font-display); color: var(--ink); }
.week-day.today .week-day-num { color: var(--vcxo-blue); }
:root[data-theme="dark"] .week-day.today .week-day-num { color: #8ab8ee; }
.week-body { position: relative; display: grid; }
.week-hour { grid-column: 1; padding: 6px 10px 0 0; text-align: end; font-size: 12px; color: var(--muted); border-block-start: 1px solid var(--line-soft); }
.week-slot { border-block-start: 1px solid var(--line-soft); border-inline-start: 1px solid var(--line-soft); }
.week-event {
  align-self: start;
  z-index: 1;
  margin: 3px 6px;
  min-block-size: 78px;        /* the 84px hour row, less the 3px margins - and */
  block-size: auto;            /* it grows with its text: never cut (21 Oct 2026) */
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 5px 10px;
  line-height: 1.25;           /* three lines fit inside the box (21 Oct 2026) */
  border: 0; border-radius: var(--radius);
  text-align: start; font: inherit; cursor: pointer; overflow: hidden;
  background: var(--vcxo-blue); color: #ffffff;
}
.week-event.inperson { background: var(--cloud); color: var(--vcxo-blue); }
.week-event.past { background: var(--surface-2); color: var(--muted); }
.week-event.dimmed { opacity: .25; }
.week-event:hover { filter: brightness(1.06); }
.week-event:focus-visible { outline: 2px solid var(--progress-blue); outline-offset: 2px; }
:root[data-theme="dark"] .week-event.inperson { color: #cfe0f5; }
.week-event-time { font-size: 11.5px; font-weight: 600; opacity: .9; }
/* Two lines before it is cut (29 Oct 2026). */
.week-event-client { font-size: 14px; font-weight: 600; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.week-event-meta { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-empty { margin: 0; padding: 24px; color: var(--muted); font-size: 14px; }

.week-side { display: flex; flex-direction: column; gap: 16px; }
.week-needs {
  position: relative; overflow: hidden;
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--vcxo-blue); color: #ffffff;
}
.week-needs::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: -30px; inline-size: 160px;
  background: repeating-linear-gradient(112deg, transparent 0 50px, var(--progress-blue) 50px 52px, transparent 52px 80px);
  pointer-events: none;
}
.week-needs > * { position: relative; z-index: 1; margin: 0; }
.week-needs-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #eaf3fa; margin-block-end: 6px; }
.week-needs-text { font: 600 19px/1.3 var(--font-display); }
.week-side-card {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.week-side-card .meeting-row { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; }
.week-side-card .meeting-row > * { inline-size: auto; }
.week-next p { margin: 0 0 4px; }
.week-next-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.week-next-client { font-size: 15px; font-weight: 600; }
.week-next-meta { font-size: 13px; color: var(--muted); }
.week-next-join {
  display: inline-block; margin-block-start: 8px; padding: 9px 16px;
  border-radius: var(--radius); background: var(--progress-blue); color: #ffffff;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.week-next-join:hover { background: var(--vcxo-blue); color: #ffffff; }

/* The calendar keeps the full width on a laptop (29 Oct 2026): the side
   panel goes under it below 1600px, above it on a narrow screen. */
@media (max-width: 1599px) {
  .meetings-week { grid-template-columns: minmax(0, 1fr); }
  .week-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 1100px) {
  .week-side { order: -1; }
}

/* ------------------------------------------------------- client page */
.client-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 28px 32px;
}
.client-hero::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: 300px;
  background: var(--cloud);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
:root[data-theme="dark"] .client-hero::after { opacity: .5; }
.client-hero > * { position: relative; z-index: 1; grid-column: 2; }
.client-hero-badge {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: grid; place-items: center;
  inline-size: 72px; block-size: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--vcxo-blue), var(--progress-blue));
  color: #ffffff;
  font: 600 26px var(--font-display);
}
.client-hero #client-title { font-size: 32px; color: var(--vcxo-blue); margin-block: 2px 12px; }
:root[data-theme="dark"] .client-hero #client-title { color: var(--ink); }
.client-hero .approve-facts { margin-block-end: 12px; }

.client-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-block-end: var(--space-5);
}
.client-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.client-stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.client-stat-value { font: 600 26px var(--font-display); color: var(--ink); }
.client-stat.tone-blue .client-stat-value { color: var(--vcxo-blue); }
.client-stat.tone-green .client-stat-value { color: var(--status-valid); }
.client-stat.tone-amber .client-stat-value { color: var(--status-due-soon); }
:root[data-theme="dark"] .client-stat.tone-blue .client-stat-value { color: #8ab8ee; }

.client-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}
.client-main, .client-side { min-inline-size: 0; }
.client-main > .card, .client-side > .card { margin-block-end: var(--space-5); }
.client-proposal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.client-proposal .journey-track { flex: 1 0 220px; max-inline-size: 320px; }

.client-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.client-timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  inset-block: 6px;
  inline-size: 2px;
  background: var(--line);
}
.client-event { position: relative; display: flex; flex-direction: column; gap: 2px; }
.client-event::before {
  content: "";
  position: absolute;
  inset-inline-start: -21px;
  inset-block-start: 4px;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 50%;
  background: var(--field-line);
  box-shadow: 0 0 0 3px var(--card);
}
.client-event.tone-blue::before { background: var(--vcxo-blue); }
.client-event.tone-mid::before { background: var(--progress-blue); }
.client-event.tone-green::before { background: var(--status-valid); }
.client-event-when { font-size: 12px; color: var(--muted); }
.client-event-what { font-size: 14px; font-weight: 600; color: var(--ink); }
.client-event-who { font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) {
  .client-cols { grid-template-columns: minmax(0, 1fr); }
  .client-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------- approval */
.approve-head { margin-block-end: var(--space-5); }
.approve-head h2 { color: var(--vcxo-blue); margin: 2px 0 6px; }
:root[data-theme="dark"] .approve-head h2 { color: var(--ink); }
.approve-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
.approve-main { min-inline-size: 0; }
.approve-main > .card { margin-block-end: var(--space-5); }
.approve-decision {
  position: sticky;
  inset-block-start: 96px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--vcxo-blue);
  color: #ffffff;
}
.approve-decision::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -40px;
  inline-size: 200px;
  background: repeating-linear-gradient(112deg,
    transparent 0 58px, var(--progress-blue) 58px 60px, transparent 60px 90px);
  pointer-events: none;
}
.approve-decision > * { position: relative; margin: 0; }
.approve-decision-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #eaf3fa; margin: 0 0 6px; }
.approve-total { display: flex; flex-direction: column; gap: 2px; }
.approve-total-label { font-size: 13px; color: #eaf3fa; }
.approve-total-value { font: 600 32px/1.15 var(--font-display); }
#approve-seats-card { padding-block-start: 16px; border-block-start: 1px solid rgba(234, 243, 250, 0.25); }
.approve-seats-hint { font-size: 13px; color: #eaf3fa; margin: 0 0 8px; }
/* Delegated (27 Oct 2026), above the sign-offs. */
.approve-delegated { padding-block: 12px; border-block-start: 1px solid rgba(234, 243, 250, 0.25); }
.approve-delegated p { font-size: 13px; color: #eaf3fa; margin: 0 0 4px; }
.approve-delegated .approve-delegated-who { font-weight: 600; margin-block-start: 6px; }
.approve-decision .approve-seats { margin: 0; }
.approve-decision .approve-seat { border-color: rgba(234, 243, 250, 0.2); color: #ffffff; }
.approve-decision .approve-seat-who,
.approve-decision .approve-seat.waiting .approve-seat-who { color: #ffffff; }
.approve-decision .approve-seat .hint { color: #eaf3fa; }
.approve-decision .approve-seat-mark {
  display: inline-grid; place-items: center;
  inline-size: 22px; block-size: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25); color: #ffffff;
}
.approve-decision .approve-seat.signed .approve-seat-mark { background: #ffffff; color: #1e4e8c; }
.approve-yes {
  block-size: 50px;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  color: #1e4e8c;
  font: 600 16px var(--font);
  cursor: pointer;
}
.approve-yes:hover:not(:disabled) { background: #eaf3fa; }
.approve-yes:disabled { background: rgba(255, 255, 255, 0.55); cursor: not-allowed; }
.approve-foot { font-size: 13px; color: #eaf3fa; }
.approve-foot:empty { display: none; }
.approve-back {
  block-size: 42px;
  border: 1px solid rgba(234, 243, 250, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: #ffffff;
  font: 600 14px var(--font);
  cursor: pointer;
}
.approve-back:hover { background: rgba(255, 255, 255, 0.08); }
.approve-open {
  border: 0; background: transparent; color: #eaf3fa;
  font: 600 13px var(--font); text-decoration: underline; cursor: pointer;
}
.approve-yes:focus-visible, .approve-back:focus-visible, .approve-open:focus-visible {
  outline: 2px solid #ffffff; outline-offset: 2px;
}
@media (max-width: 1100px) {
  .approve-layout { grid-template-columns: minmax(0, 1fr); }
  .approve-decision { position: relative; inset-block-start: auto; }
}

/* ------------------------------------------------ search anywhere */
.find-open {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 10px;
  block-size: 40px;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf3fa;
  font: 14px var(--font);
  cursor: pointer;
}
.find-open:hover { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.find-open:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.find-open + .who { margin-inline-start: 12px; }
.find-kbd {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font: 600 12px var(--font);
}
@media (max-width: 900px) { .find-open span, .find-open .find-kbd { display: none; } }

.find-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
  background: rgba(33, 49, 63, 0.45);
}
.find-dialog {
  inline-size: min(680px, 100%);
  max-block-size: 76vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 31, 60, 0.3);
  overflow: hidden;
}
.find-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-block-end: 1px solid var(--line);
  color: var(--vcxo-blue);
}
:root[data-theme="dark"] .find-bar { color: #8ab8ee; }
.find-bar input[type="search"] {
  flex: 1;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  background: transparent !important;
  padding: 4px 0;
  font: 18px var(--font);
  color: var(--ink);
}
.find-esc { background: var(--surface-2); color: var(--muted); }
.find-results { overflow-y: auto; padding: 8px 10px 12px; }
.find-group { margin: 10px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.find-item {
  inline-size: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit; text-align: start; cursor: pointer;
}
.find-item[aria-selected="true"] { background: var(--cloud); }
.find-badge {
  flex: none;
  display: grid; place-items: center;
  inline-size: 34px; block-size: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--vcxo-blue);
  font-size: 12px; font-weight: 700;
}
.find-item.kind-client .find-badge { background: var(--vcxo-blue); color: #ffffff; }
.find-item.kind-rfp .find-badge { background: var(--cloud); }
:root[data-theme="dark"] .find-badge { color: #cfe0f5; }
.find-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
.find-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-tag { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.find-empty { margin: 16px 12px; color: var(--muted); }
.find-foot {
  display: flex; gap: 18px;
  padding: 12px 20px;
  background: var(--surface-2);
  border-block-start: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.find-foot b { color: var(--ink); }

/* ======================================================================
   Fixes, 25 Sept 2026 afternoon.
   ====================================================================== */

/* Sign in: an older rule centres the page's children, which left the blue
   side only as wide as its words on a wide screen. Both columns stretch. */
body.login-split { justify-items: stretch; place-items: stretch; }
body.login-split .login-hero { justify-self: stretch; inline-size: auto; }
body.login-split .login-card { justify-self: center; align-self: center; }

/* Leads: a note belongs to the lead above it. The two rows read as one card:
   the lead's lower corners square off, and the note row is pulled up into
   the gap so the cards touch. */
#leads-table tbody tr.lead-row:has(+ tr.lead-note-row) td {
  border-block-end-color: transparent;
}
#leads-table tbody tr.lead-row:has(+ tr.lead-note-row) td:first-child { border-end-start-radius: 0; }
#leads-table tbody tr.lead-row:has(+ tr.lead-note-row) td:last-child { border-end-end-radius: 0; }
#leads-table tbody tr.lead-note-row > td {
  position: relative;
  inset-block-start: -11px;
  padding: 0 24px 16px 74px;
  background: var(--card);
  border: 1px solid var(--line);
  border-block-start: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
#leads-table tbody tr.lead-note-row:hover > td { background: var(--card); }
/* Between two people's notes on one lead (6 Oct 2026). */
#leads-table .lead-note-split { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
/* The ad form's answers on a lead (15 Oct 2026), one a line. */
#leads-table .lead-form-answer { display: block; }
#leads-table .lead-form-answer b { font-weight: 600; }
#leads-table .lead-note-card {
  margin: 0;
  border-radius: var(--radius);
  background: var(--cloud);
}

/* Leads: the row's two actions, stacked and the same width. */
#leads-table .lead-act > * {
  display: block;
  inline-size: 100%;
  max-inline-size: 170px;
  margin: 0 0 6px auto;
  box-sizing: border-box;
  text-align: center;
}
#leads-table .lead-act > *:last-child { margin-block-end: 0; }
#leads-table .lead-act .lead-note-add {
  padding: 7px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: 600 13px var(--font);
}
#leads-table .lead-act .lead-note-add:hover { border-color: var(--vcxo-blue); color: var(--vcxo-blue); }
#leads-table .lead-act button.primary.small,
#leads-table .lead-act .primary,
#leads-table .lead-act .lead-note-add,
#leads-table .lead-act button { display: block; inline-size: 150px; max-inline-size: 100%; margin: 0 0 6px auto; }
#leads-table .lead-act > :last-child { margin-block-end: 0; }

/* VCHRO dashboard (25 Sept 2026): service names are longer than line codes. */
#dash-byline:has(.dash-service-label) .dash-byline-row { grid-template-columns: 220px 1fr auto; }
@media (max-width: 720px) {
  #dash-byline:has(.dash-service-label) .dash-byline-row { grid-template-columns: 130px 1fr auto; }
}

/* Dashboard: performance by line of business (27 Sept 2026 redesign).
   Full width under the two columns; scorecards, then the three charts in
   one row; approvals, meetings and the client form in a row of three. */
.dash-report {
  margin-block-start: var(--space-5);
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.dash-report[hidden] { display: none; }
.rep-head { display: flex; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.rep-head-text { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.rep-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vcxo-blue); }
:root[data-theme="dark"] .rep-eyebrow { color: var(--ink); }
.dash-report .dash-block-title { margin: 0; font-size: 24px; }
.rep-lede { margin: 0; font-size: 13px; color: var(--muted); }
.rep-head .seg { margin-inline-start: auto; }

.rep-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; }
.rep-cards[hidden] { display: none; }
.rep-score {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; gap: 18px; min-inline-size: 0;
}
.rep-score-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rep-score-swatch { inline-size: 12px; block-size: 12px; border-radius: 4px; flex: none; }
.rep-score-name { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.rep-score-code { padding: 2px 8px; border-radius: 999px; background: var(--cloud); color: var(--vcxo-blue); font-size: 12px; font-weight: 600; }
:root[data-theme="dark"] .rep-score-code { background: var(--line); color: var(--ink); }
.rep-score-win { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.rep-score-win strong { color: var(--ink); }
.rep-score-steps { display: grid; gap: 10px; }
.rep-step { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.rep-step-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.rep-step-n { font-family: 'Aptos Display', Aptos, Montserrat, Arial, sans-serif; font-size: 26px; line-height: 1; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rep-step-track { display: block; block-size: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.rep-step-bar { display: block; block-size: 6px; border-radius: 999px; min-inline-size: 0; }
.rep-step-note { font-size: 12px; line-height: 1.35; color: var(--muted); }

.rep-quiet { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rep-quiet[hidden] { display: none; }
.rep-quiet-chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }

.dash-report .rep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dash-report .rep-grid[hidden] { display: none; }
.dash-report .rep-card { border-color: var(--line); border-radius: 12px; padding: 20px 22px; }
.dash-report #dash-report-table[hidden] { display: none; }
.dash-report .rep-table-wrap { margin-top: 0; border-color: var(--line); border-radius: 12px; }

.dash-bottom {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5); align-items: start; margin-block-start: var(--space-5);
}
.dash-bottom > .card { margin: 0; inline-size: auto; }
#view-dashboard > .dash-bottom + .card { margin-block-start: var(--space-5); }

@media (max-width: 1100px) {
  .dash-report .rep-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
  .dash-bottom { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
}
@media (max-width: 600px) {
  .dash-report { padding: 18px; }
  .rep-score { padding: 16px; }
  .rep-score-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 14px; }
}

/* Leads pipeline gone (27 Sept 2026): with nothing showing in the main
   column, "Needs you today" takes the full width. A line dashboard still
   has its by-service bars there, so it keeps two columns. */
.dash-layout:not(:has(.dash-main > :not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.dash-layout:not(:has(.dash-main > :not([hidden]))) > .dash-main { display: none; }

/* Approval screen: delete, super admins only (29 Sept 2026). */
.approve-delete {
  border: 0; background: transparent; color: #fecaca;
  font: 600 13px var(--font); text-decoration: underline; cursor: pointer;
}
.approve-delete:hover { color: #ffffff; }
.approve-delete:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* Leads: the line chip as a picker, for Abdallah and Farida (29 Sept 2026).
   Same colours as the plain chip; the pill's arrow says it opens. */
.statuswrap.line-pick { background-color: var(--cloud); color: var(--vcxo-blue); font-size: 12px; }
:root[data-theme="dark"] .statuswrap.line-pick { background-color: #17273f; color: #a9c3f0; }

/* All RFPs: the filter row under the tabs (29 Sept 2026). */
.list-narrow {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  margin-block: 12px 4px;
}
.list-narrow-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.list-narrow-field input, .list-narrow-field select {
  min-block-size: 36px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 500;
}
.list-narrow-field select { min-inline-size: 140px; }
#list-narrow-clear { align-self: flex-end; min-block-size: 36px; }
@media (max-width: 600px) {
  .list-narrow-field { flex: 1 1 calc(50% - 12px); }
  .list-narrow-field input, .list-narrow-field select { inline-size: 100%; min-inline-size: 0; }
}

/* Leads, opened from the Proposals card: the proposals with no lead. */
.leads-direct-note {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-block: 10px; padding: 10px 14px; border-radius: 12px;
  background: var(--cloud); color: var(--vcxo-blue); font-size: 13px; font-weight: 600;
}
.leads-direct-note[hidden] { display: none; }
:root[data-theme="dark"] .leads-direct-note { background: #17273f; color: #a9c3f0; }
