:root, :root[data-theme="dark"] {
  --bp-bg: #15130f;
  --bp-surface: #1d1a15;
  --bp-surface-2: #252017;
  --bp-border: #322c22;
  --bp-border-strong: #433b2c;
  --bp-text: #ece7dc;
  --bp-muted: #9a9284;
  --bp-primary: #c8793f;
  --bp-primary-hover: #d98a4f;
  --bp-primary-active: #b06430;
  --bp-primary-subtle: rgba(200,121,63,.14);
  --bp-secondary: #6c85a6;
  --bp-secondary-hover: #7d94b4;
  --bp-secondary-subtle: rgba(108,133,166,.14);
  --bp-success: #4f9d6e;
  --bp-success-subtle: rgba(79,157,110,.14);
  --bp-warning: #dcae3f;
  --bp-warning-subtle: rgba(220,174,63,.14);
  --bp-danger: #d1554a;
  --bp-danger-subtle: rgba(209,85,74,.14);
  --bp-radius-sm: 4px; --bp-radius-md: 6px; --bp-radius-lg: 8px; --bp-radius-pill: 999px;
  --bp-shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --bp-shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --bp-shadow-lg: 0 16px 48px rgba(0,0,0,.55);
  --bp-density: 20px;
}
:root[data-theme="light"] {
  /* Clair — mélange OVH (bleu, épuré) + AWS (densité, coins carrés) — thème par défaut */
  --bp-bg: #f4f6f8;
  --bp-surface: #ffffff;
  --bp-surface-2: #eef1f4;
  --bp-border: #d8dee4;
  --bp-border-strong: #c2cad3;
  --bp-text: #16191f;
  --bp-muted: #5f6b7a;
  --bp-primary: #0a5ad6;
  --bp-primary-hover: #0c66f0;
  --bp-primary-active: #084bb0;
  --bp-primary-subtle: rgba(10,90,214,.08);
  --bp-secondary: #5f6b7a;
  --bp-secondary-hover: #48525f;
  --bp-secondary-subtle: rgba(95,107,122,.08);
  --bp-success: #1a7f4b;
  --bp-success-subtle: rgba(26,127,75,.08);
  --bp-warning: #dd6b12;
  --bp-warning-subtle: rgba(221,107,18,.08);
  --bp-danger: #d13c2e;
  --bp-danger-subtle: rgba(209,60,46,.08);
  --bp-radius-sm: 2px; --bp-radius-md: 3px; --bp-radius-lg: 4px; --bp-radius-pill: 999px;
  --bp-shadow-sm: 0 1px 3px rgba(16,24,40,.1);
  --bp-shadow-md: 0 4px 12px rgba(16,24,40,.12);
  --bp-shadow-lg: 0 8px 24px rgba(16,24,40,.16);
  --bp-density: 14px;
}
:root {
  --bp-space-1: 4px; --bp-space-2: 8px; --bp-space-3: 12px; --bp-space-4: 16px;
  --bp-space-5: 20px; --bp-space-6: 24px; --bp-space-7: 32px; --bp-space-8: 48px; --bp-space-9: 64px;
  --bp-font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bp-font-mono: 'IBM Plex Mono', "Courier New", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--bp-font-body);
  font-size: 14px; background: var(--bp-bg); color: var(--bp-text); line-height: 1.55;
  transition: background .15s, color .15s;
}
a { color: var(--bp-primary); text-decoration: none; }
a:hover { color: var(--bp-primary-hover); }
h1 { font-size: 26px; font-weight: 800; margin: 0 0 20px; }
h2 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--bp-muted); font-size: 13px; }

/* Theme toggle */
.theme-toggle { display: flex; gap: 2px; background: var(--bp-surface-2); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-pill); padding: 3px; }
.theme-toggle button {
  border: none; background: transparent; color: var(--bp-muted);
  font-family: var(--bp-font-body); font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--bp-radius-pill); cursor: pointer;
}
.theme-toggle button.active { background: var(--bp-primary); color: #fff; }

/* Topbar / nav */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; background: var(--bp-surface); border-bottom: 1px solid var(--bp-border);
}
.brand { font-weight: 700; font-size: 16px; color: var(--bp-text); }
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a { color: var(--bp-muted); font-weight: 500; }
.topnav a:hover { color: var(--bp-text); }

