/* ===========================================================================
   Career Choice — App overlay (signup, intake, dashboards)
   Loads AFTER ../styles.css. Only adds patterns specific to the
   authenticated app surface. Everything below the cut here can be deleted
   without touching the public marketing site.
   =========================================================================== */

/* -------------------------------------------------------------------------
   Subdomain identity — visual cues that you're on app.career-choice.ca and
   not the marketing site. Anchor: <header class="site-chrome is-auth-context">
   (already present on every app page). Uses :has() so we don't have to
   modify <body> on each page.
   ------------------------------------------------------------------------- */

/* Body gets a soft brand-tinted background on app surfaces — calmer than the
   crisp white of the marketing site, signals "workspace" without shouting. */
body:has(header.site-chrome.is-auth-context) {
  background: linear-gradient(180deg, var(--soft) 0px, var(--paper) 320px) no-repeat;
  background-color: var(--paper);
}

/* Header gets an accent strip at the top — small visual moor that says
   "this is the app, not the marketing site". Brand-navy → blue gradient
   mirrors the logo's two-color C's. */
header.site-chrome.is-auth-context {
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--brand-soft);
  box-shadow: 0 1px 0 rgba(45, 36, 98, 0.04);
}
header.site-chrome.is-auth-context::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--blue) 60%, var(--accent) 100%);
}

/* The little tagline under the brand mark ("Your account", "Client Portal",
   "Recruiter workspace") becomes the surface identifier — bolder, branded. */
header.site-chrome.is-auth-context .site-brand-logo .brand-name-block span {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 1.4px;
  opacity: 0.9;
}

/* Recruiter workspace gets an additional internal-only treatment — slightly
   different accent so internal staff recognize they're on the recruiter
   surface vs. a candidate/client view. */
header.site-chrome.is-auth-context .site-brand-logo
  .brand-name-block span:not(:empty):is(
    [data-context="recruiter"]
  ) {
  color: #8b6a14;
}

/* For pages that already wrap content in .auth-page-shell (sign-in / sign-up
   pages) the tinted bg from above duplicates with the page's own gradient.
   Reset the body to neutral so those pages remain crisp. */
body:has(.auth-page-shell) {
  background: transparent;
  background-color: var(--paper);
}

/* -------------------------------------------------------------------------
   Status pills (semantic colors for role/match status)
   ------------------------------------------------------------------------- */
.label-pill.status-brief         { background: var(--status-brief-bg);        color: var(--status-brief-fg); }
.label-pill.status-sourcing      { background: var(--status-sourcing-bg);     color: var(--status-sourcing-fg); }
.label-pill.status-shortlisted   { background: var(--status-shortlisted-bg);  color: var(--status-shortlisted-fg); }
.label-pill.status-interviews    { background: var(--status-interviews-bg);   color: var(--status-interviews-fg); }
.label-pill.status-offer         { background: var(--status-offer-bg);        color: var(--status-offer-fg); }
.label-pill.status-closed        { background: var(--status-closed-bg);       color: var(--status-closed-fg); }
.label-pill.status-paused        { background: var(--status-paused-bg);       color: var(--status-paused-fg); }

/* Stage-indicator icons (used inline in candidate-in-motion timeline etc.) */
.is-stage-complete    { color: var(--status-offer-fg); }
.is-stage-current     { color: var(--blue); }
.is-stage-upcoming    { color: var(--ink-dim); }

/* -------------------------------------------------------------------------
   Multi-step progress
   ------------------------------------------------------------------------- */
.wizard-step-indicator {
  display: flex; gap: 0; align-items: center;
  max-width: 760px; margin: 0 auto 36px;
  counter-reset: stepnum;
}
.wizard-step-indicator .wizard-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; gap: 8px;
}
.wizard-step-indicator .wizard-step:not(:last-child)::after {
  content: ""; position: absolute;
  top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px);
  height: 2px; background: var(--line);
}
.wizard-step-indicator .wizard-step .brand-name-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  color: var(--ink-soft); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
  position: relative; z-index: 1;
  counter-increment: stepnum;
}
.wizard-step-indicator .wizard-step .brand-name-dot::before { content: counter(stepnum); }
.wizard-step-indicator .wizard-step .field-label-text {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.wizard-step-indicator .wizard-step.is-current .brand-name-dot { background: var(--brand); color: #fff; border-color: var(--brand); }
.wizard-step-indicator .wizard-step.is-current .field-label-text { color: var(--brand); }
.wizard-step-indicator .wizard-step.is-done .brand-name-dot { background: var(--blue); color: #fff; border-color: var(--blue); }
.wizard-step-indicator .wizard-step.is-done .brand-name-dot::before { content: "✓"; font-size: 14px; }
.wizard-step-indicator .wizard-step.is-done::after { background: var(--blue); }
.wizard-step-indicator .wizard-step.is-done .field-label-text { color: var(--ink); }

/* -------------------------------------------------------------------------
   Form-section card (used inside intake steps)
   ------------------------------------------------------------------------- */
.form-fieldset-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-fieldset-section h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 22px; color: var(--brand); letter-spacing: -0.015em; margin-bottom: 6px; }
.form-fieldset-section .form-section-help { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.form-fieldset-section + .form-fieldset-section { margin-top: 16px; }

.form-field-grid { display: grid; gap: 16px; }
.form-field-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-field-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-field-grid > div > label:first-child { margin-top: 0; }

.field-help-text { font-size: 12.5px; color: var(--ink-dim); margin-top: 6px; line-height: 1.5; }
.is-required-field::after { content: " *"; color: var(--blue); }
.is-optional-field { font-size: 11px; font-weight: 500; color: var(--ink-soft); margin-left: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Toggle / boolean control */
.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line-strong);
  background: #fff; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.toggle input { width: auto; margin: 0; }
.toggle:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* Multi-select chip picker */
.tag-chip-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.tag-chip-picker .tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: all 0.15s ease;
}
.tag-chip-picker .tag-chip input { display: none; }
.tag-chip-picker .tag-chip:hover { border-color: var(--accent); }
.tag-chip-picker .tag-chip:has(input:checked),
.tag-chip-picker .tag-chip.is-selected {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.tag-chip-picker .tag-chip.is-blue-variant:has(input:checked),
.tag-chip-picker .tag-chip.is-blue-variant.is-selected {
  background: var(--blue); border-color: var(--blue);
}

/* File-drop */
.file-upload-zone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  padding: 32px; text-align: center; background: var(--soft);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.file-upload-zone:hover { border-color: var(--blue); background: var(--blue-soft); }
.file-upload-zone .icon-shape {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--blue);
  font-size: 22px; display: grid; place-items: center;
  margin: 0 auto 12px; box-shadow: var(--shadow);
}
.file-upload-zone strong { color: var(--brand); display: block; font-size: 15px; }
.file-upload-zone small { color: var(--ink-soft); font-size: 12.5px; display: block; margin-top: 4px; }

/* Form footer (multi-step nav) */
.form-action-bar {
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 24px;
}
.form-action-bar .meta-text-label { font-size: 12.5px; color: var(--ink-soft); }
.form-action-bar .meta-text-label .is-saving-state { color: var(--blue); font-weight: 600; }
.form-action-bar .action-button-row { display: flex; gap: 10px; }

/* -------------------------------------------------------------------------
   Sign-up type-selection
   ------------------------------------------------------------------------- */
.signup-path-chooser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 32px 0;
}
.signup-path-chooser a {
  display: block; padding: 36px;
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  text-decoration: none; color: inherit;
  transition: all 0.2s ease;
}
.signup-path-chooser a:hover {
  border-color: var(--brand); transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.signup-path-chooser a.audience-fork-look:hover { border-color: var(--blue); }
.signup-path-chooser .audience-fork-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px;
}
.signup-path-chooser h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 30px; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--brand); margin-bottom: 12px;
}
.signup-path-chooser h2 em { font-style: italic; }
.signup-path-chooser a.audience-fork-hire h2 em { color: var(--blue); }
.signup-path-chooser a.audience-fork-look h2 em { color: var(--brand); }
.signup-path-chooser p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; }
.signup-path-chooser .audience-fork-cta {
  font-weight: 600; font-size: 13.5px;
  color: var(--brand); display: inline-flex; align-items: center; gap: 6px;
}
.signup-path-chooser a.audience-fork-look .audience-fork-cta { color: var(--blue); }

