﻿/* Operator-surface styles using shared design tokens (Goal 5 / Phase 1).
   Component-level styling lives alongside each <NeoX> component in
   Components/Shared/*.razor.css. Page-specific styling below this header
   is being migrated to tokens incrementally as each page is redesigned
   in Phase 2; until then, the new --color-* + --space-* tokens defined
   in design-tokens.css transparently back the existing var() references. */

body { margin: 0; font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--color-text); background: var(--color-bg); }

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page-main { flex: 1; padding: var(--space-6); }
.page-content { max-width: 1200px; margin: 0 auto; }

/* Audit detail (/runtime/decisions/{id}). Iter-3 #10 introduces the side-by-side
   comparison; the audit-label/audit-value/audit-json refs from Goal 5's audit
   redesign were never given styles - filling them in here too. */
.audit-label { font-size: var(--text-sm); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.audit-value { font-size: var(--text-md); font-weight: 600; color: var(--color-text); margin-top: 2px; }
.audit-actions { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; }
.audit-replay-meta { font-size: var(--text-sm); color: var(--color-muted); }
.audit-section-h { font-size: var(--text-md); font-weight: 600; margin-top: var(--space-6); margin-bottom: var(--space-2); color: var(--color-text); }
.audit-json {
    background: var(--color-bg);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--color-text-soft);
    max-height: 480px;
    overflow: auto;
    margin: 0;
}
.audit-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.audit-compare-col { display: flex; flex-direction: column; }
.audit-compare-h { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-soft); margin-bottom: var(--space-2); padding-bottom: var(--space-2); border-bottom: var(--border-thin); }
.audit-compare-empty {
    padding: var(--space-4);
    background: var(--color-bg);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-size: var(--text-sm);
    text-align: center;
}
@media (max-width: 768px) {
    .audit-compare { grid-template-columns: 1fr; }
}

/* Iter-4 #8 — dispatcher override form + trail. */
.audit-override-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    max-width: 32rem;
}
.audit-override-field { display: flex; flex-direction: column; gap: var(--space-1); }
.audit-override-field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-soft); }
/* P3-13: the picker-source hint under the load/driver typeahead fields. */
.audit-override-hint { font-size: var(--text-sm); color: var(--color-muted); }
.audit-override-row {
    padding: var(--space-3) 0;
    border-bottom: var(--border-thin);
}
.audit-override-row:last-child { border-bottom: none; }
.live-override-hint { font-size: var(--text-sm); color: var(--color-muted); }

.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-3);
    z-index: 1000;
    padding: var(--space-2) var(--space-3);
    background: var(--color-accent-fill); /* decision 7: AA-safe under white text */
    color: var(--neo-white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: top 0.15s ease-in-out;
}
.skip-link:focus { top: var(--space-2); outline: var(--focus-ring); }
main:focus { outline: none; }
/* P2-13 (three-lens): Blazor's enhanced-nav focus handoff programmatically focuses the H1;
   the stock template ships exactly this suppression and the app.css rewrite dropped it,
   leaving a focus ring on every first paint. */
h1:focus, h1:focus-visible { outline: none; box-shadow: none; }

/* P3-6: two-row header replaces the 2026-06-11 flex-wrap stopgap. Row 1 (.nav-bar) is
   brand + the right cluster; row 2 (.nav-primary) is the grouped link rail. Below the
   laptop breakpoint the rail wraps WITHIN its own row — never a page-wide horizontal
   scrollbar. */
.top-nav { display: flex; flex-direction: column; gap: var(--space-2); background: var(--color-surface); border-bottom: var(--border-thin); padding: var(--space-2) var(--space-6) var(--space-2); }
.top-nav .nav-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.top-nav .nav-primary { flex-wrap: wrap; font-size: var(--text-sm); }
/* Final-walk find: at --text-sm + --space-4 gaps the rail needs ~1300px, so at 1280×900
   the last link wrapped onto a third header line. ≤1366px tightens the rail (12px type,
   --space-3 gaps, slimmer separators) so the full row fits beside a scrollbar at 1280;
   the P2-18 8px label-to-item adjacency is preserved (-4px against the 12px gap). */
@media (max-width: 1366px) {
    .top-nav .nav-primary { gap: var(--space-3); font-size: 12px; }
    .top-nav .nav-primary .nav-sep { margin: 0 var(--space-1); }
    .top-nav .nav-primary .nav-group { margin-right: calc(-1 * var(--space-1)); }
}
.brand-name { font-weight: 600; color: var(--color-accent); }
.tenant-indicator {
    margin-left: var(--space-3);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.4;
}
.nav-links { list-style: none; display: flex; gap: var(--space-4); margin: 0; padding: 0; }
.nav-links a { color: var(--color-text); text-decoration: none; }
/* P3-16: the contrast gate (3:1) caught the active/hover nav state at brand cyan-600
   (2.87:1 on the white header) - the AA-safe text accent is the P2-20 link standard. */
.nav-links a:hover { color: var(--color-accent-text); }
.nav-links a.active { color: var(--color-accent-text); font-weight: 600; }
.nav-placeholder { color: var(--color-muted); font-style: italic; }

.data-table { border-collapse: collapse; width: 100%; max-width: 800px; margin-top: var(--space-3); }
.data-table th, .data-table td { border: var(--border-thin); padding: var(--space-2) var(--space-3); text-align: left; }
.data-table th { background: var(--color-surface); font-weight: 600; }