/* Buttons */
.btn, .cta, a.cta, button.cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--bp-font-body); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--bp-radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-primary, .cta, a.cta, button.cta { background: var(--bp-primary); color: #fff; }
.btn-primary:hover, .cta:hover, a.cta:hover, button.cta:hover { background: var(--bp-primary-hover); text-decoration: none; }
.btn-secondary { background: transparent; border-color: var(--bp-secondary); color: var(--bp-secondary); }
.btn-secondary:hover { background: var(--bp-secondary-subtle); }
.btn-ghost { background: transparent; border-color: var(--bp-border); color: var(--bp-text); }
.btn-ghost:hover { border-color: var(--bp-border-strong); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.link-btn { background: none; border: none; color: var(--bp-primary); cursor: pointer; font-size: 13px; font-family: var(--bp-font-body); padding: 0; }
.link-btn:hover { color: var(--bp-primary-hover); }

.container { max-width: 960px; margin: 0 auto; padding: 32px 28px 64px; }
.footer { text-align: center; color: var(--bp-muted); padding: 24px; font-size: 12px; }

.flash-zone { margin-bottom: 20px; }
.alert, .flash-msg {
  background: var(--bp-surface-2); border: 1px solid var(--bp-border); border-left: 3px solid var(--bp-primary);
  color: var(--bp-text); padding: 12px 16px; border-radius: var(--bp-radius-md); margin-bottom: 8px; font-size: 13.5px;
}

/* Cards */
.card, .formule-card, .tier-card, .form-card, .signup-card {
  background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg);
  padding: var(--bp-density); margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.formules, .tiers { display: flex; gap: 16px; flex-wrap: wrap; }
.formule-card { flex: 1 1 280px; }
.tier-card { flex: 1 1 260px; display: flex; flex-direction: column; }
.tier-card.featured { border-color: var(--bp-primary); }
.tier-head .price { font-size: 28px; font-weight: 700; margin: 6px 0; }
.tier-head .price span { font-size: 13px; font-weight: 400; color: var(--bp-muted); }
.module-list { list-style: none; margin: 12px 0; flex: 1; }
.module-list li { padding: 6px 0; border-bottom: 1px solid var(--bp-border); font-size: 13.5px; }
.tier-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* Forms */
.form-card { max-width: 440px; }
.form-group { margin-bottom: 16px; }
.form-label, .form-card label, .tier-form label {
  display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: var(--bp-muted);
}
.form-control, .form-select,
.form-card input, .form-card select, .tier-form input, .tier-form select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 12px;
  background: var(--bp-bg); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md);
  color: var(--bp-text); font-family: var(--bp-font-body); font-size: 14px;
}
.form-control:focus, .form-select:focus,
.form-card input:focus, .form-card select:focus {
  outline: none; border-color: var(--bp-primary); box-shadow: 0 0 0 3px var(--bp-primary-subtle);
}
.form-control.is-invalid { border-color: var(--bp-danger); }
.form-error { color: var(--bp-danger); font-size: 12.5px; margin-top: 6px; }

.account-line { margin-bottom: 20px; }
.inline { display: inline; }

/* Badges / pills */
.signup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--bp-radius-pill); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--bp-surface-2); border: 1px solid var(--bp-border); color: var(--bp-muted); margin-left: 4px;
}
.badge-ok, .badge-success, .badge-status-delivered { background: var(--bp-success-subtle); border-color: transparent; color: var(--bp-success); }
.badge-warn, .badge-warning, .badge-status-failed { background: var(--bp-warning-subtle); border-color: transparent; color: var(--bp-warning); }
.badge-status-paid, .badge-status-delivering { background: var(--bp-secondary-subtle); border-color: transparent; color: var(--bp-secondary); }

