/* BusinessPlan — stile dell'interfaccia. Colori definiti come token, con varianti per tema chiaro e scuro. */

:root {
  color-scheme: light;
  --surface: #fcfcfb;
  --bg: #f4f4f2;
  --panel: #ffffff;
  --border: #dedcd6;
  --border-strong: #b9b7af;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #6b6a66;
  --accent: #1c5cab;
  --accent-text: #ffffff;
  --accent-soft: #e6effb;
  --link: #1c5cab;
  --focus: #2a78d6;
  --neg: #b42318;
  --ok: #027a48;
  --warn-bg: #fff6e0;
  --warn-border: #c98500;
  --error-bg: #fdecec;
  --error-border: #d43c3b;
  --success-bg: #e8f6ee;
  --info-bg: #edf3fb;
  --grid: #e8e7e3;
  --axis: #9a988f;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #6250d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 2px 8px rgb(0 0 0 / 0.04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #1a1a19;
    --bg: #121211;
    --panel: #1f1f1e;
    --border: #36352f;
    --border-strong: #55534c;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #a3a29a;
    --accent: #5598e7;
    --accent-text: #0b0b0b;
    --accent-soft: #1c2a3d;
    --link: #86b6ef;
    --focus: #86b6ef;
    --neg: #f28b82;
    --ok: #6ccf9a;
    --warn-bg: #33290f;
    --warn-border: #c98500;
    --error-bg: #3a1d1c;
    --error-border: #e66767;
    --success-bg: #14301f;
    --info-bg: #1a2636;
    --grid: #2c2b28;
    --axis: #6f6d65;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #9085e9;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #1a1a19;
  --bg: #121211;
  --panel: #1f1f1e;
  --border: #36352f;
  --border-strong: #55534c;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --text-3: #a3a29a;
  --accent: #5598e7;
  --accent-text: #0b0b0b;
  --accent-soft: #1c2a3d;
  --link: #86b6ef;
  --focus: #86b6ef;
  --neg: #f28b82;
  --ok: #6ccf9a;
  --warn-bg: #33290f;
  --warn-border: #c98500;
  --error-bg: #3a1d1c;
  --error-border: #e66767;
  --success-bg: #14301f;
  --info-bg: #1a2636;
  --grid: #2c2b28;
  --axis: #6f6d65;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #9085e9;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 16px 48px; outline: none; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 20px 0 8px; }
h1:focus, h2:focus { outline: none; }
a { color: var(--link); }
p { margin: 0 0 12px; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.neg { color: var(--neg); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 8px; top: -48px; background: var(--panel); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 8px; }

/* Intestazione */
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.app-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.app-nav a { color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 0.95rem; }
.app-nav a:hover { background: var(--bg); color: var(--text); }
.app-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--text); }
.app-footer { padding: 16px; text-align: center; color: var(--text-3); font-size: 0.8rem; border-top: 1px solid var(--border); background: var(--surface); }
.app-footer p { margin: 0; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text);
  font: inherit; font-size: 0.95rem; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--text-3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-danger { background: var(--neg); border-color: var(--neg); color: var(--surface); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost-danger { color: var(--neg); border-color: transparent; background: transparent; }
.btn-ghost-danger:hover { border-color: var(--neg); }
.btn-small { min-height: 34px; padding: 5px 10px; font-size: 0.875rem; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Pagine */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.prose { max-width: 820px; }
.intro { color: var(--text-2); max-width: 75ch; }
.empty-state { text-align: center; padding: 48px 16px; background: var(--panel); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state p { max-width: 60ch; margin-inline: auto; color: var(--text-2); }

.banner { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid; }
.banner p:last-child, .banner ul:last-child { margin-bottom: 0; }
.banner .btn { margin-top: 8px; }
.banner-warning { background: var(--warn-bg); border-color: var(--warn-border); }
.banner-error { background: var(--error-bg); border-color: var(--error-border); }
.banner-success { background: var(--success-bg); border-color: var(--ok); }
.notice { background: var(--info-bg); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; border-left: 4px solid var(--series-1); }
.notice p:last-child { margin-bottom: 0; }

.issues { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.issue { padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; border-left: 4px solid; margin: 0 0 8px; }
.issues .issue { margin: 0; }
.issue-error { background: var(--error-bg); border-color: var(--error-border); }
.issue-warning { background: var(--warn-bg); border-color: var(--warn-border); }
.issue-info { background: var(--info-bg); border-color: var(--series-1); }

/* Dashboard */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.plan-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.plan-card h2 { font-size: 1.1rem; margin: 0 0 2px; }
.plan-card h2 a { color: var(--text); text-decoration: none; }
.plan-card h2 a:hover { text-decoration: underline; }
.plan-card .muted { font-size: 0.85rem; margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.mini-kpis div { min-width: 0; }
.mini-kpis dt { font-size: 0.78rem; color: var(--text-2); }
.mini-kpis dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-kpis-col { grid-template-columns: 1fr; margin-bottom: 12px; }

/* Intestazione del piano */
.plan-header { margin-bottom: 20px; }
.plan-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-title h1, .plan-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.plan-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.back-link { width: 100%; font-size: 0.9rem; text-decoration: none; }
.save-status { font-size: 0.85rem; color: var(--text-2); }
.save-status[data-state="error"] { color: var(--neg); font-weight: 600; }
.plan-tabs { display: flex; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.plan-tabs a { padding: 10px 14px; text-decoration: none; color: var(--text-2); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
.plan-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Procedura guidata */
.wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.wizard.has-summary { grid-template-columns: 240px minmax(0, 1fr) 240px; }
.steps { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.steps ol { list-style: none; padding: 0; margin: 0; }
.steps a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: var(--text-2); font-size: 0.9rem; line-height: 1.3; }
.steps a:hover { background: var(--panel); color: var(--text); }
.steps a[aria-current="step"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.step-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; border: 1px solid var(--border-strong); background: var(--panel); }
.steps-mobile { display: none; }
.step-body { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 0; box-shadow: var(--shadow); }
.step-count { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin: 0 0 4px; }
.step-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.live-summary { position: sticky; top: 76px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.h-small { font-size: 0.95rem; margin-bottom: 10px; }

/* Moduli */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 4px 16px; }
.grid-dense { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; min-width: 0; }
.field-wide, .field-text { grid-column: 1 / -1; }
.group .field-text { grid-column: auto; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.req { color: var(--neg); }
.help { font-size: 0.8rem; color: var(--text-2); margin: 0; }
.error { font-size: 0.8rem; color: var(--neg); margin: 0; min-height: 0; font-weight: 600; }
.error:empty { display: none; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; min-height: 40px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--neg) !important; background: var(--error-bg) !important; }
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit input { padding-right: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.input-unit .unit { position: absolute; right: 10px; color: var(--text-2); font-size: 0.85rem; pointer-events: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.group { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 8px; margin-bottom: 16px; }
.group > legend, .item-card > legend { font-weight: 700; padding: 0 6px; margin-left: -6px; }
.list-editor { margin: 8px 0 20px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.list-head h3 { margin: 0; }
.item-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 12px; margin-bottom: 12px; background: var(--surface); }
.item-card > .btn { margin-top: 4px; }
.empty { color: var(--text-3); font-style: italic; }
.inline-field { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 16px; }
.inline-field select { width: auto; }

/* Indicatori */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0 0 24px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi dt { font-size: 0.8rem; color: var(--text-2); }
.kpi dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-note { font-size: 0.78rem; color: var(--text-3); margin: 4px 0 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px 16px; margin: 0 0 16px; }
.kv dt { font-size: 0.8rem; color: var(--text-2); }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Schede */
.tabs-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
.tabs [role="tab"] { font: inherit; font-size: 0.9rem; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.tab-panel { outline: none; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; display: grid; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); min-width: 220px; }

/* Tabelle */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; font-weight: 700; padding: 12px 14px 8px; caption-side: top; }
.data-table th, .data-table td { padding: 7px 12px; border-top: 1px solid var(--grid); text-align: right; white-space: nowrap; }
.data-table thead th { color: var(--text-2); font-weight: 600; font-size: 0.8rem; background: var(--surface); }
.data-table th[scope="row"] { text-align: left; font-weight: 500; white-space: normal; min-width: 180px; }
.data-table thead th:first-child { text-align: left; }
.fin-table th[scope="row"] { position: sticky; left: 0; background: var(--panel); }
.data-table .sub { display: block; font-weight: 400; color: var(--text-3); font-size: 0.75rem; }
.row-strong th, .row-strong td { font-weight: 700; }
.row-sub th, .row-sub td { color: var(--text-2); font-size: 0.92em; }
.text-table td { text-align: left; white-space: normal; }
.text-table thead th { text-align: left; }

/* Spiegazioni */
.explain-list { display: grid; gap: 8px; margin-bottom: 16px; }
details.explain { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
details.explain summary { cursor: pointer; font-weight: 600; }
details.explain[open] summary { margin-bottom: 8px; }
.formula { font-family: var(--mono); font-size: 0.85rem; background: var(--surface); padding: 8px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.calc { font-variant-numeric: tabular-nums; }

/* Grafici */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; margin-bottom: 20px; }
.chart-figure { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; box-shadow: var(--shadow); }
.chart-title { font-weight: 700; margin-bottom: 8px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 8px; font-size: 0.82rem; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.swatch-line { height: 3px; width: 14px; border-radius: 2px; }
.chart { position: relative; width: 100%; min-height: 120px; }
.chart-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .axis-zero { stroke: var(--axis); stroke-width: 1; }
.chart-svg .tick { fill: var(--text-2); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-svg .hit { fill: transparent; }
.chart-svg .crosshair { stroke: var(--axis); stroke-width: 1; }
.chart-svg .marker-line { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 4 3; }
.chart-svg .marker-label { fill: var(--text); font-size: 12px; font-weight: 600; font-family: var(--font); }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.8rem; box-shadow: 0 6px 20px rgb(0 0 0 / 0.15); display: grid; gap: 3px; min-width: 160px; }
.chart-tip[hidden] { display: none; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.chart-data { margin-top: 8px; font-size: 0.85rem; }
.chart-data summary { cursor: pointer; color: var(--link); }
.chart-data .table-wrap { margin: 8px 0 0; }

/* Scenari */
.scenario-form { display: grid; gap: 0; margin-bottom: 20px; }
.scenario-form > .btn { justify-self: start; }

/* Report a schermo */
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--info-bg); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.report-toolbar p { margin: 0; max-width: 70ch; }
.report { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 4vw, 48px); max-width: 900px; margin: 0 auto; }
.report-cover { border-bottom: 2px solid var(--text); padding-bottom: 24px; margin-bottom: 32px; }
.cover-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--text-2); margin: 0; }
.report-cover h1 { font-size: 2rem; margin: 8px 0; }
.cover-sub { font-size: 1.1rem; color: var(--text-2); }
.cover-meta { font-size: 0.9rem; color: var(--text-3); }
.report-toc ol { columns: 2; column-gap: 32px; padding-left: 28px; font-size: 0.9rem; }
.report-toc h2 { font-size: 1rem; margin-top: 24px; }
.report-section { margin-bottom: 36px; }
.report-section > h2 { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swot-grid > div { border: 1px solid var(--border); border-radius: 8px; padding: 4px 14px; }
.swot-grid h3 { margin-top: 10px; }

/* Notifiche e finestre */
.toasts { position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--text); color: var(--surface); padding: 10px 14px; border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.2); font-size: 0.9rem; }
.toast .btn { background: var(--surface); color: var(--text); border-color: transparent; }
.toast-error { background: var(--neg); }
.dialog { border: 1px solid var(--border); border-radius: 12px; padding: 0; width: min(560px, calc(100% - 32px)); background: var(--panel); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / 0.3); }
.dialog::backdrop { background: rgb(0 0 0 / 0.45); }
.dialog form { padding: 20px; }
.dialog-body { margin-bottom: 16px; max-height: 60vh; overflow-y: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Schermi medi e piccoli */
@media (max-width: 1100px) {
  .wizard.has-summary { grid-template-columns: 220px minmax(0, 1fr); }
  .live-summary { grid-column: 2; position: static; }
}
@media (max-width: 800px) {
  main { padding: 16px 16px 40px; }
  h1 { font-size: 1.35rem; }
  .wizard, .wizard.has-summary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .live-summary { grid-column: auto; }
  .steps { position: static; max-height: none; }
  .steps-desktop { display: none; }
  .steps-mobile { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
  .steps-mobile summary { cursor: pointer; font-weight: 600; }
  .steps-mobile .steps-list { margin-top: 8px; }
  .step-body { padding: 16px; }
  .app-header { gap: 8px; }
  .app-nav { order: 3; width: 100%; flex: none; }
  .header-tools { margin-left: auto; }
  .report-toc ol { columns: 1; }
  .swot-grid { grid-template-columns: 1fr; }
  .mini-kpis-col { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .swatch, .chart-svg path, .chart-svg circle { forced-color-adjust: none; }
}