.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: 0; }
/* P3-2: the live board's right-side header cluster — freshness stamp + Recompute. */
.live-header-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.error { color: var(--color-error); }

.btn { display: inline-block; padding: var(--space-2) var(--space-4); border: var(--border-thin); background: var(--color-surface); color: var(--color-text); text-decoration: none; border-radius: var(--radius-sm); cursor: pointer; font: inherit; }
.btn:hover { background: var(--neo-grey-100); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* P2-20 / decision 7: filled primary buttons ride the AA-safe fill step (cyan-700,
   4.17:1 under white text); hover steps one darker (cyan-800). */
.btn-primary { background: var(--color-accent-fill); color: var(--neo-white); border-color: var(--color-accent-fill); }
.btn-primary:hover { background: var(--color-accent-fill-hover); }
/* P0-7: the operator .btn-secondary (design-direction §6). marketing.css's dark-hero
   variant used to leak in globally and paint these white-on-white. */
.btn-secondary { background: var(--neo-white); color: var(--neo-navy-800); border-color: var(--neo-grey-200); }
.btn-secondary:hover { background: var(--neo-grey-50); }
.btn-danger { color: var(--color-error); border-color: var(--color-error); }
.btn-danger:hover { background: var(--color-error-soft); }

.metadata-panel { background: var(--color-surface); padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label { font-weight: 600; font-size: 13px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.form-input { padding: 8px; border: 1px solid var(--color-border); border-radius: 4px; font: inherit; }
.form-textarea { resize: vertical; min-height: 60px; }
.lineage-badge { display: inline-block; padding: 4px 8px; background: var(--neo-grey-100); border-radius: 4px; font-size: 12px; color: var(--color-muted); margin-top: 4px; }

.components-table-wrap { background: var(--color-surface); padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; }
.components-table-wrap h2 { margin-top: 0; }
.components-table { max-width: none; }
.empty-state {
    color: var(--color-muted);
    font-size: var(--text-sm);
    padding: var(--space-4);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    margin: var(--space-3) 0;
    text-align: center;
}
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.selected-row { background: var(--color-accent-soft); }
.add-component-row { margin-top: 12px; }

.component-editor { background: var(--color-surface); padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; }
.component-editor h3 { margin-top: 0; }
.form-row-inline { display: flex; gap: 16px; }
.form-row-inline > .form-row { flex: 1; }
.monaco-shell { border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; height: 240px; }

.preview-pane { background: var(--color-surface); padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; }
.preview-pane h2 { margin-top: 0; }
.preview-table { max-width: none; font-size: 13px; }
.preview-table code { font-size: 12px; }
.error-badge { display: inline-block; padding: 2px 6px; background: var(--color-error-soft); color: var(--color-error-text); border-radius: 3px; font-size: 12px; }

.action-bar { display: flex; gap: 8px; }
.dataset-picker { background: var(--color-surface); padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; display: flex; align-items: end; gap: 12px; }
.dataset-picker label { font-weight: 600; font-size: 13px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.dataset-picker > select { flex: 1; }
.dataset-picker .empty-state { margin: 0; }

.gantt-wrap { background: var(--color-surface); padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; }
.gantt-wrap h2 { margin-top: 0; }
.gantt-scroller { overflow-x: auto; max-width: 100%; }
.gantt-grid { position: relative; min-height: 60px; }
/* P3-15: the axis shares the driver rows' column template so tick positions align
   with the bar tracks (they previously sat 148px left of every bar). */
.gantt-axis-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.gantt-time-axis { position: relative; height: 24px; border-bottom: 1px solid var(--color-border); margin-bottom: 8px; }
.gantt-hour-tick { position: absolute; top: 0; font-size: 11px; color: var(--color-muted); border-left: 1px dashed var(--color-border); padding-left: 2px; height: 24px; white-space: nowrap; }
.gantt-driver-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--color-border); }
.gantt-driver-label { font-size: 12px; }
.gantt-driver-label strong { display: block; font-family: monospace; }
.gantt-driver-name { color: var(--color-muted); font-size: 11px; }
.gantt-driver-track { position: relative; height: 28px; }
.load-bar { position: absolute; height: 22px; top: 3px; background: var(--color-accent); color: var(--neo-white); border: none; border-radius: 3px; font-size: 11px; padding: 0 6px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.load-bar:hover { background: var(--color-accent-strong); }
.load-bar-late { background: var(--color-error); }
.load-bar-late:hover { background: var(--color-error); }

/* P3-7: run-detail "vs your manual board" delta chip. Tint signals direction;
   the text always carries the real signed value. */
.baseline-delta-chip { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.baseline-delta-ahead { background: var(--color-success-soft); color: var(--color-success-text); }
.baseline-delta-behind { background: var(--color-warning-soft); color: var(--color-warning-text); }

/* Score decomposition layout (shared by ScorePane and DecompositionDeltaTable). */
.decomposition-wrap { background: var(--color-surface); padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; }
.decomposition-wrap h2 { margin-top: 0; }
.total-score-banner { display: flex; align-items: baseline; gap: 12px; background: var(--color-accent-soft); padding: 12px 16px; border-radius: 4px; margin-bottom: 12px; }
.total-score-label { font-size: 13px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.total-score-value { font-size: 28px; font-weight: 600; color: var(--color-accent-text); font-family: monospace; }
.errors-block { background: var(--color-error-soft); color: var(--color-error-text); padding: 12px 16px; border-radius: 4px; margin-bottom: 12px; font-size: 13px; }
.errors-block ul { margin: 4px 0 0 24px; padding: 0; }
.decomposition-table { max-width: none; }

/* P2-16 (three-lens): the Loads & Drivers tab strip (TrainingDataTabBar) had ZERO CSS
   anywhere — the tabs rendered as bare inline links. Underline-style tab bar on tokens;
   the active state tracks the URL via the P0-5 query-param re-bind. */
.evaluation-tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: var(--border-thin);
    margin: var(--space-4) 0 0;
}
.evaluation-tabs .tab {
    padding: var(--space-2) var(--space-4);
    margin-bottom: -1px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.evaluation-tabs .tab:hover {
    color: var(--color-text);
    background: var(--neo-grey-100);
}
.evaluation-tabs .tab:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.evaluation-tabs .tab-active {
    color: var(--color-accent-text);
    border-bottom-color: var(--color-accent);
}
.evaluation-tab-content {
    padding-top: var(--space-4);
}

/* Schedule summary + filter-strip (shared by SummaryPane and TrainingData tabs). */
.schedule-summary { display: flex; gap: 16px; font-size: 14px; color: var(--color-muted); }
.schedule-summary strong { color: var(--color-text); }
.filter-strip { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; background: var(--color-surface); padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 24px; }
.filter-strip .filter-row { display: flex; flex-direction: column; gap: 4px; }
.filter-strip .filter-row label { font-size: 12px; color: var(--color-muted); }

/* DecompositionDeltaTable */
.total-banner-row { display: flex; gap: 12px; margin-bottom: 16px; }
.total-banner-row .total-score-banner { flex: 1; }
.total-delta-banner { background: var(--color-warning-soft); }
.delta-positive { color: var(--color-success); font-weight: 600; }
.delta-negative { color: var(--color-error); font-weight: 600; }

/* Compare Page */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) {
    .compare-grid { grid-template-columns: 1fr; }
}

.preview-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.preview-actions-hint { color: var(--color-muted); font-size: 12px; }

/* Subsystem #9 P1 - nav group separators. Batch 6 fix: the rgba(255,255,255,0.25)
   separator was invisible on the Goal-5 white top-nav surface. */
.top-nav .nav-sep { width: 1px; align-self: center; height: 1.1rem; background: var(--color-border); margin: 0 0.35rem; }
/* P2-18 (three-lens): group labels read as section headers, not broken links. The label
   sits 8px from its first item (negative margin against the 16px flex gap) so it visually
   owns the group. --color-text-soft, NOT --color-muted: muted is 2.9:1 at this size. */
.top-nav .nav-group { display: flex; align-items: center; margin-right: calc(-1 * var(--space-2)); }
.top-nav .nav-group .label {
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--color-text-soft);
}

/* Subsystem #9 P1 + operator-polish pass - dashboard. ---------------------
   The classes below back /dashboard (Components/Pages/Home.razor). Goal 5
   redesigned the count cards (NeoCard / NeoCardGrid) but left dash-section-h,
   dash-links, stat-label, stat-value, empty-state without real styles - the
   browser was falling back to defaults which made the operator pages feel
   bare. This block defines them token-first. */

.dash-tiles { display: flex; gap: var(--space-4); flex-wrap: wrap; margin: var(--space-4) 0; }
.dash-tile { border: var(--border-thin); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); min-width: 7rem; background: var(--color-surface); }
.dash-num { font-size: var(--text-xl); font-weight: 700; color: var(--color-text); letter-spacing: -0.01em; }
.dash-cap { font-size: var(--text-sm); color: var(--color-text-soft); margin-top: var(--space-1); }
.dash-next { margin: var(--space-2) 0 var(--space-4); }
.dash-recent { list-style: none; padding: 0; margin: var(--space-3) 0 var(--space-8); }
.dash-recent li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-surface); border: var(--border-thin); border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.dash-recent li a { color: var(--color-accent-text); text-decoration: none; font-weight: 600; }
.dash-recent li a:hover { text-decoration: underline; }
.dash-unavailable { color: var(--color-error); }
/* Iter-4 #4 (/today) — sub-line under a tile number (e.g. "2 hour(s) ago last activity")
   and the warning emphasis applied to the "Running late" count when it is greater than zero. */
.dash-sub { font-size: var(--text-sm); color: var(--color-text-soft); margin-top: var(--space-1); }
.dash-warning { color: var(--color-warning); }

/* Section headings within the dashboard (and reused by anyone who reaches for it). */
.dash-section-h {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-8) 0 var(--space-3);
    letter-spacing: -0.005em;
}

