/* CrownOS design system: tokens and the engineering-drawing finish for the CPQ and dealer portal.
   Loaded last. Source of truth: the CrownOS Design System (tokens.json, README). Colours elsewhere in
   these stylesheets were mapped onto the same tokens; keep new rules on the --crn-* variables. */
:root{
  --crn-accent:#2f5d3a;--crn-accent-strong:#1e3f27;--crn-accent-soft:#e7efe8;--crn-accent-tint:#f1f6f2;--crn-accent-border:#c9dccd;
  --crn-canvas:#f6f5f1;--crn-surface:#ffffff;--crn-surface-sunken:#f3f2ee;--crn-surface-muted:#efede7;--crn-grid-line:#eceae3;
  --crn-border:#e2dfd7;--crn-border-control:#cfcbc1;--crn-rule-strong:#868e87;
  --crn-ink:#1b1d1c;--crn-ink-secondary:#3b403d;--crn-ink-muted:#5c625f;
  --crn-sidebar:#1f2321;--crn-sidebar-active:#2e3431;--crn-sidebar-ink:#c9cec9;--crn-sidebar-label:#8e968f;
  --crn-warning-ink:#5c3900;--crn-warning-strong:#b7791f;--crn-warning-bg:#fff1d6;--crn-warning-tint:#fff7e6;--crn-warning-border:#ebd29e;
  --crn-danger-ink:#8a2e27;--crn-danger-strong:#b4453c;--crn-danger-tint:#fbe7e5;--crn-danger-border:#e8b4ae;
  --crn-info-ink:#2a3f5f;--crn-info-tint:#e6ecf5;
  --crn-font-sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --crn-font-mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  --crn-radius-sm:2px;--crn-radius-md:3px;--crn-radius-lg:4px;--crn-radius-xl:6px;
  --crn-shadow-overlay:0 0 0 1px #e2dfd7,0 12px 32px rgba(27,29,28,.12);
}
body{font-variant-numeric:tabular-nums}
h1,h2,h3,h4{font-weight:600}

/* Frame: charcoal sidebar and dark panels, forest green for action and selection. */
.sidebar{background:var(--crn-sidebar);color:var(--crn-sidebar-ink)}
.nav-item.active{background:var(--crn-sidebar-active);color:#fff;font-weight:600}
.skip-link,.toast,.catalog-hero,.callout-banner,.dp-gateway-welcome{background:var(--crn-sidebar)}
.btn-primary{background:var(--crn-accent);border-color:var(--crn-accent);color:#fff}
.btn-primary:hover{background:var(--crn-accent-strong);border-color:var(--crn-accent-strong)}
.btn-secondary{border-color:var(--crn-border-control);background:var(--crn-surface)}
dialog,.option-dialog,.technical-dialog,.proposal-dialog,.shared-picker-dialog{box-shadow:var(--crn-shadow-overlay)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--crn-accent);outline-offset:2px}

/* Title-block labels: IBM Plex Mono, uppercase, tracked. */
.eyebrow,.section-kicker,.side-label,.breadcrumb,.brand-caption,.mini-label,.live-label,.openings-label,.illustrated-label,
.dp-kicker,.dp-bp-kicker,.dp-filter-label,.cloud-workspace-label,.dealer-fact-label,th{
  font-family:var(--crn-font-mono);text-transform:uppercase;letter-spacing:.08em;font-weight:500}
.status-label,.pipeline-badge,.workspace-badge,.review-status,.dealer-status,.dp-badge,.dp-status,.dp-pill,.tech-badge,.product-tag,.fabric-photo-badge{
  font-family:var(--crn-font-mono);text-transform:uppercase;letter-spacing:.06em;font-weight:500;font-size:11px;border-radius:var(--crn-radius-sm)}

/* Figures are drawn: prices, totals, sizes and IDs in Plex Mono. */
.live-price strong,.price-pair strong,.proposal-totals strong,.grand-total,.project-total,.choice-price,.price-line strong,
.dp-bp-total,.dp-invoice-amounts,.input-unit,.metric strong{font-family:var(--crn-font-mono);font-variant-numeric:tabular-nums}

/* CPQ polish: one save state, quiet helper text, consistent attention states. */
.live-price[hidden]{display:none!important}
.nav-item>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.step-btn.todo .step-num{background:var(--crn-warning-bg);border-color:var(--crn-warning-border);color:var(--crn-warning-ink)}
.review-flag{display:inline-block;margin-top:4px;font-style:normal;font-size:12px;font-weight:600;color:var(--crn-warning-ink)}
.review-row>div>strong+.review-flag{display:block}
.inspector-heading h2:focus{outline:none}
.shared-order-panel>.shared-scope{display:block;margin-top:14px;padding:0;border:0;background:none;font-size:12px;font-weight:400;letter-spacing:0;line-height:1.6;color:#5c625f}
.colour-photo-label{display:none}
body:has(.livebar) .toast{bottom:calc(var(--livebar-space,112px) + 12px)}
.review-actions .btn{white-space:nowrap}
