:root {
  --bg: #04101f;
  --panel: rgba(5, 14, 30, 0.88);
  --panel-solid: #071426;
  --line: rgba(255, 255, 255, 0.14);
  --fg: #e2ecf8;
  --dim: #93a9c0;
  --accent: #2fd6a6;
  --warn: #ffc94d;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* skala tipografi: teks bacaan tidak boleh di bawah --fs-xs */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 17px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

button { font: inherit; color: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
#stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ peta */

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  contain: strict;
  cursor: crosshair;
  touch-action: none;
}
#stage:focus { cursor: crosshair; }
#stage.is-drag { cursor: grabbing; }
/* Peta dasar MapLibre di dasar tumpukan; kanvas overlay D3 di atasnya tidak menangkap pointer. */
/* Seretan peta tidak boleh menyorot teks header, label, atau penanda di sekitarnya. */
#stage, #topbar, #labels, #ports { -webkit-user-select: none; user-select: none; }
#gl-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#gl-map .maplibregl-canvas-container.maplibregl-interactive,
#gl-map .maplibregl-canvas-container.maplibregl-interactive:active { cursor: crosshair; }
#stage.is-drag #gl-map .maplibregl-canvas-container.maplibregl-interactive { cursor: grabbing; }
#gl-map canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
#stage > canvas {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
}
/* Kanvas raster hanya sumber tekstur untuk layer MapLibre (lihat map-view.js); tidak ditampilkan langsung. */
#cv-field, #cv-rob { display: none !important; }
#cv-particles, #cv-fire { transition: opacity .22s ease; }
body.coastal-change-open #cv-field { opacity: 0; }
body.coastal-change-open #cv-particles,
body.coastal-change-open #cv-fire { opacity: 0; }
body.coastal-change-open #map-dock { display: none; }
body.rob-analysis-open #cv-field,
body.rob-analysis-open #cv-particles,
body.rob-analysis-open #cv-fire,
body.rob-analysis-open #cv-coastal-change { opacity: 0; }
body.rob-analysis-open #map-dock,
body.rob-analysis-open #data-guide,
body.rob-analysis-open #fire-analysis,
body.rob-analysis-open #coastal-change-panel { display: none; }
body.coastal-change-open #timeline { opacity: .42; pointer-events: none; }

/* Preview pan/zoom dikomposisi GPU; render presisi dilakukan saat interaksi selesai. */
#stage[data-viewport-locked="true"] > canvas,
#stage.is-view-interacting #labels,
#stage.is-view-interacting #ports {
  transform: var(--view-preview-transform, none) !important;
  transform-origin: 0 0;
}
#stage.is-view-interacting > canvas,
#stage.is-view-interacting #labels,
#stage.is-view-interacting #ports {
  will-change: transform;
  pointer-events: none;
}

#mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
#mode-switcher button {
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
#mode-switcher button:nth-child(2n) { border-right: 0; }
#mode-switcher button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
#mode-switcher button strong, #mode-switcher button span { display: block; white-space: nowrap; }
#mode-switcher button strong { font: 600 11.5px/1.2 var(--mono); }
#mode-switcher button span { margin-top: 2px; color: var(--dim); font: 11px/1.2 var(--mono); }
#mode-switcher button[aria-pressed="true"] { color: #04101f; background: var(--accent); }
#mode-switcher button[aria-pressed="true"] span { color: #173d3a; }

#data-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 7px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
#data-meta span { min-width: 0; padding: 5px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #aebfd0; font: 11px/1.3 var(--mono); }

.menu-mode { margin-bottom: 6px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.menu-mode > .mg-k { display: block; width: auto; margin-bottom: 6px; }
.menu-mode__description { margin: 7px 0 0; color: #c5d3e1; font: 11px/1.45 var(--mono); }

.coast-why, #fa-why { margin-top: 7px; color: #b9c9d8; font: 11px/1.5 var(--mono); }
.coast-why summary, #fa-why summary { color: var(--accent); cursor: pointer; }

#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#ports {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
#ports[hidden] { display: none; }
.port-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}
.port-marker__dot {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ffb347;
  border: 2px solid #071426;
  box-shadow: 0 0 0 1px rgba(255,255,255,.75);
  transition: transform .35s cubic-bezier(.16,1,.3,1), background-color .2s ease;
}
.port-marker__label {
  position: absolute;
  left: 18px;
  top: 50%;
  display: none;
  transform: translateY(-50%);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--fg);
  background: rgba(5,14,30,.94);
  border: 1px solid var(--line);
  font: 11.5px var(--mono);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.port-marker:hover .port-marker__label,
.port-marker:focus-visible .port-marker__label,
.port-marker.is-selected .port-marker__label { display: block; }
.port-marker:hover .port-marker__dot,
.port-marker:focus-visible .port-marker__dot,
.port-marker.is-selected .port-marker__dot { background: var(--accent); }
.port-marker:not(.has-tide):hover .port-marker__dot,
.port-marker:not(.has-tide):focus-visible .port-marker__dot,
.port-marker.is-selected:not(.has-tide) .port-marker__dot { transform: scale(1.35); }
.port-marker.has-tide .port-marker__dot { transform: translateY(var(--tide-shift, 0)) scale(var(--tide-scale, 1)); }
.port-marker.is-selected.has-tide .port-marker__dot { box-shadow: 0 0 0 2px rgba(47,214,166,.38), 0 0 0 6px rgba(47,214,166,.12); }
.port-marker.is-rob-reference .port-marker__label,
.port-marker.is-rob-exposed .port-marker__label { display: block; }
.port-marker.is-rob-reference .port-marker__dot { background: #58e1c0; box-shadow: 0 0 0 2px rgba(88,225,192,.38), 0 0 0 7px rgba(88,225,192,.12); }
.port-marker.is-rob-exposed .port-marker__dot { background: #ff9b57; box-shadow: 0 0 0 2px rgba(255,155,87,.5), 0 0 0 8px rgba(255,155,87,.16); }
@media (prefers-reduced-motion: reduce) { .port-marker__dot { transition: none; } }

.lbl {
  position: absolute;
  white-space: nowrap;
  font-size: 11px;
  text-shadow: 0 1px 3px #000, 0 0 7px rgba(0, 0, 0, 0.85);
  user-select: none;
}
.lbl--id,
.lbl--mys {
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translate(-2.5px, -50%);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.lbl--id i,
.lbl--mys i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6);
  flex: none;
}
.lbl--id { color: #f0f6ff; font-weight: 500; }
.lbl--mys { color: #c3d7ee; }
.lbl--water {
  transform: translate(-50%, -50%);
  color: #8ec9f5;
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}
.lbl--region {
  transform: translate(-50%, -50%);
  color: #ffd8a3;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.62;
}

#crosshair {
  position: absolute;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  display: none;
}
#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
}
#crosshair::before { left: 50%; top: -5px; width: 1px; height: 4px; }
#crosshair::after { top: 50%; left: -5px; height: 1px; width: 4px; }

/* --------------------------------------------------------------- loader */

#loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 45%, rgba(4, 16, 31, 0.55), rgba(4, 16, 31, 0.94));
  cursor: default;
  z-index: 20;
}
#loader[hidden] { display: none; }
.ld-box { text-align: center; width: min(320px, 74vw); }
.ld-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.ld-bar[hidden] { visibility: hidden; height: 3px; }
.ld-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #63d9f0);
  transition: width 0.25s ease;
}
#loader-text { font-size: 12.5px; letter-spacing: 0.06em; color: var(--dim); }
#retry {
  margin-top: 14px;
  background: var(--accent);
  color: #04101f;
  border: 0;
  border-radius: 4px;
  padding: 7px 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------------------------------- map tools */