/* Quick-link tile row. The .dash-links container holds a series of <a> chips
   that should read as actionable tiles, not bare browser-blue links. */
.dash-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
    margin: var(--space-3) 0 var(--space-6);
}
.dash-links a {
    display: block;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: var(--border-thin);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: var(--leading-base);
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.dash-links a:hover,
.dash-links a:focus-visible {
    border-color: var(--color-accent);
    border-left-color: var(--color-accent-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    outline: none;
}

/* Generic stat label / value pair used on TrainingRuns/Detail + likely
   anywhere else operator code wants a "small caption + big number" pattern. */
.stat-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-1);
}
.stat-value {
    display: block;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    line-height: var(--leading-lg);
    letter-spacing: -0.01em;
}

/* Iter-3 #15 — Runtime fleet-posture rollup tile. Lays four "stat-label /
   stat-value" pairs across one row at desktop widths; collapses to a 2x2
   grid below the typical-tablet breakpoint. */
.runtime-rollup-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}
.runtime-rollup-cell {
    padding: var(--space-2) 0;
}
@media (max-width: 720px) {
    .runtime-rollup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Batch 2 — decision-origin badge on the /runtime Recent-decisions tile. A small
   muted pill (the .lineage-badge shape on tokens) so machine recomputes read
   differently from manual decisions at a glance. */
.decision-source-badge {
    display: inline-block;
    padding: 2px var(--space-2);
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-muted);
    white-space: nowrap;
}

