:root {
    color-scheme: dark;
    --bg: #0b141c;
    --panel: #121f28;
    --line: #293b47;
    --white: #eff7f6;
    --muted: #a9bec4;
    --mint: #87e6c1;
    --amber: #f4c477;
    font-family: system-ui, sans-serif;
    color: var(--white);
    background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--mint); text-underline-offset: .24em; }
a:focus-visible, input:focus-visible, .table-wrap:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 4px;
}
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #0e1820; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 67px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.025em; }
.mark { display: grid; place-items: center; width: 33px; height: 33px; background: var(--mint); color: #102522; border-radius: 9px; font-size: 23px; line-height: 1; }
.country { color: var(--muted); font-weight: 500; }
nav { display: flex; gap: clamp(12px, 3vw, 32px); }
nav a { color: var(--muted); text-decoration: none; font-weight: 620; font-size: .88rem; }
nav a:hover { color: var(--mint); }
.hero { padding: 61px 0 25px; }
.kicker { margin: 0 0 14px; font-size: .73rem; font-weight: 750; letter-spacing: .16em; color: var(--mint); }
.kicker span { margin: 0 5px; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.2rem); max-width: 940px; line-height: 1.02; font-weight: 760; }
h2 { font-size: clamp(1.28rem, 2.9vw, 1.8rem); }
h3 { font-size: 1.05rem; line-height: 1.3; }
p { color: var(--muted); line-height: 1.58; }
.intro { max-width: 620px; font-size: 1.08rem; margin: 18px 0 0; }
.data-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 17px; color: var(--muted); font-size: .83rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.dot.warn { background: var(--amber); }
.notice { margin: 0 0 16px; border-left: 3px solid var(--amber); background: #28231e; border-radius: 0 7px 7px 0; padding: 11px 13px; color: #f1d6a8; font-size: .92rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.card, .panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card { padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; }
.card h2 { color: var(--muted); font-size: .82rem; font-weight: 680; letter-spacing: 0; }
.card p { color: var(--white); font-weight: 740; margin: 0; font-size: clamp(1.45rem, 3.2vw, 2.35rem); letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; }
.card small { font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.card span { font-size: .78rem; color: var(--muted); }
.card.accent { background: #132a2b; border-color: #346150; }
.card.accent p { color: var(--mint); }
.panel { margin-bottom: 18px; padding: clamp(16px, 3vw, 28px); scroll-margin-top: 18px; }
.simulator { display: grid; grid-template-columns: 1fr minmax(270px, 1fr); gap: clamp(16px, 5vw, 55px); align-items: center; background: linear-gradient(112deg, #14222c, #13282d); }
.simulator .kicker { margin-bottom: 8px; }
.simulator p, .section-head p { margin: 7px 0 0; }
.projection { font-size: .84rem; }
.control-heading, .range-labels, .section-head, .footer { display: flex; justify-content: space-between; gap: 12px; }
.control-heading { align-items: center; margin-bottom: 8px; font-weight: 650; }
#degrees, #injection-value { color: var(--mint); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin: 4px 0 9px; display: block; accent-color: var(--mint); min-height: 25px; cursor: pointer; }
.range-labels { font-size: .8rem; color: var(--muted); }
.section-head { align-items: start; }
.table-wrap { overflow-x: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 9px; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-size: .75rem; font-weight: 660; vertical-align: bottom; background: #101b24; }
tbody th, td { font-size: .87rem; }
tbody small { display: block; color: var(--muted); margin-top: 4px; font-weight: 450; }
.status { padding: 4px 7px; border-radius: 5px; white-space: nowrap; background: #283744; color: #dae5e8; font-size: .73rem; }
.status-C { background: #193631; color: var(--mint); }
.status-E { background: #3c3020; color: var(--amber); }
.empty { padding: 13px 15px; background: #0e1922; border: 1px dashed var(--line); border-radius: 8px; margin-bottom: 0; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.method-grid p { margin: 8px 0 12px; font-size: .88rem; overflow-wrap: anywhere; }
.method-grid strong { color: var(--white); }
.footer { padding-block: 12px 26px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 920px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .method-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 660px) {
    .wrap { width: calc(100% - 30px); }
    .hero { padding-top: 40px; }
    .country, .desktop { display: none; }
    .cards { gap: 8px; }
    .card { padding: 12px; }
    .simulator { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; gap: 7px; }
}

.injection-control { margin-top: 18px; }

.fill-chart > p { margin: 7px 0 12px; }
.fill-legend { display: flex; flex-wrap: wrap; gap: 7px 22px; margin: 12px 0 6px; color: var(--muted); font-size: .85rem; }
.fill-legend span { display: inline-flex; align-items: center; gap: 7px; }
.fill-legend i { width: 24px; border-top: 2px solid var(--mint); }
.fill-legend .dashed { border-top: 2px dashed var(--amber); }
.fill-plot { position: relative; }
#fill-canvas { display: block; width: 100%; height: clamp(250px, 34vw, 400px); }
#fill-canvas:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.fill-tooltip { position: absolute; top: 0; right: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); font-size: .8rem; pointer-events: none; }
@media (max-width: 460px) {
    .fill-tooltip { top: 24px; max-width: calc(100% - 50px); }
}