/* Wizard de configuration post-paiement (managed_hosting) */
.onboarding-steps { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.onboarding-step {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--bp-radius-pill);
  background: var(--bp-surface-2); border: 1px solid var(--bp-border); color: var(--bp-muted);
}
.onboarding-step.done { background: var(--bp-success-subtle); border-color: transparent; color: var(--bp-success); }
.onboarding-step.active { background: var(--bp-primary); border-color: transparent; color: #fff; }

/* Landing page — hero, propositions de valeur, callout AD existant */
.hero-section { text-align: center; max-width: 720px; margin: 0 auto 48px; padding: 40px 20px 8px; }
.hero-title { font-size: 30px; font-weight: 800; line-height: 1.25; margin: 0 0 16px; }
.hero-sub { font-size: 15.5px; color: var(--bp-muted); margin: 0 0 24px; line-height: 1.6; }
.value-props { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 40px; }
.value-props .card-title { font-size: 15px; margin-bottom: 8px; }
.ad-callout { max-width: 640px; margin: 0 auto 48px; padding: 28px; border-left: 3px solid var(--bp-primary); }

/* Icônes (sprite SVG dans base.html, <use href="#icon-...">) */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--bp-radius-lg);
  background: var(--bp-primary-subtle); color: var(--bp-primary); margin-bottom: 14px;
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge.sm { width: 32px; height: 32px; margin-bottom: 0; }
.icon-badge.sm .icon { width: 17px; height: 17px; }

/* Kicker au-dessus des h2 */
.section-eyebrow {
  display: block; text-align: center; text-transform: uppercase; letter-spacing: .08em;
  font-size: 11.5px; font-weight: 700; color: var(--bp-primary); margin: 0 0 8px;
}
h2.section-title { text-align: center; margin-top: 8px; }

/* Hero — dégradé + halos décoratifs */
.hero-section.rich {
  position: relative; max-width: 860px; padding: 56px 20px 24px; overflow: hidden;
  border-radius: var(--bp-radius-lg);
}
.hero-section.rich::before, .hero-section.rich::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0;
  opacity: .35;
}
.hero-section.rich::before { width: 340px; height: 340px; background: var(--bp-primary); top: -140px; left: -80px; }
.hero-section.rich::after { width: 280px; height: 280px; background: var(--bp-secondary); bottom: -120px; right: -60px; }
.hero-section.rich > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: var(--bp-radius-pill); background: var(--bp-surface);
  border: 1px solid var(--bp-border); font-size: 12px; font-weight: 600; color: var(--bp-muted);
  box-shadow: var(--bp-shadow-sm);
}
.hero-badge .icon { width: 14px; height: 14px; color: var(--bp-primary); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Barre de stats */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px;
  max-width: 760px; margin: 0 auto 48px; text-align: center;
}
.stats-bar .stat-num { font-size: 28px; font-weight: 800; color: var(--bp-text); }
.stats-bar .stat-label { font-size: 12.5px; color: var(--bp-muted); }

/* Cartes avec relief au survol */
.card.lift { transition: transform .18s ease, box-shadow .18s ease; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--bp-shadow-md); }

/* Bloc "pourquoi" en deux colonnes problème/solution */
.why-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 860px; margin: 0 auto 48px; overflow: hidden; border-radius: var(--bp-radius-lg); border: 1px solid var(--bp-border); }
.why-split > div { padding: 28px; }
.why-split .why-problem { background: var(--bp-surface-2); }
.why-split .why-solution { background: var(--bp-surface); border-left: 1px solid var(--bp-border); }
.why-split h3 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .why-split { grid-template-columns: 1fr; } .why-split .why-solution { border-left: none; border-top: 1px solid var(--bp-border); } }

/* Scénarios — timeline horizontale */
.scenario-card .icon-badge { background: var(--bp-primary-subtle); }
.timeline { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 28px; font-size: 13.5px; line-height: 1.6; }
.timeline li::before {
  content: attr(data-step); position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; background: var(--bp-primary); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--bp-border); }
.timeline li:last-child::after { display: none; }

/* Checklist de modules (remplace les puces + bordures plates) */
.module-list.checklist { margin: 12px 0; }
.module-list.checklist li { display: flex; align-items: flex-start; gap: 8px; border-bottom: none; padding: 5px 0; }
.module-list.checklist .icon { width: 16px; height: 16px; color: var(--bp-success); margin-top: 1px; }