#maptools {
  position: fixed;
  right: 14px;
  top: 12px;
  z-index: 10;
  display: flex;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}
#maptools button {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: transparent;
  border: 0;
  color: var(--fg);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
#maptools button + button { border-left: 1px solid rgba(255,255,255,.1); border-radius: 0 5px 5px 0; }
#maptools button:first-child { border-radius: 5px 0 0 5px; }
#maptools button:hover { background: rgba(255, 255, 255, 0.14); }
#maptools button:active,
.btn:active,
#btn-menu:active,
#timeline button:active { transform: translateY(1px); }
#maptools button:disabled { opacity: 0.4; cursor: default; }

/* ---------------------------------------------------------------- search */

#search {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: min(300px, calc(100vw - 260px));
}
#search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
}
#search-input::placeholder { color: var(--dim); }
#search-input:focus { border-color: var(--accent); }
#search-results {
  margin: 6px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
  max-height: 46vh;
  overflow: auto;
}
#search-results[hidden] { display: none; }
#search-results li {
  padding: 7px 9px;
  font-size: 12px;
  color: var(--fg);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
#search-results li:hover,
#search-results li.is-active { background: rgba(47, 214, 166, 0.16); }
#search-results li[aria-selected="true"] { background: rgba(47, 214, 166, 0.16); }
#search-results li span { color: var(--dim); font-size: 11.5px; font-family: var(--mono); }
#search-results li.is-msg { cursor: default; color: var(--dim); }
#search-results li.is-msg:hover { background: none; }

/* --------------------------------------------------------------- topbar */

#topbar {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 6;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 120px));
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  flex: none;
}
.brand-name {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: #fff;
}
.brand-name span { color: var(--accent); font-weight: 600; margin-left: 0.34em; }
#topbar .line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
}
#badge {
  background: var(--accent);
  color: #04101f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 3px;
}
#badge.is-forecast { background: var(--warn); }
#clock { color: #dbe8f7; letter-spacing: 0.04em; }
#clock.is-forecast { color: var(--warn); }
#desc {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
#data-time {
  margin: 3px 0 0;
  color: #9fc5d8;
  font: 600 11.5px/1.35 var(--mono);
  letter-spacing: .035em;
}
#data-time.is-held { color: var(--warn); }

/* --------------------------------------------------------- panduan data */

#data-guide {
  position: fixed;
  left: 14px;
  top: var(--data-guide-top, 150px);
  z-index: 6;
  width: min(340px, calc(100vw - 92px));
  max-height: min(390px, calc(100dvh - var(--data-guide-top, 150px) - 78px - var(--dock-h, 0px)));
  min-height: 46px;
  overflow: hidden;
  border: 1px solid rgba(47,214,166,.28);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
}
#data-guide summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1px 8px;
  min-height: 46px;
  padding: 8px 34px 8px 11px;
  cursor: pointer;
  list-style: none;
}
#data-guide summary::-webkit-details-marker { display: none; }
#data-guide summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font: 16px var(--mono);
}
#data-guide[open] summary::after { content: "−"; }
.data-guide__eyebrow {
  grid-column: 1 / -1;
  color: var(--accent);
  font: 11px var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
#dg-title {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-guide__type {
  align-self: center;
  color: #b9cce0;
  font: 11px var(--mono);
  letter-spacing: .08em;
  white-space: nowrap;
}
.data-guide__body {
  max-height: min(334px, calc(100dvh - var(--data-guide-top, 150px) - 126px));
  overflow-y: auto;
  padding: 0 11px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  scrollbar-width: thin;
}
.data-guide__lead {
  margin: 9px 0 10px;
  color: #d7e4f2;
  font-size: 11px;
  line-height: 1.45;
}
.data-guide__facts { margin: 0; }
.data-guide__facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.data-guide__facts dt {
  color: var(--dim);
  font: 11px/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.data-guide__facts dd {
  margin: 0;
  color: #d7e4f2;
  font-size: 11.5px;
  line-height: 1.45;
}
.data-guide__body section { margin-top: 11px; }
.data-guide__body h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font: 11px var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.data-guide__body p { margin: 0; color: #bdcde0; font-size: 11.5px; line-height: 1.5; }
.data-guide__caution {
  padding: 8px;
  border-left: 2px solid var(--warn);
  background: rgba(255,201,77,.06);
}
.data-guide__caution h3 { color: var(--warn); }
#dg-reference {
  display: inline-block;
  margin-top: 11px;
  color: var(--accent);
  font: 11px var(--mono);
}
#fire-status {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 7px;
  border: 1px solid rgba(255, 176, 46, 0.55);
  border-radius: 4px;
  background: rgba(7, 20, 38, 0.82);
  color: #ffd37a;
  font: 11.5px/1.4 var(--mono);
  letter-spacing: 0.01em;
}
#fire-status[hidden] { display: none; }
#fire-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin-top: 5px;
  color: rgba(220, 232, 244, 0.88);
  font-size: 11px;
}
#fire-legend[hidden] { display: none; }
#fire-legend span { display: inline-flex; align-items: center; gap: 4px; }
.firms-ci {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.55);
}
.ci-low { background: #ffd166; }
.ci-medium { background: #ff922b; }
.ci-high { background: #ff3b30; }
#fire-legend .firms-neighbor-note { color: rgba(164, 187, 209, 0.76); }
#credit {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(147, 169, 192, 0.72);
  max-width: 340px;
  text-wrap: pretty;
}
#hit-counter { display: block; margin-top: 2px; font: 11px var(--mono); letter-spacing: .02em; color: rgba(147, 169, 192, 0.85); }
#credit a { color: rgba(47, 214, 166, 0.85); }
#credit a { pointer-events: auto; }
#credit .nb { white-space: nowrap; }

/* -------------------------------------------------------------- readout */

#readout {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 6;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  min-width: 208px;
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
#readout.is-on { opacity: 1; transform: none; }
.ro-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 0;
}
.ro-coord { color: var(--dim); font-size: 11px; }
.ro-coord #ro-time { color: var(--warn); }
.ro-k { color: var(--dim); }
.ro-row b { color: #fff; font-weight: 600; }
#ro-main { color: var(--accent); }

/* --------------------------------------------------------------- legend */

/* Dock kiri-bawah: ringkasan data di atas, legenda di bawah; tidak pernah saling menimpa. */
#map-dock {
  position: fixed;
  left: 14px;
  bottom: 66px;
  z-index: 6;
  width: min(300px, calc(100vw - 92px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
#map-dock > * { pointer-events: auto; }
#legend {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px 10px;
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
}
#legend[hidden] { display: none; }
.lg-title { font-size: 11.5px; color: var(--dim); margin-bottom: 7px; }
.lg-title em { font-style: normal; color: #fff; font-family: var(--mono); margin-left: 5px; }
.lg-bar { height: 11px; border-radius: 2px; position: relative; overflow: hidden; display: flex; }
.lg-bar .lg-seg { flex: 1; display: inline-block; }
.lg-scale { position: relative; height: 15px; margin-top: 4px; }
.lg-tick {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
}
.lg-tick:first-child { transform: translateX(0); }
.lg-tick:last-child { transform: translateX(-100%); }

#water-summary, #climate-summary, #chl-climate-summary, #bgc-summary {
  padding: 10px 12px;
  border: 1px solid rgba(47,214,166,.28);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}
#water-summary[hidden], #climate-summary[hidden], #chl-climate-summary[hidden], #bgc-summary[hidden] { display: none; }
.water-summary__kicker { display: block; color: var(--accent); font: 11px var(--mono); letter-spacing: .14em; }
#water-summary > strong, #climate-summary > strong, #chl-climate-summary > strong, #bgc-summary > strong { display: block; margin: 3px 0 6px; font: 600 18px var(--mono); }
#water-summary div, #climate-summary div, #chl-climate-summary div, #bgc-summary div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--dim); font: 11.5px var(--mono); }
#water-summary b, #climate-summary b, #chl-climate-summary b, #bgc-summary b { color: var(--fg); font-weight: 500; text-align: right; }
#water-summary small, #climate-summary small, #chl-climate-summary small, #bgc-summary small { display: block; margin-top: 5px; color: rgba(147,169,192,.78); font: 11px/1.35 var(--mono); }

/* ----------------------------------------------- hotspot dan kabut asap */

#fire-analysis {
  position: fixed;
  top: 150px;
  right: 14px;
  z-index: 6;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100dvh - 228px);
  overflow: hidden;
  color: var(--fg);
  background: rgba(5, 14, 30, .94);
  border: 1px solid rgba(255, 194, 82, .34);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
}
#fire-analysis[hidden], body.menu-open #fire-analysis, body.coastal-change-open #fire-analysis { display: none; }
#fire-analysis summary {
  min-height: 48px;
  padding: 8px 48px 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
#fire-analysis summary::-webkit-details-marker { display: none; }
#fire-analysis summary span { min-width: 0; display: grid; gap: 2px; }
#fire-analysis summary small { color: #ffc252; font: 11px var(--mono); letter-spacing: .13em; }
#fire-analysis summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1.25 var(--mono); }
#fa-status {
  flex: none;
  padding: 4px 6px;
  border: 1px solid rgba(147,169,192,.35);
  border-radius: 4px;
  color: var(--dim);
  font: 11px var(--mono);
  letter-spacing: .08em;
}
#fa-status.is-watch { color: #ffc252; border-color: rgba(255,194,82,.6); }
#fa-status.is-alert { color: #ff8a74; border-color: rgba(255,91,72,.68); background: rgba(255,91,72,.1); }
#fire-analysis-close {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,194,82,.42);
  border-radius: 50%;
  color: var(--fg);
  background: rgba(255,255,255,.06);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
