/* ── Seaside 30A '26 — editorial coastal design system ──────────────────────── */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --bg: #f4f1ea;
  --surface: #fffefb;
  --surface-2: #f7f4ee;
  --ink: #15232e;
  --sub: #5d6e7a;
  --line: rgba(21, 35, 46, 0.08);
  --accent: #0e6470;
  --accent-soft: rgba(14, 100, 112, 0.08);
  --coral: #b04f2e;
  --coral-soft: rgba(176, 79, 46, 0.09);
  --gold: #a87b3f;
  --good: #2a7148;
  --warn: #8f5606;
  --bad: #b3422f;
  --good-soft: rgba(42, 113, 72, 0.1);
  --warn-soft: rgba(143, 86, 6, 0.1);
  --bad-soft: rgba(179, 66, 47, 0.1);
  --hero-a: #0a1b29;
  --hero-b: #0e3a4a;
  --hero-c: #136672;
  --hero-ink: #f2f8f9;
  --knot-braid: #0f766e;
  --knot-mono: #b45309;
  --knot-ink: #51606b;
  --shadow: 0 1px 2px rgba(16, 32, 43, 0.04), 0 10px 28px -16px rgba(16, 32, 43, 0.16);
  --blur-bg: rgba(248, 246, 240, 0.84);
  --r: 16px;
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #070d13;
  --surface: #0d1822;
  --surface-2: #111e2a;
  --ink: #e8eef1;
  --sub: #91a3af;
  --line: rgba(232, 238, 241, 0.075);
  --accent: #6fcfc3;
  --accent-soft: rgba(111, 207, 195, 0.09);
  --coral: #d98a68;
  --coral-soft: rgba(217, 138, 104, 0.1);
  --gold: #c9a062;
  --good: #6cbf8d;
  --warn: #d9a948;
  --bad: #d97b66;
  --good-soft: rgba(108, 191, 141, 0.1);
  --warn-soft: rgba(217, 169, 72, 0.1);
  --bad-soft: rgba(217, 123, 102, 0.12);
  --hero-a: #050b11;
  --hero-b: #0a1b29;
  --hero-c: #0e3a4a;
  --hero-ink: #eaf4f5;
  --knot-braid: #4fc4b8;
  --knot-mono: #d9a948;
  --knot-ink: #8b9ca8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -18px rgba(0, 0, 0, 0.55);
  --blur-bg: rgba(8, 14, 20, 0.84);
}

/* ── reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.52;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  min-height: 100dvh;
  transition: background 0.3s ease;
  font-size: 15px;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: var(--accent); text-decoration: none; font-weight: 600; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* glyph wrapper */
.gl { display: inline-flex; flex: none; vertical-align: -3px; }
.gl svg { width: 100%; height: 100%; }

/* ── app frame ── */
#app { max-width: 640px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }

.app-header {
  position: sticky; top: 0; z-index: 40;
  margin: 0 -16px 4px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blur-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; align-self: center; }
.brand-name { font-family: var(--font-display); font-style: italic; font-size: 21px; letter-spacing: 0.01em; }
.brand-yr { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--sub); }
.hdr-btn {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: var(--sub); border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.15s ease;
}
.hdr-btn .gl { vertical-align: 0; }
.hdr-btn:active { transform: scale(0.9); }