/* Formule / tier headers avec icône */
.formule-card .icon-badge, .tier-head .icon-badge { margin-bottom: 10px; }
.tier-card.featured { position: relative; box-shadow: var(--bp-shadow-md); }

/* Page /modules — nav rapide par palier */
.modules-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 32px; }
.modules-nav a {
  padding: 7px 14px; border-radius: var(--bp-radius-pill); border: 1px solid var(--bp-border);
  background: var(--bp-surface); color: var(--bp-text); font-size: 12.5px; font-weight: 600;
}
.modules-nav a:hover { border-color: var(--bp-primary); color: var(--bp-primary); }
.module-card-icon { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.module-card-icon .icon-badge { margin-bottom: 0; }
.module-card-icon .card-title { margin: 0; }

/* Aperçus produit — maquettes "fenêtre navigateur" en HTML/CSS pur (aucune
   image, aucune donnée réelle : illustration, pas une capture d'écran). */
.browser-frame {
  border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg); overflow: hidden;
  background: var(--bp-surface); box-shadow: var(--bp-shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bp-surface-2); border-bottom: 1px solid var(--bp-border); }
.browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-dot.red { background: #e5534b; } .browser-dot.yellow { background: #e2b93b; } .browser-dot.green { background: #3fb950; }
.browser-url { margin-left: 8px; font-size: 11px; color: var(--bp-muted); background: var(--bp-bg); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-pill); padding: 3px 12px; flex: 1; }
.browser-body { display: flex; min-height: 220px; }
.mock-sidebar { width: 128px; background: var(--bp-surface-2); border-right: 1px solid var(--bp-border); padding: 12px 8px; flex-shrink: 0; }
.mock-nav-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: var(--bp-radius-md); font-size: 10.5px; color: var(--bp-muted); margin-bottom: 3px; }
.mock-nav-item .icon { width: 13px; height: 13px; }
.mock-nav-item.active { background: var(--bp-primary-subtle); color: var(--bp-primary); font-weight: 600; }
.mock-main { flex: 1; padding: 14px; min-width: 0; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mock-stat { background: var(--bp-bg); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md); padding: 8px; }
.mock-stat .num { font-size: 16px; font-weight: 800; line-height: 1.3; }
.mock-stat .lbl { font-size: 9.5px; color: var(--bp-muted); }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-bottom: 12px; }
.mock-bars div { flex: 1; background: var(--bp-primary); border-radius: 3px 3px 0 0; opacity: .7; }
.mock-table { border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md); overflow: hidden; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; font-size: 10.5px; border-bottom: 1px solid var(--bp-border); color: var(--bp-muted); }
.mock-row:last-child { border-bottom: none; }
.mock-row .ok { color: var(--bp-success); font-weight: 600; }
.mock-tree { font-size: 11px; line-height: 2; color: var(--bp-muted); }
.mock-tree .lvl1 { padding-left: 0; font-weight: 600; color: var(--bp-text); }
.mock-tree .lvl2 { padding-left: 18px; }
.mock-tree .lvl3 { padding-left: 36px; }
.mock-tree .icon { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.mock-net { position: relative; height: 150px; margin-bottom: 10px; }
.mock-net .node { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--bp-primary-subtle); border: 1.5px solid var(--bp-primary); color: var(--bp-primary); display: flex; align-items: center; justify-content: center; }
.mock-net .node .icon { width: 14px; height: 14px; }
.mock-net .node.center { background: var(--bp-primary); color: #fff; width: 36px; height: 36px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.screenshot-caption { text-align: center; font-size: 12.5px; color: var(--bp-muted); margin-top: 10px; font-weight: 600; }

/* Compteur d'attente estimatif (provisioning managed_hosting) */
.eta-box { margin-top: 10px; padding: 12px 14px; background: var(--bp-surface-2); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md); }
.eta-box .eta-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.eta-box .eta-head .icon { width: 15px; height: 15px; color: var(--bp-primary); }
.eta-bar-track { height: 6px; border-radius: var(--bp-radius-pill); background: var(--bp-border); overflow: hidden; margin-bottom: 6px; }
.eta-bar-fill { height: 100%; background: var(--bp-primary); border-radius: var(--bp-radius-pill); transition: width 1s linear; }
.eta-bar-fill.overrun { background: var(--bp-warning); }
.eta-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--bp-muted); }

