/* Swell & Road palette (same as apps/site): teal #133b44, deep #0c282f, gold #f5b400, foam #e9f1f1. */
:root {
  --navy: #133b44;
  --deep: #0c282f;
  --sand: #f5b400;
  --sand-ink: #10262b;
  --bg: #f2f6f6;
  --surface: #ffffff;
  --text: #14212b;
  --muted: #55656f;
  --line: #d8e4e4;
  --accent: #133b44;
  --accent-text: #ffffff;
  --danger: #b42318;
  --ok: #1d6f42;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1d21;
    --surface: #10292f;
    --text: #e8eef2;
    --muted: #a2b2bc;
    --line: #1f3f46;
    --accent: #f5b400;
    --accent-text: #0a1d21;
    --danger: #f97066;
    --ok: #6fcf97;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: linear-gradient(160deg, var(--navy), var(--deep)); color: #fff;
  border-bottom: 3px solid var(--sand);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 800; text-decoration: none; font-size: 1.1rem; color: #fff; }
.brand img { border-radius: 8px; }
#who { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #c9d8da; min-width: 0; }
.bar button.quiet { color: #fff; border-color: rgba(255,255,255,.55); }
#who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
.foot { max-width: 860px; margin: 24px auto; padding: 0 16px; font-size: .8rem; color: var(--muted); }
h1 { font-size: 1.55rem; margin: 8px 0 16px; color: var(--accent); }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.error:empty { display: none; }
.okmsg { color: var(--ok); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 8px 0;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, a.card:focus-visible { border-color: var(--accent); }
.card .title { font-weight: 600; }
.card .sub { color: var(--muted); font-size: .9rem; }
.pill {
  background: color-mix(in srgb, var(--sand) 18%, transparent);
  display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: middle;
}
dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 12px; margin: 0; }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl { grid-template-columns: 1fr; } dd { margin-bottom: 6px; } }
form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: .9rem; }
label.check { display: flex; align-items: center; gap: 8px; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
button {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--sand);
  background: var(--sand); color: var(--sand-ink); cursor: pointer; font-weight: 700;
}
button:hover { filter: brightness(.96); }
button.quiet { background: transparent; color: var(--accent); border-color: var(--accent); font-weight: 600; }
button:disabled { opacity: .6; cursor: progress; }
details > summary { cursor: pointer; color: var(--accent); font-weight: 600; margin: 8px 0; }
.code { letter-spacing: .3em; font-size: 1.4rem; text-align: center; }
.narrow { max-width: 380px; margin: 32px auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery a { display: block; text-decoration: none; font-size: .8rem; overflow-wrap: anywhere; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.msg { border-left: 3px solid var(--line); padding: 4px 10px; margin: 8px 0; }
.msg.internal { border-left-color: var(--accent); }
.msg .meta { font-size: .8rem; color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }
.row > button { flex: 0 0 auto; }
.stack { display: grid; gap: 10px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 10px; }
legend { font-weight: 600; padding: 0 4px; }
.field { display: grid; gap: 6px; font-size: .9rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; }
.check-row { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row.issue { border-left: 3px solid var(--danger); padding-left: 8px; }
.check-row .row > select { flex: 0 1 170px; }
@media print {
  .bar, .foot, .no-print, details > summary { display: none !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; border-color: #bbb; }
  a { color: inherit; }
}
.suggested { outline: 2px dashed var(--accent); outline-offset: 1px; }
.suggest-bar { display: grid; gap: 8px; border-color: var(--sand); border-width: 2px; }
a.button { display: inline-block; text-align: center; text-decoration: none; padding: 10px 16px; border-radius: 10px; background: var(--sand); color: var(--sand-ink); font-weight: 700; }
.card.danger { border-color: var(--danger); border-width: 2px; }
.card.danger .title { color: var(--danger); }
fieldset legend { color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
/* DockSteady-style type: bold condensed uppercase brand and page titles, flat teal bar with a gold rule. */
.bar { background: var(--navy); border-bottom: 4px solid var(--sand); }
.brand, h1 { font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.brand { font-size: 1.35rem; }
h1 { font-size: 1.9rem; }
/* Plan comparison table. */
.table-wrap { overflow-x: auto; }
table.plans { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.plans th, table.plans td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.plans .mark { text-align: center; white-space: nowrap; }
table.plans thead th { text-align: center; }
table.plans tr.group th { background: var(--bg); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
table.plans .mine { background: color-mix(in srgb, var(--sand) 18%, transparent); font-weight: 700; }
/* Checklist result pills. */
.pill.okpill { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.attn { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill.booked { background: color-mix(in srgb, var(--sand) 30%, transparent); }
/* Plan and price breakdown, add-on choices. */
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table tr.total td { font-weight: 800; border-bottom: 2px solid var(--text); }
label.check { display: flex; gap: 10px; align-items: flex-start; }
label.check input { width: auto; flex: 0 0 auto; margin-top: 4px; }
/* Technician tools on checklist items. */
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.row.tools button { padding: 4px 10px; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chip { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.card.notice { border-left: 5px solid var(--sand); }
.sub.warn { color: var(--danger); font-weight: 600; }
/* Boat status at a glance. */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .92rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status.green .dot { background: var(--ok); }
.status.yellow .dot { background: var(--sand); }
.status.red .dot { background: var(--danger); }
.status.red strong { color: var(--danger); }
/* Business dashboard. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); text-decoration: none; }
a.tile:hover { border-color: var(--accent); }
.tile-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tile-value { font-size: 1.9rem; font-weight: 800; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
table.dash th { text-align: left; font-size: .85rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
table.dash th.num { text-align: right; }
table.dash td.num { font-variant-numeric: tabular-nums; }
/* How-to video library. */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.video-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; padding-bottom: 10px; }
.video-card img, .video-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--line); }
.video-ph { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.video-card .title, .video-card .sub { padding: 0 12px; }
.video-card .title { margin-top: 8px; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 8px 0 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
a.how-to { display: inline-block; margin-top: 4px; font-weight: 600; }

/* ---- "Dockside Friendly" (owner's pick, 2026-10-14). Same look as swellandroad.com: sea-glass ground, white rounded
   cards with soft shadows, pill buttons, light header, Plus Jakarta Sans. Overrides the rules above. ---- */
:root {
  --bg: #eef6f4; --surface: #ffffff; --text: #14262b; --muted: #4a5a60; --line: #d6e5e2;
  --accent: #133b44; --radius: 22px; --shadow: 0 12px 32px rgba(19, 59, 68, .09);
  --mint: #e3f3ea; --sun: #fff3cf; --sky: #e6eef8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1f23; --surface: #15302f; --text: #e8eef2; --muted: #a9bcbc; --line: #23433f; --accent: #9fd3cf; --accent-text: #0d1f23;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35); --mint: #17382b; --sun: #3a3112; --sky: #1c2c40; }
}
body { font: 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.bar { background: transparent; color: var(--text); border-bottom: 0; padding: 16px 20px; max-width: 900px; margin: 0 auto; }
.brand, h1 { font-family: inherit; text-transform: none; letter-spacing: -.015em; }
.brand { color: var(--text); font-size: 1.2rem; }
.brand img { border-radius: 50%; }
#who { color: var(--muted); }
.bar button.quiet { color: var(--accent); border-color: var(--accent); }
h1 { font-size: 1.9rem; font-weight: 800; color: var(--text); }
h2 { font-size: 1.25rem; font-weight: 800; }
.card { border: 0; box-shadow: var(--shadow); padding: 16px 18px; margin: 10px 0; }
a.card:hover, a.card:focus-visible { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.card.notice { background: var(--sun); border-left: 0; }
.card.danger { box-shadow: 0 0 0 2px var(--danger), var(--shadow); }
button, a.button { border-radius: 999px; padding: 10px 18px; }
button.quiet { border-width: 1.5px; }
.pill { border: 0; background: var(--bg); color: var(--muted); font-weight: 600; padding: 2px 10px; }
.pill.okpill { background: var(--mint); }
.pill.booked { background: var(--sun); }
input:not([type=checkbox]), select, textarea { border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 12px; }
details > summary { color: var(--text); }
.tile { border: 0; box-shadow: var(--shadow); border-radius: var(--radius); }
.table-wrap, .video-card { border-radius: var(--radius); }
.video-card { border: 0; box-shadow: var(--shadow); }
.chip { border: 0; background: var(--surface); box-shadow: var(--shadow); }
.status { background: var(--bg); padding: 6px 10px; border-radius: 999px; display: inline-flex; }
.status.green { background: var(--mint); } .status.yellow { background: var(--sun); }
.row.contact { align-items: center; }
a.button.quiet-link { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); border-radius: 999px; padding: 9px 16px; font-weight: 700; text-decoration: none; }

/* Why we check this */
details.why { margin-top: 4px; }
details.why > summary { font-size: .9em; font-weight: 600; cursor: pointer; }

/* Operations tabs */
nav.chips a.chip { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
nav.chips a.chip.on { background: var(--accent, #133b44); color: #fff; }
a.check-row { display: block; color: inherit; text-decoration: none; }

/* Pro directory */
fieldset.cred { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; }

/* Boats board */
table.board td, table.board th { vertical-align: top; }
table.board tfoot td { border-top: 2px solid var(--line, #d6e5e2); }
