:root {
  --ink: #0c1a26;
  --ink-2: #2a4154;
  --muted: #6a8096;
  --line: #e7eef4;
  --line-2: #d8e3ec;
  --bg: #eef3f7;
  --card: #ffffff;
  /* Ocean — chrome / hero surfaces (deeper, richer than v1) */
  --ocean-1: #07151f;
  --ocean-2: #0e2c42;
  --ocean-3: #16405d;
  --ocean-4: #1d9e8a;
  /* Aqua — the single confident interactive accent (replaces gold-everywhere) */
  --aqua: #11b9c6;
  --aqua-2: #0c95a1;
  --aqua-ink: #06363b;
  --teal: #11b9c6;
  /* Gold — RESERVED for "best / biting now" highlights only */
  --gold: #ffb020;
  --gold-dark: #e08600;
  --coral: #ef476f;
  --green: #0fa97e;
  --shadow-sm: 0 1px 2px rgba(8, 26, 40, .06), 0 1px 1px rgba(8, 26, 40, .04);
  --shadow-md: 0 8px 22px rgba(8, 26, 40, .09), 0 2px 6px rgba(8, 26, 40, .05);
  --shadow-lg: 0 22px 52px rgba(8, 26, 40, .17), 0 6px 16px rgba(8, 26, 40, .08);
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
}

/* Shared inline-icon base — inherits color + scales with font-size */
.ic {
  width: 1.15em; height: 1.15em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.18em;
  stroke-width: 1.8;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  height: 100%;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  /* iOS standalone: respect notch safe areas */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior: none;
}

