:root {
  color-scheme: light;
  --ink: #12212f;
  --muted: #607080;
  --primary: #0e5a66;
  --primary-dark: #083c45;
  --primary-pale: #e5f1f2;
  --positive: #23764a;
  --positive-pale: #e7f3ec;
  --warning: #9b6100;
  --warning-pale: #fff3d8;
  --risk: #b52a2a;
  --risk-pale: #fdeaea;
  --canvas: #f4f6f5;
  --surface: #fff;
  --line: #d9e0de;
  --line-dark: #bdc8c5;
  --sidebar: #102b31;
  --sidebar-ink: #ecf5f5;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 18px 50px rgb(10 30 35 / .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #65aab2; outline-offset: 2px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px 18px; color: var(--sidebar-ink); background: var(--sidebar); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 5px 26px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--sidebar); background: #c6e1df; font-weight: 800; letter-spacing: -.04em; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: #a8bec1; font-size: 10px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 650; transition: background .15s, border-color .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { color: white; background: var(--primary); border-color: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-dark); }
.button-secondary:hover { background: #edf2f1; }
.button-danger { color: white; background: var(--risk); }
.button-block { width: 100%; }
.text-button { padding: 0; border: 0; color: var(--primary); background: transparent; font-weight: 650; text-align: left; }
.text-button:hover { text-decoration: underline; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: white; font-size: 20px; }
.mobile-only { display: none; }

.search-field { position: relative; display: block; margin: 18px 0; }
.search-field svg { position: absolute; top: 13px; left: 12px; width: 17px; fill: none; stroke: #8fa6aa; stroke-width: 2; stroke-linecap: round; }
.search-field input { width: 100%; height: 42px; padding: 0 12px 0 38px; color: white; background: #173b43; border: 1px solid #2a5058; border-radius: var(--radius-sm); }
.search-field input::placeholder { color: #9fb4b7; }
.portfolio-heading { display: flex; justify-content: space-between; padding: 0 5px 10px; color: #91aaad; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-list { display: grid; gap: 5px; }
.project-item { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; color: #cee0e1; background: transparent; text-align: left; }
.project-item:hover { background: #173b43; }
.project-item.active { color: white; background: #1b424a; border-color: #38616a; }
.project-item strong, .project-item small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item strong { font-size: 12px; }
.project-item small { grid-column: 1 / -1; color: #aac1c4; font-size: 10px; }
.project-item .stage-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #d9aa4e; }
.project-item[data-status="Delivered"] .stage-dot { background: #62bb85; }
.project-item[data-status="Lead"] .stage-dot { background: #8fa6aa; }
.project-item[data-status="Archived"] .stage-dot { background: #5c7377; }
.sidebar-footer { margin-top: auto; padding: 20px 5px 0; border-top: 1px solid #2d4d54; display: grid; gap: 10px; }
.sidebar-footer .text-button { min-height: 32px; padding: 7px 0; color: #c6e1df; font-size: 11px; }
.sidebar-footer p { margin: 6px 0 0; color: #7f9a9e; font-size: 9px; line-height: 1.5; }

.workspace { min-width: 0; }
.topbar { position: sticky; z-index: 5; top: 0; min-height: 78px; display: flex; align-items: center; gap: 18px; padding: 12px 32px; background: rgb(255 255 255 / .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.topbar-title { min-width: 0; flex: 1; }
.topbar-title span { display: block; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.topbar h1 { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.save-status { color: var(--muted); font-size: 10px; }

.empty-state { width: min(680px, calc(100% - 48px)); margin: 14vh auto 0; text-align: center; }
.empty-state h2 { margin: 8px 0 12px; font-size: clamp(26px, 4vw, 42px); line-height: 1.12; letter-spacing: -.045em; }
.empty-state p:not(.kicker) { max-width: 580px; margin: 0 auto 26px; color: var(--muted); line-height: 1.65; }
.kicker, .eyebrow { color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.empty-illustration { height: 120px; display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-bottom: 25px; }
.empty-illustration span { width: 70px; border: 2px solid var(--primary); background: var(--primary-pale); }
.empty-illustration span:nth-child(1) { height: 60px; }
.empty-illustration span:nth-child(2) { height: 105px; }
.empty-illustration span:nth-child(3) { height: 78px; }

.tabs { position: sticky; z-index: 4; top: 78px; display: flex; gap: 26px; padding: 0 32px; background: white; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { min-height: 49px; padding: 0; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; white-space: nowrap; font-weight: 650; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-color: var(--primary); }
.tab-panel { display: none; max-width: 1500px; margin: 0 auto; padding: 28px 32px 60px; }
.tab-panel.active { display: block; }

.decision-strip { display: flex; align-items: center; gap: 25px; padding: 21px 24px; color: #fff; background: var(--primary-dark); border-radius: var(--radius); }
.decision-strip > div:first-child { flex: 1; }
.decision-label { display: block; margin-bottom: 5px; color: #b9d6d8; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.decision-strip strong { display: block; font-size: 22px; letter-spacing: -.03em; }
.decision-strip p { margin: 5px 0 0; color: #c4d6d8; line-height: 1.5; }
.decision-actions label { display: grid; gap: 5px; color: #aac7ca; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.decision-actions select { min-width: 145px; height: 38px; padding: 0 30px 0 10px; color: white; background: #14515b; border: 1px solid #3a717a; border-radius: 5px; }
.decision-strip.decline { background: #571f22; }
.decision-strip.conditional { background: #61420a; }
.decision-strip.proceed { background: #174e32; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.metric { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric span, .metric small { display: block; color: var(--muted); font-size: 10px; }
.metric strong { display: block; margin: 7px 0 6px; font-size: clamp(19px, 2vw, 28px); letter-spacing: -.04em; }
.metric strong.negative { color: var(--risk); }
.metric strong.positive { color: var(--positive); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 20px; margin-top: 20px; }
.lower-grid { grid-template-columns: 1fr 1fr; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .section-intro h2 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.025em; }
.panel-heading > strong { color: var(--primary); font-size: 24px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f8faf9; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 11px; line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
.number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.positive-text { color: var(--positive); font-weight: 700; }
.negative-text { color: var(--risk); font-weight: 700; }

.scenario-chart { height: 195px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: end; padding: 24px 38px 20px; border-bottom: 1px solid var(--line); }
.scenario-bar-wrap { height: 140px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.scenario-value { font-size: 11px; font-weight: 750; }
.scenario-bar { width: min(90px, 70%); min-height: 4px; border-radius: 4px 4px 0 0; background: var(--positive); }
.scenario-bar.negative { border-radius: 0 0 4px 4px; background: #d66e6e; }
.scenario-name { color: var(--muted); font-size: 9px; font-weight: 650; }

.readiness-panel { padding-bottom: 18px; }
.progress { height: 7px; margin: 18px 20px 4px; background: #e8edeb; border-radius: 999px; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--primary); transition: width .25s; }
.readiness-list { padding: 11px 20px 18px; }
.readiness-item { display: grid; grid-template-columns: 17px 1fr auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0ef; }
.readiness-item:last-child { border-bottom: 0; }
.readiness-icon { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: white; font-size: 9px; }
.readiness-item.done .readiness-icon { border-color: var(--positive); background: var(--positive); }
.readiness-item span { font-size: 11px; }
.readiness-item small { color: var(--muted); font-size: 9px; }
.readiness-panel > .button { width: calc(100% - 40px); margin: 0 20px; }

.risk-list { display: grid; }
.risk-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.risk-item:last-child { border-bottom: 0; }
.risk-badge, .state-badge { align-self: start; display: inline-flex; align-items: center; justify-content: center; min-width: 60px; min-height: 23px; padding: 0 7px; border-radius: 999px; font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.risk-badge.critical, .risk-badge.high { color: var(--risk); background: var(--risk-pale); }
.risk-badge.medium { color: var(--warning); background: var(--warning-pale); }
.risk-badge.low { color: var(--positive); background: var(--positive-pale); }
.risk-item strong { display: block; font-size: 11px; line-height: 1.4; }
.risk-item p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.delivery-summary { padding: 16px 20px 20px; }
.delivery-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.delivery-row:last-child { border-bottom: 0; }
.delivery-row span { color: var(--muted); font-size: 10px; }
.delivery-row strong { font-size: 11px; }

.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.section-intro h2 { font-size: 24px; }
.section-intro > p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.55; text-align: right; }
.form-sections { display: grid; gap: 18px; }
fieldset { margin: 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding: 0 8px; color: var(--primary); font-size: 11px; font-weight: 750; }
.form-grid { display: grid; gap: 16px 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { min-width: 0; color: var(--muted); font-size: 10px; font-weight: 650; }
label > span { font-weight: 400; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 10px 11px; color: var(--ink); background: white; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); }
input, select { min-height: 43px; }
textarea { resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #94a8a4; }
.span-two { grid-column: span 2; }
.span-three { grid-column: span 3; }

.model-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 20px; align-items: start; }
.form-sections.compact { gap: 14px; }
.form-sections.compact fieldset { padding: 17px; }
.sticky-summary { position: sticky; top: 147px; padding-bottom: 12px; overflow: hidden; }
.model-summary header { padding: 20px; color: white; background: var(--primary-dark); }
.model-summary header span { color: #b9d6d8; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.model-summary header strong { display: block; margin: 6px 0 3px; font-size: 30px; letter-spacing: -.045em; }
.model-summary header small { color: #c4d6d8; }
.cost-stack { padding: 12px 18px 5px; }
.cost-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cost-row:last-child { border-bottom: 0; }
.cost-row span { color: var(--muted); font-size: 10px; }
.cost-row strong { font-size: 10px; font-variant-numeric: tabular-nums; }
.cost-row.total { margin-top: 3px; padding-top: 12px; border-top: 2px solid var(--line-dark); }
.summary-note { margin: 10px 18px 4px; padding: 12px; color: var(--muted); background: #f4f7f6; border-radius: 6px; font-size: 9px; line-height: 1.5; }

.evidence-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.evidence-toolbar label { display: flex; align-items: center; gap: 8px; }
.evidence-toolbar select { width: auto; min-height: 38px; margin: 0; }
.evidence-toolbar span { color: var(--muted); font-size: 10px; }
.evidence-table { background: white; border: 1px solid var(--line); }
.evidence-table th:nth-child(2) { width: 30%; }
.evidence-table th:nth-child(5) { width: 25%; }
.state-badge.verified { color: var(--positive); background: var(--positive-pale); }
.state-badge.reported { color: #375f91; background: #e9f0fa; }
.state-badge.assumption { color: var(--warning); background: var(--warning-pale); }
.state-badge.unverified, .state-badge.professional { color: var(--risk); background: var(--risk-pale); }
.table-actions { display: flex; gap: 6px; }
.mini-button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; font-size: 9px; }
.mini-button:hover { background: #edf2f1; }

.dropzone { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 30px; color: var(--ink); background: white; border: 2px dashed #aebeba; border-radius: var(--radius); text-align: center; }
.dropzone.dragging { border-color: var(--primary); background: var(--primary-pale); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { font-size: 15px; }
.dropzone span { color: var(--muted); font-size: 10px; }
.document-list { display: grid; gap: 10px; margin-top: 16px; }
.document-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 13px 15px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.file-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--primary); background: var(--primary-pale); border-radius: 6px; font-size: 9px; font-weight: 800; }
.document-item strong, .document-item small { display: block; }
.document-item strong { font-size: 11px; }
.document-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.empty-list { padding: 25px; color: var(--muted); text-align: center; background: white; border: 1px solid var(--line); border-radius: 8px; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 11px; color: var(--ink); background: #f8faf9; border: 1px solid var(--line); border-radius: 6px; }
.check-item input { width: 17px; min-height: auto; height: 17px; margin: 0; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px 20px; background: var(--risk-pale); border: 1px solid #efbebe; border-radius: var(--radius); }
.danger-zone strong { color: var(--risk); }
.danger-zone p { margin: 4px 0 0; color: #865959; font-size: 10px; }

dialog { width: min(620px, calc(100% - 30px)); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(5 20 24 / .62); backdrop-filter: blur(3px); }
dialog form { display: grid; gap: 17px; padding: 22px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.dialog-heading h2 { margin: 4px 0 0; font-size: 22px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }

.print-report { display: none; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .overview-grid, .model-layout { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
  .topbar { padding-inline: 22px; }
  .tabs { padding-inline: 22px; }
  .tab-panel { padding-inline: 22px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: min(300px, 88vw); transform: translateX(-103%); transition: transform .2s; box-shadow: var(--shadow); }
  body.menu-open .sidebar { transform: translateX(0); }
  .mobile-only { display: grid; }
  .topbar { min-height: 68px; padding: 10px 14px; }
  .topbar-actions .save-status, .topbar-actions #duplicateButton { display: none; }
  .topbar h1 { font-size: 15px; }
  .tabs { top: 68px; gap: 22px; padding-inline: 14px; }
  .tab-panel { padding: 20px 14px 45px; }
  .decision-strip, .section-intro, .danger-zone { align-items: stretch; flex-direction: column; }
  .section-intro { gap: 10px; }
  .section-intro > p { text-align: left; }
  .metrics-grid, .lower-grid, .form-grid.two, .form-grid.three, .check-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .span-two, .span-three { grid-column: auto; }
  .scenario-chart { gap: 10px; padding-inline: 15px; }
  .scenario-bar { width: 60px; }
  .topbar-actions .button { padding: 0 10px; }
  .evidence-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media print {
  @page { size: A4; margin: 16mm; }
  body { color: #15232c; background: white; font-size: 10pt; }
  .app-shell { display: none !important; }
  body.printing .print-report { display: block; }
  .print-report { max-width: none; }
  .print-report header { padding: 22mm 0 18mm; border-bottom: 2px solid #0e5a66; }
  .print-report header > span { color: #0e5a66; font-size: 8pt; font-weight: 700; letter-spacing: .08em; }
  .print-report header h1 { max-width: 160mm; margin: 10mm 0 3mm; color: #083c45; font-size: 25pt; line-height: 1.12; }
  .print-report header p { color: #607080; font-size: 11pt; }
  .print-report section { padding: 8mm 0 3mm; break-inside: avoid; }
  .print-report section h2 { margin: 0 0 4mm; color: #0e5a66; font-size: 14pt; }
  .report-decision { margin-top: 9mm; padding: 7mm !important; background: #f1f6f5; border-left: 3mm solid #0e5a66; }
  .report-decision > span { color: #607080; font-size: 8pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .report-decision h2 { margin: 2mm 0 !important; color: #12212f !important; font-size: 18pt !important; }
  .report-decision p { margin: 0; line-height: 1.5; }
  .report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #d9e0de; }
  .report-metric { padding: 4mm; border-right: 1px solid #d9e0de; }
  .report-metric:last-child { border-right: 0; }
  .report-metric span, .report-metric strong { display: block; }
  .report-metric span { color: #607080; font-size: 7.5pt; }
  .report-metric strong { margin-top: 2mm; font-size: 13pt; }
  .print-report table { margin-top: 2mm; border: 1px solid #d9e0de; }
  .print-report th, .print-report td { padding: 2.5mm; font-size: 8pt; }
  .report-definition { display: grid; grid-template-columns: 45mm 1fr; gap: 0; border-top: 1px solid #d9e0de; }
  .report-definition > div { padding: 3mm; border-bottom: 1px solid #d9e0de; }
  .report-definition > div:nth-child(odd) { color: #607080; background: #f7f9f8; font-weight: 600; }
  .report-risk { margin-bottom: 3mm; padding: 4mm; border: 1px solid #d9e0de; break-inside: avoid; }
  .report-risk strong { display: block; margin-bottom: 1mm; }
  .report-risk p { margin: 0; color: #607080; line-height: 1.45; }
  .report-limitations { margin-top: 6mm; padding: 6mm !important; color: #4f5e68; background: #f7f9f8; }
  .report-limitations p { margin: 0; line-height: 1.5; }
  .print-report footer { display: flex; justify-content: space-between; margin-top: 12mm; padding-top: 4mm; color: #607080; border-top: 1px solid #d9e0de; font-size: 8pt; }
}

/* Backup staleness — browser storage is the only copy until hosting lands. */
.backup-warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 20px;
  background: #fdf2e4;
  border-bottom: 1px solid #e9c88f;
  color: #7a4c08;
  font-size: 0.88rem;
}
.backup-warning .text-button { color: #7a4c08; font-weight: 600; }
.backup-status { display: block; margin-top: 4px; opacity: 0.65; font-size: 0.75rem; }
