:root {
  --ink: #122238;
  --paper: #f4f3ee;
  --white: #fff;
  /* Bright orange only for large accents (>= 24px numbers, italic hero words, bars, lines, borders,
     focus rings). Orange text under 24px uses --orange-text; orange fills behind white text use
     --orange-fill (both pass WCAG AA). */
  --orange: #f2673a;
  --orange-text: #b9461a;
  --orange-fill: #c4471c;
  --muted: #56637a;
  --line: #dfe3e7;
  --field: #c6cdd6;
  --green: #2f8065;
  /* Numbers (money, months, counts, KPIs, chart values) use the sans stack with lining, tabular digits:
     Georgia's old-style figures make "€0" read as "€o". Georgia stays for headings and titles. */
  --numbers: Geist, "Segoe UI", Aptos, sans-serif;
}

* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 90% 6%, #f2673a22, transparent 28rem), var(--paper); font-family: Geist, "Segoe UI", Aptos, sans-serif; }
.topbar, main { width: min(1240px, calc(100% - 48px)); margin: auto; }
.topbar { display: flex; min-height: 80px; align-items: center; justify-content: space-between; border-bottom: 1px solid #1121381f; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand > b { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px 3px; color: #fff; background: var(--ink); font-size: 15px; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 15px; letter-spacing: .08em; }
.brand small { margin-top: 4px; color: var(--orange-text); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.topbar nav { display: flex; align-items: center; gap: 8px; }
.topbar nav a, .topbar nav b { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border: 1px solid var(--line); color: var(--muted); background: #ffffffaa; font-size: 14px; font-weight: 700; text-decoration: none; }
.topbar nav b { border-color: var(--ink); color: #fff; background: var(--ink); }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding: 30px 0 26px; }
.hero small { color: var(--orange-text); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.hero h1 { margin: 10px 0 12px; font: 400 clamp(34px, 3.4vw, 50px)/1.06 Georgia, serif; letter-spacing: -.03em; }
.hero em { color: var(--orange); }
.hero p { max-width: 640px; margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.hero > div:first-child > b { font-size: 13px; letter-spacing: .06em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions button { min-height: 44px; padding: 0 18px; border: 1px solid #11213833; border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; font-size: 15px; font-weight: 700; white-space: nowrap; }
.actions button:hover { border-color: var(--orange); }
main { padding-bottom: 48px; }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid #1121381a; border-radius: 14px; background: #ffffffd9; }
.controls > div, .controls label { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.controls > div > small { font-size: inherit; }
.controls > div:first-child { flex: 1 1 auto; }
.controls > label[for="scope"] { flex: 1 1 190px; }
.controls > label[for="sort"] { flex: 1 1 320px; }
.controls > .payback-filter { flex: 0 1 auto; }
.controls > div > span { display: flex; flex-wrap: wrap; gap: 8px; }
.controls button { min-width: 88px; min-height: 44px; padding: 0 16px; border: 1px solid var(--field); border-radius: 8px; color: var(--muted); background: #fff; cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.controls button:hover { border-color: var(--ink); color: var(--ink); }
.controls button.active { border-color: var(--ink); color: #fff; background: var(--ink); }
.controls .payback-filter button { min-width: 84px; }
.controls .payback-filter button[data-payback="green"].active { border-color: #2c745c; color: #1f5f49; background: #e4f3ed; }
.controls .payback-filter button[data-payback="amber"].active { border-color: #a87924; color: #6f4c14; background: #fff1cb; }
.controls .payback-filter button[data-payback="red"].active { border-color: #b64d47; color: #8c322d; background: #fde6e4; }
.controls select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.controls p { flex: 1 1 360px; max-width: 70ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.controls p b { color: var(--ink); }
.primary-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.primary-kpis article { min-height: 200px; padding: 28px 30px; border-radius: 18px; box-shadow: 0 16px 45px #11213814; }
.primary-kpis small, .secondary-kpis small { font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.primary-kpis strong { display: block; margin: 20px 0 12px; font: 700 clamp(38px, 3.8vw, 54px)/1.08 var(--numbers); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.primary-kpis strong i { margin-left: 8px; font: 700 16px Geist, "Segoe UI", Aptos, sans-serif; letter-spacing: 0; }
.primary-kpis > article > span { font-size: 15px; line-height: 1.45; }
.saving { color: #fff; background: var(--ink); }
.saving small, .saving > span { color: #c3ccd7; }
.tpc { border: 1px solid #f2673a47; background: linear-gradient(135deg, #fff, #fff3ed); }
.tpc small { color: var(--orange-text); }
.tpc strong { color: var(--orange); }
.tpc strong i { color: var(--orange-text); }
.tpc > span { color: var(--muted); }
.tpc-full { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f2673a35; }
.tpc-full[hidden], .timeline-series-key span[hidden] { display: none !important; }
.tpc-full small { color: var(--muted); }
.tpc-full b { color: var(--ink); font: 700 22px/1.2 var(--numbers); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.secondary-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.secondary-kpis article { min-width: 0; min-height: 140px; padding: 22px; border: 1px solid #1121381a; border-radius: 14px; background: #fff; }
.secondary-kpis small { color: var(--muted); }
.secondary-kpis strong { display: block; margin: 14px 0 8px; font: 700 clamp(24px, 2.2vw, 30px)/1.15 var(--numbers); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.secondary-kpis strong.payback-value { display: flex; width: fit-content; padding: 4px 16px; }
.secondary-kpis span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.report-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 16px; }
.card { overflow: hidden; border: 1px solid #1121381a; border-radius: 16px; background: #fff; box-shadow: 0 14px 42px #1121380e; }
.systems, .scope { padding: 28px; }
.card header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.card header > div { display: flex; align-items: center; gap: 12px; }
.card header div > b { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: 13px; }
.card header span { display: flex; flex-direction: column; }
.card header small { color: var(--orange-text); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.card header span > strong { margin-top: 3px; font: 400 28px/1.2 Georgia, serif; }
.card header em { font-variant-numeric: tabular-nums; padding: 5px 12px; border-radius: 999px; color: #236c53; background: #e5f2ed; font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .04em; }
.card header em#sort-note { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.systems > div { display: grid; gap: 22px; margin-top: 28px; }
.system-row { display: grid; grid-template-columns: minmax(170px, 250px) minmax(100px, 1fr) minmax(96px, auto); gap: 16px; align-items: center; }
.system-row > span { display: flex; flex-direction: column; }
.system-row span > b { font-size: 15px; }
.system-row small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.system-row > i { overflow: hidden; height: 10px; border-radius: 999px; background: #edf0f2; }
.system-row > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #f6a383); }
.system-row > strong { text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.market-track { display: flex; overflow: hidden; height: 12px; margin-top: 28px; border-radius: 999px; background: var(--ink); }
.market-track i { display: block; background: var(--orange); }
.market-values > span { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin-top: 16px; }
.market-values b { font-size: 13px; letter-spacing: .04em; }
.market-values strong { font: 700 22px/1.2 var(--numbers); font-variant-numeric: lining-nums tabular-nums; }
.market-values small { grid-column: 1/-1; color: var(--muted); font-size: 13px; }
.brands { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.brands > small { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.brands > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.brands span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--paper); }
.brands b { font: 700 16px Georgia, serif; }
.brands i { color: #236c53; font-size: 13px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline { margin-bottom: 16px; padding: 28px; }
.timeline > p { max-width: 70ch; margin: 12px 0 0 48px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.timeline-chart { margin-top: 12px; }
.timeline-chart svg { display: block; width: 100%; height: auto; }
/* report.js draws the chart at the width of its box (1 SVG unit = 1px), so these sizes are the rendered sizes. */
.timeline-grid-line { stroke: #e3e7eb; stroke-width: 1; stroke-dasharray: 5 7; }
.timeline-axis-label { fill: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.timeline-line { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.timeline-line-full { fill: none; stroke: var(--ink); stroke-width: 4; stroke-dasharray: 10 8; stroke-linecap: round; stroke-linejoin: round; }
.timeline-guide { stroke: #f2673a3d; stroke-width: 1; stroke-dasharray: 4 5; }
.timeline-point { fill: #fff; stroke: var(--orange); stroke-width: 5; }
.timeline-point-full { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.timeline-value { fill: var(--ink); font-size: 14px; font-weight: 800; }
.timeline-value-full, .timeline-value-mix { font-size: 15px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.is-narrow .timeline-value-full, .is-narrow .timeline-value-mix { font-size: 14px; }
.is-narrow .timeline-line { stroke-width: 4; }
.is-narrow .timeline-line-full { stroke-width: 3; stroke-dasharray: 8 6; }
.is-narrow .timeline-point { stroke-width: 4; }
.is-narrow .timeline-point-full { stroke-width: 3; }
.timeline-value-full { fill: var(--ink); }
.timeline-value-mix { fill: var(--orange-text); }
.timeline-label { fill: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.timeline-detail { fill: var(--muted); font-size: 13px; font-weight: 600; }
.timeline-caption { fill: var(--muted); font-size: 13px; font-weight: 700; }
.timeline > p.timeline-empty { max-width: none; margin: 18px 0 0; padding: 32px 16px; border: 1px dashed #cfd6de; border-radius: 12px; color: var(--muted); background: #fafbfc; font-size: 16px; text-align: center; }
.timeline-chart[hidden], .timeline-series-key[hidden], .timeline-legend[hidden], .timeline-empty[hidden] { display: none !important; }
.timeline-series-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0 48px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.timeline-series-key span { display: flex; align-items: center; gap: 8px; }
.timeline-series-key span::before { width: 26px; height: 3px; flex: 0 0 26px; border-radius: 99px; background: var(--orange); content: ""; }
.timeline-series-key .full::before { height: 0; border-top: 3px dashed var(--ink); background: transparent; }
.timeline-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 8px 0 0 48px; }
.timeline-legend > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 12px 13px; border: 1px solid #e6e9ed; border-radius: 10px; background: #fafbfc; }
.timeline-legend small { color: var(--orange-text); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.timeline-legend b { font: 700 16px/1.3 var(--numbers); font-variant-numeric: lining-nums tabular-nums; }
.timeline-legend b > span { white-space: nowrap; }
.timeline-legend b + b { color: var(--ink); font-size: 15px; }
.timeline-legend i { color: var(--muted); font-size: 13px; font-style: normal; line-height: 1.35; }
.opportunities > header { padding: 26px 28px 20px; }
.opportunity-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 18px 28px; border-top: 1px solid #edf0f2; background: #fafbfc; }
.opportunity-filters label { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.opportunity-filters input,.opportunity-filters select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.opportunity-filters input { padding: 10px 14px; }
.opportunity-filters input::placeholder { color: #6b7687; opacity: 1; }
.opportunity-filters input:focus,.opportunity-filters select:focus { border-color: var(--orange); }
.opportunity-filters>button { min-height: 44px; padding: 0 20px; border: 1px solid var(--field); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; font-size: 15px; font-weight: 700; }
.opportunity-filters>button:hover { border-color: var(--orange); }
.opportunity-summary { margin: 0; padding: 12px 28px; border-top: 1px solid #edf0f2; color: var(--muted); background: #fff; font-size: 14px; }
.opportunity-empty { padding: 32px 28px; border-top: 1px solid #edf0f2; color: var(--muted); text-align: center; font-size: 16px; }
.payback-indicator,.payback-value{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-weight:800;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}.payback-indicator{min-width:76px;min-height:26px;padding:4px 10px;font-size:13px}.payback-value{padding:5px 12px}.payback-indicator.green,.payback-value.green{color:#1f5f49;background:#e4f3ed}.payback-indicator.amber,.payback-value.amber{color:#6f4c14;background:#fff1cb}.payback-indicator.red,.payback-value.red{color:#8c322d;background:#fde6e4}.payback-indicator.neutral,.payback-value.neutral{color:#56637a;background:#edf0f3}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
th { padding: 12px 10px; color: var(--muted); background: #fafbfc; font-size: 12px; font-weight: 800; letter-spacing: .06em; line-height: 1.3; text-align: left; vertical-align: bottom; }
th:first-child, td:first-child { padding-left: 28px; }
th:last-child, td:last-child { padding-right: 28px; }
td { padding: 14px 10px; border-top: 1px solid #edf0f2; font-size: 15px; white-space: nowrap; }
td:first-child { min-width: 220px; white-space: normal; }
td:nth-child(4) { min-width: 176px; white-space: normal; }
td.full-tpc { min-width: 128px; white-space: normal; }
td:first-child > b { display: block; color: var(--orange-text); font-size: 13px; letter-spacing: .02em; }
td:first-child span { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.35; }
/* Status chips: same shape and colours as admin.html (status-pill classes from admin.js): green GO,
   action-orange Information Required, amber HOLD, red NO-GO, navy-grey for every gate still in evaluation.
   On screen a chip stays on one line like admin's; slightly narrower cell padding and idea/full-TPC columns pay
   for that, so the nine-column table still fits 1240px and 1280px windows without scrolling sideways. */
@media screen { td:nth-child(4) { min-width: 0; } .status-pill { white-space: nowrap; } }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 4px 11px; border-radius: 999px; color: #2b3d55; background: #e9eef4; font-size: 13px; font-weight: 700; line-height: 1.25; }
.status-pill i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.status-pill.approved { color: #2f6f58; background: #e8f3ee; }
.status-pill.info { color: var(--orange-text); background: #fff0e8; }
.status-pill.info i { background: var(--orange-fill); }
.status-pill.hold { color: #8a5f12; background: #fff5d9; }
.status-pill.rejected { color: #9b3934; background: #fde6e4; }
.tpc-pair strong, .tpc-pair small, .full-tpc strong, .full-tpc small { display: block; }
.tpc-pair small, .full-tpc small { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.full-tpc strong { color: var(--orange-text); }
.detail-shortcut { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--field); border-radius: 8px; color: var(--ink); background: #fff; font-size: 18px; font-weight: 800; text-decoration: none; }
.detail-shortcut:hover,.detail-shortcut:focus-visible { border-color: var(--orange); color: var(--orange-text); }
.empty { color: var(--muted); font-size: 15px; text-align: center; }
@media (min-width: 901px) {
  .opportunity-search { grid-column: 1 / 3; grid-row: 1; }
  .opportunity-filters label[for="op-sort"] { grid-column: 3 / 5; grid-row: 1; }
  .opportunity-filters > button { grid-column: 5; grid-row: 1; }
  .opportunity-filters label[for="op-type"], .opportunity-filters label[for="op-system"], .opportunity-filters label[for="op-market"], .opportunity-filters label[for="op-status"] { grid-row: 2; }
}
@media (max-width: 900px) {
  .hero { align-items: flex-start; flex-direction: column; }
  .secondary-kpis { grid-template-columns: 1fr 1fr; }
  .secondary-kpis strong { font-size: 28px; }
  .report-grid { grid-template-columns: 1fr; }
  .opportunity-filters { grid-template-columns: 1fr 1fr; }
  .opportunity-search { grid-column: 1/-1; }
  .timeline-legend { grid-template-columns: 1fr 1fr; }
}

/* screen only: an A4 print page is about 718px wide and keeps the desktop/tablet print layout. */
@media screen and (max-width: 720px) {
  /* Same side gutter as the global nav on phones. */
  .topbar, main { width: calc(100% - 32px); }
  .topbar nav a { display: none; }
  /* Phone first screen: eyebrow, a short headline and the workshop line; the intro sentence stays in the HTML. */
  .hero { gap: 16px; padding: 20px 0 18px; }
  .hero h1 { margin: 8px 0 10px; font-size: 32px; }
  .hero p { display: none; }
  .actions { width: 100%; }
  .actions button { flex: 1 1 auto; padding: 0 12px; }
  .controls { gap: 18px; padding: 16px; }
  .controls > div:first-child, .controls > label[for="scope"], .controls > label[for="sort"], .controls > .payback-filter, .controls p { flex: 1 1 100%; }
  .controls > div > span { display: grid; grid-template-columns: 1fr 1fr; }
  .controls .payback-filter > span { grid-template-columns: repeat(3, 1fr); }
  .controls button, .controls .payback-filter button { min-width: 0; padding: 0 8px; }
  .primary-kpis { grid-template-columns: 1fr; }
  .primary-kpis article { min-height: 0; padding: 22px; }
  .primary-kpis strong { margin-top: 16px; font-size: 40px; }
  .secondary-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .secondary-kpis article { min-height: 0; padding: 16px; }
  .secondary-kpis strong { font-size: 22px; overflow-wrap: anywhere; }
  /* The 01-04 step badges are decorative; the card titles get the full width instead. */
  .card header div > b { display: none; }
  .card header span > strong { font-size: 26px; }
  .systems, .scope { padding: 22px 16px; }
  .system-row { grid-template-columns: minmax(0, 1fr) 11ch; gap: 8px 12px; }
  .system-row > span { grid-column: 1/-1; }
  .brands > div { grid-template-columns: 1fr; }
  .opportunities > header { padding: 22px 16px 16px; }
  .opportunities header em { display: none; }
  .opportunity-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding: 16px; }
  .opportunity-summary { padding: 12px 16px; }
  .timeline { padding: 22px 16px; }
  .timeline header em { display: none; }
  .timeline > p, .timeline-series-key, .timeline-legend { margin-left: 0; }
  .timeline-legend { grid-template-columns: 1fr 1fr; }
  .timeline-legend > span { padding: 12px; }
  .timeline-legend b, .timeline-legend b + b { font-size: 15px; }

  /* Top value opportunities: each row becomes a labelled card. The table stays a table in the DOM;
     report.js writes the column header into each cell's data-label. */
  .table-wrap { overflow: visible; padding: 4px 16px 16px; }
  .table-wrap:has(#opportunity-rows:empty) { padding: 0; }
  .opportunities table, .opportunities tbody, #opportunity-rows tr, #opportunity-rows td { display: block; }
  .opportunities thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #opportunity-rows tr { position: relative; margin-top: 12px; padding: 14px 16px 6px; border: 1px solid #e3e7eb; border-radius: 12px; background: #fff; }
  #opportunity-rows td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: center; column-gap: 16px; min-width: 0; padding: 9px 0; border-top: 1px solid #edf0f2; text-align: right; white-space: normal; }
  #opportunity-rows td::before { grid-column: 1; grid-row: 1 / span 2; color: var(--muted); content: attr(data-label); font-size: 12px; font-weight: 800; letter-spacing: .06em; line-height: 1.3; text-align: left; }
  #opportunity-rows td:not(:first-child):not(:last-child) > * { grid-column: 2; justify-self: end; }
  #opportunity-rows td:first-child { display: block; padding: 0 56px 12px 0; border-top: 0; text-align: left; }
  #opportunity-rows td:last-child { position: absolute; top: 10px; right: 12px; display: block; padding: 0; border: 0; }
  #opportunity-rows td:first-child::before, #opportunity-rows td:last-child::before { content: none; }
  .detail-shortcut { width: 44px; height: 44px; }
}

@media print {
  .topbar, .actions, .controls { display: none !important; }
  body { background: #fff; }
  .hero, main { width: 100%; }
  .hero { padding: 24px 0; }
  .hero h1 { font-size: 45px; }
  .primary-kpis article, .secondary-kpis article, .card { break-inside: avoid; box-shadow: none; }
  .status-pill { border-radius: 8px; }
}

/* ---- v3.0.0: workshop picker, page states, accessibility ---- */
.report-workshop { display: flex; max-width: 420px; flex-direction: column; gap: 8px; margin-top: 16px; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.report-workshop select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.report-workshop select:focus { border-color: var(--orange); }
.report-workshop select:disabled { opacity: .6; cursor: progress; }
.report-workshop[hidden], .report-state[hidden], .report-content[hidden], .report-state [hidden] { display: none !important; }
.report-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid #1121381a; border-radius: 14px; color: var(--ink); background: #ffffffd9; }
.report-state p { display: flex; flex: 1 1 300px; align-items: center; gap: 12px; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; white-space: pre-line; }
.report-state__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.report-state button, .report-state a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #11213833; border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; }
.report-state button:hover, .report-state a:hover { border-color: var(--orange); color: var(--orange-text); }
.report-state[data-tone="loading"] p::before { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid #f2673a40; border-top-color: var(--orange); border-radius: 50%; animation: report-spin .8s linear infinite; content: ""; }
.report-state[data-tone="error"] { border-color: #b64d4766; background: #fde6e4; }
.report-state[data-tone="error"] p { color: #8c322d; }
.report-state[data-tone="denied"] { border-color: #a8792466; background: #fff1cb; }
.report-state[data-tone="denied"] p { color: #6f4c14; }
.report-state[data-tone="empty"] p { color: var(--muted); }
.actions button:disabled, .report-state button:disabled { opacity: .55; cursor: not-allowed; }
.actions button:disabled:hover { border-color: #11213833; }
/* One focus ring on every page: 3px bright orange, 2px away from the control. */
main :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.controls select:focus { border-color: var(--orange); }
@keyframes report-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .report-state[data-tone="loading"] p::before { animation: none; }
}
@media (max-width: 720px) {
  .report-workshop { max-width: none; }
  .report-state { align-items: stretch; flex-direction: column; padding: 16px; }
  .report-state p { flex-basis: auto; }
  .report-state__actions > * { flex: 1; }
}
@media print {
  .report-workshop, .report-state { display: none !important; }
}