/* ── views ── */
.view { animation: viewin 0.3s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-title { font-family: var(--font-display); font-weight: 400; font-size: 38px; letter-spacing: 0; line-height: 1.05; margin: 18px 2px 6px; }
.page-sub { color: var(--sub); font-size: 14px; margin: 0 2px 16px; }

/* ── hero (Today) ── */
.hero {
  position: relative; overflow: hidden;
  margin: 12px -4px 16px; padding: 26px 22px 60px;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--hero-a), var(--hero-b) 58%, var(--hero-c));
  color: var(--hero-ink);
  box-shadow: var(--shadow);
}
.hero-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.72; }
.hero-big { font-family: var(--font-display); font-weight: 400; font-size: 40px; letter-spacing: 0; line-height: 1.06; margin: 10px 0 6px; }
.hero-sub { font-size: 14.5px; opacity: 0.82; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
}
.chip .gl { vertical-align: 0; opacity: 0.85; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 44px; pointer-events: none; }
.hero-waves svg { width: 200%; height: 100%; animation: drift 14s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── cards & sections ── */
.card {
  background: var(--surface); border-radius: var(--r); padding: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  margin-bottom: 14px;
}
.sec-head { margin: 28px 4px 12px; }
.sec-title { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0; line-height: 1.1; }
.sec-sub { color: var(--sub); font-size: 13.5px; margin-top: 3px; }
.card h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card h3 .gl { color: var(--accent); }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 9px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 12px 8px; text-align: center; }
.tile .gl { margin: 0 auto 4px; color: var(--sub); }
.tile-v { font-family: var(--font-display); font-size: 22px; letter-spacing: 0; }
.tile-k { font-size: 10.5px; color: var(--sub); font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* segmented control */
.seg {
  display: flex; background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px; border-radius: 13px; margin: 4px 0 16px; gap: 4px;
  position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 30;
  box-shadow: var(--shadow);
}
.seg-btn {
  flex: 1; padding: 9px 4px; border-radius: 9px; font-size: 13px; font-weight: 650;
  color: var(--sub); transition: all 0.18s ease; letter-spacing: 0.01em;
}
.seg-btn.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); }

/* fold (details) */
.fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.fold summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 17px; font-weight: 650; font-size: 15px; cursor: pointer;
}
.fold summary::-webkit-details-marker { display: none; }
.fold-t { display: inline-flex; align-items: center; gap: 10px; }
.fold-gl { color: var(--accent); }
.fold .chev { width: 18px; height: 18px; color: var(--sub); transition: transform 0.25s ease; flex: none; }
.fold[open] .chev { transform: rotate(180deg); }
.fold-body { padding: 0 17px 16px; }

/* kv rows, bullets, features */
.kv-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-k { flex: 0 0 38%; font-size: 13px; font-weight: 650; color: var(--sub); }
.kv-v { font-size: 14px; }
.bul li { position: relative; padding: 6px 0 6px 20px; font-size: 14px; }
.bul li::before { content: ""; position: absolute; left: 2px; top: 13.5px; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); opacity: 0.55; }
.feat { padding: 11px 0; border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: 0; }
.feat-h { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.feat-p { color: var(--sub); font-size: 13.5px; }
[data-theme="dark"] .feat-p { color: #a3b4bf; }

/* badges */
.badge { display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.b-green { background: var(--good-soft); color: var(--good); }
.b-amber { background: var(--warn-soft); color: var(--warn); }
.b-red { background: var(--bad-soft); color: var(--bad); }
.b-teal { background: var(--accent-soft); color: var(--accent); }
.b-coral { background: var(--coral-soft); color: var(--coral); }

/* ── tab bar ── */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  max-width: 640px; margin: 0 auto;
  padding: 9px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--blur-bg);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--sub); font-size: 10px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 14px; transition: color 0.18s ease;
}
.tab svg { width: 24px; height: 24px; transition: transform 0.22s cubic-bezier(0.3, 1.6, 0.5, 1); }
.tab.on { color: var(--accent); }
.tab.on svg { transform: translateY(-1px) scale(1.06); }
.tab:active svg { transform: scale(0.86); }