/* -------------------------------------------------------------------------
   App shell (sidebar + main, used by dashboards)
   ------------------------------------------------------------------------- */
.dashboard-layout {
  display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 200px);
  gap: 0; background: var(--soft);
}
.dashboard-sidebar {
  background: #fff; border-right: 1px solid var(--line);
  padding: 24px 20px;
  position: sticky; top: 72px; align-self: start;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.dashboard-sidebar h5 {
  font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin: 16px 0 8px;
}
.dashboard-sidebar h5:first-child { margin-top: 0; }
.dashboard-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
  transition: all 0.15s ease;
}
.dashboard-sidebar a:hover { background: var(--soft); color: var(--brand); }
.dashboard-sidebar a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.dashboard-sidebar a .inline-icon-glyph {
  width: 18px; height: 18px; display: grid; place-items: center;
  color: var(--ink-dim);
}
.dashboard-sidebar a.is-active .inline-icon-glyph { color: var(--brand); }
.dashboard-sidebar .count-badge {
  margin-left: auto; font-size: 10.5px; padding: 2px 6px; border-radius: 4px;
  background: var(--blue); color: #fff; font-weight: 700;
}

.dashboard-content-area { padding: 32px 36px; }
.dashboard-content-area > .layout-wrapper { padding: 0; max-width: none; }
.dashboard-greeting {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}
.dashboard-greeting h1 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(26px, 3vw, 36px); color: var(--brand);
  letter-spacing: -0.02em; line-height: 1.1;
}
.dashboard-greeting .sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* Authenticated header (for dashboards) */
header.site-chrome.is-auth-context .site-header-cta-group .account-menu-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}
header.site-chrome.is-auth-context .site-header-cta-group .account-menu-trigger .avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--blue-soft));
  display: grid; place-items: center;
  font-family: 'DM Serif Display', serif; font-size: 14px; color: var(--brand);
}

/* -------------------------------------------------------------------------
   Stat tiles
   ------------------------------------------------------------------------- */
.dashboard-metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.metric-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.metric-card .field-label-text {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 8px;
}
.metric-card .value {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 32px; color: var(--brand); letter-spacing: -0.02em; line-height: 1;
}
.metric-card .value small { font-family: 'Plus Jakarta Sans'; font-size: 14px; color: var(--ink-soft); font-weight: 500; margin-left: 4px; }
.metric-card .metric-trend-text { margin-top: 6px; font-size: 12px; color: var(--blue); font-weight: 600; }

/* Section heading inside the app (smaller than marketing) */
.dashboard-section { margin-bottom: 36px; }
.dashboard-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.dashboard-section-header h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 22px; color: var(--brand); letter-spacing: -0.015em;
}
.dashboard-section-header .meta-text-label { font-size: 13px; color: var(--ink-soft); }
.dashboard-section-header a { font-size: 13px; font-weight: 600; color: var(--blue); }

/* Role card (dashboard) */
.role-summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.role-summary-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.role-summary-card .role-summary-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.role-summary-card h3 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 21px; color: var(--brand); letter-spacing: -0.015em; line-height: 1.2;
  margin-bottom: 4px;
}
.role-summary-card .role-summary-subtitle { color: var(--ink-soft); font-size: 13.5px; }
.role-summary-card .role-summary-metadata {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px;
  font-size: 13px; color: var(--ink-soft);
}
.role-summary-card .role-summary-metadata strong { color: var(--brand); font-weight: 600; }
.role-summary-card .role-summary-footer {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}

/* Match score visualization */
.match-score-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--brand); font-weight: 600;
}
.match-score-pill .progress-bar-track {
  width: 60px; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden;
}
.match-score-pill .progress-bar-track .progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand) 0%, var(--blue) 100%); border-radius: 3px; }

/* -------------------------------------------------------------------------
   Activity feed
   ------------------------------------------------------------------------- */
.activity-feed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.activity-feed-entry {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  align-items: center;
}
.activity-feed-entry:last-child { border-bottom: none; }
.activity-feed-entry .brand-name-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
  justify-self: center; margin-top: 2px;
}
.activity-feed-entry .brand-name-dot.is-brand-colored { background: var(--brand); }
.activity-feed-entry .msg-body-text { font-size: 14px; color: var(--ink); line-height: 1.5; }
.activity-feed-entry .msg-body-text strong { color: var(--brand); font-weight: 600; }
.activity-feed-entry .msg-timestamp { font-size: 12px; color: var(--ink-dim); }

/* -------------------------------------------------------------------------
   Message thread
   ------------------------------------------------------------------------- */