/* Iter-3 #14 — Plain-English decision summary above each audit JSON column.
   Matches the info-callout aesthetic (accent-soft bg + accent-strong border)
   so the eye reads it as a hint not body copy. */
.audit-decision-summary {
    margin: var(--space-2) 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--color-accent-soft);
    border-left: 3px solid var(--color-accent-strong);
    font-size: var(--text-sm);
    color: var(--color-text);
    line-height: var(--leading-md);
}

/* Subsystem #9 P2 - Dispatch grid. */
.dispatch-filter-bar { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0; }
.dispatch-filter-bar .form-input { max-width:14rem; }
.dispatch-table { width:100%; }
.dispatch-group-row { background:var(--color-accent-soft); cursor:pointer; }
.dispatch-load-row { cursor:pointer; }
.dispatch-stop-row { font-size:.82rem; color:var(--color-text-soft); background:var(--color-bg); }
.dispatch-row-ok { background:var(--color-success-soft); }
.dispatch-row-idle { background:var(--color-warning-soft); }
.dispatch-row-unassigned { background:var(--color-error-soft); }
.dispatch-row-late { background:var(--color-warning-soft); }
.dispatch-row-failure { background:var(--color-error-soft); }
/* token-gap: selection outline needs a strong affordance blue - var(--color-accent) is too
   light against the row tints and no AA-safe accent affordance token exists yet. */
.dispatch-selected { outline:2px solid #36c; }
.dispatch-badge { font-size:.66rem; padding:1px 5px; border-radius:3px; margin-left:6px; }
.dispatch-badge-idle { background:var(--color-success-soft); }
.dispatch-badge-unassigned { background:var(--color-error); }
.dispatch-badge-failure { background:var(--color-error); color:var(--neo-white); }
.dispatch-badge-late { background:var(--color-warning); color:var(--neo-white); }
/* replan §4 — a committed/dispatched load (IsCommitted). */
.dispatch-badge-committed { background:var(--color-success); color:var(--neo-white); }
.dispatch-rollup { font-size:.72rem; color:var(--color-text-soft); margin-left:8px; }
/* Section 4 — requested-window annotation below the projected time. */
.dispatch-requested { font-size:.68rem; color:var(--color-text-soft); }

/* Subsystem #9 P2 - Schedule panes. */
.schedule-summary-cards { display:flex; gap:6px; flex-wrap:wrap; }
.sched-card { border:var(--border-thin); border-radius:5px; padding:5px 9px; }
/* token-gap: exception magenta - intentionally outside the status ramps so exception
   cards cannot be confused with error/warning states; no token family covers it. */
.sched-card-exc { border:2px solid #c08; background:#fde; cursor:pointer; }
.sched-card-cap { font-size:.66rem; opacity:.7; }
.sched-card-val { font-size:1rem; font-weight:600; }
/* P2-17: at zero the tiles drop .sched-card-exc (the alarm fill + cursor above) but
   they stay live cross-filter hooks - keep the pointer affordance on the hooks. */
.sched-card-unplanned-drivers,
.sched-card-unplanned-loads {
    cursor: pointer;
}
.score-scope { font-size:.78rem; color:var(--color-text-soft); margin-bottom:4px; }
.neo-stop-badge span { display:flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; color:var(--neo-white); font-size:.7rem; border:2px solid var(--neo-white); }
.schedule-map-el { height:420px; border:var(--border-thin); }
.map-prompt { padding:18px; color:var(--color-muted); }
/* §8 HERE routing — schedule map legend. */
.neo-map-legend { background:rgba(255,255,255,0.92); border:var(--border-strong); border-radius:4px; padding:8px 10px; font-size:.78rem; line-height:1.6; }
.neo-map-legend strong { display:block; margin-bottom:4px; font-size:.8rem; }
.neo-map-legend-row { display:flex; align-items:center; gap:6px; }
.neo-map-legend-source { margin-top:4px; font-size:.72rem; color:var(--color-text-soft); }
.neo-map-legend-dot { display:inline-block; width:8px; height:8px; border-radius:50%; }

/* Subsystem #9 P2 - Schedule shell. */
.schedule-band { border:var(--border-thin); border-radius:6px; padding:8px; margin:8px 0; }
.schedule-mid { display:flex; gap:8px; }
.schedule-mid .schedule-dispatch { flex:2; }
.schedule-mid .schedule-score { flex:1; }
/* Narrow viewports (2026-06-11): the mid row's min-content width (dispatch table +
   score banner) pushed the score band past the viewport edge. Panes may shrink below
   content width and scroll inside their own band; under 900px the row stacks. */
.schedule-mid .schedule-band { min-width:0; overflow-x:auto; }
@media (max-width: 900px) {
    .schedule-mid { flex-direction:column; }
    .schedule-mid .schedule-dispatch, .schedule-mid .schedule-score { flex:none; }
}

/* Subsystem #9 P2-4 - flow map. */
.schedule-flowmap-el { height:420px; border:var(--border-thin); }

/* Subsystem #9 P3-1 - starter cards on /algorithms empty-state. */
.starter-card-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; margin:16px 0; }
.starter-card { display:block; background:var(--color-surface); border:var(--border-thin); border-radius:6px; padding:12px 14px; text-decoration:none; color:inherit; }
.starter-card:hover { border-color:var(--color-accent); box-shadow:var(--shadow-md); }
/* P2-20 (2026-06-10): accent-colored text rides the minted AA-safe token. */
.starter-card-name { font-weight:600; color:var(--color-accent-text); margin-bottom:4px; }
.starter-card-desc { font-size:13px; color:var(--color-text-soft); margin-bottom:6px; }
.starter-card-meta { font-size:11px; color:var(--color-muted); }
.empty-state-note { color: var(--color-text-soft); font-size: var(--text-sm); }

/* Shared filter strip used above operator data tables (Schedules, Brains, etc.). */
.filter-bar {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
    margin: var(--space-3) 0 var(--space-4);
    padding: var(--space-3);
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-md);
}
.filter-bar .form-input,
.filter-bar select {
    max-width: 14rem;
}
.page-header.sub-header { margin-top:24px; padding:0; border-bottom:none; }
.page-header.sub-header h2 { font-size:18px; margin:0; }

