@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/static/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/static/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/static/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("/static/fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #13263B;          /* zeekaart-inkt */
  --deep: #0F2236;         /* donkere balk */
  --water: #E4EFF6;        /* ondiep water */
  --paper: #FFFFFF;
  --magenta: #B5177A;      /* koerslijn op de zeekaart */
  --magenta-soft: #F6E3EF;
  --sand: #EADFB4;         /* droogvallend / haven */
  --line: #C3D4E1;
  --muted: #566B80;
  --go: #1E7A4F;
  --warn: #9A5B00;
  --err: #B3261E;
  --radius: 6px;
  --panel-w: 400px;
  --fs-s: 13px; --fs: 15px; --fs-m: 17px; --fs-l: 22px; --fs-xl: 44px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs); line-height: 1.45; color: var(--ink); background: var(--water);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- indeling ---------- */
.app {
  display: grid; height: 100dvh;
  grid-template-columns: var(--panel-w) 1fr; grid-template-rows: auto 1fr;
  grid-template-areas: "bar map" "panel map";
}
.bar { grid-area: bar; }
.panel { grid-area: panel; display: flex; flex-direction: column; min-height: 0; background: var(--water); border-right: 1px solid var(--line); }
#map { grid-area: map; min-height: 0; background: #AAD3DF; }
.mt { margin-top: 14px; }

@media (max-width: 899px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 44dvh 1fr; grid-template-areas: "bar" "map" "panel"; }
  #map { border-bottom: 1px solid var(--line); }
  .panel { border-right: 0; }
  .bar { padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); }
  .brand { font-size: var(--fs-m); }
  .tabs button { padding: 10px 8px 8px; }
  .content { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ---------- balk ---------- */
.bar {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--deep); color: #E9EFF5;
}
.brand { margin: 0; font-size: var(--fs-l); font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; }
.account {
  background: transparent; border: 1px solid #36506B; border-radius: 999px; color: #E9EFF5;
  padding: 4px 12px; cursor: pointer; font-size: var(--fs-s);
}
.account:hover { border-color: #6C8AA8; }
.menu {
  position: absolute; right: 12px; top: calc(100% + 4px); z-index: 1200; min-width: 200px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 34, 54, .18); padding: 4px;
}
.menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; background: none; border: 0; border-radius: 4px; cursor: pointer; }
.menu button:hover { background: var(--water); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 0 12px; background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 12px 8px 10px; cursor: pointer; color: var(--muted); font-weight: 500;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--magenta); font-weight: 600; }
.content { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.content > section > h2:first-child { margin-top: 0; }

h2 { font-size: var(--fs-m); font-weight: 600; margin: 24px 0 8px; }
h3 { font-size: var(--fs); font-weight: 600; margin: 16px 0 6px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-s); }