.message-thread { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.message-thread-entry {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  padding: 12px 0;
}
.message-thread-entry + .message-thread-entry { border-top: 1px solid var(--line); }
.message-thread-entry .avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--blue-soft));
  display: grid; place-items: center;
  font-family: 'DM Serif Display', serif; font-size: 14px; color: var(--brand);
}
.message-thread-entry.is-recruiter-message .avatar-circle { background: var(--brand); color: #fff; }
.message-thread-entry .msg-author-name { font-weight: 600; color: var(--brand); font-size: 13.5px; }
.message-thread-entry .msg-timestamp { font-size: 11.5px; color: var(--ink-dim); margin-left: 8px; font-weight: 500; }
.message-thread-entry .msg-body-text { font-size: 14px; color: var(--ink); line-height: 1.55; margin-top: 4px; }
.message-thread-composer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* -------------------------------------------------------------------------
   Empty state
   ------------------------------------------------------------------------- */
.is-empty {
  text-align: center; padding: 48px 24px;
  background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.is-empty h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 22px; color: var(--brand); margin-bottom: 6px; }
.is-empty p { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------------------
   Profile completion strip
   ------------------------------------------------------------------------- */
.profile-completion-meter {
  background: linear-gradient(135deg, var(--brand-soft), var(--blue-soft));
  border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.profile-completion-meter .progress-block {
  display: flex; align-items: center; gap: 14px;
}
.profile-completion-meter .progress-block .progress-ring {
  width: 40px; height: 40px; border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--pct, 80) * 1%), var(--line) 0);
  display: grid; place-items: center;
}
.profile-completion-meter .progress-block .progress-ring::before {
  content: ""; width: 30px; height: 30px; border-radius: 50%; background: #fff;
}
.profile-completion-meter .progress-block .progress-ring .progress-pct-label {
  position: absolute; font-size: 11px; font-weight: 700; color: var(--brand);
}
.profile-completion-meter .progress-block > .progress-ring { position: relative; }
.profile-completion-meter h4 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 18px; color: var(--brand); }
.profile-completion-meter small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }

/* =========================================================================
   MARKET DATA — confidence pills, methodology footnotes, source attribution
   Used by client-market-data.html and (when wired) recruiter-comp-benchmark.
   Every data point gets a confidence indicator and source attribution so the
   page can't be screenshot-misrepresented as authoritative benchmark.
   ========================================================================= */

/* Confidence pills — three tiers */
.confidence-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
}
.confidence-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.confidence-pill.is-high {
  background: var(--status-offer-bg); color: var(--status-offer-fg);
}
.confidence-pill.is-high::before { background: var(--status-offer-fg); }
.confidence-pill.is-medium {
  background: var(--status-sourcing-bg); color: var(--status-sourcing-fg);
}
.confidence-pill.is-medium::before { background: var(--status-sourcing-fg); }
.confidence-pill.is-directional {
  background: var(--soft); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.confidence-pill.is-directional::before { background: var(--ink-dim); }

/* Source attribution chip (under a metric value) */
.metric-source-chip {
  display: inline-block;
  font-size: 11px; color: var(--ink-dim);
  font-weight: 500; line-height: 1.45;
  margin-top: 6px;
  font-style: italic;
}

/* Methodology footnote box */
.methodology-footnote {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.methodology-footnote strong { color: var(--brand); }
.methodology-footnote .source-chip {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; color: var(--ink);
  font-style: normal;
  margin: 0 4px;
}
.methodology-footnote .as-of {
  font-weight: 600; color: var(--ink);
  font-style: normal;
  font-size: 12px;
}

/* Insufficient-data row in tables (geographic comparisons, etc.) */
.insufficient-data-row td {
  font-style: italic; color: var(--ink-dim);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    var(--soft) 8px,
    var(--soft) 12px
  );
}
.insufficient-data-row a {
  color: var(--blue); font-weight: 600; font-style: normal;
}

/* Role-data-section swap pattern — CSS :target driven (demo only).
   When a tab targets a role section via URL hash, only that section
   displays. In production this is replaced by an API-driven content
   swap (fetch /api/client/market-data?search_id=X on tab click).
   Requires :has() support (Chrome 105+, Firefox 121+, Safari 15.4+). */
.role-data-section { display: none; }
.role-data-section:target { display: block; }
/* Default visible section when no hash is set */
body:not(:has(.role-data-section:target)) .role-data-section[data-role-default] {
  display: block;
}

/* Active tab follows the targeted section */
body:has(#role-vp-finance:target) .role-picker-tab[href="#role-vp-finance"],
body:has(#role-director-fpa:target) .role-picker-tab[href="#role-director-fpa"],
body:has(#role-senior-mgr-audit:target) .role-picker-tab[href="#role-senior-mgr-audit"] {
  background: var(--paper); color: var(--brand);
  border-color: var(--brand-soft);
  box-shadow: 0 1px 2px rgba(45, 36, 98, 0.08);
}
body:has(#role-vp-finance:target) .role-picker-tab[href="#role-vp-finance"] strong,
body:has(#role-director-fpa:target) .role-picker-tab[href="#role-director-fpa"] strong,
body:has(#role-senior-mgr-audit:target) .role-picker-tab[href="#role-senior-mgr-audit"] strong {
  font-weight: 700;
}
body:has(#role-vp-finance:target) .role-picker-tab[href="#role-vp-finance"] .role-picker-tab-meta,
body:has(#role-director-fpa:target) .role-picker-tab[href="#role-director-fpa"] .role-picker-tab-meta,
body:has(#role-senior-mgr-audit:target) .role-picker-tab[href="#role-senior-mgr-audit"] .role-picker-tab-meta {
  color: var(--ink-soft);
}
/* Default tab (when no target) gets the active styling */
body:not(:has(.role-data-section:target)) .role-picker-tab[data-role-default] {
  background: var(--paper); color: var(--brand);
  border-color: var(--brand-soft);
  box-shadow: 0 1px 2px rgba(45, 36, 98, 0.08);
}
body:not(:has(.role-data-section:target)) .role-picker-tab[data-role-default] strong { font-weight: 700; }
body:not(:has(.role-data-section:target)) .role-picker-tab[data-role-default] .role-picker-tab-meta { color: var(--ink-soft); }

/* Role-picker tab strip — cycle through this client's active searches to
   change the market-data context. Horizontal scroll on overflow (many searches),
   active tab gets lifted styling. Same pattern can power role-comparison
   selectors on the recruiter side. */
.role-picker {
  display: flex; gap: 4px; align-items: center;
  padding: 6px;
  background: var(--soft);
  border-radius: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.role-picker::-webkit-scrollbar { height: 4px; }
.role-picker::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.role-picker-tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 16px;
  border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
  transition: all 0.12s ease;
  scroll-snap-align: start;
  min-height: 44px;                /* touch target */
  justify-content: center;
}
.role-picker-tab:hover {
  background: var(--paper); color: var(--brand);
}
.role-picker-tab strong {
  font-weight: 600; font-size: 13.5px; color: inherit;
}
.role-picker-tab .role-picker-tab-meta {
  font-size: 11px; color: var(--ink-dim); font-weight: 500;
  line-height: 1.2;
}
.role-picker-tab.is-active {
  background: var(--paper); color: var(--brand);
  border-color: var(--brand-soft);
  box-shadow: 0 1px 2px rgba(45, 36, 98, 0.08);
}
.role-picker-tab.is-active strong { font-weight: 700; }
.role-picker-tab.is-active .role-picker-tab-meta { color: var(--ink-soft); }

.role-picker-add {
  margin-left: auto;
  padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.role-picker-add:hover { color: var(--blue-deep); }

@media (max-width: 640px) {
  .role-picker-add { padding: 8px 10px; font-size: 12.5px; }
  .role-picker-tab { padding: 8px 12px; }
}

/* Confidence-level legend — explains the High / Medium / Directional pills.
   Sits near the top of the market-data page so readers know what each pill
   means before they encounter individual data points. */
.confidence-legend {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 18px; align-items: start;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
}
.confidence-legend-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-soft);
  padding-top: 6px;
}
.confidence-legend-item {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
}
.confidence-legend-item .confidence-pill {
  align-self: flex-start;
}
.confidence-legend-item strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .confidence-legend {
    grid-template-columns: 1fr;
    gap: 12px; padding: 14px 16px;
  }
  .confidence-legend-title {
    padding-top: 0; border-bottom: 1px solid var(--line);
    padding-bottom: 8px; margin-bottom: 2px;
  }
}

/* Data-freshness header — sits above each chart section */
.data-freshness {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 11.5px; color: var(--ink-soft);
}
.data-freshness .as-of-label {
  font-weight: 600; color: var(--ink);
}
.data-freshness .button {
  margin-left: auto;
  padding: 5px 10px; font-size: 11.5px;
}

/* Legal disclaimer card — footer */
.legal-disclaimer-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.legal-disclaimer-card h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 10px;
}

/* =========================================================================
   MODAL DIALOG + INTERVIEW SCHEDULER
   CSS-only :target pattern. Buttons link to #schedule-interview-modal
   and the overlay shows via :target. In production this gets a tiny
   JS layer for keyboard trap, escape-to-close, and form submission.
   ========================================================================= */

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26, 26, 46, 0.62);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: modal-fade 0.18s ease;
}
.modal-overlay:target { display: flex; }
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 760px; width: 100%;
  box-shadow: var(--shadow-lift);
  animation: modal-rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 26px; color: var(--brand); letter-spacing: -0.01em;
  margin: 0;
}
.modal-header .modal-subtitle {
  font-size: 13px; color: var(--ink-soft); margin-top: 2px;
}
.modal-close {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-soft); text-decoration: none;
}
.modal-close:hover { background: var(--soft); color: var(--brand); }