/* Plan 9-P3-1 task 4 - template strip on /algorithms/new. */
.template-strip { background:var(--color-warning-soft); border:1px solid var(--color-warning); border-radius:6px; padding:10px 12px; margin:12px 0; }
.template-strip-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.template-strip-dismiss { background:transparent; border:none; font-size:14px; color:var(--color-muted); cursor:pointer; padding:2px 8px; }
.template-strip-dismiss:hover { color:var(--color-error); }
.template-strip-cards { display:flex; gap:8px; flex-wrap:wrap; }
.template-strip-card { background:var(--color-surface); border:var(--border-thin); border-radius:4px; padding:6px 10px; font-size:12px; cursor:pointer; text-align:left; min-width:140px; }
.template-strip-card:hover { border-color:var(--color-accent); }
.template-strip-card.template-strip-blank { background:var(--color-accent-soft); }
.template-strip-card .t-name { font-weight:600; }
.template-strip-card .t-desc { font-size:10.5px; color:var(--color-muted); }

/* Plan 9-P3-1 task 5 - two-pane component editor with always-visible reference pane. */
.component-editor-two-pane { display:grid; grid-template-columns:1fr 280px; gap:16px; align-items:flex-start; }
.component-editor-left { min-width:0; }
.component-editor-right { position:sticky; top:16px; max-height:calc(100vh - 80px); overflow-y:auto; }
.ref-pane { background:var(--color-bg); border:var(--border-thin); border-radius:6px; padding:10px 12px; font-size:12px; }
/* P2-20 (2026-06-10): migrated to var(--color-accent-text), the minted AA-safe accent
   for text (4.69:1 on accent-soft). */
.ref-pane .ref-concept { background:var(--color-accent-soft); color:var(--color-accent-text); padding:6px 8px; border-radius:4px; font-size:11.5px; margin-bottom:10px; }
.ref-pane .ref-label { font-size:10px; text-transform:uppercase; letter-spacing:0.4px; color:var(--color-muted); margin:8px 0 4px 0; }
.ref-pane .ref-cat { font-size:10px; font-weight:600; color:var(--color-text-soft); margin-top:6px; }
.ref-pane .ref-field-btn { display:flex; justify-content:space-between; gap:6px; background:transparent; border:none; padding:2px 0; cursor:pointer; width:100%; text-align:left; }
.ref-pane .ref-field-btn:hover { background:var(--neo-grey-100); }
.ref-pane .ref-field-btn code { background:var(--neo-grey-100); padding:1px 5px; border-radius:2px; font-size:11px; }
.ref-pane .ref-type { font-size:10px; color:var(--color-muted); }
.ref-pane .ref-field-desc { font-size:10px; color:var(--color-muted); padding:0 0 4px 8px; }
.ref-pane .ref-snippet-btn { display:block; background:var(--color-surface); border:var(--border-thin); border-radius:3px; padding:4px 7px; margin-top:4px; font-size:11px; cursor:pointer; width:100%; text-align:left; }
.ref-pane .ref-snippet-btn:hover { background:var(--color-accent); color:var(--neo-white); border-color:var(--color-accent); }

/* Plan 9-P3-2 task 4 - visual composer. */
.visual-composer { display:grid; grid-template-columns:170px 1fr 280px; gap:12px; align-items:flex-start; }
.vc-palette { background:var(--color-bg); border:var(--border-thin); border-radius:6px; padding:8px; }
.vc-canvas { background:var(--color-surface); border:var(--border-thin); border-radius:6px; padding:8px; min-height:280px; }
.vc-preview { background:var(--color-bg); border:var(--border-thin); border-radius:6px; padding:8px; }

.ingredient-palette h5, .canvas-area h5, .mini-preview h5 { margin:0 0 6px 0; font-size:10px; text-transform:uppercase; letter-spacing:0.4px; color:var(--color-muted); }

.palette-group { margin-bottom:8px; }
.palette-group-head { font-size:9px; text-transform:uppercase; color:var(--color-muted); margin-bottom:3px; }
.ingredient-card { display:block; width:100%; background:var(--color-surface); border:var(--border-thin); border-radius:4px; padding:5px 7px; margin-bottom:4px; cursor:pointer; text-align:left; }
.ingredient-card:hover { border-color:var(--color-success); }
/* token-gap: wildcard purple - deliberately outside every status/accent ramp so the
   wildcard ingredient reads as "different in kind"; no purple token family exists. */
