/* ── CE Policy Simulation Wizard styles ──────────────────────────────── */

/* ── Layout ───────────────────────────────────────────────────────────── */
.wiz-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.wiz-header-left { flex: 1; }
.wiz-subtitle { color: var(--text-muted); max-width: 70ch; margin-top: .25rem; }
.wiz-step-counter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: .5rem 1rem;
    font-size: .95rem;
    white-space: nowrap;
}
.wiz-step-counter span:first-child { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.wiz-step-of { color: var(--text-muted); }

/* ── Progress bar ─────────────────────────────────────────────────────── */
.wiz-progress-bar {
    margin-bottom: 1.5rem;
    position: relative;
    padding: .25rem 0 .75rem;
}
.wiz-progress-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 0;
}
.wiz-progress-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: var(--primary);
    transition: width .4s ease;
    z-index: 0;
    pointer-events: none;
}
.wiz-progress-pip {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.wiz-progress-pip:hover { border-color: var(--primary); }
.wiz-progress-pip.active { background: var(--primary); border-color: var(--primary); }
.wiz-progress-pip.done   { background: var(--bg-input); border-color: var(--primary-dim); }
.wiz-pip-label {
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .68rem;
    color: var(--text-muted);
    white-space: nowrap;
    pointer-events: none;
}
.wiz-progress-pip.active .wiz-pip-label { color: var(--primary); font-weight: 600; }

/* ── Steps ────────────────────────────────────────────────────────────── */
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.wiz-step-intro {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    max-width: 80ch;
}
.wiz-section-title {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: .75rem;
}
.wiz-loading { color: var(--text-muted); padding: 1rem 0; }

/* ── Step 1 — Industry grid ───────────────────────────────────────────── */
.wiz-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}
.wiz-industry-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, transform .15s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}
.wiz-industry-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.wiz-industry-card.selected {
    border-color: var(--primary);
    background: #1a2240;
}
.wiz-ind-icon { font-size: 1.8rem; color: var(--primary); }
.wiz-industry-card strong { font-size: 1rem; }
.wiz-ind-desc { font-size: .75rem; color: var(--text-muted); }
.wiz-ind-select { font-size: .75rem; color: var(--primary); margin-top: .25rem; }

/* ── 2-col / 3-col / 4-col grids ─────────────────────────────────────── */
.wiz-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.wiz-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.wiz-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) {
    .wiz-grid-2col, .wiz-grid-3col, .wiz-grid-4col { grid-template-columns: 1fr; }
}
.wiz-col-stack { display: flex; flex-direction: column; gap: 1rem; }

/* ── Panel tweaks ─────────────────────────────────────────────────────── */
.wiz-panel { padding: 1rem 1.25rem; }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.panel-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .4rem; }

/* ── Hazard bars ──────────────────────────────────────────────────────── */
.wiz-hbar { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.wiz-hbar-label { width: 110px; font-size: .8rem; color: var(--text-muted); flex-shrink: 0; }
.wiz-hbar-track { flex: 1; background: var(--bg-input); border-radius: 4px; height: 8px; overflow: hidden; }
.wiz-hbar-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.safe-bar    { background: var(--success); }
.warning-bar { background: var(--warning); }
.danger-bar  { background: var(--danger); }
.wiz-hbar-val { width: 36px; text-align: right; font-size: .8rem; font-weight: 600; }
.wiz-index-row {
    display: flex; gap: 1rem; margin-top: .75rem; padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.wiz-index-chip { flex: 1; background: var(--bg-input); border-radius: var(--radius); padding: .5rem .75rem; }
.wiz-index-label { font-size: .7rem; color: var(--text-muted); display: block; }
.wiz-index-val { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

/* ── Gas donut ────────────────────────────────────────────────────────── */
.wiz-donut-wrap { display: flex; align-items: center; gap: 1rem; margin: .5rem 0; }
.wiz-donut-legend { display: flex; flex-direction: column; gap: .3rem; }
.gas-legend-item { display: flex; align-items: center; gap: .4rem; font-size: .78rem; }
.gas-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Company pills ────────────────────────────────────────────────────── */
.wiz-company-pills { display: flex; flex-direction: column; gap: .5rem; }
.wiz-company-pill {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: .6rem .75rem;
    border: 1px solid var(--border);
}
.wiz-company-pill-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ticker { background: var(--bg-card); padding: 1px 6px; font-size: .72rem; border-radius: 4px; color: var(--primary); }
.wiz-company-pill-stats { display: flex; gap: .75rem; font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Instrument cards (Step 3) ────────────────────────────────────────── */
.wiz-instrument-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}
.wiz-inst-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1rem;
}
.wiz-inst-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; margin-bottom: .4rem; flex-wrap: wrap;
}
.wiz-eff-badge {
    font-size: .68rem; padding: 2px 8px; border-radius: 10px;
    background: var(--bg-input); border: 1px solid var(--border);
    white-space: nowrap;
}
.wiz-eff-badge.success { border-color: var(--success); color: var(--success); }
.wiz-eff-badge.warning { border-color: var(--warning); color: var(--warning); }
.wiz-inst-meta {
    display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem;
}
.wiz-inst-meta span {
    font-size: .72rem; color: var(--text-muted);
    background: var(--bg-input); padding: 2px 7px; border-radius: 10px;
}

/* ── BAU cards (Step 4) ───────────────────────────────────────────────── */
.wiz-bau-card { text-align: center; }
.wiz-bau-metric { display: flex; align-items: baseline; justify-content: center; gap: .35rem; margin: .5rem 0; }
.wiz-bau-val { font-size: 2.2rem; font-weight: 800; }
.wiz-bau-unit { font-size: .8rem; color: var(--text-muted); }

/* ── Company risk list ────────────────────────────────────────────────── */
.wiz-company-risk-list { display: flex; flex-direction: column; gap: .5rem; }
.wiz-risk-row { display: flex; align-items: flex-start; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.wiz-risk-row:last-child { border-bottom: none; }
.wiz-risk-row i { font-size: 1.1rem; margin-top: .15rem; flex-shrink: 0; }

/* ── Design policy (Step 5) ───────────────────────────────────────────── */
.wiz-design-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 1100px) { .wiz-design-layout { grid-template-columns: 1fr; } }
.wiz-design-controls { display: flex; flex-direction: column; gap: 1rem; }
.wiz-control-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.wiz-group-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: .6rem; }