#fire-analysis-close:hover, #fire-analysis-close:focus-visible { border-color: #ffc252; background: rgba(255,194,82,.13); }
.fire-analysis__body {
  max-height: calc(100dvh - 276px);
  padding: 0 11px 11px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.fire-analysis__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fire-analysis__metrics div { min-width: 0; padding: 8px 6px 8px 0; }
.fire-analysis__metrics div:nth-child(even) { padding-left: 9px; border-left: 1px solid var(--line); }
.fire-analysis__metrics span { display: block; color: var(--dim); font: 11px/1.3 var(--mono); }
.fire-analysis__metrics strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px var(--mono); }
.fire-analysis__body section { padding: 9px 0; border-bottom: 1px solid var(--line); }
.fire-analysis__body h3 { margin: 0 0 5px; color: #59d7b0; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.fire-analysis__alert > strong { display: block; color: var(--fg); font: 600 12px/1.35 var(--mono); }
.fire-analysis__alert p { margin: 3px 0 0; color: var(--dim); font: 11px/1.45 var(--mono); }
.fire-analysis__alert.is-alert > strong { color: #ff8a74; }
.fire-analysis__chart header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fire-analysis__chart header b { font: 600 11px var(--mono); }
.fire-analysis__chart svg { display: block; width: 100%; height: 82px; margin-top: 2px; overflow: visible; }
.fire-analysis__chart line { stroke: rgba(147,169,192,.32); stroke-width: .8; }
.fire-analysis__chart path { fill: none; stroke: #ffc252; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.fire-analysis__chart text { fill: var(--dim); font: 11px var(--mono); }
.fire-analysis__chart small { color: var(--dim); font: 11px/1.3 var(--mono); }
.fire-analysis__rank { margin: 0; padding: 0; list-style: none; }
.fire-analysis__rank li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 3px 0; color: var(--dim); font: 11px/1.3 var(--mono); }
.fire-analysis__rank b { color: var(--fg); font-weight: 500; text-align: right; }
.fire-analysis__distance { margin: 0; padding: 7px 0; }
.fire-analysis__distance div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 10px; padding: 3px 0; font: 11px/1.35 var(--mono); }
.fire-analysis__distance dt { color: var(--dim); }
.fire-analysis__distance dd { margin: 0; text-align: right; }
.fire-analysis__quality { display: block; color: rgba(147,169,192,.78); font: 11px/1.4 var(--mono); }

/* ------------------------------------------ perubahan pesisir dan mangrove */

#coastal-change-panel {
  position: fixed;
  top: 62px;
  right: 14px;
  bottom: 66px;
  z-index: 12;
  width: min(560px, calc(100vw - 28px));
  padding: 12px;
  overflow-y: auto;
  color: var(--fg);
  border: 1px solid rgba(90, 230, 197, .34);
  border-radius: 8px;
  background: rgba(5, 14, 30, .96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
}
#coastal-change-panel[hidden] { display: none; }
.coastal-change__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.coastal-change__head span { color: var(--accent); font: 11px var(--mono); letter-spacing: .14em; }
.coastal-change__head h2 { margin: 2px 0 0; font-size: 17px; font-weight: 550; }
#coastal-change-close { width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; font-size: 20px; }
.coastal-change__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.coastal-change__tabs button { min-height: 38px; padding: 7px 10px; border: 0; background: rgba(255,255,255,.025); color: var(--dim); font: 600 12px var(--mono); cursor: pointer; }
.coastal-change__tabs button + button { border-left: 1px solid var(--line); }
.coastal-change__tabs button[aria-selected="true"] { color: #04101f; background: var(--accent); }
.coastal-change__tab-panel[hidden] { display: none; }
.coastal-change__period { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--dim); font: 11px var(--mono); }
.coastal-change__period strong { color: var(--fg); }
#cc-status { margin: 8px 0; color: #a9bbce; font: 11px/1.45 var(--mono); }
.coastal-change__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.coastal-change__metrics div { min-width: 0; padding: 8px 5px 8px 0; border-bottom: 1px solid var(--line); }
.coastal-change__metrics div:nth-child(even) { padding-left: 9px; border-left: 1px solid var(--line); }
.coastal-change__metrics span { display: block; color: var(--dim); font: 11px var(--mono); }
.coastal-change__metrics strong { display: block; margin-top: 3px; color: var(--fg); font: 600 13px var(--mono); }
.coastal-change__legend { display: flex; flex-wrap: wrap; gap: 8px 13px; padding: 9px 0 2px; color: var(--dim); font: 11px var(--mono); }
.coastal-change__legend span { display: inline-flex; align-items: center; gap: 5px; }
.coastal-change__legend i { width: 9px; height: 9px; border-radius: 2px; }
.coastal-change__legend .cc-loss { background: #ff5c5c; }
.coastal-change__legend .cc-gain { background: #36cfad; }
.coastal-change__legend .cc-stable { background: #2a825c; }
.coastal-change__legend .cc-erosion { background: #ff5c5c; }
.coastal-change__legend .cc-shore-stable { background: #ffd166; }
.coastal-change__legend .cc-accretion { background: #36cfad; }
#coastal-change-panel section { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
#coastal-change-panel h3 { margin: 0 0 5px; color: #7de4c5; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
#coastal-change-panel p { margin: 0; color: #c4d2df; font: 11px/1.5 var(--mono); }
#coastal-change-panel small { display: block; margin-top: 5px; color: #849ab0; font: 11px/1.45 var(--mono); }
#coastal-change-panel a { display: inline-block; margin-top: 6px; font: 11px var(--mono); }
.cc-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cc-filter-grid label { min-width: 0; color: var(--dim); font: 11px/1.35 var(--mono); }
.cc-filter-grid__wide { grid-column: 1 / -1; }
.cc-filter-grid input, .cc-filter-grid select { width: 100%; min-height: 34px; margin-top: 3px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); background: #0a192d; font: 11px var(--mono); }
.cc-filter-grid select:disabled { opacity: .55; cursor: not-allowed; }
.cc-filter-grid button, .cc-pagination button, .cc-table button { min-height: 34px; padding: 5px 9px; border: 1px solid rgba(47,214,166,.35); border-radius: 6px; color: #aef2dc; background: rgba(47,214,166,.08); font: 11px var(--mono); cursor: pointer; }
.cc-filter-grid > button { align-self: end; }
.cc-filter-grid button:hover, .cc-pagination button:hover, .cc-table button:hover { background: rgba(47,214,166,.17); }
.cc-filter-grid button:disabled, .cc-pagination button:disabled { opacity: .42; cursor: default; }
.cc-chart-card header, .cc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cc-chart-card header span, .cc-section-head span { color: var(--dim); font: 10px var(--mono); text-align: right; }
.cc-chart-card canvas { display: block; width: 100%; height: auto; margin-top: 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(0,0,0,.12); }
.cc-empty, .cc-coverage-note { padding: 7px 8px; border-left: 2px solid var(--warn); background: rgba(255,201,77,.06); }
.cc-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.cc-table { width: 100%; border-collapse: collapse; color: #c4d2df; font: 10.5px/1.35 var(--mono); }
.cc-table th { color: var(--dim); text-align: left; font-weight: 500; white-space: nowrap; }
.cc-table th, .cc-table td { padding: 6px 7px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.cc-table tbody tr:last-child td { border-bottom: 0; }
.cc-table td:nth-last-child(-n+3), .cc-table th:nth-last-child(-n+3) { white-space: nowrap; }
.cc-table td[data-classification="erosion"], .cc-table td[data-status="loss"] { color: #ff8989; }
.cc-table td[data-classification="stable"] { color: #ffd166; }
.cc-table td[data-classification="accretion"], .cc-table td[data-status="gain"] { color: #62dfba; }
.cc-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 7px; color: var(--dim); font: 10.5px var(--mono); }
body.coastal-change-open #data-guide { display: none; }

/* --------------------------------------------------- analisis Rob mandiri */

#rob-panel {
  position: fixed;
  z-index: 16;
  top: 62px;
  right: 14px;
  bottom: 66px;
  width: min(390px, calc(100vw - 28px));
  overflow: auto;
  padding: 14px;
  color: var(--fg);
  background: rgba(5, 14, 30, .96);
  border: 1px solid rgba(73, 213, 174, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
#rob-panel[hidden], body.menu-open #rob-panel { display: none; }
.rob-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rob-panel__head span { color: var(--accent); font: 11px var(--mono); letter-spacing: .14em; }
.rob-panel__head h2 { margin: 2px 0 0; font-size: 17px; font-weight: 550; }
.rob-panel__actions { display: flex; gap: 6px; }
#rob-close, #rob-minimize { width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; font-size: 20px; }
#rob-panel.is-collapsed { bottom: auto; width: min(300px, calc(100vw - 28px)); overflow: hidden; }
#rob-panel.is-collapsed > :not(.rob-panel__head) { display: none; }
#rob-panel.is-collapsed #rob-minimize { color: var(--accent); }
#rob-status { margin: 10px 0; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #a9bbcc; font: 11px/1.45 var(--mono); }
#rob-status.is-error { color: #ff927f; }
.rob-controls { display: grid; gap: 5px; }
.rob-controls > label { display: grid; gap: 4px; color: var(--dim); font: 11px var(--mono); }
.rob-controls select { width: 100%; padding: 7px; color: var(--fg); background: #0a1b2e; border: 1px solid var(--line); border-radius: 5px; font: 11.5px var(--mono); }
.rob-control-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; color: var(--dim); font: 11px var(--mono); }
.rob-control-row output { color: var(--fg); }
.rob-controls input[type="range"] { width: 100%; accent-color: var(--accent); }
.rob-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }
.rob-switches label { padding: 6px; color: #bfd0df; background: rgba(255,255,255,.035); border-radius: 4px; font: 11px/1.35 var(--mono); }
.rob-slr { margin: 4px 0 0; color: var(--dim); font: 11px var(--mono); }
.rob-slr strong { color: #7de4c5; }
.rob-slr small { display: block; margin-top: 2px; color: rgba(147,169,192,.8); font: 11px/1.4 var(--mono); }
.rob-help { display: block; margin: 2px 0 6px; color: rgba(147,169,192,.8); font: 11px/1.4 var(--mono); }
.rob-note { margin: 6px 0 8px; color: #a9bbcc; font: 11px/1.5 var(--mono); }
.rob-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid var(--line); }
.rob-metrics div { min-width: 0; padding: 8px 5px 8px 0; border-bottom: 1px solid var(--line); }
.rob-metrics div:nth-child(even) { padding-left: 9px; border-left: 1px solid var(--line); }
.rob-metrics span { display: block; color: var(--dim); font: 11px var(--mono); }
.rob-metrics strong { display: block; margin-top: 3px; color: var(--fg); font: 600 11px/1.35 var(--mono); }
.rob-legend { margin-top: 9px; }
.rob-legend i { display: block; height: 8px; border-radius: 3px; background: linear-gradient(90deg, #d9f0ff, #9dd8f4, #61bbe8, #318fce, #1c68ad, #17427f, #351d67); }
.rob-legend span { display: flex; justify-content: space-between; margin-top: 3px; color: var(--dim); font: 11px var(--mono); }
.rob-legend b { font-weight: 400; }
.rob-reference-grid { display: grid; gap: 4px; }
.rob-reference-grid div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 7px; background: rgba(255,255,255,.035); border-radius: 4px; font: 11px/1.35 var(--mono); }
.rob-reference-grid span { color: var(--dim); }
.rob-reference-grid b { color: #8be6c9; font-weight: 500; text-align: right; }
.rob-reference-grid .is-exposed b { color: #ffb06c; }
.rob-district-chart { display: grid; gap: 5px; }
.rob-district-chart__row { display: grid; grid-template-columns: minmax(88px, 1.1fr) minmax(90px, 1.6fr) auto; align-items: center; gap: 7px; min-height: 18px; }
.rob-district-chart__name { overflow: hidden; color: #c4d2df; font: 11px/1.25 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.rob-district-chart__bar { height: 6px; background: linear-gradient(90deg, #58e1c0, #318fce); border-radius: 2px; transform-origin: left center; }
.rob-district-chart__value { min-width: 65px; color: var(--fg); font: 11px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.rob-district-chart__empty { margin: 0; color: var(--dim); font: 11px/1.4 var(--mono); }
#rob-panel section { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
#rob-panel h3 { margin: 0 0 5px; color: #7de4c5; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
#rob-panel p, #rob-panel li { margin-top: 0; color: #c4d2df; font: 11px/1.48 var(--mono); }
#rob-panel ol { margin: 5px 0 0; padding-left: 18px; }
#rob-panel small { display: block; margin-top: 5px; color: #849ab0; font: 11px/1.45 var(--mono); }

/* ----------------------------------------------------------------- menu */

#menu {
  position: fixed;
  right: 14px;
  top: 62px;
  bottom: 108px;
  z-index: 7;
  width: min(340px, calc(100vw - 28px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
  display: none;
  overflow-y: auto;
}
body.menu-open #menu { display: block; }

.mg { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
[data-mode-only][hidden] { display: none !important; }
.mg-k {
  flex: 0 0 66px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.mg-v { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
#ctl-overlay { display: grid; gap: 5px; }
.layer-group {
  width: 100%;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.layer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 5px 8px;
  color: #cfe0f1;
  font: 11.5px var(--mono);
  cursor: pointer;
  list-style: none;
}
.layer-group summary::-webkit-details-marker { display: none; }
.layer-group summary::before { content: "+"; width: 14px; color: var(--accent); }
.layer-group[open] summary::before { content: "-"; }
.layer-group summary > span:first-child { flex: 1; }
.layer-group__count { color: var(--dim); font-size: 11px; }
.layer-group__items { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 8px 8px 22px; }
.mg-v--slider { align-items: center; gap: 9px; }
.mg-v--slider input[type="range"] { flex: 1; min-width: 90px; accent-color: var(--accent); cursor: pointer; }
.mg-val { font-family: var(--mono); font-size: 11px; color: var(--fg); white-space: nowrap; }
.mg-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(147, 169, 192, 0.75);
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

#ctl-hotspot .btn[data-id="firms"] { position: relative; }
#ctl-hotspot .btn[data-id="firms"]::after {
  content: attr(data-hover-notice);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  padding: 6px 8px;
  border: 1px solid rgba(255,194,82,.5);
  border-radius: 4px;
  color: #ffd27d;
  background: rgba(5,14,30,.98);
  box-shadow: var(--shadow);
  font: 600 11px/1.2 var(--mono);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
#ctl-hotspot .btn[data-id="firms"]:hover::after,
#ctl-hotspot .btn[data-id="firms"]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { background: rgba(255, 255, 255, 0.15); }
.btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #04101f;
  font-weight: 700;
}

#btn-menu {
  position: fixed;
  right: 14px;
  bottom: 66px;
  z-index: 8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
body.menu-open #btn-menu { background: var(--accent); color: #04101f; border-color: var(--accent); }

/* ------------------------------------------------------------- timeline */

#timeline {
  position: fixed;
  left: 14px;
  right: 60px;
  bottom: 14px;
  z-index: 6;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
}
#timeline button {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
}
#timeline button:hover { background: rgba(255, 255, 255, 0.16); }
#btn-play { color: var(--accent); font-size: 11px; letter-spacing: -1px; }

/* -------------------------------------------------------- panel pesisir */

#coast-panel {
  position: fixed;
  inset: 12px 12px 64px auto;
  z-index: 18;
  width: min(760px, calc(100vw - 24px));
  padding: 16px;
  overflow: auto;
  color: var(--fg);
  background: rgba(5, 14, 30, 0.97);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
#coast-panel[hidden] { display: none; }
.coast-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.coast-head h2 { margin: 2px 0 0; font-size: 20px; font-weight: 550; }
.coast-kicker { color: var(--accent); font: 11.5px var(--mono); letter-spacing: .18em; }
#coast-close {
  width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); color: var(--fg); background: rgba(255,255,255,.07); font-size: 22px;
}
.coast-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-top: 16px; }
.coast-toolbar div { display: grid; gap: 4px; }
.coast-toolbar label { color: var(--dim); font-size: 11.5px; }
#coast-location, #coast-activity {
  width: 100%; min-width: 0; padding: 7px 10px; border-radius: 5px; border: 1px solid var(--line);
  background: #0b1b31; color: var(--fg); font: 12px var(--mono);
}
#coast-status { margin: 9px 0 4px; color: var(--dim); font: 11.5px var(--mono); }
.coast-freshness { margin: 2px 0 8px; color: #8ca5bd; font: 11px var(--mono); }
.coast-decision { display: flex; justify-content: space-between; gap: 16px; margin: 9px 0; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; background: rgba(255,255,255,.04); }
.coast-decision div { display: grid; gap: 2px; }
.coast-decision span { color: var(--dim); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.coast-decision strong { font-size: 15px; }
.coast-decision p { margin: 0; max-width: 55%; color: var(--dim); font: 11.5px/1.4 var(--mono); text-align: right; }
.coast-decision--low { border-left-color: #2fd6a6; }
.coast-decision--medium { border-left-color: #ffb347; }
.coast-decision--high { border-left-color: #ff667a; }
.coast-decision--unknown { border-left-color: #7890a8; }
.coast-safety-factors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: -3px 0 12px; }
.coast-safety-factor { display: grid; gap: 2px; min-width: 0; padding: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: rgba(255,255,255,.025); }
.coast-safety-factor span { overflow: hidden; color: var(--dim); font: 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.coast-safety-factor b { overflow: hidden; color: var(--fg); font: 11.5px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.coast-safety-factor small { color: #7890a8; font: 11px var(--mono); }
.coast-safety-factor--medium { border-color: rgba(255,179,71,.45); }
.coast-safety-factor--medium small { color: #ffbd61; }
.coast-safety-factor--high { border-color: rgba(255,102,122,.55); }
.coast-safety-factor--high small { color: #ff7d8f; }
.coast-safety-factor--low small { color: #67dfbd; }
.coast-validation { margin: 9px 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(7,20,38,.58); }
.coast-validation header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.coast-validation h3 { margin: 0; color: var(--fg); font-size: 11px; }
#coast-validation-badge { padding: 3px 7px; border: 1px solid #526a80; border-radius: 999px; color: var(--dim); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
#coast-validation-badge.is-collecting { border-color: rgba(47,214,166,.55); color: #77e8c7; }
.coast-validation-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.coast-validation-grid article { display: grid; gap: 3px; min-width: 0; padding: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: rgba(255,255,255,.035); }
.coast-validation-grid b { color: var(--accent); font: 11px var(--mono); }
.coast-validation-grid strong { color: var(--fg); font-size: 11.5px; }
.coast-validation-grid span { color: var(--dim); font: 11px/1.35 var(--mono); }
#coast-validation-note { margin: 8px 0 0; color: var(--dim); font: 11px/1.45 var(--mono); }
.coast-harmonic { margin: 9px 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(7,20,38,.58); }
.coast-harmonic header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.coast-harmonic h3 { margin: 0; color: var(--fg); font-size: 11px; }
#coast-harmonic-badge { padding: 3px 7px; border: 1px solid #526a80; border-radius: 999px; color: var(--dim); font: 11px var(--mono); text-transform: uppercase; }
#coast-harmonic-badge.is-ready { border-color: rgba(47,214,166,.55); color: #77e8c7; }
#coast-harmonic-content p, #coast-harmonic-note { margin: 5px 0 0; color: var(--dim); font: 11px/1.45 var(--mono); }
.coast-constituents { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.coast-constituents article { padding: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; color: var(--fg); font: 11px/1.4 var(--mono); }
#coast-residual-chart svg { display: block; width: 100%; margin-top: 8px; color: var(--dim); font: 11px var(--mono); }
.coast-residual-line { fill: none; stroke: #ffb347; stroke-width: 1.5; }
.coast-residual-threshold { stroke: #ff667a; stroke-width: 1; stroke-dasharray: 4 3; }
.coast-axis-note { margin: 7px 0 3px; color: var(--fg); font: 11.5px/1.55 var(--mono); }
.coast-axis-note b { color: var(--accent); }
.coast-chart-key { display: flex; gap: 16px; margin: 8px 0 0; font-size: 11.5px; }
.coast-chart-key span::before { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 6px 3px 0; }
.key-tide::before { background: #2fd6a6; }
.key-tide-point::before { width: 5px !important; height: 5px !important; margin-left: 6px !important; border-radius: 50%; background: #dffcf3; }
.key-copernicus::before { background: #58a6ff; }
.key-big::before { background: #d08cff; }
.key-wave::before { background: #ffb347; }
#coast-chart { min-height: 160px; margin-top: 2px; }
#coast-chart svg { display: block; width: 100%; height: auto; color: var(--dim); font: 11.5px var(--mono); }
.coast-grid { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.coast-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.coast-line--tide { stroke: #2fd6a6; }
.coast-line--wave { stroke: #ffb347; }
.coast-line--copernicus { stroke: #58a6ff; stroke-dasharray: 5 3; }
.coast-line--big { stroke: #d08cff; stroke-dasharray: 2 3; }
.coast-point--tide { fill: #dffcf3; stroke: #0b1b31; stroke-width: 0.8; }
.coast-axis-title { fill: var(--fg); font-size: 11.5px; font-weight: 600; }
.coast-time-cursor { stroke: rgba(255,255,255,.72); stroke-width: 1; stroke-dasharray: 3 3; }
.coast-time-point { fill: var(--accent); stroke: #071426; stroke-width: 1.5; }
.coast-metrics { margin: 4px 0 12px; }
.coast-metrics h3 { margin: 0 0 6px; color: var(--fg); font-size: 11px; }
.coast-metrics p { margin: 6px 0 0; color: var(--dim); font: 11px/1.45 var(--mono); }
.coast-metrics table { width: 100%; border-collapse: collapse; font: 11.5px var(--mono); }
.coast-metrics th, .coast-metrics td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; text-align: left; }
.coast-metrics th { background: #0b1b31; color: var(--dim); }
.coast-extreme-section { margin: 0 0 12px; }
.coast-extreme-section h3 { margin: 0 0 6px; color: var(--fg); font-size: 11px; }
.coast-extremes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.coast-extremes article { display: grid; gap: 3px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.035); }
.coast-extremes b { color: var(--fg); font-size: 11.5px; }
.coast-extremes span { overflow: hidden; color: var(--dim); font: 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.coast-table-wrap { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
#coast-table { width: 100%; border-collapse: collapse; font: 11.5px var(--mono); }
#coast-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#coast-table th { position: sticky; top: 0; z-index: 1; background: #0b1b31; color: var(--dim); text-align: left; }
#coast-table th, #coast-table td { padding: 7px 9px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
#coast-table tbody tr:hover { background: rgba(47,214,166,.07); }
.coast-source-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }
.coast-source-note h3 { margin: 0 0 6px; color: var(--fg); font-size: 11px; }
.coast-source-note p { margin: 4px 0; }
.coast-source-note b { color: #cfe0f1; }

#scrub {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 24px;
  background: transparent;
  outline: none;
  cursor: pointer;
}
#scrub::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
#scrub::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
#scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #04101f;
  cursor: grab;
}
#scrub::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #04101f;
  cursor: grab;
}

/* Tombol tutup/ciutkan panel: satu bentuk untuk semua panel */
.panel-actions { display: flex; gap: 6px; flex: none; }
#coast-panel.is-collapsed, #coastal-change-panel.is-collapsed { bottom: auto; width: min(300px, calc(100vw - 28px)); overflow: hidden; }
#coast-panel.is-collapsed { inset: 12px 12px auto auto; }
#coast-panel.is-collapsed > :not(.coast-head),
#coastal-change-panel.is-collapsed > :not(.coastal-change__head) { display: none; }
#fire-analysis-close, #coastal-change-close, #rob-close, #rob-minimize, #coast-close, .panel-minimize {
  width: 34px; height: 34px; flex: none; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--fg); background: rgba(255,255,255,.06);
  font-size: 20px; line-height: 1; cursor: pointer;
}
#fire-analysis-close:hover, #coastal-change-close:hover, #rob-close:hover, #rob-minimize:hover, #coast-close:hover, .panel-minimize:hover,
#fire-analysis-close:focus-visible, #coastal-change-close:focus-visible, #rob-close:focus-visible, #rob-minimize:focus-visible, #coast-close:focus-visible, .panel-minimize:focus-visible {
  border-color: var(--accent); background: rgba(47,214,166,.14);
}
@media (pointer: coarse) {
  #fire-analysis-close, #coastal-change-close, #rob-close, #rob-minimize, #coast-close, .panel-minimize { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------ responsif */

@media (max-width: 1023px) {
  #search {
    left: auto;
    right: 14px;
    top: auto;
    bottom: 152px;
    transform: none;
    width: min(240px, calc(100vw - 92px));
  }
  body.menu-open #search { display: none; }
}

@media (max-width: 720px) {
  /* header ringkas: deskripsi lapisan sudah ada di panel "Data aktif" */
  #topbar { max-width: calc(100vw - 150px); }
  #topbar .line { flex-wrap: wrap; gap: 4px 8px; }
  #desc, #data-time:not(.is-held) { display: none; }
  #search { top: 162px; bottom: auto; left: 14px; right: 14px; width: auto; }
  .brand-name { font-size: 15px; letter-spacing: 0.14em; }
  .brand-logo { width: 26px; height: 26px; }
  /* atribusi OSM (ODbL) wajib terlihat; sumber lain ada di panel Data aktif */
  #credit { font-size: 10.5px; margin-top: 4px; }
  #credit .credit-full, #credit-fire { display: none; }
  #readout { min-width: 168px; padding: 7px 9px; }
  .ro-row { font-size: 11px; gap: 9px; }
  #map-dock { bottom: 62px; width: min(230px, calc(100vw - 92px)); }
  #menu { top: 62px; bottom: 104px; }
  #timeline { right: 56px; gap: 5px; padding: 0 8px; }
  #coast-panel { inset: 8px 8px 62px; width: auto; padding: 13px; }
  .coast-head h2 { font-size: 17px; }
  .coast-toolbar { grid-template-columns: 1fr; gap: 6px; }
  #coast-location, #coast-activity { width: 100%; }
  .coast-decision { align-items: flex-start; flex-direction: column; gap: 7px; }
  .coast-decision p { max-width: none; text-align: left; }
  .coast-validation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coast-safety-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coast-constituents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coast-chart-key { flex-wrap: wrap; gap: 7px 12px; }
  .coast-extremes { grid-template-columns: 1fr; }
  #maptools { right: 8px; top: 8px; }
  #data-guide {
    left: 8px;
    top: auto;
    bottom: 116px;
    width: min(360px, calc(100vw - 72px));
    max-height: min(50dvh, 390px);
  }
  body.has-fire-analysis #data-guide { bottom: 168px; }
  #fire-analysis {
    top: auto;
    right: 8px;
    bottom: 116px;
    width: min(380px, calc(100vw - 16px));
    max-height: min(56dvh, 430px);
  }
  .fire-analysis__body { max-height: calc(min(56dvh, 430px) - 48px); }
  .data-guide__body { max-height: calc(min(50dvh, 390px) - 48px); }
  .menu-notice { margin-left: 0; }
  #coastal-change-panel, #rob-panel { inset: 62px 8px 66px; width: auto; }
}

@media (max-width: 460px) {
  #readout { top: auto; bottom: 116px; right: 14px; }
  #legend { display: none; }
  #map-dock { left: 8px; bottom: 172px; width: min(220px, calc(100vw - 72px)); }
}

@media (pointer: coarse) {
  #maptools button,
  #btn-menu { width: 44px; height: 44px; }
  #timeline { height: 50px; }
  #timeline button { width: 38px; height: 38px; }
  .btn { min-height: 36px; padding-inline: 11px; }
  #search-input { min-height: 44px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  #credit, #desc, #data-time { display: none; }
  #data-guide { top: 70px; bottom: 76px; max-height: none; }
  .data-guide__body { max-height: calc(100dvh - 194px); }
  #search { bottom: 76px; }
  #menu { top: 62px; bottom: 76px; max-height: none; }
  #btn-menu { bottom: 14px; }
  #fire-analysis { top: 62px; bottom: 76px; max-height: none; }
  .fire-analysis__body { max-height: calc(100dvh - 186px); }
  #rob-panel { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #maptools,
  #data-guide,
  #fire-analysis,
  #coastal-change-panel,
  #rob-panel,
  #search-input,
  #search-results,
  #readout,
  #legend,
  #menu,
  #timeline { background: var(--panel-solid); }
}

/* Sebaran mangrove menurut tahun */
.cc-extent { padding: 9px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.cc-extent__modes { display: flex; gap: 4px; }
.cc-extent__modes button { flex: 1; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--dim); font: 11px var(--mono); cursor: pointer; }
.cc-extent__modes button[aria-pressed="true"] { border-color: #36cfad; color: var(--fg); background: rgba(54,207,173,.12); }
.cc-extent__modes button:focus-visible, .cc-extent__year button:focus-visible, #cc-extent-slider:focus-visible { outline: 2px solid #ffc252; outline-offset: 2px; }
.cc-extent__year { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.cc-extent__year[hidden], .cc-extent__legend[hidden], .cc-extent__base[hidden] { display: none; }
.cc-extent__year button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; font-size: 12px; }
.cc-extent__year input[type="range"] { width: 100%; accent-color: #36cfad; }
.cc-extent__year output { font: 600 13px var(--mono); text-align: right; }
.cc-extent__base { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--dim); font: 11px var(--mono); }
.cc-extent__legend { font: 10.5px var(--mono); color: var(--dim); padding-top: 14px; position: relative; }
.cc-extent__legend::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 4px; }
.cc-extent__legend--extent::before { background: linear-gradient(90deg, rgba(64,214,150,.18), rgba(64,214,150,.92)); }
.cc-extent__legend--diff::before { background: linear-gradient(90deg, rgba(255,92,92,.92), rgba(42,130,92,.22) 50%, rgba(54,207,173,.92)); }
@media (max-width: 720px) { .cc-extent__year { grid-template-columns: 44px minmax(0, 1fr) 44px; } .cc-extent__year button { width: 44px; height: 44px; } }

.cc-trend { padding: 9px 0; border-bottom: 1px solid var(--line); }
.cc-trend canvas { cursor: pointer; }
.cc-trend__readout { margin: 6px 0 0; color: var(--fg); font: 11px/1.45 var(--mono); }

/* Tabel sebaran sel dengan penggulung sendiri */
.cc-table-wrap--scroll { max-height: 264px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cc-table-wrap--scroll thead th { position: sticky; top: 0; z-index: 1; background: #0f1b2a; box-shadow: 0 1px 0 rgba(255,255,255,.12); }
.cc-table-wrap--scroll:focus-visible { outline: 2px solid #ffc252; outline-offset: 1px; }

/* Prioritas rehabilitasi */
.cc-priority { display: grid; gap: 8px; }
.cc-priority__list { margin: 0; padding: 0; list-style: none; max-height: 300px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 6px; }
.cc-priority__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.08); font: 10.5px/1.35 var(--mono); color: #c4d2df; }
.cc-priority__list li:last-child { border-bottom: 0; }
.cc-priority__list li.is-focus { background: rgba(255,209,102,.1); }
.cc-priority__list .cc-rank { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #ffd166; color: #111; font-weight: 700; }
.cc-priority__list .cc-meta { min-width: 0; }
.cc-priority__list .cc-meta b { display: block; color: var(--fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-priority__list .cc-meta span { color: var(--dim); }
.cc-priority__list button, .cc-priority__trail button { min-height: 32px; padding: 4px 9px; border: 1px solid rgba(47,214,166,.35); border-radius: 6px; color: #aef2dc; background: rgba(47,214,166,.08); font: 11px var(--mono); cursor: pointer; }
.cc-priority__list button:hover, .cc-priority__trail button:hover { background: rgba(47,214,166,.17); }
.cc-priority__list button:focus-visible, .cc-priority__trail button:focus-visible { outline: 2px solid #ffc252; outline-offset: 2px; }
.cc-priority__list .cc-strip { grid-column: 2 / -1; }
.cc-priority__trail { padding: 8px; border: 1px solid rgba(255,209,102,.4); border-radius: 6px; background: rgba(255,209,102,.05); display: grid; gap: 6px; }
.cc-priority__trail[hidden] { display: none; }
.cc-priority__trail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 11px var(--mono); }
.cc-priority__text { margin: 0; color: var(--fg); font: 10.5px/1.45 var(--mono); }
.cc-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; height: 12px; }
.cc-strip i { display: block; background: rgba(255,255,255,.1); border-radius: 1px; }
.cc-strip i.on { background: #ff8a5c; }
.cc-priority__list .cc-strip { height: 7px; }

.cc-priority__list li.cc-group { display: block; padding: 5px 8px; background: rgba(89,215,176,.1); color: #59d7b0; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; position: sticky; top: 0; z-index: 1; }
.cc-coverage { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: 11px var(--mono); color: var(--dim); }
.cc-coverage summary { cursor: pointer; color: var(--fg); }
.cc-coverage .cc-table-wrap { margin-top: 6px; }
.cc-coverage td[data-reason="no-mangrove"], .cc-coverage td[data-reason="no-patch"] { color: #93a9c0; }
.cc-coverage td[data-reason="no-asset"] { color: #ffd166; }

/* Tab Sebaran / Perubahan / Prioritas */
.cc-legend-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0 0; font: 10.5px var(--mono); color: var(--dim); }
.cc-legend-chips span { display: inline-flex; align-items: center; gap: 5px; }
.cc-legend-chips i { width: 10px; height: 10px; border-radius: 2px; }
.cc-chart-card canvas { cursor: pointer; }
.cc-param { width: 100%; border-collapse: collapse; font: 10.5px/1.4 var(--mono); }
.cc-param td { padding: 3px 0; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.07); }
.cc-param td:first-child { color: var(--dim); padding-right: 8px; width: 46%; }
.cc-param td:last-child { color: var(--fg); text-align: right; overflow-wrap: anywhere; }
.cc-components { display: grid; gap: 4px; }
.cc-components div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 34px; gap: 6px; align-items: center; font: 10px var(--mono); color: var(--dim); }
.cc-components i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.cc-components i b { position: absolute; inset: 0 auto 0 0; background: #59d7b0; border-radius: 3px; }
.cc-components span:last-child { text-align: right; color: var(--fg); }
.cc-priority__list li .cc-meta .cc-sub { display: block; }
.cc-badge { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); font: 600 9.5px var(--mono); color: var(--dim); }
.cc-badge.is-stable { color: #7de4c5; border-color: rgba(125,228,197,.5); }
.cc-badge.is-unstable { color: #ffd166; border-color: rgba(255,209,102,.5); }

/* Sub-tab di dalam tab Mangrove */
.coastal-change__subtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.coastal-change__subtabs button { min-height: 34px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--dim); font: 600 11px var(--mono); cursor: pointer; }
.coastal-change__subtabs button[aria-selected="true"] { color: var(--fg); border-color: #36cfad; background: rgba(54,207,173,.14); }
.coastal-change__subtabs button:focus-visible { outline: 2px solid #ffc252; outline-offset: 2px; }
.cc-check { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--fg); }
.cc-check input { accent-color: #36cfad; width: 16px; height: 16px; }
.coastal-change__legend .cc-rank-dot { background: #ffd166; border-radius: 50%; }

/* Pasut harmonik dan gelombang model */
.key-wave-om::before { background: #ffd166; }
.key-wave-ww3::before { background: #ff7b72; }
.coast-line--wave-model { stroke-dasharray: 4 3; stroke-width: 1.4; fill: none; }
.coast-line--wave-openmeteo { stroke: #ffd166; }
.coast-line--wave-ww3 { stroke: #ff7b72; }
.coast-provider { margin: 8px 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.coast-provider h4 { margin: 0 0 4px; font: 600 12px var(--mono); color: #7de4c5; }
.coast-provider p { margin: 0 0 6px; font: 11px/1.45 var(--mono); color: var(--dim); }
.coast-sources { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.coast-sources li { display: grid; gap: 1px; font: 11px/1.4 var(--mono); padding: 5px 8px; border-left: 3px solid #4b5563; background: rgba(255,255,255,.03); }
.coast-sources li.is-on { border-left-color: #2fd6a6; }
.coast-sources li.is-off { color: var(--dim); }
.coast-sources b { color: var(--fg); font-weight: 600; }
.port-marker.is-model-tide .port-marker__dot { outline: 1.5px dashed rgba(255,255,255,.7); outline-offset: 1px; }
.coast-line--wave-copernicus { stroke: #7ee787; }
.key-wave-cop::before { background: #7ee787; }