.ingredient-card.ingredient-wildcard { background:#faf5ff; border-color:#d8b4fe; }
.ingredient-name { font-weight:600; font-size:11px; }
.ingredient-desc { font-size:9.5px; color:var(--color-muted); }

.canvas-empty { text-align:center; padding:60px 10px; color:var(--color-muted); font-size:11px; border:2px dashed var(--color-border); border-radius:6px; }
.canvas-row { display:flex; align-items:center; gap:6px; background:var(--color-bg); border:var(--border-thin); border-radius:4px; padding:6px 8px; margin-bottom:6px; }
.canvas-row.canvas-row-custom { background:var(--color-warning-soft); border-color:var(--color-warning); }
.canvas-row .cn { font-weight:600; font-size:11px; flex:0 0 130px; }
.canvas-row input[type=range] { flex:1; }
/* P2-20 (2026-06-10): accent-colored text rides the minted AA-safe token. */
.canvas-row .cval { font-size:10.5px; color:var(--color-accent-text); font-weight:600; min-width:32px; text-align:right; }
.canvas-row .crem { color:var(--color-error); font-size:11px; cursor:pointer; background:transparent; border:none; }
/* token-gap: gold custom badge - the "custom ingredient" gold sits outside the
   warning ramp on purpose; no gold/brand token exists. */
.canvas-row .custom-badge { background:#e6c200; color:var(--neo-white); font-size:10px; padding:1px 6px; border-radius:6px; flex:1; }

.mini-preview .ms-driver { background:var(--color-surface); border:var(--border-thin); border-radius:4px; padding:5px 7px; margin-bottom:6px; font-size:10.5px; }
.mini-preview .dname { font-weight:600; }
.mini-preview .dscore { float:right; font-family:Consolas,monospace; }
.mini-preview .dscore.pos { color:var(--color-success); }
.mini-preview .dscore.neg { color:var(--color-error); }
.mini-preview .dscore.zero { color:var(--color-muted); }
.mini-preview .idle { font-size:9px; color:var(--color-muted); font-style:italic; }
.mini-preview .ms-loads { display:flex; gap:3px; margin-top:4px; flex-wrap:wrap; }
.mini-preview .ld { font-size:8.5px; padding:2px 5px; border-radius:3px; color:var(--neo-white); background:var(--color-muted); }
.mini-preview .ld.pos { background:var(--color-success); }
.mini-preview .ld.neg { background:var(--color-error); }
.mini-preview .ms-total { text-align:right; font-size:12px; font-weight:600; padding:4px 7px; background:var(--color-bg); border-radius:4px; margin-top:6px; }
.mini-preview .ms-custom-note { font-size:9.5px; color:var(--color-muted); margin-top:6px; font-style:italic; }

/* Plan 9-P3-2 task 5 - editor mode toggle. */
.editor-mode-toggle { margin:8px 0; }
.mode-tabs { display:inline-flex; background:var(--color-surface); border:var(--border-thin); border-radius:5px; overflow:hidden; }
.mode-tab { padding:6px 14px; font-size:12px; cursor:pointer; background:transparent; border:none; }
.mode-tab.active { background:var(--color-accent); color:var(--neo-white); }
.lossy-banner { background:var(--color-warning-soft); border:1px solid var(--color-warning); border-radius:4px; padding:6px 10px; margin-top:6px; font-size:11px; color:var(--color-warning-text); }

/* Plan 9-P3-3 task 1 - dashboard journey strip. */
.journey-strip { display:flex; gap:6px; align-items:center; margin:12px 0 20px 0; }
.journey-strip-loading { color:var(--color-muted); font-size:12px; padding:8px 0; }
.js-stage { flex:1; display:block; background:var(--color-surface); border:var(--border-thin); border-radius:4px; padding:8px 10px; text-decoration:none; color:inherit; font-size:11.5px; min-width:140px; }
.js-stage:hover { border-color:var(--color-accent); }
.js-stage.js-done { background:var(--color-success-soft); border-color:var(--color-success); }
.js-stage.js-current { background:var(--color-accent-soft); border-color:var(--color-accent); box-shadow:var(--focus-ring); }
.js-stage.js-locked { background:var(--color-bg); color:var(--color-muted); }
.js-stage-name { font-weight:600; }
.js-stage-meta { font-family:Consolas,monospace; font-size:10.5px; margin-top:2px; }
.js-arrow { color:var(--color-muted); font-family:Consolas,monospace; font-size:14px; }

/* P2-26 - the completed-setup chip the strip collapses into. Token-based, mirrors
   the .js-done stage treatment at chip scale. */
.journey-strip-complete {
    margin: 12px 0 20px 0;
}

.js-complete-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--color-success-soft);
    border: 1px solid var(--color-success);
    border-radius: 4px;
    font-family: inherit;
    font-size: 11.5px;
    color: inherit;
    cursor: pointer;
}

.js-complete-chip:hover {
    border-color: var(--color-accent);
}

.js-complete-label {
    font-weight: 600;
}

.js-complete-meta {
    font-family: Consolas, monospace;
    font-size: 10.5px;
}

.js-complete-expand {
    color: var(--color-text-soft);
    text-decoration: underline;
}

