:root {
  --bg: #0c100f;
  --panel: #141c19;
  --ink: #efe7d3;
  --muted: #9aa394;
  --gold: #e0b23a;
  --felt: #1e4a32;
  --line: #2a3832;
  --danger: #e07a5f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 "Segoe UI", system-ui, sans-serif; }
#map { position: absolute; inset: 0; }
.panel {
  position: absolute; z-index: 500; top: 12px; left: 12px;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: 0 12px 40px #0008;
}
.brand { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.tag { margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 10px 0 6px; }
input, select, button {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #0e1513; color: var(--ink); font: inherit;
}
button { cursor: pointer; background: var(--felt); border-color: #2f6b4a; font-weight: 600; }
button.ghost { background: transparent; }
.row { display: flex; gap: 8px; margin-top: 10px; }
.results, .watches { list-style: none; margin: 0; padding: 0; }
.results { border: 1px solid var(--line); border-radius: 8px; max-height: 180px; overflow: auto; background: #0e1513; }
.results li, .watches li { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.results li:hover { background: #1a2923; }
.watches li { cursor: default; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.watches button { width: auto; padding: 4px 8px; font-size: 12px; }
.status { margin: 12px 0 6px; font-size: 18px; font-weight: 650; }
.status.muted { color: var(--muted); font-size: 15px; font-weight: 500; }
.status.open, .status.open_exception { color: #8ee0a8; }
.status.underway_closed, .status.open_soon { color: var(--gold); }
.status.waiting_to_sail { color: #d6c48a; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0 0 8px; }
.stats dt { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.note, .hint, .ais { color: var(--muted); font-size: 12.5px; }
.ais { margin-top: 12px; }
.leaflet-container { background: #0a1210; font: inherit; }
@media (max-width: 640px) {
  .panel { width: calc(100vw - 16px); left: 8px; top: auto; bottom: 8px; max-height: 48vh; }
}
