/* Shearwater Vault — quiet, premium, nautical. Ivory paper, deep vessel colour, brass detail. */
[hidden] { display: none !important; }

@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --accent: #14304f; --accent-2: #24507c; --tint: #eef2f7;
  --brass: #a8834b; --brass-soft: #efe5d3;
  --ink: #1b2129; --ink-2: #4a525c; --muted: #7c838c;
  --paper: #f7f5f0; --card: #fffefb; --line: #e7e2d8; --line-2: #efebe3;
  --red: #a63a2e; --red-bg: #f9ebe8; --amber: #96651a; --amber-bg: #fbf1df;
  --green: #2f6b46; --green-bg: #e9f2ec; --blue-bg: var(--tint);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 30, 45, .04), 0 6px 24px rgba(20, 30, 45, .05);
}
body.accent-navy     { --accent: #14304f; --accent-2: #24507c; --tint: #eef2f7; }
body.accent-racing   { --accent: #1e3d2f; --accent-2: #2f5e48; --tint: #edf3ef; }
body.accent-burgundy { --accent: #5a1f2b; --accent-2: #80323f; --tint: #f7eef0; }
body.accent-teak     { --accent: #6b4426; --accent-2: #8f5e37; --tint: #f6f0ea; }
body.accent-ocean    { --accent: #0f4c5c; --accent-2: #1a6d80; --tint: #ebf4f6; }
body.accent-graphite { --accent: #2b2f36; --accent-2: #4a505a; --tint: #f0f1f3; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper);
       -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: 2.3rem; line-height: 1.1; margin: .2rem 0 .5rem; }
h2 { font-size: 1.45rem; margin: 0 0 .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
h2 a, h2 .aside { font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: 0; }
h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 1.4rem 0 .6rem; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--brass); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
main { max-width: 1160px; margin: 0 auto; padding: 1.6rem 1.2rem 5rem; }
main.flush { padding-top: 0; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: 0 1.4rem; height: 58px;
       background: rgba(247, 245, 240, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
       border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.brand-word { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.brand-word em { font-style: normal; color: var(--brass); }
.top .spacer { flex: 1; }
.top .who { display: flex; align-items: center; gap: 1.1rem; font-size: .88rem; }
.top .who a { color: var(--ink-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center;
          font-size: .78rem; font-weight: 600; letter-spacing: .04em; }

/* ---------- vessel hero ---------- */
.hero-v { position: relative; color: #fff; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden;
          background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); }
.hero-v .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-v .cover.f0 { object-position: 50% 0; } .hero-v .cover.f25 { object-position: 50% 25%; }
.hero-v .cover.f50 { object-position: 50% 50%; } .hero-v .cover.f75 { object-position: 50% 75%; }
.hero-v .cover.f100 { object-position: 50% 100%; }
.hero-v::after { content: ""; position: absolute; inset: 0;
                 background: linear-gradient(180deg, rgba(8, 14, 22, .05) 30%, rgba(8, 14, 22, .72) 100%); }
.hero-v.nocover::before { content: ""; position: absolute; inset: 0; background: url(waves.svg) center bottom / 1400px auto repeat-x; opacity: .14; }
.hero-v .inner { position: relative; z-index: 2; width: 100%; max-width: 1160px; margin: 0 auto; padding: 2.2rem 1.2rem 1.6rem;
                 display: flex; gap: 1.2rem; align-items: flex-end; }
.hero-v .logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 10px; object-fit: contain; flex: none;
                box-shadow: 0 4px 20px rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.8); }
.hero-v h1 { color: #fff; font-size: 3.4rem; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-v .tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; opacity: .92; margin-top: -.1rem; }
.hero-v .eyebrow { color: #e6d3ad; }
.particulars { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .7rem; font-size: .78rem; letter-spacing: .1em;
               text-transform: uppercase; opacity: .9; }
.particulars span + span::before { content: "·"; margin-right: 1.2rem; opacity: .6; }
.hero-actions { position: absolute; top: 1rem; right: 1.2rem; z-index: 3; }
.btn.glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255,255,255,.26); color: #fff; }

/* ---------- vessel tabs ---------- */
.tabs { position: sticky; top: 58px; z-index: 15; background: var(--card); border-bottom: 1px solid var(--line); }
.tabs nav { max-width: 1160px; margin: 0 auto; padding: 0 1.2rem; display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.tabs nav::-webkit-scrollbar { display: none; }
.tabs a { padding: .95rem 0 .85rem; color: var(--ink-2); font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--accent); border-color: var(--brass); }
.tabs a .pill { margin-left: .35rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.6rem 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); color: var(--ink); }
a.stat:hover { border-color: var(--brass); color: var(--ink); }
.stat .n { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.stat .l { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: .35rem; }
.stat.warn .n { color: var(--red); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.narrow { max-width: 420px; margin: 3rem auto; }
.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2rem; align-items: start; }
.doc-cols { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .cols, .doc-cols { grid-template-columns: 1fr; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 1.2rem; }
.crumbs { color: var(--muted); font-size: .84rem; margin: 0 0 .2rem; }
.crumbs a { color: var(--muted); }
.rule { height: 1px; background: var(--line); margin: 1.2rem 0; border: 0; }

/* ---------- upload ---------- */
.drop { position: relative; border: 1.5px dashed #cfc6b6; background: var(--card); border-radius: var(--radius); padding: 1.6rem 1.2rem;
        text-align: center; margin-bottom: 1.2rem; transition: .2s; }
.drop.over { border-color: var(--brass); background: var(--brass-soft); }
.drop-icon { width: 34px; height: 34px; color: var(--brass); margin: 0 auto .4rem; }
.drop strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.drop-actions { margin-top: .9rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
#uploads { text-align: left; margin-top: 1rem; }
.up { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .2rem; border-top: 1px solid var(--line-2); font-size: .9rem; align-items: center; }

/* ---------- lists ---------- */
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.2rem; }
@media (max-width: 520px) { .folders { grid-template-columns: 1fr; } }
.folder { display: flex; align-items: center; gap: .7rem; padding: .6rem .3rem; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.folder:hover { color: var(--accent); }
.folder svg { width: 18px; height: 18px; color: var(--brass); flex: none; }
.folder .name { flex: 1; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: .9rem; padding: .75rem .2rem; border-top: 1px solid var(--line-2); color: var(--ink); }
.row:first-of-type { border-top: 0; }
a.row:hover, .row a.row-main:hover { color: var(--accent); }
.row-main { flex: 1; min-width: 0; color: var(--ink); }
.row-title { font-weight: 500; }
.row form { margin: 0; }

.badge { display: inline-block; font-size: .72rem; padding: .18rem .55rem; border-radius: 999px; font-weight: 600; white-space: nowrap; vertical-align: middle; letter-spacing: .01em; }
.badge.red { color: var(--red); background: var(--red-bg); }
.badge.amber { color: var(--amber); background: var(--amber-bg); }
.badge.green { color: var(--green); background: var(--green-bg); }
.badge.blue { color: var(--accent-2); background: var(--tint); }
.badge.grey { color: var(--muted); background: #eeebe5; }
.pill { display: inline-block; min-width: 1.3rem; padding: 0 .4rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; text-align: center; line-height: 1.3rem; }

.notice { display: block; background: var(--amber-bg); color: #6e4b12; padding: .75rem 1rem; border-radius: 10px; margin: .9rem 0; }
.ok { background: var(--green-bg); color: var(--green); padding: .7rem 1rem; border-radius: 10px; }
.err { background: var(--red-bg); color: var(--red); padding: .7rem 1rem; border-radius: 10px; }
pre { white-space: pre-wrap; font-size: .8rem; }

/* ---------- forms ---------- */
.stack { display: grid; gap: .8rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .three { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: .3rem; font-size: .8rem; color: var(--muted); font-weight: 500; }
label.check { display: flex; align-items: center; gap: .5rem; }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--ink); padding: .62rem .75rem; border: 1px solid var(--line); border-radius: 10px;
                          background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--tint); }
input[type=checkbox], input[type=radio] { width: auto; }
.btn { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .9rem; font-weight: 500; padding: .62rem 1.1rem;
       border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: .15s; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.link { border: 0; background: none; color: var(--accent-2); padding: .4rem 0; }
.btn.small { padding: .3rem .7rem; font-size: .8rem; }
.btn.danger { color: var(--red); }
.btn svg { width: 16px; height: 16px; }
.inline { display: inline-flex; gap: .3rem; align-items: center; margin-right: .6rem; }
.actions { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }

.search { position: relative; }
.search input { padding-left: 2.3rem; border-radius: 999px; min-width: 280px; background: var(--card); }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search.wide input { width: 100%; }
.search.wide { margin-bottom: 1.2rem; }

.preview iframe { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .84rem; }
.facts dd { margin: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .65rem .4rem; border-top: 1px solid var(--line-2); vertical-align: top; }
.table th { border-top: 0; color: var(--muted); font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }

.ask textarea { font-size: 1rem; }
.answer .prose { white-space: pre-wrap; line-height: 1.65; }

/* ---------- fleet (home) ---------- */
.fleet-head { text-align: center; margin: 1.5rem 0 2rem; }
.fleet-head h1 { font-size: 2.8rem; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.vcard { display: block; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(20,30,45,.12); color: var(--ink); }
.vcard .img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.vcard .img img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .img .logo { position: absolute; left: 1rem; bottom: -26px; width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; border: 2px solid #fff; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.vcard .body { padding: 1.9rem 1.2rem 1.1rem; }
.vcard .name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.vcard .meta { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.vcard .alert { margin-top: .7rem; }
.vcard.accent-navy { --accent: #14304f; --accent-2: #24507c; } .vcard.accent-racing { --accent: #1e3d2f; --accent-2: #2f5e48; }
.vcard.accent-burgundy { --accent: #5a1f2b; --accent-2: #80323f; } .vcard.accent-teak { --accent: #6b4426; --accent-2: #8f5e37; }
.vcard.accent-ocean { --accent: #0f4c5c; --accent-2: #1a6d80; } .vcard.accent-graphite { --accent: #2b2f36; --accent-2: #4a505a; }

/* ---------- gallery ---------- */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.chip { padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .85rem; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .count { margin-left: .25rem; color: inherit; opacity: .7; }
.masonry { columns: 3 280px; column-gap: 1rem; }
.tile { break-inside: avoid; margin: 0 0 1rem; position: relative; border-radius: 12px; overflow: hidden; background: #e9e5dc; cursor: zoom-in; display: block; }
.tile img { width: 100%; display: block; transition: transform .4s; }
.tile:hover img { transform: scale(1.02); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem; color: #fff; font-size: .82rem;
                   background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: .2s; }
.tile:hover figcaption, .tile:focus figcaption { opacity: 1; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.strip a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: block; background: #e9e5dc; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 620px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.cover-pick label { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; cursor: pointer; display: block; }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-pick input { position: absolute; opacity: 0; }
.cover-pick input:checked + img { outline: 3px solid var(--brass); outline-offset: -3px; }
.swatches { display: flex; gap: .7rem; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem .45rem .45rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--ink); font-size: .85rem; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; display: block; }
.swatch input { position: absolute; opacity: 0; }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sw-navy { background: #14304f; } .sw-racing { background: #1e3d2f; } .sw-burgundy { background: #5a1f2b; }
.sw-teak { background: #6b4426; } .sw-ocean { background: #0f4c5c; } .sw-graphite { background: #2b2f36; }
.logo-preview { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); padding: 6px; object-fit: contain; background: #fff; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 13, 18, .98); display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem; min-height: 0; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 60px rgba(0,0,0,.5); }
.lb .bar { color: #e9e6df; padding: .9rem 1.2rem 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lb .cap { font-family: var(--serif); font-size: 1.2rem; }
.lb .meta { font-size: .78rem; opacity: .7; }
.lb button.x, .lb button.nav { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; }
.lb button.x { top: .8rem; right: .8rem; }
.lb button.nav { top: 50%; transform: translateY(-50%); }
.lb button.prev { left: .8rem; } .lb button.next { right: .8rem; }
.lb .tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.lb .tools form { margin: 0; }
.lb .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.lb details { color: #fff; }
.lb details form { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.lb details input { background: rgba(255,255,255,.95); max-width: 240px; }

/* auth pages */
.auth { min-height: calc(100vh - 58px); display: grid; place-items: center; padding: 2rem 1rem;
        background: radial-gradient(1200px 500px at 50% -10%, var(--tint), transparent), var(--paper); }
.auth .card { width: 100%; max-width: 420px; padding: 2.2rem 2rem; }
.auth .mark { width: 44px; height: 44px; color: var(--accent); margin-bottom: .8rem; }
.auth h1 { font-size: 2rem; }
.qr { display: flex; justify-content: center; margin: 1.2rem 0; }
.codes { background: var(--paper); padding: .9rem 1.1rem; border-radius: 10px; font-size: 1rem; letter-spacing: .06em; }
.trust { display: flex; align-items: center; gap: .45rem; justify-content: center; color: var(--muted); font-size: .78rem; margin-top: 1.3rem; }
.trust svg { width: 14px; height: 14px; }
footer.foot { text-align: center; color: var(--muted); font-size: .76rem; padding: 2rem 1rem 3rem; letter-spacing: .04em; }
footer.foot svg { width: 12px; height: 12px; vertical-align: -1px; }

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 1.9rem; }
  .hero-v { min-height: 300px; }
  .hero-v h1 { font-size: 2.5rem; }
  .hero-v .logo { width: 64px; height: 64px; }
  .hero-v .inner { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .top { padding: 0 1rem; }
  .brand-word { font-size: 1.05rem; letter-spacing: .1em; }
  .search input { min-width: 0; width: 100%; }
  .page-head .search { width: 100%; }
  .card { padding: 1.1rem 1.1rem; }
}

/* compact vessel band on inner pages */
.hero-v.band { min-height: 0; }
.hero-v.band .inner { padding: 1.1rem 1.2rem; align-items: center; flex-direction: row; }
.hero-v.band .logo { width: 44px; height: 44px; padding: 5px; border-width: 1px; }
.band-name { color: #fff; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.band-name:hover { color: #fff; }
.hero-v.band::after { background: linear-gradient(90deg, rgba(8,14,22,.65), rgba(8,14,22,.25)); }
h2 .search input { font-family: var(--sans); font-size: .85rem; min-width: 0; width: 210px; padding: .45rem .8rem .45rem 2.1rem; }
@media (max-width: 640px) { h2:has(.search) { flex-wrap: wrap; } h2 .search, h2 .search input { width: 100%; } }

/* refinements */
.brand-word { white-space: nowrap; }
.top .who a.avatar, .top .who a.avatar:hover { color: #fff; text-decoration: none; }
.stat .n, .vcard .name, h1, h2 { font-variant-numeric: lining-nums; }
.particulars { gap: .3rem 1.4rem; }
.particulars span + span::before { content: none; }
.particulars span { position: relative; }
.particulars span + span { padding-left: 1.4rem; margin-left: -1.4rem; }
.particulars span + span::after { content: ""; position: absolute; left: .55rem; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #e6d3ad; }
@media (max-width: 640px) {
  .top .who .hide-m { display: none; }
  .particulars span + span { padding-left: 0; margin-left: 0; }
  .particulars span + span::after { content: none; }
  .particulars { flex-direction: column; gap: .15rem; }
}

/* downloads & sharing */
.row.sel { gap: .8rem; }
.row.sel input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
label.row { cursor: pointer; font-size: inherit; color: var(--ink); font-weight: 400; display: flex; }
.selbar { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 30; display: flex; gap: .8rem; align-items: center;
          background: var(--ink); color: #fff; padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.selbar .btn { border-color: rgba(255,255,255,.25); }
.selbar .btn:not(.primary) { background: transparent; color: #fff; }
.selbar .btn.primary { background: var(--brass); border-color: var(--brass); }
form.folder { margin: 0; }
form.folder .btn { padding: .25rem .5rem; }
.copybox { display: flex; gap: .5rem; margin: 1rem 0; }
.copybox input { font-size: .85rem; }
.pin { font-size: 1.2rem; letter-spacing: .15em; }
.share-card { max-width: 560px !important; }
.owner-line { margin-bottom: .5rem; font-family: var(--serif); font-size: .95rem; font-style: italic; letter-spacing: 0; color: var(--ink-2); }
.badge svg { width: 11px; height: 11px; vertical-align: -1px; }
.selbar { white-space: nowrap; max-width: calc(100vw - 2rem); }
.selbar span { white-space: nowrap; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* passages & reports */
.timeline h3:first-child { margin-top: 0; }
.arrow { color: var(--brass); margin: 0 .2rem; }
.kind { font-weight: 500; }
.kind-captain_reports { color: var(--accent-2); }
.kind-passages { color: var(--green); }
.summary { color: var(--ink-2); margin-top: .25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.attention { border-left: 3px solid var(--brass); }
.voyage-facts .route { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; }
.actions-list { margin: .2rem 0 0; padding-left: 1.2rem; }
.actions-list li { margin: .25rem 0; }

/* decisions */
.decision { padding: .8rem 0; border-top: 1px solid var(--line-2); }
.decision:first-of-type { border-top: 0; }
.decide { margin-top: .5rem; display: grid; gap: .4rem; }
.decide .actions { margin-top: 0; }
h2 .pill { margin-right: auto; margin-left: .2rem; }
.person { flex-wrap: wrap; }
.person select { width: auto; padding: .35rem .5rem; font-size: .85rem; }
.subnav { margin-top: -.4rem; }
.roles td:first-child { font-weight: 500; white-space: nowrap; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .glance { grid-template-columns: 1fr; } }
.glance .card { margin-bottom: 0; }
.big { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums; }
.welcome { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
           background: var(--accent); color: #fff; border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.4rem 0 0; }
.welcome a, .welcome .btn.link { color: #fff; }
.welcome .btn.primary { background: var(--brass); border-color: var(--brass); }
.welcome form { margin: 0; }
.welcome .title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.glance-h { margin-top: 1.6rem; }
a.card { display: block; color: var(--ink); }
a.card:hover { border-color: var(--brass); color: var(--ink); }
.red-t { color: var(--red); }
.spacer-1 { height: 1.2rem; }

/* guide */
.guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } }
.guide .card { margin: 0; position: relative; padding-left: 4.2rem; }
.guide .num { position: absolute; left: 1.3rem; top: 1.3rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tint);
              color: var(--accent); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: grid; place-items: center; }
.guide .num svg { width: 16px; height: 16px; }
.guide h2 { margin-bottom: .4rem; }
.guide p { margin: 0; color: var(--ink-2); }
.guide code { font-size: .82rem; background: var(--paper); padding: .1rem .35rem; border-radius: 5px; word-break: break-all; }
.trust-card { background: var(--tint); }
.actions.centre { justify-content: center; margin-top: 1.6rem; }
.person-controls { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; width: 100%; }
.person-controls label.check { margin-right: auto; }