/* Reveal au scroll (progressive enhancement — visible par défaut sans JS) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* FAQ (accordion natif <details>/<summary>) */
.faq-item {
  background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg);
  padding: 14px 18px; margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--bp-primary); font-size: 18px; font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 10px; line-height: 1.7; }

/* ── Phase stepper (suivi de provisioning) ──────────────────────────────── */
.phase-stepper-wrap {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  box-shadow: var(--bp-shadow-sm);
  padding: 20px 22px;
  margin-top: 12px;
}
.phase-stepper-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.phase-stepper-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bp-muted); }
.phase-stepper-count { font-family: monospace; font-size: 13px; font-weight: 600; color: var(--bp-text); }
.phase-stepper { display: flex; flex-direction: column; }
.phase {
  position: relative;
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  padding-bottom: 4px;
}
.phase-rail { position: relative; display: flex; justify-content: center; }
.phase-rail::after {
  content: ""; position: absolute; top: 30px; bottom: -4px; left: 50%;
  width: 2px; transform: translateX(-50%); background: var(--bp-border);
}
.phase:last-child .phase-rail::after { display: none; }
.phase.is-done .phase-rail::after { background: var(--bp-success); }
.phase-icon {
  width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bp-surface); border: 2px solid var(--bp-border);
  color: var(--bp-muted); font-size: 12px; font-weight: 700;
  position: relative; z-index: 1; flex-shrink: 0;
}
.phase.is-done .phase-icon { background: var(--bp-success); border-color: var(--bp-success); color: #fff; }
.phase.is-running .phase-icon { background: var(--bp-primary-subtle); border-color: var(--bp-primary); color: var(--bp-primary); }
.phase.is-error .phase-icon { background: var(--bp-danger-subtle); border-color: var(--bp-danger); color: var(--bp-danger); }
.phase.is-running .phase-icon::before {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid transparent; border-top-color: var(--bp-primary); border-right-color: var(--bp-primary);
  animation: phase-spin .9s linear infinite;
}
@keyframes phase-spin { to { transform: rotate(360deg); } }
.phase-main { padding-top: 2px; padding-bottom: 18px; }
.phase-name { font-size: 14px; font-weight: 650; color: var(--bp-text); }
.phase.is-pending .phase-name { color: var(--bp-muted); }
.phase-detail { font-size: 12px; color: var(--bp-muted); margin-top: 3px; line-height: 1.4; }
.phase.is-error .phase-detail { color: var(--bp-danger); }
.phase-status {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  font-family: monospace;
}
.phase.is-done .phase-status { color: var(--bp-success); }
.phase.is-running .phase-status { color: var(--bp-primary); }
.phase.is-error .phase-status { color: var(--bp-danger); }
.phase.is-pending .phase-status { color: var(--bp-muted); }
.phase.is-skipped .phase-icon { background: var(--bp-surface-2); border-color: var(--bp-border); color: var(--bp-muted); }
.phase.is-skipped .phase-rail::after { background: var(--bp-border); }
.phase.is-skipped .phase-name { color: var(--bp-muted); }
.phase.is-skipped .phase-status { color: var(--bp-muted); }

.phase-subitems {
  margin-top: 10px; display: flex; flex-direction: column; gap: 2px;
  border-left: 2px solid var(--bp-border); padding-left: 12px;
}
.phase-subitem {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--bp-muted); padding: 4px 0;
}
.phase-subitem-icon { width: 14px; text-align: center; font-weight: 700; }
.phase-subitem.is-done { color: var(--bp-text); }
.phase-subitem.is-done .phase-subitem-icon { color: var(--bp-success); }
.phase-subitem.is-error .phase-subitem-icon { color: var(--bp-danger); }
.phase-subitem.is-error { color: var(--bp-danger); }
