:root {
  --m-neutral: #f0efec; --m-na: #dcdbd6; --m-hatch-bg: #f7f6f3; --m-hatch-ink: #6b6a66;
  --m-q-teal-0: #d3f0e6; --m-q-teal-1: #a8e2cd; --m-q-teal-2: #6fcfae; --m-q-teal-3: #38b88b; --m-q-teal-4: #1b9a6f; --m-q-teal-5: #0f7452; --m-q-teal-6: #084a35;
  --m-q-blue-0: #cde2fb; --m-q-blue-1: #9ec5f4; --m-q-blue-2: #6da7ec; --m-q-blue-3: #3987e5; --m-q-blue-4: #256abf; --m-q-blue-5: #184f95; --m-q-blue-6: #0d366b;
  --m-q-red-0: #fde0dc; --m-q-red-1: #f9b9b0; --m-q-red-2: #f28f84; --m-q-red-3: #e46060; --m-q-red-4: #c43c3c; --m-q-red-5: #962727; --m-q-red-6: #681818;
  --m-q-violet-0: #e4e0f9; --m-q-violet-1: #c5bef0; --m-q-violet-2: #a699e8; --m-q-violet-3: #8372df; --m-q-violet-4: #6250d6; --m-q-violet-5: #4a3aa7; --m-q-violet-6: #32277a;
  --m-a-blue-1: #b7d3f6; --m-a-blue-2: #5598e7; --m-a-blue-3: #184f95;
  --m-a-red-1: #f6c4bf; --m-a-red-2: #e66767; --m-a-red-3: #a82a2a;
  --m-a-teal-1: #b5e8d5; --m-a-teal-2: #4fc79d; --m-a-teal-3: #0d6347;
  --m-a-orange-1: #f9cdb4; --m-a-orange-2: #f08a55; --m-a-orange-3: #a8441a;
  --m-a-violet-1: #d2cbf5; --m-a-violet-2: #8472e0; --m-a-violet-3: #4a3aa7;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --m-neutral: #383835; --m-na: #3a3a37; --m-hatch-bg: #2b2b29; --m-hatch-ink: #a09f98;
    --m-q-teal-0: #084a35; --m-q-teal-1: #0f7452; --m-q-teal-2: #1b9a6f; --m-q-teal-3: #38b88b; --m-q-teal-4: #6fcfae; --m-q-teal-5: #a8e2cd; --m-q-teal-6: #d3f0e6;
    --m-q-blue-0: #0d366b; --m-q-blue-1: #184f95; --m-q-blue-2: #256abf; --m-q-blue-3: #3987e5; --m-q-blue-4: #6da7ec; --m-q-blue-5: #9ec5f4; --m-q-blue-6: #cde2fb;
    --m-q-red-0: #681818; --m-q-red-1: #962727; --m-q-red-2: #c43c3c; --m-q-red-3: #e46060; --m-q-red-4: #f28f84; --m-q-red-5: #f9b9b0; --m-q-red-6: #fde0dc;
    --m-q-violet-0: #32277a; --m-q-violet-1: #4a3aa7; --m-q-violet-2: #6250d6; --m-q-violet-3: #8372df; --m-q-violet-4: #a699e8; --m-q-violet-5: #c5bef0; --m-q-violet-6: #e4e0f9;
    --m-a-blue-1: #2f5a92; --m-a-blue-2: #3987e5; --m-a-blue-3: #9ec5f4;
    --m-a-red-1: #8a3a3a; --m-a-red-2: #d95555; --m-a-red-3: #f4a5a0;
    --m-a-teal-1: #26755b; --m-a-teal-2: #199e70; --m-a-teal-3: #8fe0c0;
    --m-a-orange-1: #8a4a2a; --m-a-orange-2: #d95926; --m-a-orange-3: #f5a57c;
    --m-a-violet-1: #4d4290; --m-a-violet-2: #7566dc; --m-a-violet-3: #c1b8f3;
  }
}
:root[data-theme="dark"] {
  --m-neutral: #383835; --m-na: #3a3a37; --m-hatch-bg: #2b2b29; --m-hatch-ink: #a09f98;
  --m-q-teal-0: #084a35; --m-q-teal-1: #0f7452; --m-q-teal-2: #1b9a6f; --m-q-teal-3: #38b88b; --m-q-teal-4: #6fcfae; --m-q-teal-5: #a8e2cd; --m-q-teal-6: #d3f0e6;
  --m-q-blue-0: #0d366b; --m-q-blue-1: #184f95; --m-q-blue-2: #256abf; --m-q-blue-3: #3987e5; --m-q-blue-4: #6da7ec; --m-q-blue-5: #9ec5f4; --m-q-blue-6: #cde2fb;
  --m-q-red-0: #681818; --m-q-red-1: #962727; --m-q-red-2: #c43c3c; --m-q-red-3: #e46060; --m-q-red-4: #f28f84; --m-q-red-5: #f9b9b0; --m-q-red-6: #fde0dc;
  --m-q-violet-0: #32277a; --m-q-violet-1: #4a3aa7; --m-q-violet-2: #6250d6; --m-q-violet-3: #8372df; --m-q-violet-4: #a699e8; --m-q-violet-5: #c5bef0; --m-q-violet-6: #e4e0f9;
  --m-a-blue-1: #2f5a92; --m-a-blue-2: #3987e5; --m-a-blue-3: #9ec5f4;
  --m-a-red-1: #8a3a3a; --m-a-red-2: #d95555; --m-a-red-3: #f4a5a0;
  --m-a-teal-1: #26755b; --m-a-teal-2: #199e70; --m-a-teal-3: #8fe0c0;
  --m-a-orange-1: #8a4a2a; --m-a-orange-2: #d95926; --m-a-orange-3: #f5a57c;
  --m-a-violet-1: #4d4290; --m-a-violet-2: #7566dc; --m-a-violet-3: #c1b8f3;
}

