:root {
  --bg: #f4f1ea; --surface: #ffffff; --surface-2: #efeadf; --ink: #0f2533; --muted: #5b6b75; --line: #e0d8c8;
  --sea: #034466; --sea-2: #0f6a96; --sea-soft: #dbeaf3; --accent: #f28a00;
  --otimo: #16915f; --bom: #5fa83c; --arriscado: #d9952b; --nao: #c2453a; --info: #6c7f8a;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,37,51,.06), 0 4px 16px rgba(15,37,51,.06);
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a161d; --surface: #102029; --surface-2: #162c38; --ink: #e5eef2; --muted: #93a7b2; --line: #213c4a;
    --sea: #5fb4df; --sea-2: #86cdee; --sea-soft: #0f3a52; --accent: #ff9d2b;
    --otimo: #2fbf83; --bom: #86c95e; --arriscado: #e8ad4a; --nao: #e0675c; --info: #8aa0ab;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a161d; --surface: #102029; --surface-2: #162c38; --ink: #e5eef2; --muted: #93a7b2; --line: #213c4a;
  --sea: #5fb4df; --sea-2: #86cdee; --sea-soft: #0f3a52; --accent: #ff9d2b;
  --otimo: #2fbf83; --bom: #86c95e; --arriscado: #e8ad4a; --nao: #e0675c; --info: #8aa0ab;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.45 Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.app { min-height: 100dvh; }
main { padding: 20px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }

.nav {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sync { display: none; }
.brand { display: none; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; max-width: 1180px; margin: 0 auto; font-weight: 800; font-size: 17px; color: var(--sea); }
.topbar img { width: 34px; height: 34px; border-radius: 50%; }
@media (min-width: 900px) { .topbar { display: none; } }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600;
}
.tab > svg, .tab-av > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--sea); }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 236px 1fr; }
  .nav {
    position: sticky; top: 0; height: 100dvh; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 22px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--surface);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 800; font-size: 18px; color: var(--sea); }
  .brand img { width: 40px; height: 40px; border-radius: 50%; }
  .tab { flex: 0; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 15px; }
  .tab:hover { background: var(--surface-2); }
  .tab[aria-current="page"] { background: var(--sea-soft); }
  .sync { display: block; margin-top: auto; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
  main { padding: 32px 36px 48px; }
}

/* ---------- Building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px;
  text-decoration: none; color: var(--ink);
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--sea); border-color: var(--sea); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #06202b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #06202b; } }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--nao); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.otimo { color: var(--otimo); background: color-mix(in srgb, var(--otimo) 14%, transparent); }
.chip.bom { color: var(--bom); background: color-mix(in srgb, var(--bom) 16%, transparent); }
.chip.arriscado { color: var(--arriscado); background: color-mix(in srgb, var(--arriscado) 16%, transparent); }
.chip.nao { color: var(--nao); background: color-mix(in srgb, var(--nao) 13%, transparent); }
.chip.none { color: var(--muted); background: var(--surface-2); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.tag.sea { background: var(--sea-soft); color: var(--sea); }
.tag.accent { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--sea-soft); color: var(--ink); font-size: 14px; }
.banner.warn { color: var(--ink); background: color-mix(in srgb, var(--arriscado) 16%, var(--surface)); }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid color-mix(in srgb, var(--sea) 55%, transparent); outline-offset: 1px; border-color: var(--sea); }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Previsão ---------- */
.forecast-layout { display: grid; gap: 18px; }
@media (min-width: 1100px) { .forecast-layout { grid-template-columns: minmax(0, 1fr) 430px; align-items: start; } .detail { position: sticky; top: 24px; } }

