/* Signed-in CDS Command Centre surfaces: shell account block, Quotes home,
   Needs me and the quote workspace rail. Shared CDS tokens stay authoritative. */

/* --- Production shell ------------------------------------------------- */
[data-shell-mode="production"] .sidebar-account { margin-top: auto; }
.account-block {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-3-5);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-panel);
  background: var(--chrome-hover);
}
.account-name { margin: 0; color: var(--chrome-text); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); }
.account-email { margin: 0; color: var(--text-on-dark-muted); font-size: var(--fs-caption); overflow-wrap: anywhere; }
.account-note { margin: 0 0 var(--space-1); color: var(--chrome-muted-text); font-size: var(--fs-caption); line-height: 1.45; }
.account-signout {
  justify-content: center;
  width: 100%;
  min-height: var(--touch);
  border-color: var(--chrome-border);
  color: var(--chrome-text);
  background: transparent;
}
.account-signout:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-ring); color: var(--chrome-text); }

/* --- Quotes home ------------------------------------------------------ */
/* ENG-1510: the upload rules and pipeline sentence sit inside the navy page hero. */
.quotes-hero { margin: 0 0 var(--space-6); }
.quotes-hero-rules { margin: 0; max-width: 40rem; color: var(--on-navy-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-card); }
.quotes-hero-note { margin: 0; color: var(--on-navy-secondary); font-size: var(--fs-caption); }
.start-quote-status:empty { display: none; }
.start-quote-status { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--hero-metric-bg); color: var(--chrome-text); font-size: var(--fs-body-sm); }
.start-quote-status.is-error { background: var(--error-24); color: var(--chrome-text); }

.quote-cards { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.quote-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--elevation-1);
  transition: box-shadow var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
}
.quote-card:hover { box-shadow: var(--elevation-2); border-color: var(--border-visible); }
.quote-card h3 { margin: 0; font-size: var(--fs-h3); overflow-wrap: anywhere; }
.quote-card-meta { margin: 0; color: var(--text-secondary); font-size: var(--fs-body-sm); overflow-wrap: anywhere; }
.quote-card.is-skeleton { gap: 0; box-shadow: none; }

.quote-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}

/* --- Needs me --------------------------------------------------------- */
.needs-me-group {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--elevation-1);
}
.needs-me-group h2 { margin: 0; font-size: var(--fs-h3); overflow-wrap: anywhere; }
.needs-me-items { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-1-5); max-width: 72ch; }
.needs-me-items li { color: var(--text-body); font-size: var(--fs-body-sm); line-height: var(--lh-body-snug); }
.needs-me-group > .btn { justify-self: start; margin-top: var(--space-2); }

/* --- Quote workspace rail --------------------------------------------- */
.saved-quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--space-6); align-items: start; }
.saved-quote-main { min-width: 0; }
.saved-quote-rail { position: sticky; top: var(--space-4); min-width: 0; }

.agent-progress { display: grid; gap: var(--space-2); }
.agent-progress p { margin: 0; font-size: var(--fs-body-sm); color: var(--accent); font-weight: var(--fw-medium); }
.agent-progress-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.agent-progress-steps li { height: 4px; border-radius: var(--radius-pill); background: var(--border-subtle); transition: background var(--motion-slow) var(--ease-out); }
.agent-progress-steps li[data-state="done"] { background: var(--accent-muted); }
.agent-progress-steps li[data-state="current"] { background: var(--accent); }