.chk { flex-direction: row !important; align-items: center; gap: 6px !important; padding-bottom: 7px; color: var(--ink2) !important; font-size: .85rem !important; }
.chk[hidden], .controls label[hidden] { display: none; }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.mtitle { margin: 6px 0 0; font-size: 1.05rem; }
.mapbox { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 6px 0 8px; min-width: 0; }
.mapbox svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.mapbox .mp { stroke: var(--panel); stroke-width: 1; stroke-linejoin: round; cursor: pointer; }
.mapbox .mp:hover, .mapbox .mp:focus-visible, .mapbox .mp.sel { stroke: var(--ink); stroke-width: 2.4; outline: none; }
.mapbox .mp.na { cursor: default; }
.mapbox .hxn { font-size: 21px; font-weight: 650; text-anchor: middle; pointer-events: none; }
.mapbox .hxv { font-size: 15px; text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.mapbox .circ { fill: var(--ink); fill-opacity: .12; stroke: var(--ink); stroke-width: 1.4; pointer-events: none; }
.hatch-bg { fill: var(--m-hatch-bg); } .hatch-ln { stroke: var(--m-hatch-ink); stroke-width: 1.6; }
.mlegend { margin: 4px 0 6px; max-width: 520px; font-size: .8rem; color: var(--ink2); }
.mlegend .bar { display: flex; gap: 2px; height: 14px; }
.mlegend .bar i { flex: 1; display: block; }
.mlegend .ticks { position: relative; height: 16px; margin-top: 3px; font-variant-numeric: tabular-nums; color: var(--muted); }
.mlegend .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; }
.mlegend .ends { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.mlegend .ends b { font-weight: 600; color: var(--ink2); }
.mlegend .keys { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.mlegend .keys span { display: inline-flex; align-items: center; gap: 6px; }
.mlegend .keys svg { width: 18px; height: 14px; border: 1px solid var(--line); }
.mlegend .unit { margin: 0 0 4px; color: var(--ink2); }
@media (max-width: 560px) {
  .mapbox { padding: 4px; } .mapbox .hxv { display: none; } .mapbox .hxn { font-size: 26px; }
  .mlegend .ticks span { font-size: .68rem; }
}
@media (forced-colors: active) { .mapbox .mp { stroke: CanvasText; } .mapbox .mp.sup { fill: Canvas; } }