.hero { background: radial-gradient(120% 140% at 0% 0%, #0a5a85, #033a58 70%); color: #fff; border: 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -20% -60px -20%; height: 120px; background: radial-gradient(60% 60px at 50% 100%, rgba(255,255,255,.14), transparent); }
.hero .eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.hero .big { font-size: 26px; font-weight: 800; margin: 6px 0 2px; }
.hero .meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; opacity: .95; }
.hero .meta b { display: block; font-size: 18px; }
.hero .btn { background: var(--accent); color: #1c1200; border-color: var(--accent); }
.hero .chip { background: rgba(255,255,255,.18); color: #fff; }
:root[data-theme="dark"] .hero, :root:not([data-theme="light"]) .hero { color: #fff; }

.days { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.day {
  text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px;
  display: grid; gap: 6px; position: relative; transition: transform .12s ease, border-color .12s ease;
}
.day:hover { transform: translateY(-1px); border-color: var(--sea-2); }
.day[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sea) 35%, transparent); }
.day.weekend { background: color-mix(in srgb, var(--sea-soft) 55%, var(--surface)); }
.day.off-season { opacity: .62; }
.day .dow { font-weight: 800; font-size: 14px; }
.day .date { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.day .stats { font-size: 12.5px; color: var(--muted); }
.day .flags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 20px; }
.day .trip-mark { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.windows { display: grid; gap: 8px; }
.window { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.window .hrs { font-weight: 800; font-size: 14px; }
.window .metrics { font-size: 13px; color: var(--muted); margin-top: 3px; }
.reasons { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; }
.reason.bad { color: var(--nao); } .reason.warn { color: var(--arriscado); } .reason.good { color: var(--otimo); } .reason.info { color: var(--info); }

.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; font-family: inherit; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tide-line { fill: none; stroke: var(--sea); stroke-width: 2; }
.chart .tide-area { fill: var(--sea-soft); }
.chart .tide-min { stroke: var(--accent); stroke-dasharray: 4 3; stroke-width: 1.5; }
.chart .now { stroke: var(--accent); stroke-width: 1.5; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Checklist ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--otimo); border-radius: 99px; transition: width .25s ease; }
.groups { display: grid; gap: 16px; }
@media (min-width: 1000px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.item:hover { background: var(--surface-2); }
.item label { display: flex; gap: 12px; align-items: flex-start; flex: 1; cursor: pointer; min-width: 0; }
.item input[type="checkbox"] { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.item input[type="checkbox"]:checked { background: var(--otimo); border-color: var(--otimo); }
.item input[type="checkbox"]:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.item .lbl { font-weight: 600; }
.item.done .lbl { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.item .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.item .forgot { flex: none; border: 1px solid var(--line); background: none; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.item .forgot[aria-pressed="true"] { border-color: var(--nao); color: var(--nao); background: color-mix(in srgb, var(--nao) 10%, transparent); }

.tpl-row { display: grid; gap: 8px; grid-template-columns: 1fr 110px 130px 140px 40px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tpl-row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .tpl-row { grid-template-columns: 1fr 1fr; } .tpl-row .tpl-label { grid-column: 1 / -1; } }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Pescarias ---------- */
.trips-layout { display: grid; gap: 18px; }
@media (min-width: 1000px) { .trips-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal .cell {
  aspect-ratio: 1 / 1; min-height: 42px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; font-weight: 700; font-size: 14px; padding: 2px;
}
.cal .cell.out { background: transparent; color: color-mix(in srgb, var(--muted) 55%, transparent); }
.cal .cell.weekend { background: color-mix(in srgb, var(--sea-soft) 70%, var(--surface)); }
.cal .cell.season::after { content: ""; position: absolute; inset: auto 6px 4px 6px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--sea-2) 35%, transparent); }
.cal .cell.today { border-color: var(--sea); }
.cal .cell:hover { border-color: var(--sea-2); }
.cal .cell .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--accent); }
.cal .cell .mark.planned { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.cal .cell .mark.cancelled { background: var(--muted); }
.cal .cell .fc { width: 7px; height: 7px; border-radius: 50%; }
.cal .cell .fc[class*="t-"] { width: auto; height: auto; background: none; border-radius: 0; font-size: 11px; font-weight: 900; line-height: 1; }
.fc.otimo { background: var(--otimo); } .fc.bom { background: var(--bom); } .fc.arriscado { background: var(--arriscado); } .fc.nao { background: var(--nao); }

.stats-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.trip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trip-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.trip-row:hover { border-color: var(--sea-2); }
.trip-row .when { flex: none; width: 52px; text-align: center; border-radius: 10px; background: var(--sea-soft); color: var(--sea); padding: 6px 0; font-weight: 800; line-height: 1.1; }
.trip-row .when small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.trip-row .info { flex: 1; min-width: 0; }
.trip-row .info .t { font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; background: var(--surface-2); flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Dialog / toast ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
dialog::backdrop { background: rgba(6, 20, 28, .45); backdrop-filter: blur(2px); }
@media (max-width: 640px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; }
}
.dlg { display: grid; gap: 16px; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); overflow: auto; max-height: inherit; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: 12px; min-height: 86px; }
@keyframes sh { to { background-position: -200% 0; } }
.attr { font-size: 12px; color: var(--muted); }
.attr a { color: inherit; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- v2: abas novas ---------- */
.lbl-long { display: none; }
@media (min-width: 900px) { .lbl-long { display: inline; } .lbl-short { display: none; } }
.tab { min-width: 0; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.link { color: var(--sea); font-weight: 700; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.wa:hover { filter: brightness(1.06); background: #1fa855; }
.btn.on-dark { color: #fff; }
.btn.on-dark:hover { background: rgba(255,255,255,.12); }
.icon-btn.primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.icon-btn { flex: none; font-weight: 800; font-size: 18px; }
.check-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; }
.check-field input { width: 22px !important; height: 22px; min-height: 0 !important; accent-color: var(--sea); flex: none; }
.banner svg, .info-bit svg, .small svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* Previsão: pontos */
.spot-select { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; padding: 0 10px; background: var(--surface); min-height: 34px; }
.spot-select svg { width: 16px; height: 16px; fill: none; stroke: var(--sea); stroke-width: 2; }
.spot-select select { border: 0; background: none; font-weight: 700; font-size: 13px; padding: 6px 0; max-width: 46vw; color: var(--ink); }
.map { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); z-index: 0; }
@media (min-width: 900px) { .map { height: 420px; } }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.result { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.result:hover { border-color: var(--sea-2); }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.spot-row { display: flex; gap: 6px; align-items: center; }
.spot-main { flex: 1; display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.spot-main > span:last-child { display: grid; min-width: 0; }
.spot-row.active .spot-main { border-color: var(--sea); background: var(--sea-soft); }
.spot-pin svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; }
.spot-dot { border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.spot-dot.active { background: #034466; box-shadow: 0 0 0 3px var(--accent), 0 1px 4px rgba(0,0,0,.4); }
.spot-dot.pending { background: #fff; border-color: var(--accent); }
.map-pop { font: 13px/1.5 Manrope, system-ui, sans-serif; display: grid; gap: 6px; }
.map-pop .btn { color: #fff; }
.leaflet-container { font-family: Manrope, system-ui, sans-serif; }

/* Agendar */
.cal .cell.past { opacity: .8; }
.cal .cell .mark.planned { font-size: 11px; font-weight: 800; }
.legend .lg-done { background: var(--accent); border-radius: 50%; }
.legend .lg-planned { border: 2px solid var(--accent); border-radius: 50%; }
.up-row { display: grid; gap: 10px; padding: 14px; }
.up-row svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 14px; }
.person input { accent-color: var(--sea); width: 18px; height: 18px; margin: 0; }
.person:has(input:checked) { border-color: var(--sea); background: var(--sea-soft); }
.invite { border-top: 1px solid var(--line); padding-top: 14px; }
.invite-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.invite-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.msg { white-space: pre-wrap; font: 13px/1.5 Manrope, system-ui, sans-serif; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; margin: 8px 0 0; }

/* Pescarias */
.pesc-layout { display: grid; gap: 18px; }
@media (min-width: 1000px) { .pesc-layout { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: start; } }
.show-mobile { display: none; margin-bottom: 8px; }
@media (max-width: 999px) { .hide-mobile { display: none; } .show-mobile { display: inline-flex; } }
.trip-row.active { border-color: var(--sea); background: var(--sea-soft); }
.info-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.info-bit { display: inline-flex; gap: 6px; align-items: center; }
.report { display: grid; gap: 12px; }
@media (min-width: 700px) { .report { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-card h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.report-card h3 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.forgot-card { border-color: color-mix(in srgb, var(--nao) 45%, var(--line)); }
.forgot-card h3 { color: var(--nao); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; }
.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.plain li:last-child { border-bottom: 0; }
.qty { font-size: 13px; font-weight: 700; color: var(--sea); }
.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pack { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid transparent; }
.pack:hover { background: var(--surface-2); }
.pack-toggle { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: transparent; }
.pack-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pack.is-done .pack-toggle { background: var(--otimo); border-color: var(--otimo); color: #fff; }
.pack.is-forgot { border-color: color-mix(in srgb, var(--nao) 40%, transparent); background: color-mix(in srgb, var(--nao) 7%, transparent); }
.pack-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pack-label { font-weight: 700; font-size: 15px; }

/* Checklist-mestre */
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper .icon-btn { width: 34px; height: 34px; }
.ck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ck-row { display: flex; align-items: center; gap: 6px; }
.ck-main { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 10px; }
.ck-main:hover { background: var(--surface-2); }
.ck-label { font-weight: 700; font-size: 15px; }
.ck-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.ck-row .icon-btn { width: 32px; height: 32px; border-color: transparent; background: none; }
.ck-row .icon-btn:hover { border-color: var(--line); color: var(--nao); }
.ck-add { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ck-add .input { min-height: 38px; }

/* Ajustes: time */
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.member { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.member:hover { border-color: var(--sea-2); }
.member > span:last-child { display: grid; min-width: 0; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.person-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink); }
.person-chip svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; border: 2px solid var(--line); fill: none; stroke: transparent; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.person-chip[aria-pressed="true"] { border-color: var(--sea); background: var(--sea-soft); }
.person-chip[aria-pressed="true"] svg { background: var(--otimo); border-color: var(--otimo); stroke: #fff; }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search-field .input { padding-left: 38px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pager .btn[disabled] { opacity: .45; cursor: default; }
.syncbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 1180px; margin: 12px auto 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--arriscado) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--arriscado) 45%, var(--line)); font-size: 13.5px; }
.syncbar[hidden] { display: none; }
.syncbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 899px) { .syncbar { margin: 10px 16px 0; } }
.picker { display: grid; gap: 10px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--sea-soft); border: 1px solid var(--sea); font-weight: 700; font-size: 14px; color: var(--ink); }
.picked-chip button { border: 0; background: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.picked-chip button:hover { background: color-mix(in srgb, var(--nao) 15%, transparent); color: var(--nao); }
.picked-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pick-results { display: grid; gap: 6px; }
.pick-list { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pick-option { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.pick-option:hover { border-color: var(--sea-2); }
.pick-option > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.pick-option svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--sea); stroke-width: 2.4; stroke-linecap: round; }
/* Pescarias: cards, filtros, detalhe */
.summary-row { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-row .stat.wide { grid-column: 1 / -1; }
@media (min-width: 1000px) { .summary-row { grid-template-columns: repeat(3, minmax(0, 160px)) minmax(0, 1fr); } .summary-row .stat.wide { grid-column: auto; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 14px; }
.filters .field { min-width: 150px; flex: 1 1 150px; }
.filters .field.grow { flex: 2 1 220px; }
.filters select, .filters input { min-height: 38px !important; font-size: 14px !important; }
.trip-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.trip-card { width: 100%; height: 100%; display: flex; gap: 14px; text-align: left; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); transition: border-color .12s, transform .12s; }
.trip-card:hover { border-color: var(--sea-2); transform: translateY(-1px); }
.trip-card.upcoming { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.trip-card.cancelled { opacity: .65; }
.tc-date { flex: none; width: 58px; border-radius: 12px; background: var(--sea-soft); color: var(--sea); display: grid; align-content: center; justify-items: center; padding: 8px 0; line-height: 1.05; align-self: flex-start; }
.tc-date b { font-size: 24px; font-weight: 800; }
.tc-date span { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tc-date small { font-size: 11px; font-weight: 700; opacity: .75; margin-top: 2px; }
.upcoming .tc-date { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.tc-body { flex: 1; min-width: 0; display: grid; gap: 7px; align-content: start; }
.tc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-top .t { font-weight: 800; font-size: 16px; }
.tc-meta { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tc-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.tc-people { display: grid; gap: 6px; min-width: 0; padding: 2px 0; }
.tc-people-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatars { display: flex; gap: 4px; flex: none; }
.avatars .avatar.sm { width: 28px; height: 28px; font-size: 10.5px; letter-spacing: .02em; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.avatars .avatar.more { background: var(--surface-2); color: var(--muted); }
.tc-count { font-size: 13.5px; font-weight: 800; }
.tc-people .names { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-catch { font-size: 13.5px; font-weight: 600; }
.tc-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.tc-foot .bad { color: var(--nao); font-weight: 700; }
.back { padding-left: 6px; }
.trip-detail { display: grid; gap: 16px; }
@media (min-width: 1100px) {
  .trip-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
  .td-head { grid-column: 1 / -1; }
}
/* papéis, presença, custos */
.ok { color: var(--otimo); } .warn { color: var(--arriscado); } .bad { color: var(--nao); }
.warn-text { color: var(--arriscado); }
.rsvp { width: 100%; }
.rsvp button { flex: 1; padding: 10px 12px; font-size: 14px; }
.rsvp button[aria-pressed="true"][data-v="yes"] { background: var(--otimo); color: #fff; }
.rsvp button[aria-pressed="true"][data-v="maybe"] { background: var(--arriscado); color: #1c1200; }
.rsvp button[aria-pressed="true"][data-v="no"] { background: var(--nao); color: #fff; }
.rsvp-lists { display: grid; gap: 4px; }
.assignee { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.assignee select { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 3px 6px; font-size: 13px; font-weight: 600; }
.expense-form { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.expense-form .ef-label, .expense-form .ef-payers { grid-column: 1 / -1; }
.expense-form .ef-amount { font-variant-numeric: tabular-nums; font-weight: 700; }
.expense-form .ef-btn { grid-row: 2; grid-column: 2; }
.expense-form .ef-payers { grid-row: 3; border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ef-payers legend { padding: 0; margin-bottom: 8px; line-height: 1.4; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pay-chip { position: relative; }
.pay-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 14px; }
.pay-chip input:checked + span { background: var(--sea); border-color: var(--sea); color: var(--surface); }
.pay-chip input:checked + span::before { content: "✓"; }
.pay-chip input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.ef-preview { margin: 0; color: var(--sea); font-weight: 700; }
.ef-preview:empty { display: none; }
.expenses li { align-items: center; }
.transfers li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.transfers li:last-child { border-bottom: 0; }
.link-code { display: block; word-break: break-all; font-size: 12.5px; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.access-block { border-top: 1px solid var(--line); padding-top: 14px; }
.bulk li { padding: 6px 0; border-bottom: 1px solid var(--line); }
div.member { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
div.ck-main { cursor: default; }
/* paginação: respiro em relação à lista */
.pager { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Início · Meus pontos */
.home-controls { display: grid; gap: 10px; padding: 12px; }
.home-controls .seg { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
.home-controls .seg button { flex: 1; white-space: nowrap; display: grid; justify-items: center; gap: 0; }
.home-controls .seg small { font-size: 11px; font-weight: 600; opacity: .75; }
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pcard { display: grid; gap: 12px; align-content: start; border-top: 4px solid var(--line); }
.pcard.t-good { border-top-color: var(--otimo); } .pcard.t-warn { border-top-color: var(--arriscado); } .pcard.t-bad { border-top-color: var(--nao); } .pcard.t-neutral { border-top-color: var(--sea-2); }
.pc-head h2 { font-size: 18px; }
.state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15.5px; }
.state-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: var(--info); flex: none; }
.state.good b { color: var(--otimo); } .state.good .state-ic { background: var(--otimo); }
.state.warn b { color: var(--arriscado); } .state.warn .state-ic { background: var(--arriscado); color: #1c1200; }
.state.bad b { color: var(--nao); } .state.bad .state-ic { background: var(--nao); }
.state.neutral b { color: var(--sea); } .state.neutral .state-ic { background: var(--sea-2); }
.state.muted b { color: var(--muted); }
.tag.good { background: color-mix(in srgb, var(--otimo) 16%, transparent); color: var(--otimo); }
.pc-lines { display: grid; gap: 6px; font-size: 14px; }
.pc-lines.sep { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; }
.pc-lines > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.pc-lines .lbl { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pc-why { margin: 0; font-size: 13.5px; color: var(--muted); }
.day-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ds { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); }
.ds b { font-size: 12px; }
.ds.good b { color: var(--otimo); } .ds.warn b { color: var(--arriscado); } .ds.bad b { color: var(--nao); } .ds.neutral b { color: var(--sea); }
.ds.on { border-color: var(--sea); background: var(--sea-soft); color: var(--ink); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.next-trip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--ink); padding: 14px 16px; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.next-trip > span:nth-child(2) { flex: 1; display: grid; }
.next-trip svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }

/* detalhe do ponto */
.spot-detail { display: grid; gap: 20px; margin-top: 8px; }
.sd-col { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1100px) { .spot-detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .sd-a { grid-column: 1 / -1; } }
.map.mini { height: 200px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 0; }
.facts dt { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.hours { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
table.hours th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 800; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.hours td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.hours tr.in-period td { background: var(--sea-soft); font-weight: 700; }
.reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reports li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.why { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.sched-fc { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--line); }
.sched-fc.good { border-left-color: var(--otimo); } .sched-fc.warn { border-left-color: var(--arriscado); } .sched-fc.bad { border-left-color: var(--nao); } .sched-fc.neutral { border-left-color: var(--sea-2); }

.home-controls .seg.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
.home-controls .seg.periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
@media (max-width: 520px) {
  .home-controls .seg button { padding: 7px 2px; font-size: 12.5px; }
  .home-controls .seg small { font-size: 10px; }
  .pc-lines > div { grid-template-columns: 1fr; gap: 0; }
}

/* etapas 2 e 3 do guia */
.region-start { border: 1.5px dashed var(--sea); }
.region-start h2 { margin: 0; }
.banner.alert { color: var(--ink); border: 1px solid var(--nao); background: color-mix(in srgb, var(--nao) 9%, var(--surface)); }
.banner.alert b { display: inline-flex; gap: 6px; align-items: center; color: var(--nao); }
.tag.ok { background: color-mix(in srgb, var(--otimo) 16%, transparent); color: var(--otimo); }
.window-pot { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--otimo) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--otimo) 35%, transparent); font-size: 13px; }
.tide-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.tide-x { padding: 6px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.tide-x.high b { color: var(--sea); }
ul.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.rules li.rule { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
fieldset.dirs { border: 0; padding: 0; margin: 0; }
fieldset.dirs legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dir-opt { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.dir-opt:has(input:checked) { background: var(--sea-soft); border-color: var(--sea); color: var(--sea); }
.dir-opt input { margin: 0; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.vs-table td:first-child { font-weight: 600; white-space: nowrap; }
.tides-admin textarea { min-height: 120px; font-family: ui-monospace, monospace; font-size: 13px; }

/* legenda e níveis */
.state-hint { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.lvl { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.lvl-mid { color: var(--arriscado); background: color-mix(in srgb, var(--arriscado) 15%, transparent); }
.lvl-bad { color: var(--nao); background: color-mix(in srgb, var(--nao) 14%, transparent); }
.read-guide h2 { margin: 0; }
.legend-states { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend-states li { display: grid; grid-template-columns: minmax(230px, auto) 1fr; gap: 12px; align-items: center; font-size: 13.5px; }
.legend-states .state { font-size: 14px; }
.legend-limits { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.legend-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; margin: 0; }
.legend-terms dt { font-weight: 700; margin-bottom: 2px; }
.legend-terms dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .legend-states li { grid-template-columns: 1fr; gap: 2px; } }

/* ponto principal */
.pc-head { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 10px; }
.home-star { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.home-star:hover { color: var(--accent); border-color: var(--accent); }
.home-star svg, .home-badge svg, .cal-src svg, .home-uses svg, .hp-ic svg, .btn .star-on { width: 18px; height: 18px; }
.home-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.star-on { color: var(--accent); }
.home-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.home-uses li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.home-uses svg { color: var(--sea-2); flex: none; }
.home-pick { display: grid; gap: 8px; }
.home-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.home-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.home-opt > span { display: grid; }
.home-prompt { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--accent); }
.home-prompt .hp-ic { color: var(--accent); flex: none; }
.home-prompt .btn { margin-left: auto; flex: none; }
.cal-src { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.cal-src > svg { flex: none; color: var(--accent); }
.cal-src .btn { margin-left: auto; flex: none; }
.cal-legend .fc { display: inline-block; width: 14px; text-align: center; margin-right: 4px; font-weight: 900; }
.fc.t-good { color: var(--otimo); } .fc.t-neutral { color: var(--sea); } .fc.t-warn { color: var(--arriscado); } .fc.t-bad { color: var(--nao); } .fc.t-muted { color: var(--muted); }
.state-chip { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); }
.state-chip.t-good { color: var(--otimo); } .state-chip.t-neutral { color: var(--sea); } .state-chip.t-warn { color: var(--arriscado); } .state-chip.t-bad { color: var(--nao); }
.home-row { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); gap: 12px; }
@media (max-width: 640px) { .cal-src, .home-prompt { flex-wrap: wrap; } .cal-src .btn, .home-prompt .btn { margin-left: 0; } }
.home-uses svg, .hp-ic svg, .cal-src > svg:not(.star-on), .home-star svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* voltar maior e mais fácil de tocar */
.btn.back { font-size: 16px; font-weight: 700; min-height: 44px; padding: 10px 14px 10px 8px; gap: 6px; }
.btn.back svg { width: 20px; height: 20px; }

/* colar vários pontos */
.paste-area { min-height: 180px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.paste-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; color: var(--ink); }
.paste-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.paste-list li span:first-of-type { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--muted); }

/* ---------- aba Pontos ---------- */
.spot-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1250px) { .spot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spot-card { display: grid; gap: 12px; align-content: start; }
.spot-card.is-home { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sc-head h2 { font-size: 18px; margin: 0 0 2px; }
.sc-facts { display: grid; gap: 8px; margin: 0; }
.sc-facts > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 14px; }
.sc-facts dt { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sc-facts dd { margin: 0; }
.sc-actions { gap: 8px; }
.pontos-toggle { align-self: flex-start; justify-self: start; width: auto; }
.map.tall { height: 62vh; min-height: 360px; }
.day-strip.week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
table.learn td { white-space: normal; vertical-align: top; }
table.learn td:first-child { white-space: nowrap; }

/* ---------- Início ---------- */
.last-report { display: flex; gap: 12px; align-items: center; }
.last-report .lr-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.last-report .btn { flex: none; }
.change-banner { margin-top: 10px; }
.change-banner svg { margin-right: 4px; }
@media (max-width: 640px) { .last-report { flex-wrap: wrap; } }

/* ---------- registro rápido ---------- */
.seg.big { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); width: 100%; }
.seg.big button { padding: 11px 6px; font-size: 14px; min-height: 44px; }
.quick-report .field { gap: 6px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-row img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.photo-row .ph { position: relative; }
.photo-row .ph .icon-btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.photo-missing { opacity: .4; }
.warn-tag { background: color-mix(in srgb, var(--arriscado) 18%, transparent); color: var(--arriscado); }
.reports li > .stack { min-width: 0; }

/* ---------- Agendar ---------- */
.plan-banner { align-items: center; margin-bottom: 14px; }
.plan-banner svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.plan-banner .btn { margin-left: auto; }
.sched-cmp { margin-top: 10px; }
.sched-cmp summary { cursor: pointer; }
.cmp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cmp-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.cmp-list li .small { grid-column: 1 / -1; }
.sched-fc.t-muted { border-left-color: var(--line); }
.cal .cell .fc.partial { opacity: .5; }
.cal .cell .fc.beyond, .cal-legend .fc.beyond { color: var(--muted); opacity: .6; }
.cal-legend .fc.partial { opacity: .5; }

/* ---------- Pescarias ---------- */
.pend li { font-weight: 500; font-size: 14px; }

/* ---------- Ajustes ---------- */
.section-title { margin: 14px 0 -4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.offline-note { padding: 10px 12px; border-radius: 10px; background: var(--sea-soft); }

/* seis abas no celular */
@media (max-width: 899px) { .tab { font-size: 10.5px; } .tab > svg, .tab-av > svg { width: 22px; height: 22px; } }
label.check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--sea-2); }
.seg.big { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }
@media (max-width: 560px) {
  .quick-report .grid-2 { grid-template-columns: 1fr; }
  .home-prompt .hp-ic { display: none; }
}

/* excluir pesqueiro (admins) */
.pc-tools { display: flex; gap: 6px; flex: none; align-items: center; }
.del-btn:hover { color: var(--nao); border-color: var(--nao); }
.del-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.danger-zone { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.danger-solid { background: var(--nao); border-color: var(--nao); color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); }
.btn.danger-solid svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* ir até o ponto */
.nav-panel { gap: 12px; }
.nav-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.nav-arrow-wrap { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); position: relative; }
.nav-arrow-wrap::before { content: "N"; position: absolute; top: 4px; font-size: 11px; font-weight: 800; color: var(--muted); }
.nav-arrow { width: 74px; height: 74px; fill: var(--accent); transition: transform .35s ease; }
.nav-nums { display: grid; gap: 6px; }
.nav-nums > div, .nav-row > span { display: grid; }
.nav-nums b { font-size: 17px; }
.nav-nums b.big { font-size: 28px; line-height: 1.1; }
.nav-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-map { height: 260px; }
.nav-panel.arrived .nav-arrow-wrap { border-color: var(--otimo); background: color-mix(in srgb, var(--otimo) 15%, var(--surface)); }
@media (max-width: 420px) { .nav-top { grid-template-columns: 96px minmax(0, 1fr); } .nav-arrow-wrap { width: 96px; height: 96px; } .nav-arrow { width: 58px; height: 58px; } .nav-nums b.big { font-size: 23px; } }

/* calendário: escolher pesqueiro e período */
.cal-controls { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .cal-controls { grid-template-columns: minmax(200px, 1fr) minmax(0, 1.6fr); align-items: end; } }
.seg.periods-cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.seg.periods-cal button { display: grid; justify-items: center; padding: 7px 2px; }
.seg.periods-cal small { font-size: 10.5px; font-weight: 600; opacity: .75; }

/* ---------- lista suspensa do app ---------- */
.dd { position: relative; }
.dd-trigger { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.dd-trigger:hover { border-color: color-mix(in srgb, var(--sea-2) 50%, var(--line)); }
.dd.open .dd-trigger, .dd-trigger:focus-visible { border-color: var(--sea-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea-2) 22%, transparent); outline: none; }
.dd-cur { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.dd-chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 8px; list-style: none; max-height: min(420px, 60vh); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(6, 20, 28, .28), 0 2px 8px rgba(6, 20, 28, .12); }
.dd.up .dd-menu { top: auto; bottom: calc(100% + 6px); }
.dd-menu[hidden] { display: none; }
.dd-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; cursor: pointer; outline: none; }
.dd-opt + .dd-opt { margin-top: 2px; }
.dd-opt:hover, .dd-opt:focus-visible { background: var(--surface-2); }
.dd-opt.on { background: color-mix(in srgb, var(--otimo) 12%, var(--surface)); }
.dd-opt.on b { color: color-mix(in srgb, var(--otimo) 70%, var(--ink)); }
.dd-check { width: 22px; height: 22px; margin-left: auto; flex: none; fill: none; stroke: var(--otimo); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.dd-opt.on .dd-check { visibility: visible; }
.dd-sep { height: 0; margin: 8px 6px; border-top: 1px solid var(--line); }
.dd-tile { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.dd-cur .dd-tile { width: 40px; height: 40px; border-radius: 11px; font-size: 13.5px; }
.dd-tile.c0 { background: #f8ead0; color: #7a4a0c; } .dd-tile.c1 { background: #dcefe4; color: #1d6b43; } .dd-tile.c2 { background: #e2ebf7; color: #234f8a; }
.dd-tile.c3 { background: #e9e4f6; color: #4f3b8c; } .dd-tile.c4 { background: #f7e1e4; color: #8a2f3e; } .dd-tile.c5 { background: #dcf0f2; color: #13636b; }
.dd-icon { background: var(--surface-2); color: var(--muted); font-size: 18px; }
.dd-txt { display: grid; gap: 3px; min-width: 0; }
.dd-txt b { font-size: 16px; font-weight: 800; line-height: 1.2; display: flex; align-items: center; gap: 6px; min-width: 0; }
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dd-star { flex: none; width: 16px; height: 16px; color: var(--accent); }
.dd-sub { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.dd-sub > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-badge { flex: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--otimo) 85%, #000); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dd-cur .dd-txt b { font-size: 15.5px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dd-tile.c0 { background: #4a3816; color: #f5d38f; } :root:not([data-theme="light"]) .dd-tile.c1 { background: #1d4430; color: #9ee0b8; }
  :root:not([data-theme="light"]) .dd-tile.c2 { background: #1f3552; color: #a9c8f2; } :root:not([data-theme="light"]) .dd-tile.c3 { background: #33284f; color: #cbbcf3; }
  :root:not([data-theme="light"]) .dd-tile.c4 { background: #4a2229; color: #f2b3be; } :root:not([data-theme="light"]) .dd-tile.c5 { background: #173f44; color: #98dfe6; }
  :root:not([data-theme="light"]) .dd-menu { box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
}
:root[data-theme="dark"] .dd-tile.c0 { background: #4a3816; color: #f5d38f; } :root[data-theme="dark"] .dd-tile.c1 { background: #1d4430; color: #9ee0b8; }
:root[data-theme="dark"] .dd-tile.c2 { background: #1f3552; color: #a9c8f2; } :root[data-theme="dark"] .dd-tile.c3 { background: #33284f; color: #cbbcf3; }
:root[data-theme="dark"] .dd-tile.c4 { background: #4a2229; color: #f2b3be; } :root[data-theme="dark"] .dd-tile.c5 { background: #173f44; color: #98dfe6; }
:root[data-theme="dark"] .dd-menu { box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.dd-menu { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; }
.dd-opt b { color: var(--ink); }

/* ---------- calendário com mais respiro ---------- */
.cal-card { padding: 22px; container: cal / inline-size; }
.agenda-layout { display: grid; gap: 20px; }
@media (min-width: 1180px) { .agenda-layout { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); align-items: start; } }
.cal-controls { display: grid; gap: 16px; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cal-controls .field { gap: 8px; align-content: start; }
@container cal (min-width: 640px) { .cal-controls { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr); align-items: start; gap: 20px; } }
.seg.periods-cal { min-height: 58px; padding: 4px; gap: 4px; }
.seg.periods-cal button { padding: 8px 4px; gap: 2px; font-size: 13.5px; }
.cal-head { margin-bottom: 18px; }
.cal-head h2 { font-size: 20px; margin: 0; }
.cal { gap: 8px; }
.cal .dow { padding: 2px 0 6px; font-size: 12px; }
.cal .cell { border-radius: 12px; gap: 0; padding: 8px 2px 10px; justify-content: flex-start; min-height: 52px; }
.cal .cell .cell-n { font-size: 15px; line-height: 1.2; margin-top: auto; }
.cal .cell .cell-m { min-height: 22px; margin-bottom: auto; padding-top: 4px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.cal .cell .fc[class*="t-"] { font-size: 12.5px; }
.cal-foot { display: grid; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cal-src { padding: 14px 16px; border-radius: 12px; gap: 12px; }
.cal-legend-grid { display: grid; gap: 16px; }
@container cal (min-width: 640px) { .cal-legend-grid { grid-template-columns: 1.5fr 1fr; gap: 24px; } }
.lg-title { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal-legend { gap: 10px 18px; font-size: 13px; }
.cal-legend > span { display: inline-flex; align-items: center; }
@media (max-width: 560px) {
  .cal-card { padding: 16px 14px; }
  .cal { gap: 5px; }
  .cal .cell { min-height: 46px; padding: 6px 1px 8px; border-radius: 10px; }
  .cal .cell .cell-n { font-size: 14px; }
  .seg.periods-cal button { font-size: 12px; }
}

.seg.periods-cal button { white-space: nowrap; }
.seg.periods-cal button span { white-space: nowrap; }
.dd-cur .dd-badge + span { display: none; }
@media (max-width: 560px) {
  .cal .cell { aspect-ratio: auto; min-height: 60px; padding: 8px 1px 12px; }
  .cal .cell.season::after { bottom: 5px; }
}

/* ---------- os quatro horários em cada cartão ---------- */
.prow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pcell { display: grid; justify-items: center; gap: 1px; padding: 8px 4px 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; text-align: center; min-width: 0; }
button.pcell { cursor: pointer; }
button.pcell:hover { border-color: color-mix(in srgb, var(--sea-2) 55%, var(--line)); }
.pcell.on { border-color: var(--sea); background: var(--sea-soft); box-shadow: inset 0 0 0 1px var(--sea); }
.pcell .pc-name { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pcell .pc-h { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.pcell .pc-ic { font-size: 15px; font-weight: 900; line-height: 1.3; margin-top: 2px; }
.pcell .pc-n { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pcell.t-good .pc-ic { color: var(--otimo); } .pcell.t-neutral .pc-ic { color: var(--sea); } .pcell.t-warn .pc-ic { color: var(--arriscado); } .pcell.t-bad .pc-ic { color: var(--nao); } .pcell.t-muted .pc-ic { color: var(--muted); }
.sc-today { grid-template-columns: 1fr !important; gap: 6px !important; }
.sd-when .day-strip .ds.on { border-color: var(--sea); background: var(--sea-soft); color: var(--ink); }
/* topo do Início sempre à mão ao rolar a lista */
.home-controls { position: sticky; top: 8px; z-index: 15; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 6px 18px rgba(6, 20, 28, .18); }
@media (max-width: 420px) { .pcell .pc-name { font-size: 11.5px; } .pcell .pc-n { font-size: 10px; } .prow { gap: 4px; } }

.pcell .pc-n + .pc-n { margin-top: -1px; }
@media (max-width: 560px) {
  .day-strip.week { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .day-strip.week .ds { flex: 0 0 64px; scroll-snap-align: start; }
}
.spot-detail { grid-template-columns: minmax(0, 1fr); }
.spot-detail > *, .sd-col > * { min-width: 0; }
@media (min-width: 1100px) { .spot-detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.stack > * { min-width: 0; }

/* ---------- marca em destaque e alternar claro/escuro ---------- */
.topbar { padding: 14px 16px 2px; gap: 12px; }
.topbar img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea-2) 30%, transparent), 0 6px 16px rgba(6, 20, 28, .25); }
.tb-name { display: grid; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--sea); line-height: 1.1; }
.tb-name small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.topbar .theme-toggle { margin-left: auto; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; justify-content: center; }
.theme-toggle:hover { border-color: var(--sea-2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.theme-toggle .ic-moon { display: none; }
.theme-toggle[data-mode="light"] .ic-moon { display: block; }
.theme-toggle[data-mode="light"] .ic-sun { display: none; }
.topbar .theme-toggle .tt-label { display: none; }
.nav-theme { display: none; }
@media (min-width: 900px) {
  .brand { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 6px 26px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .brand img { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea-2) 28%, transparent), 0 12px 28px rgba(6, 20, 28, .3); margin-bottom: 6px; }
  .brand .brand-name { font-size: 23px; font-weight: 800; letter-spacing: -.01em; color: var(--sea); }
  .brand .brand-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .nav-theme { display: block; margin-top: auto; padding: 0 2px; }
  .nav-theme .theme-toggle { width: 100%; justify-content: flex-start; padding: 0 12px; }
  .nav .sync { margin-top: 8px; }
}

/* ---------- carregando / erro ao abrir ---------- */
.boot { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.boot-logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea-2) 25%, transparent), 0 12px 28px rgba(6, 20, 28, .3); animation: boot-pulse 1.8s ease-in-out infinite; }
.boot .btn { margin-top: 6px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--sea-2) 25%, transparent); border-top-color: var(--sea-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes boot-pulse { 50% { transform: scale(1.04); } }
/* atualizando por trás: barra fina no topo */
body.is-syncing::before { content: ""; position: fixed; z-index: 60; top: 0; left: 0; height: 3px; width: 35%; background: var(--sea-2); border-radius: 0 3px 3px 0; animation: sync-bar 1.1s ease-in-out infinite; }
@keyframes sync-bar { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .boot-logo, .spinner, body.is-syncing::before { animation: none; } }

/* ---------- pontos da pescaria ---------- */
.tc-spots { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; }
.tc-spots svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; }
.tc-spots.muted svg { stroke: var(--muted); }
.trip-spots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-link { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.ts-link > span:last-child { display: grid; }
.dd-tile.sm-tile { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.spot-checks { display: grid; gap: 6px; max-height: 55vh; overflow: auto; }
.spot-check { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.spot-check[hidden] { display: none; }
.spot-check > span:last-child { display: grid; }
.spot-check input { width: 20px; height: 20px; flex: none; accent-color: var(--sea-2); }
.spot-check:has(input:checked) { border-color: var(--sea-2); background: color-mix(in srgb, var(--sea-2) 10%, var(--surface)); }
.more-spots summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--sea-2); }
.chip-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip-check input { margin: 0; accent-color: var(--sea-2); }
.chip-check:has(input:checked) { border-color: var(--sea-2); background: color-mix(in srgb, var(--sea-2) 12%, var(--surface)); }

/* ---------- lista de vários (pontos da pescaria) ---------- */
.dd-chosen { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.dd-chip { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.dd-chip.main { border-color: color-mix(in srgb, var(--otimo) 55%, var(--line)); background: color-mix(in srgb, var(--otimo) 8%, var(--surface)); }
.dd-chip .dd-tile { width: 40px; height: 40px; border-radius: 11px; font-size: 13.5px; }
.dd-chip .dd-txt { flex: 1; }
.dd-chip-btn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.dd-chip-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dd-chip-btn:hover { color: var(--accent); border-color: var(--accent); }
.dd-chip-btn.x:hover { color: var(--nao); border-color: var(--nao); }
.dd-add { border-style: dashed; }
.dd-add .dd-icon { font-size: 22px; font-weight: 600; color: var(--sea-2); }
.dd-done { position: sticky; bottom: -8px; display: flex; justify-content: flex-end; padding: 8px 4px 2px; background: var(--surface); }
.sched-add { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
/* nomes dos horários sempre inteiros: a letra se ajusta à largura de cada quadrinho */
.pcell { container-type: inline-size; padding-left: 3px; padding-right: 3px; }
.pcell .pc-name { font-size: clamp(10px, 16.5cqi, 13px); letter-spacing: -.01em; max-width: 100%; overflow: hidden; text-overflow: clip; }
.pcell .pc-h, .pcell .pc-n { font-size: clamp(9.5px, 14.5cqi, 11px); }
/* celular: último relato com o botão embaixo, e as 6 abas sem cortar "Pescarias" */
@media (max-width: 640px) {
  .last-report { flex-direction: column; align-items: stretch; gap: 10px; }
  .last-report .lr-main { flex: none; }
  .last-report .btn { align-self: flex-start; }
}
@media (max-width: 400px) {
  .nav .tab { font-size: 10px; letter-spacing: -.01em; padding: 0 1px; }
  .nav .tab span { text-overflow: clip; }
}

/* dentro das janelas, a lista abre no próprio fluxo (a janela rola) em vez de ficar presa por cima */
dialog .dd-menu { position: static; margin-top: 8px; max-height: min(460px, 58vh); box-shadow: none; border-radius: 16px; }
dialog .dd.up .dd-menu { margin-top: 8px; }

/* ---------- coordenadas com copiar ---------- */
.coords { display: grid; gap: 4px; margin-top: 6px; }
.coord-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coord-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 56px; }
.coord-line code { font-family: ui-monospace, Menlo, monospace; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--surface-2); padding: 3px 8px; border-radius: 8px; }
.copy-btn { width: 34px; height: 34px; }
.copy-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- gráfico de vento: tocar na barra ---------- */
.chart-wrap { display: grid; gap: 6px; }
.chart-tip { min-height: 22px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover, .chart .hit.sel { fill: color-mix(in srgb, var(--ink) 10%, transparent); }

/* ---------- formulários no celular: nada sai da tela e o iPhone não dá zoom ao tocar ---------- */
.grid-2 > *, .grid-3 > * { min-width: 0; }
.field input, .field select, .field textarea, .input { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
input[type="time"], input[type="date"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; min-width: 0; text-align: left; }
input[type="time"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; }
dialog .dlg { overflow-x: hidden; }
dialog form { min-width: 0; }
@media (max-width: 899px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }
}
@media (max-width: 480px) {
  dialog .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- níveis de acesso: admin, gerente, usuário ---------- */
.banner.view-only { background: var(--surface-2); color: var(--muted); }
.banner.view-only svg { color: var(--sea); }
.review-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.review-box > b { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.review-box svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.review-box ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.review-box .btn svg { stroke: currentColor; width: 16px; height: 16px; }
.banner.review-wait { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.chips-ro { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-ro { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pack-toggle.ro { cursor: default; }
.pack.is-done .pack-toggle.ro { background: var(--otimo); border-color: var(--otimo); color: #fff; }
.ck-row.pending { border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, transparent); padding: 4px 6px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.ck-row.pending .ck-label { font-style: italic; }
.ck-row.pending .icon-btn { flex: none; }
.role-pick { display: grid; gap: 8px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--ink); font-weight: 500; }
.role-opt input { margin-top: 3px; accent-color: var(--sea); flex: none; width: 18px; height: 18px; }
.role-opt > span { display: grid; gap: 2px; min-width: 0; }
.role-opt:has(input:checked) { border-color: var(--sea); background: var(--sea-soft); }
.role-opt:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.home-badge.ro { cursor: default; }
.admin-pending .row { margin-top: 2px; }
.day-view > .card { box-shadow: none; background: var(--surface-2); }
.day-view .small svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; }
.review-wait svg { margin-right: 6px; color: var(--accent); }

/* ---------- aba selecionada mais clara (pílula atrás do ícone, rótulo forte) ---------- */
@media (max-width: 899px) {
  .tab > svg, .tab-av { box-sizing: content-box; padding: 4px 16px; border-radius: 999px; transition: background .18s, color .18s; }
  .tab span { transition: color .18s; }
  .tab[aria-current="page"] { color: var(--sea); }
  .tab[aria-current="page"] > svg, .tab[aria-current="page"] .tab-av { background: var(--sea-soft); stroke-width: 2.2; }
  .tab[aria-current="page"] span { font-weight: 800; color: var(--ink); }
  .tab:not([aria-current="page"]) { color: color-mix(in srgb, var(--muted) 85%, transparent); }
  /* iOS dá zoom em campos com letra menor que 16px e o zoom deixa a barra de abas fora do lugar */
  input, select, textarea, .input { font-size: 16px !important; }
}

/* ---------- rede: internet lenta, sem internet, fotos subindo ---------- */
.netpill { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.netpill[hidden] { display: none; }
.netpill.off { background: color-mix(in srgb, var(--nao) 88%, #000); color: #fff; }
.netpill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.np-spin { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
.netpill .np-spin { margin-right: 0; }
.btn.is-busy, button.is-busy { opacity: .8; cursor: progress; }
[aria-busy="true"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .np-spin { animation: none; } }

/* ---------- presença ---------- */
.seg.rsvp { display: flex; flex-wrap: nowrap; width: 100%; }
.seg.rsvp button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; font-size: 14px; }
.seg.rsvp button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.seg.rsvp .rsvp-yes[aria-pressed="true"] { background: var(--otimo); color: #fff; }
.seg.rsvp .rsvp-maybe[aria-pressed="true"] { background: var(--arriscado); color: #1d1300; }
.seg.rsvp .rsvp-no[aria-pressed="true"] { background: var(--nao); color: #fff; }
.seg.rsvp button[aria-disabled="true"] { opacity: .45; text-decoration: line-through; }
.seg.rsvp.compact button { min-height: 34px; font-size: 13px; padding: 5px 8px; }
.seg.rsvp.busy { opacity: .7; pointer-events: none; }
.rsvp-note b { color: var(--ink); }
.rsvp-note b.bad { color: var(--nao); }

/* ---------- capturas ---------- */
.fish-ill { display: block; flex: none; overflow: visible; }
.catch-picker { gap: 10px; }
.catch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.catch-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 600; }
.catch-row .cr-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.catch-row .cr-main > b { font-size: 15px; }
.catch-row .cr-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catch-row .stepper { gap: 4px; }
.catch-row .stepper input { width: 40px; text-align: center; border: 0; background: none; font-weight: 800; color: var(--ink); padding: 0; }
.catch-row .stepper .icon-btn { font-size: 18px; font-weight: 800; line-height: 1; }
.cr-kg { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.cr-kg input { width: 64px; min-height: 34px; padding: 4px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.cr-name { min-height: 36px !important; }
.catch-row.flash, .flash { animation: flash 1s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.fish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 268px; overflow-y: auto; padding: 2px; }
.fish-opt { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; }
.fish-opt:active, .fish-opt:hover { border-color: var(--sea); background: var(--sea-soft); }
.fish-more { grid-column: 1 / -1; }
.catch-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.catch-tiles li { display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.catch-tiles b { font-size: 14px; }
.catch-empty { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
.tc-catch { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tc-fish-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.tc-fish-chip b { font-weight: 800; }
.tc-fish-chip.more { padding: 4px 10px; color: var(--muted); }

/* ---------- registros da pescaria (fotos, relatos, capturas) ---------- */
.records { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--sea) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sea) 18%, var(--line)); }
.rec-title { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; }
.rec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rec-chip svg { width: 16px; height: 16px; fill: none; stroke: var(--sea); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rec-photos { display: flex; gap: 6px; }
.rec-photos img, .rec-more { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.rec-more { font: inherit; font-weight: 800; color: var(--sea); cursor: pointer; }
.rec-mini { color: var(--sea); font-weight: 700; }
#trip-reports, #trip-catches, #presenca { scroll-margin-top: 90px; }
img.photo-loading { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 60%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
img.photo-missing { cursor: pointer; outline: 1px dashed var(--nao); }
svg.scrub { touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.scrub-cursor[hidden] { display: none; }
.scrub-cursor line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.scrub-cursor circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.tide-scrub .chart-tip { font-variant-numeric: tabular-nums; }

/* ---------- ficha do ponto: barra fixa com nome, dia e horário ---------- */
.sd-float { position: fixed; z-index: 30; left: 0; right: 0; top: 0; padding: calc(8px + env(safe-area-inset-top)) 12px 10px; display: grid; gap: 7px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(6, 20, 28, .16);
  transform: translateY(-110%); transition: transform .22s ease; }
.sd-float.show { transform: none; }
.sdf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.sdf-top b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sdf-top span { flex: none; }
.sd-float .seg { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sd-float:not(.full) .seg { display: none; }
.sd-float.full .seg { animation: sdf-in .18s ease; }
@keyframes sdf-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sd-float .seg::-webkit-scrollbar { display: none; }
.sd-float .seg button { flex: 1; white-space: nowrap; padding: 6px 8px; font-size: 12.5px; }
@media (min-width: 900px) { .sd-float { left: 236px; padding: 10px 36px; } .sd-float > * { max-width: 1108px; width: 100%; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .sd-float { transition: none; } }
img.photo-missing { font-size: 0; color: transparent; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2453a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6M20 4v4h-4'/%3E%3C/svg%3E") center / 26px no-repeat; }
.fish-warn { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--arriscado); }
.fish-warn svg { width: 14px; height: 14px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }

.exp-split { display: block; color: var(--muted); margin-top: 4px; }
.exp-split svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; margin-right: 5px; }
.exp-split .link-btn { margin-left: 4px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--sea); text-decoration: underline; cursor: pointer; }
.expense-form .ef-split { grid-column: 1 / -1; border: 0; margin: 0; padding: 12px; border-radius: 12px; min-width: 0; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); display: grid; gap: 8px; }
.expense-form .ef-split[hidden] { display: none; }
.expense-form .ef-split { grid-row: 4; }
.ef-split legend { padding: 0; float: left; width: 100%; margin-bottom: 8px; line-height: 1.4; }
.ef-split-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ef-split-seg label { position: relative; flex: 1 1 160px; }
.ef-split-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ef-split-seg span { display: block; text-align: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.ef-split-seg input:checked + span { background: var(--sea); border-color: var(--sea); color: var(--surface); }
.ef-split-seg input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ---------- cabeçalho dos cartões de ponto: ícone, nome, ações ---------- */
.spot-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin: -18px -18px 2px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.pcard > .spot-head { border-radius: 0; }
.sh-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); flex: none; }
.sh-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spot-head.is-home .sh-ic { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.sh-txt { min-width: 0; display: grid; gap: 2px; }
.sh-txt h2 { margin: 0; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.sh-meta { font-size: 13px; color: var(--muted); line-height: 1.35; }
.sh-home { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; }
.sh-home svg { width: 13px; height: 13px; }
.sh-sep { margin: 0 5px; }
.sh-tools { display: flex; gap: 6px; align-items: center; align-self: start; }
.sh-tools .home-star { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); }
.home-star.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.home-star.on svg { width: 19px; height: 19px; }
.home-star.ro { cursor: default; }
.spot-card.is-home { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
/* no Início a faixa de cima continua com a cor da condição; só as laterais destacam o ponto principal */
.pcard:has(.spot-head.is-home) { border-left-color: color-mix(in srgb, var(--accent) 45%, var(--line)); border-right-color: color-mix(in srgb, var(--accent) 45%, var(--line)); border-bottom-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (max-width: 380px) { .sh-ic { width: 34px; height: 34px; border-radius: 10px; } .spot-head { gap: 10px; padding-left: 14px; } }

/* ---------- celular com 5 abas (Lanchas, Checklist e Ajustes ficam em "Mais"); no computador, todas no menu ---------- */
@media (max-width: 899px) { .tab-desk { display: none !important; } }
@media (min-width: 900px) { .tab-mob { display: none !important; } }

/* ======================= Lanchas ======================= */
.boat-grid, .gear-grid, .prod-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.boat-card { display: grid; gap: 0; padding: 0; overflow: hidden; }
.bc-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 0; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.bc-main:hover { background: var(--surface-2); }
.bc-photo, .bh-photo { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--sea-soft); }
.bh-photo { width: 84px; height: 84px; border-radius: 16px; }
.bc-photo img, .bh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-ic { color: var(--sea); display: grid; place-items: center; }
.bc-ic svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bc-txt { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.bc-txt b { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.bc-go { font-size: 26px; color: var(--muted); }
.bc-facts { list-style: none; margin: 0; padding: 12px 16px 14px; display: grid; gap: 8px; }
.bc-facts li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.bc-facts li svg, .tb-log svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bc-facts li.bad { color: var(--nao); } .bc-facts li.warn { color: var(--arriscado); } .bc-facts li.muted { color: var(--muted); }
.bstat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.bstat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bstat.s-disponivel { color: var(--otimo); background: color-mix(in srgb, var(--otimo) 14%, transparent); }
.bstat.s-reservada { color: var(--arriscado); background: color-mix(in srgb, var(--arriscado) 16%, transparent); }
.bstat.s-manutencao { color: var(--nao); background: color-mix(in srgb, var(--nao) 14%, transparent); }
.seed-row > span { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.seed-row > span > svg { width: 28px; height: 28px; flex: none; color: var(--sea); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seed-row > span > span { display: grid; gap: 2px; }
.buy-list li, .blist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.buy-list li:last-child, .blist li:last-child { border-bottom: 0; }
.blist li > span:first-child { display: grid; gap: 3px; min-width: 0; }
.linkrow { display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.linkrow:hover b { text-decoration: underline; }
/* ficha */
.boat-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.bh-txt { display: grid; gap: 4px; min-width: 0; }
.bh-txt h1 { margin: 0; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.bh-actions { display: flex; gap: 8px; flex-wrap: wrap; align-self: start; justify-content: flex-end; }
@media (max-width: 640px) { .boat-head { grid-template-columns: auto minmax(0, 1fr); } .bh-actions { grid-column: 1 / -1; justify-content: flex-start; } .bh-photo { width: 64px; height: 64px; } .bh-txt h1 { font-size: 21px; } }
.boat-tabs { margin: 14px 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.boat-tabs::-webkit-scrollbar { display: none; }
.boat-tabs button { white-space: nowrap; flex: 1 0 auto; }
.boat-body { display: grid; gap: 14px; }
.btiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.btile { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
button.btile { cursor: pointer; } button.btile:hover { border-color: var(--sea); }
.btile b { font-size: 18px; line-height: 1.2; }
.bt-k { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.btile.warn { border-color: color-mix(in srgb, var(--arriscado) 55%, var(--line)); background: color-mix(in srgb, var(--arriscado) 8%, var(--surface)); }
.btile.bad { border-color: color-mix(in srgb, var(--nao) 55%, var(--line)); background: color-mix(in srgb, var(--nao) 8%, var(--surface)); }
.btile.warn b { color: var(--arriscado); } .btile.bad b { color: var(--nao); }
.mini-list { display: grid; gap: 6px; }
.mini-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; }
.prod-card.is-low { border-color: color-mix(in srgb, var(--nao) 45%, var(--line)); }
.pr-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.pr-head:not(:has(.pr-photo)) { grid-template-columns: minmax(0, 1fr) auto; }
.pr-photo { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.pr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-txt { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pr-txt h3 { margin: 0; font-size: 16.5px; overflow-wrap: anywhere; }
.pr-stock { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.pr-stock.low { background: color-mix(in srgb, var(--nao) 10%, var(--surface)); }
.prob-card { border-color: color-mix(in srgb, var(--nao) 45%, var(--line)); }
.gear-card h2 { font-size: 18px; margin: 0; }
/* formulários */
.photo-field .pf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-prev img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.photo-full { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; background: var(--surface-2); }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; line-height: 1.4; }
.check-line input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--sea); flex: none; }
.shares-box, .boat-other { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.shares-box summary, .boat-other summary { cursor: pointer; color: var(--muted); }
.shares-box[open] summary, .boat-other[open] summary { margin-bottom: 10px; }
.uses-list { display: grid; gap: 8px; }
.use-row { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.use-det { display: grid; gap: 8px; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
@media (max-width: 480px) { .use-det { grid-template-columns: 1fr; } }
.mi-list { display: grid; gap: 8px; }
.mi-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; }
.split-custom { margin-top: 8px; }
/* página "Mais" (celular) */
.more-list { display: grid; gap: 10px; }
.more-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.mi-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.mi-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mi-txt { display: grid; gap: 3px; min-width: 0; }
.mi-txt b { font-size: 17px; }
.mi-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--nao); color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.mi-go { font-size: 24px; color: var(--muted); }
/* lancha na pescaria */
.trip-boats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tb-row { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.tb-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.tb-main .dd-tile { width: 44px; height: 44px; }
.tb-main .dd-tile svg, .dd-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--sea); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tb-txt { display: grid; gap: 2px; min-width: 0; }
.tb-txt b { font-size: 16px; }
.tb-log { display: grid; gap: 6px; justify-items: start; padding-left: 56px; }
.tb-log .bad { color: var(--nao); }
.boat-field .dd-multi { margin-top: 2px; }
.boat-field .boat-other { margin-top: 8px; font-weight: 500; }
.boat-field .boat-other .input { width: 100%; }

/* janela aberta: só ela rola; a página de trás fica parada */
html.dlg-open, html.dlg-open body { overflow: hidden; }
dialog { overscroll-behavior: contain; }
dialog .dlg { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- ficha da espécie ---------- */
.tag.t-bad { background: color-mix(in srgb, var(--nao) 15%, transparent); color: var(--nao); }
.tag.t-warn { background: color-mix(in srgb, var(--arriscado) 18%, transparent); color: var(--arriscado); }
.tag.t-good { background: color-mix(in srgb, var(--otimo) 15%, transparent); color: var(--otimo); }
.tag.t-muted { background: var(--surface-2); color: var(--muted); }
.fish-sheet { gap: 14px; }
.fs-hero { display: grid; justify-items: center; gap: 6px; padding: 14px 10px 10px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--sea) 10%, var(--surface)), var(--surface-2)); }
.fs-hero .fish-ill { max-width: 100%; height: auto; }
.fs-status.bad { background: color-mix(in srgb, var(--nao) 13%, var(--surface)); color: var(--nao); }
.fs-status.warn { background: color-mix(in srgb, var(--arriscado) 15%, var(--surface)); }
.fs-status svg { margin-right: 6px; }
.fs-sec h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fs-rules { display: grid; gap: 10px; }
.fs-rules li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.fs-src { color: var(--muted); }
.fs-photo { margin: 0; display: grid; gap: 6px; }
.fs-photo img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.fs-photo .fs-off { display: none; }
.fs-photo.off img { display: none; } .fs-photo.off .fs-off { display: inline; }
.ct-btn { display: grid; justify-items: center; gap: 2px; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.fish-warn.bad { color: var(--nao); }
.catch-row .icon-btn[data-action="fish-info"] { font-weight: 800; font-style: italic; font-family: Georgia, serif; color: var(--sea); }

/* ---------- atualizar previsão ---------- */
.pgrid.is-refreshing .pcard { opacity: .55; transition: opacity .2s; pointer-events: none; }
.pgrid.is-refreshing { position: relative; }
.banner.refreshing { background: color-mix(in srgb, var(--sea-2) 14%, var(--card)); border-color: color-mix(in srgb, var(--sea-2) 40%, transparent); }
.banner.refreshing .np-spin { color: var(--sea-2); }
.stale-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.stale-banner > span { flex: 1 1 280px; }
.btn[aria-busy="true"] { opacity: .85; }

/* ---------- guia de peixes e bandeiras ---------- */
.fg-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.fg-filters::-webkit-scrollbar { display: none; }
.fg-chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fg-chip[aria-pressed="true"] { background: var(--sea-2); border-color: var(--sea-2); color: #fff; }
.fg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.fg-grid > .fg-item { display: grid; grid-template-columns: none; align-content: start; gap: 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fg-open { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fg-open:hover b, .fg-open:focus-visible b { color: var(--sea-2); }
.fg-ill { flex: none; display: grid; place-items: center; width: 112px; height: 64px; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--sea) 9%, var(--surface)), var(--surface-2)); }
.fg-ill .fish-ill { width: 104px; height: 52px; }
.fg-txt { display: grid; gap: 2px; min-width: 0; }
.fg-txt b { font-size: 15px; line-height: 1.2; }
.fg-alias, .fg-area { line-height: 1.3; }
.fg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fg-flags { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.fg-flags .small { margin-right: 4px; }
.fg-empty { padding: 16px 4px; }
.flag { font-size: 18px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.flag-tip { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: help; }
.flag-tip:hover, .flag-tip:focus-visible, .flag-tip[aria-expanded="true"] { background: var(--surface-2); }
.flag-tip .tip { position: absolute; z-index: 20; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: min(260px, 70vw); padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: left; white-space: normal; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.flag-tip:hover .tip, .flag-tip:focus-visible .tip, .flag-tip[aria-expanded="true"] .tip { opacity: 1; visibility: visible; transform: none; }
.fish-opt .fo-flag { font-size: 13px; margin-left: 3px; }
.fs-areas { display: grid; gap: 6px; }
.fs-areas li { display: flex; gap: 8px; align-items: flex-start; }
.fs-other { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
.fs-other summary { cursor: pointer; }
.fs-other .fs-rules { margin-top: 6px; }
.fs-country { margin: 10px 0 0; }
.fg-grid > .fg-item:last-child { border-bottom: 1px solid var(--line); }
.fs-areas li { justify-content: flex-start; border-bottom: 0; padding: 2px 0; font-weight: 500; }

/* ---------- convite: cartão no Início, fila de espera e aviso de mudança ---------- */
.invite-card { border-left: 4px solid var(--sea-2); }
.invite-card h2 { margin: 2px 0 0; font-size: 18px; }
.ic-kicker { font-weight: 800; letter-spacing: .02em; color: var(--sea-2); }
.ic-kicker.k-none, .ic-kicker.k-expired { color: var(--arriscado); }
.ic-kicker.k-no { color: var(--muted); }
.ic-kicker.k-yes { color: var(--otimo); }
.ic-facts { display: grid; gap: 4px; }
.ic-facts li { display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 0; border: 0; font-weight: 500; }
.ic-facts .ic svg, .info-bit > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ic-seats { display: grid; gap: 6px; }
.ic-meter { display: flex; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ic-meter .m-yes { background: var(--otimo); }
.ic-meter .m-maybe { background: repeating-linear-gradient(45deg, var(--arriscado) 0 4px, color-mix(in srgb, var(--arriscado) 55%, transparent) 4px 8px); }
.ic-people { display: grid; gap: 2px; }
.ic-check { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.wait-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.wait-box.turn { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--otimo) 14%, var(--surface)); color: var(--ink); }
.trip-update .stack { width: 100%; }
.tu-list { display: grid; gap: 2px; }
.tu-list li { display: grid; grid-template-columns: minmax(110px, auto) 1fr; justify-content: start; gap: 8px; padding: 2px 0; border: 0; font-weight: 500; }
.tu-list s { opacity: .7; }
.update-block { padding: 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--arriscado) 60%, transparent); margin-bottom: 12px; }
.update-block h3 { margin: 0; }
.nav-fix b { color: var(--ink); }
.nav-prox.near { background: color-mix(in srgb, var(--bom) 14%, var(--surface)); }
.nav-prox.arrived, .nav-prox.inside { background: color-mix(in srgb, var(--otimo) 18%, var(--surface)); }
.banner.bad { background: color-mix(in srgb, var(--nao) 14%, var(--surface)); color: var(--ink); border-color: color-mix(in srgb, var(--nao) 45%, transparent); }
.nav-panel.lost .nav-arrow { fill: var(--muted); }
.nav-panel.lost .nav-nums b { opacity: .55; }
.trip-spots li { display: flex; align-items: center; gap: 8px; }
.trip-spots li .ts-link { flex: 1; min-width: 0; }
.trip-spots .ts-nav { flex: none; }
.offline-badge { margin-top: 6px; gap: 4px; }
.offline-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.offline-list { display: grid; gap: 8px; }
.offline-list li { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--surface-2); font-weight: 500; }
.offline-list li > span:last-child { display: grid; gap: 2px; }
.ol-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800; color: #fff; background: var(--otimo); }
.offline-list li.bad .ol-ic { background: var(--nao); }
.offline-list li.warn .ol-ic { background: var(--arriscado); }
.offline-test ol li { margin: 2px 0; }
.nav-panel [hidden] { display: none !important; }
.nav-cog { display: grid; gap: 2px; }
.nav-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.nav-legend .lg { display: inline-block; width: 22px; height: 0; margin-right: -4px; vertical-align: middle; }
.lg-route { border-top: 4px solid #1d5fb8; }
.lg-direct { border-top: 2px dashed #f28a00; }
.nav-legend #nav-chart { flex-basis: 100%; }
.nav-dest-label { font-weight: 800; font-size: 13px; }
.nav-route-pick select { width: 100%; }
.nav-prox.near, .banner.near { background: color-mix(in srgb, var(--bom) 14%, var(--surface)); }
.banner.area { background: color-mix(in srgb, var(--otimo) 18%, var(--surface)); }
.banner.arriving, .banner.waiting { background: color-mix(in srgb, var(--sea-2) 14%, var(--surface)); }
.banner.stale { background: var(--surface-2); color: var(--muted); }
.mini-map { height: 200px; border-radius: 12px; }
.coord-check .banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.approach-box summary { cursor: pointer; }
.route-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.route-chip { padding: 3px 8px; border-radius: 999px; background: var(--surface-2); }
.danger-link { color: var(--nao); }
.imp-list { display: grid; gap: 8px; }
.imp-list li { display: grid; justify-content: stretch; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--surface-2); font-weight: 500; }

/* ---------- o que funcionou e lua ---------- */
.pd-tabs { margin-bottom: 12px; }
.pd-filters { gap: 10px; flex-wrap: wrap; }
.pd-filters .field { flex: 1 1 160px; }
.pd-bars { display: grid; gap: 10px; }
.pd-bars li { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; grid-template-areas: "k bar" "k v"; gap: 2px 10px; align-items: center; padding: 0; border: 0; font-weight: 500; }
.pd-k { grid-area: k; font-weight: 700; font-size: 14px; }
.pd-bar { grid-area: bar; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pd-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--sea-2); }
.pd-v { grid-area: v; color: var(--muted); }
.pd-verdict { margin: 4px 0 0; }
.moon-top { display: flex; gap: 12px; align-items: center; }
.moon-ic { font-size: 44px; line-height: 1; }
.moon-facts { display: grid; gap: 4px; }
.moon-facts li { font-weight: 500; }
.moon-facts li span { color: var(--muted); }
.solunar-box { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); background: var(--surface-2); gap: 6px; }
.cp-zero { margin-top: 8px; }
.page-head .ic-inline { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-right: 6px; vertical-align: -3px; }

/* versão do app */
.tag.warn { background: color-mix(in srgb, var(--arriscado) 20%, var(--surface)); border-color: color-mix(in srgb, var(--arriscado) 50%, var(--line)); }
.sync .ver { display: block; margin-top: 3px; font-size: 11.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.ver-num { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ver-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 4px 0; }
.more-ver { text-align: center; margin: 16px 0 0; }
.more-ver a { color: var(--sea-2); }
.updatebar { background: color-mix(in srgb, var(--sea, #2a8) 16%, var(--surface)); border-color: color-mix(in srgb, var(--sea, #2a8) 45%, var(--line)); }
.updatebar[hidden] { display: none; }

/* revisão do admin */
.reviewbar { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.reviewbar[hidden] { display: none; }
.rv-list li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.rv-list li:first-child { border-top: 0; }
.rv-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: var(--sea-soft); color: var(--sea); }
.rv-mod .rv-k { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--text, inherit); }
.rv-list s { text-decoration-thickness: 1px; }
.tag.bad { background: color-mix(in srgb, var(--arriscado) 22%, var(--surface)); }

/* ---------- avatar, perfil e "você" no menu ---------- */
.avatar.av-fish, .avatar.av-photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.avatar.av-fish svg, .avatar.av-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar.av-photo { position: relative; color: var(--accent); }
.avatar.av-photo .av-ini { line-height: 1; }
.avatar.av-photo img { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.avatar.av-photo img.photo-ready { opacity: 1; }
.avatar.av-photo img.no-fade { transition: none; }
.avatar.av-photo img.photo-missing { display: none; }
/* carregando: anel girando em volta, só se passar de 300 ms (foto rápida não pisca) */
.avatar.av-photo.is-loading::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--sea) 25%, transparent); border-top-color: var(--sea); opacity: 0; animation: spin .8s linear infinite, av-show .2s .3s forwards; }
@keyframes av-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .avatar.av-photo.is-loading::after { animation: av-show .2s .3s forwards; } }
.tab-av { display: grid; place-items: center; min-height: 26px; }
.tab-av > .avatar { box-shadow: 0 0 0 1.5px var(--line); }
.tab-me[aria-current="page"] .tab-av > .avatar { box-shadow: 0 0 0 2px var(--sea); }
.tab-me > span:last-child { max-width: 72px; }
.me-tab { display: none; }
@media (min-width: 900px) {
  .nav .me-tab { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); text-align: left; }
  .nav .me-tab:empty { display: none; }
  .nav .me-tab ~ .sync { margin-top: 4px; }
  .me-tab .me-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .me-tab .me-txt b { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .me-tab .me-txt span { font-size: 12px; color: var(--muted); font-weight: 600; }
}
.me-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-bottom: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.me-card .me-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.me-card .me-txt b { font-size: 17px; }
.me-card .mi-go { font-size: 22px; color: var(--muted); }
.profile-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.profile-hero h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; }
.ph-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.ph-av { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.ph-av .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--sea-soft); font-size: 36px !important; }
.ph-edit { position: absolute; right: 0; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sea); color: #fff; box-shadow: 0 0 0 3px var(--surface); }
.ph-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 560px) { .profile-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ph-txt { align-items: center; } }
.can-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); }
.can-list li:first-child { border-top: 0; }
.can-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.can-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.can-ok .can-ic { background: var(--sea-soft); color: var(--sea); }
.can-rv .can-ic { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); }
.can-no .can-ic { background: var(--surface-2); color: var(--muted); }
.can-no > span:last-child { color: var(--muted); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.av-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid transparent; border-radius: 14px; background: none; color: inherit; font: inherit; cursor: pointer; text-align: center; line-height: 1.2; }
.av-opt:hover { background: var(--surface-2); }
.av-opt[aria-pressed="true"] { border-color: var(--sea); background: var(--sea-soft); }
.av-circle { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: block; }
.av-circle svg { display: block; }
.av-own { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.av-own.is-busy { opacity: .55; pointer-events: none; }
.av-own .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 6px; vertical-align: -4px; }

/* ---------- ajuste da foto de perfil ---------- */
.crop-wrap { display: flex; flex-direction: column; gap: 14px; }
.crop-view { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #0a161d; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-view:active { cursor: grabbing; }
.crop-view:focus-visible { outline: 3px solid var(--sea-2); outline-offset: 3px; }
.crop-canvas { display: block; width: 100%; height: 100%; }
.crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(10, 22, 29, .58); outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -2px; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 340px); margin: 0 auto; }
.crop-zoom .icon-btn { font-size: 20px; font-weight: 700; line-height: 1; }
.crop-range { flex: 1; accent-color: var(--sea); height: 28px; }
.crop-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crop-spacer { flex: 1; }
@media (max-width: 420px) { .crop-actions .btn.primary { flex: 1 1 100%; order: 3; } }

/* ---------- grupo de pesca ---------- */
.gp-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.gp-next-txt { display: flex; flex-direction: column; gap: 2px; }
.gp-next-txt b { font-size: 16px; }
.gp-next .btn svg, .gp-send .btn svg, .gp-invite svg, .gp-edit svg, .page-head .btn svg, .gp-wait .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 6px; vertical-align: -3px; }
.gp-tools { display: flex; flex-direction: column; gap: 10px; }
.gp-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.seg.sm button { padding: 6px 10px; font-size: 12.5px; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gp-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px 16px; }
.gp-card.is-me { border-color: color-mix(in srgb, var(--sea) 40%, var(--line)); }
.gp-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.gp-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gp-name b { font-size: 16px; line-height: 1.2; }
.gp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.member-av { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--surface-2); }
.member-av .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 6px; vertical-align: -3px; }
.gp-staff { display: grid; gap: 10px; padding: 14px 16px; }
.gp-staff h2 { margin: 0; font-size: 17px; }
.gp-staff-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gp-staff-list li { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 10px; min-width: 0; }
.gp-staff-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-staff-list .icon-btn { color: #1fa855; }
.gp-staff-list li { border: 0; padding: 0; margin: 0; }
.gp-tags .tag { font-size: 11.5px; }
.boat-tag { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.gp-edit span { font-size: 12.5px; }
.gp-facts { margin: 0; color: var(--muted); }
.gp-contacts { display: flex; flex-direction: column; gap: 6px; }
.gp-contacts li { display: flex; align-items: center; gap: 6px; }
.gp-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.gp-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-link svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gp-link:hover { background: var(--sea-soft); }
.gp-contacts li:first-child .gp-link svg { color: #1fa855; }
.icon-btn.sm { width: 34px; height: 34px; flex: none; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.gp-nocontact { margin: 0; }
.gp-invite { align-self: flex-start; margin-top: auto; }
.gp-msg { width: 100%; font: inherit; font-size: 14px; line-height: 1.45; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; }
.seg.wrap { display: flex; flex-wrap: wrap; }
.gp-send { flex-wrap: wrap; }
.gp-wait li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .gp-grid { grid-template-columns: 1fr; } .gp-filters { flex-direction: column; } .gp-filters .seg { width: 100%; } .gp-filters .seg button { flex: 1; } .page-head .row { width: 100%; } .page-head .row .btn { flex: 1; } }

.gp-grid > li, .gp-contacts li, .gp-wait li:first-child { border: 0; padding: 0; margin: 0; }
.gp-wait li { padding: 6px 0; }
.gp-tags .tag { white-space: nowrap; }
.gp-edit svg { margin: 0; }
.page-head .row .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .page-head .row .btn { padding-left: 10px; padding-right: 10px; font-size: 14px; }
  .gp-filters .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gp-filters .seg::-webkit-scrollbar { display: none; }
  .gp-filters .seg button { flex: 1 0 auto; white-space: nowrap; }
}
.gp-grid > li { display: flex; min-width: 0; }
.gp-grid > li > .gp-card { flex: 1; width: 100%; min-width: 0; }

/* avisos: ícone com respiro antes do texto; o aviso da lancha não cola no conteúdo de baixo */
.banner > .small > svg:first-child { margin-right: 8px; }
.banner > svg:first-child { flex: none; margin-top: 2px; }
.boat-note { margin-bottom: 16px; align-items: center; }
.boat-note > svg { color: var(--sea-2); }
.login-ask { text-align: center; }
.dev-list { display: grid; gap: 8px; }
.dev-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 0; margin: 0; }
.dev-list .dev-txt { display: flex; flex-direction: column; min-width: 0; }
.dev-list .dev-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-code { font: 800 40px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; text-align: center; padding: 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