.modal-body { padding: 24px 28px; }
.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  border-radius: 0 0 var(--radius) var(--radius);
  flex-wrap: wrap;
}
.modal-footer .meta-text-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
}

/* ---- Scheduler form steps ---- */
.scheduler-step {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.scheduler-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.scheduler-step-header {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
}
.scheduler-step-number {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 12.5px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.scheduler-step-title {
  font-size: 15px; font-weight: 600; color: var(--brand);
}
.scheduler-step-help {
  font-size: 12.5px; color: var(--ink-soft); margin-left: auto;
}

/* ---- Candidate picker ---- */
.scheduler-candidate-list {
  display: grid; gap: 6px;
  max-height: 200px; overflow-y: auto;
  padding: 4px;
}
.scheduler-candidate-option {
  display: grid; grid-template-columns: 22px 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); cursor: pointer;
  transition: all 0.12s ease;
}
.scheduler-candidate-option:hover { border-color: var(--accent); }
.scheduler-candidate-option:has(input:checked) {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.scheduler-candidate-option input { margin: 0; }
.scheduler-candidate-name { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.scheduler-candidate-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.scheduler-candidate-fit {
  font-size: 12px; font-weight: 600; color: var(--blue);
}

/* ---- Calendar grid ---- */
.scheduler-calendar {
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--paper);
}
.scheduler-calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.scheduler-calendar-header h4 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 17px; color: var(--brand); margin: 0;
}
.scheduler-calendar-nav { display: flex; gap: 4px; }
.scheduler-calendar-nav button {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; display: grid; place-items: center;
  font-size: 13px; color: var(--ink-soft);
}
.scheduler-calendar-nav button:hover { background: var(--soft); color: var(--brand); }

.scheduler-calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.scheduler-calendar-weekdays div {
  text-align: center; padding: 6px 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-soft);
}

.scheduler-calendar-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; padding: 8px;
}
.scheduler-calendar-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}
.scheduler-calendar-day:hover {
  background: var(--brand-soft); border-color: var(--brand);
}
.scheduler-calendar-day.is-other-month { color: var(--ink-dim); cursor: default; }
.scheduler-calendar-day.is-other-month:hover { background: transparent; border-color: transparent; }
.scheduler-calendar-day.is-today {
  font-weight: 700; color: var(--brand);
  position: relative;
}
.scheduler-calendar-day.is-today::after {
  content: ""; position: absolute; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
}
.scheduler-calendar-day.is-selected {
  background: var(--brand); color: #fff; font-weight: 700;
}
.scheduler-calendar-day.is-selected.is-today::after { background: #fff; }
.scheduler-calendar-day.is-proposed {
  background: var(--blue-soft); color: var(--blue);
  border-color: var(--blue); font-weight: 600;
}
.scheduler-calendar-day.is-past { color: var(--ink-dim); cursor: not-allowed; }
.scheduler-calendar-day.is-past:hover { background: transparent; border-color: transparent; }

/* ---- Time-slot chips ---- */
.scheduler-time-slots {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.scheduler-time-slot {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: all 0.12s ease;
  min-height: 36px;
}
.scheduler-time-slot:hover { border-color: var(--blue); }
.scheduler-time-slot.is-selected {
  background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600;
}
.scheduler-time-slot.is-unavailable {
  background: var(--soft); color: var(--ink-dim);
  cursor: not-allowed; text-decoration: line-through;
}

/* ---- Selected-summary card (sticky at bottom of dialog) ---- */
.scheduler-proposal-summary {
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 13px;
}
.scheduler-proposal-summary h5 {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 8px;
}
.scheduler-proposal-summary ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--brand);
}
.scheduler-proposal-summary ul li {
  display: flex; gap: 8px; align-items: center;
  font-weight: 500;
}
.scheduler-proposal-summary ul li::before {
  content: "✓"; color: var(--status-offer-fg); font-weight: 700;
}