/* Pathway radios */
.wiz-pathway-radios { display: flex; flex-wrap: wrap; gap: .4rem; }
.wiz-radio-pill {
    display: flex; align-items: center; gap: .35rem;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 20px; padding: .3rem .8rem; font-size: .78rem; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.wiz-radio-pill:has(input:checked) { border-color: var(--primary); background: #1a2240; }
.wiz-radio-pill input { display: none; }

/* Horizon tabs */
.wiz-horizon-tabs { display: flex; gap: .4rem; }
.wiz-horizon-btn {
    flex: 1; padding: .4rem .5rem; font-size: .78rem; text-align: center;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; color: var(--text);
    transition: border-color .15s, background .15s;
    line-height: 1.3;
}
.wiz-horizon-btn span { font-size: .68rem; color: var(--text-muted); }
.wiz-horizon-btn.active { border-color: var(--primary); background: #1a2240; }

/* Sliders */
.wiz-sliders { display: flex; flex-direction: column; gap: .75rem; }
.wiz-slider-row {}
.wiz-slider-header { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .25rem; }
.wiz-slider-label { font-size: .82rem; flex: 1; }
.wiz-slider-val { font-size: .9rem; font-weight: 700; color: var(--primary); min-width: 36px; text-align: right; }
.wiz-slider-unit { font-size: .7rem; color: var(--text-muted); }
.wiz-range {
    width: 100%; appearance: none; -webkit-appearance: none;
    height: 5px; border-radius: 3px;
    background: linear-gradient(to right, var(--primary) 0%, var(--bg-input) 0%);
    outline: none; cursor: pointer;
}
.wiz-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--primary); cursor: pointer;
    box-shadow: 0 0 4px rgba(91,138,245,.4);
}
.wiz-range::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--primary); cursor: pointer; border: none;
}
.wiz-slider-hints { display: flex; justify-content: space-between; font-size: .68rem; color: var(--text-muted); }

/* Live preview panel */
.wiz-live-preview {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
    position: sticky; top: 64px;
}
.wiz-preview-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.wiz-live-loading { color: var(--text-muted); font-size: .85rem; }

/* Narrative sentence */
.wiz-live-narrative {
    background: rgba(91,138,245,.08);
    border: 1px solid rgba(91,138,245,.2);
    border-radius: var(--radius);
    padding: .65rem .85rem;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1rem;
}
.wiz-live-narrative i { color: var(--primary); margin-right: .3rem; }

/* Economic impact grid */
.wiz-econ-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.wiz-econ-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .65rem .75rem;
}
.wiz-econ-top { display: flex; align-items: center; gap: .35rem; margin-bottom: .15rem; }
.wiz-econ-icon { color: var(--primary); font-size: .85rem; }
.wiz-econ-title { font-size: .75rem; font-weight: 600; color: var(--text); }
.wiz-econ-val { font-size: 1.05rem; font-weight: 700; margin: .2rem 0; }
.wiz-econ-desc { font-size: .68rem; color: var(--text-muted); line-height: 1.4; }

