/* Layout: zijpaneel (weer → meldingen → planner → resultaat) naast een kaart; op telefoon gestapeld */
:root {
  --bg: #e9efee;
  --surface: #ffffff;
  --surface-2: #f3f7f6;
  --ink: #12201f;
  --muted: #5a6b68;
  --line: #d3dddb;
  --accent: #0f6f7c;
  --accent-ink: #ffffff;
  --route: #d9480f;
  --ok: #2b7d45;      --ok-bg: #e5f3ea;
  --warn: #9a6200;    --warn-bg: #fdf1d8;
  --danger: #b3261e;  --danger-bg: #fbe5e2;
  --info: #1f5f99;    --info-bg: #e3eef9;
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1413; --surface: #141f1d; --surface-2: #1a2725; --ink: #e2ebe8; --muted: #93a6a2;
    --line: #263532; --accent: #4cb6c2; --accent-ink: #06201f; --route: #ff7b3f;
    --ok: #6cc98a; --ok-bg: #16301f; --warn: #f0b54a; --warn-bg: #33270e;
    --danger: #ff8a7f; --danger-bg: #3a1714; --info: #8cc2f2; --info-bg: #142a3d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1413; --surface: #141f1d; --surface-2: #1a2725; --ink: #e2ebe8; --muted: #93a6a2;
  --line: #263532; --accent: #4cb6c2; --accent-ink: #06201f; --route: #ff7b3f;
  --ok: #6cc98a; --ok-bg: #16301f; --warn: #f0b54a; --warn-bg: #33270e;
  --danger: #ff8a7f; --danger-bg: #3a1714; --info: #8cc2f2; --info-bg: #142a3d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { overflow-anchor: none; }   /* de pagina niet zelf laten verspringen bij het wisselen van scherm */   /* verbergen wint altijd van display-regels */
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--f-body); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; height: 100%; }
.panel { overflow-y: auto; padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.map-wrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--surface-2); }

@media (max-width: 820px) {
  .app { display: flex; flex-direction: column; height: auto; }
  .panel { overflow: visible; border-right: 0; padding-inline: 16px; }
  .map-wrap { height: 62vh; min-height: 300px; }
  /* Scherm 1: instellingen, zonder kaart en zonder resultaat */
  body.view-plan .map-wrap { display: none; }
  body.view-plan .result { display: none !important; }
  /* Scherm 2: eerst de kaart met de route, daaronder alleen de details */
  body.view-route .map-wrap { order: -1; }
  body.view-route .brand, body.view-route .weather, body.view-route .alerts, body.view-route .planner { display: none; }
  /* Kiezen op de kaart: kaart schermvullend erbovenop */
  body.picking .map-wrap { display: block; position: fixed; inset: 0; height: 100%; z-index: 1500; }
}
.map-back { display: none; }
@media (max-width: 820px) {
  body.view-route .map-back { display: block; position: absolute; z-index: 600; top: calc(10px + env(safe-area-inset-top, 0px)); left: 54px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; box-shadow: 0 2px 10px rgb(0 0 0 / .15); cursor: pointer; }
  body.picking .map-back { display: none; }
}

/* Brand */
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); align-self: center; }
.brand h1 { margin: 0; font: 700 30px/1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; }
.brand-sub { color: var(--muted); font-size: 13px; }

