
:root {
  --bg: #f3f5f8; --surface: #fff; --surface-2: #f7f9fb; --text: #12202e; --muted: #5d6a77; --border: #e1e6ec;
  --accent: #0b5cad; --accent-text: #fff; --accent-soft: #e5eef8; --error-bg: #fdecec; --error: #8f1d1d;
  --ok-bg: #e6f4ea; --ok: #1d5f33; --like: #d6336c;
  --series-1: #2a78d6; --series-2: #eb6834; --series-other: #b4bac1; --grid: #e6e9ed;
  --heat-1: #cde2fb; --heat-2: #9ec5f4; --heat-3: #6da7ec; --heat-4: #2a78d6; --heat-5: #1c5cab; --heat-6: #0d366b;
  --heat-ink-low: #0b0b0b; --heat-ink-high: #fff;
  --sea: #eef3f8; --land: #cbd3db;
  --radius: 14px; --radius-small: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, 0.05), 0 2px 8px rgba(16, 32, 48, 0.06);
  --bar: 3.5rem; --tabbar: 3.75rem; --gutter: 1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0d1319; --surface: #161f28; --surface-2: #1b2631; --text: #e6ebf0; --muted: #9aa7b4; --border: #263440;
  --accent: #6aa8e0; --accent-text: #0d1319; --accent-soft: #1a2c3e; --error-bg: #3a1919; --error: #f2b8b8;
  --ok-bg: #16301f; --ok: #a8dcb8; --like: #f06595;
  --series-1: #3987e5; --series-2: #d95926; --series-other: #56626e; --grid: #24313d;
  --heat-1: #0d366b; --heat-2: #184f95; --heat-3: #256abf; --heat-4: #5598e7; --heat-5: #9ec5f4; --heat-6: #cde2fb;
  --heat-ink-low: #fff; --heat-ink-high: #0b0b0b;
  --sea: #0f151b; --land: #33424f;
  --shadow: 0 0 0 1px var(--border);
  color-scheme: dark;
}
}
:root[data-theme="dark"] {
  --bg: #0d1319; --surface: #161f28; --surface-2: #1b2631; --text: #e6ebf0; --muted: #9aa7b4; --border: #263440;
  --accent: #6aa8e0; --accent-text: #0d1319; --accent-soft: #1a2c3e; --error-bg: #3a1919; --error: #f2b8b8;
  --ok-bg: #16301f; --ok: #a8dcb8; --like: #f06595;
  --series-1: #3987e5; --series-2: #d95926; --series-other: #56626e; --grid: #24313d;
  --heat-1: #0d366b; --heat-2: #184f95; --heat-3: #256abf; --heat-4: #5598e7; --heat-5: #9ec5f4; --heat-6: #cde2fb;
  --heat-ink-low: #fff; --heat-ink-high: #0b0b0b;
  --sea: #0f151b; --land: #33424f;
  --shadow: 0 0 0 1px var(--border);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + env(safe-area-inset-top) + 0.75rem); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.story-body a, .comment-body a, .notice a, .hint a, p.lead a, .prose a { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h2 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 0.75rem; }
h3 { font-size: 0.95rem; margin: 1rem 0 0.4rem; color: var(--muted); font-weight: 600; }
@media (min-width: 48rem) { h1 { font-size: 1.9rem; } }