/* Old chip classes — kept for step 6 back-compat */
.wiz-delta-chips { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.wiz-delta-chip {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .6rem .75rem;
    display: flex; flex-direction: column; gap: .1rem;
}
.wiz-delta-chip i { font-size: .8rem; color: var(--text-muted); }
.chip-label { font-size: .7rem; color: var(--text-muted); }
.chip-val { font-size: 1.3rem; font-weight: 700; }
.chip-unit { font-size: .68rem; color: var(--text-muted); }

/* ── Impact analysis extras (Step 6) ─────────────────────────────────── */
.wiz-timeline-loading { color: var(--text-muted); font-size: .82rem; padding: .5rem 0; }

/* ── IPCC pathway alignment card ──────────────────────────────────────── */
.wiz-alignment-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    padding: 1rem 1.25rem; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}
@media (max-width: 800px) { .wiz-alignment-card { grid-template-columns: 1fr; } }
.wiz-alignment-card.success { border-left: 4px solid var(--success); }
.wiz-alignment-card.primary { border-left: 4px solid var(--primary); }
.wiz-alignment-card.warning { border-left: 4px solid var(--warning); }
.wiz-alignment-card.danger  { border-left: 4px solid var(--danger);  }
.wiz-alignment-headline { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; font-size: 1rem; }
.wiz-align-label { font-weight: 700; }
.wiz-align-temp-badge {
    font-size: .78rem; font-weight: 600; padding: .2rem .6rem;
    border-radius: 12px; white-space: nowrap; border: 1px solid;
}
.wiz-align-temp-badge.success { border-color: var(--success); color: var(--success); }
.wiz-align-temp-badge.primary { border-color: var(--primary); color: var(--primary); }
.wiz-align-temp-badge.warning { border-color: var(--warning); color: var(--warning); }
.wiz-align-temp-badge.danger  { border-color: var(--danger);  color: var(--danger);  }
.wiz-alignment-gap    { font-size: .88rem; margin-bottom: .5rem; line-height: 1.5; }
.wiz-alignment-caution { font-size: .80rem; color: var(--text-muted); line-height: 1.5; margin-bottom: .35rem; }
.wiz-alignment-src    { opacity: .65; }
/* comparison bars on the right */
.wiz-align-bar-row    { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .82rem; }
.wiz-align-bar-label  { width: 9rem; flex-shrink: 0; color: var(--text-muted); }
.wiz-align-bar-track  { flex: 1; height: 10px; border-radius: 5px; background: var(--bg-input); overflow: hidden; }
.wiz-align-bar-fill   { height: 100%; border-radius: 5px; transition: width .5s; }
.wiz-align-bar-fill.success { background: var(--success); }
.wiz-align-bar-fill.primary { background: var(--primary); }
.wiz-align-bar-fill.warning { background: var(--warning); }
.wiz-align-bar-fill.danger  { background: var(--danger);  }
.wiz-align-bar-val    { width: 3.5rem; text-align: right; flex-shrink: 0; font-weight: 700; }

/* ── Green growth panel ───────────────────────────────────────────────── */
.wiz-green-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.wiz-green-card {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .85rem 1rem;
    display: flex; flex-direction: column; gap: .35rem;
}
.wiz-green-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.wiz-green-title    { font-weight: 700; font-size: .88rem; flex: 1; line-height: 1.35; }
.wiz-green-horizon  {
    font-size: .72rem; font-weight: 600; padding: .15rem .5rem;
    border-radius: 10px; white-space: nowrap; flex-shrink: 0; border: 1px solid;
}
.wiz-green-horizon.success { border-color: var(--success); color: var(--success); }
.wiz-green-horizon.primary { border-color: var(--primary); color: var(--primary); }
.wiz-green-horizon.warning { border-color: var(--warning); color: var(--warning); }
.wiz-green-stats { display: flex; gap: .75rem; }
.wiz-green-stat  { font-size: .8rem; font-weight: 600; }
.wiz-green-desc  { font-size: .80rem; color: var(--text); line-height: 1.5; margin: .1rem 0; }
.wiz-green-src   { opacity: .6; }

