:root {
  --ink: #eaf3f7;
  --muted: #91a7b7;
  --bg: #071425;
  --panel: #0c1d30;
  --panel-2: #10263b;
  --line: #21384c;
  --teal: #38d6d1;
  --sky: #55a8ff;
  --gold: #f2c66d;
  --coral: #ff786f;
  --green: #78dc9c;
  --shadow: 0 18px 50px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 15% -10%, #123856 0, transparent 32%), var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; min-height: 100vh; }
.topbar { max-width: 1420px; margin: 0 auto; padding: 34px 34px 22px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow,.section-kicker { color: var(--teal); font-weight: 760; font-size: .76rem; letter-spacing: .13em; margin: 0 0 6px; }
h1 { margin: 0; font-size: clamp(2rem,4vw,3.25rem); letter-spacing: -.045em; line-height: 1; }
.header-actions { display: grid; grid-template-columns: auto auto; gap: 6px 12px; align-items: center; }
.header-actions label { color: var(--muted); font-size: .78rem; }
select { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 10px 34px 10px 12px; border-radius: 9px; font: inherit; }
.freshness { grid-column: 1 / -1; text-align: right; color: var(--muted); font-size: .78rem; }
main { max-width: 1420px; margin: 0 auto; padding: 0 34px 64px; }
.status-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(90deg, rgba(56,214,209,.12), rgba(85,168,255,.05)); border: 1px solid rgba(56,214,209,.25); border-radius: 12px; padding: 12px 16px; color: #cde9eb; font-size: .9rem; }
.status-strip strong { color: var(--teal); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 16px 0; }
.kpi,.panel { background: linear-gradient(145deg, rgba(16,38,59,.96), rgba(10,27,44,.96)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi { border-radius: 14px; padding: 18px 19px; min-height: 116px; display: flex; flex-direction: column; justify-content: center; }
.kpi.accent { border-color: rgba(56,214,209,.52); }
.vacation-kpi { border-color: rgba(242,198,109,.34); }
.kpi span { color: var(--muted); font-size: .82rem; }
.kpi strong { font-size: 1.85rem; letter-spacing: -.04em; margin: 5px 0 1px; }
.kpi small { color: #b7c7d2; font-size: .78rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.panel { border-radius: 15px; padding: 20px; min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.chart { width: 100%; min-height: 330px; }
.chart.compact { min-height: 230px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.axis { stroke: #557086; stroke-width: 1; }
.gridline { stroke: #1b344a; stroke-width: 1; }
.axis-label { fill: var(--muted); font-size: 12px; }
.chart-note { color: var(--muted); margin: 6px 0 0; font-size: .78rem; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: end; }
.chart-controls { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 8px 10px; }
.chart-controls label { color: var(--muted); font-size: .75rem; }
.chart-controls select { padding-top: 7px; padding-bottom: 7px; font-size: .8rem; }
.chart-controls .legend { grid-column: 1 / -1; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.bar-row { display: grid; grid-template-columns: minmax(100px,1fr) 2.5fr auto; gap: 10px; align-items: center; margin: 14px 0; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.bar-track { background: #071725; height: 9px; border-radius: 20px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg,var(--teal),var(--sky)); height: 100%; border-radius: inherit; }
.bar-value { font-variant-numeric: tabular-nums; color: #cfe0e9; font-size: .8rem; }
.airport-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.airport-card { padding: 15px; border-radius: 12px; background: rgba(7,20,37,.58); border: 1px solid var(--line); }
.airport-card h3 { margin: 0 0 10px; }
.airport-card strong { display: block; font-size: 1.45rem; }
.airport-card span { color: var(--muted); font-size: .8rem; }
.airport-card.empty { border-style: dashed; color: var(--muted); }
.segmented { display: flex; background: #071725; padding: 3px; border-radius: 10px; }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 8px 11px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .78rem; }
.segmented button.active { background: var(--panel-2); color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { color: var(--muted); text-align: left; font-size: .74rem; font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid rgba(33,56,76,.65); font-size: .84rem; vertical-align: top; }
td strong { font-size: .95rem; }
.sub { display: block; color: var(--muted); font-size: .74rem; margin-top: 3px; }
.vacation-time { display: block; width: fit-content; margin-top: .55rem; padding: .2rem .48rem; border-radius: 999px; background: rgba(242,198,109,.1); border: 1px solid rgba(242,198,109,.3); color: var(--gold); font-size: .73rem; font-weight: 700; }
.flight-cell { min-width: 350px; }
.flight-leg { line-height: 1.35; }
.return-leg { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid rgba(146,190,220,.14); }
.leg-label { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.schedule { display: block; color: var(--muted); font-size: .74rem; margin-top: .2rem; white-space: nowrap; }
.route-arrow { color: var(--teal); padding: 0 .18rem; }
.day-badge { display: inline-block; padding: .08rem .34rem; border: 1px solid rgba(255,190,80,.4); border-radius: 999px; color: var(--gold); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.table-note { margin: .75rem 12px 0; color: var(--muted); font-size: .74rem; }
.method-note { margin: .55rem 12px 0; color: var(--muted); font-size: .76rem; }
.method-note summary { width: fit-content; color: #bad0dc; cursor: pointer; }
.method-note p { max-width: 920px; margin: .55rem 0 0; line-height: 1.55; }
.positive { color: var(--green); }.warning { color: var(--gold); }
.tooltip { position: fixed; pointer-events: none; z-index: 20; background: #020b14; border: 1px solid #345169; border-radius: 9px; padding: 10px 12px; color: var(--ink); font-size: .78rem; box-shadow: var(--shadow); max-width: 260px; }
.error { padding: 28px; color: #ffd4d1; border: 1px solid rgba(255,120,111,.5); border-radius: 12px; background: rgba(255,120,111,.08); }
@media (max-width: 900px) { .topbar { align-items: start; flex-direction: column; } .header-actions { width: 100%; } select { width: 100%; } .freshness { text-align: left; } .kpi-grid { grid-template-columns: repeat(2,1fr); } .dashboard-grid { grid-template-columns: 1fr; } .panel.wide { grid-column: auto; } }
@media (max-width: 560px) { .topbar,main { padding-left: 16px; padding-right: 16px; } .kpi-grid { grid-template-columns: 1fr; } .status-strip { align-items: start; flex-direction: column; } .panel-heading { flex-direction: column; } .chart-controls { width: 100%; justify-items: start; } .chart-controls .legend { justify-content: start; } .panel-heading.table-heading { flex-direction: column; } .segmented { width: 100%; overflow-x: auto; } .airport-cards { grid-template-columns: 1fr; } }