/* ---- Notify panel ---- */
.scheduler-notify-panel {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--blue-soft); color: var(--blue);
  border-radius: 10px;
  font-size: 12.5px;
  margin-top: 12px;
}
.scheduler-notify-panel strong { color: var(--blue-deep); }
.scheduler-notify-panel-avatars {
  display: flex; margin-left: auto;
}
.scheduler-notify-panel-avatars .messages-avatar {
  width: 26px; height: 26px; font-size: 11px;
  margin-left: -6px; border: 2px solid var(--blue-soft);
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal-dialog { max-width: none; border-radius: 0; min-height: 100vh; }
  .modal-header, .modal-body, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .scheduler-calendar-day { font-size: 12px; }
  .scheduler-time-slots { gap: 5px; }
  .scheduler-time-slot { padding: 7px 11px; font-size: 12.5px; }
  .modal-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .modal-footer .action-button-row { display: flex; gap: 8px; }
  .modal-footer .action-button-row .button { flex: 1; justify-content: center; }
}

/* =========================================================================
   MESSAGING WORKSPACE — Inbox + thread + composer
   Two-pane layout: filter rail + inbox list on left, active thread + composer
   on right. Single-pane fallback on mobile via CSS scroll/visibility.
   Used by: recruiter-messages, candidate-messages, client-messages, plus
   the inline message thread previews on each dashboard overview.
   ========================================================================= */

.messages-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 640px;
}

/* ---- Left rail: search, filters, inbox list ---- */
.messages-rail {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--soft);
  min-height: 0;
}

.messages-rail-header {
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.messages-rail-header h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 22px; color: var(--brand); letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.messages-search {
  position: relative;
}
.messages-search::before {
  content: "🔍";
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: 0.5; pointer-events: none;
}
.messages-search input {
  width: 100%; padding: 9px 12px 9px 34px;
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; font-size: 13.5px;
  transition: border-color 0.15s ease;
}
.messages-search input:focus {
  outline: none; border-color: var(--blue); background: var(--paper);
}

.messages-filters {
  display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap;
}
.messages-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all 0.15s ease;
}
.messages-filter:hover { border-color: var(--accent); }
.messages-filter.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.messages-filter .count {
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 6px; border-radius: 999px; font-size: 10.5px;
  min-width: 18px; text-align: center;
}
.messages-filter.is-active .count { background: rgba(255, 255, 255, 0.25); }

/* ---- Thread list ---- */
.messages-thread-list {
  flex: 1; overflow-y: auto; list-style: none;
  margin: 0; padding: 0;
}
.messages-thread-item {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.12s ease;
  text-decoration: none; color: var(--ink);
}
.messages-thread-item:hover { background: var(--paper); }
.messages-thread-item.is-active {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--brand);
}
.messages-thread-item.is-unread .messages-thread-top strong {
  font-weight: 700; color: var(--brand);
}

.messages-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--blue-soft));
  display: grid; place-items: center;
  font-family: 'DM Serif Display', serif; font-size: 15px;
  color: var(--brand); font-weight: 400;
  flex-shrink: 0;
}
.messages-avatar.is-client { background: var(--brand); color: #fff; }
.messages-avatar.is-candidate { background: var(--blue); color: #fff; }
.messages-avatar.is-internal { background: var(--soft); color: var(--ink-soft); border: 1px solid var(--line); }

.messages-thread-meta { min-width: 0; }
.messages-thread-top {
  display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.messages-thread-top strong {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.messages-sender-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 6px; border-radius: 4px;
  background: var(--soft); color: var(--ink-soft);
  flex-shrink: 0;
}
.messages-sender-tag.is-client { background: var(--brand); color: #fff; }
.messages-sender-tag.is-candidate { background: var(--blue); color: #fff; }
.messages-sender-tag.is-internal {
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent);
}

.messages-thread-topic {
  font-size: 11.5px; color: var(--ink-soft); font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.messages-thread-preview {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.messages-thread-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.messages-thread-right .messages-when {
  font-size: 11px; color: var(--ink-dim); white-space: nowrap;
}
.messages-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--paper);
}
.messages-priority-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--priority-urgent);
}

/* ---- Right pane: thread view ---- */
.messages-thread-view {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--paper);
}

.messages-thread-header {
  display: grid;
  grid-template-columns: auto 38px 1fr auto;
  align-items: center;
  gap: 12px; padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.messages-back-button {
  display: none;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 16px; cursor: pointer;
  align-items: center; justify-content: center;
}
.messages-thread-info { min-width: 0; }
.messages-thread-info-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.messages-thread-info-top strong {
  font-size: 15px; color: var(--brand); font-weight: 600;
}
.messages-thread-subtopic {
  font-size: 12.5px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.messages-thread-actions {
  display: flex; gap: 4px;
}
.messages-thread-actions button {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  font-size: 14px; cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.12s ease;
  color: var(--ink-soft);
}
.messages-thread-actions button:hover {
  background: var(--soft); color: var(--brand); border-color: var(--line);
}

/* ---- Thread context banner (search context, priority info) ---- */
.messages-thread-context-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12.5px; font-weight: 500;
  border-bottom: 1px solid var(--brand-soft);
}
.messages-thread-context-banner strong { font-weight: 700; }
.messages-thread-context-banner .button {
  margin-left: auto; padding: 6px 12px; font-size: 12px;
}

/* ---- Message bubbles ---- */
.messages-bubble-stream {
  flex: 1; overflow-y: auto;
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--soft);
}

.messages-date-divider {
  align-self: center;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-dim);
  padding: 6px 14px; background: var(--paper);
  border-radius: 999px; border: 1px solid var(--line);
  margin: 8px 0 4px;
}

.messages-bubble {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 10px; max-width: 76%;
  align-self: flex-start;
}
.messages-bubble.is-outgoing {
  align-self: flex-end;
  grid-template-columns: 1fr;
}
.messages-bubble .messages-avatar {
  width: 32px; height: 32px; font-size: 13px;
}
.messages-bubble-content {
  display: flex; flex-direction: column; gap: 4px;
}
.messages-bubble-meta {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 11.5px;
}
.messages-bubble-meta strong { font-weight: 600; color: var(--brand); font-size: 13px; }
.messages-bubble-meta .messages-time { color: var(--ink-dim); }
.messages-bubble-meta .messages-status-read {
  margin-left: auto; color: var(--blue); font-weight: 500; font-size: 10.5px;
}

.messages-bubble p {
  padding: 11px 14px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; line-height: 1.55;
  margin: 0;
}
.messages-bubble.is-outgoing p {
  background: var(--brand); color: #fff; border-color: var(--brand);
  border-bottom-right-radius: 4px;
}
.messages-bubble.is-incoming p {
  border-bottom-left-radius: 4px;
}
.messages-bubble.is-internal-note p {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  color: var(--accent);
}