.appbar {
  position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: 1rem;
  height: calc(var(--bar) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.5rem; margin-right: auto; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.appbar .languages { display: flex; gap: 0.75rem; }
.appbar .language { font-size: 0.9rem; color: var(--muted); }
nav.primary {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: flex;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
}
nav.primary a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
}
nav.primary a:hover { text-decoration: none; color: var(--text); }
nav.primary a[aria-current] { color: var(--accent); }
nav.primary svg { width: 1.45rem; height: 1.45rem; }
body.signed-in { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
@media (min-width: 48rem) {
  nav.primary {
    position: static; height: auto; padding: 0; gap: 0.25rem; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  nav.primary a { flex-direction: row; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.92rem; }
  nav.primary a[aria-current] { background: var(--accent-soft); }
  nav.primary svg { width: 1.15rem; height: 1.15rem; }
  body.signed-in { padding-bottom: 0; }
}
main { max-width: 42rem; margin: 0 auto; padding: 1.25rem var(--gutter) 3rem; }

.appbar { view-transition-name: appbar; }
nav.primary { view-transition-name: tabs; }
main { view-transition-name: page; }
::view-transition-old(page) { animation: 140ms ease-in both nav-out; }
::view-transition-new(page) { animation: 200ms ease-out both nav-in; }
html[data-slide="back"]::view-transition-old(page) { animation-name: nav-out-back; }
html[data-slide="back"]::view-transition-new(page) { animation-name: nav-in-back; }
@keyframes nav-out { to { opacity: 0; transform: translateX(-1.5rem); } }
@keyframes nav-in { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes nav-out-back { to { opacity: 0; transform: translateX(1.5rem); } }
@keyframes nav-in-back { from { opacity: 0; transform: translateX(-1.5rem); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(page), ::view-transition-new(page) { animation: none; } }
html.previewing main :is(form, button, input, select, textarea) { pointer-events: none; }
main.wide { max-width: 56rem; }
.auth { max-width: 26rem; margin: 1rem auto 0; }
@media (min-width: 48rem) { .auth { margin-top: 3rem; } }
.auth form button[type=submit], .auth [data-passkey] { width: 100%; }
@media (min-width: 48rem) { :root { --gutter: 1.5rem; } main { padding-top: 2rem; } }


.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
@media (min-width: 48rem) { .card { padding: 1.25rem 1.5rem; } }
.muted { color: var(--muted); }
section.section { margin: 1.5rem 0; }
section.section > h2, h2.section { margin: 1.75rem 0 0.75rem; font-size: 1.15rem; }
.hint { margin: 0.3rem 0 0; font-size: 0.85rem; }
p.lead { font-size: 1.05rem; line-height: 1.6; max-width: 42rem; }
.back { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0 0 0.5rem; font-size: 0.92rem; }
.back::before { content: '‹'; font-size: 1.3rem; line-height: 1; }
.notice { padding: 0.75rem 1rem; border-radius: var(--radius-small); margin-bottom: 1rem; }
.notice-error { background: var(--error-bg); color: var(--error); }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.badge { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--ok-bg); color: var(--ok); vertical-align: 0.1em; }
.badge-info, .notice-info { background: var(--accent-soft); color: var(--text); }
.badge-off { background: var(--error-bg); color: var(--error); }
[hidden] { display: none !important; }


label { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }
input[type=email], input[type=text], input[type=search], input[type=date], input[type=number], input[type=datetime-local], textarea, select {
  width: 100%; min-height: 2.75rem; padding: 0.6rem 0.75rem; font: inherit; font-size: 16px; color: inherit;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-small);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
textarea { resize: vertical; line-height: 1.5; }
input[type=number] { max-width: 8rem; }
select { width: auto; min-width: 12rem; max-width: 100%; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
input[type=file] { display: block; max-width: 100%; font: inherit; }
.choice { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; margin: 0.5rem 0; }
fieldset.roles { border: 0; padding: 0; margin: 0.9rem 0 0; }
fieldset.roles legend { font-weight: 600; padding: 0; margin-bottom: 0.25rem; }
fieldset.roles legend.muted { font-weight: 400; }
fieldset.roles .choice { align-items: flex-start; }
fieldset.roles .choice input { margin-top: 0.2rem; }
.indent { margin-left: 1.75rem; }

fieldset.notify { margin-top: 1.4rem; }
fieldset.notify svg, fieldset.notify .channel svg { width: 1.1rem; height: 1.1rem; color: var(--muted); vertical-align: -0.2rem; }
fieldset.notify .channel { margin: 0.5rem 0 0; }
fieldset.notify .indent .choice { margin: 0.35rem 0; }
form.inline { margin-top: 0.6rem; }
form.inline .choice { display: inline-flex; margin-right: 0.75rem; }
form.inline button { margin-top: 0.4rem; min-height: 2.25rem; padding: 0.35rem 0.9rem; font-weight: 500; }
form.link { display: inline; margin: 0; }


button, a.button, label.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-top: 1rem; min-height: 2.75rem; padding: 0.55rem 1.15rem; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--accent-text); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-small);
  text-decoration: none; transition: filter 0.15s;
}
a.button { margin-top: 0; }
button:hover, a.button:hover { filter: brightness(1.08); text-decoration: none; }
button.secondary, a.button.secondary { background: var(--surface); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
button.danger, a.button.danger { background: var(--error); border-color: var(--error); color: var(--surface); }
form.inline button.danger { background: none; color: var(--error); border-color: color-mix(in srgb, var(--error) 40%, var(--border)); }
.row form.inline { flex: none; margin: 0; }
.row form.inline button { margin: 0; }
details.add-form { margin-top: 1rem; }
ul.vessels li.item { display: flex; align-items: center; gap: 0.5rem; }
.item-main { flex: 1; min-width: 0; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-actions { flex: none; display: flex; align-items: center; gap: 0.1rem; margin: 0; }
.item-actions form { margin: 0; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
  width: 2.5rem; height: 2.5rem; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--accent); cursor: pointer;
}
.icon-button:hover { background: var(--accent-soft); filter: none; text-decoration: none; }
.icon-button.danger { background: none; color: var(--error); border: 0; }
.icon-button.danger:hover { background: var(--error-bg); }
.icon-button svg { width: 1.25rem; height: 1.25rem; }
.icon-button svg + svg, .icon-button.copied svg:first-child { display: none; }
.icon-button.copied svg + svg { display: block; }
details.menu.item-menu { position: relative; top: auto; right: auto; }
details.menu.item-menu > summary svg { width: 1.25rem; height: 1.25rem; }
details.menu .menu-panel {
  position: absolute; right: 0; top: 2.6rem; z-index: 20; min-width: 14rem; margin: 0; padding: 0.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-small);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.18);
}
.menu-panel .menu-title { margin: 0 0 0.4rem; font-weight: 600; }
.menu-panel .choice { display: flex; }
.menu-panel button { width: 100%; margin-top: 0.75rem; }
details.add-form > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.45rem 1rem;
  font-weight: 600; color: var(--accent); background: var(--surface); border-radius: var(--radius-small);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
}
details.add-form > summary::-webkit-details-marker { display: none; }
details.add-form > summary:hover { background: var(--accent-soft); }
details.add-form > summary svg { width: 1.1rem; height: 1.1rem; transition: transform 0.15s; }
details.add-form[open] > summary svg { transform: rotate(45deg); }
details.add-form > form { margin-top: 0.75rem; }
button.link {
  margin: 0; min-height: 0; padding: 0; font-weight: 400; color: var(--accent); background: none; border: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
form.link button.link { font-size: inherit; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.actions button { margin-top: 1rem; }
.actions a.cancel { margin: 1rem 0 0; }
a.cancel { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.5rem; margin-left: 0.5rem; color: var(--muted); font-weight: 600; }
.or { margin: 1rem 0 0; }
.providers { display: grid; gap: 0.6rem; margin-top: 1rem; }
a.button.provider { width: 100%; box-sizing: border-box; gap: 0.6rem; background: var(--surface); color: var(--text); border-color: var(--border); }

a.button.provider-apple { background: var(--text); color: var(--surface); border-color: var(--text); }
.provider-logo { width: 1.15rem; height: 1.15rem; flex: none; }


.exports { margin: 0 0 0.75rem; font-size: 0.92rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; }
.links a {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0.25rem 0.8rem; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-weight: 500;
}
.links a:hover { text-decoration: none; color: var(--accent); }
.filters { display: flex; gap: 0.4rem; margin: 0 calc(-1 * var(--gutter)) 0.5rem; padding: 0.1rem var(--gutter) 0.3rem; overflow-x: auto; scrollbar-width: none; }
.filters a {
  flex: none; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.9rem;
  color: var(--text); background: var(--surface); box-shadow: var(--shadow); white-space: nowrap;
}
.filters a:hover { text-decoration: none; }
.filters a[aria-current] { background: var(--accent); color: var(--accent-text); font-weight: 600; }

form.admin-search { display: flex; gap: 0.5rem; margin: 0 0 0.75rem; }
form.admin-search input { flex: 1; min-width: 0; margin: 0; }
form.admin-search button { flex: none; margin: 0; }
.admin-tiles .tile-value { white-space: normal; overflow-wrap: anywhere; }
nav.tabs {
  display: flex; gap: 0.25rem; margin: 0 calc(-1 * var(--gutter)) 1.25rem; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
nav.tabs a { flex: none; padding: 0.6rem 0.8rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
nav.tabs a:hover { text-decoration: none; color: var(--text); }
nav.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }


ul.rows { list-style: none; padding: 0; margin: 0 0 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
ul.rows > li + li { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: var(--text); }
a.row:hover { text-decoration: none; background: var(--surface-2); }
a.row::after { content: '›'; flex: none; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-main .muted { display: block; font-size: 0.85rem; }
.row-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .voyage-card-blank { width: 2.75rem; height: 2.75rem; font-size: 1.2rem; }
.row-side { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-side.muted { font-weight: 400; }
.row .flag { font-size: 1.2rem; flex: none; }
ul.vessels { list-style: none; padding: 0; margin: 0; }
ul.vessels li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
ul.vessels li:first-child { padding-top: 0; }
ul.vessels li:last-child { border-bottom: 0; padding-bottom: 0; }



.tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 1rem 0.75rem; margin: 0 0 1rem;
  padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); padding: 1.25rem 1.5rem; } }
.tile { min-width: 0; }
.tile-value { font-size: 1.25rem; white-space: nowrap; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tile-label { color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
.tile-note { color: var(--muted); font-size: 0.75rem; line-height: 1.3; margin-top: 0.15rem; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.75rem 0 0; }


.plans { display: grid; gap: 0.75rem; margin: 1rem 0 0.25rem; }
@media (min-width: 40rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  display: flex; flex-direction: column; padding: 1rem 1.1rem;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.plan h3 { margin: 0; font-size: 1.05rem; }
.plan-price { margin: 0.35rem 0 0; font-size: 1.45rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0.75rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.plan li { margin: 0.25rem 0; }
section.subscription h3 { margin: 0 0 0.25rem; }
form.subscribe { margin-top: 0.5rem; }
form.subscribe .choice span { line-height: 1.4; }
.figure { display: flex; flex-direction: column; min-width: 0; }
.figure-value { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure-label { color: var(--muted); font-size: 0.8rem; }
ul.facts { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; list-style: none; padding: 0; margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; }
ul.facts strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
ul.facts .flag { font-size: 1.1rem; }


.chart { display: block; width: 100%; height: auto; margin: 0.25rem 0; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .label { fill: var(--text); font-size: 12px; }
.chart .value { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart path:hover, .chart rect:hover, .chart circle:hover { filter: brightness(1.15); }
.polar-curve polyline { stroke-width: 2; stroke-linejoin: round; }
.polar-curve.pc-1 { stroke: var(--heat-1); fill: var(--heat-1); }
.polar-curve.pc-2 { stroke: var(--heat-2); fill: var(--heat-2); }
.polar-curve.pc-3 { stroke: var(--heat-3); fill: var(--heat-3); }
.polar-curve.pc-4 { stroke: var(--heat-4); fill: var(--heat-4); }
.polar-curve.pc-5 { stroke: var(--heat-5); fill: var(--heat-5); }
.chart.polar { max-width: 20rem; margin: 0.25rem auto; }
.legend .swatch.pc-1 { background: var(--heat-1); }
.legend .swatch.pc-2 { background: var(--heat-2); }
.legend .swatch.pc-3 { background: var(--heat-3); }
.legend .swatch.pc-4 { background: var(--heat-4); }
.legend .swatch.pc-5 { background: var(--heat-5); }
.year-compare td { white-space: nowrap; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; margin: 0.25rem 0 0.5rem; font-size: 0.9rem; }
.legend .swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: 0.4rem; }
.legend .swatch.ramp { margin-right: 1px; border-radius: 0; }
.legend .swatch.route { background: var(--series-1); height: 0.2rem; vertical-align: middle; }
.legend .swatch.stop { background: var(--series-2); border-radius: 50%; }
.s1 { fill: var(--series-1); background: var(--series-1); }
.s2 { fill: var(--series-2); background: var(--series-2); }
.s-other { fill: var(--series-other); background: var(--series-other); }
.h2 { fill: var(--heat-2); background: var(--heat-2); }
.h3 { fill: var(--heat-3); background: var(--heat-3); }
.h4 { fill: var(--heat-4); background: var(--heat-4); }
.h5 { fill: var(--heat-5); background: var(--heat-5); }
.h6 { fill: var(--heat-6); background: var(--heat-6); }


table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.4rem 0.6rem 0.4rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }


.legal { line-height: 1.55; }
.legal h2 { margin-top: 1.75rem; }
.legal h3 { margin-top: 1.5rem; color: var(--text); font-size: 1.05rem; }
.legal .scroll { margin: 0 0 1rem; }
.legal table { font-size: 0.85rem; }
.legal tbody th, .legal td { min-width: 8rem; }
.legal-links { margin-top: 1.5rem; line-height: 1.8; }
table.heat th, table.heat td { text-align: center; padding: 0.4rem 0.5rem; border: 2px solid var(--surface); white-space: nowrap; }
table.heat thead th, table.heat tbody th { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.heat-1 { background: var(--heat-1); color: var(--heat-ink-low); }
.heat-2 { background: var(--heat-2); color: var(--heat-ink-low); }
.heat-3 { background: var(--heat-3); color: var(--heat-ink-low); }
.heat-4 { background: var(--heat-4); color: var(--heat-ink-high); }
.heat-5 { background: var(--heat-5); color: var(--heat-ink-high); }
.heat-6 { background: var(--heat-6); color: var(--heat-ink-high); }
details { margin-top: 0.5rem; }
summary { cursor: pointer; color: var(--accent); }


.imap { border-radius: var(--radius-small); overflow: hidden; isolation: isolate; }
.imap-frame { height: min(70vh, 30rem); background: var(--sea); }

.imap .leaflet-tile-container img.leaflet-tile { width: 256.5px !important; height: 256.5px !important; mix-blend-mode: normal !important; }
.imap-heat { position: absolute; pointer-events: none; }
.imap-legend {
  display: flex; align-items: center; gap: 1px; padding: 0.25rem 0.5rem; border-radius: 4px;
  background: rgba(255, 255, 255, 0.9); color: #17212b; font: 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.imap-legend span { width: 0.8rem; height: 0.8rem; }
.imap-legend span:first-of-type { margin-left: 0.4rem; }
.imap-scale { gap: 0.25rem; font-variant-numeric: tabular-nums; }
.imap-scale span, .imap-scale span:last-of-type { margin: 0 0 0 0.25rem; }
.imap-legend span:last-of-type { margin-right: 0.4rem; }
.imap-choice { display: flex; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.imap-choice button {
  margin: 0; min-height: 0; padding: 0.4rem 0.75rem; border: 0; border-radius: 0; font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #fff; color: #17212b; cursor: pointer;
}
.imap-choice button + button { border-left: 1px solid #d9dee4; }
.imap-choice button[aria-pressed="true"] { background: #0b5cad; color: #fff; }
.imap-popup { font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.imap-popup strong { display: block; margin-bottom: 0.15rem; }
.imap-popup a { display: inline-block; margin-top: 0.35rem; }
.imap-popup img { display: block; width: 160px; height: auto; border-radius: 6px; }
.imap .leaflet-popup-content-wrapper { border-radius: 12px; }
.imap .leaflet-bar { border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.imap .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; }
.imap .leaflet-left .imap-mapbox { display: block; margin: 0 0 6px 6px; line-height: 0; }
.imap-mapbox img { display: block; width: 88px; height: 23px; }
.imap-boat { font-size: 26px; line-height: 28px; text-align: center; background: none; border: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.imap-post { background: #fff; border: 2px solid #eb6834; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.map { background: var(--sea); border-radius: var(--radius-small); }
.map .land { fill: var(--land); }
.map .route { fill: none; stroke: var(--series-1); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.map .stop { fill: var(--series-2); stroke: var(--surface); stroke-width: 1.5; }
.map path:hover { filter: none; }

.bleed { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.bleed .imap, .bleed .map { border-radius: 0; }
@media (min-width: 48rem) {
  .bleed { margin-left: 0; margin-right: 0; }
  .bleed .imap, .bleed .map { border-radius: var(--radius); }
}
.bleed { margin-bottom: 1rem; }
.bleed .imap-frame { height: min(58vh, 32rem); }


ol.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
ol.timeline > li { position: relative; padding: 0.45rem 0 0.45rem 1.1rem; }
ol.timeline > li::before { content: ''; position: absolute; left: -6px; top: 0.85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
ol.timeline > li.timeline-stay { color: var(--muted); }
ol.timeline > li.timeline-stay::before { border-color: var(--muted); background: var(--muted); }
ol.timeline > li .muted { margin-right: 0.4rem; }
ul.countries { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; padding: 0; margin: 0 0 0.5rem; }
ul.countries .flag { font-size: 1.25rem; vertical-align: -0.1em; }


label.backup { display: block; margin: 0.4rem 0; font-weight: 400; }
label.backup progress, progress.usage { display: block; width: 100%; max-width: 22rem; margin-top: 0.25rem; accent-color: var(--accent); }
.boat-choice { border: 0; padding: 0; margin: 0 0 1rem; }
.boat-choice legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.boat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; }
.boat-tile { display: block; margin: 0; cursor: pointer; }
.boat-tile input { position: absolute; opacity: 0; pointer-events: none; }
.boat-tile-body { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; height: 100%; padding: 0.8rem 0.5rem; text-align: center; border: 2px solid var(--border); border-radius: 0.75rem; background: var(--card, transparent); }
.boat-tile-body .muted { font-size: 0.8rem; font-weight: 400; }
.boat-tile input:checked + .boat-tile-body { border-color: var(--accent); background: var(--accent-soft); }
.boat-tile input:focus-visible + .boat-tile-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.boat-head { display: flex; align-items: center; gap: 0.75rem; }
.boat-head h2 { margin: 0; }
.boat-icon { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.boat-icon svg { width: 1.4rem; height: 1.4rem; }
.boat-head .muted { display: block; font-size: 0.88rem; }
ul.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
ul.shortcuts a {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.75rem 0.4rem;
  border-radius: var(--radius-small); background: var(--surface-2); color: var(--text); font-size: 0.85rem; font-weight: 600; text-align: center;
}
ul.shortcuts a:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent); }
ul.shortcuts svg { width: 1.4rem; height: 1.4rem; color: var(--accent); }
@media (min-width: 40rem) { ul.shortcuts { grid-template-columns: repeat(5, 1fr); } }
details.more { margin: 0.75rem 0 0; border-top: 1px solid var(--border); padding-top: 0.6rem; }
details.more > summary { font-weight: 600; font-size: 0.92rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '›'; font-size: 1.2rem; transition: transform 0.15s; color: var(--muted); }
details.more[open] > summary::after { transform: rotate(90deg); }
details.more .exports { margin: 0.6rem 0 0; line-height: 1.9; }
details.card.more { margin-top: 0; padding-top: 0.85rem; padding-bottom: 0.85rem; border-top: 0; }


.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.voyage-head { margin-bottom: 0.75rem; }

body.embed { height: 100vh; height: 100dvh; overflow: hidden; background: var(--surface); }
.embed-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.embed-map { position: relative; flex: 1; min-height: 0; background: var(--sea); }
.embed-map .imap, .embed-map .imap-frame { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.embed-map svg.map { width: 100%; height: 100%; border-radius: 0; }
.embed-map .legend, .embed-map h3, .embed-map p { display: none; }
.embed-map .leaflet-control-attribution { font-size: 0.62rem; }
.embed-map > a { position: absolute; inset: 0; z-index: 500; }
.embed-text { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--border); }
.embed-text > div { flex: 1; min-width: 0; }
.embed-text h1 { margin: 0; font-size: 1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-text h1 a { color: var(--text); }
.embed-text p { margin: 0; font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-brand { display: inline-flex; align-items: center; gap: 0.3rem; flex: none; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.embed-brand svg { width: 1.1rem; height: 1.1rem; color: var(--accent); }

.page-hero { position: relative; height: min(52vh, 34rem); margin: -1.25rem calc(-1 * var(--gutter)) 1rem; overflow: hidden; border-radius: 0 0 1.75rem 1.75rem; background: var(--sea); isolation: isolate; }
.page-hero-blank { height: auto; min-height: 13rem; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #000)); }
@media (min-width: 48rem) { .page-hero { margin: -0.75rem 0 1.25rem; border-radius: var(--radius); } }
.hero-map, .hero-map .imap, .hero-map .imap-frame { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.hero-map svg.map { width: 100%; height: 100%; border-radius: 0; }
.hero-map .legend, .hero-map h3, .hero-map p { display: none; }
.hero-map .leaflet-control-attribution { font-size: 0.62rem; }
.hero-open { position: absolute; inset: 0; z-index: 1000; background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 22%, transparent 55%, rgba(0, 0, 0, 0.62)); }
.hero-open:focus-visible { outline-offset: -4px; }
.round-button { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.round-button:hover { text-decoration: none; }
.round-button svg { width: 1.4rem; height: 1.4rem; }
.hero-back { position: absolute; z-index: 1001; top: 0.9rem; left: 0.9rem; }
details.menu.hero-menu { top: 0.9rem; right: 0.9rem; z-index: 1002; }
details.menu.hero-menu > summary { width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; color: var(--accent); }
details.menu.hero-menu > summary:hover, details.menu.hero-menu[open] > summary { background: var(--surface); }
details.menu.hero-menu ul { top: 3.2rem; min-width: 16rem; }
details.menu li a[aria-current] { color: var(--accent); font-weight: 600; }
details.menu li a[aria-current] svg:last-child { margin-left: auto; color: var(--accent); }
.hero-title { position: absolute; z-index: 1001; left: 0; right: 0; bottom: 0; padding: 0 1.25rem 1.6rem; text-align: center; color: #fff; pointer-events: none; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.hero-title h1 { margin: 0 0 0.25rem; font-size: 2rem; }
.hero-title p { margin: 0; font-size: 1rem; font-weight: 500; }
@media (min-width: 48rem) { .hero-title h1 { font-size: 2.4rem; } }

.map-page { position: relative; width: 100vw; margin: -1.25rem 0 -3rem calc(50% - 50vw); }
@media (min-width: 48rem) { .map-page { margin-top: -2rem; } }
.map-page .imap, .map-page .map { border-radius: 0; }
.map-page .imap-frame { height: calc(100dvh - var(--bar) - var(--tabbar) - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
@media (min-width: 48rem) { .map-page .imap-frame { height: calc(100dvh - var(--bar) - env(safe-area-inset-top)); } }
.map-close { position: absolute; z-index: 1001; top: 0.9rem; right: 0.9rem; }
.home-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.home-head h1 { margin: 0; }
.home-current { padding: 0; overflow: hidden; }
.home-current .imap, .home-current .map { border-radius: 0; }
.home-current .imap-frame { height: min(50vh, 22rem); }
.home-current-text { position: relative; padding: 0.9rem 1.1rem 1rem; }
.home-current h2 { margin-bottom: 0.15rem; font-size: 1.25rem; }
.home-current h2 a { color: var(--text); }
.home-current h2 a::after { content: ''; position: absolute; inset: 0; }
.home-current-text .button { position: relative; z-index: 1; }
@media (hover: hover) { .home-current-text:hover h2 a { text-decoration: underline; } }
.home-current .muted { margin: 0; font-size: 0.9rem; }
.home-list h2 { margin: 1.75rem 0 0.75rem; }
ul.voyage-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.6rem; }
a.voyage-card { display: flex; gap: 0.8rem; align-items: center; padding: 0.6rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
a.voyage-card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--accent); }
a.voyage-card img, .voyage-card-blank { width: 4.25rem; height: 4.25rem; flex: none; border-radius: var(--radius-small); object-fit: cover; }
.voyage-card-blank { display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--sea); }
fieldset.cover-choice { border: 0; padding: 0; margin: 1rem 0 0; }
fieldset.cover-choice legend { font-weight: 600; padding: 0; margin-bottom: 0.3rem; }
p.cover-photo { display: flex; align-items: center; gap: 0.6rem; margin: 0.3rem 0 0.6rem 1.6rem; }
p.cover-photo img { width: 3rem; height: 3rem; object-fit: cover; border-radius: var(--radius-small); }
ul.cover-photos { list-style: none; padding: 0; margin: 0.3rem 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
ul.cover-photos label { display: block; position: relative; cursor: pointer; }
ul.cover-photos input { position: absolute; top: 0.25rem; left: 0.25rem; }
ul.cover-photos img { display: block; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--radius-small); }
.voyage-card-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.voyage-card-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voyage-card-text .muted { font-size: 0.85rem; }


details.fab { position: fixed; right: calc(var(--gutter) + env(safe-area-inset-right)); bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 1rem); z-index: 1101; margin: 0; }
details.fab > summary {
  list-style: none; display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem;
  border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 2rem; font-weight: 300; line-height: 1;
  box-shadow: 0 4px 14px rgba(11, 92, 173, 0.4); transition: transform 0.15s;
}
details.fab > summary::-webkit-details-marker { display: none; }
details.fab[open] > summary { transform: rotate(45deg); }
details.fab ul {
  position: absolute; right: 0; bottom: 4.25rem; min-width: 14rem; margin: 0; padding: 0.4rem; list-style: none;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(16, 32, 48, 0.25);
}
details.fab ul a { display: block; padding: 0.7rem 0.9rem; border-radius: var(--radius-small); color: var(--text); font-weight: 600; }
details.fab ul a:hover { text-decoration: none; background: var(--accent-soft); }
@media (min-width: 48rem) { details.fab { bottom: 2rem; right: 2rem; } }


ol.feed { list-style: none; padding: 0; margin: 0; }
ol.feed > li { margin: 0 0 0.75rem; }
.voyage-feed { max-width: 40rem; margin-inline: auto; }
ol.feed > li.feed-day { display: flex; justify-content: center; margin: 1.75rem 0 1rem; }
ol.feed > li.feed-day:first-child { margin-top: 0.5rem; }
li.feed-day time { padding: 0.3rem 1.1rem; border: 2px solid var(--accent-soft); border-radius: 999px; background: var(--surface); color: var(--accent); font-size: 1.05rem; font-weight: 700; }
ol.feed > li.feed-post:not(:has(article)) { display: none; }
ol.feed > li.feed-passage, ol.feed > li.feed-stay { display: flex; gap: 0.75rem; align-items: center; padding: 0.15rem 0.25rem; font-size: 0.93rem; }
ol.feed > li.feed-stay { color: var(--muted); }
.feed-icon { display: flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); font-size: 1rem; }
.feed-text { display: flex; flex-direction: column; min-width: 0; }
.feed-text .muted { font-size: 0.84rem; }
.feed-more { text-align: center; }
article.post { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1rem 0.9rem; }
.post-meta { margin: 0 0 0.75rem; padding-right: 2.75rem; }
.post-meta p { margin: 0; }
.post-day { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.post-by { font-size: 0.95rem; color: var(--muted); }
.post-place { font-size: 0.95rem; font-weight: 600; color: var(--accent); }
details.menu { position: absolute; top: 0.6rem; right: 0.5rem; margin: 0; }
details.menu > summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.05em; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.menu[open] > summary { background: var(--accent-soft); }
details.menu ul { list-style: none; position: absolute; right: 0; top: 2.6rem; z-index: 20; min-width: 13rem; margin: 0; padding: 0.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-small); box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.18); }
details.menu li form { margin: 0; }
details.menu li a, details.menu li button { display: block; width: 100%; margin: 0; min-height: 0; padding: 0.65rem 0.8rem; border: 0; border-radius: calc(var(--radius-small) - 2px); background: none; color: var(--text); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
details.menu li a:hover, details.menu li button:hover { text-decoration: none; background: var(--accent-soft); filter: none; }
details.menu li a, details.menu li button { display: flex; align-items: center; justify-content: flex-start; gap: 0.7rem; white-space: nowrap; }
details.menu li svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--muted); }
details.menu li button.danger, details.menu li button.danger svg { color: var(--error); }
details.menu li.menu-copy { display: none; }
[data-clipboard] details.menu li.menu-copy { display: list-item; }

.link-address { display: flex; gap: 0.5rem; align-items: center; margin: 0.5rem 0; }
.link-address input { flex: 1; min-width: 0; margin: 0; font-size: 0.875rem; }
.link-address textarea { flex: 1; min-width: 0; margin: 0; font: 0.8rem/1.4 ui-monospace, Menlo, monospace; resize: none; }
.link-address.embed-code { align-items: flex-start; }
.link-address .copy-link { display: none; margin: 0; flex: none; }
[data-clipboard] .link-address .copy-link { display: inline-flex; }
.story-body { line-height: 1.6; overflow-wrap: anywhere; }
.story-body h3, .story-body h4 { color: var(--text); margin: 1rem 0 0.4rem; }
.story-body p { margin: 0 0 0.75rem; }
.story-body > :last-child { margin-bottom: 0; }
.post-body.folded { max-height: 20rem; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.post-more { display: block; margin: 0.25rem 0 0.5rem; }
.post-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem 0.5rem; margin-top: 0.6rem; border-top: 1px solid var(--border); padding-top: 0.6rem; }
.post-actions form.like { margin: 0; }
.like-button, details.comments > summary {
  display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; min-height: 2.25rem; padding: 0.2rem 0.85rem;
  background: none; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; font-weight: 500;
}
.like-button:hover { filter: none; color: var(--like); }
.like-button[aria-pressed="true"] { color: var(--like); border-color: var(--like); }
.like-button span[aria-hidden] { font-size: 1.05rem; }
.post-actions details.comments { flex: 1 1 100%; margin: 0; }
.post-actions form.like + details.comments { flex: 1 1 10rem; }
details.comments > summary { list-style: none; }
details.comments > summary::-webkit-details-marker { display: none; }
details.comments > summary::before { content: ''; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--bubble) center / contain no-repeat; mask: var(--bubble) center / contain no-repeat; }
details.comments[open] > summary { color: var(--accent); border-color: var(--accent); margin-bottom: 0.5rem; }
:root { --bubble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.post-likes { margin: 0.4rem 0 0; font-size: 0.88rem; }
p.post-add { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }


ul.comments { list-style: none; padding: 0; margin: 0 0 0.5rem; }
ul.comments li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
ul.comments li:last-child { border-bottom: 0; }
.comment-meta { margin: 0 0 0.2rem; font-size: 0.85rem; }
.comment-meta strong { color: var(--text); }
.comment-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
form.comment-like { margin: 0.3rem 0 0; }
form.comment-like .like-button { min-height: 1.75rem; padding: 0.05rem 0.6rem; font-size: 0.8rem; gap: 0.25rem; }
form.comment-like .like-button span[aria-hidden] { font-size: 0.9rem; }
details.comments { margin: 0.5rem 0 0; font-size: 0.95rem; }


article.story { border-left: 3px solid var(--accent); padding: 0.1rem 0 0.1rem 1rem; margin: 0.75rem 0 1rem; }
article.story h3 { color: var(--text); font-size: 1.05rem; margin: 0 0 0.2rem; }
.story-meta { font-size: 0.85rem; margin: 0 0 0.4rem; }


ul.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.3rem; padding: 0; margin: 0.6rem 0 0; }
ul.gallery li { position: relative; }
ul.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--grid); }
ul.gallery .badge { position: absolute; left: 0.3rem; bottom: 0.3rem; margin: 0; }
ol.timeline ul.gallery { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
article.post ul.gallery { grid-template-columns: repeat(3, 1fr); }

ul.gallery.mosaic { display: flex; flex-wrap: wrap; gap: 0 0.35rem; margin: 0.75rem -0.5rem 0; }
ul.gallery.mosaic > li { flex: var(--shape) 1 0; min-width: 0; aspect-ratio: var(--shape); }
ul.gallery.mosaic > li.solo { flex: 0 1 auto; width: min(100%, calc(26rem * var(--shape))); margin-inline: auto; }
ul.gallery.mosaic > li.mosaic-break { flex: 0 0 100%; height: 0.35rem; aspect-ratio: auto; }
ul.gallery.mosaic a { display: block; height: 100%; }
ul.gallery.mosaic picture { display: contents; }
ul.gallery.mosaic img { height: 100%; aspect-ratio: auto; border-radius: 0.9rem; }
ul.gallery li .photo-remove { position: absolute; top: 0.2rem; right: 0.2rem; margin: 0; }
ul.gallery li .photo-remove button { margin: 0; min-height: 0; padding: 0 0.45rem; line-height: 1.4; background: rgba(0, 0, 0, 0.6); border: 0; color: #fff; border-radius: 999px; }
ul.sorting { list-style: none; padding: 0; margin: 0; }
ul.sorting li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
ul.sorting li:last-child { border-bottom: 0; }
ul.sorting img { width: 100%; height: auto; border-radius: 6px; }
ul.sorting p { margin: 0; font-size: 0.9rem; }
ul.sorting select { width: 100%; min-width: 0; }
@media (min-width: 30rem) { ul.sorting li { grid-template-columns: 8rem 1fr; } }
ul.gallery-edit li.photo-sending, ul.gallery-edit li.photo-add { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--grid); }
ul.gallery-edit li.photo-sending img { opacity: 0.55; }
ul.gallery-edit li.photo-sending progress {
  position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; width: auto; height: 0.45rem;
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
ul.gallery-edit li.photo-sending progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.75); }
ul.gallery-edit li.photo-sending progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
ul.gallery-edit li.photo-sending progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
ul.gallery-edit li.photo-sending[data-state="waiting"] progress { opacity: 0.5; }
ul.gallery-edit li.photo-sending[data-state="queued"] progress, ul.gallery-edit li.photo-sending[data-state="error"] progress { display: none; }
ul.gallery-edit .photo-state { position: absolute; inset: auto 0.3rem 0.3rem; margin: 0; font-size: 0.72rem; line-height: 1.25; color: var(--text); }
ul.gallery-edit li[data-state="error"] { outline: 2px solid var(--error); outline-offset: -2px; }
ul.gallery-edit li[data-state="error"] .photo-state { color: var(--error); inset: 2.1rem 0.3rem auto; padding: 0.25rem 0.35rem; border-radius: 4px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
ul.gallery-edit li[data-state="queued"] .photo-state { padding: 0.25rem 0.35rem; border-radius: 4px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
ul.gallery-edit .photo-dismiss { position: absolute; top: 0.2rem; right: 0.2rem; margin: 0; min-height: 0; padding: 0 0.45rem; }
ul.gallery-edit li.photo-add { background: none; }
ul.gallery-edit li.photo-add label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; height: 100%; margin: 0;
  border: 2px dashed var(--border); border-radius: 6px; color: var(--accent); font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
ul.gallery-edit li.photo-add label:hover, ul.gallery-edit li.photo-add label:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
ul.gallery-edit li.photo-add label.disabled { color: var(--muted); cursor: not-allowed; }
ul.gallery-edit .photo-add-plus { font-size: 1.8rem; line-height: 1; font-weight: 400; }
ul.gallery-edit li.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.app-progress {
  position: fixed; left: 0; right: 0; top: calc(var(--bar) + env(safe-area-inset-top)); z-index: 1200; height: 3px;
  overflow: hidden; background: var(--accent-soft); pointer-events: none;
}
.app-progress::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--accent);
  animation: progress 1.1s ease-in-out infinite;
}
@keyframes progress { from { left: -40%; } to { left: 100%; } }
button[aria-busy="true"] { position: relative; color: transparent !important; cursor: progress; }
button[aria-busy="true"]::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid; border-color: var(--accent-text) var(--accent-text) transparent transparent;
  animation: spin 0.7s linear infinite;
}
button.secondary[aria-busy="true"]::after, button.link[aria-busy="true"]::after, form.inline button.danger[aria-busy="true"]::after {
  border-color: var(--accent) var(--accent) transparent transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-progress::after { animation-duration: 3s; } button[aria-busy="true"]::after { animation-duration: 2s; } }
button:disabled { cursor: not-allowed; opacity: 0.6; }
button[aria-busy="true"]:disabled { opacity: 1; }
.app-status button.link { margin: 0 0 0 0.4rem; padding: 0; font-size: inherit; font-weight: 600; text-decoration: underline; }
.app-status {
  position: sticky; top: calc(var(--bar) + env(safe-area-inset-top)); z-index: 1050; margin: 0; padding: 0.45rem var(--gutter);
  background: var(--accent-soft); color: var(--text); font-size: 0.88rem; text-align: center;
}
figure.photo { margin: 0 0 1rem; }
figure.photo img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-small); }
figure.photo figcaption { margin-top: 0.4rem; font-size: 0.9rem; }
dialog.confirm { max-width: min(26rem, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid var(--border); border-radius: 0.9rem; background: var(--surface); color: var(--text); box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25); }
dialog.confirm::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog.confirm p { margin: 0 0 1rem; }
dialog.confirm .actions { justify-content: flex-end; gap: 0.5rem; }
dialog.confirm .actions button { margin: 0; }
dialog.confirm .actions:has(> :nth-child(3)) { flex-direction: column; align-items: stretch; }
.gallery li[aria-busy="true"] { opacity: 0.4; }
dialog.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.94); color: #fff; }

html.viewing { overflow: hidden; overscroll-behavior: none; }
dialog.viewer { touch-action: pinch-zoom; overscroll-behavior: contain; }
dialog.viewer::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog.viewer figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 3rem 0.5rem 1rem; }
@media (min-width: 48rem) { dialog.viewer figure { padding: 3rem 3.5rem 1rem; } }
dialog.viewer img, dialog.viewer video { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; }
dialog.viewer video { width: 100%; background: #000 center / contain no-repeat; }

dialog.viewer img.sized {
  width: min(100%, calc((100vh - 7rem) * var(--ratio)), var(--width));
  width: min(100%, calc((100dvh - 7rem) * var(--ratio)), var(--width));
  height: auto; max-height: none; aspect-ratio: var(--ratio); background: center / 100% 100% no-repeat;
}
dialog.viewer .viewer-loading {
  position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; background: rgba(0, 0, 0, 0.5); background-clip: padding-box;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.2s; animation: spin 0.8s linear infinite;
}

dialog.viewer[aria-busy="true"] .viewer-loading { opacity: 1; transition-delay: 0.2s; }
dialog.viewer [hidden] { display: none; }

ul.gallery a.video-link, .import-video { position: relative; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.video-play span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.95rem; padding-left: 0.15rem; }
ul.gallery.mosaic .video-play span { width: 3rem; height: 3rem; font-size: 1.3rem; padding-left: 0.2rem; }
.video-length { position: absolute; right: 0.4rem; bottom: 0.35rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; line-height: 1.5; font-variant-numeric: tabular-nums; pointer-events: none; }
ul.gallery-edit li.video-waiting { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--grid); }
ul.gallery-edit li.video-waiting img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
ul.gallery-edit li.video-waiting .video-play { inset: 0 0 1.6rem; }
ul.gallery-edit .video-state { position: absolute; inset: auto 0.3rem 0.3rem; margin: 0; padding: 0.2rem 0.35rem; border-radius: 4px; font-size: 0.72rem; line-height: 1.25; color: var(--text); background: color-mix(in srgb, var(--surface) 88%, transparent); }
ul.gallery-edit li.video-waiting[data-state="failed"], ul.gallery-edit li.video-waiting[data-state="quota"] { outline: 2px solid var(--error); outline-offset: -2px; }
ul.gallery-edit li.video-waiting[data-state="failed"] .video-state, ul.gallery-edit li.video-waiting[data-state="quota"] .video-state { color: var(--error); }

.media-bar { grid-column: 1 / -1; display: flex; height: 0.6rem; border-radius: 999px; overflow: hidden; background: var(--grid); }
.media-bar span { display: block; height: 100%; }
.tile-label .swatch { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-radius: 2px; }
.media-thumb { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 6px; overflow: hidden; background: var(--grid); }
.media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-thumb .video-play span { width: 1.5rem; height: 1.5rem; font-size: 0.7rem; }
.media-error { color: var(--error); }

ul.gallery-edit li.video-waiting .video-length, ul.gallery-edit li.photo-sending .video-length { top: 0.35rem; bottom: auto; left: 0.35rem; right: auto; }
.import-video { flex: none; display: block; scroll-snap-align: start; }
.import-video img { display: block; }
dialog.viewer figcaption { margin-top: 0.75rem; max-width: 40rem; padding: 0 1rem; text-align: center; }
dialog.viewer button { position: absolute; margin: 0; min-height: 0; padding: 0.2rem 0.8rem; font-size: 2rem; line-height: 1; background: rgba(0, 0, 0, 0.4); border: 0; color: #fff; border-radius: 999px; }
dialog.viewer .viewer-close { top: calc(0.75rem + env(safe-area-inset-top)); right: 0.75rem; }
dialog.viewer .viewer-previous { left: 0.5rem; top: 50%; transform: translateY(-50%); }
dialog.viewer .viewer-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }


ol.import { list-style: none; padding: 0; margin: 0; }
ol.import > li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
ol.import > li:last-child { border-bottom: 0; }
.import-thumbs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0; }
.import-thumbs img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 6px; background: var(--grid); }

.import-thumbs img:not([src]), .import-strip img:not([src]), .import-editor-photos img:not([src]), li.photo-slot { animation: waiting 1.4s ease-in-out infinite; background: var(--grid); }
li.photo-slot { aspect-ratio: 1; border-radius: 6px; }
article.post ul.gallery-pending { margin-top: 0.3rem; }
@keyframes waiting { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .import-thumbs img:not([src]), .import-strip img:not([src]), .import-editor-photos img:not([src]), li.photo-slot { animation: none; } }
.import-thumbs img.import-big, .import-strip img.import-big, .import-editor-photos img.import-big { outline: 2px solid var(--error); outline-offset: -2px; }
.import-status { font-weight: 500; }
ol.import .actions { margin-top: 0.5rem; gap: 0.4rem; }
ol.import .actions button, ol.import .actions form.inline { margin: 0; }

label.button.import-add { display: inline-flex; width: auto; margin: 0.5rem 0 0; font-weight: 600; }
label.button.import-add svg { width: 1.3rem; height: 1.3rem; }
label.button.import-add:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
ol.import-groups { margin-top: 0.5rem; }
ol.import-groups:not(:empty) { padding-bottom: 5.5rem; }
ol.import > li.import-item { margin-inline: calc(-1 * var(--gutter)); padding: 1.1rem var(--gutter); cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; transition: background-color 0.15s; }

ol.import > li.import-item.pressed { background: var(--accent-soft); }
.import-head { display: flex; align-items: flex-start; gap: 0.5rem; }
.import-when { flex: 1; min-width: 0; margin: 0; }
.import-day { display: block; font-size: 1.15rem; line-height: 1.3; }
.import-day::first-letter { text-transform: uppercase; }
.import-when .badge { margin: 0.2rem 0 0; }
.import-place { display: block; color: var(--muted); font-size: 0.92rem; }
.import-head > button { flex: none; margin: 0; min-height: 2.5rem; padding: 0.35rem 1rem; font-weight: 600; border-radius: 999px; }
.import-head > button.import-edit { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.import-head > button.import-edited { gap: 0.3rem; padding-inline: 0.5rem; background: none; border-color: transparent; color: var(--accent); }
.import-head > button.import-edited svg { width: 1.2rem; height: 1.2rem; }
details.menu.import-menu { position: relative; top: auto; right: auto; flex: none; }
details.menu.import-menu > summary { background: var(--accent-soft); }
.import-strip { display: flex; gap: 0.45rem; margin: 0.75rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.import-strip::-webkit-scrollbar { display: none; }
.import-strip img { flex: none; height: 9.5rem; width: auto; aspect-ratio: var(--shape, 1); object-fit: cover; border-radius: 0.8rem; background: var(--grid); scroll-snap-align: start; }
.import-body { margin: 0.75rem 0 0; white-space: pre-line; }
.import-bar { position: fixed; z-index: 1101; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 0.75rem); padding: 0 var(--gutter); pointer-events: none; }
.import-bar button { display: flex; width: 100%; max-width: 36rem; margin: 0 auto; min-height: 3.25rem; border-radius: 999px; font-size: 1.05rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); pointer-events: auto; }
@media (min-width: 48rem) { .import-bar { bottom: calc(1.25rem + env(safe-area-inset-bottom)); } }
dialog.import-editor, dialog.import-library-picker { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: calc(0.75rem + env(safe-area-inset-top)) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); border: 0; background: var(--bg); color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
dialog.import-editor .import-editor-body, dialog.import-library-picker .import-editor-body { max-width: 40rem; margin-inline: auto; }

.import-library { display: inline-flex; align-items: center; gap: 0.5rem; }
.import-library svg { width: 1.2rem; height: 1.2rem; }
dialog.import-library-picker .import-editor-head h2 { margin: 0; font-size: 1.2rem; }
ol.import-library-days { list-style: none; margin: 0.5rem 0 6rem; padding: 0; }
.import-library-day > div { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 1.1rem 0 0.5rem; }
.import-library-day h3 { margin: 0; font-size: 1rem; }
.import-library-day > div button { margin: 0; min-height: 2rem; padding: 0.2rem 0.75rem; font-size: 0.85rem; }
.import-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: 3px; margin: 0 calc(-1 * var(--gutter)); list-style: none; padding: 0; }
.import-library-grid button { position: relative; display: block; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 0; background: var(--grid); overflow: hidden; box-shadow: none; }
.import-library-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s, transform 0.15s; }
.import-library-grid button[aria-pressed="false"] img { opacity: 0.5; transform: scale(0.92); }
.import-library-grid button::after { content: ''; position: absolute; top: 0.35rem; right: 0.35rem; width: 1.45rem; height: 1.45rem; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 0.9rem; line-height: 1.3rem; text-align: center; }
.import-library-grid button[aria-pressed="true"]::after { content: '✓'; background: var(--accent); }
.import-library-grid .import-library-length { position: absolute; left: 0.35rem; bottom: 0.3rem; padding: 0 0.3rem; border-radius: 0.3rem; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.75rem; }
dialog.import-library-picker .import-bar { bottom: calc(1rem + env(safe-area-inset-bottom)); }
.import-editor-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.import-editor-head .round-button { flex: none; margin: 0; padding: 0; min-height: 0; border: 0; box-shadow: none; background: var(--accent-soft); color: var(--text); }
ul.import-editor-photos { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; }
ul.import-editor-photos li { position: relative; flex: none; }
ul.import-editor-photos img { display: block; height: 8.5rem; width: auto; aspect-ratio: var(--shape, 1); object-fit: cover; border-radius: 0.6rem; background: var(--grid); }
ul.import-editor-photos button { position: absolute; top: 0.3rem; right: 0.3rem; margin: 0; min-height: 0; width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.25rem; line-height: 1; }
dialog.import-editor textarea { width: 100%; }
dialog.import-progress { width: min(24rem, calc(100vw - 2rem)); padding: 1.4rem 1.25rem 1.25rem; border: 1px solid var(--border); border-radius: 0.9rem; background: var(--surface); color: var(--text); box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25); }
dialog.import-progress::backdrop, dialog.import-editor::backdrop, dialog.import-library-picker::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog.import-progress h2 { margin: 0 0 0.9rem; font-size: 1.15rem; }
dialog.import-progress progress { display: block; width: 100%; height: 0.6rem; accent-color: var(--accent); }
dialog.import-progress p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.92rem; }
dialog.import-progress .actions { justify-content: flex-end; gap: 0.5rem; }
dialog.import-progress .actions button { margin: 0.75rem 0 0; }
a.button.small, ol.import .actions button { min-height: 2.25rem; padding: 0.3rem 0.85rem; font-size: 0.9rem; font-weight: 500; }
fieldset.post-place .actions button { margin-top: 0; }
.help-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.help-toggle svg { width: 1.2rem; height: 1.2rem; }
.help-toggle[aria-expanded="true"] { color: var(--accent); }
.help-text[hidden] { display: none; }
.post-editor .post-photos { margin-bottom: 1rem; }
.post-editor .post-photos .help-toggle { display: flex; margin-left: auto; }
.post-when { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.9rem; }
.post-when label { margin: 0; flex: none; }
.post-when input { flex: 1; min-width: 0; margin: 0; }
.post-place-head { display: flex; align-items: center; justify-content: space-between; }
.post-place-head legend { float: left; }
.post-place-stay { margin: 0 0 0.25rem; font-weight: 600; }
.post-place .actions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
dialog.place-picker { width: min(40rem, calc(100vw - 1.5rem)); padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.9rem; background: var(--surface); color: var(--text); }
dialog.place-picker::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog.place-picker .place-map { height: min(60vh, 26rem); border-radius: var(--radius-small); background: var(--sea); }
dialog.place-picker .actions { justify-content: flex-end; gap: 0.5rem; margin-top: 0.75rem; }
dialog.place-picker .actions button { margin: 0; }


ul.transfers { list-style: none; margin: 0; padding: 0; }
ul.transfers li { padding: 0.8rem 0; border-top: 1px solid var(--border); }
ul.transfers li:first-child { border-top: 0; padding-top: 0; }
ul.transfers p { margin: 0.35rem 0 0; }
ul.transfers .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
ul.transfers .actions form { margin: 0; }
ul.transfers .actions button, ul.transfers .actions .button { margin: 0; }
.transfer-progress progress { max-width: none; }
form.voyage-upload progress { max-width: none; margin: 0.75rem 0 0; }


dl.notes { margin: 0; }
dl.notes dt { font-weight: 600; margin-top: 0.6rem; }
dl.notes dt:first-child { margin-top: 0; }
dl.notes dd { margin: 0.1rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
