:root {
  --ocean: #2F5D5B;
  --ocean-2: #3F7572;
  --foam: #E8F1EF;
  --card: #FFFCF7;
  --sand: #F4F1EA;
  --ink: #1C2423;
  --muted: #6E7773;
  --line: #E4DED3;
  --wave: #3E6F8A;
  --amber: #B07A3A;
  --coral: #C45C4A;
  --swell: #d7ebf6;
  --wind: #fde8cc;
  --sky: #fff;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav: 0px;
  --header: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--sand);
  color: var(--ink);
  min-height: 100dvh;
}
body.sheet-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--ocean); }
img, video { max-width: 100%; display: block; }

.top {
  position: sticky; top: 0; z-index: 7;
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: 14px;
  padding: calc(8px + var(--safe-t)) 16px 8px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; flex: none;
  font-weight: 800; font-size: 1rem; color: var(--ocean);
}
.brand img { width: 36px; height: 36px; border-radius: 12px; }
.profile-chip {
  flex: none; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; border: 2px solid var(--line); background: #fff;
  display: grid; place-items: center; overflow: hidden; color: var(--ocean);
}
.profile-chip.on { border-color: var(--ocean); box-shadow: 0 0 0 3px var(--foam); }
.profile-chip .avatar { width: 100%; height: 100%; font-size: .95rem; }
.profile-chip svg { width: 22px; height: 22px; }
.notice-bell {
  position: relative; flex: none; width: 42px; height: 42px; padding: 0; margin-left: auto;
  border-radius: 50%; border: 2px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--ocean); cursor: pointer;
}
.notice-bell svg { width: 22px; height: 22px; }
.notice-bell .notice-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--coral, #e57373); color: #fff;
  font-size: 9px; font-weight: 800; line-height: 16px; text-align: center;
}
.notice-inbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 16px;
  background: rgba(16, 32, 30, .35);
}
.notice-inbox-card {
  width: min(420px, 100%); max-height: min(70vh, 560px);
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border-radius: 20px; padding: 16px;
  box-shadow: 0 18px 40px rgba(23,48,46,.18);
}
.notice-inbox-card h2 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notice-trash {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px;
  background: var(--ocean); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.notice-trash svg, .notice-swipe-bg svg { width: 20px; height: 20px; }
.notice-inbox-list {
  overflow: auto; display: grid; gap: 6px; padding: 4px 0;
}
.notice-swipe {
  position: relative; overflow: hidden; border-radius: 12px; background: var(--ocean);
  --reveal: 0;
}
.notice-swipe-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 16px; color: #fff; opacity: var(--reveal);
}
.notice-swipe-bg svg { transform: scale(calc(0.65 + 0.35 * var(--reveal))); }
.notice-face {
  position: relative; display: grid; gap: 2px; text-align: left;
  padding: 12px; background: var(--foam); color: var(--ink); touch-action: pan-y;
}
.notice-face.seen {
  background: #fff;
  color: var(--muted);
}
.notice-face b { font-size: .92rem; font-weight: 700; color: inherit; }
.notice-face span { font-size: .84rem; color: inherit; opacity: .92; }
.notice-open {
  justify-self: start; margin-top: 4px; padding: 0; border: 0; background: transparent;
  color: var(--ocean); font-weight: 700; font-size: .9rem; cursor: pointer;
}
.notice-inbox-close {
  align-self: end; border: 0; background: transparent; color: var(--ocean);
  font-weight: 700; padding: 8px 4px; cursor: pointer;
}
.tagline { display: none; margin: 0; }
.account { order: 2; margin-left: auto; position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ocean);
  border-radius: 999px; min-height: 40px; padding: 0 12px; font-weight: 700;
}
.account-btn.on, .account-btn.active { background: var(--foam); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 12px 30px rgba(23,48,46,.12); padding: 6px;
  z-index: 8;
}
.account-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink);
  border-radius: 12px; padding: 10px 12px; font-weight: 650;
}
.account-menu button:hover { background: var(--foam); color: var(--ocean); }