/* ---- Inline attachment / event cards inside bubbles ---- */
.messages-attachment-card {
  display: grid; grid-template-columns: 38px 1fr auto;
  gap: 12px; align-items: center;
  margin-top: 8px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 13px;
}
.messages-attachment-card .messages-attachment-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-soft);
  display: grid; place-items: center;
  font-size: 17px;
}
.messages-attachment-card.is-calendar .messages-attachment-icon {
  background: var(--status-interviews-bg);
}
.messages-attachment-card.is-resume .messages-attachment-icon {
  background: var(--status-offer-bg);
}
.messages-attachment-card strong {
  display: block; color: var(--brand); font-weight: 600; font-size: 13.5px;
}
.messages-attachment-card .messages-attachment-meta {
  font-size: 11.5px; color: var(--ink-soft); margin-top: 2px;
}
.messages-attachment-card .button {
  padding: 6px 12px; font-size: 12.5px;
}
.messages-bubble.is-outgoing .messages-attachment-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.20);
}
.messages-bubble.is-outgoing .messages-attachment-card strong { color: #fff; }
.messages-bubble.is-outgoing .messages-attachment-card .messages-attachment-meta {
  color: rgba(255, 255, 255, 0.78);
}

/* ---- Typing indicator ---- */
.messages-typing-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 12px; color: var(--ink-soft);
  font-style: italic;
}
.messages-typing-indicator .dots {
  display: inline-flex; gap: 3px;
}
.messages-typing-indicator .dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-dim);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.messages-typing-indicator .dots span:nth-child(2) { animation-delay: 0.15s; }
.messages-typing-indicator .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ---- Composer ---- */
.messages-composer {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.messages-composer-tools {
  display: flex; gap: 4px; margin-bottom: 8px;
}
.messages-composer-tools button {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  font-size: 14px; cursor: pointer; color: var(--ink-soft);
  display: grid; place-items: center;
  transition: all 0.12s ease;
}
.messages-composer-tools button:hover {
  background: var(--soft); color: var(--brand); border-color: var(--line);
}
.messages-composer textarea {
  width: 100%; min-height: 76px; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; font-size: 14px; line-height: 1.55;
  background: var(--paper); color: var(--ink);
  transition: border-color 0.15s ease;
}
.messages-composer textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.messages-composer-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.messages-composer-footer .meta-text-label {
  font-size: 11.5px;
}

/* ---- Empty state (nothing selected) ---- */
.messages-empty-state {
  display: grid; place-items: center; text-align: center;
  height: 100%; padding: 60px 30px;
  color: var(--ink-soft);
}
.messages-empty-state .ico {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--soft);
  display: grid; place-items: center;
  font-size: 24px; margin: 0 auto 18px;
  color: var(--ink-dim);
}
.messages-empty-state h3 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 22px; color: var(--brand); margin-bottom: 8px;
}

/* ---- Mobile: single-pane navigation ---- */
@media (max-width: 880px) {
  .messages-workspace {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 220px);
  }
  /* When viewing list, hide thread; vice versa. Driven by the html
     attribute data-view="list" or data-view="thread" which a tiny JS would
     toggle in production. For the mock we show the thread by default and
     reveal a back button. */
  .messages-rail {
    display: none;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .messages-workspace[data-view="list"] .messages-rail { display: flex; }
  .messages-workspace[data-view="list"] .messages-thread-view { display: none; }
  .messages-back-button { display: inline-flex; }
  .messages-thread-header {
    grid-template-columns: auto 32px 1fr auto;
    gap: 10px; padding: 12px 16px;
  }
  .messages-bubble-stream { padding: 16px; }
  .messages-bubble { max-width: 88%; }
  .messages-composer { padding: 12px 14px 14px; }
}
@media (max-width: 480px) {
  .messages-thread-actions button:not(:last-child) { display: none; }
  .messages-composer-tools button:nth-child(n+3) { display: none; }
  .messages-bubble { max-width: 92%; }
}

/* =========================================================================
   Screenings page — verdict-grouped review queue
   ========================================================================= */

/* Base summary card (shared by dashboard preview + screenings page) */
.screening-summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px;
  display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px; align-items: center;
}
.screening-summary-card .avatar-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--blue-soft));
  display: grid; place-items: center;
  font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--brand);
}
.screening-summary-card h4 { font-size: 14.5px; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.screening-summary-card p { font-size: 12.5px; color: var(--ink-soft); }
.screening-verdict-pill {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px;
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.screening-verdict-pill.is-verdict-strong-submit { background: var(--status-offer-bg); color: var(--status-offer-fg); }
.screening-verdict-pill.is-verdict-submit { background: var(--status-shortlisted-bg); color: var(--status-shortlisted-fg); }
.screening-verdict-pill.is-verdict-hold { background: var(--status-sourcing-bg); color: var(--status-sourcing-fg); }
.screening-verdict-pill.is-verdict-do-not-proceed { background: var(--status-paused-bg); color: var(--status-paused-fg); }
.screening-verdict-pill.is-verdict-pending { background: var(--soft); color: var(--ink-soft); }

/* Filter toolbar */
.screening-filter-toolbar {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 20px;
}
.screening-filter-search {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 8px;
  background: var(--soft); border: 1px solid transparent; border-radius: 8px;
  padding: 8px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.screening-filter-search:focus-within { background: #fff; border-color: var(--accent); }
.screening-filter-search .search-icon-glyph { color: var(--ink-dim); font-size: 14px; }
.screening-filter-search input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font-size: 13.5px; color: var(--ink);
  font-family: inherit;
}
.screening-filter-search input::placeholder { color: var(--ink-dim); }
.screening-filter-pills {
  display: flex; align-items: center; gap: 6px;
}
.screening-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.screening-filter-pill:hover { background: var(--soft); color: var(--brand); }
.screening-filter-pill.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.screening-filter-pill .filter-count { font-size: 11px; opacity: 0.7; }
.screening-filter-pill.is-active .filter-count { opacity: 0.85; }
.screening-filter-sort {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-soft);
}
.screening-filter-sort select {
  font-size: 12.5px; color: var(--ink); font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 32px 7px 10px; background-color: #fff;
  background-position: right 10px center;
  background-size: 10px 7px;
  cursor: pointer;
  width: auto;
}

/* Section header with count badge + verdict accent */
.screening-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.screening-section-header .section-title-cluster {
  display: flex; align-items: center; gap: 10px;
}
.screening-section-header h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 22px; color: var(--brand); margin: 0;
}
.screening-section-header .section-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 8px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700;
  border-radius: 999px;
}
.screening-section-header .meta-text-label { font-size: 12.5px; color: var(--ink-dim); }

