:root {
  color-scheme: light;
  --ink: #12323d;
  --muted: #58707a;
  --surface: #ffffff;
  --surface-soft: #eef5f6;
  --brand: #073b4c;
  --brand-2: #0f6574;
  --line: #d7e3e6;
  --shadow: 0 10px 30px rgba(7, 59, 76, .12);
  --good: #168653;
  --fair: #e6a700;
  --weak: #d9822b;
  --poor: #d34a3a;
  --unavailable: #30383c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #f5f8f9; }
button { font: inherit; }
.app-header { min-height: 82px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; color: white; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.app-header h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.35rem); letter-spacing: -.04em; }
.eyebrow { margin: 0 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; opacity: .78; }
.icon-button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: white; background: rgba(255,255,255,.12); font-size: 1.55rem; cursor: pointer; }
main { width: min(1180px, 100%); margin: 0 auto; }
.mode-panel { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mode-panel h2 { margin: 0 0 3px; font-size: 1rem; }
.mode-panel p { margin: 0; color: var(--muted); font-size: .86rem; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto; padding: 3px; border-radius: 12px; background: var(--surface-soft); }
.mode-button { min-height: 42px; padding: 8px 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.mode-button.active { color: white; background: var(--brand-2); box-shadow: 0 2px 8px rgba(7,59,76,.2); }
.map-shell { position: relative; }
#map { height: min(58vh, 620px); min-height: 390px; width: 100%; background: #dce8eb; }
.legend { position: absolute; z-index: 500; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; max-width: calc(100% - 20px); padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-size: .72rem; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-grid; place-items: center; color: white; font-size: 9px; font-style: normal; line-height: 1; font-weight: 900; }
.good { background: var(--good); } .fair { background: var(--fair); } .weak { background: var(--weak); } .poor { background: var(--poor); } .unavailable { background: var(--unavailable); }
.info-panel { min-height: 210px; margin: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.info-panel[hidden] { display:none; }
.empty-state { text-align: center; padding: 22px 8px; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }
.zone-header { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.zone-header h2 { margin: 0 0 4px; }
.zone-meta { margin: 0; color: var(--muted); }
.score-badge { flex: 0 0 auto; min-width: 90px; padding: 10px; border-radius: 14px; text-align: center; color: white; background: var(--unavailable); }
.score-badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.score-badge span { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; }
.score-badge.good { background: var(--good); } .score-badge.fair { background: var(--fair); } .score-badge.weak { background: var(--weak); } .score-badge.poor { background: var(--poor); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.metric { padding: 11px; border-radius: 12px; background: var(--surface-soft); }
.metric span { display: block; color: var(--muted); font-size: .75rem; }
.metric strong { display: block; margin-top: 3px; font-size: 1rem; }
.reason-list { margin: 16px 0 0; padding: 0; list-style: none; }
.reason-list li { position: relative; margin-top: 8px; padding-left: 24px; }
.reason-list li::before { position: absolute; left: 0; content: "•"; font-size: 1.35rem; line-height: .9; color: var(--brand-2); }
.notice { margin-top: 15px; padding: 12px; border-left: 4px solid var(--fair); border-radius: 8px; background: #fff7dc; }
footer { padding: 18px; color: var(--muted); text-align: center; font-size: .76rem; }
footer p { margin: 4px 0; }
@media (max-width: 680px) {
  .mode-panel { align-items: stretch; flex-direction: column; }
  .segmented-control { width: 100%; }
  #map { height: 50vh; min-height: 360px; }
  .metric-grid { grid-template-columns: 1fr; }
  .zone-header { align-items: stretch; }
}
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; padding: 14px 14px 0; }
.dashboard .map-shell { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
/* Leaflet kan placere rasterlaget på brøk-pixels, især ved Safari/DPR-skalering.
   Et halvt pixels overlap lukker kun flisesømmene og berører ikke vektorlagene. */
.leaflet-tile-pane .leaflet-tile[style*="width: 256px"] { width: 256.5px !important; height: 256.5px !important; mix-blend-mode: normal; }
.ranking-panel, .about-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.ranking-panel { padding: 16px; }
.section-heading h2, .about-panel h2 { margin: 0; }
.eyebrow.dark { color: var(--brand-2); opacity: 1; }
.ranking-note { max-width: 58rem; margin: 7px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.42; }
.ranking { display: grid; gap: 8px; margin-top: 14px; }
.ranking-item { width: 100%; display: grid; grid-template-columns: 28px 1fr 42px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; padding: 9px; text-align: left; background: white; cursor: pointer; }
.ranking-item:hover, .ranking-item:focus-visible { border-color: var(--brand-2); }
.rank { font-weight: 800; color: var(--muted); text-align: center; }
.ranking-item strong, .ranking-item small { display: block; }
.ranking-item small { color: var(--muted); margin-top: 2px; }
.ranking-item .ranking-best-place, .national-zone-row .ranking-best-place { color: #36515b; font-size: .78rem; font-weight: 600; }
.rank-score { min-width: 38px; padding: 8px 4px; border-radius: 9px; color: white; text-align: center; background: var(--unavailable); }
.rank-score.good { background: var(--good); }.rank-score.fair { background: var(--fair); }.rank-score.weak { background: var(--weak); }.rank-score.poor { background: var(--poor); }
.ranking-empty { color: var(--muted); }
.about-panel { display:flex; align-items:center; justify-content:space-between; gap:22px; margin: 0 14px 14px; padding: 18px; }
.about-panel p { margin:7px 0 0; color: var(--muted); line-height: 1.55; }
.learn-link { flex:0 0 min(360px,42%); display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-radius:12px; color:white; background:var(--brand-2); font-weight:800; line-height:1.35; text-decoration:none; }
.learn-link:hover,.learn-link:focus-visible { background:var(--brand); }
.weather-grid { grid-template-columns: repeat(3, 1fr); }
.observation-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.observation-form h3 { margin: 0 0 4px; }.observation-form p { color: var(--muted); }
.observation-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.observation-buttons button { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); cursor: pointer; font-weight: 700; }
.observation-buttons button:hover { border-color: var(--brand-2); }.observation-buttons button:disabled { opacity: .55; }
.form-status { min-height: 1.3em; margin-bottom: 0; }
@media (max-width: 880px) { .dashboard { grid-template-columns: 1fr; }.ranking-panel { order: 2; }.ranking { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .dashboard { padding: 0; gap: 0; }.dashboard .map-shell { border-radius: 0; box-shadow: none; }.ranking-panel { margin: 14px; }.ranking { grid-template-columns: 1fr; }.weather-grid { grid-template-columns: 1fr 1fr; }.observation-buttons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .about-panel { align-items:stretch; flex-direction:column; }.learn-link { flex-basis:auto; width:100%; } }
.brand-button { border: 0; padding: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.brand-button .eyebrow, .brand-title { display: block; }
.brand-title { font-size: clamp(1.7rem, 6vw, 2.35rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-button, .trip-bar button, .primary-button { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 10px; color: white; background: var(--brand-2); font-weight: 750; cursor: pointer; }
.app-header .header-button { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
.trip-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 9px 14px; background: #fff1b8; border-bottom: 1px solid #e6ca58; font-size: .86rem; }
.trip-bar button { min-height: 34px; padding: 6px 11px; color: var(--ink); background: white; border: 1px solid #d9bf54; }
.app-dialog { width: min(520px, calc(100% - 28px)); max-height: min(84vh, 760px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.app-dialog::backdrop { background: rgba(3, 28, 37, .64); backdrop-filter: blur(2px); }
.wide-dialog { width: min(960px, calc(100% - 28px)); }
.dialog-content { padding: 24px; overflow: auto; max-height: min(84vh, 760px); }
.dialog-content h2 { margin: 0 36px 8px 0; }
.dialog-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.stack-form { display: grid; gap: 12px; margin-top: 16px; }
.stack-form label, .grams-field { display: grid; gap: 6px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.stack-form input, .grams-field input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.button-row button, .stack-form > button, .trip-answer-buttons button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); font-weight: 750; cursor: pointer; }
.button-row .primary-button, .stack-form > .primary-button { color: white; background: var(--brand-2); border-color: var(--brand-2); }
.account-feature-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding:15px 16px;border:1px solid var(--brand-2);border-radius:12px;background:var(--surface-soft);color:var(--brand-2);font-weight:800;text-decoration:none}.account-feature-link:hover{background:#e4f4f7}.account-privacy-note,.trip-log-privacy{color:var(--muted);font-size:.9rem;line-height:1.5}.magic-link-explanation{padding:12px 14px;border-radius:10px;background:var(--surface-soft)}.magic-link-explanation p{margin:5px 0 0;color:var(--muted);font-size:.9rem;line-height:1.45}.text-link{padding:0;border:0;background:none;color:var(--brand-2);font:inherit;font-weight:750;cursor:pointer}.back-link{margin:0 0 16px}.trip-log-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.trip-log-summary div{display:grid;gap:3px;padding:12px 8px;border-radius:10px;background:var(--surface-soft);text-align:center}.trip-log-summary strong{font-size:1.15rem}.trip-log-summary span{color:var(--muted);font-size:.76rem}.trip-log-list{display:grid;gap:10px}.trip-log-row{display:grid;gap:9px;padding:13px;border:1px solid var(--line);border-radius:11px}.trip-log-row>div:first-child{display:grid;gap:3px}.trip-log-row>div:first-child span{color:var(--muted);font-size:.88rem}.trip-log-facts{display:flex;flex-wrap:wrap;gap:6px}.trip-log-facts span{padding:4px 8px;border-radius:999px;background:var(--surface-soft);font-size:.78rem}.trip-log-facts .trip-found{background:#dff4df;color:#175c25}.trip-log-facts .trip-not-found{background:#f1f1ec;color:#555}.trip-log-facts .trip-log-pending{background:#fff1b8;color:#6c5600}.empty-state-inline{padding:18px;border-radius:10px;background:var(--surface-soft);color:var(--muted);text-align:center}@media(max-width:520px){.trip-log-summary{grid-template-columns:1fr}.trip-log-summary div{grid-template-columns:auto 1fr;align-items:center;text-align:left}}
.grams-field { margin-top: 12px; max-width: 260px; }
.trip-answer-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.developer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.developer-grid section { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.developer-grid h3 { margin: 0 0 10px; }
dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0; } dt { color: var(--muted); } dd { margin: 0; font-weight: 700; text-align: right; }
pre { max-height: 270px; overflow: auto; padding: 10px; border-radius: 8px; background: #102f38; color: #e7f5f7; font-size: .75rem; white-space: pre-wrap; word-break: break-word; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }
code { padding: 1px 4px; border-radius: 4px; background: var(--surface-soft); }
@media (max-width: 680px) {
  .app-header { align-items: flex-start; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .header-button { order: 3; width: 100%; min-height: 34px; padding: 5px 8px; font-size: .75rem; }
  .trip-bar { align-items: stretch; flex-direction: column; gap: 7px; }
  .developer-grid { grid-template-columns: 1fr; }
}

/* Kortlag: kompakt lagknap med trykvenlig menu */
.leaflet-control-layers {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,.22);
  overflow: hidden;
}
.leaflet-control-layers-toggle {
  width: 44px;
  height: 44px;
  background-size: 24px 24px;
}
.leaflet-control-layers-expanded {
  min-width: 145px;
  padding: .6rem .75rem;
  border-radius: 12px;
  font: inherit;
}
.leaflet-control-layers-base label {
  display: block;
  margin: .2rem 0;
  cursor: pointer;
  white-space: nowrap;
}
.leaflet-control-layers-base input {
  margin-right: .4rem;
}
@media (max-width: 520px) {
  .leaflet-control-layers-expanded { font-size: .92rem; }
}

/* RavRadar 2.6: rene pins, forklarlige delscorer og 5-dages planlægning */
.rav-pin-wrap { background: transparent; border: 0; }
.rav-pin { position: relative; display: grid; place-items: center; width: var(--pin-size, 18px); height: var(--pin-size, 18px); box-sizing: border-box; border: var(--pin-border, 2px) solid #fff; border-radius: 50%; background: var(--pin-color); box-shadow: var(--pin-shadow, 0 2px 5px rgba(0,0,0,.34)); transition: width .16s ease, height .16s ease, border-width .16s ease, box-shadow .16s ease; }
.rav-pin-symbol { display: grid; place-items: center; width: 100%; height: 100%; color: white; font-size: var(--pin-symbol-size, 10px); line-height: 1; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.zone-popup { display: grid; min-width: 145px; gap: 7px; }
.zone-popup strong { font-size: .95rem; }
.popup-score { width: fit-content; padding: 5px 8px; border-radius: 8px; color: white; background: var(--unavailable); font-weight: 800; }
.popup-score.good { background: var(--good); }.popup-score.fair { background: var(--fair); }.popup-score.weak { background: var(--weak); }.popup-score.poor { background: var(--poor); }
.popup-open-zone { min-height: 34px; border: 0; border-radius: 8px; color: white; background: var(--brand-2); font-weight: 750; cursor: pointer; }

.national-forecast { margin: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.national-forecast .section-heading { margin-bottom: 12px; }
.day-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.day-tabs button { flex: 1 0 76px; min-height: 58px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink); cursor: pointer; }
.day-tabs button span,.day-tabs button small { display: block; }.day-tabs button span { font-weight: 800; text-transform: capitalize; }.day-tabs button small { margin-top: 2px; color: var(--muted); }
.day-tabs button.active { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); background: white; }
.forecast-recovery-note { margin: 9px 2px 0; color: var(--muted); font-size: .9rem; }
.national-forecast-list { display: grid; gap: 8px; margin-top: 12px; }
.national-zone-row { display: grid; grid-template-columns: 28px 1fr 45px; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: left; cursor: pointer; }
.national-zone-row strong,.national-zone-row small { display: block; }.national-zone-row small { margin-top: 2px; color: var(--muted); }

.component-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 16px; }
.local-coverage-panel{margin:16px 0 0;padding:16px 18px;border:2px solid #0b6574;border-radius:16px;background:#eef9fa;color:#17343a}
.local-coverage-panel.only-part{border-color:#b85d18;background:#fff6ed}.local-coverage-panel.several-parts{border-color:#987019;background:#fff9e8}
.local-coverage-panel h3{margin:.2rem 0 .45rem;font-size:1.12rem}.local-coverage-panel p:last-child,.local-coverage-panel ul{margin-bottom:0}.local-coverage-panel ul{padding-left:1.25rem}
.display-context{margin:.7rem 0 0;padding:.7rem .9rem;border-left:4px solid #0b6574;border-radius:10px;background:#eef9fa;color:#17343a}.display-context.warning{border-left-color:#b85d18;background:#fff6ed}.display-context p{margin:0}
.history-quality-warning p + p{margin-top:.35rem}.history-quality-warning .history-quality-coverage{font-size:.86rem;color:#74430f}
.score-quality-inline{display:block;margin-top:3px;color:#8b4b0b;font-size:.72rem;font-weight:800;line-height:1.15;text-transform:none}
.show-local-parts{margin-top:8px;padding:9px 14px;border:1px solid currentColor;border-radius:10px;background:#fff;color:#073b4c;font-weight:800;cursor:pointer}.show-local-parts:hover{background:#edf7fa}.local-part-label{background:#fff;border:2px solid #1769aa;border-radius:7px;color:#17313a;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.18)}.local-part-label.highlighted{border-color:#0a7b4f;background:#eaf8f1}
.component-detail { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); overflow: hidden; }
.component-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 62px; padding: 11px; cursor: pointer; list-style: none; }
.component-detail summary::-webkit-details-marker { display: none; }
.component-detail summary span { color: var(--muted); font-size: .78rem; }.component-detail summary strong { color: var(--ink); font-size: 1.08rem; white-space: nowrap; }
.component-detail summary::after { content: "＋"; color: var(--brand-2); font-weight: 800; }.component-detail[open] summary::after { content: "−"; }
.component-explanation { padding: 0 12px 12px; border-top: 1px solid var(--line); background: white; font-size: .86rem; line-height: 1.45; }
.component-explanation p { margin: 10px 0 6px; }.component-explanation ul { margin: 6px 0 0; padding-left: 20px; }
.component-list.compact { grid-template-columns: 1fr; }.component-list.compact .component-detail summary { min-height: 48px; }

.forecast-section,.tide-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }.section-title-row h3 { margin: 0; }.section-title-row .eyebrow { margin-bottom: 3px; }
.forecast-score-strip { display: grid; grid-template-columns: repeat(5,minmax(72px,1fr)); gap: 7px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.forecast-score-day { min-width: 72px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.forecast-score-day span,.forecast-score-day small { display:block; }.forecast-score-day span { font-weight:800; text-transform:capitalize; }.forecast-score-day small { color:var(--muted); }
.forecast-score-day .score-quality-inline{min-height:1.7em;margin:2px 0;color:#8b4b0b;font-size:.64rem}
.forecast-score-day.active { border-color:var(--brand-2); box-shadow:inset 0 0 0 1px var(--brand-2); }
.day-score { display:grid; place-items:center; width:42px; height:42px; margin:5px auto; border-radius:50%; color:white; background:var(--unavailable); font-size:1rem; }
.day-score.good { background:var(--good); }.day-score.fair { background:var(--fair); }.day-score.weak { background:var(--weak); }.day-score.poor { background:var(--poor); }
.forecast-detail { margin-top:12px; padding:14px; border-radius:13px; background:var(--surface-soft); }
.forecast-selected { display:flex; align-items:center; justify-content:space-between; gap:12px; }.forecast-selected h4 { margin:0 0 3px; }.forecast-selected p { margin:0; color:var(--muted); }
.tide-section .day-tabs { margin-top:12px; }.tide-extremes { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 8px; }.tide-extremes span { padding:7px 10px; border-radius:9px; background:var(--surface-soft); }
.tide-table-wrap { max-height:340px; overflow:auto; border:1px solid var(--line); border-radius:10px; }.tide-table thead { position:sticky; top:0; background:white; }.tide-table tr.high td { font-weight:800; }.tide-table tr.low td { font-weight:800; color:var(--muted); }
.muted { color:var(--muted); }

@media (max-width:680px) {
  .component-list { grid-template-columns:1fr; }
  .forecast-score-strip { grid-template-columns:repeat(5,78px); }
  .national-forecast { margin:14px; }
  .forecast-selected { align-items:stretch; }
}


/* RavRadar 2.6.1: fokuseret zonevisning og kompakt turbetjening */
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.app-header .header-button.trip-active { color:#17333b; background:#fff1b8; border-color:#e6ca58; }
.back-to-overview { margin:0 0 12px; padding:7px 10px; border:1px solid var(--line); border-radius:9px; color:var(--brand-2); background:white; font-weight:750; cursor:pointer; }
body.zone-focus .ranking-panel,
body.zone-focus .national-forecast,
body.zone-focus .mode-panel,
body.zone-focus .about-panel { display:none; }
body.zone-focus .dashboard { grid-template-columns:1fr; }
body.zone-focus #map { height:min(64vh,720px); }
body.zone-focus .info-panel { scroll-margin-top:12px; }
.component-list.metric-sized { grid-template-columns:repeat(3,minmax(0,1fr)); }
.component-list.metric-sized .component-detail { border:0; background:var(--surface-soft); overflow:visible; }
.component-list.metric-sized .component-detail summary { min-height:auto; padding:11px; border-radius:12px; }
.component-list.metric-sized .component-detail summary span { font-size:.75rem; }
.component-list.metric-sized .component-detail summary strong { font-size:1rem; }
.component-list.metric-sized .component-detail summary::after { font-size:.8rem; }
.component-list.metric-sized .component-detail[open] { grid-column:1 / -1; border:1px solid var(--line); overflow:hidden; }
.component-list.metric-sized .component-detail[open] summary { border-radius:0; }
@media (max-width:680px) {
  body.zone-focus #map { height:56vh; min-height:390px; }
  .component-list.metric-sized { grid-template-columns:1fr 1fr; }
  .component-list.metric-sized .component-detail[open] { grid-column:1 / -1; }
}


/* RavRadar 2.6.2: fælles scoresignatur og kildeangivelser */
.footer-signature { width:min(760px,100%); margin:0 auto 16px; padding:14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.78); }
.footer-signature h2 { margin:0 0 10px; color:var(--ink); font-size:1rem; }
.footer-score-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:9px 14px; color:var(--ink); }
.footer-score-legend span { display:inline-flex; align-items:center; gap:6px; }
.score-symbol { width:18px; height:18px; border-radius:50%; display:inline-grid; place-items:center; color:#fff; font-size:11px; line-height:1; font-style:normal; font-weight:900; }
.score-symbol.good { background:var(--good); }
.score-symbol.fair { background:var(--fair); }
.score-symbol.weak { background:var(--weak); }
.score-symbol.poor { background:var(--poor); }
.score-symbol.unavailable { background:var(--unavailable); }
.signature-note { margin:10px 0 0; }
.source-credits { width:min(900px,100%); margin:14px auto 0; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.7); text-align:left; }
.source-credits summary { color:var(--ink); cursor:pointer; font-weight:800; text-align:center; }
.source-credits div { margin-top:10px; line-height:1.5; }
.source-credits a { color:var(--brand-2); }
.source-credits p { margin:8px 0; }


/* RavRadar 2.6.3: farvesignatur på delscorer */
.component-score { display:inline-flex; align-items:center; justify-content:center; min-width:64px; padding:5px 7px; border-radius:9px; color:#fff; font-variant-numeric:tabular-nums; }
.component-score.good { background:var(--good); }
.component-score.fair { background:var(--fair); }
.component-score.weak { background:var(--weak); }
.component-score.poor { background:var(--poor); }
.component-score.unavailable { background:var(--unavailable); }


/* RavRadar 2.6.5: tydelige sorte retningspile i paneler; farvede pile beholdes kun på kortet */
.direction-reading { display:inline-flex; align-items:center; gap:7px; min-width:0; }
.direction-reading > span:last-child { min-width:0; }
.direction-arrow {
  --direction:0deg;
  display:inline-block;
  flex:0 0 auto;
  width:22px;
  height:22px;
  color:#101820;
  background:transparent;
  border:0;
  border-radius:0;
  transform:rotate(var(--direction));
  transform-origin:center;
  font-size:23px;
  line-height:22px;
  font-weight:950;
  text-align:center;
  text-shadow:none;
  box-shadow:none;
}
.direction-arrow.wind,
.direction-arrow.current { color:#101820; background:transparent; box-shadow:none; text-shadow:none; }
.direction-arrow.unavailable { color:var(--muted); opacity:.55; }
.flow-arrow-wrap { background:transparent!important; border:0!important; pointer-events:none!important; }
.flow-arrow { --direction:0deg; display:grid; place-items:center; width:28px; height:28px; transform:rotate(var(--direction)); transform-origin:center; font-size:27px; line-height:1; font-weight:900; opacity:.88; pointer-events:none; }
.flow-arrow.wind { color:#fff; filter:drop-shadow(0 1px 2px rgba(0,0,0,.9)) drop-shadow(0 0 1px rgba(0,0,0,.8)); }
.flow-arrow.current { color:#1497df; filter:drop-shadow(0 1px 2px rgba(0,28,54,.9)) drop-shadow(0 0 1px #fff); }
@media (max-width:680px) {
  .direction-reading { gap:6px; }
  .direction-arrow { width:21px; height:21px; font-size:22px; line-height:21px; }
  .flow-arrow { width:25px; height:25px; font-size:24px; opacity:.84; }
}

/* 2.6.6: Markørerne skalerer med kortets zoom, så landsoversigten forbliver læsbar med mange zoner. */
.rav-pin-wrap { transition: none; }

/* 2.6.11: Farvede kystzoner erstatter pins. Leaflet SVG-linjer tegnes i zoneCoastPane. */
.leaflet-zone-pane path,
.leaflet-pane.leaflet-zoneCoastPane-pane path {
  vector-effect: non-scaling-stroke;
}

/* Zonegrænser: én sort tværstreg, hvor to forskellige hovedzoner mødes. */
.zone-boundary-tick-wrap{background:transparent!important;border:0!important;pointer-events:none}
.zone-boundary-tick{position:absolute;left:9px;top:calc(10px - var(--tick-length)/2);width:2px;height:var(--tick-length);border-radius:.75px;background:#111;box-shadow:none;transform:rotate(var(--tick-rotation));transform-origin:50% 50%}
.zone-boundary-tick.selected{width:3px;left:8.5px;background:#000;box-shadow:none}

/* RavRadar 2.6.20: tydelig og sikker PWA-opdatering */
.update-banner {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(560px, calc(100% - 24px));
  margin-inline: auto;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: #073b4c;
  color: white;
  box-shadow: 0 12px 38px rgba(0,0,0,.28);
  font-weight: 750;
}
.update-banner[hidden] { display: none; }
.update-banner button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: white;
  color: #073b4c;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.update-banner button:disabled { opacity: .65; cursor: wait; }
.app-version { margin-top: 4px; font-size: .82rem; opacity: .78; }

/* RavRadar 2.9.0: feedback, forklarlig score og opdateringssikkerhed */
.stack-form select,.stack-form input[type="date"]{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;}
.score-calculation{padding:9px 11px;border-radius:9px;background:var(--surface-soft);}
.observation-form label{display:grid;gap:6px;margin:10px 0;font-weight:700;}
.prediction-panel{margin:14px 0;padding:16px;border:1px solid rgba(216,162,50,.55);border-radius:16px;background:linear-gradient(135deg,rgba(216,162,50,.12),rgba(7,59,76,.08));display:grid;gap:8px}.prediction-panel h3{margin:.2rem 0;font-size:1.25rem}.prediction-panel p{margin:0}.prediction-panel summary{cursor:pointer;font-weight:750}.prediction-panel ul{margin:.6rem 0 0;padding-left:1.2rem}

/* RavRadar 3.0.1: søgbar zonevælger og tydelig indsendelse */
.trip-found-field{border:0;padding:0;margin:0;display:grid;gap:8px}.trip-found-field legend{font-weight:800;color:var(--ink);margin-bottom:4px}.trip-answer-buttons label{display:block}.trip-answer-buttons input{position:absolute;opacity:0;pointer-events:none}.trip-answer-buttons span{display:grid;place-items:center;min-height:48px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:#1485ef;font-weight:800;cursor:pointer}.trip-answer-buttons input:checked+span{background:#dff1ff;border-color:#1485ef;box-shadow:0 0 0 2px rgba(20,133,239,.2)}.zone-search{position:relative}.zone-search>input[type="search"]{padding-right:38px}.zone-search-results{position:absolute;z-index:1000;left:0;right:0;top:calc(100% + 5px);max-height:270px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 16px 35px rgba(7,59,76,.22);padding:6px}.zone-search-results button{width:100%;display:grid;gap:2px;text-align:left;border:0;border-radius:8px;background:#fff;padding:10px 11px;color:var(--ink);font:inherit;cursor:pointer}.zone-search-results button:hover,.zone-search-results button:focus{background:var(--surface-soft);outline:none}.zone-search-results small{color:var(--muted)}.zone-search-results p{margin:8px;color:var(--muted)}.trip-submit{width:100%;min-height:50px;font-size:1rem}.trip-submit:disabled{opacity:.65}

/* RavRadar debug trace */
.debug-panel{margin:1rem 0;border:1px solid rgba(20,70,70,.22);border-radius:14px;background:#f7fbfa;overflow:hidden}.debug-panel>summary{cursor:pointer;padding:1rem;font-weight:800}.debug-content{padding:0 1rem 1rem}.debug-warning{padding:.75rem;border-radius:10px;background:rgba(255,193,7,.12)}.debug-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.65rem}.debug-grid>div{display:flex;flex-direction:column;padding:.7rem;border-radius:10px;background:#fff}.debug-grid span{font-size:.78rem;opacity:.7}.debug-grid strong{overflow-wrap:anywhere}.debug-table-wrap{overflow-x:auto}.debug-table{width:100%;border-collapse:collapse;background:#fff}.debug-table th,.debug-table td{padding:.55rem;text-align:left;border-bottom:1px solid rgba(0,0,0,.08)}.debug-content pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:.8rem;border-radius:10px;background:#142829;color:#eef8f6;font-size:.78rem}
.coast-transport-explanation{margin:14px 0;padding:14px;border:1px solid rgba(31,91,68,.25);border-radius:14px;background:#f4faf6}.coast-transport-explanation h3{margin:0 0 6px}.coast-transport-explanation p{margin:6px 0}.coast-transport-explanation ul{padding-left:20px}.coast-transport-explanation li{margin:7px 0}.coast-transport-explanation li.selected{font-weight:500}.anchor-used{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#d8f3df;color:#174d2f;font-size:.78rem;font-weight:700}


/* RavRadar 4.0.41: brugerassistent */
.assistant-header-button{white-space:nowrap}.assistant-dialog{width:min(680px,calc(100% - 20px))}.assistant-heading{display:flex;gap:12px;align-items:flex-start}.assistant-heading h2{margin:0}.assistant-heading p{margin:.3rem 0;color:var(--muted)}.assistant-orb{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff1b8;font-size:1.35rem}.assistant-quota{margin:10px 0 2px;padding:9px 11px;border:1px solid #d9c46a;border-radius:10px;background:#fff8d8;color:#5f4c00;font-size:.86rem;line-height:1.4}.assistant-quick{display:flex;gap:7px;overflow:auto;padding:8px 0 12px}.assistant-quick button{white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);padding:8px 11px;color:var(--ink);font:inherit;font-weight:700}.assistant-messages{display:grid;gap:10px;max-height:45vh;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:14px;background:#edf4f3}.assistant-message{max-width:88%;padding:10px 12px;border-radius:14px;background:white;box-shadow:0 2px 8px rgba(7,59,76,.08)}.assistant-message.user{justify-self:end;background:#073b4c;color:white}.assistant-message p{margin:0;white-space:pre-wrap}.assistant-message.loading{opacity:.7}.assistant-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.assistant-form textarea{min-height:52px;max-height:130px;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:11px;font:inherit}.assistant-disclaimer{font-size:.8rem;color:var(--muted)}@media(max-width:620px){.assistant-header-button{font-size:.82rem;padding:8px}.assistant-form{grid-template-columns:1fr}.assistant-form button{width:100%}}

/* 4.0.45: exceptionel score markeres kun i ranglister, ikke som særskilt kortfarve */
.rank-score { white-space: nowrap; }

/* RavRadar 4.0.74: mobilforsiden prioriterer det brugbare kort uden at ændre kortkontrollerne. */
.account-icon-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.header-actions{display:flex;align-items:center;gap:10px}.primary-header-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.primary-header-actions .header-button{min-width:118px}.about-header-link{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.language-switcher{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid rgba(255,255,255,.28);border-radius:11px;background:rgba(0,0,0,.1)}.language-switcher button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:5px 8px;border:0;border-radius:8px;color:white;background:transparent;cursor:pointer;font-size:.76rem;font-weight:750;white-space:nowrap}.language-switcher button:hover,.language-switcher button:focus-visible{background:rgba(255,255,255,.14)}.language-switcher button.active{color:var(--brand);background:white}
.language-flag{display:inline-block;width:18px;height:12px;flex:0 0 18px;border:1px solid rgba(0,0,0,.2);border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.12)}.flag-da{background:linear-gradient(90deg,transparent 0 29%,#fff 29% 41%,transparent 41%),linear-gradient(0deg,transparent 0 42%,#fff 42% 58%,transparent 58%),#c60c30}.flag-de{background:linear-gradient(#000 0 33.33%,#dd0000 33.33% 66.66%,#ffce00 66.66% 100%)}.flag-en{background:linear-gradient(90deg,transparent 45%,#c8102e 45% 55%,transparent 55%),linear-gradient(0deg,transparent 42%,#c8102e 42% 58%,transparent 58%),linear-gradient(90deg,transparent 40%,#fff 40% 60%,transparent 60%),linear-gradient(0deg,transparent 34%,#fff 34% 66%,transparent 66%),linear-gradient(33deg,transparent 47%,#c8102e 47% 53%,transparent 53%),linear-gradient(-33deg,transparent 47%,#c8102e 47% 53%,transparent 53%),linear-gradient(33deg,transparent 43%,#fff 43% 57%,transparent 57%),linear-gradient(-33deg,transparent 43%,#fff 43% 57%,transparent 57%),#012169}
.map-column{min-width:0}.legend{position:static;z-index:auto;max-width:none;box-shadow:none;border:1px solid var(--line);border-radius:0 0 12px 12px;background:var(--surface);justify-content:center}
.dashboard .map-column .map-shell{border-radius:16px 16px 0 0}
@media(max-width:680px){
 .app-header{min-height:auto;padding:10px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
 .language-switcher{grid-column:1/-1;grid-row:2;justify-self:stretch;justify-content:center}.language-switcher button{flex:1 1 0}
 .header-actions{grid-column:1/-1;grid-row:3}
 .app-header h1,.brand-title{font-size:1.8rem}.app-header .eyebrow{font-size:.68rem}
 .header-actions{display:grid;grid-template-columns:auto minmax(0,1fr);width:min(100%,390px);gap:8px}
 .primary-header-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.primary-header-actions .header-button{order:initial;width:auto;min-width:0;min-height:42px;padding:7px 6px;font-size:.72rem;line-height:1.15}
 .icon-button{width:42px;height:42px}
 .mode-panel{padding:9px 12px;gap:7px}.mode-panel h2{font-size:.95rem}.mode-panel p{font-size:.75rem}.segmented-control{padding:2px}.mode-button{min-height:38px;padding:6px 10px}
 .dashboard{display:block}.dashboard .map-column .map-shell{border-radius:0}.legend{border-left:0;border-right:0;border-radius:0;padding:7px 9px;font-size:.7rem}
 #map{height:58vh;min-height:430px;max-height:650px}
}
@media(max-width:420px){.app-header{grid-template-columns:1fr}.header-actions{width:100%;grid-template-columns:auto 1fr}.primary-header-actions .header-button{font-size:.69rem;padding-inline:4px}}
.legend-note{margin:0;padding:5px 10px 8px;text-align:center;color:var(--muted);font-size:.68rem;background:var(--surface)}
.state-explanation{margin:14px 0;padding:15px;border:1px solid rgba(7,59,76,.24);border-radius:14px;background:linear-gradient(135deg,#f5fbfd,#f7faf6)}
.state-explanation h3{margin:.15rem 0 .45rem;text-transform:none}.state-explanation p{margin:.4rem 0}.state-explanation details{margin-top:.65rem}.state-explanation summary{cursor:pointer;font-weight:750}.state-explanation ul{margin:.55rem 0;padding-left:1.2rem}.state-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:.7rem 0}.state-metrics span{padding:5px 9px;border-radius:999px;background:#e7f1f4;font-size:.88rem}
.legend{flex-wrap:wrap}.legend-arrow{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:1.35rem;font-weight:900;line-height:1}.legend-arrow.current{color:#075985}.legend-arrow.wind{color:#fff;background:#315764;text-shadow:0 1px 2px #000}.flow-arrow.current{color:#075985!important}@media(max-width:680px){.assistant-header-button{white-space:normal;text-align:center}}

/* RavRadar 4.0.454: På større skærme fylder kortet den ledige højde ved siden af ranglisten. */
@media (min-width:881px){
 .dashboard{align-items:stretch}
 .dashboard .map-column{display:flex;flex-direction:column;min-height:100%}
 .dashboard .map-column .map-shell{flex:1 1 auto;min-height:390px}
 .dashboard .map-column #map{height:100%;min-height:390px}
}