/* --- Agent chat (ENG-1225: reads as a conversation, not a log) ---------- */
.agent-chat { display: grid; gap: var(--space-4); padding: var(--space-5); border-top: 1px solid var(--border); background: var(--bg-elevated); }
.agent-chat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.agent-chat-head h2 { margin: 0; }
.agent-chat-state { display: inline-flex; align-items: center; gap: var(--space-1-5); font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.agent-chat-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.agent-chat-state[data-agent-state="working"]::before { background: var(--accent); animation: cds-shimmer 1.4s linear infinite; }
.agent-chat-log { display: grid; gap: var(--space-3); max-height: 26rem; overflow-y: auto; }
.agent-chat-idle { margin: 0; max-width: 52ch; color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
.agent-chat-turn { display: grid; gap: var(--space-1); max-width: 100%; }
.agent-chat-body { display: grid; gap: var(--space-2); }
.agent-chat-turn p, .agent-chat-body p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-primary); overflow-wrap: anywhere; }
.agent-chat-who { margin: 0; font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: var(--fw-bold); }
.agent-chat-turn[data-agent-turn="assistant"] { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg-card-opaque); box-shadow: var(--elevation-1); }
.agent-chat-turn[data-agent-turn="user"] { justify-self: end; max-width: 46ch; padding: var(--space-2-5) var(--space-3-5); border-radius: var(--radius-md); background: var(--accent-muted); border: 1px solid var(--accent-ring); }
.agent-chat-turn[data-agent-turn="user"] p { font-size: var(--fs-body-sm); }
.agent-chat-turn-pending { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--border-visible); border-radius: var(--radius-sm); background: var(--bg-card-opaque); }
.agent-block-heading { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.agent-needs-you, .agent-suggestions { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.agent-needs-you li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-3-5); border: 1px solid var(--chip-warning-border); border-left: 3px solid var(--warning); border-radius: var(--radius-sm); background: var(--chip-warning-bg); }
.agent-needs-you li > div { display: grid; gap: var(--space-0-5); }
.agent-needs-you strong { color: var(--text-primary); font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.agent-needs-you span { color: var(--text-body); font-size: var(--fs-body-sm); line-height: var(--lh-body-snug); }
.agent-needs-rank { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bg-card-opaque); border: 1px solid var(--chip-warning-border); color: var(--ink-warning); font-size: var(--fs-caption); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.agent-suggestions li { display: grid; gap: var(--space-2); padding: var(--space-3-5) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card-opaque); box-shadow: var(--elevation-1); }
.agent-suggestions p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body-snug); color: var(--text-primary); }
.agent-suggestion-why { color: var(--text-secondary) !important; font-size: var(--fs-body-sm) !important; }
.agent-kind { justify-self: start; display: inline-flex; align-items: center; padding: 0.1rem var(--space-2); border: 1px solid var(--chip-info-border); border-radius: var(--radius-pill); background: var(--chip-info-bg); color: var(--ink-info); font-size: var(--fs-label); font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; }
.agent-apply { justify-self: start; min-height: var(--touch); }
.agent-citations { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1-5); margin: 0; color: var(--text-secondary); font-size: var(--fs-caption); }
.agent-citations-label { font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-right: var(--space-1); }
.agent-cite { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-2-5); border: 1px solid var(--border-visible); border-radius: var(--radius-pill); background: var(--bg-card-opaque); color: var(--text-secondary); overflow-wrap: anywhere; }
.agent-cite::before { content: "§"; margin-right: var(--space-1); color: var(--accent); font-weight: var(--fw-bold); }
.agent-brain-cite { text-decoration: none; }
.agent-brain-cite:hover, .agent-brain-cite:focus-visible { border-color: var(--accent); color: var(--text-primary); }
.agent-brain-cite-meta { color: var(--text-muted); }
.agent-guidance-gap, .agent-source-note { margin: 0; color: var(--text-secondary); font-size: var(--fs-caption); }
.agent-receipt { margin: 0; color: var(--text-muted); font-size: var(--fs-caption); overflow-wrap: anywhere; }
.agent-receipt summary { cursor: pointer; min-height: var(--touch); display: flex; align-items: center; color: var(--text-secondary); font-weight: var(--fw-medium); }
.agent-receipt p { margin: var(--space-1) 0 0; padding-left: var(--space-3); }
.agent-chat-retry, .agent-chat-help { margin-left: var(--space-3); }
.agent-chat-error { margin: 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--error); border-radius: var(--radius-sm); background: var(--chip-error-bg); color: var(--text-primary); font-size: var(--fs-body-sm); line-height: var(--lh-body-snug); }
.agent-chat-form { display: grid; gap: var(--space-2); }
.agent-chat-form label { font-size: var(--fs-caption); color: var(--text-muted); font-weight: var(--fw-semibold); }
.agent-chat-form textarea { width: 100%; box-sizing: border-box; padding: var(--space-3); border: 1px solid var(--border-visible); border-radius: var(--radius-input); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: var(--fs-body); line-height: var(--lh-body-snug); resize: vertical; }
.agent-chat-form textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: var(--focus-ring); }
.agent-chat-form button { min-height: var(--touch); justify-self: start; }
/* ENG-1639: Send to agent and Ask past jobs side by side; they wrap on a narrow rail. */
.agent-chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.agent-recall-note { margin: 0; color: var(--text-secondary); font-size: var(--fs-caption); line-height: var(--lh-body-snug); }