/* Plan 9-P3-3 task 2 - sample-datasets two-path cards. */
.scenario-paths { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:16px 0; }
.scenario-path { display:block; background:var(--color-surface); border:var(--border-thin); border-radius:6px; padding:14px 16px; text-decoration:none; color:inherit; }
.scenario-path:hover { border-color:var(--color-accent); }
/* P2-20 (2026-06-10): accent-colored text rides the minted AA-safe token. */
.scenario-path-name { font-weight:600; font-size:14px; color:var(--color-accent-text); margin-bottom:6px; }
.scenario-path-desc { font-size:12px; color:var(--color-text-soft); line-height:1.5; }

/* Plan 9-P3-3 task 3 - shared page-hint banner. */
.page-hint-banner {
    background: var(--color-accent-soft);
    border-left: 3px solid var(--color-accent);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    margin: var(--space-2) 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-accent-strong);
}
.page-hint-banner strong { font-weight: 600; margin-right: var(--space-1); }

/* Goal 6 - actionable CTAs on PageHint banners + bottom-of-page Next Step CTA. */
.page-hint-cta {
    display: inline-block;
    margin-left: var(--space-2);
    padding: 3px var(--space-2);
    background: var(--color-accent-fill); /* decision 7: AA-safe under white text */
    color: var(--neo-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
}
.page-hint-cta:hover { background: var(--color-accent-fill-hover); }
.next-step-cta-wrap { display:flex; justify-content:flex-end; margin:24px 0 16px 0; }
.next-step-cta { display:inline-block; padding:8px 16px; background:var(--color-accent-fill); color:var(--neo-white); text-decoration:none; border-radius:4px; font-size:13px; font-weight:600; }
.next-step-cta:hover { background:var(--color-accent-fill-hover); }
.next-step-arrow { margin-left:6px; font-family:Consolas,monospace; }

/* Goal 6 - NavMenu next-step indicator dot. */
.nav-links .js-next-step::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neo-cyan-500);
    margin-left: 8px;
    vertical-align: middle;
}

/* Owner page sections (iteration-2 U6). ------------------------------- */
.form-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.form-section h2 {
    font-size: 18px;
    margin: 0 0 6px;
}

.owner-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
}

.owner-list li {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 6px;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* token-gap: gold raw-key callout - "copy this now, it will not be shown again" needs
   to read more urgent than the warning ramp; no gold token family exists. */
.raw-key-callout {
    margin: 12px 0;
    padding: 12px 16px;
    background: #fffbea;
    border: 1px solid #f0c000;
    border-radius: 4px;
}

.raw-key-callout p {
    margin: 0 0 6px;
}

.raw-key-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.raw-key-row .raw-key-value {
    flex: 1;
    margin: 0;
}

.btn-copy-key {
    flex: 0 0 auto;
}

.raw-key-value {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    word-break: break-all;
    padding: 6px 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 3px;
}

.btn-revoke {
    margin-left: auto;
}

/* Auth pages (Login / Setup / Logout) - Goal 5 P3 T26. ------------------ */

.auth-form-header {
    margin-bottom: var(--space-6);
}

.auth-form-h {
    margin: 0 0 var(--space-2);
    font-size: var(--text-lg);
    line-height: var(--leading-lg);
    font-weight: 700;
    color: var(--neo-navy-900);
    letter-spacing: -0.01em;
}

.auth-form-sub {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
    color: var(--neo-grey-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--neo-navy-700);
    margin-bottom: var(--space-1);
    text-transform: none;
    letter-spacing: 0;
}

.auth-input {
    height: 36px;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
    border: 1px solid var(--neo-grey-200);
    border-radius: var(--radius-md);
    background: var(--neo-white);
    color: var(--neo-navy-900);
    font-family: inherit;
}

/* P1-8 (three-lens): why-we-ask trust copy under the SCAC/DOT fields on /signup. */
.auth-field-hint {
    margin: var(--space-1) 0 0;
    font-size: var(--text-xs);
    line-height: var(--leading-sm);
    color: var(--neo-grey-500);
}

/* P1-12 (three-lens): operator-shell 404 body. */
.nf-operator {
    max-width: 560px;
    margin: var(--space-16) auto;
    text-align: center;
    color: var(--color-text);
}

.auth-input:focus {
    outline: 2px solid var(--neo-cyan-500);
    outline-offset: 0;
    border-color: var(--neo-cyan-500);
}

.auth-submit {
    margin-top: var(--space-2);
    height: 44px;
    padding: 0 var(--space-6);
    background: var(--color-accent-fill); /* decision 7: AA-safe under white text */
    color: var(--neo-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 120ms ease;
}

.auth-submit:hover {
    background: var(--color-accent-fill-hover);
}

.auth-submit:focus-visible {
    outline: 2px solid var(--neo-cyan-500);
    outline-offset: 2px;
}

.auth-form-footer {
    margin-top: var(--space-5);
    font-size: var(--text-sm);
    color: var(--neo-grey-500);
    text-align: center;
}

.auth-form-footer a {
    color: var(--neo-cyan-700);
}

/* P0-1 — /setting-up provisioning progress (indeterminate). */
.setup-progress {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.setup-progress-track {
    height: 6px;
    border-radius: var(--radius-md);
    background: var(--neo-grey-200);
    overflow: hidden;
}

.setup-progress-fill {
    width: 40%;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--neo-cyan-600);
    animation: setup-progress-slide 1.4s ease-in-out infinite;
}

@keyframes setup-progress-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.setup-progress-note {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
    color: var(--neo-grey-500);
}

/* Plan 11-4 - Live Operations page. */
.ops-grid { display:flex; flex-direction:column; gap:16px; margin-top:12px; }
.ops-form-row { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; max-width:520px; }
.ops-form-row label { font-size:12px; font-weight:600; }

/* P2-21 - inline field error under the Webhook URL input. */
.ops-field-error {
    color: var(--color-error-text);
    font-size: 11.5px;
    margin-top: 4px;
}

/* P2-24 - the Integration-settings disclosure on /live/operations. */
.ops-integrations {
    border: var(--border-thin);
    border-radius: 6px;
    background: var(--color-surface);
}

.ops-integrations-summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
}

.ops-integrations[open] > .ops-integrations-summary {
    border-bottom: var(--border-thin);
}

.ops-integrations-failures {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-error-soft);
    color: var(--color-error-text);
    font-size: 11px;
    font-weight: 600;
}

