* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { display: flex; height: 100vh; }
#map { flex: 1; background: #0b1020; cursor: crosshair; }
#sidebar { width: 330px; overflow-y: auto; padding: 10px 12px; background: #14181f; color: #dde3ea; }
h1 { font-size: 16px; margin: 2px 0 10px; color: #7ecbff; }
.box { background: #1c222b; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.ro { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.ro b { font-variant-numeric: tabular-nums; }
#ro-depth { color: #7ecbff; font-size: 14px; }
.row { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
button { background: #2a3442; color: #dde3ea; border: 1px solid #3a4656; border-radius: 6px;
  padding: 5px 10px; font-size: 12px; cursor: pointer; }
button:hover { background: #354256; }
button.primary { background: #1e5f8a; border-color: #2b7cb3; }
button.primary.active { background: #c04a2e; border-color: #e06a4e; }
#legs { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 6px; }
#legs th, #legs td { text-align: right; padding: 2px 4px; border-bottom: 1px solid #2a3442; }
#legs th:first-child, #legs td:first-child { text-align: left; }
#totals { font-size: 12px; padding: 4px 2px; color: #9fdcae; }
#profile { width: 100%; background: #10141b; border-radius: 6px; margin-top: 6px; }
#settings label { display: block; font-size: 12px; margin: 6px 0; }
#settings input[type=number] { width: 60px; background: #10141b; color: #dde3ea;
  border: 1px solid #3a4656; border-radius: 4px; padding: 2px 4px; }
#settings select { background: #10141b; color: #dde3ea; border: 1px solid #3a4656;
  border-radius: 4px; padding: 2px 4px; max-width: 190px; }
#settings small { color: #8a94a3; display: block; margin-left: 2px; }
#settings .chk input[type=range] { width: 100px; vertical-align: middle; }
.foot { font-size: 10.5px; color: #78828f; line-height: 1.4; }
#share-msg { font-size: 11px; color: #9fdcae; }
.leg-tip { background: rgba(16,20,27,.88); border: none; color: #eaf1f8; font-size: 11px;
  border-radius: 5px; box-shadow: none; padding: 3px 6px; }
.leg-tip::before { display: none; }
.wp-icon { background: #ffd23e; border: 2px solid #10141b; border-radius: 50%; }
.wp-icon.wp0 { background: #6cf06c; }
.scalebar { background: rgba(16,20,27,.75); color: #eaf1f8; font-size: 11px; padding: 3px 8px;
  border-radius: 4px; border-bottom: 3px solid #7ecbff; text-align: center; }
.site-icon { background: #ffd23e; border: 1.5px solid #10141b; border-radius: 50%; opacity: .95; }
/* ---- dive log overlay ---- teal, deliberately unlike every dive-site pin so
   a GPS fix is never read as a site. */
.dl-cluster { background: rgba(57,208,200,.20); border: 2px solid #39d0c8;
  border-radius: 50%; color: #d6fbf8; font: 600 11px/1 sans-serif;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dl-cluster:hover { background: rgba(57,208,200,.34); }
.dl-tip { background: rgba(16,20,27,.86); border: none; color: #a9f0ea;
  font-size: 10.5px; }
.dl-tip::before { display: none; }
.dl-heat { position: absolute; pointer-events: none; }
.dl-pop b { color: #9df0ea; }
.dl-pop .dl-when { color: #8a94a3; font-size: 11px; margin: 2px 0 5px; }
.dl-pop table { border-collapse: collapse; font-size: 11.5px; }
.dl-pop td { padding: 1px 8px 1px 0; }
.dl-pop td:first-child { color: #8a94a3; }
.dl-pop td span { color: #6f7a88; }
.dl-pop .dl-note { margin-top: 6px; max-width: 230px; color: #7f8a98;
  font-size: 10px; line-height: 1.35; }
#divelogbox select { font-size: 12px; }

/* This vendored Leaflet has no images/ dir (the Lobos build used only divIcons
   and had no layer control), so draw the layers toggle with a glyph instead of
   pulling in binary assets just for one button. */
.leaflet-control-layers-toggle { background-image: none !important;
  width: 30px; height: 30px; }
.leaflet-control-layers-toggle::before { content: "\2261"; display: block;
  text-align: center; line-height: 30px; font-size: 18px; color: #10141b; }

/* Hollow = published third-party position, not hand-verified. Must stay
   visually distinct from the checked pins so the two are never confused. */
.site-icon.site-approx { background: transparent; border-color: #ff9c5b; border-width: 2px; }
.site-icon.site-unk { background: #9aa5b3; }
/* Shore entry: the published coordinate sits on the beach, not in the water. */
.site-icon.site-shore { background: transparent; border-color: #7ecbff; border-width: 2px;
                        border-radius: 2px; }
.site-tip.site-tip-shore { color: #a8d8ff; }
.site-tip { background: rgba(16,20,27,.82); border: none; color: #ffe9a8; font-size: 10.5px;
  border-radius: 4px; box-shadow: none; padding: 2px 5px; }
.site-tip.site-tip-approx { color: #ffc9a3; }
.site-tip.site-tip-unk { color: #b9c2cd; }
.site-tip::before { display: none; }
#sites-hint { font-size: 11px; color: #c9a06a; line-height: 1.4; margin-top: 4px; }
#sites-msg { font-size: 11px; color: #9fdcae; }
.boxtitle { font-size: 13px; color: #7ecbff; flex: 1; }
#plan-out { font: 10.5px/1.5 ui-monospace, Menlo, monospace; color: #dde3ea; background: #10141b;
  border-radius: 6px; padding: 6px 8px; margin: 4px 0; white-space: pre; overflow-x: auto; }
#plan-msg { font-size: 11px; color: #9fdcae; }
#legs td input.stay, #legs td input.spd { width: 32px; background: #10141b; color: #dde3ea;
  border: 1px solid #3a4656; border-radius: 3px; padding: 1px 2px; font-size: 11px;
  text-align: right; -moz-appearance: textfield; }
#legs td input::-webkit-outer-spin-button, #legs td input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0; }
@media (max-width: 760px) {
  #app { flex-direction: column; }
  #sidebar { width: 100%; max-height: 45%; }
}

/* ---- BAUE merge review ---- */
#baue-tabs { gap: 3px; flex-wrap: wrap; }
#baue-tabs button { font-size: 10.5px; padding: 2px 6px; }
#baue-tabs button.active { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }
#baue-list { max-height: 320px; overflow-y: auto; margin: 4px 0; }
.baue-row { border-top: 1px solid #232b37; padding: 5px 2px; }
.baue-row-active { background: rgba(43,108,176,.15); }
.baue-pair b { color: #e8edf4; font-size: 12px; }
.baue-meta { color: #8a94a3; font-size: 10.5px; }
.baue-row select { width: 100%; font-size: 11px; margin-top: 3px; }
.baue-row input[type=text] { width: 100%; font-size: 11px; margin-top: 3px; }
.linkish { background: none; border: none; color: #7ecbff; cursor: pointer;
  font-size: 10.5px; padding: 0 0 0 4px; text-decoration: underline; }
.baue-tip { background: rgba(16,20,27,.86); border: none; color: #ffd9e2;
  font-size: 10.5px; }
.baue-tip::before { display: none; }
/* Boundary names ride the line as SVG textPath; the halo is what keeps them
   legible over satellite imagery without raising their contrast. */
.bnd-label { paint-order: stroke fill; stroke: rgba(8,12,18,.8); stroke-width: 2.6px;
  stroke-linejoin: round; letter-spacing: .09em; font-weight: 600;
  pointer-events: none; user-select: none; }
#bnd-note { color: #c9a06a; margin: 2px 0 4px; }