/* Weer */
.weather { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.weather-main { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.label, dt, legend, .flabel, .field-head label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.temp { font: 700 64px/0.95 var(--f-display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.temp .unit { font-size: 28px; vertical-align: top; margin-left: 2px; color: var(--muted); }
.feels { color: var(--muted); font-size: 14px; }
.feels b { color: var(--ink); }
.compass { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.compass svg { width: 104px; height: 104px; }
.c-ring { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; }
.c-ticks line { stroke: var(--muted); stroke-width: 1.2; }
.c-n, .c-l { font: 600 11px var(--f-body); text-anchor: middle; fill: var(--muted); }
.c-n { fill: var(--ink); font-weight: 700; }
.c-arrow { fill: var(--accent); transform-origin: 60px 60px; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.compass-read { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.compass-read b { font: 700 18px var(--f-display); }
.compass-read span { color: var(--muted); }

.stats, .r-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.r-stats { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); margin-left: auto; cursor: pointer; }
.check input { accent-color: var(--accent); margin: 0; }
input[type=range]:disabled { opacity: .35; }
.stats > div, .r-stats > div { min-width: 0; }
dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dd { margin: 2px 0 0; font: 500 15px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.hourly { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.hour { text-align: center; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.hour b { color: var(--ink); font: 500 13px var(--f-mono); }
.hour svg { width: 16px; height: 16px; fill: var(--accent); }

/* Meldingen */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alerts:empty { display: none; }
.alert { border-radius: var(--r); padding: 10px 12px 10px 14px; border: 1px solid transparent; }
.alert h3 { margin: 0 0 4px; font: 700 17px/1.2 var(--f-display); letter-spacing: .02em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.alert h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.alert ul { margin: 0; padding-left: 18px; font-size: 14px; }
.alert li + li { margin-top: 2px; }
.alert.danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert.danger h3 { color: var(--danger); }
.alert.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.alert.warn h3 { color: var(--warn); }
.alert.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.alert.info h3 { color: var(--info); }
.alert.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert.ok h3 { color: var(--ok); }

/* Planner */
.planner { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
output { font: 500 15px var(--f-mono); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }

.point-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.point-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--f-body); color: #fff; flex: none; }
.pin-start { background: var(--accent); color: var(--accent-ink); }
.pin-wp { background: var(--route); }

.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.search { position: relative; }
.search input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.search-results { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / .15); max-height: 240px; overflow-y: auto; }
.search-results li button { width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.search-results li button:hover, .search-results li button:focus-visible { background: var(--surface-2); }

.wp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wp-list:empty { display: none; }
.wp-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wp-list .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }

.go { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 12px; font: 700 19px var(--f-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.go:disabled { opacity: .6; cursor: progress; }
.status { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }
.status.err { color: var(--danger); }

/* Resultaat */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.result h2 { margin: 0; font: 700 22px var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.badge { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.neutral { background: var(--info-bg); color: var(--info); }
.r-note { margin: 0; font-size: 13.5px; color: var(--muted); }
#profile { width: 100%; height: 110px; display: block; }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost { flex: 1; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 9px; font-weight: 600; cursor: pointer; }
.ghost:hover { border-color: var(--accent); }

.foot { font-size: 11.5px; color: var(--muted); margin-top: auto; }

/* Kaart-overlays */
.map-wind { position: absolute; z-index: 500; top: 12px; right: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px 6px 6px; display: flex; align-items: center; gap: 6px; font: 600 13px var(--f-body); box-shadow: 0 2px 10px rgb(0 0 0 / .12); }
.map-wind svg { width: 30px; height: 30px; }
.map-wind g { fill: var(--accent); transform-origin: 20px 20px; transition: transform .8s; }
.map-mode { position: absolute; z-index: 500; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 6px 6px 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); }
.map-mode span { min-width: 0; }
.map-done { border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.leaflet-container { font-family: var(--f-body); }
.mk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 12px var(--f-body); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
.mk-start { background: #0f6f7c; }
.mk-wp { background: #d9480f; }

/* Veiligheid */
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.bikes .hint { margin-top: 6px; }
.safety { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.safety-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.verdict { font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.verdict.good { background: var(--ok-bg); color: var(--ok); }
.verdict.ok { background: var(--info-bg); color: var(--info); }
.verdict.meh { background: var(--warn-bg); color: var(--warn); }
.verdict.bad { background: var(--danger-bg); color: var(--danger); }
.safety-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.safety-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.safety-legend li { display: flex; align-items: center; gap: 8px; }
.safety-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.safety-legend b { margin-left: auto; font: 500 12.5px var(--f-mono); font-variant-numeric: tabular-nums; }

/* Downloads */
.downloads { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.dl-row { display: flex; gap: 8px; }
.dl-row > * { flex: 1; min-width: 0; }
#device { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.go-sm { font-size: 16px; padding: 9px; }
.all-fmt summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.fmt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
.fmt { text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 7px 9px; cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.fmt:hover { border-color: var(--accent); }
.fmt b { font-size: 14px; }
.fmt span { font-size: 11.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .c-arrow, .map-wind g { transition: none; } }
.field-head .check { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; white-space: nowrap; color: var(--muted); }
.field-head output:empty { display: none; }

/* Training op vermogen */
.train-fields { display: flex; flex-direction: column; gap: 16px; }
.file-drop { position: relative; display: flex; flex-direction: column; gap: 2px; border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px; background: var(--surface-2); cursor: pointer; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--accent); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop b { font-size: 14px; }
.file-drop span { font-size: 12px; color: var(--muted); }
.builder summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.builder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 10px 0; }
.builder-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.builder-grid span, .unit-input { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.builder-grid input, .unit-input input { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font: 500 14px var(--f-mono); color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wo-preview { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.wo-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.wo-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-head span { color: var(--muted); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.wo-bars { display: flex; align-items: flex-end; height: 54px; gap: 1px; border-bottom: 1px solid var(--line); }
.wo-bars i { display: block; min-width: 1px; border-radius: 2px 2px 0 0; background: var(--muted); opacity: .45; }
.wo-bars i.hard { background: var(--route); opacity: 1; }

.train-panel { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.tbl-wrap { overflow-x: auto; }
table.blocks { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.blocks th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 4px 6px 4px 0; border-bottom: 1px solid var(--line); }
table.blocks td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); white-space: nowrap; }
table.blocks td:first-child { font-family: var(--f-body); font-weight: 600; }
table.blocks td.warn { color: var(--warn); font-family: var(--f-body); font-weight: 600; }
.mk-blk { width: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; }
.mk-blk.start { background: #2b8a4b; }
.mk-blk.end { background: #c62f24; }

.mk-blk.stop { background: #d98a0b; }
table.blocks tr.rec td { color: var(--muted); font-size: 12px; }
table.blocks tr.rec td:first-child { font-weight: 500; font-style: italic; }
table.blocks td.ok { color: var(--ok); font-family: var(--f-body); font-weight: 600; }

/* Zelf blokken invoeren: rijen met twee vakken naast elkaar */
.b-head, .b-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 8px; align-items: center; }
.b-head { margin-top: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.b-rows { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.b-row { padding: 4px 0; }
.b-num { font: 500 12px var(--f-mono); color: var(--muted); text-align: right; }
.b-row.hard .b-num { color: var(--route); font-weight: 700; }
.b-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.b-cell input { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font: 500 14px var(--f-mono); color: var(--ink); }
.b-row.hard .b-cell input { border-color: color-mix(in srgb, var(--route) 55%, var(--line)); }
.b-cell i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.b-del { width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 19px; line-height: 1; border-radius: 6px; cursor: pointer; }
.b-del:hover:not(:disabled) { background: var(--surface-2); color: var(--danger); }
.b-del:disabled { opacity: .3; cursor: default; }
.b-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; }
.add-row { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--line); background: none; border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; color: var(--accent); cursor: pointer; }
.add-row b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 16px; line-height: 1; }
.add-row:hover:not(:disabled) { border-color: var(--accent); }
.add-row:disabled { opacity: .45; cursor: default; }
.b-count { font: 500 12px var(--f-mono); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Adres zoeken */
.search-results li button { display: flex; flex-direction: column; gap: 1px; }
.search-results li button b { font-weight: 600; font-size: 14px; }
.search-results li button small { color: var(--muted); font-size: 12px; }
.start-chosen { margin-top: 4px; }
#btn-locate { flex: none; }

/* Aankomst (van A naar B) */
.pin-finish { background: var(--ink); color: var(--bg); }
.mk-finish { background: #1d2b2a; }

/* Ritsamenvatting */
.summary { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.depart { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.depart input { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font: 500 13px var(--f-mono); color: var(--ink); }
.sum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sum-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sum-list li:last-child { border-bottom: 0; }
.sum-list .k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding-top: 2px; }
.sum-list .v b { font-family: var(--f-mono); font-weight: 500; }
.sum-list .v small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.sum-list li.warn .k, .sum-list li.warn .v > b:first-child { color: var(--warn); }
.wind-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 5px 0 2px; }
.wind-bar span { display: block; }
.wb-head { background: var(--danger); } .wb-side { background: var(--muted); opacity: .5; } .wb-tail { background: var(--ok); }
details.safety > summary { cursor: pointer; list-style: none; }
details.safety > summary::-webkit-details-marker { display: none; }
details.safety > summary .label::before { content: '▸ '; }
details.safety[open] > summary .label::before { content: '▾ '; }
details.safety:not([open]) { gap: 0; }

/* Taalknop */
.lang { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface-2); }
.lang button { border: 0; background: none; padding: 3px 9px; border-radius: 999px; font: 600 12px var(--f-body); color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