@media (max-width: 1100px) {
  .saved-quote-layout { grid-template-columns: minmax(0, 1fr); }
  .saved-quote-rail { position: static; order: -1; }
}
@media (max-width: 480px) {
  .quote-card { padding: var(--space-4); }
  .needs-me-group > .btn { justify-self: stretch; width: 100%; }
}

/* The shell already supplies page padding and measure. */
[data-shell-mode="production"] .saved-quote-workspace { max-width: none; padding: 0; }

/* The sidebar is hidden on a phone, so sign-out rides in the mobile brand bar. */
.mobile-account { margin-left: auto; }
.mobile-account .btn { min-height: var(--touch); padding: 0 var(--space-3); font-size: var(--fs-body-sm); white-space: nowrap; }

/* --- ENG-1225 surface polish ------------------------------------------
   Cross-surface rhythm: "Needs you" owns the top of the page, help is a utility control,
   figures align, status ink comes from one ladder. Loads last so it wins the cascade. */

/* Collapsed help is a one-line utility row, never a card above the work. */
.pilot-guidance-collapsed { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-3); padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.pilot-guidance-collapsed > div { display: flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); font-size: var(--fs-caption); font-weight: var(--fw-regular); }
.pilot-guidance-collapsed .pilot-guide-mark { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent-muted); color: var(--accent-hover); font-size: var(--fs-label); font-weight: var(--fw-bold); }
.pilot-guidance-collapsed .btn { width: auto; min-height: var(--touch); padding: 0 var(--space-3); font-size: var(--fs-caption); }

/* Attention hero: lead copy and the four counts sit side by side on desktop. */
.hero-panel-compact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr); gap: var(--space-6); align-items: end; padding: var(--space-6) var(--space-6) var(--space-5); border-radius: var(--radius-card-lg); }
.hero-panel-compact .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.hero-panel-compact .hero-metric { padding: var(--space-3) var(--space-3-5); }
.hero-panel-compact .hero-metric .n { font-size: var(--fs-figure); line-height: 1.05; }
.hero-panel-compact .hero-lede { font-size: var(--fs-body); }
.hero-panel-compact h1 { letter-spacing: var(--tr-tight); }

/* "Needs you": ranked, consequence-first, the first thing under the hero. */
.needs-you { margin: 0 0 var(--space-6); }
.needs-you-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.needs-you-head .section-label { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--text-primary); font-size: var(--fs-body); letter-spacing: var(--tr-snug); text-transform: none; }
.needs-you-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--warning); color: var(--accent-text); font-size: var(--fs-caption); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.needs-you-note { margin: 0; color: var(--text-secondary); font-size: var(--fs-caption); }
.attention-list { gap: var(--space-2-5); }
.attention-item { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-card); border-color: var(--border-subtle); box-shadow: var(--elevation-1); }
.attention-item[data-attention-primary="true"] { border-left: 3px solid var(--warning); }
.attention-item .badge + .badge { margin-left: var(--space-1); }
.attention-item h3 { margin: var(--space-1-5) 0 var(--space-1); font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--tr-snug); }
.attention-item p { margin: 0; max-width: 72ch; color: var(--text-body); font-size: var(--fs-body-sm); line-height: var(--lh-body-snug); }
.attention-item .actions { flex-wrap: nowrap; }
.attention-rank { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border-visible); color: var(--text-secondary); font-size: var(--fs-body-sm); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.attention-item[data-attention-primary="true"] .attention-rank { background: var(--chip-warning-bg); border-color: var(--chip-warning-border); color: var(--ink-warning); }
.attention-empty { display: grid; gap: var(--space-1); padding: var(--space-5); border: 1px dashed var(--border-visible); border-radius: var(--radius-card); background: var(--bg-elevated); color: var(--text-secondary); font-size: var(--fs-body-sm); }
.attention-empty strong { color: var(--text-primary); font-size: var(--fs-body); }

/* Secondary actions: quieter than the list above them. */
.cta-strip { margin: 0 0 var(--space-6); }
.cta-card { padding: var(--space-4) var(--space-5); box-shadow: var(--elevation-1); }
.cta-card h3 { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); }
.cta-card p { font-size: var(--fs-body-sm); }
.cta-card .btn { margin-top: var(--space-3); }