/* ── Model context collapsible ───────────────────────────────────────── */
.wiz-model-context summary {
    cursor: pointer; font-weight: 600; list-style: none; font-size: .88rem;
    padding: .1rem 0; outline: none; user-select: none;
}
.wiz-model-context summary::-webkit-details-marker { display: none; }
.wiz-model-body  { margin-top: 1rem; }
.wiz-model-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.wiz-model-card  { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
.wiz-model-card h4 { font-size: .85rem; font-weight: 700; margin: 0 0 .4rem; color: var(--primary); }
.wiz-model-card p  { font-size: .80rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.wiz-model-tipping {
    background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.25);
    border-radius: var(--radius); padding: .75rem 1rem;
}
.wiz-model-tipping p { font-size: .82rem; line-height: 1.6; margin: 0; }

/* GDP decomposition panel */
.wiz-decomp-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1rem; margin-bottom: 1rem;
}
.wiz-gdp-net-badge {
    white-space: nowrap; font-size: 1rem; font-weight: 700;
    padding: .4rem .9rem; border-radius: 20px;
    background: var(--bg-input); border: 1px solid var(--border);
}
.wiz-gdp-net-badge.success { border-color: var(--success); color: var(--success); }
.wiz-gdp-net-badge.danger  { border-color: var(--danger);  color: var(--danger); }
.wiz-decomp-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start;
}
@media (max-width: 900px) { .wiz-decomp-grid { grid-template-columns: 1fr; } }
.wiz-decomp-chart-wrap {}
.wiz-decomp-legend { display: flex; flex-direction: column; gap: .5rem; }
.wiz-decomp-item {
    border-bottom: 1px solid var(--border); padding-bottom: .5rem;
}
.wiz-decomp-item:last-of-type { border-bottom: none; }
.wiz-decomp-item-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .15rem; font-size: .82rem; }
.wiz-decomp-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.wiz-decomp-net {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: .5rem; padding-top: .5rem; border-top: 2px solid var(--border);
    font-size: .88rem;
}

/* ── Impact analysis (Step 6) ─────────────────────────────────────────── */
.wiz-delta-summary { margin-bottom: .25rem; }
.wiz-delta-card { text-align: center; }
.wiz-delta-big { font-size: 1.8rem; font-weight: 800; margin: .4rem 0; }
.wiz-cbr-box { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.wiz-cbr-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .4rem 0; border-bottom: 1px solid var(--border);
    font-size: .85rem;
}
.wiz-cbr-row:last-child { border-bottom: none; }

/* Company exposure table */
.wiz-company-exposure-table { font-size: .82rem; }
.wiz-exposure-header {
    display: grid;
    grid-template-columns: 1.5fr .6fr .8fr .6fr .8fr 3fr;
    gap: .5rem; padding: .4rem .5rem;
    font-size: .7rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.wiz-exposure-row {
    display: grid;
    grid-template-columns: 1.5fr .6fr .8fr .6fr .8fr 3fr;
    gap: .5rem; padding: .5rem .5rem;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.wiz-exposure-row:last-child { border-bottom: none; }
@media (max-width: 900px) {
    .wiz-exposure-header { display: none; }
    .wiz-exposure-row { grid-template-columns: 1fr 1fr; }
}

/* ── Scenario context (Step 7) ────────────────────────────────────────── */
.wiz-sc-header {
    display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr;
    gap: .5rem; padding: .4rem .5rem;
    font-size: .7rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.wiz-sc-row {
    display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr;
    gap: .5rem; padding: .5rem .5rem;
    border-bottom: 1px solid var(--border); font-size: .82rem;
    align-items: center;
}
.wiz-sc-row:last-child { border-bottom: none; }
.recommended-row { background: rgba(52,211,153,.07); }
.your-policy-row { background: rgba(91,138,245,.07); }
.wiz-recommendation { }
.wiz-rec-banner {
    display: flex; align-items: flex-start; gap: .75rem;
    background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
    border-radius: var(--radius); padding: 1rem;
}
.wiz-rec-banner i { font-size: 1.2rem; color: var(--success); margin-top: .15rem; }
.wiz-rec-banner p { color: var(--text-muted); margin-top: .25rem; }
.wiz-complete-actions {
    display: flex; gap: .75rem; justify-content: flex-end;
    margin-top: 1.25rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ── Nav bar ──────────────────────────────────────────────────────────── */
.wiz-nav-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 0; margin-top: 1rem;
    border-top: 1px solid var(--border);
    position: sticky; bottom: 0;
    background: var(--bg); z-index: 10;
}
.wiz-nav-center { flex: 1; text-align: center; color: var(--text-muted); font-size: .8rem; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.primary-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius); padding: .5rem 1.2rem;
    font-size: .88rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: background .15s;
}
.primary-btn:hover { background: var(--primary-dim); }
.secondary-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .5rem 1.2rem; font-size: .88rem; cursor: pointer;
    text-decoration: none; transition: border-color .15s;
}
.secondary-btn:hover { border-color: var(--primary); }

/* ── Colour utilities ─────────────────────────────────────────────────── */
.success    { color: var(--success) !important; }
.danger     { color: var(--danger) !important; }
.warning    { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