/* ---------- formulieren ---------- */
label { display: block; font-size: var(--fs-s); color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select {
  width: 100%; padding: 9px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus, select:focus { border-color: var(--magenta); outline: none; box-shadow: 0 0 0 3px var(--magenta-soft); }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row > * { flex: 1; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn.primary:hover { background: #9A1268; }
.btn.danger { color: var(--err); }
.btn.small { padding: 5px 10px; font-size: var(--fs-s); }
.btn:disabled { opacity: .5; cursor: default; }
.form-msg { font-size: var(--fs-s); color: var(--err); min-height: 1.2em; margin-top: 6px; }
input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

/* ---------- schepenlijst ---------- */
.vessels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vessel { border-bottom: 1px solid var(--line); }
.vessel > button {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; width: 100%;
  padding: 12px 4px; background: none; border: 0; text-align: left; cursor: pointer;
}
.vessel > button:hover { background: rgba(255, 255, 255, .55); }
.vessel.selected > button { background: var(--paper); }
.vessel .glyph { width: 24px; height: 24px; }
.vessel .name { font-weight: 600; font-size: var(--fs-m); line-height: 1.2; }
.vessel .sub { font-size: var(--fs-s); color: var(--muted); }
.vessel .ago { font-size: var(--fs-s); color: var(--muted); text-align: right; }
.vessel.stale .name { color: var(--muted); }
.details { background: var(--paper); padding: 4px 12px 14px 42px; font-size: var(--fs-s); }
.details dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.details .actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip.go { background: #DDF0E6; color: var(--go); }
.chip.port { background: var(--sand); color: #5E4F14; }
.chip.off { background: #E6EBF0; color: var(--muted); }

.empty { padding: 20px 4px; color: var(--muted); }
.empty strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- reistijd ---------- */
.eta { margin-top: 18px; }
.eta-main { padding: 16px 0 14px; border-top: 3px solid var(--magenta); }
.eta-main .label { font-size: var(--fs-s); color: var(--muted); }
.eta-clock { font-size: var(--fs-xl); font-weight: 700; line-height: 1; letter-spacing: -.01em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.eta-clock .day { font-size: var(--fs-m); font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.eta-meta { font-size: var(--fs); }
.eta-dist { font-size: var(--fs-s); color: var(--muted); margin-top: 6px; }
.eta-dist.warn { color: var(--warn); }
.options { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.options li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.options .o-label { font-weight: 500; }
.options .o-time { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.options .o-note { grid-column: 1 / -1; font-size: var(--fs-s); color: var(--muted); }
.options li.na .o-label { color: var(--muted); font-weight: 400; }
.options li.primary .o-label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); margin-right: 8px; vertical-align: 1px; }
.manual { display: grid; grid-template-columns: 1fr 110px; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.manual input { text-align: right; }
.manual .o-time { grid-column: 1 / -1; font-variant-numeric: tabular-nums; }

/* ---------- reizen ---------- */
.voyages { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.voyages button { display: block; width: 100%; text-align: left; padding: 10px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.voyages button:hover, .voyages button.selected { background: var(--paper); }
.voyages .v-route { font-weight: 600; }
.voyages .v-meta { font-size: var(--fs-s); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- beheer ---------- */
.admin-block { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.admin-list { list-style: none; margin: 6px 0 10px; padding: 0; }
.admin-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.admin-list li .grow { flex: 1; min-width: 120px; }
.admin-list .swatch { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 auto; }
.stat { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: var(--fs-s); }
.stat dt { color: var(--muted); }
.stat dd { margin: 0; font-variant-numeric: tabular-nums; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs); color: var(--ink); margin: 8px 0; }
.switch input { width: 20px; height: 20px; accent-color: var(--magenta); }
.pick-active { cursor: crosshair !important; }
details.fold > summary { cursor: pointer; font-weight: 500; padding: 6px 0; }
.ok-text { color: var(--go); }
.warn-text { color: var(--warn); }
.err-text { color: var(--err); }

/* ---------- dialoog en melding ---------- */
dialog { border: 1px solid var(--line); border-radius: 10px; padding: 20px; width: min(380px, calc(100vw - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(15, 34, 54, .45); }
dialog h2 { margin-top: 0; }
dialog .row { margin-top: 16px; justify-content: flex-end; }
dialog .row > * { flex: 0 0 auto; }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 2000;
  background: var(--deep); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: var(--fs-s);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--err); }

/* ---------- kaart ---------- */
.ship-icon { background: none; border: 0; }
.ship-icon svg { display: block; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.leaflet-tooltip.ship-label {
  background: rgba(255, 255, 255, .92); border: 0; box-shadow: none; padding: 1px 6px; border-radius: 3px;
  font-family: "Barlow", system-ui, sans-serif; font-weight: 600; font-size: 12px; color: var(--ink);
}
.leaflet-tooltip.ship-label::before { display: none; }
.leaflet-tooltip.port-label { font-family: "Barlow", system-ui, sans-serif; font-size: 12px; }
.leaflet-container { font-family: "Barlow", system-ui, sans-serif; }
.map-legend { background: rgba(255, 255, 255, .92); padding: 4px 8px; border-radius: 4px; font-size: 12px; color: var(--ink); pointer-events: auto; }
.map-legends { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 8px; pointer-events: none; max-width: calc(100vw - 30px); }
.map-legends:empty { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- inlogpagina ---------- */
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--deep); color: #E9EFF5; }
.login { width: min(360px, 100%); }
.login h1 { font-size: 56px; font-weight: 700; line-height: 1; margin: 0 0 6px; letter-spacing: -.01em; }
.login .course { height: 3px; width: 72px; background: var(--magenta); margin: 0 0 28px; }
.login p { color: #A9BCCF; }
.login label { color: #A9BCCF; }
.login input { background: #16314C; border-color: #2E4D6C; color: #fff; }
.login input:focus { border-color: #E14AA6; box-shadow: 0 0 0 3px rgba(225, 74, 166, .25); }
.login .btn.primary { width: 100%; margin-top: 18px; padding: 11px; }
.login .form-msg { color: #FF9C9C; }

/* ---------- versie 0.2: spoor, meten, legenda, zoeken ---------- */
.flush { margin: 0; }
.mt { margin-top: 14px; }
select.auto { width: auto; }
.row.full { flex-basis: 100%; }
.row.wrap { flex-wrap: wrap; }
.row.wrap > * { flex: 0 0 auto; }
.switch.compact { margin: 0; font-size: var(--fs-s); }

.trackbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.seg { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; }
.seg-label { font-size: var(--fs-s); color: var(--muted); padding: 0 8px 0 6px; }
.seg button { background: none; border: 0; border-radius: 4px; padding: 5px 9px; font-size: var(--fs-s); cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--deep); color: #fff; font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-s); color: var(--ink); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--magenta); }

.ctxmenu {
  position: absolute; z-index: 1500; min-width: 240px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15, 34, 54, .22); padding: 4px;
}
.ctxmenu button { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; border-radius: 4px; cursor: pointer; }
.ctxmenu button:hover, .ctxmenu button:focus-visible { background: var(--water); }

#map { position: relative; }
.map-card {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1000;
  width: min(340px, calc(100% - 24px)); background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 34, 54, .22); padding: 10px 14px 12px;
}
.mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mc-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.mc-big { font-size: 28px; font-weight: 700; line-height: 1.1; margin: 4px 0 2px; }
.mc-time { font-weight: 600; margin-top: 6px; }
.mc-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; margin: 6px 0; }
.mc-row input { text-align: right; }
.mc-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.mc-route { margin-top: 6px; }
@media (max-width: 899px) { .map-card { bottom: 8px; padding: 8px 12px 10px; } .mc-big { font-size: 22px; } }
.map-card.compact .mc-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.map-card.compact .mc-big { font-size: 24px; margin: 2px 0 0; }
.mc-hint:empty, .mc-time:empty { display: none; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; margin-top: 8px; }
.mc-foot .mc-btns { margin-top: 0; }
.mc-speed { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: var(--fs-s); }
.mc-speed input[type=number] { width: 64px; padding: 4px 6px; text-align: right; }
.leaflet-tooltip.measure-tip { cursor: pointer; pointer-events: auto; font-weight: 600; }
.measure-tip .mt-x { color: var(--muted); font-weight: 700; margin-left: 4px; }
@media (max-width: 899px) {
  .map-card.compact { bottom: 6px; padding: 5px 10px 7px; width: min(320px, calc(100% - 16px)); }
  .map-card.compact .mc-head { margin-bottom: 0; }
  .map-card.compact .mc-head strong { font-size: 13px; }
  .map-card.compact .mc-close { font-size: 20px; }
  .map-card.compact .mc-big { font-size: 17px; }
  .map-card.compact .mc-hint { font-size: 12px; }
  .map-card.compact .mc-speed input[type=number] { height: 32px; width: 56px; }
  .map-card.compact .mc-speed-l { display: none; }
  .map-card.compact .mc-time { margin-top: 2px; font-size: 13px; }
  .map-card.compact .mc-foot { margin-top: 4px; }
  .map-card.compact .btn.small { padding: 4px 10px; }
}

.map-legend { line-height: 1.5; }
.lg-title { font-weight: 600; margin-bottom: 2px; }
.lg-row { display: flex; align-items: center; gap: 8px; }
.lg-line { width: 22px; height: 4px; border-radius: 2px; box-shadow: 0 0 0 1px #fff; }
.lg-box { width: 12px; height: 12px; border-radius: 2px; }
.leaflet-tooltip.track-tip { font-family: "Barlow", system-ui, sans-serif; font-size: 12px; font-weight: 500; padding: 2px 6px; }
.leaflet-tooltip.ship-label strong { font-weight: 700; }
.search-results li { border-bottom-style: solid; }
@media (max-width: 899px) {
  .map-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; max-width: 230px; font-size: 11px; padding: 3px 7px; }
  .map-legend > div { display: contents; }
  .lg-title { flex-basis: 100%; margin: 0; }
  .lg-row { gap: 4px; }
  .lg-line { width: 14px; }
}

/* ---------- versie 0.3: getij ---------- */
.tide { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.tide h3 { margin-top: 0; }
.tide-main { margin: 8px 0 6px; }
.tide-main strong { font-size: var(--fs-m); }
.tide-ext { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.tide-chip { font-size: var(--fs-s); padding: 3px 8px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tide-chip.hw { border-left: 3px solid #2A78D6; }
.tide-chip.lw { border-left: 3px solid #E8A200; }
.tc-wrap { position: relative; margin: 4px 0 6px; }
.tide-chart { width: 100%; height: auto; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); touch-action: pan-y; }
.tc-line { fill: none; stroke: #13263B; stroke-width: 2; }
.tc-nap { stroke: var(--line); stroke-dasharray: 3 3; }
.tc-label { font-size: 9px; fill: var(--muted); font-family: "Barlow", system-ui, sans-serif; }
.tc-now { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
.tc-at { stroke: var(--magenta); stroke-width: 2; }
.tc-hw { fill: #2A78D6; }
.tc-lw { fill: #E8A200; }
.tc-dot { fill: var(--paper); stroke: #13263B; stroke-width: 2; }
.tc-tip { min-height: 1.3em; color: var(--ink); margin-top: 2px; }
.tc-legend { display: flex; align-items: center; gap: 6px; }
.tc-key { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--magenta); margin-left: 6px; }
.tc-key.now { border-top: 1px dashed var(--muted); }
.lg-line { box-shadow: 0 0 0 1.5px rgba(19, 38, 59, .55); }

/* ---------- versie 0.4: vloot, getij-tab, weer, mobiel ---------- */
.speed-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-s); margin: -4px 0 12px; }
.speed-legend .sl-title { color: var(--muted); }
.speed-legend .sl-item { display: inline-flex; align-items: center; gap: 5px; }
.fleet-editor { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.tide.flush-top { margin-top: 4px; padding-top: 0; border-top: 0; }
.tide-stop { margin: 4px 0 8px; }
.lg-inline { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.wx-ctl .wx-toggle.leaflet-control-layers-toggle { position: relative; background-size: 24px 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313263B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5h10.5a2.5 2.5 0 1 0-2.5-2.5'/%3E%3Cpath d='M3 12.5h15a3 3 0 1 1-3 3'/%3E%3Cpath d='M3 16.5h6'/%3E%3C/svg%3E"); }
.wx-ctl.wx-on .wx-toggle::after { content: ""; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--magenta); box-shadow: 0 0 0 2px #fff; }
.leaflet-control-layers label { margin: 3px 0; color: var(--ink); font-size: 13px; cursor: pointer; }
.wx-ctl .wx-head { font-weight: 600; font-size: 12px; color: var(--muted); margin: 0 0 2px 2px; }
.wx-icon { background: none; border: 0; }
.wx-mark { position: relative; width: 44px; height: 30px; }
.wx-mark svg { position: absolute; left: 0; top: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.wx-val { position: absolute; left: 26px; top: 7px; font: 700 11px "Barlow", system-ui, sans-serif; color: var(--ink);
  background: rgba(255, 255, 255, .85); padding: 0 3px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.wx-temp { display: inline-block; min-width: 30px; text-align: center; padding: 2px 5px; border-radius: 10px; color: #13263B;
  font: 700 12px "Barlow", system-ui, sans-serif; box-shadow: 0 0 0 1.5px #fff, 0 1px 2px rgba(0, 0, 0, .3); }
@media (max-width: 899px) {
  .app { grid-template-rows: auto 60dvh 1fr; }
  .content { padding: 10px 12px; }
  .tabs { padding: 0 4px; gap: 0; }
  .tabs button { padding: 9px 7px 7px; font-size: 14px; }
  .bar { padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top)); }
  .brand { font-size: 16px; }
  .brand svg { width: 18px; height: 18px; }
  .vessel > button { padding: 8px 2px; }
  .trackbar { margin-bottom: 8px; }
  .map-legend .lg-box { width: 9px; height: 9px; }
}

input[type=datetime-local] { min-width: 0; font: inherit; color: var(--ink); }

/* Geen tekst selecteren op de kaart en in het menu van lang drukken (wel in invulvelden) */
#map, .ctxmenu { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#map input, #map select, #map textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