/* Figures share one tabular rule wherever a number is compared. */
.pulse-stat .n, .quote-stat-value, .assurance-summary strong, .quote-value strong, .quote-header-value strong, table.figures td.num, .hero-metric .n, .pipeline-count { font-variant-numeric: tabular-nums lining-nums; }
.pulse-stat .n { font-size: var(--fs-figure); }
.assurance-summary strong { font-size: var(--fs-figure-sm); font-weight: var(--fw-bold); color: var(--text-primary); }
.assurance-summary span { color: var(--text-muted); font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; }
.assurance-lanes { gap: var(--space-1); padding: var(--space-1); }
.assurance-guidance { align-items: baseline; }

/* Jobs register: title, state, owner and action on one aligned grid. */
.job-row { grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-card); box-shadow: var(--elevation-1); }
.job-row h3 { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); letter-spacing: var(--tr-snug); }
.job-row .card-meta { margin: var(--space-1) 0 0; }
.job-row > div:nth-child(2) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1-5) var(--space-2); }
.job-row > div:nth-child(2) .card-meta { flex-basis: 100%; margin: 0; }
.filter-bar { align-items: center; margin-bottom: var(--space-4); }
.filter-bar label { flex-direction: row; align-items: center; gap: var(--space-2); }
.filter-bar select { min-width: 12rem; border-color: var(--border-visible); border-radius: var(--radius-sm); background: var(--bg-card-opaque); }

/* Notes read as notes: a rule and a tint, never an input box. */
.callout { border-color: var(--border); border-left-width: 3px; border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text-body); }
.callout.warn { background: var(--chip-warning-bg); }
.callout.error { background: var(--chip-error-bg); }
.empty-state { border-color: var(--border-visible); background: var(--bg-elevated); color: var(--text-secondary); }

/* Page headers share one measure and weight; eyebrows use the accent. */
.page-header { align-items: flex-end; margin-bottom: var(--space-5); }
.page-header h1 { font-weight: var(--fw-bold); letter-spacing: var(--tr-tight); }
.page-header .lede { color: var(--text-secondary); }

/* Knowledge: Ask Brain leads, the desk follows under a plain heading. */
.ask-brain + .section-label { margin-top: var(--space-2); }

/* Buttons: one accent, one quiet outline, no gradients. */
.btn { border-color: var(--border-visible); }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn-primary { border-color: var(--accent); box-shadow: var(--accent-shadow); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* Working state: a steady dot, never a spinner. */
.agent-chat-state[data-agent-state="working"]::before { animation: none; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

@media (max-width: 1100px) {
  .hero-panel-compact { grid-template-columns: 1fr; align-items: start; }
  .hero-panel-compact .hero-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mobile-role-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--bg-card-opaque); }
  .mobile-role-switch label { margin: 0; font-size: var(--fs-label); }
  .mobile-role-switch select { min-height: var(--touch); padding: var(--space-1) var(--space-2); }
  .mobile-role-switch [data-role-preview-note] { grid-column: 1 / -1; margin: 0; font-size: var(--fs-label); }
  .hero-panel-compact { padding: var(--space-5) var(--space-4); }
  .hero-panel-compact .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .attention-item { grid-template-columns: auto minmax(0, 1fr); }
  .attention-item .actions { grid-column: 2; flex-wrap: wrap; }
  .job-row { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
  .agent-chat-turn[data-agent-turn="user"] { max-width: 100%; }
}
@media (max-width: 390px) {
  .attention-item { padding: var(--space-3-5) var(--space-4); }
  .hero-panel-compact .hero-actions .btn { width: 100%; }
}

/* Callouts keep their accent rule; help row never wraps into a stack on a phone. */
.callout { border-left-color: var(--accent); }
.callout.warn { border-left-color: var(--warning); }
.callout.error { border-left-color: var(--error); }
@media (max-width: 900px) {
  .pilot-guidance-collapsed { flex-wrap: nowrap; justify-content: space-between; }
  .pilot-guidance-collapsed .btn { flex: 0 0 auto; width: auto; }
}
@media (max-width: 600px) {
  .pilot-guidance-collapsed { flex-direction: row; }
  .pilot-guidance-collapsed > div { min-width: 0; }
}

/* --- ENG-1225 review round 2 --------------------------------------------- */

/* Workbench header: one status row, one action bar, a flat tab strip, label-style eyebrow,
   the proposed price stated once as the figure (the focus panel refers to it in words). */
.job-id { font-family: var(--font-sans); font-size: var(--fs-label); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.job-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1-5); flex-basis: 100%; }
.job-header-top { row-gap: var(--space-3); }
.job-header .quote-tabs { margin-top: var(--space-4); padding: 0; gap: var(--space-1); background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.job-header .quote-tabs a { padding: var(--space-2-5) var(--space-3); border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-secondary); }
.job-header .quote-tabs a:first-child { background: transparent; color: var(--accent-hover); border-bottom-color: var(--accent); }
.job-header .quote-tabs a:hover { color: var(--text-primary); }
.job-header .quote-action-rail { margin-top: var(--space-3); padding: 0; background: transparent; border: 0; box-shadow: none; }
.job-header .quote-action-rail .btn { min-height: var(--touch); }
.job-header .control-aperture { background: var(--bg-card-opaque); border-color: var(--border); }
.quote-header-value span { color: var(--text-muted); font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; }
.quote-header-value strong { font-size: var(--fs-price); font-weight: var(--fw-bold); letter-spacing: var(--tr-tight); font-variant-numeric: tabular-nums lining-nums; }
.quote-header-value small { display: block; margin-top: var(--space-1); color: var(--text-secondary); font-size: var(--fs-caption); }

