:root {
  --navy: #0b2545;
  --sea: #13315c;
  --brass: #b98300;
  --brass-soft: #fdf3d7;
  --bg: #f5f3ee;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6573;
  --line: #dcd8cd;
  --red: #b3261e;
  --red-soft: #fbe9e7;
  --amber: #8a5a00;
  --amber-soft: #fff4d6;
  --blue-soft: #e8f0fb;
  --green: #1e6b3a;
  --green-soft: #e5f4ea;
  --radius: 10px;
  --btn: #0b2545;
  --btn-hover: #13315c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e141c;
    --card: #17202b;
    --text: #e8ecf1;
    --muted: #9aa6b4;
    --line: #2b3746;
    --brass: #e0a100;
    --brass-soft: #2e2710;
    --red: #ff8a80;
    --red-soft: #3a1714;
    --amber: #ffcc66;
    --amber-soft: #33290f;
    --blue-soft: #16273d;
    --green: #7fd69b;
    --green-soft: #13301f;
    --btn: #2f67b1;
    --btn-hover: #3b78c9;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1060px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.2rem; margin: 0 0 10px; }
h3 { font-size: 1.02rem; margin: 16px 0 6px; }
a { color: var(--sea); }
@media (prefers-color-scheme: dark) { a { color: #9cc3ff; } }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hint { display: block; color: var(--muted); font-size: .84rem; margin: 2px 0 4px; }
.error { color: var(--red); background: var(--red-soft); padding: 8px 12px; border-radius: 8px; }
.flash { background: var(--green-soft); padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 14px; }
.topbar nav a { color: #fff; }
.inline { display: inline; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.topbar .linklike { color: #fff; }
.topbar nav a, .topbar .linklike, .brand span { white-space: nowrap; }
@media (max-width: 480px) {
  .brand span { font-size: .92rem; }
  .topbar nav { gap: 10px; font-size: .92rem; }
}
.danger { color: var(--red); }

/* buttons & forms */
.btn {
  display: inline-block; background: var(--btn); color: #fff; border: 1px solid var(--btn);
  border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.topbar .btn { background: var(--brass); border-color: var(--brass); color: #111; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brass) 55%, transparent); outline-offset: 1px; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
label input, label select, label textarea { margin-top: 4px; font-weight: 400; }

/* layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.narrow { max-width: 440px; margin: 30px auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 > .card, .grid3 > .card { margin: 0; }
.grid2 { margin: 14px 0; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 2rem; max-width: 26ch; }
.lede { font-size: 1.1rem; max-width: 62ch; color: var(--muted); }
.boatcard { color: inherit; text-decoration: none; }
.boatcard:hover { border-color: var(--brass); }
.boatcard h3 { margin-top: 0; }
.empty { text-align: center; }

/* intake */
.stepper { display: none; list-style: none; padding: 0; margin: 14px 0; gap: 6px; flex-wrap: wrap; counter-reset: s; }
.js .stepper { display: flex; }
.stepper li { counter-increment: s; }
.stepper button {
  font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.stepper button::before { content: counter(s) ". "; color: var(--muted); }
.stepper button.active { background: var(--btn); color: #fff; border-color: var(--btn); }
.stepper button.active::before { color: #cbd5e1; }
.stepnum {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brass); color: #111; font-size: .9rem; margin-right: 4px;
}
.q { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.q legend, .q > label { font-weight: 600; padding: 0; margin: 0 0 4px; }
.q.revealed { animation: reveal .25s ease; border-left: 3px solid var(--brass); padding-left: 10px; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }
.req { color: var(--red); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; background: var(--card); }
.choice input { width: auto; margin: 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--btn); background: var(--blue-soft); }
.with-unit { display: flex; align-items: center; gap: 8px; max-width: 420px; }
.with-unit input { flex: 1; min-width: 0; }
.unit { color: var(--muted); white-space: nowrap; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.save-anytime { text-align: right; }
.js .save-anytime { margin-top: -4px; }

/* dashboard */
.alerts { display: grid; gap: 8px; margin: 14px 0; }
.alert { border-radius: 8px; padding: 10px 14px; border-left: 5px solid; }
.alert.high { background: var(--red-soft); border-color: var(--red); }
.alert.warn { background: var(--amber-soft); border-color: #d49a00; }
.alert.info { background: var(--blue-soft); border-color: var(--sea); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--line); }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.kv th { width: 45%; font-weight: 500; color: var(--muted); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.inline-form select, .inline-form input { width: auto; flex: 1 1 110px; }
.printlist { margin: 0; padding-left: 18px; line-height: 2; }
.tag { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.status { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.status.overdue { background: var(--red-soft); color: var(--red); }
.status.soon { background: var(--amber-soft); color: var(--amber); }
.status.unknown { background: var(--bg); color: var(--muted); }
.status.ok { background: var(--green-soft); color: var(--green); }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-form .span2 { grid-column: span 2; }
@media (max-width: 560px) { .grid-form { grid-template-columns: 1fr; } .grid-form .span2 { grid-column: auto; } }
details > summary { cursor: pointer; list-style: revert; }
h2.inline { display: inline; }
.danger-zone { text-align: right; margin-top: 20px; }

/* catalog picker + model card */
.catalog-pick { background: var(--blue-soft); border-radius: 8px; padding: 12px; }
.catalog-search { position: relative; max-width: 480px; }
.catalog-results { list-style: none; margin: 4px 0 0; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; max-height: 280px; overflow-y: auto; }
.catalog-results button { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; color: var(--text); padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.catalog-results button:hover, .catalog-results button:focus { background: var(--blue-soft); }
.catalog-results .none { padding: 7px 8px; color: var(--muted); font-size: .9rem; }
.picked { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.catalog-note { margin: 8px 0 0; font-size: .9rem; }
.q.from-catalog { border-left: 3px solid var(--sea); padding-left: 10px; }
.q.from-catalog > label::after, .q.from-catalog > legend::after { content: " · from model"; font-weight: 400; font-size: .8rem; color: var(--muted); }
.modelpic { margin: 8px 0 12px; }
.modelpic img { width: 100%; max-width: 640px; height: auto; border-radius: 8px; display: block; background: var(--bg); }
.modelpic figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin: 8px 0 12px; }
.specs div { font-size: .92rem; }
.specs dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.specs dd { margin: 0; font-weight: 600; }
.issues { list-style: none; margin: 0; padding: 0; }
.issues li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.issues .src { font-size: .8rem; }
.parts { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.parts.good { background: var(--green-soft); color: var(--green); }
.parts.limited { background: var(--amber-soft); color: var(--amber); }
.parts.scarce, .parts.obsolete { background: var(--red-soft); color: var(--red); }
.enginecard { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.suggest { background: var(--blue-soft); }
.suggest form { display: inline; }

/* electrical diagram */
.estepper { display: flex; }
.estepper a { display: inline-block; font-size: .85rem; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.estepper a.active { background: var(--btn); color: #fff; border-color: var(--btn); }
.diagram-card { overflow-x: auto; padding: 10px; }
.ediagram { display: block; }
.diagram-card .ediagram { max-width: none; } /* full size on screen; the card scrolls sideways */
.elegend { width: 100%; height: auto; }
.elegend { max-width: 760px; }
.erow { margin: 12px 0; }
.erow .choices { margin-top: 4px; }
.erow fieldset.q { margin: 6px 0 0; }
.sheet-diagram .ediagram { width: 100%; height: auto; } /* printout: fit the page */
.sheet .ed-box { fill: #fff; stroke: #999; }
.sheet .ed-t, .sheet .ed-glyph, .sheet .ed-mini { fill: #111; }
.sheet .ed-sub { fill: #444; }
.sheet .ed-sym { stroke: #111; }
.sheet .ed-dot { fill: #111; }

/* videos */
.videogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 14px 0; }
.videocard { color: inherit; text-decoration: none; margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.videocard:hover { border-color: var(--brass); }
.videocard img, .videocard .thumb-blank { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg); }
.videocard h3, .videocard p, .videocard .hint { margin-left: 14px; margin-right: 14px; }
.videocard .hint { margin-bottom: 12px; }
.videopage video { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; margin: 8px 0; }
.langs { display: flex; gap: 12px; }
.sourcelist { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
.upcoming { color: var(--muted); }

/* open items */
.itemlist { list-style: none; margin: 0 0 8px; padding: 0; }
.itemlist li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.itemlist li.pri-safety { border-left: 4px solid var(--red); padding-left: 10px; }
.itemlist.done li { color: var(--muted); }
.pri { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.pri.safety { background: var(--red-soft); color: var(--red); }
.pri.high { background: var(--amber-soft); color: var(--amber); }
.pri.normal { background: var(--blue-soft); color: var(--sea); }
.pri.low { background: var(--bg); color: var(--muted); }
.done-form { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.done-form input { width: auto; padding: 5px 6px; }
@media (max-width: 560px) { .itemlist li { flex-direction: column; } }

/* troubleshooter */
.crumb { margin: 0 0 6px; font-size: .92rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { background: var(--amber-soft); }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.msg { border-radius: 12px; padding: 12px 16px; max-width: 100%; }
.msg.user { align-self: flex-end; background: var(--blue-soft); max-width: 85%; }
.msg.assistant { background: var(--card); border: 1px solid var(--line); }
.msg .md > :first-child { margin-top: 0; }
.msg .md > :last-child { margin-bottom: 0; }
.msg .md p { margin: 0 0 8px; }
.msg .md ul, .msg .md ol { margin: 0 0 8px; padding-left: 22px; }
.msg .md li { margin: 2px 0; }
.msg .md h4 { margin: 12px 0 4px; font-size: 1rem; }
.msg .md code { background: var(--bg); padding: 0 4px; border-radius: 4px; }
.status-line { color: var(--muted); font-size: .88rem; font-style: italic; margin-top: 4px; }
.status-line:empty { display: none; }
.status-line.error { color: var(--red); font-style: normal; }
.sources { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.sources ul { margin: 4px 0 0; padding-left: 18px; }
.composer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.composer textarea { resize: vertical; min-height: 80px; }
.composer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.composer-row .hint { margin: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chip:hover { border-color: var(--brass); }
.chatlist, .manuallist { list-style: none; margin: 0; padding: 0; }
.chatlist li, .manuallist li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.upload { margin-top: 12px; }
.manuallist .hint { display: block; }
.row-actions { display: flex; gap: 10px; white-space: nowrap; }
.error-text { color: var(--red); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
label.check input { width: auto; }

/* tables scroll on phones rather than squashing */
@media (max-width: 700px) {
  .schedule, .history { display: block; overflow-x: auto; white-space: normal; }
  .schedule td:first-child { min-width: 200px; }
}

/* ------------------------------------------------ print sheets */
.print-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet { background: #fff; color: #111; max-width: 8.5in; margin: 0 auto; padding: .55in .6in; border: 1px solid var(--line); border-radius: 6px; }
.sheet a { color: #111; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #0b2545; padding-bottom: 8px; gap: 12px; }
.sheet-vessel { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6200; }
.sheet h1 { font-size: 1.5rem; margin: 2px 0; color: #0b2545; }
.sheet-sub { color: #444; font-size: .92rem; }
.sheet-meta { text-align: right; font-size: .82rem; color: #444; }
.blanks { display: flex; gap: 22px; flex-wrap: wrap; margin: 12px 0 4px; font-size: .9rem; }
.blanks .line { display: inline-block; width: 1.6in; border-bottom: 1px solid #111; }
.sheet-sec { break-inside: avoid-page; }
.sheet-sec h2 { font-size: 1rem; margin: 16px 0 6px; color: #0b2545; border-bottom: 1px solid #ccc; padding-bottom: 2px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 4px 0; font-size: .93rem; break-inside: avoid; }
.checks .box { flex: 0 0 14px; height: 14px; border: 1.5px solid #111; border-radius: 2px; margin-top: 4px; }
.checks li.warn { font-weight: 600; background: #fff4d6; border-radius: 4px; padding: 4px 6px; margin: 2px -6px; }
.sheet-note { font-size: .84rem; color: #333; background: #f3f3f3; border-radius: 4px; padding: 6px 8px; }
.sheet-foot { margin-top: 18px; padding-top: 6px; border-top: 1px solid #ccc; font-size: .75rem; color: #555; }
.sheet table { font-size: .85rem; }
.sheet th, .sheet td { border-color: #ddd; padding: 4px 6px; }
.sheet .kv th, .sheet thead th { color: #444; }
.sheet h3 { font-size: .92rem; margin: 10px 0 2px; color: #0b2545; }
.sheet .hint { color: #555; }
@media (max-width: 700px) { .sheet { padding: 18px 14px; } .sheet-head { flex-direction: column; } .sheet-meta { text-align: left; } }

.sheet.landscape { max-width: 11in; }
.logsheet { border-collapse: collapse; width: 100%; margin-top: 10px; table-layout: fixed; }
.logsheet th { font-size: .7rem; text-transform: none; letter-spacing: 0; color: #111; border: 1px solid #555; padding: 4px 3px; vertical-align: bottom; background: #eef2f7; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.logsheet td { border: 1px solid #555; height: .36in; }
.logsheet th:first-child { width: .8in; }

@media print {
  @page { size: letter; margin: .45in; }
  @page landscape { size: letter landscape; }
  .sheet.landscape { page: landscape; }
  .no-print, .topbar { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .sheet { border: 0; padding: 0; max-width: none; }
  .checks li.warn { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
}

/* ------------------------------------------------ buyer report */
.answers { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.answers dd { font-weight: 500; }
.match-head { display: flex; gap: 14px; align-items: flex-start; }
.match-head h3 { margin: 0 0 2px; }
.match-head p { margin: 2px 0; }
.mthumb { flex: 0 0 170px; margin: 0; }
.mthumb img { width: 170px; height: 110px; object-fit: cover; border-radius: 6px; display: block; background: var(--bg); }
.mthumb figcaption { font-size: .7rem; color: var(--muted); margin-top: 2px; line-height: 1.25; }
.rank { display: inline-block; min-width: 1.6em; text-align: center; font-size: .8rem; background: var(--navy, #0b2545); color: #fff; border-radius: 999px; padding: 1px 6px; vertical-align: 2px; }
.specline { font-size: .9rem; }
.fit { list-style: none; margin: 10px 0 6px; padding: 0; }
.fit li { display: flex; gap: 8px; padding: 2px 0; font-size: .93rem; }
.fit .mark { flex: 0 0 1.1em; font-weight: 700; text-align: center; }
.fit .ok .mark, span.ok { color: var(--green); }
.fit .warn .mark, span.warn { color: var(--amber); }
.fit .unk .mark, span.unk { color: var(--muted); }
.fit .unk { color: var(--muted); }
.match details { margin: 4px 0; }
.match .more { margin: 6px 0 0; font-size: .9rem; }
.rest { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rest th, .rest td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.fitcount { white-space: nowrap; }
.buyer-checklist h3 { margin: 14px 0 4px; }
.buyer-report form { display: inline; }
@media (max-width: 560px) {
  .match-head { flex-direction: column; }
  .mthumb, .mthumb img { width: 100%; height: auto; flex-basis: auto; }
  .rest th:nth-child(3), .rest td:nth-child(3) { display: none; }
}
@media print {
  .match { break-inside: avoid-page; border: 0; border-top: 1px solid #ccc; border-radius: 0; padding: 10px 0; margin: 0; }
  .mthumb { flex-basis: 120px; }
  .mthumb img { width: 120px; height: 78px; }
  .buyer-report .card { border: 0; padding: 6px 0; }
}
.answers-card > summary { cursor: pointer; list-style: none; }
.answers-card > summary::-webkit-details-marker { display: none; }
.answers-card > summary h2 { display: inline; margin: 0; }
.answers-card > summary::after { content: ' — show'; color: var(--muted); font-size: .9rem; }
.answers-card[open] > summary::after { content: ' — hide'; }

/* ------------------------------------------------ learn */
.learn-search { display: flex; gap: 8px; margin: 12px 0; max-width: 560px; }
.learn-search input { flex: 1; }
.learn-cards h2 { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip.on { border-color: var(--brass); background: var(--brass-soft); }
a.chip { text-decoration: none; }
.az { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 4px; font-weight: 600; }
.letter { border-bottom: 1px solid var(--line); padding-bottom: 2px; margin-top: 22px; scroll-margin-top: 12px; }
.glossary { margin: 0; }
.glossary .term { padding: 10px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.glossary .term:target { background: var(--brass-soft); border-radius: 6px; padding-left: 8px; padding-right: 8px; }
.glossary dt { font-weight: 700; font-size: 1.05rem; }
.glossary dt .also { font-weight: 400; color: var(--muted); font-size: .92rem; }
.glossary dt .tag { font-weight: 400; margin-left: 4px; text-decoration: none; color: var(--muted); }
.glossary dd { margin: 4px 0 0; }
.glossary dd p { margin: 3px 0; }
.related, .src-line { font-size: .85rem; }
.knotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.knotcard { color: inherit; text-decoration: none; padding: 12px; margin: 0; }
.knotcard:hover { border-color: var(--brass); }
.knotcard img, .knotcard .thumb-blank { width: 100%; height: 140px; object-fit: contain; background: #fff; border-radius: 6px; display: block; }
.knotcard h3 { margin: 8px 0 2px; font-size: 1rem; }
.knotpics { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.knotpics figure { margin: 0; flex: 1 1 220px; max-width: 360px; }
.knotpics img { width: 100%; height: 240px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.knotpics figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.learn-article { max-width: 760px; }
.learn-article .lede { font-size: 1.08rem; }
.steps { padding-left: 1.4em; }
.steps li { margin: 6px 0; padding-left: 4px; }
.checkline { background: var(--green-soft); border-radius: 6px; padding: 8px 10px; }
.cautions { background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 6px; padding: 8px 12px; margin: 12px 0; }
.cautions ul { margin: 4px 0 0; padding-left: 1.2em; }
.rulesbox { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: 6px; padding: 8px 12px; margin: 14px 0; }
.rulesbox ul { margin: 4px 0 0; padding-left: 1.2em; }
.trouble { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
.trouble summary { cursor: pointer; font-weight: 600; }
.topiclist { list-style: none; padding: 0; margin: 0; }
.topiclist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.learn-table table { border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.learn-table th, .learn-table td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; vertical-align: top; }
.learn-sources { margin: 14px 0 6px; font-size: .88rem; }
.learn-caveat { margin-top: 18px; }

/* glossary links in troubleshooter answers */
a.gloss { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.gloss-pop { position: absolute; z-index: 50; max-width: min(340px, calc(100vw - 16px)); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: .9rem; }
.gloss-pop p { margin: 4px 0 6px; }

/* ------------------------------------------------ owner's manual */
.manual-toc { padding-left: 1.4em; }
.manual-toc li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.manual-toc .status { margin-left: 6px; }
.status.busy { background: var(--brass-soft); color: var(--brass); }
.manual-disclaimer p { margin: 4px 0 0; font-size: .9rem; }
.manual-questions .q { margin: 14px 0; }
.manual-questions textarea, .manual-questions input[type=text] { width: 100%; margin-top: 6px; }
.manual-specs { width: 100%; margin: 8px 0; }
.manual-specs th { width: 38%; text-align: left; vertical-align: top; }
.notice { background: var(--brass-soft); border-radius: 6px; padding: 8px 10px; }
.manual-cover { break-after: page; }
.manual-cover h1 { font-size: 2rem; margin: 6px 0; }
.manual-print-chapter { break-before: page; }
.manual-print-chapter h1 { font-size: 1.4rem; color: #0b2545; border-bottom: 2px solid #0b2545; padding-bottom: 4px; }
.manual-print-chapter .cautions, .manual-print-chapter .rulesbox { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ------------------------------------------------ logbook */
.scanlist { list-style: none; padding: 0; margin: 10px 0 0; }
.scanlist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.loglist { list-style: none; padding: 0; margin: 0; }
.loglist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.loglist p { margin: 4px 0 0; white-space: pre-line; }
.scanpics { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.scanpics img { height: 180px; width: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.scan-review fieldset { margin: 12px 0; }
.scan-review legend { font-weight: 700; padding: 0 4px; }
.scan-review input.needs { outline: 2px solid var(--amber); }
.transcript { white-space: pre-wrap; font-size: .85rem; background: var(--bg); padding: 8px; border-radius: 6px; }
.printed-log td { height: auto; font-size: .8rem; padding: 3px 4px; vertical-align: top; }
.qa dt { font-weight: 600; margin-top: 8px; }
.qa dd { margin: 2px 0 0; }

/* ------------------------------------------------ models */
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar nav { flex-wrap: wrap; gap: 6px 14px; width: 100%; }
}
.model-rows { list-style: none; padding: 0; margin: 4px 0 0; columns: 2 280px; column-gap: 24px; }
.model-rows li { break-inside: avoid; padding: 3px 0; }
.model-rows .hint { display: inline; margin-left: 4px; }
.make-block h2 { margin: 18px 0 2px; font-size: 1.15rem; scroll-margin-top: 12px; }
.make-block h2 a { text-decoration: none; }
.modelcard img, .modelcard .thumb-blank { object-fit: cover; }
.model-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.make-block h2 .hint { display: inline; margin-left: 6px; font-weight: 400; font-size: .85rem; }

/* ------------------------------------------------ accounts */
.consent { align-items: flex-start; font-size: .9rem; margin: 10px 0; }
.consent input { margin-top: 3px; }
.codebox { font-size: 1.6rem; letter-spacing: .3em; text-align: center; max-width: 12ch; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.danger-card { border-color: var(--red); }
.danger-btn { background: var(--red); border-color: var(--red); }
.bignum { font-size: 1.8rem; font-weight: 700; margin: 0; }
.sitefoot { text-align: center; font-size: .85rem; color: var(--muted); padding: 24px 16px 32px; }
.sitefoot a { color: var(--muted); }
.codebox { display: block; margin-top: 6px; }

/* ------------------------------------------------ used-boat finder */
.finder-hero { max-width: 760px; }
.connect { border-color: var(--brass); }
.connect .broker-name { font-size: 1.1rem; }
.upsell { background: var(--brass-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.statechecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 2px 8px; }

/* Admin: marketing email preview */
.email-preview { width: 100%; height: 760px; border: 1px solid var(--line, #dde3ea); border-radius: 8px; background: #f3f5f8; }
.email-text { white-space: pre-wrap; font-size: 13px; }
.warn-text { color: #9a5b00; font-weight: 600; }