/* ---------- iOS Add-to-Home-Screen banner ---------- */
.a2hs-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0, 20, 40, .25);
  border: 1px solid rgba(255, 255, 255, .5);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  z-index: 9999;
  animation: slideUp .4s ease;
}
.a2hs-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 3px 10px rgba(251, 133, 0, .35);
}
.a2hs-text { flex: 1; line-height: 1.3; }
.a2hs-text b { display: block; font-size: 14px; color: var(--ink); font-weight: 700; }
.a2hs-text small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.a2hs-close {
  flex-shrink: 0;
  background: transparent; border: 0;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 22px; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.a2hs-close:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background:
    radial-gradient(120% 140% at 88% -40%, rgba(17, 185, 198, .22), transparent 55%),
    linear-gradient(180deg, #0e2c42 0%, #0a2336 100%);
  color: #fff;
  position: relative; z-index: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 1px 0 rgba(8, 26, 40, .6), 0 6px 22px rgba(7, 21, 31, .28);
}

.brand { display: flex; align-items: center; gap: 13px; }
.logo {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(160deg, #16405d, #0a2233);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(35, 214, 207, .25), 0 4px 14px rgba(7, 21, 31, .5);
}
.logo-mark { width: 30px; height: 30px; display: block; }
.brand-text { line-height: 1.15; }
.brand h1 {
  font-size: 18px; letter-spacing: .2px; font-weight: 800; color: #fff;
  display: flex; align-items: baseline; gap: 8px;
}
.brand-en {
  font-size: 12px; font-weight: 600; letter-spacing: .6px;
  color: var(--aqua); text-transform: uppercase; opacity: .92;
}
.tag { font-size: 11px; color: #9db8cc; letter-spacing: .3px; margin-top: 3px; }

.locate-btn {
  background: linear-gradient(160deg, #19c6cf, #0e9aa6);
  color: #04282c; border: 0;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 800; font-size: 13px; letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 154, 166, .45), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, box-shadow .15s, filter .15s;
  display: flex; align-items: center; gap: 7px;
}
.locate-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 7px 20px rgba(14, 154, 166, .55); }
.locate-btn:active { transform: translateY(0); }
.locate-btn:disabled { opacity: .7; cursor: wait; transform: none; }

.topbar-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  background: rgba(255,255,255,.07);
  color: #d7e6f1;
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 13px; border-radius: 11px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.icon-btn .ic { color: var(--aqua); }
.icon-btn:hover { background: rgba(17,185,198,.16); color: #fff; border-color: rgba(17,185,198,.4); }
.icon-btn.icon-only { padding: 8px; }
.icon-btn.auth-btn.authed { color: #fff; border-color: rgba(17,185,198,.5); background: rgba(17,185,198,.16); }
.icon-btn.auth-btn.authed .ic { color: var(--aqua); }

/* ---------- Algorithm modal extras ---------- */
.formula {
  background: linear-gradient(135deg, #eff6fc, #e1f0f9);
  border: 1px dashed #a8c8e1;
  padding: 12px 14px; border-radius: 10px;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 13px; color: var(--ocean-2);
  line-height: 1.7;
  margin: 8px 0;
}

/* ---------- Reviews ---------- */
.reviews-summary {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 12px;
  background: linear-gradient(135deg, #fffbea, #fff6d6);
  border: 1px solid #ffe8a0;
  border-radius: 12px;
}
.reviews-summary .big-star {
  font-size: 28px; font-weight: 800;
  color: var(--gold-dark); line-height: 1;
}
.reviews-summary .stars-line { font-size: 14px; color: #e6a500; letter-spacing: 2px; }
.reviews-summary .count { font-size: 11px; color: var(--muted); margin-top: 2px; }

.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-item {
  padding: 12px 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.review-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.review-user {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink); font-size: 13px;
}
.review-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-3), var(--teal));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.review-date { font-size: 11px; color: var(--muted); }
.review-stars { color: #e6a500; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 4px; }
.review-text { font-size: 13px; line-height: 1.6; color: var(--ink-2); }

.review-form {
  margin-top: 14px; padding: 14px;
  background: #f5f8fb; border: 1px dashed #c3d4e4;
  border-radius: 12px;
}
.review-form h5 {
  font-size: 12px; color: var(--ocean-2); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
}
.review-form input[type=text],
.review-form textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--ink);
  font-family: inherit; margin-bottom: 8px;
  transition: border-color .15s;
}
.review-form input[type=text]:focus,
.review-form textarea:focus {
  outline: 0; border-color: var(--ocean-3);
  box-shadow: 0 0 0 3px rgba(1, 73, 124, .1);
}
.review-form textarea { resize: vertical; min-height: 64px; }
.star-picker {
  display: flex; gap: 4px; margin-bottom: 10px;
  font-size: 22px; cursor: pointer;
}
.star-picker span {
  color: #d3dce6; transition: color .1s, transform .1s;
}
.star-picker span.active,
.star-picker:hover span.hover { color: #ffb703; }
.star-picker span:hover { transform: scale(1.15); }
.review-submit {
  background: linear-gradient(135deg, var(--ocean-3), var(--ocean-2));
  color: #fff; border: 0;
  padding: 9px 18px; border-radius: 99px;
  font-weight: 600; font-size: 13px; cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(1, 73, 124, .25);
}
.review-submit:hover { transform: translateY(-1px); }
.review-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.no-reviews {
  text-align: center; padding: 14px;
  color: var(--muted); font-size: 12.5px; font-style: italic;
}

/* ---------- Reference items (external sources) ---------- */
.refs-block {
  margin-top: 14px;
  padding: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.refs-block.global {
  background: linear-gradient(135deg, #fff4e8, #fff9f0);
  border-color: #ffd49e;
}
.user-reviews-block { margin-top: 14px; }
.refs-header {
  font-size: 11.5px; font-weight: 700;
  color: var(--ocean-2);
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 10px;
}
.refs-list { display: flex; flex-direction: column; gap: 8px; }
.ref-item {
  display: flex; gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none; color: var(--ink);
  transition: all .15s ease;
}
.ref-item:hover {
  border-color: var(--ocean-3);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(1, 73, 124, .1);
}
.ref-icon {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #e8f4fc, #d6ebf8);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ref-body { flex: 1; min-width: 0; }
.ref-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 3px;
}
.ref-source {
  font-size: 12.5px; font-weight: 700; color: var(--ocean-2);
}
.ref-stars {
  color: #ffb703; font-size: 11px; letter-spacing: 1px;
}
.ref-note {
  font-size: 12px; line-height: 1.5; color: var(--ink-2);
  margin-bottom: 4px;
}
.ref-url {
  font-size: 10.5px; color: var(--ocean-3);
  font-family: "SF Mono", "Consolas", monospace;
  word-break: break-all;
}
.refs-disclaimer {
  margin-top: 8px; font-size: 10.5px;
  color: var(--muted); font-style: italic;
  text-align: right;
}

/* User review source link inside review card */
.review-source {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ocean-3);
  text-decoration: none;
  padding: 3px 10px;
  background: #eaf4fb;
  border-radius: 99px;
}
.review-source:hover { background: #d6ebf8; }

/* Source URL fields in review form */
.source-fields {
  display: flex; gap: 6px; flex-direction: column;
  margin-bottom: 10px;
}
.source-fields input {
  font-size: 12px;
}

/* ---------- Map reference indicator status bar ---------- */
#status b { color: var(--ocean-2); }
#status a {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  background: var(--ocean-3);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
#status a:hover { background: var(--ocean-2); }

/* ---------- Access (Transport) ---------- */
.access-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: #fff6e4; color: var(--gold-dark);
  letter-spacing: 1px;
}
.access-badge .acc-empty { color: #d8c39c; }

.access-card {
  background: linear-gradient(135deg, #f3f9fd, #eaf4fb);
  border: 1px solid #c7dcec;
  border-radius: 12px;
  padding: 14px 16px;
}
.access-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(1, 73, 124, .12);
}
.access-stars {
  font-size: 18px; letter-spacing: 2px; font-weight: 700;
}
.access-label {
  font-size: 11.5px; color: var(--muted); font-weight: 600;
}
.access-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 8px; font-size: 13px; line-height: 1.5;
  color: var(--ink-2);
}
.access-row .access-icon {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; box-shadow: var(--shadow-sm);
}
.access-row b {
  display: block; color: var(--ocean-2); font-size: 11px;
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 1px; font-weight: 700;
}
.access-tips-header {
  margin-top: 12px; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; color: var(--ocean-2);
  text-transform: uppercase; letter-spacing: .5px;
}
.access-tips {
  list-style: none; padding: 0; margin: 0;
}
.access-tips li {
  background: rgba(255, 255, 255, .7);
  border-left: 3px solid var(--teal);
  padding: 7px 11px; margin-bottom: 5px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
}
.access-disclaimer {
  margin-top: 8px; font-size: 10.5px;
  color: var(--muted); font-style: italic;
  text-align: right;
}
.access-empty {
  padding: 14px; text-align: center;
  color: var(--muted); font-size: 12.5px; font-style: italic;
  background: #f5f8fb; border: 1px dashed #c7dcec;
  border-radius: 10px;
}

/* ---------- Mode selector ---------- */
.mode-selector {
  display: flex; gap: 3px;
  padding: 3px;
  background: #e6edf3;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.mode-btn {
  flex: 1; padding: 8px 8px;
  background: transparent; border: 0;
  border-radius: 9px;
  font-size: 12px; font-weight: 700;
  color: var(--muted); cursor: pointer;
  font-family: inherit;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.mode-btn .ic { color: var(--muted); transition: color .18s; }
.mode-btn:hover { color: var(--ocean-2); }
.mode-btn.active {
  background: #fff;
  color: var(--ocean-1);
  box-shadow: var(--shadow-sm);
}
.mode-btn.active .ic { color: var(--aqua-2); }

/* ---------- Tide indicator in weather box ---------- */
.weather-box .row.tide-row {
  background: linear-gradient(90deg, rgba(6, 182, 212, .08), transparent);
  padding-left: 6px;
  margin: 0 -6px;
  border-radius: 6px;
}
.weather-box .row.tide-row span:last-child {
  color: var(--teal);
}

/* ---------- Prime fishing time windows ---------- */
.prime-windows {
  margin-top: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff8e0, #fff4d0);
  border: 1px solid #ffd98a;
  border-radius: 10px;
}
.prime-header {
  font-size: 10.5px; font-weight: 700;
  color: #8a5a00;
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 8px;
}
.prime-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; padding: 4px 6px;
  border-radius: 6px;
  margin-bottom: 2px;
}
.prime-row.active {
  background: linear-gradient(90deg, rgba(251, 133, 0, .22), rgba(251, 133, 0, .08));
  font-weight: 700;
}
.prime-icon { font-size: 16px; width: 18px; }
.prime-label {
  flex: 1; font-weight: 600; color: #5a3800;
}
.prime-range {
  font-family: "SF Mono", "Consolas", monospace;
  font-weight: 700; color: #6b4800;
  font-size: 12px;
}
.prime-now {
  margin-top: 6px;
  text-align: center;
  font-size: 11px; font-weight: 700;
  color: #e08900;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .6);
  border-radius: 6px;
}

/* ---------- Per-spot live conditions in detail modal ---------- */
.spot-conditions {
  padding: 2px 0;
}
.spot-conditions-loading {
  padding: 18px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  font-style: italic;
  background: #f5f8fb;
  border: 1px dashed #c7dcec;
  border-radius: 10px;
}
.spot-cond-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.spot-cond-grid > div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px;
  background: linear-gradient(135deg, #f3f9fd, #eaf4fb);
  border: 1px solid #c7dcec;
  border-radius: 10px;
  font-size: 12px;
}
.spot-cond-grid > div.wide { grid-column: 1 / -1; }
.spot-cond-grid > div span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.spot-cond-grid > div b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.spot-cond-prime {
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff8e0, #fff4d0);
  border: 1px solid #ffd98a;
  border-radius: 10px;
  margin-bottom: 8px;
}
.spot-cond-prime-header {
  font-size: 10.5px; font-weight: 700;
  color: #8a5a00;
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 6px;
}
.spot-cond-prime-rows {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600;
  color: #6b4800;
}
.spot-cond-prime-rows > div {
  padding: 3px 8px;
  border-radius: 6px;
}
.spot-cond-prime-rows > div.active {
  background: linear-gradient(90deg, rgba(251, 133, 0, .25), rgba(251, 133, 0, .12));
  color: #8a3700;
  font-weight: 800;
}
.spot-cond-now {
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .6);
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  color: #e08900;
  text-align: center;
}
.spot-cond-footnote {
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
  font-style: italic;
  margin-top: 4px;
}

/* ---------- Prime badge inside detail hero ---------- */
.prime-badge {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.prime-badge-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; color: #fff8e0;
  font-weight: 600;
}
.prime-badge-row span {
  display: inline-flex; align-items: center; gap: 4px;
}
.prime-badge-now {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(251, 133, 0, .4);
}

/* ---------- Rig recommendations ---------- */
.rig-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.rig-tab {
  background: #f1f8fc;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--ocean-2); cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.rig-tab:hover { border-color: var(--ocean-3); }
.rig-tab.active {
  background: linear-gradient(135deg, var(--ocean-3), var(--ocean-2));
  color: #fff;
  border-color: var(--ocean-2);
  box-shadow: 0 3px 10px rgba(1, 73, 124, .3);
}
.rig-tab .rig-tab-en {
  opacity: .65; font-size: 10px; font-weight: 500;
  margin-left: 3px;
}

.rig-container { display: flex; flex-direction: column; gap: 10px; }

.rig-card {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
}
.rig-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rig-name { font-size: 14px; font-weight: 700; color: var(--ocean-2); }
.rig-name-en { font-size: 11px; color: var(--muted); margin-top: 1px; }
.rig-level {
  flex-shrink: 0;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line);
  white-space: nowrap;
}

.rig-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  margin-bottom: 12px;
}
.rig-grid > div { font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.rig-grid b {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--ocean-3); margin-bottom: 1px;
  text-transform: uppercase; letter-spacing: .4px;
}

.rig-technique {
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px; border: 1px solid var(--line);
  margin-bottom: 10px;
}
.rig-technique b {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--ocean-3); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .4px;
}
.rig-technique p {
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin: 0;
}

.rig-tip {
  padding: 8px 12px;
  background: linear-gradient(135deg, #fff8e0, #fffbea);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 12px; line-height: 1.5;
  color: #6b4800;
}

.rig-note {
  margin-top: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff3d0, #ffe8a0);
  border: 1px solid #ffd98a;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 183, 3, .15);
}
.rig-note-title {
  font-size: 11px; font-weight: 700;
  color: #8a5a00;
  margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .5px;
}
.rig-note > div:last-child {
  font-size: 13px; line-height: 1.55;
  color: #3d2600;
}

.rig-empty {
  padding: 14px; text-align: center;
  color: var(--muted); font-size: 12px; font-style: italic;
  background: #f5f8fb; border: 1px dashed #c7dcec;
  border-radius: 10px;
}

@media (max-width: 520px) {
  .rig-grid { grid-template-columns: 1fr; }
}

/* ---------- Layout ---------- */
main {
  display: grid; grid-template-columns: 400px 1fr;
  height: calc(100vh - 74px);
  position: relative;
}
/* Desktop: hide sheet handle entirely */
.sheet-handle { display: none; }

/* ================== MOBILE BOTTOM SHEET ================== */
@media (max-width: 860px) {
  main {
    display: block;          /* abandon grid, use absolute positioning */
    grid-template-columns: none;
    grid-template-rows: none;
    position: relative;
    height: calc(100vh - 60px);
  }

  /* Map fills entire main area — the primary view */
  .map-wrap {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* Panel becomes a bottom sheet that slides up from the bottom */
  .panel {
    position: fixed !important;
    left: 0; right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    border-right: 0 !important;
    border-top: 1px solid var(--line);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    box-shadow: 0 -6px 32px rgba(0, 20, 40, .22);
    z-index: 700;
    transition: transform .38s cubic-bezier(.32, .72, 0, 1);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* 3 snap states */
  .panel.sheet-collapsed { transform: translateY(calc(100% - 78px)); }
  .panel.sheet-half       { transform: translateY(calc(100% - 50vh)); }
  .panel.sheet-full       { transform: translateY(8vh); }

  /* Sheet handle */
  .sheet-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 10px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    touch-action: none;
  }
  .sheet-grip {
    width: 44px; height: 4px;
    border-radius: 2px;
    background: #c8d2dd;
    margin-bottom: 8px;
    transition: background .15s;
  }
  .sheet-handle:hover .sheet-grip { background: #8ea4ba; }
  .sheet-peek {
    font-size: 13px; font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
  }
  .sheet-peek .peek-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #fff;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
    box-shadow: 0 2px 6px rgba(251, 133, 0, .3);
  }
  /* When collapsed, hide everything except sheet-handle */
  .panel.sheet-collapsed .panel-header,
  .panel.sheet-collapsed .status,
  .panel.sheet-collapsed .spot-list {
    opacity: 0;
    pointer-events: none;
  }
  .panel.sheet-collapsed {
    overflow: hidden;
  }

  /* Top bar compact on mobile — chrome goes icon-only to fit the narrow bar */
  .topbar { padding: 9px 12px; }
  .brand { gap: 9px; }
  .brand h1 { font-size: 15px; white-space: nowrap; }
  .brand-en { display: none; }          /* drop the EN on mobile */
  .tag { display: none; }               /* hide the subtitle to save space */
  .logo { width: 36px; height: 36px; border-radius: 10px; }
  .logo-mark { width: 24px; height: 24px; }
  .icon-btn { padding: 8px; font-size: 11px; }
  .icon-btn > span:not(.notify-badge) { display: none; }  /* icon-only on mobile */
  .icon-btn .ic { width: 1.35em; height: 1.35em; }
  .locate-btn { padding: 9px; }
  .locate-btn > span { display: none; }                   /* target icon only */
  .locate-btn .ic { width: 1.4em; height: 1.4em; }
  .topbar-actions { gap: 5px; }

  /* Weather pill on mobile */
  .weather-pill {
    top: 10px !important;
    right: 10px !important;
    padding: 8px 12px 8px 10px;
  }
  .weather-pill-icon { font-size: 18px; }
  .weather-pill-label { font-size: 11px; }

  /* Weather box smaller and farther from edges */
  .weather-box {
    top: 10px !important;
    right: 10px !important;
    min-width: auto;
    max-width: 62%;
    font-size: 11px;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .weather-box h3 { font-size: 10px; margin-bottom: 6px; }
  .weather-box .row { padding: 3px 0; }
  .weather-box .row span:first-child { font-size: 10px; }
  .weather-box .row span:last-child { font-size: 11px; }
  .prime-windows { margin-top: 6px; padding: 8px 10px; }
  .prime-header { font-size: 9px; margin-bottom: 4px; }
  .prime-row { font-size: 10px; padding: 2px 4px; }
  .prime-icon { font-size: 12px; }
  .prime-range { font-size: 10.5px; }

  /* Panel inner padding tighter on mobile */
  .panel-header {
    padding: 10px 16px 8px;
    position: static;     /* don't stick on mobile — sheet handle is already sticky */
  }
  .panel-header h2 { font-size: 13px; margin-bottom: 8px; }

  /* Mode selector compact */
  .mode-selector { margin-bottom: 8px; padding: 3px; }
  .mode-btn { font-size: 10.5px; padding: 7px 6px; }

  /* Filter controls more compact */
  .controls label { font-size: 10px; gap: 3px; }
  .controls select { padding: 6px 8px; font-size: 12px; }

  /* Status bar compact */
  .status { margin: 8px 12px 0; padding: 8px 12px; font-size: 11.5px; }

  /* Spot list tighter */
  .spot-list { padding: 6px 10px 80px; }
  .spot-card { padding: 11px; gap: 10px; }
  .spot-card .rank-badge { width: 38px; height: 38px; font-size: 16px; }
  .spot-card .spot-name { font-size: 13px; }
  .spot-card .spot-name-en { font-size: 10px; }
  .spot-card .spot-meta { font-size: 10.5px; gap: 6px; }
  .score-box b { font-size: 19px; }

  /* Floating map controls stay above sheet when collapsed */
  .leaflet-top.leaflet-left { top: 70px; }   /* push zoom controls below the topbar shadow */

  /* Detail modal fills more on mobile */
  .detail { padding: 0; }
  .detail-card { max-height: 96vh; border-radius: 16px 16px 0 0; align-self: flex-end; }

  /* Algorithm modal same */
  #algoModal .detail-card { border-radius: 16px 16px 0 0; }
}

/* Extra compact for very small phones */
@media (max-width: 380px) {
  .brand h1 { font-size: 14px; }
  .locate-btn { padding: 8px; }
  .icon-btn { padding: 7px; }
  .topbar-actions { gap: 4px; }
  .mode-btn { font-size: 10px; }
  .weather-box { max-width: 62%; }
}

/* ---------- Side panel ---------- */
.panel {
  background: var(--card);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #c9d6e3 transparent;
}
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: #c9d6e3; border-radius: 4px; }

.panel-header {
  padding: 18px 20px 14px;
  position: sticky; top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.panel-header h2 {
  font-size: 15px; font-weight: 700; color: var(--ocean-2);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.panel-header h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}
.h2-en {
  font-size: 11px; font-weight: 500; color: var(--muted);
  letter-spacing: .3px; text-transform: none;
}

.controls { display: flex; gap: 10px; flex-wrap: wrap; }
.controls label {
  font-size: 11px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0;
}
.controls select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--ink); font-weight: 500;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.controls select:hover { border-color: #a8bccf; }
.controls select:focus { outline: 0; border-color: var(--ocean-3); box-shadow: 0 0 0 3px rgba(1, 73, 124, .12); }

.status {
  margin: 12px 16px 0;
  padding: 10px 14px;
  font-size: 12.5px; color: var(--ocean-2);
  background: linear-gradient(135deg, #e8f4fc, #f1f8fc);
  border: 1px solid #d4e8f5;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px;
}
.status.error { background: #fff1f1; color: #8a1a1a; border-color: #f5c7c7; }
.status.success { background: #ecfdf5; color: #05603a; border-color: #a7e8cc; }

/* ---------- Spot cards ---------- */
.spot-list { padding: 10px 12px 24px; }
.spot-card {
  position: relative;
  display: flex; gap: 13px; align-items: center;
  padding: 13px 15px; margin-bottom: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.spot-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: transparent; transition: background .18s;
}
.spot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(17, 185, 198, .55);
}
.spot-card:hover::before { background: var(--aqua); }

.spot-card.best {
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 62%);
  border-color: #ffe2a6;
  box-shadow: 0 6px 20px rgba(255, 176, 32, .14);
}
.spot-card.best::before { background: linear-gradient(180deg, #ffc24a, #f0950e); }
.spot-card.best .rank-badge {
  background: linear-gradient(155deg, #ffc24a, #ef9008);
  color: #4a2c00;
  box-shadow: 0 4px 12px rgba(240, 149, 14, .42);
}
.spot-card.best .best-tag {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px;
  font-size: 10px; font-weight: 800;
  background: #fff2d6; color: #9a5a00;
  padding: 2px 8px; border-radius: 99px;
  letter-spacing: .4px;
  vertical-align: middle;
}

.rank-badge {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  background: #eef4f8;
  color: var(--ocean-2); font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.spot-info { flex: 1; min-width: 0; }
.spot-name {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spot-name-en { font-size: 11px; color: var(--muted); font-weight: 500; }
.spot-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted); margin-top: 6px;
}
.spot-meta span { display: flex; align-items: center; gap: 4px; }
.spot-meta .ic { width: 13px; height: 13px; color: var(--muted); vertical-align: middle; }
.type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px 2px 7px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .2px;
}
.type-badge .ic { width: 13px; height: 13px; vertical-align: -2px; }
.type-rock { background: #e3edf6; color: #1d4e76; }
.type-harbour { background: #d8f0f5; color: #0b6675; }
.type-estuary { background: #dbf3ea; color: #0a6a4c; }
.type-beach { background: #fbeed7; color: #9a6212; }

.spot-species {
  font-size: 11px; color: var(--ocean-3); margin-top: 7px;
  display: flex; gap: 5px; flex-wrap: wrap;
}
.spot-species .sp-chip {
  background: #eef4f9; color: var(--ocean-3);
  padding: 2px 8px; border-radius: 7px; font-weight: 600;
}
/* In-season species: this month's actual biters get a warm dot + tint */
.spot-species .sp-chip.in-season {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff4e0; color: #b5560a;
  box-shadow: inset 0 0 0 1px #f6cd8e;
}
.spot-species .sp-chip.in-season::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 2px rgba(255, 176, 32, .25);
}

.score-box {
  flex-shrink: 0; text-align: right; min-width: 52px;
}
.score-box b {
  font-size: 23px; font-weight: 800;
  background: linear-gradient(140deg, var(--ocean-2), var(--aqua-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.spot-card.best .score-box b {
  background: linear-gradient(140deg, #ef9008, #ffbf3d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score-box small {
  display: block; font-size: 9.5px; color: var(--muted);
  margin-top: 3px; letter-spacing: .4px; text-transform: uppercase; font-weight: 600;
}

.empty-state {
  padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.empty-state .emoji { font-size: 38px; margin-bottom: 8px; display: block; }
.empty-state .empty-fish {
  width: 46px; height: 46px; color: var(--line-2);
  display: block; margin: 0 auto 10px;
}

/* ---------- Map ---------- */
.map-wrap { position: relative; }
#map { width: 100%; height: 100%; background: #cfe2f0; }

/* ---------- Center crosshair (fixed at map center, doesn't block map drag) ---------- */
.map-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 500;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 4px 10px rgba(0, 30, 60, .35));
}
.crosshair-pin {
  font-size: 32px;
  line-height: 1;
  animation: crosshairBounce 2.5s ease-in-out infinite;
}
@keyframes crosshairBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.crosshair-ring {
  position: absolute;
  top: 22px; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fb8500;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(251, 133, 0, .25);
  animation: crosshairPulse 2s ease-in-out infinite;
}
@keyframes crosshairPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(251, 133, 0, .25); }
  50% { box-shadow: 0 0 0 8px rgba(251, 133, 0, .1); }
}
.crosshair-label {
  margin-top: 6px;
  padding: 3px 10px;
  background: rgba(1, 30, 60, .85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .3px;
  border-radius: 99px;
  white-space: nowrap;
}
.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content {
  font-size: 13px; margin: 12px 14px; line-height: 1.5;
}
.leaflet-popup-content b { color: var(--ocean-2); font-size: 14px; }
.popup-link {
  display: inline-block; margin-top: 8px;
  color: var(--ocean-3); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* ---------- Weather pill (collapsed default) ---------- */
.weather-pill {
  position: absolute; top: 16px; right: 16px;
  z-index: 500;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.weather-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 1);
}
.weather-pill.hidden { display: none; }
.weather-pill-icon {
  width: 20px; height: 20px;
  color: var(--aqua-2);
  line-height: 1;
  animation: waveRoll 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes waveRoll {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-1px) rotate(-4deg); }
  75% { transform: translateY(1px) rotate(4deg); }
}
.weather-pill-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ocean-2);
  letter-spacing: .2px;
  white-space: nowrap;
}

/* ---------- Weather card (expanded) ---------- */
.weather-box {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  padding: 14px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px; font-size: 13px; z-index: 500;
  border: 1px solid rgba(255,255,255,.6);
  animation: weatherBoxIn .25s ease;
}
@keyframes weatherBoxIn {
  from { opacity: 0; transform: translateY(-6px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.weather-box-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.weather-box h3 {
  font-size: 11px; font-weight: 700; color: var(--ocean-2);
  margin: 0;
  text-transform: uppercase; letter-spacing: .6px;
  display: flex; align-items: center; gap: 6px;
}
.weather-box h3::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(6, 167, 125, .2);
  animation: pulse 2s ease-in-out infinite;
}
.weather-box-close {
  background: transparent;
  border: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 18px; line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.weather-box-close:hover {
  background: rgba(0, 30, 60, .08);
  color: var(--ink);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(6, 167, 125, .2); }
  50% { box-shadow: 0 0 0 6px rgba(6, 167, 125, .05); }
}
.weather-box .row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  border-top: 1px solid rgba(0, 50, 100, .06);
}
.weather-box .row:first-of-type { border-top: 0; }
.weather-box .row span:first-child { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.weather-box .row span:last-child { font-weight: 700; color: var(--ink); font-size: 13px; }
.weather-box.hidden { display: none; }

/* ---------- Detail modal ---------- */
.detail {
  position: fixed; inset: 0;
  background: rgba(1, 30, 60, .65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
  animation: fadeIn .2s ease;
}
.detail.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.detail-card {
  background: var(--card);
  border-radius: 20px;
  max-width: 540px; width: 100%; max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 20, 40, .35);
  animation: slideUp .3s ease;
}
.detail-card::-webkit-scrollbar { width: 8px; }
.detail-card::-webkit-scrollbar-thumb { background: #d0d8e2; border-radius: 4px; }

.detail-hero {
  padding: 28px 28px 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(42, 157, 143, .3), transparent 50%),
    linear-gradient(135deg, var(--ocean-1), var(--ocean-3));
  color: #fff;
  position: relative;
  border-radius: 20px 20px 0 0;
}
.detail-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 10' preserveAspectRatio='none'><path d='M0,4 Q180,10 360,4 T720,4 T1080,4 T1440,4 L1440,10 L0,10 Z' fill='%23ffffff'/></svg>");
  background-size: 100% 100%;
}
.detail-hero h2 {
  font-size: 22px; margin-bottom: 4px; font-weight: 700;
}
.detail-hero .sub {
  font-size: 12.5px; opacity: .8; margin-bottom: 14px;
}
.detail-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  color: #fff; padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px);
}
.chip.in-season {
  background: rgba(255, 183, 3, .35);
  border-color: rgba(255, 209, 102, .8);
}
.detail-score {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
}
.detail-score-number {
  font-size: 32px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #ffd166, #ffb703);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score-bar {
  flex: 1; height: 8px;
  background: rgba(255, 255, 255, .15);
  border-radius: 4px; overflow: hidden;
}
.score-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #ffb703, #fb8500);
  border-radius: 4px; transition: width .6s ease;
}

.detail-body { padding: 22px 28px 28px; }
.detail-body section { margin-top: 18px; }
.detail-body section:first-child { margin-top: 0; }
.detail-body h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--ocean-3); margin-bottom: 8px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.detail-body h4::before {
  content: ""; width: 14px; height: 2px; background: var(--ocean-3); border-radius: 2px;
}
.detail-body p, .detail-body li {
  font-size: 13.5px; line-height: 1.6; color: #2b3f55;
}
.detail-body p.en, .detail-body .en {
  color: var(--muted); font-size: 12px; margin-top: 4px; font-style: italic;
}
.detail-body ul { padding-left: 18px; }
.detail-body ul li { margin-bottom: 3px; }

.why-note {
  font-size: 10.5px;
  color: var(--muted);
  font-style: italic;
  margin: -4px 0 8px;
}
.reason-list { list-style: none; padding: 0; }
.reason-list li {
  background: linear-gradient(135deg, #f1f8fc, #e8f4fc);
  border-left: 3px solid var(--ocean-3);
  padding: 8px 12px; margin-bottom: 6px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px; color: var(--ink-2);
}

.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--ocean-3), var(--ocean-2));
  color: #fff !important; padding: 10px 18px;
  border-radius: 99px; text-decoration: none;
  font-weight: 600; font-size: 13px;
  box-shadow: 0 4px 12px rgba(1, 73, 124, .3);
  transition: transform .15s;
}
.nav-btn:hover { transform: translateY(-1px); }

.close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 2;
}
.close:hover { background: rgba(255, 255, 255, .35); }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }

/* ============ Auth (v1.5) ============ */
.auth-btn { display: inline-flex; align-items: center; gap: 4px; }
.auth-btn.authed { color: var(--gold); border-color: var(--gold); }

.auth-modal {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(3, 20, 40, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-modal.hidden { display: none; }
.auth-card {
  position: relative; width: 100%; max-width: 360px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px 20px 18px;
}
.auth-card .close {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1;
}
.auth-title { font-size: 18px; color: var(--ocean-2); margin-bottom: 4px; }
.auth-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.auth-tab {
  flex: 1; padding: 8px; border: 1px solid var(--line); background: var(--bg);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer;
}
.auth-tab.active { background: var(--ocean-3); color: #fff; border-color: var(--ocean-3); }
.auth-input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.auth-input:focus { outline: none; border-color: var(--ocean-3); background: #fff; }
.auth-submit {
  width: 100%; padding: 11px; border: none; border-radius: var(--radius-sm);
  background: var(--ocean-3); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.auth-submit:disabled { opacity: .6; cursor: default; }
.auth-err { color: var(--coral); font-size: 12px; min-height: 16px; margin-bottom: 6px; }
.auth-note { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 10px; }

.auth-menu {
  position: absolute; top: 46px; right: 8px; z-index: 1100;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); min-width: 180px; overflow: hidden;
}
.auth-menu-user { padding: 10px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); word-break: break-all; }
.auth-menu-item { width: 100%; text-align: left; padding: 10px 12px; border: none; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.auth-menu-item:hover { background: var(--bg); }

.auth-needed { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.auth-cta, .import-cta {
  display: inline-block; padding: 9px 14px; border: none; border-radius: var(--radius-sm);
  background: var(--ocean-3); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
}
.import-cta { background: var(--gold); color: var(--ocean-1); margin-top: 8px; }

/* ============ Catch reports (v1.5) ============ */
.catch-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.catch-loading, .reviews-loading { font-size: 12px; color: var(--muted); padding: 4px 0; }
.catch-item {
  background: linear-gradient(135deg, #f1f8fc, #eaf4fc);
  border-left: 3px solid var(--ocean-4); border-radius: 0 10px 10px 0; padding: 9px 12px;
}
.catch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.catch-species { font-weight: 700; color: var(--ocean-2); font-size: 13px; }
.catch-size { font-size: 12px; color: var(--ink-2); }
.catch-notes { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.catch-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.catch-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 5px; }

.catch-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.catch-form h5 { font-size: 13px; color: var(--ocean-2); margin-bottom: 10px; }
.catch-row { display: flex; gap: 8px; margin-bottom: 8px; }
.catch-row > * { flex: 1; min-width: 0; }
.catch-form input, .catch-form select, .catch-form textarea {
  width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
.catch-form textarea { min-height: 56px; resize: vertical; margin-bottom: 8px; }
.catch-submit {
  width: 100%; padding: 10px; border: none; border-radius: 8px;
  background: var(--ocean-4); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
}
.catch-submit:disabled { opacity: .6; cursor: default; }
.catch-hint, .catch-note { font-size: 10.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---- Catch photos (v1.5.1) ---- */
.ct-photo-label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12.5px; color: var(--ocean-3); font-weight: 600; margin-bottom: 8px;
}
.ct-photo-label input[type=file] { font-size: 11px; color: var(--muted); }
.ct-photo-preview:not(:empty) { margin-bottom: 8px; }
.ct-photo-preview img { max-height: 90px; border-radius: 8px; border: 1px solid var(--line); }
.catch-photo { display: inline-block; margin-top: 6px; }
.catch-photo img {
  max-width: 100%; max-height: 200px; border-radius: 8px;
  border: 1px solid var(--line); display: block;
}

/* ============ Community forum (v1.7) ============ */
.forum-view {
  position: fixed; inset: 0; z-index: 1500; background: var(--bg);
  display: flex; flex-direction: column;
}
.forum-view.hidden { display: none; }
.forum-inner { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.forum-loading, .forum-empty, .forum-error { padding: 30px 18px; color: var(--muted); text-align: center; font-size: 13px; }
.forum-error { color: var(--coral); }

.forum-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--ocean-2); color: #fff; box-shadow: var(--shadow-sm);
}
.forum-back, .forum-close {
  background: rgba(255,255,255,.16); border: none; color: #fff; width: 32px; height: 32px;
  border-radius: 8px; font-size: 18px; cursor: pointer; flex-shrink: 0; line-height: 1;
}
.forum-logo { font-size: 20px; }
.forum-title { flex: 1; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* boards */
.board-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.board-card {
  text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; box-shadow: var(--shadow-sm); position: relative;
}
.board-card:hover { border-color: var(--ocean-3); }
.board-name { font-weight: 700; color: var(--ocean-2); font-size: 15px; }
.board-en { font-weight: 400; color: var(--muted); font-size: 11px; }
.board-desc { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.board-count { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--muted); }

/* thread list */
.thread-list { padding: 8px 0 80px; }
.thread-row {
  width: 100%; text-align: left; background: var(--card); border: none; border-bottom: 1px solid var(--line);
  padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px;
}
.thread-row:hover { background: #f7fafd; }
.thread-row-main { flex: 1; min-width: 0; }
.thread-row-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.thread-row-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.thread-row-stats { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); text-align: right; flex-shrink: 0; }

.forum-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 3; border: none; cursor: pointer;
  background: var(--gold); color: var(--ocean-1); font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 30px; box-shadow: var(--shadow-lg);
}

/* thread detail */
.thread-detail { padding: 14px 16px 40px; max-width: 760px; width: 100%; margin: 0 auto; }
.thread-head h2 { font-size: 18px; color: var(--ocean-1); line-height: 1.35; }
.thread-head-meta { font-size: 11.5px; color: var(--muted); margin: 6px 0 8px; }
.thread-actions, .post-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thread-actions { padding-bottom: 12px; border-bottom: 2px solid var(--line); margin-bottom: 6px; }
.act-like, .act-share, .act-report, .act-del {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font-size: 12px; padding: 5px 10px; border-radius: 20px; cursor: pointer;
}
.act-like.liked { background: #fff1e0; border-color: #fdba74; color: #c2410c; font-weight: 600; }
.act-del { color: var(--coral); }

.post-list { display: flex; flex-direction: column; }
.post-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-item.op { background: linear-gradient(180deg,#f4fafe,transparent); padding: 12px; border-radius: 10px; border-bottom: none; margin-bottom: 4px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.post-author { font-weight: 600; color: var(--ocean-3); }
.op-badge { background: var(--ocean-3); color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 10px; }
.post-date { margin-left: auto; }
.post-body { font-size: 14px; color: var(--ink); line-height: 1.6; word-break: break-word; }
.post-actions { margin-top: 8px; }

.reply-box { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.reply-box textarea {
  width: 100%; min-height: 70px; padding: 10px 12px; font-size: 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.thread-locked { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.btn-primary { align-self: flex-start; border: none; background: var(--ocean-3); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 18px; border-radius: 8px; cursor: pointer; }
.btn-primary:disabled { opacity: .6; }
.btn-ghost { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 9px 16px; border-radius: 8px; cursor: pointer; }

/* composer modal (over the forum view) */
.forum-modal { position: fixed; inset: 0; z-index: 1600; background: rgba(3,20,40,.5); display: flex; align-items: center; justify-content: center; padding: 18px; }
.forum-compose { width: 100%; max-width: 460px; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); }
.forum-compose h3 { font-size: 16px; color: var(--ocean-2); margin-bottom: 12px; }
.forum-compose input, .forum-compose textarea { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--bg); }
.forum-compose textarea { min-height: 140px; resize: vertical; }
.forum-compose-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ============ v1.8: notifications + insights + multi-photo ============ */
/* notifications bell */
.notify-btn { position: relative; }
.notify-badge {
  position: absolute; top: 2px; right: 2px; background: var(--coral); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; line-height: 15px;
  border-radius: 8px; padding: 0 3px; text-align: center;
}
.notify-panel {
  position: absolute; top: 46px; right: 8px; z-index: 1100; width: 290px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.notify-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ocean-2); }
.notify-head button { border: none; background: none; color: var(--ocean-3); font-size: 12px; cursor: pointer; }
.notify-loading, .notify-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 12px; }
.notify-item { display: block; width: 100%; text-align: left; border: none; background: none; border-bottom: 1px solid var(--line); padding: 10px 12px; cursor: pointer; }
.notify-item:hover { background: var(--bg); }
.notify-item.unread { background: #eef7ff; }
.notify-text { font-size: 13px; color: var(--ink); }
.notify-sub { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* insights / 鱼讯 */
.ins-loading, .ins-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.ins-body { padding: 14px 16px 50px; max-width: 760px; width: 100%; margin: 0 auto; }
.ins-stat { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.ins-stat b { color: var(--ocean-2); font-size: 17px; }
.ins-section { margin-bottom: 22px; }
.ins-section h3 { font-size: 14px; color: var(--ocean-2); margin-bottom: 10px; }
.ins-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ins-bar-label { width: 90px; flex-shrink: 0; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-bar-track { flex: 1; height: 16px; background: var(--line); border-radius: 8px; overflow: hidden; }
.ins-bar-fill { height: 100%; background: linear-gradient(90deg, var(--ocean-3), var(--teal)); border-radius: 8px; }
.ins-bar-n { width: 28px; text-align: right; font-size: 12px; color: var(--muted); }
.ins-catch-list { display: flex; flex-direction: column; gap: 8px; }
.ins-catch { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.ins-catch-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ins-catch-body { min-width: 0; }
.ins-catch-top { font-size: 13px; color: var(--ink); }
.ins-catch-size { font-size: 12px; color: var(--muted); }
.ins-catch-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* multi-photo gallery in catch list */
.catch-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.catch-photos .catch-photo { margin-top: 0; }
.catch-photos .catch-photo img { max-height: 120px; max-width: 140px; object-fit: cover; }
.ct-photo-preview { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- moderation: report button + modal ---------- */
.catch-foot-meta { display: inline-flex; align-items: center; gap: 6px; }
.link-report {
  background: none; border: none; cursor: pointer; padding: 0 2px; font-size: 12px;
  opacity: .5; line-height: 1; transition: opacity .15s;
}
.link-report:hover { opacity: 1; }

.report-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.report-reason {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all .15s;
}
.report-reason:hover { border-color: var(--ocean-3); }
.report-reason.active { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- moderation: admin panel (#/admin) ---------- */
.adm-body { padding: 12px 14px 28px; }
.adm-stat { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.adm-report {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.adm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.adm-type { font-size: 12px; font-weight: 600; color: #fff; background: var(--ocean-3); border-radius: 6px; padding: 2px 8px; }
.adm-reason { font-size: 13px; font-weight: 600; color: var(--coral); }
.adm-flag { font-size: 11px; border-radius: 6px; padding: 2px 7px; }
.adm-removed { background: #fde8ee; color: var(--coral); }
.adm-gone { background: var(--line); color: var(--muted); }
.adm-preview { font-size: 14px; color: var(--ink); line-height: 1.5; margin: 4px 0; word-break: break-word; }
.adm-detail { font-size: 12px; color: var(--muted); margin: 4px 0; }
.adm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.adm-meta { font-size: 12px; color: var(--muted); }
.adm-actions { display: flex; gap: 8px; }
.adm-btn { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all .15s; }
.adm-resolve:hover { border-color: var(--ocean-3); color: var(--ocean-3); }
.adm-takedown { border-color: var(--coral); color: var(--coral); font-weight: 600; }
.adm-takedown:hover { background: var(--coral); color: #fff; }

/* ============ v2.0 — line-icon alignment across the deeper views ============ */
/* per-spot live-conditions grid: icon + label */
.spot-cond-grid > div span { display: inline-flex; align-items: center; gap: 5px; }
.spot-cond-grid .ic { width: 14px; height: 14px; color: var(--ocean-3); }
.spot-cond-grid > div.wide .ic { color: var(--aqua-2); }

/* prime-time blocks (weather panel + hero badge + per-spot) */
.prime-header, .spot-cond-prime-header { display: flex; align-items: center; gap: 5px; }
.prime-header .ic, .spot-cond-prime-header .ic { width: 14px; height: 14px; color: var(--gold-dark); }
.prime-icon { display: inline-flex; align-items: center; }
.prime-icon .ic { width: 16px; height: 16px; color: var(--gold-dark); }
.prime-now, .spot-cond-now { display: flex; align-items: center; justify-content: center; gap: 5px; }
.prime-now .ic, .spot-cond-now .ic { width: 13px; height: 13px; }
.spot-cond-prime-rows > div { display: inline-flex; align-items: center; gap: 4px; }
.spot-cond-prime-rows .ic { width: 13px; height: 13px; }
.prime-badge-now .ic { width: 12px; height: 12px; }
.prime-badge-row .ic { width: 13px; height: 13px; }

/* access card */
.access-icon .ic { width: 15px; height: 15px; color: var(--ocean-3); }
.access-tips-header { display: flex; align-items: center; gap: 5px; }
.access-tips-header .ic { width: 13px; height: 13px; }

/* status bar + "before you go" refs header + algo link */
.status .ic { width: 14px; height: 14px; color: var(--ocean-3); flex-shrink: 0; }
.refs-header { display: flex; align-items: center; gap: 5px; }
.refs-block.global .refs-header .ic { width: 14px; height: 14px; color: #c2410c; }
.detail-score a .ic { width: 12px; height: 12px; vertical-align: -2px; }

/* forum view */
.forum-logo { display: inline-flex; align-items: center; }
.forum-bar .forum-logo .ic { width: 21px; height: 21px; }
.thread-row-stats span { display: inline-flex; align-items: center; gap: 4px; }
.thread-row-stats .ic { width: 13px; height: 13px; }
.thread-head-meta .ic { width: 13px; height: 13px; vertical-align: -2px; }
.thread-pin .ic { width: 13px; height: 13px; color: var(--gold-dark); vertical-align: -2px; margin-right: 3px; }
.thread-actions .act-like, .thread-actions .act-share, .thread-actions .act-report,
.post-actions .act-like, .post-actions .act-report {
  display: inline-flex; align-items: center; gap: 5px;
}
.thread-actions .ic, .post-actions .ic { width: 14px; height: 14px; }
.thread-locked { display: flex; align-items: center; justify-content: center; gap: 6px; }
.thread-locked .ic { width: 15px; height: 15px; }

/* insights / 鱼讯 */
.ins-section h3 { display: flex; align-items: center; gap: 6px; }
.ins-section h3 .ic { width: 17px; height: 17px; color: var(--ocean-3); }
.ins-catch-top .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--ocean-3); }

/* admin */
.adm-reason .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* auth + report modal titles, catch-login CTA */
.auth-title { display: flex; align-items: center; gap: 8px; }
.auth-title .ic { width: 20px; height: 20px; color: var(--aqua-2); }
.auth-cta .ic, .import-cta .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }

/* ===== WS1: rock-fishing safety verdict + NSW regulations ===== */
.safety-verdict { border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; border-left: 5px solid var(--muted); background: #f4f8fb; }
.safety-verdict .sv-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.safety-verdict .sv-label { font-weight: 800; font-size: 16px; }
.safety-verdict .sv-label-en { font-size: 12px; color: var(--muted); }
.safety-verdict .sv-reasons { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.safety-verdict .sv-reminders { margin: 8px 0 6px; padding-left: 18px; font-size: 12.5px; line-height: 1.55; }
.safety-verdict .sv-reminders .en { color: var(--muted); }
.safety-verdict .sv-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.sv-tutorial-btn { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-xs); padding: 5px 10px; font-size: 12.5px; cursor: pointer; }
.sv-tutorial-btn:hover { border-color: var(--aqua); }
.sv-green  { border-left-color: var(--green); background: #eafaf4; }
.sv-amber  { border-left-color: var(--gold); background: #fff6e6; }
.sv-red    { border-left-color: var(--coral); background: #fdebef; }
.sv-red .sv-label { color: var(--coral); }

.safety-steps { padding-left: 4px; list-style: none; }
.safety-steps li { margin: 0 0 12px; line-height: 1.5; }
.safety-steps .en { color: var(--muted); font-size: 12.5px; }

.reg-table { border: 1px solid var(--line); border-radius: var(--radius-xs); overflow: hidden; }
.reg-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 11px; font-size: 13px; border-top: 1px solid var(--line); }
.reg-row:first-child { border-top: none; }
.reg-sp { font-weight: 600; }
.reg-sp-en { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.reg-vals { color: var(--ink-2); text-align: right; }
.reg-protected { background: #fdebef; }
.reg-protected .reg-vals { color: var(--coral); font-weight: 600; }
.reg-sanctuary { background: #fdebef; border: 1px solid #f6c2cf; color: var(--coral); border-radius: var(--radius-xs); padding: 8px 11px; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.reg-sanctuary .en { display: block; font-weight: 400; color: var(--ink-2); font-size: 11.5px; }
.reg-disclaimer { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.reg-disclaimer .en { color: var(--muted); }
.reg-disclaimer a { color: var(--aqua-2); }
.reg-updated { white-space: nowrap; }
.catch-reg-reminder:not(:empty) { background: #fff6e6; border: 1px solid #ffe2ad; border-radius: var(--radius-xs); padding: 6px 10px; margin: 2px 0 8px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* ===== WS2: pill chips (shared), glossary, kits, scene ===== */
.gl-chip { background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.gl-chip.active { background: var(--aqua); border-color: var(--aqua); color: #fff; }

/* glossary */
.gl-body { padding: 12px 14px 28px; }
.gl-search { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 10px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gl-list { display: flex; flex-direction: column; gap: 10px; }
.gl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; }
.gl-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gl-term { font-weight: 800; font-size: 16px; }
.gl-term-en { color: var(--aqua-2); font-weight: 600; font-size: 13px; }
.gl-tag { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 8px; }
.gl-exp { font-size: 13px; line-height: 1.55; margin-top: 5px; }
.gl-exp.en { color: var(--muted); }
.gl-aka { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* kits */
.kit-body { padding: 12px 14px 28px; }
.kit-intro, .comp-intro { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.kit-intro .en, .comp-intro .en { color: var(--muted); }
.kit-grid, .comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .kit-grid, .comp-grid { grid-template-columns: 1fr; } }
.kit-card, .comp-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; }
.kit-card:hover, .comp-card:hover { border-color: var(--aqua); box-shadow: var(--shadow-sm); }
.kit-card-name, .comp-name { font-weight: 800; font-size: 15px; }
.kit-card-en, .comp-card-en { color: var(--muted); font-size: 12px; margin-top: 1px; }
.kit-card-sc { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.kit-card-meta, .comp-card-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.kit-back { background: none; border: none; color: var(--aqua-2); cursor: pointer; font-size: 13px; padding: 0 0 10px; }
.kit-detail-head, .comp-detail-head { margin-bottom: 10px; }
.kit-h { margin: 14px 0 8px; font-size: 14px; }
.kit-items { display: flex; flex-direction: column; gap: 6px; }
.kit-item { display: flex; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.kit-item b { flex: 0 0 92px; color: var(--ink-2); }
.kit-item .en { color: var(--muted); }
.kit-safety { padding-left: 18px; font-size: 13px; line-height: 1.6; }
.kit-safety .en, .kit-item .en { color: var(--muted); }
.kit-scene-link { display: inline-block; margin-top: 6px; color: var(--aqua-2); font-size: 13px; }

/* scene page */
.scene-body { padding: 4px 14px 28px; }
.scene-hero { padding: 10px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.scene-title { font-weight: 800; font-size: 19px; }
.scene-title-en { color: var(--aqua-2); font-size: 14px; font-weight: 600; }
.scene-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.scene-season { border-radius: 999px; padding: 1px 8px; font-size: 11.5px; }
.scene-season.hot { background: #fff1d6; color: var(--gold-dark); }
.scene-season.off { background: #e9eef3; color: var(--muted); }
.scene-season.ok { background: #e6f7f3; color: var(--green); }
.scene-tide { font-size: 12.5px; color: var(--ink-2); }
.scene-score { font-size: 13px; margin-bottom: 8px; }
.scene-score b { color: var(--aqua-2); font-size: 16px; }

/* ===== WS3: insights window chips, region group, competitions ===== */
.ins-win { display: flex; gap: 6px; margin-bottom: 10px; }
.board-group-title { font-weight: 700; font-size: 13px; color: var(--muted); margin: 16px 14px 6px; }

.comp-body { padding: 12px 14px 28px; }
.comp-card-top { display: flex; align-items: center; gap: 8px; }
.comp-status { margin-left: auto; font-size: 11px; border-radius: 999px; padding: 2px 9px; }
.comp-active { background: #e6f7f3; color: var(--green); }
.comp-upcoming { background: #fff6e6; color: var(--gold-dark); }
.comp-ended { background: var(--bg); color: var(--muted); }
.comp-leader { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.comp-entry { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.comp-rank { font-size: 18px; font-weight: 800; min-width: 26px; text-align: center; }
.comp-img { width: 48px; height: 48px; border-radius: var(--radius-xs); object-fit: cover; flex-shrink: 0; }
.comp-img-none { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); }
.comp-entry-body { flex: 1; min-width: 0; }
.comp-entry-top { font-size: 14px; }
.comp-val { color: var(--aqua-2); font-weight: 700; }
.comp-entry-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.comp-detail-head .en { color: var(--muted); font-size: 12px; }
.comp-cta { margin-top: 14px; font-size: 12.5px; color: var(--ink-2); background: var(--bg); border-radius: var(--radius-xs); padding: 9px 11px; line-height: 1.5; }
.comp-cta .en { color: var(--muted); }
.chip-btn { cursor: pointer; border: none; font: inherit; }

/* fishing-intel feed (ingest harness) */
.ins-intel { display: flex; flex-direction: column; gap: 8px; }
.ins-intel-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 8px 11px; }
.ins-intel-top { font-size: 13.5px; }
.ins-intel-kind { font-size: 10.5px; border-radius: 999px; padding: 1px 7px; margin-right: 6px; background: var(--bg); color: var(--ink-2); vertical-align: 1px; }
.ins-intel-kind.k-regulation, .ins-intel-kind.k-closure { background: #fdebef; color: var(--coral); }
.ins-intel-kind.k-safety { background: #fff6e6; color: var(--gold-dark); }
.ins-intel-kind.k-report { background: #e6f7f3; color: var(--green); }
.ins-intel-sum { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.ins-intel-src { font-size: 12px; margin-top: 5px; }
.ins-intel-src a { color: var(--aqua-2); }