/* Assurance dossier: figure over label in every tile, one note line, findings first. */
.assurance-summary div { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-4) var(--space-3-5); background: var(--bg-card-opaque); }
.assurance-summary strong { order: -1; margin: 0; font-size: var(--fs-figure); line-height: 1.05; letter-spacing: var(--tr-tight); color: var(--text-primary); }
.assurance-summary span { color: var(--text-muted); font-size: var(--fs-caption); font-weight: var(--fw-medium); letter-spacing: 0; text-transform: none; }
.assurance-note { margin: 0 0 var(--space-3); padding: var(--space-2-5) var(--space-3-5); border-left: 3px solid var(--warning); border-radius: var(--radius-xs); background: var(--chip-warning-bg); color: var(--text-body); font-size: var(--fs-body-sm); line-height: var(--lh-body-snug); max-width: none; }
.assurance-note strong { color: var(--text-primary); }
.assurance-lanes { margin-bottom: var(--space-4); }
.assurance-dossier .assurance-guidance { margin-top: var(--space-5); }
.assurance-dossier .dependant-invalidation { margin-top: var(--space-2); }

/* Phone (the shell's own phone breakpoint is 600px): Needs you is the second thing on the
   screen. The hero collapses to kicker, title and one primary action; counts sit in one
   compact row; preview/help controls follow the list. */
@media (max-width: 600px) {
  .main:has(.hero-panel-compact) { display: flex; flex-direction: column; }
  .main:has(.hero-panel-compact) > * { order: 5; }
  .main:has(.hero-panel-compact) > .hero-panel-compact { order: 1; }
  .main:has(.hero-panel-compact) > .needs-you { order: 2; }
  .main:has(.hero-panel-compact) > .mobile-role-switch,
  .main:has(.hero-panel-compact) > .pilot-guidance { order: 6; margin-top: var(--space-2); }
  .main:has(.hero-panel-compact) > .app-footer { order: 20; }
  .hero-panel-compact { gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-card); }
  .hero-panel-compact .hero-lede { display: none; }
  .hero-panel-compact h1 { font-size: 1.6rem; }
  .hero-panel-compact .hero-actions { margin-top: var(--space-3); }
  .hero-panel-compact .hero-actions .btn:not(.btn-primary) { display: none; }
  .hero-panel-compact .hero-actions .btn-primary { width: 100%; }
  .hero-panel-compact .hero-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-1-5); }
  .hero-panel-compact .hero-metric { padding: var(--space-2) var(--space-2-5); }
  .hero-panel-compact .hero-metric .n { font-size: var(--fs-figure-sm); }
  .hero-panel-compact .hero-metric .l { font-size: var(--fs-label); }
}
/* The focus panel refers to the price in words; the header carries the figure. */
.quote-value-reference { margin: 0; align-self: end; color: var(--text-secondary); font-size: var(--fs-body-sm); text-align: right; }