main {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 16px 16px calc(var(--nav) + var(--safe-b) + 16px);
}
body.in-thread main {
  max-width: 720px;
  height: calc(100dvh - var(--header));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: 10px;
}
body.in-meteo { overflow: hidden; height: 100dvh; }
body.in-meteo main {
  width: min(1360px, calc(100% - 12px));
  margin-left: auto;
  margin-right: auto;
  height: calc(100dvh - var(--header));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 6px 8px 6px 0;
}
.meteo-shell { flex: 1; min-height: 0; display: flex; gap: 44px; align-items: stretch; }
.view-rail {
  width: 68px; flex: none; min-height: 0;
  display: flex; padding: 2px 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.view-rail .view-row { flex-direction: column; margin: 0; height: 100%; width: 100%; gap: 0; }
.view-rail .view-banner {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
  background: transparent; border: 0; border-radius: 0; padding: 0;
}
.view-rail .view-banner button {
  width: 100%; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 58px; padding: 6px 4px; border-radius: 16px;
  background: transparent; color: var(--muted); border: 0; font-size: .68rem; font-weight: 700;
}
.view-rail .view-banner button svg { width: 20px; height: 20px; flex: none; }
.view-rail .view-banner button.on { background: var(--ocean); color: #fff; }
.view-rail .view-personal {
  width: 100%; flex: none; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 62px; margin-top: 10px; padding: 8px 4px; border-radius: 16px;
  background: transparent; color: var(--ocean); border: 1.5px solid var(--ocean);
  font-size: .68rem; font-weight: 800;
}
.view-rail .view-personal svg { width: 20px; height: 20px; }
.view-rail .view-personal.on { background: var(--ocean); color: #fff; }
.now-rail { display: none !important; }
.now-card {
  background: linear-gradient(165deg, #1f4f4c, #2f6f6b 70%);
  color: #fff; border-radius: 18px; padding: 10px 10px 8px;
  display: grid; gap: 6px;
}
.now-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: .82rem; }
.sea-sketch { width: 100%; height: 220px; display: block; border-radius: 18px; margin: 0 0 10px; background: #7ec8e3; }
.sketch-stage {
  position: relative;
  touch-action: none; /* swipe jour (H) + heure (V) gérés en JS */
  width: 100%;
}
.sketch-slot {
  position: relative;
  width: 100%;
  height: min(62vh, 560px);
  min-height: 360px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: #7ec8e3; cursor: pointer;
}
.sketch-slot .sea-sketch {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%; margin: 0; border-radius: 0;
  display: block; background: transparent; z-index: 0;
}
.sketch-slot .sketch-overlay { z-index: 1; }
.sketch-score .qmark {
  width: 36px; height: 36px; font-size: 1.15rem; border-radius: 10px; margin: 0;
}
.sketch-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; padding: 10px 8px 12px; }
.sketch-top { display: grid; gap: 6px; }
.sketch-title-row { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.sketch-clock {
  flex: 1; min-width: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255,255,255,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sketch-score { flex: none; }
.sketch-chips { display: grid; grid-template-columns: 1.45fr 1fr 1.15fr; gap: 6px; align-items: stretch; }
.sketch-chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sketch-chip {
  pointer-events: auto; min-height: 96px; border-radius: 12px; padding: 8px 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(238,243,242,.58));
  border: 1px solid rgba(48,68,72,.4); color: #1d6f97; text-align: left;
  display: grid; align-content: start; gap: 2px; box-shadow: 0 2px 6px rgba(16,40,48,.16);
}
.sketch-chip-h { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--muted); font-size: .78rem; font-weight: 650; }
.sketch-chip .disc { width: 28px; height: 28px; }
.sketch-chip .val { font-size: 1.05rem; font-weight: 800; color: #1d6f97; line-height: 1.1; }
.sketch-chip .val .face { font-size: .86em; }
.sketch-chip.wind .val, .sketch-chip.wind em { color: #b86a1d; }
.sketch-chip .val small, .sketch-chip em { font-size: .72rem; font-style: normal; font-weight: 650; }
.sketch-chip.tide.tide-bar {
  min-height: 28px; height: 28px; margin-top: 0; padding: 2px 8px;
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  grid-template-columns: none;
}
.sketch-chip.tide .tide-label { color: #1d6f97; font-size: .74rem; font-weight: 750; white-space: nowrap; }
.sketch-chip.tide .tide-label b { font-size: .82rem; }
.sketch-chip .tide-line { font-size: .72rem; font-weight: 750; flex: 1; min-width: 0; }
.sketch-chip .tide-coef { font-size: .7rem; font-weight: 800; line-height: 1.1; white-space: nowrap; margin-left: auto; }
.day-stage.sketch-open {
  touch-action: none;
}
.meteo-scroll.sketch-mode {
  overflow: auto;
}
.meteo-scroll.sketch-mode .sketch-slot {
  height: min(62vh, 560px);
  min-height: 360px;
}
.now-when, .now-tide { margin: 0; font-size: .68rem; color: rgba(255,255,255,.86); }
.now-tide { font-weight: 750; }
.now-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.now-metric { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; min-width: 0; }
.now-metric small { font-size: .62rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.now-metric b { font-size: 1rem; line-height: 1.05; font-weight: 800; }
.now-metric span { font-size: .72rem; line-height: 1.15; color: rgba(255,255,255,.84); }
.now-metric .disc, .now-metric .disc.sky { width: 30px; height: 30px; }
.meteo-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.meteo-stack { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.phone-now, .now-spacer { display: none; }
.meteo-fixed { flex: none; }
.meteo-scroll { flex: 1; min-height: 0; overflow: auto; padding-bottom: 18px; }
.webcam-inline { margin: 0 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; touch-action: pan-y; }
.webcam-inline .webcam-stage { height: 220px; cursor: pointer; }
.webcam-swipe-hint { margin: 4px 0 8px; font-size: 12px; text-align: center; }
.sketch-visual-only { pointer-events: none; }
.sketch-visual-only .sketch-chip { pointer-events: auto; }
.profile-tabs {
  display: flex; gap: 6px; margin: 12px 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs button {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--card);
  border-radius: 12px; min-height: 40px; padding: 0 12px; font-weight: 750; color: var(--ink);
}
.profile-tabs button.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.cal-head { display: flex; align-items: center; gap: 8px; color: var(--ocean); font-weight: 800; }
.cal-head b { flex: 1; text-align: center; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.cal-grid span, .cal-grid button { min-height: 64px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .75rem; padding: 4px; text-align: left; }
.cal-grid .dow { min-height: 0; border: 0; background: transparent; text-align: center; color: var(--muted); font-weight: 700; }
.cal-grid button.has { box-shadow: inset 0 -3px 0 var(--ocean); }
.cal-grid button.today { background: var(--foam); color: var(--ocean); font-weight: 800; }
.tide-svg { width: 100%; height: auto; background: var(--foam); border-radius: 12px; }
.history-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.history-table th, .history-table td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dir-mark { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-weight: 750; vertical-align: middle; }
.dir-mark svg { display: block; }
.dir-mark b { font-size: .72rem; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.metric-chip { background: var(--foam); border-radius: 10px; padding: 6px 7px; min-width: 0; }
.metric-chip small { display: block; color: var(--muted); font-size: .66rem; }
.metric-chip b { display: block; font-size: .88rem; }
.metric-chip span { display: flex; align-items: center; color: var(--wave); font-size: .72rem; }
.spot-select { display: grid; gap: 4px; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.spot-select-row { display: flex; align-items: center; gap: 8px; }
.spot-select select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; color: var(--ink); font-weight: 650; }
.wave-choice { margin-top: 12px; }
.wave-choice-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: var(--foam); color: var(--ink); border-radius: 16px; padding: 12px 14px; text-align: left; }
.wave-choice-btn span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.wave-choice-btn b { font-size: .95rem; font-weight: 700; }
.wave-choice-btn b::after { content: " ▾"; color: var(--ocean); font-weight: 700; }
.wave-menu { display: grid; gap: 4px; margin-top: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; max-height: 280px; overflow: auto; }
.wave-opt { border: 0; background: color-mix(in srgb, var(--foam) 70%, white); color: var(--ink); border-radius: 12px; padding: 11px 12px; text-align: left; font-weight: 650; }
.wave-opt.on { background: var(--ocean); color: #fff; }
.history-wrap { max-height: 52vh; overflow: auto; }
body.in-board { overflow: hidden; height: 100dvh; }
body.in-board main {
  height: calc(100dvh - var(--header));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}

.tabs {
  flex: 1; min-width: 0; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; background: var(--foam); border-radius: 18px; padding: 4px;
}
.tabs button {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 6px 8px;
  border: 0; background: transparent; color: var(--ink);
  border-radius: 14px; font-size: .84rem; font-weight: 750; line-height: 1;
}
.tabs button span { line-height: 1.05; text-align: center; }
.tabs button small { display: none; }
.tabs button.active { color: #fff; background: var(--ocean); }
.tabs svg { display: block; width: 18px; height: 18px; flex: none; }

h1 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 1.15rem; }
.muted { color: var(--muted); }
.err { color: var(--coral); }
.ok { color: var(--ocean); }

.glyph { width: 22px; height: 22px; display: block; }
.disc {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px rgba(23,48,46,.06);
}
.disc.gauge { display: block; }
.disc.gauge svg, .disc.sky svg { width: 100%; height: 100%; display: block; }
.disc.gauge b, .disc.gauge small {
  position: absolute; left: 0; right: 0; text-align: center; color: var(--ink); pointer-events: none;
}
.disc.gauge b { bottom: 16px; font-size: .82rem; line-height: 1; background: rgba(255,255,255,.78); border-radius: 8px; padding: 1px 4px; width: max-content; margin: 0 auto; }
.disc.gauge small { bottom: 4px; font-size: .55rem; color: var(--muted); }
.disc.sky { background: transparent; box-shadow: none; }

.spot-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.spot-tools .place-box { flex: 1 1 auto; min-width: 0; }
.spot-place { margin-bottom: 8px; }
.spot-tools .search-row input { padding-top: 8px; padding-bottom: 8px; font-size: .92rem; }
.place-box { position: relative; }
.search-row { position: relative; display: flex; align-items: center; gap: 2px; }
.search-row input { flex: 1; min-width: 0; padding-right: 14px; }
.geo {
  position: static; transform: none; flex: none;
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ocean);
  display: grid; place-items: center; border-radius: 12px;
}
.geo svg { width: 22px; height: 22px; }
.geo.on { background: var(--ocean); color: #fff; }
.place-box input, .field, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 1rem;
}
.suggest-label {
  margin: 0; padding: 8px 14px 0; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
textarea { min-height: 84px; resize: vertical; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(23,48,46,.12); z-index: 4; overflow: hidden;
}
.suggest button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left;
  background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px;
}
.suggest-kind {
  flex: none; font-size: .68rem; font-weight: 750; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted); background: var(--foam);
  border-radius: 999px; padding: 3px 8px;
}

.toolbar { display: flex; gap: 8px; margin: 10px 0 14px; }
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 14px;
  text-decoration: none; font-weight: 650; font-size: .95rem; border: 0;
}
.btn { background: var(--ocean); color: #fff; }
.btn:disabled { opacity: .45; }
.btn-line, .btn-ghost { background: #fff; color: var(--ocean); border: 1px solid var(--line); }
.btn-line.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.btn-ghost { border: 0; background: transparent; min-height: 40px; }
.history-link { max-width: 58%; white-space: normal; text-align: right; line-height: 1.2; }
.history-pop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(23, 48, 46, .4);
}
.history-pop-panel {
  position: absolute; inset: 0; background: var(--sand);
  padding: calc(16px + var(--safe-t)) 16px calc(18px + var(--safe-b));
  overflow: auto; touch-action: pan-y;
}
.history-pop-panel h2 { margin: 0 0 12px; font-size: 1.25rem; }
.sheet.front { z-index: 80; }
.grow { flex: 1; }

.meteo-sticky {
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--sand); padding: 0 0 8px;
  position: sticky; top: 0; z-index: 4;
}
.view-row {
  display: flex; align-items: stretch; gap: 8px; margin: 0 0 10px;
}
.view-personal {
  width: 78px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 56px; padding: 8px 4px;
  border-radius: 16px; border: 1.5px solid var(--ocean); background: #fff;
  color: var(--ocean); font-size: .68rem; font-weight: 800;
}
.view-personal.on { background: var(--ocean); color: #fff; }
.view-personal svg { width: 18px; height: 18px; display: block; }
.map-types {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; margin: 8px 0 4px;
}
.map-types button {
  min-height: 36px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: .82rem; font-weight: 750;
}
.map-types button.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.map-when-head {
  display: flex; align-items: center; gap: 10px;
  color: var(--ocean); margin: 0 2px 8px;
}
.map-when-head b {
  font-weight: 800; font-size: 1.05rem; line-height: 1.2;
}
.tide-phase {
  --tide: .5;
  position: relative; flex: none;
  width: 18px; height: 18px;
  border: 1.6px solid var(--ocean);
  border-radius: 4px;
  overflow: hidden; background: #fff;
}
.tide-phase::after {
  content: "";
  position: absolute; left: 1.5px; right: 1.5px; bottom: 1.5px;
  top: calc((0.78 - var(--tide) * 0.52) * 100%);
  background: color-mix(in srgb, var(--ocean) 88%, #7ec8e3);
  border-radius: 2px;
}
.map-time-nav {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 0 2px;
}
.map-film {
  --film-h: 28px;
  position: relative;
  flex: 1; min-width: 0;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  touch-action: none;
}
.map-film-track {
  position: absolute; top: 0; height: 100%;
  display: flex; align-items: stretch;
  will-change: transform;
}
.map-film.animating .map-film-track {
  transition: transform .22s linear;
}
@media (prefers-reduced-motion: reduce) {
  .map-film.animating .map-film-track { transition: none; }
}
.map-film-day {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.map-film-day-lab {
  height: 20px; padding: 0 6px;
  border: 0; background: transparent;
  color: var(--muted); font-size: .68rem; font-weight: 750;
  text-align: left; white-space: nowrap;
}
.map-film-day-lab.on { color: var(--ocean); }
.map-film-hours { display: flex; flex: 1; }
.map-film-h {
  position: relative;
  width: var(--film-h); flex: none;
  border: 0; background: transparent;
  color: var(--muted); font-size: .62rem; font-weight: 750;
  padding-top: 4px; text-align: center;
  pointer-events: none;
}
.map-film-h::before {
  content: "";
  position: absolute; left: 50%; bottom: 8px;
  width: 1px; height: 7px;
  background: var(--line);
  transform: translateX(-50%);
}
.map-film-h.major::before {
  height: 13px;
  background: color-mix(in srgb, var(--ocean) 45%, var(--line));
}
.map-film-h.on::before {
  width: 2px; height: 16px; background: var(--ocean);
}
.map-film-h.on { color: var(--ocean); }
.map-film-head {
  position: absolute; left: 50%; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
  background: var(--ocean);
  transform: translateX(-50%);
  pointer-events: none; z-index: 2;
}
.map-film-head b {
  position: absolute; left: 50%; top: -2px;
  transform: translateX(-50%);
  min-width: max-content;
  padding: 1px 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--ocean); font-size: .75rem; font-weight: 800;
  white-space: nowrap;
}
.map-hour {
  min-width: 52px; text-align: center;
  color: var(--ocean); font-size: 1.05rem; font-weight: 800;
}
.meteo-scroll.fill-map .map-stage { display: flex; }
.meteo-scroll.fill-map .osm { flex: 1; height: auto; min-height: 0; }
.view-slider {
  position: relative; display: grid; grid-template-columns: repeat(5, 36px);
  height: 36px; padding: 3px; margin: 0; flex: none;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(23,48,46,.06);
}
.view-banner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: 1;
  width: auto;
  gap: 0;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  background: var(--foam);
  border: 1px solid var(--line);
  overflow: hidden;
}
.view-banner button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 56px; padding: 8px 4px;
  border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); font-size: .72rem; font-weight: 800; line-height: 1.15;
}
.view-banner button.on { background: var(--ocean); color: #fff; }
.view-banner svg { width: 18px; height: 18px; display: block; }
.spot-tools.personal-mode { justify-content: flex-end; }
.spot-tools.personal-mode .view-slider { margin-left: auto; }
.view-thumb {
  position: absolute; top: 3px; left: 3px; width: 36px; height: 30px;
  border-radius: 999px; background: var(--ocean);
  transition: transform .22s ease;
}
.view-slider button {
  position: relative; z-index: 1; width: 36px; height: 30px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
}
.view-slider button.on { color: #fff; }
.view-slider svg { width: 16px; height: 16px; display: block; margin: 0 auto; }
.daybar {
  align-self: stretch;
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 3px; box-shadow: none;
}
.daybar .days { margin: 0; }
.daybar .arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ocean); font-size: 1.4rem; line-height: 1; flex: none;
}
.days, .switch { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
html, body,
.meteo-scroll, .hscroll, .slot-wall, .sheet .panel, .history-wrap, .comment-list, .thread,
.popup-body, .overlay, .hview {
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.meteo-scroll::-webkit-scrollbar,
.hscroll::-webkit-scrollbar,
.slot-wall::-webkit-scrollbar,
.sheet .panel::-webkit-scrollbar,
.history-wrap::-webkit-scrollbar,
.comment-list::-webkit-scrollbar,
.thread::-webkit-scrollbar,
.popup-body::-webkit-scrollbar,
.overlay::-webkit-scrollbar,
.hview::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.days { margin: 0; flex: 1; }
.slot-wall { overflow: visible; padding-bottom: 8px; }
.slot { cursor: pointer; }
.switch button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 12px; white-space: nowrap; font-weight: 650;
}
.switch button.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.model-switch { margin: 0 0 12px; }
.model-switch .switch { max-width: 280px; margin-bottom: 6px; }
.model-switch .switch button { flex: 1; text-align: center; }
.daybar .days button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; border: 0; background: transparent; color: var(--muted);
  border-radius: 12px; padding: 4px 6px; font-weight: 700; line-height: 1.05;
}
.daybar .days button span { font-size: .68rem; text-transform: lowercase; letter-spacing: .03em; }
.daybar .days button small { display: block; font-weight: 750; font-size: .88rem; color: var(--ink); }
.daybar .days button.today:not(.on) { color: var(--ocean); }
.daybar .days button.today:not(.on) small { color: var(--ocean); }
.daybar .days button.on {
  background: linear-gradient(160deg, #1f4f4c, #2f6f6b);
  color: #fff; box-shadow: 0 8px 16px rgba(36,88,84,.28);
}
.daybar .days button.on small { color: #fff; }

.hero {
  background: linear-gradient(160deg, #1f4f4c, #2f6f6b 60%, #3d7f88);
  color: #fff; border-radius: 16px; padding: 10px 12px; margin-bottom: 8px;
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hero .sub { margin: 2px 0 0; color: rgba(255,255,255,.82); font-size: .85rem; }
.hero-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hero-row .disc { width: 36px; height: 36px; flex: none; }
.hero-row .disc b, .hero-row .disc small { display: none; }
.hero-main { flex: 1; min-width: 0; color: #fff; }
.hero-main b { font-size: 1.35rem; font-weight: 650; }
.hero-main span, .hero-main em { font-style: normal; opacity: .9; }
.hero-main.wind b { font-size: 1.05rem; font-weight: 650; }
.hero-main.wind span { display: block; font-size: .82rem; }
.hero-side, .hero-tide { color: rgba(255,255,255,.86); }
.hero-temp { font-size: 1rem; }
.hero-water { opacity: .86; font-size: .85rem; }
.hero-sky { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.hero-sky .glyph { width: 28px; height: 28px; margin: 0; }
.glance-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glance-sky { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(23,48,46,.08); }
.glance-sky .disc { width: 76px; height: 76px; box-shadow: none; }
.glance-sky svg, .glance-sky .glyph { width: 64px; height: 64px; margin: 0; }
.glance-quality { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.glance-quality small { font-size: .78rem; font-weight: 800; text-transform: capitalize; }
.day-summary .qmark { width: 52px; height: 52px; margin: 0; border-radius: 16px; font-size: 1.45rem; }
.glance-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.glance-tile { background: #fff; border-radius: 16px; padding: 10px; display: grid; gap: 2px; text-align: left; }
.glance-tile small { color: var(--muted); font-size: .72rem; }
.glance-tile b { color: var(--ink); font-size: 1.15rem; }
.glance-tile.swell b { color: #1d6f97; }
.glance-tile.wind b { color: #b86a1d; }
.glance-tile span { font-size: .82rem; font-weight: 700; }
.glance-tile em { display: flex; align-items: center; gap: 4px; font-style: normal; color: var(--ocean); font-weight: 700; font-size: .78rem; }
.glance-tile .disc { width: 26px; height: 26px; }
.glance-tile .disc b, .glance-tile .disc small { display: none; }
.glance-tides { display: grid; gap: 8px; }
.glance-tides .glance-coef {
  margin: 0; justify-self: start;
  background: var(--ocean); color: #fff;
  border-radius: 999px; padding: 5px 12px;
  font-size: .78rem; font-weight: 800;
}
.tide-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 6px; }
.day-tides .tide-times { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.tide-when {
  background: #fff; border-radius: 14px; padding: 8px 4px;
  display: grid; justify-items: center; gap: 1px; min-width: 0;
}
.tide-when small { color: var(--muted); font-size: .68rem; font-weight: 750; }
.tide-when b { color: var(--ink); font-size: .95rem; }
.tide-when.high b { color: var(--ocean); }
.tide-when.low b { color: #1d6f97; }
.icon-btn {
  width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent;
  color: var(--ocean); display: grid; place-items: center; flex: none; padding: 0; cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; display: block; }
.overlay-back { position: fixed; inset: 0; border: 0; background: transparent; z-index: 0; }
.chat-sheet {
  position: relative; z-index: 2; width: min(480px, 100%); margin: 12vh auto 0;
  background: #fff; border-radius: 20px; padding: 16px; display: grid; gap: 10px;
}
.chat-sheet header, .webcam-card header { display: flex; align-items: center; gap: 8px; }
.chat-sheet header b, .webcam-card header b { flex: 1; }
.member-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.webcam-card {
  position: relative; z-index: 2; width: min(720px, 100%); margin: 8vh auto 0;
  background: #fff; border-radius: 20px; padding: 12px;
}
.webcam-stage { height: min(52vh, 420px); background: #111; border-radius: 12px; overflow: hidden; margin-top: 8px; }
.webcam-stage .muted { color: #fff; padding: 16px; }
.webcam-stage img, .webcam-stage video, .webcam-stage iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.webcam-picks { display: flex; gap: 6px; overflow: auto; margin-top: 8px; }
.webcam-picks button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 10px; }
.webcam-picks button.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.webcam-layer.large { background: #000; padding: 0; }
.webcam-layer.large .webcam-card { width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; background: #000; color: #fff; }
.webcam-layer.large .webcam-stage { height: calc(100dvh - 72px); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  background: rgba(255,255,255,.12); border-radius: 16px; padding: 10px 8px;
  text-align: center;
}
.tile b { display: block; margin-top: 6px; font-size: 1.05rem; }
.tile span { display: block; font-size: .72rem; opacity: .85; }
.hero .disc { margin: 0 auto; }

.day-stage { touch-action: pan-y; }
.day-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 10px; gap: 10px; }
.webcam-link { border: 0; background: transparent; color: var(--ocean); font-weight: 650; padding: 4px 2px; cursor: pointer; }
.day-head > div { display: grid; gap: 2px; }
.day-toggle {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--sand); color: var(--ocean); font-size: 1.1rem; cursor: pointer;
}
.day-card {
  display: grid; gap: 10px; width: 100%; text-align: left; color: inherit;
  padding: 14px; border-radius: 20px; background: #e4f1ec;
  margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(47, 93, 91, .12);
}
.day-summary {
  display: grid; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit;
  padding: 0; border: 0; background: transparent; cursor: pointer; margin: 0;
}
.day-summary-top { display: flex; gap: 10px; align-items: center; }
.day-summary-top b { display: block; }
.day-summary-top small { color: var(--muted); }
.day-summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.day-summary-stats span {
  display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.day-summary-stats small { color: var(--muted); font-size: .72rem; }
.day-summary-stats b { font-size: .9rem; color: var(--ocean); }
.slot {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-left-width: 5px; border-radius: 14px;
  padding: 6px 8px; margin-bottom: 6px;
  box-shadow: 0 1px 0 rgba(23,48,46,.03);
}
.slot .qmark, .hcol .qmark { width: 26px; height: 26px; font-size: .9rem; border-radius: 8px; }
.slot .disc { width: 28px; height: 28px; }
.slot .block { padding: 4px 6px; gap: 6px; }
.slot .blocks { gap: 4px; }
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.block {
  display: flex; gap: 6px; align-items: center;
  background: var(--sand); border-radius: 12px; padding: 6px;
  min-width: 0;
}
.block > div { min-width: 0; }
.block strong { display: block; font-size: .95rem; line-height: 1.1; }
.block span, .block .kicker { display: block; color: var(--muted); font-size: .72rem; }
.block .kicker { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .68rem; }
.block .disc { position: relative; }
.block .disc .glyph + .glyph { position: absolute; width: 16px; height: 16px; right: -2px; bottom: -2px; background: #fff; border-radius: 50%; }
.hero .blocks.light .block { background: rgba(255,255,255,.12); color: #fff; }
.hero .blocks.light .block span, .hero .blocks.light .kicker { color: rgba(255,255,255,.82); }
.hero .disc.gauge { box-shadow: none; }
.slot.past, .hcol.past { opacity: .42; }
.slot.now, .hcol.now, .slot.slot-focus, .hcol.slot-focus { box-shadow: inset 3px 0 0 var(--ocean); }
.tide-card { background: var(--foam); border-radius: 14px; padding: 8px 10px; margin-bottom: 6px; }
.tide-card .tide-grid { margin-top: 6px; gap: 6px; }
.tide-card .tide-chip { padding: 5px 8px; }
.tide-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tide-top b { color: var(--ocean); }
.coef { background: var(--ocean); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 700; }
.tide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tide-chip { background: #fff; border-radius: 12px; padding: 8px 10px; min-width: 0; display: grid; gap: 2px; }
.tide-chip div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.tide-chip b { color: var(--ocean); font-size: .78rem; }
.tide-chip strong { color: var(--ink); font-size: 1rem; }
.tide-chip span { color: var(--muted); font-size: .72rem; }
.meteo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.meteo-head .spot-title { margin: 0; flex: 0 1 auto; max-width: 38%; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meteo-head .place-box { flex: 1; min-width: 0; }
.spot-title { margin: 0 0 6px; font-size: 1.05rem; color: var(--ocean); }
.sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.sheet-actions button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 64px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ocean); font-weight: 700;
}
.sheet-actions svg { width: 22px; height: 22px; }
.actions.social { gap: 14px; }
.icon-act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font-weight: 700; padding: 4px 0; }
.icon-act.on { color: var(--coral); }
.icon-act svg { width: 22px; height: 22px; }
.comment-list { display: flex; flex-direction: column; gap: 8px; max-height: 40dvh; overflow: auto; margin: 8px 0 12px; }
.osm { position: relative; height: 100%; min-height: 0; border-radius: 16px; overflow: hidden; background: #d5e0d4; margin: 0; touch-action: none; }
.osm.sat-map { background: #163044; }
.meteo-scroll.fill-map { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.meteo-scroll.fill-map .pane-map { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.meteo-scroll.fill-map .map-when-head { flex: none; }
.meteo-scroll.fill-map .map-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.meteo-scroll.fill-map .osm { flex: 1; height: auto; min-height: 0; }
.meteo-scroll.fill-map .map-dock { flex: none; display: grid; gap: 4px; }
.map-note { margin: 0; font-size: .75rem; }
.osm-stage { position: absolute; inset: 0; }
.osm-stage img { position: absolute; width: 256px; height: 256px; z-index: 1; }
.osm-stage img.mask-only { opacity: 0; z-index: 0; pointer-events: none; }
.osm-stage img.map-label { z-index: 2; pointer-events: none; }
.osm-copy a { color: inherit; }
.pin {
  position: absolute; transform: translate(-50%, -100%);
  border: 0; background: #fff; color: var(--ink); border-radius: 12px;
  padding: 0; box-shadow: 0 4px 14px rgba(23,48,46,.2); font-size: .72rem; text-align: left;
}
.pin.dot, .pin.dot.here {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  background: var(--ocean); box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(23,48,46,.28);
  padding: 0;
}
.pin.dot.buoy-dot { background: #3949ab; border-radius: 50%; transform: translate(-50%, -50%) rotate(0deg); }
.pin.dot.buoy-dot.off { background: #9e9e9e; }
.pin.dot.here { background: var(--coral); }
.pin.pin-spot, .pin.pin-buoy {
  width: 30px; height: 30px; padding: 0; border: 0; background: transparent;
  box-shadow: none; border-radius: 0;
  transform: translate(-50%, -50%);
}
.pin.pin-spot { z-index: 4; }
.pin.pin-buoy { z-index: 5; width: 34px; height: 34px; }
.spot-glyph {
  display: block; width: 18px; height: 18px; margin: 6px auto 0;
  border-radius: 50%; background: var(--pin, var(--ocean));
  box-shadow: 0 0 0 3px #fff, 0 2px 7px rgba(16,40,48,.28);
  position: relative;
}
.spot-glyph::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: #fff;
}
.pin-place .spot-glyph { background: var(--ocean); }
.spot-discover-toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(18px + var(--safe-b, 0px));
  z-index: 90; max-width: 420px; margin: 0 auto;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 48, 46, .18);
}
.spot-discover-toast .toast-body { flex: 1; min-width: 0; }
.spot-discover-toast strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.spot-discover-toast p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.spot-discover-toast .btn { flex: none; min-height: 40px; padding: 0 12px; white-space: nowrap; }
.spot-discover-toast .toast-x {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer;
}
.buoy-glyph { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 4px rgba(16,40,48,.28)); }
.pin-buoy.live .buoy-badge { fill: #3F51B5; }
.pin-buoy.off .buoy-badge { fill: #9E9E9E; }
.pin b, .pin span { display: block; }
.pin.spot { background: var(--ocean); color: #fff; }
.pin.buoy { background: var(--foam); color: var(--ocean); }
.osm-zoom { position: absolute; bottom: 28px; right: 8px; top: auto; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.osm-zoom button { width: 36px; height: 36px; border-radius: 12px; border: 0; background: #fff; color: var(--ocean); font-size: 1.2rem; box-shadow: 0 4px 12px rgba(23,48,46,.16); }
.osm-copy { position: absolute; right: 8px; bottom: 6px; z-index: 5; margin: 0; font-size: .65rem; color: #17302e; background: rgba(255,255,255,.8); padding: 2px 6px; border-radius: 8px; }
.pin { z-index: 3; }
.map-stage { position: relative; }
.map-stage .map-pop {
  position: absolute; left: 12px; right: auto; bottom: 12px; top: auto; z-index: 12;
  width: min(248px, calc(100% - 24px));
  max-height: none; overflow: visible; margin: 0; padding: 8px 10px;
  touch-action: pan-y;
}
.map-pop .sheet-grab { margin-bottom: 6px; }
.map-facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.map-facts li { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.map-facts .disc { width: 22px; height: 22px; }
.map-facts b { display: block; font-size: .75rem; line-height: 1.1; }
.map-facts span { display: block; color: var(--muted); font-size: .62rem; }
.map-pop-compact .when { margin: 0; font-size: .68rem; }
.map-pop-compact header b { font-size: .86rem; }
.map-pop-compact .btn { min-height: 30px; margin-top: 6px; font-size: .78rem; padding: 0 8px; }
.map-pop-compact .map-x { width: 26px; height: 26px; font-size: 1.15rem; }
.map-pop {
  position: relative; z-index: 4; margin-top: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  box-shadow: 0 10px 28px rgba(23,48,46,.16);
}
.map-pop header { display: flex; align-items: flex-start; gap: 8px; }
.map-pop header > div { flex: 1; min-width: 0; }
.map-pop header b { display: block; font-size: 1rem; }
.map-pop header span { color: var(--muted); font-size: .82rem; }
.map-pop .when { margin: 8px 0 4px; color: var(--ocean); font-weight: 750; font-size: .82rem; }
.map-pop .btn { width: 100%; margin-top: 8px; }
.map-x {
  width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted);
  font-size: 1.4rem; line-height: 1; border-radius: 10px;
}
.map-medals {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 6;
  display: flex; flex-direction: row; align-items: stretch; gap: 6px;
  pointer-events: none; width: auto; max-width: none;
}
.map-medals .medal { pointer-events: auto; flex: 0.96 1 0; min-width: 0; max-width: none; }
.map-medals .medal.swell { flex: 1.28 1 0; }
.map-medals .medal.wind { flex: 1.55 1 0; }
.map-medals .medal.tide { flex: 0.9 1 0; }
.map-medals .medal.buoy { flex: 1.05 1 0; }
.medal-title { font-size: .72rem; font-weight: 750; color: #1d6f97; white-space: nowrap; }
.medal.buoy .medal-title { color: #3F51B5; }
.medal-tide-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.medal-arrow { font-size: 1rem; font-weight: 800; line-height: 1; color: #1d6f97; }
.medal {
  position: static; width: auto; height: auto; min-height: 82px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 7px 6px; border: 1px solid rgba(255,255,255,.55); border-radius: 16px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(23,48,46,.12); color: var(--ink);
}
.medal.on { box-shadow: 0 0 0 2px var(--ocean), 0 4px 12px rgba(23,48,46,.14); background: rgba(255,255,255,.72); }
.medal .disc { width: 36px; height: 36px; box-shadow: none; }
.medal .disc.sky { width: 36px; height: 36px; }
.medal.buoy .buoy-glyph { width: 36px; height: 36px; filter: none; }
.medal.buoy:not(.on) .buoy-badge { fill: #9E9E9E; }
.medal.buoy.on .buoy-badge { fill: #3F51B5; }
.medal.buoy.on { box-shadow: 0 0 0 2px #3F51B5, 0 4px 12px rgba(23,48,46,.14); }
.medal-read { display: grid; justify-items: center; line-height: 1.05; }
.medal-read b { font-size: .88rem; font-weight: 800; }
.medal-read small { font-size: .7rem; font-weight: 700; color: var(--muted); }
.medal-gust {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 1px;
  color: #8a5a22; font-size: .72rem; font-weight: 750; line-height: 1;
}
.medal-gust b { font-size: .78rem; font-weight: 800; }
.medal-gust svg { flex: none; }
.medal.wind .medal-read b { color: #8a5a22; }
.medal.swell .medal-read b { color: #24556e; }
.medal.buoy .medal-read b { color: #3F51B5; }
.medal.buoy:not(.on) .medal-read b { color: #757575; }
.map-play { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.map-play-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--foam); color: var(--ocean); font-size: .95rem; flex: none; }
.map-play input[type="range"] { flex: 1; accent-color: var(--ocean); }
.map-when { min-width: 118px; color: var(--ocean); font-weight: 750; font-size: .88rem; }
.hview { min-width: 0; overflow: visible; }
.hview { scrollbar-width: none; }
.hboard {
  --h-col: 72px;
  --h-head: 44px;
  --h-sdir: 28px; --h-sh: 20px; --h-sp: 20px; --h-se: 16px;
  --h-wdir: 28px; --h-wv: 22px; --h-wg: 16px;
  --h-sky: 32px;
  --h-air: 24px; --h-water: 24px; --h-tide: 44px; --h-coef: 24px; --h-range: 22px;
  display: flex; gap: 0; min-width: 0; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: .85rem;
}
.hlabels { width: 72px; flex: none; display: flex; flex-direction: column; background: var(--foam); position: sticky; left: 0; z-index: 4; padding-top: 4px; }
.hlabels span, .hcol > span, .hcol > strong { display: grid; place-items: center; }
.hlabels .lab-head, .hcol > .h-head { height: var(--h-head); }
.hcol > .h-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); }
.hcol > .h-head b { font-size: 15px; font-weight: 800; line-height: 1; }
.hcol > .h-head .qmark { width: 22px; height: 22px; font-size: .78rem; border-radius: 7px; }
.hcol.now > .h-head b { color: var(--ocean); }
.hcol.past { opacity: .45; }
.hlabels .lab-sdir, .hcol > .h-sdir { height: var(--h-sdir); }
.hlabels .lab-sh, .hcol > .h-sh { height: var(--h-sh); }
.hlabels .lab-sp, .hcol > .h-sp { height: var(--h-sp); }
.hlabels .lab-se, .hcol > .h-se { height: var(--h-se); }
.hlabels .lab-wdir, .hcol > .h-wdir { height: var(--h-wdir); }
.hlabels .lab-wv, .hcol > .h-wv { height: var(--h-wv); }
.hlabels .lab-wg, .hcol > .h-wg { height: var(--h-wg); }
.hlabels .lab-sky, .hcol > .h-sky { height: var(--h-sky); }
.hlabels .lab-air, .hcol > .h-air { height: var(--h-air); }
.hlabels .lab-water, .hcol > .h-water { height: var(--h-water); color: var(--wave); font-weight: 800; }
.hlabels .lab-tide, .hcol > .h-tide { height: var(--h-tide); background: transparent; }
.hlabels .lab-coef, .hcol > .h-coef { height: var(--h-coef); color: var(--ocean); font-weight: 750; }
.hlabels .lab-range, .hcol > .h-range { height: var(--h-range); color: var(--wave); font-size: .72rem; }
.hcol > .h-sdir, .hcol > .h-wdir { display: flex; align-items: center; justify-content: center; }
.hcol .h-sh, .hcol .h-sp { font-size: .84rem; font-weight: 800; line-height: 1.1; color: var(--wave); }
.hcol .h-se, .hcol .h-wg { font-size: .72rem; font-weight: 750; line-height: 1.1; color: var(--wave); }
.hcol .h-wv { font-size: .95rem; font-weight: 800; line-height: 1.1; color: var(--amber); }
.hcol .h-wg { color: var(--amber); }
.hcol .disc { width: 26px; height: 26px; }
.hlabels span { font-size: .68rem; color: var(--muted); font-weight: 700; }
.hcols { position: relative; }
.h-tide-layer {
  position: absolute; left: 0; height: var(--h-tide); display: flex; pointer-events: none; z-index: 2;
  top: calc(4px + var(--h-head) + var(--h-sdir) + var(--h-sh) + var(--h-sp) + var(--h-se) + var(--h-wdir) + var(--h-wv) + var(--h-wg) + var(--h-sky) + var(--h-air) + var(--h-water));
}
.h-tide-plot { position: relative; height: 100%; margin: 0; flex: none; }
.h-tide-plot .tide { width: 100%; height: 100%; }
.hscroll { overflow-x: auto; overflow-y: hidden; flex: 1; min-width: 0; cursor: grab; scrollbar-width: none; }
.htrack { width: max-content; }
.hcols { display: flex; }
.htides { display: flex; }
.htide { flex: none; }
.htide .tide { width: 100%; }
.hcol { position: relative; width: var(--h-col); flex: none; display: flex; flex-direction: column; align-items: center; border: 0; border-left: 1px solid var(--line); background: #fff; padding: 4px 0 8px; overflow: visible; cursor: pointer; }
.hcol.day-start { box-shadow: inset 2px 0 0 var(--ocean); }
.hcol .glyph { margin: 4px auto; }
.tide { width: 100%; height: 88px; display: block; }
.tide-note { margin: 8px 2px 0; font-size: .85rem; }
.mapgrid { display: grid; gap: 10px; }
.slot.flat { margin: 10px 0 0; box-shadow: none; }
.slot-actions { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.icon-fab {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--ocean); color: #fff;
  box-shadow: 0 6px 14px rgba(36,88,84,.25);
}
.icon-fab svg { width: 16px; height: 16px; display: block; }
.icon-fab.ghost { background: #fff; color: var(--ocean); border: 1px solid var(--line); box-shadow: none; }
.btn-line.danger { color: var(--coral); border-color: #f0d2cf; }
.kicker-label { margin: 14px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-btn {
  display: grid; place-items: center; min-height: 44px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--sand); color: var(--ink); font-weight: 650; cursor: pointer;
}
.bubble.card-bubble { max-width: 100%; background: transparent; border: 0; padding: 0; }
.bubble img, .bubble video, .post img, .post video { width: 100%; border-radius: 16px; margin-top: 8px; max-height: 360px; object-fit: cover; }
.slot header { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.slot header b { color: var(--ink); font-size: .95rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { text-align: center; min-width: 0; }
.metric strong { display: block; margin-top: 6px; font-size: .95rem; }
.metric span { display: block; color: var(--muted); font-size: .72rem; }
.metric .disc { margin: 0 auto; }
.linkish {
  margin-top: 8px; background: none; border: 0; color: var(--ocean);
  font-weight: 700; padding: 6px 0;
}

.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
table.hours { border-collapse: collapse; width: max-content; min-width: 100%; }
table.hours th, table.hours td { padding: 8px 6px; text-align: center; min-width: 58px; border-bottom: 1px solid var(--line); }
table.hours th { background: var(--foam); position: sticky; top: 0; font-size: .75rem; }
table.hours td svg { margin: 0 auto; }

@keyframes overlay-in {
  from { background: rgba(23,48,46,0); }
  to { background: rgba(23,48,46,.4); }
}
@keyframes sheet-in {
  from { transform: translateY(16%); }
  to { transform: translateY(0); }
}
.sheet {
  position: fixed; inset: 0; z-index: 8;
  background: rgba(23,48,46,.4);
  display: flex; align-items: flex-end; justify-content: center;
  animation: overlay-in .18s ease;
}
.sheet.session-log {
  z-index: 90;
  align-items: center;
  background: rgba(23,48,46,.48);
}
.wall-add {
  position: fixed; right: 18px; bottom: calc(78px + var(--safe-b));
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--ocean); color: #fff; font-size: 2rem; line-height: 1; z-index: 6;
  box-shadow: 0 8px 20px rgba(23, 48, 46, .2);
}
.sheet-grab {
  width: 44px; height: 5px; border-radius: 999px;
  background: rgba(23,48,46,.32); margin: 2px auto 10px; flex: none;
  position: relative; touch-action: none;
}
.sheet-grab::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 96px; height: 32px; transform: translate(-50%, -50%);
}
.sheet-title { display: flex; align-items: center; gap: 8px; }
.sheet-title h2 { margin: 0; flex: 1; font-size: 1.35rem; }
.sheet .panel {
  width: min(720px, 100%); background: var(--card);
  border-radius: 24px 24px 0 0; padding: 12px 16px calc(18px + var(--safe-b) + var(--ime, 0px));
  max-height: 92dvh; overflow: auto; scrollbar-width: none;
  touch-action: pan-y; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: sheet-in .22s ease;
}
.sheet.session-log .panel {
  width: min(720px, calc(100% - 24px));
  height: min(92dvh, 860px);
  max-height: 92dvh;
  border-radius: 22px;
  margin: 12px;
  padding: 12px 16px 16px;
  display: flex; flex-direction: column;
}
.session-log-title {
  margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; font-weight: 800;
}
.session-form-dialog { flex: 1; overflow: auto; min-height: 0; }
.session-when { font-size: 1.15rem; line-height: 1.35; }

.feed-head { margin-bottom: 12px; }
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 14px; margin-bottom: 12px;
}
.post-top { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--foam); color: var(--ocean);
  display: grid; place-items: center; font-weight: 800; flex: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.who { font-weight: 750; }
.spot { color: var(--muted); font-size: .82rem; }
.rating { color: var(--amber); letter-spacing: 1px; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: var(--foam); color: var(--ocean); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 650; }
.post img, .post video { border-radius: 16px; margin-top: 8px; }
.actions { display: flex; gap: 8px; margin-top: 10px; }
.actions button {
  border: 0; background: var(--sand); color: var(--ink);
  border-radius: 999px; padding: 8px 12px; font-weight: 650;
}
.actions button.on { background: #fde8ea; color: var(--coral); }
.comments { margin-top: 8px; }
.comments p { margin: 4px 0; font-size: .9rem; }
.post.focus { outline: 2px solid var(--ocean); outline-offset: 2px; }
.post-comments { margin-top: 8px; cursor: pointer; }
.post-comment { margin: 6px 0 0; font-size: .86rem; line-height: 1.35; color: var(--ink); }
.post-comment b { font-weight: 750; }
.composer { display: flex; gap: 8px; margin-top: 8px; padding-bottom: var(--ime, 0px); }
.composer input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px; background: #fff; }
.composer .btn { border-radius: 999px; min-width: 46px; padding: 0 14px; }

.group-new { display: flex; gap: 8px; margin-bottom: 14px; }
.group-new input { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.group {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px; margin-bottom: 8px;
}
.group .grow { min-width: 0; overflow: hidden; }
.group b, .group .preview {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.group .preview { color: var(--muted); font-size: .82rem; }
.group > .muted { flex: none; white-space: nowrap; }
.avatar-wrap { position: relative; flex: none; display: inline-flex; }
.unread {
  position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800;
  line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff;
}

.chat-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; height: auto; }
.chat-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; flex: none; }
.chat-bar .btn-line { min-height: 38px; padding: 0 12px; }
.thread {
  flex: 1; min-height: 0; overflow: auto; cursor: grab; scrollbar-width: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(47,111,146,.08), transparent 40%),
    linear-gradient(#f7fbfa, #eef5f3);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
}
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.msg.mine { flex-direction: row-reverse; }
.msg-col { display: flex; flex-direction: column; gap: 2px; max-width: min(82%, 440px); min-width: 0; }
.msg.mine .msg-col { margin-left: auto; align-items: flex-end; }
.msg-name { font-size: .75rem; font-weight: 750; color: var(--wave); padding: 0 8px; }
.msg-time { font-size: .7rem; color: var(--muted); padding: 0 8px; }
.msg .avatar { width: 34px; height: 34px; margin-bottom: 18px; }
.bubble {
  max-width: 100%;
  background: #fff; border-radius: 18px 18px 18px 6px;
  padding: 8px 12px; box-shadow: 0 1px 2px rgba(23,48,46,.06);
}
.bubble.mine {
  background: #d7efe8; color: var(--ink);
  border-radius: 18px 18px 6px 18px;
}
.bubble.card-bubble {
  max-width: min(100%, 520px); background: transparent; color: var(--ink);
  border: 0; padding: 0; box-shadow: none;
}
.bubble.card-bubble.mine { background: transparent; color: var(--ink); }
.chat-shell .composer { margin-top: 10px; flex: none; }

.auth, .dl, .profile { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.auth .field, .profile .field { margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: .92rem; }
.dl { text-align: center; }
.dl img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--foam); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-size: 1.5rem; color: var(--ocean); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 8px; }

@media (max-width: 720px) {
  .tabs button { font-size: .68rem; padding: 4px 2px; }
  body.in-meteo main { margin-left: auto; margin-right: auto; width: min(1360px, 100%); padding-left: 6px; }
  .now-rail { width: 156px; }
}

/* Parité Android : qualité, chaleur, marée, profil */
.qmark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 6px; vertical-align: middle;
  border-radius: 7px; color: #fff; font-size: .78rem; font-weight: 800;
  letter-spacing: -.02em; line-height: 1; box-shadow: 0 1px 2px rgba(23,48,46,.18);
  border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.qmark.lg { width: 28px; height: 28px; font-size: .95rem; border-radius: 8px; }
.score-why-overlay { z-index: 80; align-items: center; justify-content: center; }
.score-why-sheet {
  position: relative; z-index: 1; margin: 0; max-width: 440px; width: calc(100% - 28px);
  background: var(--card); border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 18px 40px rgba(18,40,38,.22);
}
.score-why-sheet header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.score-why-sheet header .qmark { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 14px; margin: 0; cursor: default; }
.score-why-sheet header div { flex: 1; min-width: 0; }
.score-why-sheet header b { display: block; font-size: 1.05rem; }
.score-why-sheet header span { display: block; color: var(--ocean); font-size: .85rem; font-weight: 650; margin-top: 2px; }
.score-why-body {
  white-space: pre-wrap; border: 1px solid; border-radius: 14px; padding: 14px;
  font-family: Georgia, "Times New Roman", serif; font-size: .95rem; line-height: 1.45; color: var(--ink);
  max-height: 48vh; overflow: auto; margin-bottom: 12px;
}
.score-why-points { margin: 0 0 14px; padding-left: 1.1rem; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.score-why-points li { margin: 4px 0; }
.score-why-sheet .btn { width: 100%; }
.pleasure { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pleasure-caption { font-weight: 750; font-size: .82rem; }
.stars { display: flex; gap: 4px; flex-wrap: wrap; }
.stars button.qpick {
  width: 30px; height: 30px; border-radius: 8px; border: 0; color: #fff;
  font-weight: 800; font-size: .82rem; opacity: 1;
}
.stars button.qpick.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor; transform: scale(1.08); }
.spot-picker { display: grid; gap: 6px; margin-top: 12px; }
.spot-card {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 12px; color: var(--ink);
}
article.spot-card {
  display: grid; gap: 0; padding: 0; align-items: stretch; overflow: hidden;
}
.spot-card.on, article.spot-card.selected {
  background: var(--foam); border-color: var(--ocean);
}
.spot-card-main {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 0; background: transparent; color: inherit; padding: 10px 12px 6px; cursor: pointer;
}
.spot-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 2px;
  margin: 0; padding: 0 8px 8px;
  border-top: 1px solid color-mix(in srgb, var(--ocean) 16%, transparent);
}
.spot-action {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: transparent; color: var(--ocean);
  font-weight: 700; font-size: .82rem; padding: 8px 8px 4px; cursor: pointer;
}
.spot-action svg { width: 16px; height: 16px; flex: none; }
.relief-pop { z-index: 90; }
.relief-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.relief-head h2 { margin: 0; flex: 1; font-size: 1.2rem; }
.relief-img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  background: #dfe8e4; max-height: min(72vh, 720px); object-fit: contain;
}
.spot-rank { width: 18px; color: var(--muted); font-weight: 750; flex: none; }
.spot-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.spot-body b { font-size: .95rem; }
.admin-spot-map {
  position: relative; height: 420px; margin-top: 8px; border-radius: 18px; overflow: hidden;
  background: #d7e6ea; border: 1px solid var(--line);
}
.admin-spot-pin {
  position: absolute; transform: translate(-50%, -50%); border: 0; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 4px 8px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(28, 36, 35, .16); cursor: pointer; max-width: 180px;
}
.admin-spot-pin b { color: var(--coral); }
.admin-spot-pin span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.admin-spot-pin.on { outline: 2px solid var(--ocean); }
.spot-name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spot-remove {
  border: 0; background: transparent; color: var(--coral); font-weight: 700;
  font-size: .75rem; padding: 0; cursor: pointer; text-align: left;
}
.spot-icon-btn {
  border: 1px solid color-mix(in srgb, var(--ocean) 28%, transparent);
  background: var(--foam); color: var(--ocean); width: 32px; height: 32px; border-radius: 50%;
  padding: 4px; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center;
}
.spot-icon-btn svg { width: 18px; height: 18px; display: block; }
.spot-card.held { opacity: .72; }
.spot-confirm {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(28, 36, 35, .38); padding: 24px;
}
.spot-confirm-card {
  width: min(340px, 100%); background: #fff; color: var(--ink); border-radius: 16px; padding: 16px;
  box-shadow: 0 12px 40px rgba(28, 36, 35, .2);
}
.spot-confirm-card p { margin: 0 0 14px; line-height: 1.4; }
.spot-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }
.spot-confirm-actions .btn,
.spot-confirm-actions .btn-line { min-height: 40px; padding: 0 14px; }
.spot-body small { color: var(--muted); font-size: .75rem; }
.spot-score { font-weight: 800; font-size: 1.05rem; flex: none; }
.spot-rank-mark { color: var(--ocean); font-size: 1.15rem; flex: none; line-height: 1; }
.spot-rank-toggle {
  justify-self: start; border: 0; background: transparent; color: var(--ocean);
  font-weight: 750; font-size: .82rem; padding: 2px 4px; cursor: pointer;
}
.spot-traits { display: flex; gap: 6px; align-items: center; color: var(--ocean); }
.slot-tools { display: flex; justify-content: space-evenly; gap: 8px; margin-top: 14px; }
.slot-tools button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 64px; border-radius: 18px; border: 1px solid var(--line);
  background: #fff; color: var(--ocean); font-weight: 750; font-size: .72rem;
}
.slot-tools svg { width: 22px; height: 22px; }
.slot-tools button.filled { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.slot-tools button.on { background: var(--foam); }
.session-form { display: grid; gap: 10px; margin-top: 14px; }
.session-form .spot-select select,
.session-form input[type="range"] { width: 100%; }
.session-actions { display: flex; gap: 8px; }
.session-actions .btn, .session-actions .btn-line { flex: 1; width: auto; }
.personal-pane { display: grid; gap: 14px; margin-top: 8px; }
.personal-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.personal-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 12px; font-size: .82rem; font-weight: 600;
}
.personal-tabs button.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.personal-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 8px 22px rgba(23,48,46,.05);
}
.personal-card h3 { margin: 0 0 6px; font-size: 1rem; }
.personal-card .hint, .popup-hint { margin: 0 0 12px; color: var(--muted); font-size: .84rem; }
.zone-block {
  margin: 14px 0 4px; padding: 14px 16px 16px; border-radius: 18px;
  background: linear-gradient(165deg, #f5fbf8 0%, #eaf4f0 55%, #e4efeb 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  --zone-pct: 22%;
}
.zone-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.zone-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zone-title span { font-size: .92rem; color: var(--ink); font-weight: 700; }
.zone-title small { font-size: .76rem; color: var(--muted); font-weight: 500; }
.zone-pill {
  flex: none; min-width: 64px; text-align: center;
  background: var(--ocean); color: #fff !important;
  border-radius: 999px; padding: 8px 14px;
  font-size: .95rem; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 6px 14px rgba(29, 111, 97, .22);
}
.zone-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--ocean) 0%, var(--ocean) var(--zone-pct), #d3e3de var(--zone-pct));
  margin: 0;
}
.zone-range::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px; background: transparent;
}
.zone-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ocean);
  box-shadow: 0 4px 12px rgba(23,48,46,.18); cursor: grab;
}
.zone-range::-moz-range-track {
  height: 10px; border-radius: 999px; background: #d3e3de; border: 0;
}
.zone-range::-moz-range-progress {
  height: 10px; border-radius: 999px; background: var(--ocean);
}
.zone-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ocean);
  box-shadow: 0 4px 12px rgba(23,48,46,.18); cursor: grab;
}
.zone-scale {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .02em;
}
.zone-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.zone-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ocean);
  border-radius: 12px; min-height: 38px; font: inherit; font-weight: 700; font-size: .8rem;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.zone-chip.on, .zone-chip:hover { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.filter-actions { margin-top: 14px; }
.filter-actions .btn { flex: 1 1 100%; }
.filter-actions .btn-line { flex: 1 1 calc(50% - 4px); }
.advise-list { display: grid; gap: 8px; }
.advise-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: var(--sand); border: 1px solid var(--line);
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.advise-row.best { border-color: var(--ocean); background: #e8f3f0; }
.advise-row b { display: block; }
.advise-row small { display: block; color: var(--muted); }
.spot-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}
.spot-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
  color: var(--ocean);
  background: #fff;
}
.spot-meta-note {
  flex: 1 1 100%; color: var(--muted); font-size: .68rem; line-height: 1.3;
}
.spot-meta small {
  display: inline;
  color: var(--ink);
  font-size: 10px;
}
.week-agenda { display: grid; gap: 16px; }
.week-agenda-day { display: grid; gap: 8px; }
.day-divider {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 2px;
  color: var(--ocean); font-weight: 700; font-size: .9rem; text-transform: capitalize;
}
.day-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.week-agenda-slots { display: grid; gap: 8px; }
.cal-slot {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  padding: 12px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  box-shadow: 0 4px 14px rgba(23,48,46,.04);
}
.cal-slot:hover { border-color: var(--ocean); }
.cal-slot b { display: block; font-size: .92rem; text-transform: capitalize; }
.cal-slot small { color: var(--muted); }
.dispo-agenda { display: grid; gap: 10px; }
.dispo-agenda-day {
  display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start;
  padding: 10px; border-radius: 14px; background: var(--sand); border: 1px solid var(--line);
}
.dispo-hours { display: flex; flex-wrap: wrap; gap: 6px; }
.hour-chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 11px; font-size: .78rem; font-weight: 600;
}
.hour-chip.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.personal-filters .place-box { margin: 0; }
.filter-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; padding: 2px 0; cursor: pointer; text-align: left;
  color: var(--ink);
}
.filter-toggle .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.filter-toggle b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-toggle small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.filter-toggle-ico {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: #eaf4f0; color: var(--ocean); flex: none;
}
.filter-chevron { color: var(--ocean); font-size: 1rem; flex: none; }
.personal-filters .filter-toggle + .place-box,
.personal-filters .filter-toggle + .zone-block { margin-top: 12px; }
.personal-filters:has(.place-box) .filter-toggle { margin-bottom: 4px; }
.form-grid { display: grid; gap: 8px; }
.form-grid label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.form-grid input, .form-grid select {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: #fff; color: var(--ink); font: inherit;
}
.personal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.check-row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.personal-sheet .personal-panel {
  display: flex; flex-direction: column; max-height: 92dvh; padding: 0;
  touch-action: pan-y; cursor: default;
}
.personal-sheet .popup-foot .sheet-actions button {
  pointer-events: auto;
  touch-action: manipulation;
}
.popup-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px 10px; border-bottom: 1px solid var(--line); flex: none;
}
.popup-head h2 { margin: 0; font-size: 1.05rem; text-transform: capitalize; padding-right: 8px; }
.popup-close {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--sand); color: var(--ink); font-size: 1.5rem; line-height: 1; flex: none;
  touch-action: manipulation;
}
.popup-body { padding: 14px 16px; overflow: auto; flex: 1; }
.popup-foot {
  padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line);
  background: #fff; flex: none;
}
.popup-validate { width: 100%; }
.popup-actions { margin: 0; }
.sheet-actions button.on { color: var(--ocean); background: #e8f3f0; }
.slot-meta { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.peer-badge { border:0; background:var(--foam); color:var(--ocean); border-radius:999px; padding:2px 8px; font-size:.72rem; font-weight:600; }
.hero-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hero-top h2 { margin:0; }
.tide-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.btn-line.tiny, .tiny { padding:4px 8px; font-size:.78rem; border-radius:10px; }
/* Les médailles carte gardent le fond translucide défini plus haut. */
.medal.on { outline: 2px solid var(--ocean); outline-offset: 1px; }
.heat-layer { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; image-rendering:auto; }
.qfield { display: grid; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.qfield small { font-size: .82rem; font-weight: 800; }
.qscale { display: flex; flex-wrap: wrap; gap: 4px; }
.qscale .qpick { width: 30px; height: 30px; border: 0; border-radius: 8px; font-weight: 800; }
.osm.heat-on .osm-stage { min-height:min(72vh, 640px); }
.heat-legend { position:relative; margin-top:8px; width:140px; background:rgba(28,36,35,.82); color:#fff; border-radius:10px; padding:6px 8px; font-size:.72rem; }
.heat-legend b { display:block; margin-bottom:4px; }
.heat-bar { height:8px; border-radius:4px; background:linear-gradient(90deg,#0B3D6E,#22A8A0,#E6D23A,#B01020); }
.heat-labs { display:flex; justify-content:space-between; margin-top:2px; opacity:.9; }
.tide-curve-pop { background:#fff; border-radius:18px; padding:14px; max-width:420px; margin:12vh auto 0; box-shadow:0 16px 40px rgba(0,0,0,.2); }
.tide-curve-pop header { display:flex; justify-content:space-between; align-items:center; }
.tide-curve-pop header button { border:0; background:transparent; font-size:1.1rem; }
.tide-curve-svg { width:100%; height:auto; margin-top:8px; background:var(--foam); border-radius:12px; }
.avatar-edit { cursor:pointer; display:inline-block; }
.avatar-edit .avatar { width: 84px; height: 84px; font-size: 28px; }
.profile-edit label { display:block; margin-top:8px; font-size:.86rem; color:var(--muted); }
.profile-edit input, .profile-edit select { width:100%; margin-top:4px; padding:8px 10px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); }
.profile-edit .chips label.chip { display:inline-flex; align-items:center; gap:6px; width:auto; margin:0; font-size:.78rem; color:var(--ocean); cursor:pointer; }
.profile-edit .chips label.chip input { width:auto; margin:0; padding:0; border:0; background:transparent; }
.pwd { position:relative; display:block; margin-top:8px; }
.pwd .field { width:100%; margin-top:0; padding-right:46px; }
.pwd-eye { position:absolute; right:2px; top:50%; transform:translateY(-50%); width:40px; height:40px; border:0; background:transparent; color:var(--ocean); cursor:pointer; padding:0; }
.pwd-eye svg { width:22px; height:22px; display:block; margin:0 auto; }
.geo-hint { display:block; width:100%; margin:8px 0 0; padding:0; border:0; background:none; color:var(--ocean); font-weight:750; text-align:left; text-decoration:underline; cursor:pointer; }
.composer .attach { display:inline-flex; align-items:center; justify-content:center; min-width:36px; cursor:pointer; }

.overlay {
  position:fixed; inset:0; z-index:40; background:rgba(18,28,26,.45);
  padding:16px; overflow:auto;
  display: flex; align-items: flex-end; justify-content: center;
}

@media (max-width: 1279px) {
  :root { --nav: calc(58px + var(--safe-b)); }
  html, body { overflow-x: hidden; max-width: 100%; }
  .brand span { display: inline; color: var(--card); }
  .top {
    justify-content: flex-start; gap: 10px;
    background: var(--ocean); border-bottom: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: calc(10px + var(--safe-t)) 12px 10px;
  }
  .brand { color: var(--card); }
  .brand img { background: var(--card); }
  .tagline {
    display: block; flex: 1; min-width: 0; margin: 0;
    color: var(--foam); font-size: .84rem; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .profile-chip {
    display: grid; background: var(--card); border-color: var(--card); color: var(--ocean);
  }
  .profile-chip.on { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
  .notice-bell {
    margin-left: auto; background: var(--card); border-color: var(--card); color: var(--ocean);
  }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    max-width: none; margin: 0; border-radius: 0;
    background: var(--sand);
    border-top: 1px solid var(--line);
    padding: 4px 8px calc(4px + var(--safe-b));
    box-shadow: 0 -8px 20px rgba(23,48,46,.08);
    transition: transform .18s ease;
  }
  .tabs button {
    flex-direction: column; gap: 2px; min-height: 50px;
    font-size: .68rem; padding: 4px 2px;
  }
  .tabs button svg { display: block; width: 20px; height: 20px; }
  main { width: 100%; margin: 0; padding: 16px 10px calc(var(--nav) + 16px); }
  body.in-thread main,
  body.in-meteo main {
    width: 100%;
    margin: 0;
    height: calc(100dvh - var(--header) - var(--nav));
    padding: 6px 10px;
  }
  body.in-meteo .meteo-shell { flex-direction: column; gap: 8px; }
  body.in-meteo .view-rail { width: 100%; padding: 0 4px; }
  body.in-meteo.in-personal .view-rail { display: none; }
  body.in-meteo .view-rail .view-row {
    flex-direction: row; height: auto; width: 100%; gap: 0; align-items: stretch;
  }
  body.in-meteo .view-rail .view-banner {
    flex: 1; flex-direction: row;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    height: 36px; min-height: 36px;
    background: var(--foam); border: 1px solid var(--line); border-radius: 12px; padding: 0;
  }
  body.in-meteo .view-rail .view-banner button,
  body.in-meteo .view-rail .view-personal {
    flex-direction: row; align-items: center; justify-content: center; gap: 4px;
    width: auto; min-height: 36px; height: 36px; padding: 0 6px; border-radius: 0;
    background: transparent; border: 0; font-size: .62rem; font-weight: 700; white-space: nowrap;
  }
  body.in-meteo .view-rail .view-banner button svg,
  body.in-meteo .view-rail .view-personal svg { width: 12px; height: 12px; }
  body.in-meteo .view-rail .view-banner button.on,
  body.in-meteo .view-rail .view-personal.on {
    background: var(--ocean); color: var(--card); border-color: var(--ocean);
  }
  body.in-meteo .view-rail .view-banner button:first-child { border-radius: 12px 0 0 12px; }
  body.in-meteo .view-rail .view-banner button:last-child { border-radius: 0 12px 12px 0; }
  body.in-meteo .view-rail .view-personal { display: none; }
  body.in-meteo .map-stage .map-pop {
    left: 8px; right: 8px; bottom: 8px; width: auto;
    max-width: none;
  }
  body.in-meteo .meteo-head { flex-direction: column; align-items: stretch; }
  body.in-meteo .meteo-head .spot-title { max-width: none; }
  body.in-meteo .desktop-now { display: none; }
  body.in-meteo .phone-now { display: none !important; }
  body.in-meteo .meteo-scroll { background: var(--sand); }
  /* Dessin : remplit le reste de l’écran, sans scroll. */
  body.in-meteo .meteo-scroll.sketch-mode {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.in-meteo .meteo-scroll.sketch-mode .meteo-sticky,
  body.in-meteo .meteo-scroll.sketch-mode .webcam-inline { flex: none; }
  body.in-meteo .meteo-scroll.sketch-mode .day-stage.sketch-open,
  body.in-meteo .meteo-scroll.sketch-mode .sketch-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body.in-meteo .sketch-mode .sketch-slot,
  body.in-meteo .sketch-slot {
    flex: 1;
    width: 100%;
    height: auto !important;
    min-height: 280px;
  }
  body.in-meteo .sketch-chip {
    min-height: 88px;
    padding: 6px 5px;
  }
  body.in-meteo .sketch-chip.tide.tide-bar {
    min-height: 26px;
    height: 26px;
    padding: 1px 8px;
  }
  body.in-meteo .sketch-overlay { padding: 8px 6px 10px; }
  body.in-meteo .sketch-top { gap: 4px; }
  body.in-meteo .meteo-sticky,
  body.in-meteo .day-stage,
  body.in-meteo .hview,
  body.in-meteo .pane-map { background: var(--sand); }
  body.in-meteo .now-rail { width: auto; }
  .now-metric b { font-size: 1.08rem; }
  .now-metric span { font-size: .8rem; }
  .slot .block, .sheet .block {
    flex-direction: column; align-items: center; text-align: center;
    padding: 6px 3px; gap: 2px;
  }
  .slot .block strong { font-size: 1.08rem; }
  .slot .block span.lead { font-size: .8rem; font-weight: 750; color: var(--ink); }
  .glance-tile.swell b, .glance-tile.wind b { font-size: 1.16rem; }
  .glance-tile.swell span, .glance-tile.wind span { font-size: .86rem; }
  .hcol .h-sh, .hcol .h-sp { font-size: .92rem; }
  .hview .tide-note { display: none; }
  .day-tides .tide-when small { font-size: .62rem; }
  .day-tides .tide-when b { font-size: .84rem; }
  .glance-sky, .glance-sky .disc { width: 64px; height: 64px; }
  .glance-sky svg, .glance-sky .glyph { width: 52px; height: 52px; }
  .glance-tile b { font-size: 1rem; }
  .hboard, .hscroll, .pane-map, .osm, .daybar, .slot, .day-summary, .day-card { max-width: 100%; }
  .wall-add { bottom: calc(var(--nav) + 12px); }
  .sheet { z-index: 40; padding-top: max(10px, var(--safe-t)); }
  .sheet .panel,
  .personal-sheet .personal-panel {
    max-height: 86dvh;
  }
  .popup-close, .map-x {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  }
}

body.ime-open { --nav: 0px; }
body.ime-open .tabs {
  transform: translateY(110%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet .panel, .tabs { animation: none; transition: none; }
}

@media (min-width: 721px) {
  .overlay { align-items: center; }
}

@media (min-width: 1280px) {
  .top { padding: calc(12px + var(--safe-t)) 22px 12px; gap: 18px; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 42px; height: 42px; }
  .tabs { max-width: 720px; }
  .tabs button { min-height: 48px; font-size: .95rem; gap: 8px; }
  .tabs svg { width: 20px; height: 20px; }
  .profile-chip { width: 46px; height: 46px; }
  body.in-meteo .view-rail { width: 96px; }
  body.in-meteo .view-rail .view-banner button {
    min-height: 72px; font-size: .78rem; gap: 5px; border-radius: 18px;
  }
  body.in-meteo .view-rail .view-banner button svg,
  body.in-meteo .view-rail .view-personal svg { width: 26px; height: 26px; }
  body.in-meteo .view-rail .view-personal { min-height: 78px; font-size: .78rem; margin-top: 14px; }
  .now-rail { width: 300px; }
  .now-card { padding: 16px 14px 14px; gap: 10px; border-radius: 22px; }
  .now-card header { font-size: 1rem; }
  .now-when { font-size: .84rem; }
  .now-metric b { font-size: 1.28rem; }
  .now-metric span { font-size: .88rem; }
  .now-metric .disc, .now-metric .disc.sky { width: 38px; height: 38px; }
  .meteo-head .spot-title { font-size: 1.25rem; }
  .glance-tile b { font-size: 1.4rem; }
  .glance-tile span { font-size: .98rem; }
  .glance-tile small { font-size: .82rem; }
  .day-head h2 { font-size: 1.4rem; }
  .block strong { font-size: 1.15rem; }
  .block span, .block .kicker { font-size: .82rem; }
  .daybar .days button { flex: 1 0 70px; min-width: 70px; max-width: 96px; padding: 6px 10px; font-size: .78rem; }
  .daybar .days button small { font-size: 1.02rem; }
  .hboard {
    --h-col: 64px;
    --h-head: 52px;
    --h-sdir: 32px; --h-sh: 24px; --h-sp: 24px; --h-se: 18px;
    --h-wdir: 32px; --h-wv: 26px; --h-wg: 18px;
    --h-sky: 42px;
    --h-air: 30px; --h-water: 30px; --h-tide: 64px; --h-coef: 28px; --h-range: 26px;
  }
  .hcol > .h-head b { font-size: 17px; }
  .hcol .disc { width: 30px; height: 30px; }
  .hcol .h-sh, .hcol .h-sp { font-size: .95rem; }
  .hcol .h-wv { font-size: 1.05rem; }
}

body.onboard-open .tabs,
body.onboard-open .top { display: none !important; }
body.onboard-open #app { padding-bottom: 0; }
.onboard {
  min-height: calc(100dvh - 24px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 32px;
}
.onboard-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 10px 30px rgba(23, 48, 46, .08);
}
.onboard-progress {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.onboard-bar {
  height: 6px;
  border-radius: 8px;
  background: #eef3f2;
  margin: 8px 0 18px;
  overflow: hidden;
}
.onboard-bar span {
  display: block;
  height: 100%;
  background: var(--ocean);
  border-radius: 8px;
}
.onboard-card h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
}
.onboard-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.45;
}
.onboard-choices {
  display: grid;
  gap: 8px;
}
.onboard-pick {
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.onboard-pick.on {
  border-color: var(--ocean);
  background: rgba(14, 116, 144, .08);
  color: var(--ocean);
}
.onboard-pick.described {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 0;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
}
.onboard-pick.described .onboard-pick-title {
  font-size: .95rem;
  line-height: 1.25;
}
.onboard-pick.described .onboard-pick-detail {
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}
.onboard-pick.described.on .onboard-pick-detail {
  color: rgba(14, 116, 144, .85);
}
.profile-styles .onboard-pick {
  position: relative;
}
.profile-styles .onboard-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.profile-styles .onboard-pick:has(input:checked) {
  border-color: var(--ocean);
  background: rgba(14, 116, 144, .08);
  color: var(--ocean);
}
.profile-styles .onboard-pick:has(input:checked) .onboard-pick-detail {
  color: rgba(14, 116, 144, .85);
}
.onboard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.onboard-later {
  display: block;
  width: 100%;
  margin-top: 10px;
  color: var(--muted);
}
.water-brief-link {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 4px;
  color: var(--ocean);
  font-weight: 650;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: inherit;
}
.water-brief-link.sketch {
  pointer-events: auto;
  align-self: flex-end;
  margin-top: auto;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255, 252, 247, .22);
  border: 1px solid rgba(48, 68, 72, .22);
}
.water-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.water-chips span {
  color: var(--ocean);
  font-weight: 650;
  font-size: 11px;
  border: 1px solid rgba(47, 93, 91, .16);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
}
.tour-chip {
  position: fixed;
  z-index: 70;
  top: calc(var(--header, 64px) + 8px);
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1B4F63;
  color: #fff;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  box-shadow: 0 8px 20px rgba(18, 40, 38, .22);
}
.tour-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tour-chip .tour-x { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.16); }
.tour-root {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: auto;
}
.tour-dim {
  position: fixed;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(18, 40, 38, .55);
  pointer-events: none;
}
.tour-card {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(18, 40, 38, .28);
}
.tour-card header { display: flex; align-items: center; gap: 8px; }
.tour-card header b { flex: 1; font-size: 1.05rem; }
.tour-card header button {
  border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.tour-card p { margin: 8px 0 12px; line-height: 1.4; }
.tour-actions { display: flex; gap: 8px; }
.tour-actions .btn { flex: 1; }
.tour-card small { display: block; margin-top: 8px; color: var(--muted); }