/* Richer review card (replaces compact summary card on screenings page) */
.screening-review-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px 14px;
  display: grid;
  grid-template-columns: 4px 44px 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 4px 16px;
  align-items: start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.screening-review-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 1px 3px rgba(45, 36, 98, 0.04), 0 4px 12px rgba(45, 36, 98, 0.04);
}
.screening-review-card .verdict-accent-bar {
  grid-row: 1 / -1; grid-column: 1;
  width: 4px; align-self: stretch;
  border-radius: 4px;
  background: var(--ink-dim);
}
.screening-review-card.is-verdict-strong-submit .verdict-accent-bar { background: var(--status-offer-fg); }
.screening-review-card.is-verdict-submit .verdict-accent-bar { background: var(--status-shortlisted-fg); }
.screening-review-card.is-verdict-hold .verdict-accent-bar { background: var(--status-sourcing-fg); }
.screening-review-card.is-verdict-do-not-proceed .verdict-accent-bar { background: var(--status-paused-fg); }
.screening-review-card.is-verdict-pending .verdict-accent-bar { background: var(--accent); }

.screening-review-card .avatar-circle {
  grid-row: 1 / 3; grid-column: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--blue-soft));
  display: grid; place-items: center;
  font-family: 'DM Serif Display', serif; font-size: 17px; color: var(--brand);
}
.screening-review-card .screening-review-header {
  grid-row: 1; grid-column: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.screening-review-card .screening-review-header h3 {
  font-size: 16px; font-weight: 600; color: var(--brand);
  margin: 0; letter-spacing: -0.1px;
}
.screening-review-card .screening-review-meta {
  grid-row: 2; grid-column: 3;
  font-size: 13px; color: var(--ink-soft);
}
.screening-review-card .screening-review-meta .meta-divider {
  margin: 0 6px; color: var(--ink-dim);
}
.screening-review-card .screening-review-reason {
  grid-row: 3; grid-column: 3;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--soft); border-left: 2px solid var(--line-strong);
  border-radius: 0 6px 6px 0;
  font-size: 13px; color: var(--ink); line-height: 1.5;
  font-style: italic;
}
.screening-review-card .screening-review-reason strong {
  font-style: normal; font-weight: 600; color: var(--brand);
  margin-right: 6px;
}
.screening-review-card .screening-review-footer {
  grid-row: 4; grid-column: 3;
  margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.screening-review-card .screening-review-attribution {
  font-size: 11.5px; color: var(--ink-dim);
  display: flex; align-items: center; gap: 6px;
}
.screening-review-card .screening-review-attribution .attribution-divider {
  color: var(--line-strong);
}
.screening-review-card .screening-review-actions {
  display: flex; align-items: center; gap: 8px;
}
.screening-review-card .screening-review-actions .button {
  padding: 7px 12px; font-size: 12.5px;
}
.screening-review-card .screening-review-actions .button.is-tertiary {
  background: transparent; border: 0; color: var(--ink-soft);
  padding: 7px 8px;
}
.screening-review-card .screening-review-actions .button.is-tertiary:hover {
  color: var(--brand); background: var(--soft);
}

/* Grouped section list */
.screening-review-list { display: grid; gap: 10px; }

/* Empty state inside a verdict group */
.screening-group-empty {
  background: var(--soft); border: 1px dashed var(--line-strong);
  border-radius: 10px; padding: 18px 20px;
  font-size: 13px; color: var(--ink-dim); text-align: center;
}

/* -------------------------------------------------------------------------
   Responsive  (mobile-first hardening — every dashboard surface)
   ------------------------------------------------------------------------- */

/* Tablet — 1024px and down */
@media (max-width: 1024px) {
  .dashboard-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .signup-path-chooser { grid-template-columns: 1fr; }
  /* Pipeline + BD funnels: 6/5/4 cols → 3 cols at tablet */
  [style*="repeat(6, 1fr)"],
  [style*="repeat(5, 1fr)"],
  [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Phablet / large phone — 880px and down (sidebar collapses) */
@media (max-width: 880px) {
  .dashboard-layout { grid-template-columns: 1fr; }

  /* Sidebar collapses to a horizontal scrollable tab strip on phones.
     Saves ~600px of vertical scroll on every dashboard page-load. The
     active item scrolls into view (browser default for sticky-href). */
  .dashboard-sidebar {
    position: sticky; top: 56px; z-index: 10;
    max-height: none;
    border-right: none; border-bottom: 1px solid var(--line);
    background: var(--paper);
    padding: 0;
    /* horizontal scroll */
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .dashboard-sidebar::-webkit-scrollbar { height: 4px; }
  .dashboard-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

  /* Section headings hidden on horizontal layout — too noisy */
  .dashboard-sidebar h5 { display: none; }

  /* Each link becomes a horizontal tab */
  .dashboard-sidebar a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 16px;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    margin: 0;
    scroll-snap-align: start;
    min-height: 44px; /* touch target */
  }
  .dashboard-sidebar a.is-active {
    border-bottom-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
  }
  .dashboard-sidebar a:hover {
    background: var(--soft);
  }

  /* Count badges shrink a bit so tabs aren't huge */
  .dashboard-sidebar a .count-badge {
    margin-left: 4px; padding: 1px 6px; font-size: 10.5px;
  }
  .dashboard-content-area { padding: 24px 18px; }

  /* Hero greeting stacks */
  .dashboard-greeting { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dashboard-greeting h1 { font-size: 28px; }
  .hero-cta-group { flex-wrap: wrap; gap: 8px; width: 100%; }

  /* Wizard step labels shrink */
  .wizard-step-indicator .wizard-step .field-label-text { font-size: 10px; }
  .wizard-step-indicator .wizard-step:not(:last-child)::after { left: calc(50% + 14px); right: calc(-50% + 14px); }

  /* Forms collapse to single column */
  .form-field-grid.cols-2, .form-field-grid.cols-3 { grid-template-columns: 1fr; }
  .form-fieldset-section { padding: 22px; }
  .form-action-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-action-bar .action-button-row { justify-content: space-between; }

  /* Tables — horizontal scroll inside info-panel containers */
  .info-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .info-panel table { font-size: 13px; min-width: 600px; }
  .info-panel table th, .info-panel table td { padding: 10px 12px !important; }

  /* Pipeline funnel 6-col / BD 5-col / metric-row 4-col → 2 cols at phablet */
  [style*="repeat(6, 1fr)"],
  [style*="repeat(5, 1fr)"],
  [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Stat rows */
  .dashboard-metrics-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Inline grids in candidate-in-motion timeline + others — keep layout but compact */
  [style*="grid-template-columns: 28px 1fr auto"] { gap: 8px 12px !important; }
  [style*="grid-template-columns: 160px 1fr"] { grid-template-columns: 1fr !important; gap: 8px !important; }
  [style*="grid-template-columns: 80px 1fr"] { grid-template-columns: 70px 1fr !important; gap: 6px 12px !important; }

  /* Role-summary-card cols-2 grid collapses */
  .column-grid.cols-2 { grid-template-columns: 1fr; }
  .column-grid.cols-3 { grid-template-columns: 1fr; }
  .column-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

  /* Header CTA tweaks */
  .site-header-cta-group .button { padding: 8px 12px; font-size: 12.5px; }

  /* App pages still load styles.css from canonical host -- ensure body bg fits */
  body { font-size: 15px; }
}

/* Small phones — 600px and down */
@media (max-width: 600px) {
  .dashboard-content-area { padding: 18px 14px; }
  .dashboard-section { margin-bottom: 28px; }

  /* All multi-col grids → 1 col */
  [style*="repeat(6, 1fr)"],
  [style*="repeat(5, 1fr)"],
  [style*="repeat(4, 1fr)"],
  [style*="repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  .column-grid.cols-4 { grid-template-columns: 1fr; }

  /* CTA buttons full width */
  .hero-cta-group .button { width: 100%; text-align: center; justify-content: center; }
  .role-summary-footer { flex-wrap: wrap; gap: 8px; }
  .role-summary-footer .button { flex: 1 1 auto; }

  /* Match pairing card stacks */
  .match-pairing-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .match-pairing-arrow { transform: rotate(90deg); margin: 4px 0; }
}

/* Phone — 480px and down */
@media (max-width: 480px) {
  .wizard-step-indicator .wizard-step .field-label-text { display: none; }
  .dashboard-greeting h1 { font-size: 24px; }
  .dashboard-greeting .sub { font-size: 13px; }

  /* All multi-col grids → 1 col on phone */
  [style*="repeat(6, 1fr)"],
  [style*="repeat(5, 1fr)"],
  [style*="repeat(4, 1fr)"],
  [style*="repeat(3, 1fr)"],
  [style*="repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }

  /* Metric cards: 2 cols only */
  .dashboard-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .metric-card { padding: 14px 12px; min-height: 100px; }
  .metric-card .value { font-size: 24px !important; }

  /* Header simplification */
  .site-header-cta-group { gap: 6px; }
  .site-header-cta-group .account-menu-trigger span:nth-child(2) { display: none; } /* hide name on tiny screens */

  /* Action-queue items condense */
  .action-queue-item { grid-template-columns: 6px 1fr !important; }
  .action-queue-item .action-item-cta-cluster { grid-column: 1 / -1; padding-left: 22px; justify-content: flex-start; flex-wrap: wrap; }

  /* Screening cards condense */
  .screening-summary-card { grid-template-columns: 40px 1fr !important; gap: 10px; }
  .screening-summary-card .screening-verdict-pill,
  .screening-summary-card .button { grid-column: 2; justify-self: start; }

  /* Screening review cards (full page) */
  .screening-review-card { grid-template-columns: 4px 44px 1fr !important; }
  .screening-review-card .screening-review-header { grid-column: 2 / -1; }
  .screening-review-card .screening-review-meta,
  .screening-review-card .screening-review-reason,
  .screening-review-card .screening-review-footer { grid-column: 2 / -1; }
  .screening-review-card .screening-review-footer { flex-direction: column; align-items: stretch; }
  .screening-review-card .screening-review-footer .screening-review-actions { flex-wrap: wrap; }
  .screening-filter-toolbar { flex-direction: column; align-items: stretch; }
  .screening-filter-toolbar .screening-filter-pills { flex-wrap: wrap; }
  .screening-section-header { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Calendar timeline grids */
  [style*="grid-template-columns: 80px 1fr"] { grid-template-columns: 1fr !important; }

  /* Recruiter inbox items */
  .recruiter-inbox-item { grid-template-columns: 36px 1fr !important; gap: 10px; }
  .recruiter-inbox-item .when { grid-column: 2; font-size: 11px; }
}

/* Touch targets ≥ 44px on coarse pointers (phones, tablets) */
@media (pointer: coarse) {
  .button { min-height: 44px; }
  .dashboard-sidebar a {
    min-height: 44px;
    display: flex; align-items: center; gap: 8px;
  }
  .label-pill { min-height: 24px; padding: 4px 10px; }
}

/* Prevent zoom on form focus (iOS bumps zoom if font-size < 16px) */
@media (max-width: 480px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Executive primitives — shared by recruiter-candidates, recruiter-pipeline,
   recruiter-screenings, recruiter-approvals. Restrained, hairline-led,
   serif name + sans body. Pages add their own page-specific layouts on top.
   ════════════════════════════════════════════════════════════════════════ */

.exec-card-stack { display: flex; flex-direction: column; gap: 10px; }

.exec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.exec-card.is-clickable { cursor: pointer; }
.exec-card.is-clickable:hover {
  border-color: rgba(45, 36, 98, 0.35);
  box-shadow: 0 1px 2px rgba(45, 36, 98, 0.04);
}
.exec-card[data-active="true"] {
  border-color: var(--brand);
  background: rgba(45, 36, 98, 0.025);
  box-shadow: 0 1px 0 var(--brand);
}

.exec-card-name {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: -0.012em;
  margin: 0;
}
.exec-card-role {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 5px;
  letter-spacing: 0.005em;
}
.exec-card-meta {
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 6px;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.exec-card-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-dim);
  opacity: 0.55;
}

.exec-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--soft, #f4f3f7);
  color: var(--ink);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.4;
  white-space: nowrap;
}
.exec-pill-accent { background: rgba(45, 36, 98, 0.06); color: var(--brand); }
.exec-pill-warn   { background: rgba(217, 119, 6, 0.08); color: #92400e; }
.exec-pill-good   { background: rgba(16, 122, 87, 0.08); color: #065f46; }
.exec-pill-mute   { background: var(--soft); color: var(--ink-dim); }

.exec-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 12px;
}

.exec-column {
  background: rgba(45, 36, 98, 0.015);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  min-height: 220px;
}
.exec-column-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.exec-column-header h4 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.exec-column-header .count {
  font-size: 12px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.exec-column-empty {
  color: var(--ink-dim);
  font-size: 12px;
  padding: 18px 4px;
  text-align: center;
  font-style: italic;
}

.exec-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.exec-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