/* ── itinerary timeline ── */
.day { display: flex; gap: 14px; }
.day-rail { display: flex; flex-direction: column; align-items: center; flex: none; width: 42px; }
.day-dot {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
  box-shadow: var(--shadow);
}
.day.today .day-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .day.today .day-dot { color: #07232a; }
.day-line { flex: 1; width: 1.5px; background: var(--line); margin: 6px 0; border-radius: 2px; }
.day-card { flex: 1; margin-bottom: 18px; min-width: 0; }
.day-when { font-size: 10.5px; font-weight: 750; color: var(--sub); text-transform: uppercase; letter-spacing: 0.14em; }
.day.today .day-when { color: var(--accent); }
.day-title { font-family: var(--font-display); font-size: 22px; letter-spacing: 0; margin: 3px 0 9px; line-height: 1.12; }

/* ── flight card ── */
.flight-route { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 6px; }
.flight-apt { text-align: center; }
.flight-code { font-family: var(--font-display); font-size: 36px; letter-spacing: 0.01em; line-height: 1; }
.flight-city { font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.flight-time { font-size: 16px; font-weight: 700; margin-top: 5px; }
.flight-path { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--sub); }
.flight-path .line { flex: 1; border-top: 1.5px dashed var(--sub); opacity: 0.45; }
.flight-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

/* ── light arsenal ── */
.light-card .lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lc-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.lc-type { font-size: 11px; color: var(--sub); font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.lc-stats { display: flex; gap: 8px; margin: 12px 0 10px; flex-wrap: wrap; }
.lc-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; text-align: center; flex: 1; min-width: 74px; }
.lc-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: 0; }
.lc-stat span { font-size: 9.5px; color: var(--sub); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.lc-use { font-size: 13.5px; color: var(--sub); margin-top: 8px; display: flex; gap: 7px; }
.lc-use .gl { color: var(--accent); margin-top: 1px; }
[data-theme="dark"] .lc-use { color: #a3b4bf; }
.lc-crab { margin-top: 10px; padding: 11px 13px; border-radius: 11px; background: var(--coral-soft); font-size: 13px; display: flex; gap: 8px; }
.lc-crab .gl { color: var(--coral); margin-top: 1px; }
.lc-crab b { color: var(--coral); }
.beam { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.beam-l { font-size: 9.5px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sub); }
.beam-track { flex: 1; height: 5px; border-radius: 99px; position: relative; background: linear-gradient(90deg, var(--accent), var(--coral)); opacity: 0.85; }
.beam-dot { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 99px; background: var(--surface); border: 3px solid var(--ink); transform: translate(-50%, -50%); }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.fchip { flex: none; font-size: 12.5px; font-weight: 650; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--sub); }
.fchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .fchip.on { color: #07232a; }

/* ── knots ── */
.knot-svg { width: 100%; height: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.knot-svg .kb { stroke: var(--knot-braid); }
.knot-svg .km { stroke: var(--knot-mono); }
.knot-svg .kh { stroke: var(--knot-ink); }
.knot-svg .kj { fill: var(--coral); }
.knot-svg .ka { stroke: var(--sub); }
.knot-svg .kt { fill: var(--sub); font-size: 12px; font-weight: 600; font-family: var(--font-text); }
.knot-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.knot-btn { padding: 8px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.knot-btn:disabled { opacity: 0.35; }
.knot-dots { display: flex; gap: 6px; }
.kdot { width: 6px; height: 6px; border-radius: 99px; background: var(--line); }
.kdot.on { background: var(--accent); }
.knot-cap { font-size: 13.5px; margin-top: 10px; min-height: 42px; }
.knot-star { color: var(--gold); }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--line); }
.dot.on { background: var(--gold); }

/* line system chain */
.chain { display: flex; flex-direction: column; margin: 8px 0; }
.chain-item { display: flex; align-items: center; gap: 12px; }
.chain-node { flex: none; width: 13px; height: 13px; border-radius: 99px; margin-left: 6px; }
.chain-node.braid { background: var(--knot-braid); }
.chain-node.mono { background: var(--knot-mono); }
.chain-node.knot { background: var(--ink); width: 9px; height: 9px; margin-left: 8px; }
.chain-node.lure { background: var(--coral); }
.chain-rail { flex: none; width: 1.5px; height: 16px; background: var(--line); margin-left: 12px; }
.chain-t b { font-size: 14px; }
.chain-t span { font-size: 12px; color: var(--sub); margin-left: 8px; }

/* ── checklist ── */
.pack-head { display: flex; align-items: center; gap: 14px; margin-bottom: 0; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.4s ease; }
.ring-t { font-size: 12px; font-weight: 750; fill: var(--ink); font-family: var(--font-text); }
.chk { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.chk:last-child { border-bottom: 0; }
.chk input { display: none; }
.chk-box {
  flex: none; width: 23px; height: 23px; border-radius: 8px; border: 1.5px solid var(--sub);
  display: grid; place-items: center; transition: all 0.18s ease; margin-top: 1px; opacity: 0.8;
}
.chk-box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(0.4); transition: all 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); }
[data-theme="dark"] .chk-box svg { color: #07232a; }
.chk input:checked + .chk-box { background: var(--accent); border-color: var(--accent); opacity: 1; }
.chk input:checked + .chk-box svg { opacity: 1; transform: none; }
.chk-t { font-size: 14px; transition: opacity 0.18s; }
.chk input:checked ~ .chk-t { opacity: 0.4; text-decoration: line-through; }
.pack-reset { font-size: 12.5px; font-weight: 700; color: var(--bad); padding: 8px 4px; }

/* ── crew ── */
.crew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crew { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.mono-av {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: 17px;
}
.crew-name { font-weight: 700; font-size: 14.5px; margin-top: 9px; letter-spacing: -0.01em; }
.crew-role { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 2px 0 5px; }
.crew-detail { font-size: 12.5px; color: var(--sub); }

/* ── today widgets ── */
.wx-now { display: flex; align-items: center; gap: 16px; }
.wx-temp { font-family: var(--font-display); font-size: 52px; letter-spacing: 0; line-height: 1; }
.wx-ic { color: var(--accent); }
.wx-meta { font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.crab-gauge { display: flex; align-items: center; gap: 16px; }
.crab-num { font-family: var(--font-display); font-size: 52px; letter-spacing: 0; line-height: 1; }
.crab-verdict { font-size: 15.5px; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.crab-verdict .gl { color: var(--coral); }
.crab-why { font-size: 12.5px; color: var(--sub); margin-top: 3px; }
.gauge-track { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 12px; }
.gauge-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--gold), var(--good)); transition: width 0.6s ease; }
#tide-canvas { width: 100%; height: 170px; }
.hilo-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hilo { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.hilo b { font-weight: 750; color: var(--ink); }
.sun-row { display: flex; justify-content: space-between; gap: 10px; }
.sun-cell { text-align: center; flex: 1; }
.sun-cell .gl { margin: 0 auto 5px; color: var(--accent); }
.sun-v { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; justify-content: center; gap: 7px; }
.sun-k { font-size: 10px; color: var(--sub); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
.moon-svg .moon-dark { fill: var(--surface-2); stroke: var(--line); }
.moon-svg .moon-lit { fill: var(--gold); }
.offline-note { font-size: 12px; color: var(--warn); font-weight: 650; margin-top: 8px; }

/* moon week strip */
.moon-strip { display: flex; justify-content: space-between; gap: 4px; overflow-x: auto; }
.moon-cell { text-align: center; flex: 1; min-width: 56px; padding: 8px 2px; border-radius: 11px; }
.moon-cell.tonight { background: var(--accent-soft); }
.kv-row.tonight { background: var(--accent-soft); border-radius: 11px; padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.moon-cell .mc-d { font-size: 10px; font-weight: 750; color: var(--sub); text-transform: uppercase; letter-spacing: 0.08em; }
.moon-cell .mc-p { font-size: 11px; font-weight: 650; margin-top: 3px; color: var(--sub); }
.moon-cell svg { margin: 5px auto 0; }

/* flags */
.flag-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.flag-row:last-child { border-bottom: 0; }
.flag-swatch { flex: none; width: 24px; height: 16px; border-radius: 3px; margin-top: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.flag-name { font-weight: 700; font-size: 14px; }
.flag-meaning { font-size: 13px; color: var(--sub); }

/* tables */
.mtx { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtx th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sub); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.mtx td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mtx tr:last-child td { border-bottom: 0; }
.mtx .pick { font-weight: 750; color: var(--accent); white-space: nowrap; }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 650;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: all 0.25s ease; z-index: 90; max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* skeleton */
.skel { border-radius: 12px; background: linear-gradient(100deg, var(--surface-2) 40%, var(--line) 50%, var(--surface-2) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* install hint */
.install-hint { background: linear-gradient(140deg, var(--hero-a), var(--hero-b) 70%, var(--hero-c)); color: var(--hero-ink); border: none; }
.install-hint h3 { color: inherit; }
.install-hint h3 .gl { color: inherit; opacity: 0.9; }
.install-hint p { font-size: 13px; opacity: 0.88; }

@media (min-width: 560px) {
  .crew-grid { grid-template-columns: 1fr 1fr 1fr; }
}