.ops-integrations-body {
    display: grid;
    gap: 16px;
    padding: 12px 16px 16px;
}

/* P3-10 - upload tab 4-step strip. */
.upload-steps { display:flex; gap:8px; list-style:none; margin:0 0 16px 0; padding:0; }
.us-step { display:flex; align-items:center; gap:6px; padding:6px 12px; border:var(--border-thin); border-radius:var(--radius-sm); background:var(--color-bg); color:var(--color-muted); font-size:var(--text-sm); }
.us-step.us-current { background:var(--color-accent-soft); border-color:var(--color-accent); color:var(--color-text); font-weight:600; }
.us-step.us-done { background:var(--color-success-soft); border-color:var(--color-success); color:var(--color-text); }
.us-num { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:var(--color-surface); border:var(--border-thin); font-size:11px; font-weight:600; }

/* P3-10 - field reference + template download. */
.field-ref-table { font-size:13px; }
.field-ref-table code { font-size:12px; }
.template-download-row { display:flex; align-items:center; gap:12px; margin:12px 0 16px 0; }

/* P3-8 - sample fleet block (upload tab) + the /today empty-callout CTA. */
.sample-fleet-block { margin-top:20px; padding:14px 16px; border:var(--border-thin); border-radius:var(--radius-md); background:var(--color-surface); max-width:640px; }
.sample-fleet-title { font-weight:600; margin-bottom:4px; }
.sample-fleet-actions { display:flex; gap:8px; margin-top:8px; }
.today-sample-cta { display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }
.today-sample-desc { font-size:var(--text-sm); color:var(--color-text-soft); max-width:48ch; }
.today-sample-result { font-size:var(--text-sm); margin:8px 0 0 0; }

/* P3-8 - inline add-load / add-driver forms on the Loads & Drivers tabs. */
.add-entity-form { margin:12px 0 16px 0; padding:14px 16px; border:var(--border-thin); border-radius:var(--radius-md); background:var(--color-surface); max-width:900px; }
.add-entity-form h3 { margin-top:0; }

/* P3-9 - scenario create form on /sample-datasets. */
.scenario-create-form { margin:16px 0; padding:14px 16px; border:var(--border-thin); border-radius:var(--radius-md); background:var(--color-surface); max-width:720px; }
.scenario-create-heading { margin:0 0 4px 0; font-size:var(--text-lg); }

/* P3-11 - "Finish setting up (N of M)" nav chip (right cluster, dismissible). */
.setup-chip { display:inline-flex; align-items:center; gap:4px; padding:2px 4px 2px 10px; border:1px solid var(--color-accent); border-radius:999px; background:var(--color-accent-soft); }
.setup-chip .setup-chip-link { font-size:var(--text-sm); font-weight:600; color:var(--color-accent-text); }
.setup-chip .setup-chip-dismiss { border:none; background:transparent; cursor:pointer; color:var(--color-text-soft); font-size:var(--text-base); line-height:1; padding:2px 6px; border-radius:50%; }
.setup-chip .setup-chip-dismiss:hover { color:var(--color-text); background:var(--color-bg); }

/* P3-11 - onboarding wizard stepper (/onboarding). */
.onb-steps { list-style:none; margin:16px 0 0 0; padding:0; display:flex; flex-direction:column; gap:12px; max-width:860px; }
.onb-step { padding:14px 16px; border:var(--border-thin); border-radius:var(--radius-md); background:var(--color-bg); }
.onb-step.onb-current { background:var(--color-surface); border-color:var(--color-accent); }
.onb-step.onb-done { background:var(--color-success-soft); border-color:var(--color-success); }
.onb-step.onb-locked { color:var(--color-text-soft); }
.onb-step-head { display:flex; align-items:center; gap:10px; }
.onb-num { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:var(--color-surface); border:var(--border-thin); font-size:var(--text-sm); font-weight:600; flex:none; }
/* White text rides the AA-safe fill (decision 7), never the raw brand accent. */
.onb-step.onb-current .onb-num { background:var(--color-accent-fill); color:var(--neo-white); border-color:var(--color-accent-fill); }
.onb-step-title { font-weight:600; font-size:var(--text-md); }
.onb-step-state { margin-left:auto; font-size:var(--text-sm); font-weight:600; color:var(--color-text-soft); }
.onb-step.onb-done .onb-step-state { color:var(--color-success); }
.onb-step-desc { margin:8px 0 0 34px; max-width:72ch; }
.onb-step-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0 34px; }
.onb-step-note { margin:10px 0 0 34px; font-size:var(--text-sm); color:var(--color-text-soft); max-width:72ch; }
.onb-shortcut-actions { margin-top:10px; }
.onb-shortcut-result { font-size:var(--text-sm); margin:8px 0 0 0; }
