:root {
  --ink: #17212b;
  --muted: #65717d;
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --line: #ded8cc;
  --navy: #193448;
  --navy-2: #0f2637;
  --orange: #e66b2e;
  --orange-soft: #fff0e7;
  --green: #2b7a63;
  --green-soft: #dff2e9;
  --yellow: #b57a16;
  --yellow-soft: #fff0c8;
  --red: #a5443f;
  --red-soft: #f8deda;
  --shadow: 0 18px 45px rgba(23, 33, 43, .08);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 90% 0, #f9dfcc 0, transparent 28rem), var(--paper); }
button, input, select { font: inherit; }
.page-shell { max-width: 1500px; margin: 0 auto; padding: 24px 32px 48px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 32px; padding: 48px; color: white; background: linear-gradient(135deg, var(--navy-2), var(--navy)); border-radius: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 56px solid rgba(255,255,255,.035); border-radius: 50%; right: -80px; top: -120px; }
.eyebrow { color: #f5a87f; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 14px 0 16px; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 76px); line-height: .98; font-weight: 500; }
.hero__lead { max-width: 760px; margin: 0; color: #d6e1e8; font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }
.update-panel { align-self: stretch; padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); position: relative; z-index: 1; }
.status-line { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.status-line strong, .status-line span { display: block; }
.status-line strong { font-size: 18px; }
.status-line span { margin-top: 4px; color: #b9c9d3; font-size: 13px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #8da0ad; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.status-dot.ok { background: #56d39a; }
.status-dot.stale { background: #ffad67; }
.button { width: 100%; padding: 13px 20px; border: 0; border-radius: 12px; color: white; background: var(--orange); font-weight: 750; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); background: #f0793d; }
.button:disabled { opacity: .65; cursor: wait; }
.interval-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; color: #d6e1e8; font-size: 13px; font-weight: 650; }
.interval-field input { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(8,20,28,.35); color: white; }
.update-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.update-actions .secondary-button { width: 100%; color: white; border-color: rgba(255,255,255,.25); background: transparent; }
.update-panel p { margin: 14px 0 0; color: #b9c9d3; font-size: 13px; line-height: 1.5; }
main > section { margin-top: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading > div { display: flex; align-items: baseline; gap: 14px; }
.section-heading h2, .methodology h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 42px); font-weight: 500; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.5; text-align: right; }
.section-number { color: var(--orange); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card { min-height: 178px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.kpi-card span, .kpi-card small { display: block; color: var(--muted); }
.kpi-card span { font-weight: 700; }
.kpi-card strong { display: block; margin: 22px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1; }
.kpi-card small { line-height: 1.4; }
.kpi-card.accent { border-color: #f4c2a8; background: var(--orange-soft); }
.kpi-card.dark { border: 0; color: white; background: var(--navy); }
.kpi-card.dark span, .kpi-card.dark small { color: #c2d1da; }
.competitor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.competitor-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.6); }
.competitor-card h3 { margin: 0 0 10px; font-size: 21px; }
.competitor-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.demand-ring { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: conic-gradient(var(--orange) var(--progress), #e5dfd4 0); position: relative; font-weight: 800; }
.demand-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.demand-ring span { position: relative; }
.economics-section { padding: 42px; border-radius: 28px; color: white; background: linear-gradient(145deg, var(--navy), #244b61); box-shadow: var(--shadow); }
.section-heading.light p { color: #c4d2da; }
.calculator-layout { display: grid; grid-template-columns: minmax(280px, .72fr) 1.6fr; gap: 20px; }
.assumptions-card { padding: 24px; border-radius: 18px; background: rgba(255,255,255,.08); }
.assumptions-card h3 { margin: 0 0 20px; font-size: 22px; }
.assumptions-card label { display: block; margin: 14px 0; color: #d9e3e8; font-size: 13px; }
.assumptions-card input { width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: white; background: rgba(7,25,37,.35); outline: none; }
.assumptions-card input:focus { border-color: #f5a87f; }
.assumptions-card input::placeholder { color: #8fa5b2; }
.form-hint { margin: 18px 0 0; color: #aebfc9; font-size: 12px; }
.profit-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profit-results article { min-height: 150px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.06); }
.profit-results span, .profit-results small { display: block; color: #b8c9d2; }
.profit-results strong { display: block; margin: 20px 0 8px; color: white; font-size: clamp(25px, 3vw, 38px); }
.disclaimer-inline { margin-top: 20px; padding: 15px 18px; border-left: 3px solid #f5a87f; color: #cbd8df; background: rgba(0,0,0,.12); line-height: 1.55; }
.insights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.insight-card { min-height: 150px; padding: 22px; border-radius: 18px; background: var(--surface); border-top: 4px solid var(--orange); box-shadow: var(--shadow); line-height: 1.55; }
.insight-card b { display: block; margin-bottom: 14px; color: var(--orange); font-size: 12px; letter-spacing: .1em; }
.toolbar { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(180px, .5fr)); gap: 14px; margin-bottom: 16px; }
.toolbar label span { display: block; margin: 0 0 7px 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.toolbar input, .toolbar select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); outline: none; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--orange); }
.table-wrap, .calendar-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.table-wrap { max-height: 560px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; color: #52606b; background: #eee9df; text-align: left; white-space: nowrap; font-size: 11px; letter-spacing: .02em; }
td { padding: 7px 10px; border-top: 1px solid #ebe6dc; vertical-align: middle; }
tbody tr:hover { background: #fff9f2; }
.loading-cell { padding: 36px; color: var(--muted); text-align: center; }
.table-caption { color: var(--muted); font-size: 13px; }
.status-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 750; }
.status-badge.free { color: var(--green); background: var(--green-soft); }
.status-badge.partial { color: var(--yellow); background: var(--yellow-soft); }
.status-badge.busy { color: var(--red); background: var(--red-soft); }
.status-badge.unknown { color: #6f7880; background: #e8eaeb; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 13px; height: 13px; border-radius: 4px; }
.heat-scale { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.heat-scale span { gap: 5px; padding: 5px 7px; background: var(--surface); }
.legend .heat-0, .calendar-cell.heat-0 { background: #edf7f0; }
.legend .heat-1, .calendar-cell.heat-1 { background: #fdebd8; }
.legend .heat-2, .calendar-cell.heat-2 { background: #f8c99e; }
.legend .heat-3, .calendar-cell.heat-3 { color: #552613; background: #ed9563; }
.legend .heat-4, .calendar-cell.heat-4 { color: white; background: #bd5636; }
.legend .unknown, .calendar-cell.unknown { background: #e8eaeb; }
.legend .offline, .calendar-cell.offline, .calendar-name.offline { background: repeating-linear-gradient(135deg, #eee6dd 0 4px, #ddd0c1 4px 8px); }
.calendar-name .booking-closed { display: block; margin-top: 2px; color: #8a5a32; font-size: 10px; font-weight: 750; }
.fleet-closed { display: block; margin-top: 3px; color: #8a5a32; font-size: 12px; font-weight: 700; }
.calendar-grid { min-width: 820px; display: grid; }
.calendar-grid > div { min-height: 26px; padding: 2px 4px; border-right: 1px solid white; border-bottom: 1px solid white; display: grid; place-items: center; font-size: 11px; text-align: center; }
.calendar-header { position: sticky; top: 0; z-index: 2; color: #52606b; background: #eee9df; font-weight: 750; font-size: 11px; }
.calendar-name { justify-items: start !important; text-align: left !important; background: var(--surface); font-weight: 700; font-size: 12px; padding-left: 8px !important; }
.calendar-competitor { background: #f8f5ef; color: var(--muted); font-size: 11px; }
.calendar-cell { cursor: default; font-variant-numeric: tabular-nums; font-weight: 750; }
.methodology { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 30px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #ebe6dc; }
.methodology > div { display: flex; align-items: baseline; gap: 12px; }
.methodology p, .methodology li { color: #56636d; line-height: 1.6; }
.methodology p { margin: 0; font-size: 16px; }
.methodology ul { margin: 0; padding-left: 20px; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding: 24px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; padding: 15px 18px; border-radius: 12px; color: white; background: var(--red); box-shadow: var(--shadow); z-index: 10; }
@media (max-width: 1000px) {
  .hero, .calculator-layout, .methodology { grid-template-columns: 1fr; }
  .kpi-grid, .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading p { text-align: left; }
}
@media (max-width: 680px) {
  .page-shell { padding: 12px 12px 30px; }
  .hero, .economics-section { padding: 26px 20px; border-radius: 20px; }
  .hero { grid-template-columns: 1fr; }
  .kpi-grid, .competitor-grid, .insights-grid, .profit-results, .toolbar { grid-template-columns: 1fr; }
  main > section { margin-top: 50px; }
  .section-heading > div { align-items: flex-start; }
  .methodology { padding: 24px; }
  footer { flex-direction: column; }
}

.compact-hero { padding: 22px 26px; gap: 24px; border-radius: 18px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); }
.compact-hero h1 { margin: 8px 0 10px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; }
.compact-hero .hero__lead { font-size: 14px; line-height: 1.5; }
.compact-hero .update-panel { padding: 12px 16px; border-radius: 12px; }
.compact-hero .status-line { margin-bottom: 10px; }
.compact-hero .update-panel p { margin-bottom: 0; font-size: 11px; }
.section-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; margin: 18px 0; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(244, 241, 234, .94); backdrop-filter: blur(12px); }
.nav-tab { flex: 1; padding: 12px 14px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 750; cursor: pointer; }
.nav-tab.active { color: white; background: var(--navy); }
.global-filters { display: grid; grid-template-columns: 1.5fr .65fr .7fr .7fr 1fr auto; gap: 12px; align-items: end; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.filter-label, .calendar-toolbar label span { display: block; margin: 0 0 7px 3px; color: var(--muted); font-size: 12px; font-weight: 750; }
.global-filters input, .global-filters select, .calendar-toolbar input, .calendar-toolbar select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.company-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.company-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: 13px; }
.company-chip:has(input:checked) { color: white; border-color: var(--navy); background: var(--navy); }
.region-tag { margin: 0; padding: 2px 7px; border-radius: 999px; background: #ece7dc; color: var(--navy); font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.company-chip:has(input:checked) .region-tag { background: rgba(255,255,255,.18); color: white; }
.company-chip input { width: auto; min-height: 0; margin: 0; }
.secondary-button { min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: white; font-weight: 700; cursor: pointer; }
.secondary-button:hover { border-color: var(--orange); }
.tab-panel { min-height: 420px; }
.tab-panel:not(.active) { display: none; }
.overview-kpis { grid-template-columns: repeat(4, 1fr); }
.overview-finance { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.company-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.company-detail-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.company-detail-card h3 { margin: 0 0 18px; font-size: 24px; }
.company-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.company-metrics div { padding: 12px; border-radius: 12px; background: #f2eee6; }
.company-metrics span, .company-metrics small { display: block; color: var(--muted); font-size: 12px; }
.company-metrics strong { display: block; margin: 7px 0 3px; font-size: 20px; }
.plain-note { margin-top: 20px; padding: 16px 18px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; color: var(--muted); background: #eee8dd; line-height: 1.55; }
.calendar-toolbar { display: grid; grid-template-columns: auto auto auto 1fr .6fr .6fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0; }
.fleet-table-wrap { margin-top: 14px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-card { min-height: 330px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.chart-card h3 { margin: 0 0 8px; }
.chart-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.wide-chart { grid-column: 1 / -1; }
.chart { min-height: 240px; overflow-x: auto; }
.chart svg { width: 100%; min-width: 520px; height: 240px; overflow: visible; }
.chart-axis { stroke: #cfc8bb; stroke-width: 1; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { stroke: white; stroke-width: 2; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-empty { min-height: 240px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.section-heading.compact { margin-top: 28px; }
.section-heading.compact h3 { margin: 0; font-size: 24px; }
.forecast-panel { padding: 40px; border-radius: 28px; color: white; background: linear-gradient(145deg, var(--navy), #244b61); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.scenario-grid article { padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.07); }
.scenario-grid span, .scenario-grid small { display: block; color: #bfd0d9; }
.scenario-grid strong { display: block; margin: 16px 0 8px; font-size: 32px; }
.scenario-grid .base-scenario { border-color: #f5a87f; background: rgba(230,107,46,.18); }
.booking-ranking-wrap { max-height: 620px; }
.booking-ranking-row { cursor: pointer; }
.booking-ranking-row.top td:first-child { color: var(--orange); font-weight: 850; }
.booking-ranking-row.zero { color: var(--muted); }
.booking-ranking-row .signal-count { color: var(--navy); font-size: 15px; }
.booking-ranking-row.zero .signal-count { color: var(--muted); }
.booking-ranking-note { margin-bottom: 28px; }
.fleet-year-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.fleet-year-company { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.fleet-year-company h4 { margin: 0 0 14px; font-size: 20px; }
.fleet-year-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.fleet-year-card { min-height: 112px; padding: 14px; border-radius: 12px; background: #f2eee6; }
.fleet-year-card span, .fleet-year-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.fleet-year-card strong { display: block; margin: 12px 0 7px; font-size: 24px; }
.fleet-year-card.no-data { background: repeating-linear-gradient(135deg, #f2eee8 0 5px, #e7e0d7 5px 10px); }
.fleet-year-card .additions { color: var(--green); }
.fleet-year-card .removals { color: var(--red); }
.fleet-matrix-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, .45fr); gap: 12px; margin-bottom: 12px; }
.fleet-matrix-toolbar span { display: block; margin: 0 0 6px 3px; color: var(--muted); font-size: 12px; font-weight: 750; }
.fleet-matrix-toolbar input, .fleet-matrix-toolbar select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.fleet-matrix-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.fleet-matrix-legend span { display: flex; align-items: center; gap: 6px; }
.fleet-matrix-legend i { width: 13px; height: 13px; border: 1px solid rgba(0,0,0,.06); border-radius: 4px; }
.fleet-matrix-wrap { max-height: 650px; }
.fleet-matrix-table { min-width: 860px; }
.fleet-matrix-table th:nth-child(n+3) { text-align: center; }
.fleet-matrix-model > td:first-child { position: sticky; left: 0; z-index: 1; min-width: 110px; background: var(--surface); }
.fleet-matrix-model > td:nth-child(2) { position: sticky; left: 110px; z-index: 1; min-width: 230px; background: var(--surface); }
.fleet-matrix-table thead th:first-child { left: 0; z-index: 3; min-width: 110px; }
.fleet-matrix-table thead th:nth-child(2) { left: 110px; z-index: 3; min-width: 230px; }
.fleet-presence-cell { min-width: 130px; padding: 0; text-align: center; }
.fleet-presence-button { width: 100%; min-height: 52px; padding: 7px 9px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.fleet-presence-button:disabled { cursor: default; }
.fleet-presence-button strong, .fleet-presence-button small { display: block; }
.fleet-presence-button small { margin-top: 3px; opacity: .72; font-size: 10px; }
.fleet-presence-cell.present_all { color: #195e48; background: var(--green-soft); }
.fleet-presence-cell.observed { color: #425b73; background: #e8eef5; }
.fleet-presence-cell.appeared { color: #195e48; background: #dcefe5; }
.fleet-presence-cell.disappeared { color: #8d3a27; background: #f8ddd2; }
.fleet-presence-cell.appeared_disappeared, .fleet-presence-cell.changed { color: #6f4c11; background: linear-gradient(135deg, #dcefe5 0 50%, #f8ddd2 50%); }
.fleet-presence-cell.not_observed { color: var(--muted); background: #faf8f4; }
.fleet-presence-cell.no_data { color: var(--muted); background: repeating-linear-gradient(135deg, #f0ece6 0 5px, #e3ddd4 5px 10px); }
.fleet-matrix-detail-row td { padding: 0; background: #f5f0e8; }
.fleet-snapshot-detail { padding: 16px 18px; }
.fleet-snapshot-detail p { margin: 0 0 12px; color: var(--muted); }
.fleet-snapshot-detail > div { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet-snapshot { min-width: 130px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-decoration: none; }
.fleet-snapshot strong, .fleet-snapshot small { display: block; }
.fleet-snapshot small { margin-top: 4px; color: var(--muted); }
.fleet-snapshot.present { border-color: #a9d5c1; background: var(--green-soft); }
.fleet-snapshot.absent { opacity: .7; }
.history-journal { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.history-journal summary { color: var(--navy); font-size: 17px; font-weight: 750; cursor: pointer; }
.history-journal > p { color: var(--muted); line-height: 1.5; }
.forecast-panel .calculator-layout { margin-top: 14px; }
.forecast-panel .profit-results { grid-template-columns: repeat(3, 1fr); }
.plain-note.inverse { color: #d3dee4; background: rgba(0,0,0,.15); }
.forecast-table { margin-top: 20px; color: var(--ink); }
.about-data { margin-top: 42px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: var(--surface); }
.about-data summary { color: var(--navy); font-weight: 750; cursor: pointer; }
.about-data p { margin-bottom: 0; line-height: 1.6; }
@media (max-width: 1100px) {
  .global-filters { grid-template-columns: repeat(3, 1fr); }
  .global-filters .wide { grid-column: 1 / -1; }
  .calendar-toolbar { grid-template-columns: repeat(3, 1fr); }
  .fleet-year-summary { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section-nav { overflow-x: auto; }
  .global-filters, .calendar-toolbar, .overview-kpis, .overview-finance, .company-detail-grid, .chart-grid, .scenario-grid { grid-template-columns: 1fr; }
  .fleet-matrix-toolbar { grid-template-columns: 1fr; }
  .wide-chart { grid-column: auto; }
  .forecast-panel { padding: 26px 18px; }
  .forecast-panel .profit-results { grid-template-columns: 1fr; }
  .company-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* The factual report has independent filters and never inherits rolling calendar dates. */
[hidden] { display: none !important; }
:where(button, input, select, a, [tabindex]):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.business-panel { margin-top: 20px; }
.business-panel > .section-heading h2 { font-size: clamp(22px, 2.5vw, 30px); }
.business-panel > .section-heading { margin-bottom: 12px; }
.business-boundary { margin-bottom: 14px; padding: 12px 16px; border: 1px solid #c3d0d9; border-left: 4px solid var(--navy); border-radius: 10px; background: #e8eff3; color: var(--navy-2); font-size: 13px; line-height: 1.5; }
.business-boundary strong { margin-right: 6px; font-size: 14px; }
.business-filters { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.business-filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 14px; }
.business-filters input:not([type="checkbox"]), .business-filters select, .business-detail-control select { min-width: 0; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.business-company-filter { min-width: 0; margin: 12px 0; padding: 0; border: 0; }
.business-company-filter legend { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }
.business-company-filter .company-chip { min-height: 44px; }
.business-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.business-primary { background: var(--navy); color: white; border-color: var(--navy); }
.business-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.business-muted { color: #53616d; font-size: 13px; line-height: 1.6; }
.business-filter-actions .business-muted { flex: 1 1 280px; }
.business-report-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px 0; }
.business-report-actions p { margin: 0; min-width: 0; color: var(--navy); line-height: 1.5; font-size: 12px; overflow-wrap: anywhere; }
.business-report-actions > div { display: flex; flex: 0 0 auto; gap: 8px; }
.secondary-button:disabled { color: #66717a; background: #eeeae3; cursor: not-allowed; opacity: .75; }
.business-state { margin: 18px 0; padding: 28px; border: 1px dashed #b4bec6; border-radius: 16px; color: var(--navy); background: #eaf0f3; line-height: 1.65; overflow-wrap: anywhere; }
.business-state-error { border-color: var(--red); background: var(--red-soft); color: #782d29; }
.business-state-empty { background: var(--yellow-soft); border-color: var(--yellow); color: #6d4910; }
.business-status-counts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 16px 0; color: var(--navy); font-size: 13px; line-height: 1.6; }
.business-section { margin-top: 24px; min-width: 0; }
.business-section .section-heading { margin-bottom: 16px; }
.business-section .section-heading h3 { font-size: clamp(21px, 2.5vw, 27px); line-height: 1.3; }
.business-section .section-heading p { font-size: 13px; }
.business-finance { padding: 24px; border: 1px solid #c9d1d6; border-radius: 20px; background: #e9eef0; }
.business-finance .section-heading { margin-top: 0; }
.business-finance > p, .business-inputs { color: #465663; line-height: 1.65; font-size: 14px; }
.business-finance h4 { margin-bottom: 8px; }
.business-inputs { margin-top: 0; padding-left: 22px; }
.business-inputs li { padding: 3px 0; }
.business-table { max-height: none; }
.business-table table { min-width: 850px; font-variant-numeric: tabular-nums; }
.business-table caption { padding: 13px 16px; text-align: left; color: #53616d; background: #f6f3ed; font-size: 12px; line-height: 1.5; }
.business-table th, .business-table td { padding: 7px 10px; line-height: 1.35; }
.business-table th { white-space: normal; font-size: 12px; }
.business-table tbody th { position: static; color: var(--ink); background: transparent; font-size: 13px; letter-spacing: normal; border-top: 1px solid #ebe6dc; }
.business-table small { display: block; max-width: 230px; margin-top: 2px; color: #53616d; font-size: 11px; line-height: 1.35; font-weight: 400; }
.business-table td > strong { font-size: 13px; }
.business-company-link { padding: 2px 0; border: 0; border-bottom: 1px dotted var(--navy); color: var(--navy); background: transparent; text-align: left; font-weight: 750; cursor: pointer; }
.business-detail-control { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; color: var(--navy); font-size: 14px; font-weight: 700; }
.business-detail-control select { width: auto; max-width: 100%; }
.business-company-detail { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.business-company-detail h4 { margin: 0 0 10px; font-size: 19px; }
.business-bike-table { max-height: 800px; }
.business-bike-table table { min-width: 1520px; }
.business-bike-table thead button { display: inline-flex; align-items: center; gap: 6px; width: 100%; min-height: 42px; padding: 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.business-bike-table th:nth-child(3) { min-width: 160px; }
.business-bike-table th:nth-child(4) { min-width: 220px; }
.business-bike-table th:nth-child(5), .business-bike-table th:nth-child(12) { min-width: 180px; }
.business-bike-table td, .business-bike-table tbody th { vertical-align: top; }
.business-bike-table a { color: #195e72; font-weight: 700; }
.business-badge { display: inline-block; padding: 5px 8px; border-radius: 7px; color: #53616d; background: #e8eaeb; font-size: 11px; font-weight: 750; line-height: 1.4; }
.business-badge.ranked { color: #195e48; background: var(--green-soft); }
.business-badge.closed { color: #70491d; background: #f3e7cf; }
.business-badge.unranked { color: #765514; background: var(--yellow-soft); }
.business-bike-no-data { background: #f5f4f1; }
.business-quality { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #ece8df; line-height: 1.65; }
.business-quality .section-heading { margin-top: 0; }
.business-quality p, .business-quality li { color: #465663; font-size: 14px; }
.business-provenance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.business-provenance dt { color: #53616d; font-size: 12px; }
.business-provenance dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.business-source-details { margin-top: 12px; padding: 12px; border: 1px solid #cec7b9; border-radius: 10px; }
.business-source-details summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.business-source-details pre { max-width: 100%; margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.6; }
.business-view .about-data { display: none; }
.business-series { max-width: 100%; }
.business-series-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.business-series-toggle { display: flex; flex-wrap: wrap; gap: 6px; }
.business-series-toggle button[aria-pressed="true"] { color: white; border-color: var(--navy); background: var(--navy); }
.business-series-controls label { display: grid; flex: 1 1 260px; gap: 7px; min-width: 0; color: var(--navy); font-size: 12px; font-weight: 700; }
.business-series-controls select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.business-series-view-title { margin: 24px 0 10px; color: var(--navy); font-size: 18px; line-height: 1.5; }
.business-series-figure { margin: 18px 0 12px; padding: 18px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.business-series-chart { width: 100%; max-width: 100%; overflow-x: auto; }
.business-series-chart > svg { display: block; width: 100%; min-width: 760px; height: auto; }
.business-series-gridline { stroke: #dbe0e2; stroke-width: 1; }
.business-series-point { cursor: crosshair; }
.business-series-point:focus { outline: none; stroke: #111; stroke-width: 3; }
.business-series-figure figcaption { padding: 4px 10px; color: #53616d; font-size: 12px; line-height: 1.6; }
.business-series-figure a { color: #195e72; }
.business-series-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 16px 0; padding: 0; list-style: none; }
.business-series-legend li { display: flex; align-items: start; gap: 8px; max-width: 100%; color: var(--navy); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.business-series-legend svg { flex: 0 0 34px; width: 34px; height: 16px; margin-top: 2px; }
.business-series-legend small { display: block; color: #53616d; font-size: 11px; }
.business-series-tooltip { min-height: 76px; margin: 12px 0; padding: 14px 16px; border-left: 3px solid var(--navy); background: #e8eff3; color: var(--navy); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.business-series-partials { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: #53616d; font-size: 12px; line-height: 1.65; }
.business-series-partials summary { color: var(--navy); cursor: pointer; font-weight: 700; }
.business-series-partials ul { margin-bottom: 0; padding-left: 20px; }
.business-series-table { width: 100%; max-width: 100%; max-height: 720px; }
.business-series-table table { min-width: 2000px; }
.business-series-table td, .business-series-table tbody th { vertical-align: top; }
.business-series-table th:nth-child(1), .business-series-table th:nth-child(3) { min-width: 170px; }
.business-series-table th:nth-child(2), .business-series-table th:nth-child(4) { min-width: 190px; }
.business-series-table .business-series-selected, .business-series-table thead th:nth-child(4) { background: #e8eff3; }
.business-series-table tbody tr:nth-child(even) { background: #f8f6f1; }
.section-nav > .nav-tab { flex: 0 1 220px; }
.legacy-navigation { flex: 1; min-width: 0; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.legacy-navigation summary { cursor: pointer; font-weight: 700; }
.legacy-navigation p { margin: 10px 0; font-size: 12px; line-height: 1.5; }
.legacy-navigation-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.legacy-navigation-tabs .nav-tab { min-width: 0; flex: 1 1 150px; border: 1px solid var(--line); font-size: 12px; }
.business-executive { padding: 14px 18px; border: 1px solid #b9cbd1; border-radius: 12px; background: #edf3f5; line-height: 1.5; }
.business-executive h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.business-executive p { margin: 8px 0; font-size: 13px; }
.business-executive a { font-size: 13px; font-weight: 700; color: #195e72; }
.business-executive-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--navy); }
.business-daily-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; padding: 0; list-style: none; }
.business-daily-legend li { display: flex; gap: 7px; flex: 1 1 240px; align-items: start; color: #465663; font-size: 12px; line-height: 1.45; }
.business-legend-dot { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 4px; border-radius: 2px; }
.business-day-segment.closure_observed, .business-legend-dot.closure_observed { background: #b46931; }
.business-day-segment.fully_open, .business-legend-dot.fully_open { background: #276e87; }
.business-day-segment.uncertain, .business-legend-dot.uncertain { background: #9aa4ad; }
.business-daily-chart { min-width: 0; max-width: 100%; overflow-x: auto; padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.business-daily-bars { display: flex; align-items: end; min-width: max-content; gap: 3px; padding: 0 8px; }
.business-day-bar { display: flex; flex-direction: column; justify-content: end; align-items: stretch; flex: 1 0 28px; width: 28px; height: 138px; padding: 3px 2px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--navy); cursor: pointer; }
.business-day-bar:hover, .business-day-bar[aria-pressed="true"] { border-color: var(--navy); background: #e6eef2; }
.business-day-stack { display: flex; flex-direction: column; justify-content: end; height: 110px; }
.business-day-segment { display: block; flex: 0 0 auto; width: 100%; }
.business-day-label { margin-top: 6px; font-size: 8px; white-space: nowrap; }
.business-day-gap { flex: 1 0 28px; width: 28px; }
.business-daily-toggle, .business-day-filters { margin: 14px 0 10px; }
.business-daily-table { max-height: 540px; }
.business-daily-table table { min-width: 780px; width: 100%; }
.business-daily-table td { white-space: nowrap; }
.business-daily-table tr.selected-day { background: #e6eef2; }
.business-count-link { min-height: 30px; min-width: 32px; padding: 3px 4px; border: 0; background: transparent; color: #195e72; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.business-day-detail { margin-top: 16px; padding: 14px 16px; border: 1px solid #b9cbd1; border-radius: 12px; background: var(--surface); }
.business-day-detail h4 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.business-day-bike-table { max-height: 500px; }
.business-badge.closure_observed { color: #70491d; background: #f3e7cf; }
.business-badge.fully_open { color: #195e72; background: #e0eef4; }
.business-badge.uncertain { color: #465663; background: #e8eaeb; }
.business-advanced { min-width: 0; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.business-advanced > summary { color: var(--navy); font-size: 14px; font-weight: 750; cursor: pointer; }
.business-advanced > .business-section { margin-top: 18px; }
.business-bike-table td, .business-bike-table tbody th { vertical-align: middle; white-space: nowrap; }
.business-bike-table th:nth-child(4) { min-width: 170px; }
.business-bike-table th:nth-child(5), .business-bike-table th:nth-child(12) { min-width: 110px; }
.business-bike-table .business-badge { padding: 3px 6px; }
@media (max-width: 1000px) {
  .compact-hero { grid-template-columns: 1fr; gap: 14px; }
  .compact-hero .update-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .compact-hero .status-line { flex: 1 1 280px; margin: 0; }
  .compact-hero .update-panel p { flex: 1 1 100%; margin: 0; }
}
@media (max-width: 680px) {
  .compact-hero { padding: 16px; }
  .section-nav { position: static; align-items: start; overflow: visible; }
  .section-nav > .nav-tab { min-width: 0; flex: 0 0 110px; font-size: 12px; padding: 12px 8px; }
  .legacy-navigation { padding: 12px 4px; font-size: 12px; }
  .business-executive, .business-day-detail, .business-advanced { padding: 12px; }
  .business-daily-legend { flex-direction: column; }
  .business-daily-legend li { flex-basis: auto; }
  .business-day-filters button { flex: 1 1 140px; font-size: 12px; }
  .business-daily-table, .business-day-bike-table { max-height: 65vh; }
}
@media (max-width: 1100px) {
  .business-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-tab { min-width: 145px; }
  .section-nav { overflow-x: auto; }
}
@media (max-width: 680px) {
  .business-panel { margin-top: 24px; }
  .business-filters, .business-finance, .business-quality, .business-company-detail { padding: 18px; }
  .business-boundary { padding: 16px; }
  .business-filter-row { grid-template-columns: 1fr; }
  .business-provenance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-report-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .business-report-actions > div > button { flex: 1; }
  .business-company-filter .company-chip { width: 100%; border-radius: 10px; }
  .business-company-filter .region-tag { margin-left: auto; }
  .business-bike-table { max-height: 70vh; }
  .business-series-controls { align-items: stretch; padding: 14px; }
  .business-series-toggle { width: 100%; }
  .business-series-toggle button { flex: 1; padding: 10px; }
  .business-series-controls label, .business-series-controls > button { flex-basis: 100%; }
  .business-series-figure { padding: 12px 0; }
  .business-series-table { max-height: 70vh; }
}
@page { size: A4 landscape; margin: 10mm; }
@media print {
  :root, body { color: #111; background: white; font-size: 10pt; }
  .page-shell { max-width: none; margin: 0; padding: 0; }
  .hero { display: block; padding: 0 0 12px; border-radius: 0; color: #111; background: white; box-shadow: none; }
  .hero::after, .hero__lead, .hero .eyebrow, .update-panel, .section-nav, .global-filters, .business-filters, .business-report-actions > div, .business-detail-control, .about-data, .toast { display: none !important; }
  .compact-hero h1 { margin: 0; font-size: 24pt; }
  .business-panel { margin-top: 12px; }
  .section-heading h2 { font-size: 22pt; }
  .business-section .section-heading h3 { font-size: 16pt; }
  .section-heading { margin-bottom: 10px; }
  .section-heading p { font-size: 9pt; }
  .business-section { margin-top: 20px; }
  .business-boundary, .kpi-card, .business-finance, .business-quality, .business-company-detail { border-radius: 0; box-shadow: none; padding: 12px; }
  .business-table, .business-bike-table { overflow: visible !important; max-height: none !important; border-radius: 0; box-shadow: none; }
  .business-table table, .business-bike-table table { width: 100%; min-width: 0; font-size: 8pt; table-layout: auto; }
  .business-table th, .business-table td { min-width: 0 !important; padding: 5px; font-size: 8pt; overflow-wrap: anywhere; white-space: normal; }
  .business-table small { max-width: none; font-size: 7pt; }
  .business-table thead { display: table-header-group; }
  .business-table th { position: static; }
  .business-table tr, .kpi-card { break-inside: avoid; }
  .business-table thead button { min-height: 0; color: black; }
  .business-company-link { color: black; border: 0; }
  .business-badge { padding: 2px; font-size: 7pt; }
  .business-status-counts, .business-muted { font-size: 8pt; }
  .business-quality p, .business-quality li, .business-inputs, .business-finance > p { font-size: 9pt; }
  .business-provenance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .business-source-details { border-radius: 0; }
  .business-source-details > pre { display: block !important; font-size: 7pt; }
  .business-series-controls, .business-series-tooltip { display: none !important; }
  .business-series-figure { padding: 6px; border-radius: 0; break-inside: avoid; }
  .business-series-chart { overflow: visible; }
  .business-series-chart > svg { min-width: 0; width: 100%; }
  .business-series-legend { gap: 6px 18px; }
  .business-series-legend li, .business-series-figure figcaption, .business-series-partials { font-size: 8pt; }
  .business-series-partials { border-radius: 0; }
  .business-series-partials > ul { display: block !important; }
  .business-series-selected { print-color-adjust: exact; }
  .business-daily-chart, .business-daily-toggle, .business-day-filters, #business-management-export, [data-company-report], .business-advanced:not([open]) { display: none !important; }
  .business-executive, .business-day-detail, .business-advanced { border-radius: 0; box-shadow: none; padding: 8px; }
  .business-count-link { min-height: 0; min-width: 0; padding: 0; color: black; text-decoration: none; }
  .business-daily-legend li { flex-basis: 220px; font-size: 8pt; }
  .business-legend-dot { print-color-adjust: exact; }
  footer { margin-top: 20px; font-size: 8pt; }
  a { color: black; text-decoration: none; }
}
