/* Napeeto — dashboard shell (admin / owner / agency).
   Loads AFTER sky.css, which supplies the day/night tokens and the sky. */

:root {
  --bg: transparent;
  --panel: var(--glass-solid);
  --panel-2: var(--glass-2);
  --teal: var(--lagoon);
  --teal-deep: var(--lagoon-deep);

  --nav: var(--glass);
  --nav-line: var(--glass-line);
  --nav-ink: var(--ink);
  --nav-ink-faint: var(--ink-faint);
  --nav-hover: color-mix(in srgb, var(--lagoon) 10%, transparent);
  --nav-active-bg: color-mix(in srgb, var(--lagoon) 16%, transparent);
  --nav-active-ink: var(--lagoon-deep);
  --nav-count-bg: color-mix(in srgb, var(--ink) 8%, transparent);
}
html.sky-night :root, html.sky-night { --nav-hover: rgba(255,255,255,0.06); --nav-count-bg: rgba(255,255,255,0.08); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", ui-serif, Georgia, serif; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }

aside {
  background: var(--nav); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--nav-ink); border-right: 1px solid var(--nav-line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
/* the sidebar brand slot is retired — identity lives in the top bar */
.brand { display: none; }

nav.side { padding: 1rem 0.65rem; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
nav.side a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.58rem 0.75rem;
  border-radius: 999px; text-decoration: none; color: var(--nav-ink);
  font-size: 13px; transition: background 0.12s, color 0.12s;
}
nav.side a svg { width: 16px; height: 16px; flex: none; opacity: 0.75; }
nav.side a .count {
  margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 10px;
  background: var(--nav-count-bg); color: var(--nav-ink); padding: 1px 7px; border-radius: 999px;
}
nav.side a:hover { background: var(--nav-hover); }
nav.side a.active { background: var(--nav-active-bg); color: var(--nav-active-ink); font-weight: 500; }
nav.side a.active svg { opacity: 1; }
nav.side a.active .count { background: color-mix(in srgb, var(--lagoon) 24%, transparent); color: var(--nav-active-ink); }
.side-foot { padding: 0.9rem 1.1rem; border-top: 1px solid var(--nav-line); font-size: 11px; color: var(--nav-ink-faint); display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.side-foot button { background: none; border: 1px solid var(--nav-line); color: var(--nav-ink-faint); border-radius: 999px; padding: 3px 10px; font-size: 10px; }
.side-foot button:hover { color: var(--nav-ink); border-color: var(--nav-ink-faint); }
.side-foot a { color: var(--nav-ink-faint); text-decoration: none; }
.side-foot a:hover { color: var(--nav-ink); }

main { min-width: 0; display: flex; flex-direction: column; }

/* ---------- marketing-style top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  position: sticky; top: 0; z-index: 20;
}
.topbar .home { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); flex: none; }
.topbar .home img { height: 26px; width: auto; display: block; }
html.sky-night .topbar .home img { filter: invert(1); }
.topbar .home .lbl { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); border-left: 1px solid var(--line); padding-left: 0.65rem; }
.topbar .page { min-width: 0; }
.topbar .page h1 { font-size: 1.15rem; line-height: 1.15; }
.topbar .page .sub { color: var(--ink-soft); font-size: 11.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search { margin-left: auto; position: relative; }
.search input {
  font: inherit; font-size: 13px; width: 220px; max-width: 40vw;
  padding: 0.45rem 0.75rem 0.45rem 2rem; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink);
}
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { outline: 2px solid color-mix(in srgb, var(--lagoon) 45%, transparent); outline-offset: 1px; border-color: transparent; }
.search svg { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-faint); }

.whoami { display: flex; align-items: center; gap: 0.55rem; padding-left: 0.9rem; border-left: 1px solid var(--line); flex: none; background: none; border-top: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; border-radius: 999px; }
.whoami:hover { background: var(--panel-2); }
.whoami .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg, var(--lagoon), var(--lagoon-deep)); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.whoami div { line-height: 1.2; }
.whoami div b { font-weight: 600; }
.whoami small { color: var(--ink-faint); font-size: 11px; }
.whoami select { border: 0; background: none; color: var(--ink-faint); font: inherit; font-size: 11px; padding: 0; margin-top: 1px; max-width: 150px; cursor: pointer; }
.whoami select:focus { outline: none; color: var(--ink); }
.whoami select option { color: #12302d; }

/* agency portal: the avatar/name button sits above the seat-switcher <select>,
   which can't nest inside a <button> — laid out on a small grid instead of flex. */
.whoami-seated { display: grid; grid-template-columns: auto 1fr; column-gap: 0.55rem; row-gap: 1px; padding-left: 0.9rem; border-left: 1px solid var(--line); flex: none; }
.whoami-seated .who-trigger { grid-column: 1 / 3; display: flex; align-items: center; gap: 0.55rem; background: none; border: 0; padding: 0; margin: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.whoami-seated .who-trigger:hover b { text-decoration: underline; }
.whoami-seated #seatSel { grid-column: 2; }

.who-menu { position: absolute; top: 52px; right: clamp(0.75rem, 3vw, 2rem); width: min(230px, 92vw); background: var(--glass-solid); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(6, 16, 32, 0.45); z-index: 30; padding: 0.9rem 1rem; }
.who-menu .wm-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.who-menu .wm-email { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; word-break: break-all; }
.who-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0.75rem 0; }
.who-menu .wm-signout { display: block; font-size: 12.5px; color: var(--ink-soft); text-decoration: none; padding: 0.3rem 0; }
.who-menu .wm-signout:hover { color: var(--coral); }

.view { padding: clamp(1rem, 3vw, 2rem); flex: 1; }
.view[hidden] { display: none; }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.9rem; margin-bottom: 1.5rem; }
.stat { background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 14px; padding: 1rem 1.05rem; box-shadow: var(--shadow); }
.stat .k { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.stat .v { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 550; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 11px; color: var(--ink-soft); margin-top: 0.15rem; }
.stat .d.up { color: color-mix(in srgb, var(--lagoon) 82%, var(--ink)); }
.stat .d.warn { color: var(--coral); }

/* ---------- cards / panels ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.card > header { padding: 0.9rem 1.05rem; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.card > header h3 { font-size: 1rem; }
.card > header a { font-size: 11px; color: var(--lagoon-deep); text-decoration: none; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.04em; }
.card .body { padding: 0.4rem 0.4rem; }
.card .pad { padding: 1rem; }

.feed { display: flex; flex-direction: column; }
.feed li { list-style: none; display: flex; gap: 0.7rem; padding: 0.6rem; border-radius: 10px; }
.feed li:hover { background: var(--panel-2); }
.feed .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--lagoon); }
.feed .dot.warn { background: var(--coral); }
.feed .dot.ok { background: #2f8f6b; }
.feed .dot.bad { background: var(--coral); opacity: 0.55; }
.feed .t { font-size: 12.5px; }
.feed .m { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--ink-faint); margin-top: 1px; }
.feed ul { margin: 0; padding: 0; }

.attn li { list-style: none; display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem; border-radius: 10px; cursor: pointer; }
.attn li:hover { background: var(--panel-2); }
.attn .n { font-family: "Fraunces", serif; font-size: 1.15rem; width: 2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--lagoon-deep); }
.attn .lbl { font-size: 12.5px; }
.attn .go { margin-left: auto; color: var(--ink-faint); }
.attn ul { margin: 0; padding: 0; }

/* ---------- toolbar + table ---------- */
.toolbar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.chip {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.03em;
  padding: 0.34rem 0.75rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: var(--blur); color: var(--ink-soft);
}
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
html.sky-night .chip.active { color: #0b1330; }
.chip .c { opacity: 0.6; margin-left: 0.3rem; }
.toolbar .spacer { flex: 1; }
.toolbar .result { font-size: 11px; color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; }
.toolbar .result a { color: var(--lagoon-deep); }
.toolbar select { font: inherit; font-size: 12px; padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); color: var(--ink); }
.toolbar select option { color: #12302d; }

.table-wrap { background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 14px; overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
thead th {
  text-align: left; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 500; white-space: nowrap;
}
tbody td { padding: 0.72rem 0.95rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: "IBM Plex Mono", monospace; }
td .name { font-weight: 500; }
td .meta { font-size: 11px; color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; margin-top: 1px; }
.id { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-faint); }
.sell { color: var(--lagoon-deep); font-weight: 600; }

.pill { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.info { background: var(--info-bg); color: var(--info-ink); }
.pill.mute { background: var(--mute-bg); color: var(--mute-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad-ink); }

.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-faint); font-size: 13px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(6, 16, 32, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.18s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 94vw);
  background: var(--glass-solid); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-left: 1px solid var(--glass-line);
  transform: translateX(100%); transition: transform 0.22s ease; z-index: 41;
  display: flex; flex-direction: column; box-shadow: -1.5rem 0 4rem -1rem rgba(6, 16, 32, 0.4);
}
.drawer.open { transform: none; }
.drawer header { padding: 1.2rem 1.3rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
.drawer header .id { display: block; margin-bottom: 0.35rem; }
.drawer header h2 { font-size: 1.3rem; }
.drawer .x { position: absolute; top: 0.8rem; right: 0.95rem; z-index: 2; background: none; border: 0; font-size: 1.5rem; color: var(--ink-faint); line-height: 1; padding: 0.2rem 0.4rem; }
.drawer .x:hover { color: var(--ink); }
.drawer .d-body { padding: 1.15rem 1.3rem; overflow-y: auto; flex: 1; }
.drawer h4 { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin: 1.4rem 0 0.5rem; }
.drawer h4:first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: 9rem 1fr; gap: 0.45rem 0.75rem; font-size: 13px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.drawer .note { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.75rem 0.85rem; font-size: 12.5px; color: var(--ink-soft); }
.drawer footer { padding: 0.9rem 1.3rem; border-top: 1px solid var(--line-soft); display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn {
  font-size: 12.5px; font-weight: 500; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  transition: transform 0.1s, border-color 0.12s, background 0.12s;
}
.btn:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.btn.primary { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.btn.primary:hover { background: var(--lagoon-deep); }
.btn.danger { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 45%, var(--line)); }
.btn.wide { flex: 1; text-align: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.field { display: grid; gap: 0.3rem; margin-bottom: 0.8rem; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 13px; padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--ink); width: 100%;
}
.field select option { color: #12302d; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--lagoon) 45%, transparent); outline-offset: 1px; border-color: transparent;
}
.field.two { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.field.two > * { grid-column: auto; }

.steps { display: flex; align-items: center; gap: 0; margin: 0.3rem 0 0.2rem; }
.steps .s { flex: 1; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); position: relative; padding-top: 16px; }
.steps .s::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps .s::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.steps .s.done { color: var(--lagoon-deep); }
.steps .s.done::before, .steps .s.done::after { background: var(--lagoon); border-color: var(--lagoon); }
.steps .s.now::after { border-color: var(--lagoon); background: var(--surface); }
.steps .s:first-child::before { left: 50%; }
.steps .s:last-child::before { right: 50%; }

/* ---------- rate / package cards ---------- */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 1rem; }
.rate-card {
  position: relative; background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); border-radius: 16px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: border-color 0.12s, transform 0.12s;
}
.rate-card:hover { border-color: color-mix(in srgb, var(--lagoon) 55%, var(--line)); transform: translateY(-2px); }
.rate-card .rc-hero { height: 132px; background-size: cover; background-position: center; background-color: var(--panel-2); }
.rate-card .rc-hero + .band { height: 4px; }
.rate-card .band { height: 5px; background: var(--lagoon); }
.rate-card .band.Guesthouse { background: var(--gold); }
.rate-card .band.Liveaboard { background: var(--slate); }
.rate-card .rc-body { padding: 1.4rem 1.15rem 0.5rem; flex: 1; }
.rate-card .rc-type { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.rate-card h3 { font-size: 1.1rem; margin: 0.35rem 0 0.15rem; }
.rate-card .rc-atoll { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-faint); }
.rate-card .rc-room { font-size: 13px; margin-top: 0.75rem; font-weight: 500; }
.rate-card .rc-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 0.2rem; }
.rate-card .rc-posted { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.02em; color: var(--ink-faint); margin-top: 0.45rem; }
.rate-card .rc-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.75rem; }
.rate-card .rc-tag { font-family: "IBM Plex Mono", monospace; font-size: 10px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 2px 8px; color: var(--ink-soft); white-space: nowrap; }
.rate-card .rc-foot { padding: 0.8rem 1.15rem; border-top: 1px solid var(--line-soft); display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; }
.rate-card .rc-price { font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 550; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rate-card .rc-price small { font-family: "Instrument Sans", sans-serif; font-size: 10px; color: var(--ink-faint); font-weight: 400; display: block; letter-spacing: 0; }
.rate-card .rc-margin { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ok-ink); background: var(--ok-bg); border-radius: 999px; padding: 2px 8px; }
.viewtoggle { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.viewtoggle button { border: 0; background: var(--glass); color: var(--ink-faint); padding: 0.35rem 0.55rem; display: grid; place-items: center; }
.viewtoggle button.active { background: var(--ink); color: var(--surface); }
.viewtoggle svg { width: 15px; height: 15px; }

.rate-card .rc-badges { position: absolute; top: 0.9rem; left: 1.15rem; display: flex; gap: 0.35rem; z-index: 2; }
.rate-card .rc-hero ~ .rc-badges .badge { box-shadow: 0 1px 8px rgba(6, 16, 32, 0.35); }
.rate-card .rc-hero ~ .fav { color: #fff; filter: drop-shadow(0 1px 3px rgba(6, 16, 32, 0.5)); }
.badge { font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.badge.new { background: var(--info-bg); color: var(--info-ink); }
.badge.deal { background: var(--bad-bg); color: var(--bad-ink); }
.fav { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; background: none; border: 0; padding: 4px; color: var(--ink-faint); line-height: 0; }
.fav svg { width: 17px; height: 17px; }
.fav.on { color: #e0a92e; }
.fav.on svg { fill: currentColor; }
.avail { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 11px; color: var(--ink-soft); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f8f6b; }
.avail.Limited::before { background: #c98a2e; }
.avail.On-request::before { background: var(--ink-faint); }
.rate-card .was { text-decoration: line-through; color: var(--ink-faint); font-size: 11px; font-weight: 400; margin-right: 0.3rem; }

.greet { font-size: 1.65rem; margin-bottom: 0.15rem; }
.greet + .gsub { color: var(--ink-soft); font-size: 12.5px; margin-bottom: 1.3rem; }
.quickbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.quickbar button { font-size: 12.5px; font-weight: 500; padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: var(--blur); color: var(--ink); display: inline-flex; align-items: center; gap: 0.45rem; }
.quickbar button:hover { border-color: var(--lagoon); }
.quickbar button.primary { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.quickbar button svg { width: 15px; height: 15px; }

.minicards { display: flex; flex-direction: column; }
.minicard { display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.6rem; border-radius: 10px; cursor: pointer; }
.minicard:hover { background: var(--panel-2); }
.minicard .mc-band { width: 4px; align-self: stretch; border-radius: 4px; background: var(--lagoon); }
.minicard .mc-band.Guesthouse { background: var(--gold); }
.minicard .mc-band.Liveaboard { background: var(--slate); }
.minicard .mc-name { font-size: 12.5px; font-weight: 500; }
.minicard .mc-meta { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--ink-faint); margin-top: 1px; }
.minicard .mc-price { margin-left: auto; text-align: right; }
.minicard .mc-price b { font-family: "Fraunces", serif; font-size: 0.95rem; font-weight: 550; }
.minicard .mc-price span { display: block; font-family: "IBM Plex Mono", monospace; font-size: 9px; color: var(--lagoon-deep); }

.funnel { padding: 0.5rem 1rem 1rem; }
.funnel .f-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0; }
.funnel .f-bar { height: 30px; background: color-mix(in srgb, var(--lagoon) 24%, transparent); border-radius: 6px; display: flex; align-items: center; padding: 0 0.6rem; font-family: "IBM Plex Mono", monospace; font-size: 11px; min-width: 44px; transition: width 0.2s; }
.funnel .f-lbl { font-size: 12px; width: 6.5rem; flex: none; color: var(--ink-soft); }
.funnel .f-val { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-faint); }

.credit { padding: 1rem; }
.credit .c-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0.6rem 0 0.4rem; }
.credit .c-fill { height: 100%; background: var(--lagoon); border-radius: 999px; }
.credit .c-fill.hot { background: var(--coral); }
.credit .c-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; }

.qcalc { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0.9rem 1rem; margin: 1rem 0; }
.qcalc .qrow { display: flex; justify-content: space-between; font-size: 13px; padding: 0.2rem 0; }
.qcalc .qrow.tot { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.5rem; font-weight: 600; }
.qcalc .qrow .sell { color: var(--lagoon-deep); }
.qextras { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.5rem; }
.qextras label { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.3rem; font-size: 12.5px; border-radius: 8px; cursor: pointer; }
.qextras label:hover { background: var(--panel-2); }
.qextras label .ex-price { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-faint); }
.qextras input { accent-color: var(--lagoon); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--glass); color: var(--ink-soft); padding: 0.45rem; font-size: 11.5px; }
.seg button.active { background: var(--ink); color: var(--surface); }

.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 120px; padding: 1rem; }
.bars .bar { flex: 1; background: color-mix(in srgb, var(--lagoon) 52%, transparent); border-radius: 5px 5px 0 0; min-height: 3px; position: relative; }
.bars .bar span { position: absolute; bottom: -1.3rem; left: 0; right: 0; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 9px; color: var(--ink-faint); }
.bars-wrap { padding-bottom: 1.3rem; }

/* ---------- notification bell ---------- */
.bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); color: var(--ink-soft); cursor: pointer; flex: none; }
.bell:hover, .bell.has-unread { color: var(--ink); }
.bell svg { width: 16px; height: 16px; }
.bell .badge { position: absolute; top: -6px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.notif-panel { position: absolute; top: 52px; right: clamp(0.75rem, 3vw, 2rem); width: min(340px, 92vw); max-height: 70vh; overflow-y: auto; background: var(--glass-solid); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(6, 16, 32, 0.45); z-index: 30; }
.notif-panel header { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--glass-solid); }
.notif-panel header b { font-size: 12.5px; }
.notif-panel header .mark { background: none; border: 0; color: var(--lagoon-deep); font-size: 10px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.04em; cursor: pointer; }
.notif-panel .nrow { display: flex; gap: 0.6rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
.notif-panel .nrow:hover { background: var(--panel-2); }
.notif-panel .nrow.fresh { background: color-mix(in srgb, var(--lagoon) 9%, transparent); }
.notif-panel .ndot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--lagoon); }
.notif-panel .ndot.warn { background: var(--coral); }
.notif-panel .ndot.ok { background: #2f8f6b; }
.notif-panel .ndot.bad { background: var(--coral); opacity: 0.5; }
.notif-panel .nt { font-size: 12px; line-height: 1.35; }
.notif-panel .nb { font-size: 9.5px; color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; margin-top: 2px; }
.notif-panel .nempty { padding: 2rem 1rem; text-align: center; color: var(--ink-faint); font-size: 12px; }

/* ---------- responsive ---------- */
.menu-btn { display: none; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); color: var(--ink-soft); flex: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  aside { position: fixed; z-index: 50; width: 250px; transform: translateX(-100%); transition: transform 0.2s; }
  aside.open { transform: none; }
  .menu-btn { display: inline-grid !important; }
  .topbar .page .sub { display: none; }
}
@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; row-gap: 0.55rem; gap: 0.6rem; }
  .topbar .home .lbl { display: none; }
  .topbar .home img { height: 22px; }
  .topbar .page { flex: 1; }
  .topbar .page h1 { font-size: 1rem; }
  .search { order: 5; margin-left: 0; width: 100%; }
  .search input { width: 100%; max-width: none; }
  .bell { order: 3; }
  .whoami, .whoami-seated { order: 4; margin-left: 0; padding-left: 0; border-left: 0; }
  .whoami small { display: none; }
  .whoami div, .whoami select { display: none; }
  .whoami-seated .who-trigger b, .whoami-seated select { display: none; }
  .card > header { flex-wrap: wrap; row-gap: 0.2rem; align-items: baseline; }
  .bars { height: 92px; }
}
@media (max-width: 560px) {
  .field.two { grid-template-columns: 1fr; }
  .drawer { width: 100vw; border-left: 0; }
  .drawer footer .btn { flex: 1 1 auto; }
  /* stat tiles (Overview, Reports, System health…) run oversized at phone width
     otherwise — six of these fill the whole screen for what's just six numbers */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; margin-bottom: 1.1rem; }
  .stat { padding: 0.7rem 0.8rem; border-radius: 12px; }
  .stat .k { font-size: 8.5px; letter-spacing: 0.08em; line-height: 1.3; }
  .stat .v { font-size: 1.3rem; margin-top: 0.2rem; }
  .stat .d { font-size: 10px; margin-top: 0.1rem; line-height: 1.35; }

  /* Discover cards go two-up and condensed on phones */
  .catalog { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
  .rate-card .rc-hero { height: 74px; }
  .rate-card .rc-body { padding: 0.7rem 0.7rem 0.3rem; }
  .rate-card .rc-type, .rate-card .rc-atoll { font-size: 9px; }
  .rate-card h3 { font-size: 0.92rem; margin-top: 0.3rem; }
  .rate-card .rc-room { font-size: 11.5px; margin-top: 0.4rem; }
  .rate-card .rc-meta { font-size: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rate-card .rc-tags { display: none; }
  .rate-card .rc-foot { padding: 0.55rem 0.7rem; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .rate-card .rc-foot > div:last-child { text-align: left !important; }
  .rate-card .rc-price { font-size: 1rem; }
  .rate-card .rc-badges { top: 0.5rem; left: 0.5rem; }
  .rate-card .fav { top: 0.4rem; right: 0.4rem; }
  .shore-scene { height: 300px; }
  .shore-scene.compact { height: 196px; }
  .shore-scene .sh-vessel { width: 20px; height: 46px; }
  .shore-scene .sh-vessel .paper { top: 10px; height: 22px; }
  .shore-scene .sh-vessel::before { top: -8px; height: 10px; }
  .shore-scene .sh-vessel .cork { top: -12px; width: 10px; height: 6px; }
  .shore-scene .sh-label { font-size: 10px; padding: 3px 7px; }
  .shore-scene .sh-timer { width: 31px; height: 31px; font-size: 8px; }
  .shore-scene .sh-timer b { font-size: 9px; }
  .shore-scene .sh-fish svg { width: 28px; }
  .shore-scene .sh-static svg { width: 21px; }
  .shore-scene .sh-sun { width: 46px; height: 46px; }
}

/* ---------- Shore — message in a bottle ---------- */
.shore-intro { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 14px; padding: 0.95rem 1.15rem; margin-bottom: 1.4rem; box-shadow: var(--shadow); }
.shore-intro .wave { line-height: 0; flex: none; color: var(--lagoon-deep); margin-top: 2px; }
.shore-intro .wave svg { display: block; }
.shore-intro p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }
.shore-intro b { color: var(--ink); font-weight: 600; }

.shore-sub { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 1.6rem 0 0.7rem; }
.shore-sub:first-child { margin-top: 0; }

.bottles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.bottle { position: relative; background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 1.1rem 1.15rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.5rem; }
.bottle.caught { opacity: 0.62; }
.bottle .b-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.bottle .b-name { font-family: "Fraunces", serif; font-size: 1.1rem; }
.bottle .b-age { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--ink-faint); white-space: nowrap; flex: none; }
.bottle .b-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--ink-soft); }
.bottle .b-note { font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.bottle .b-foot { margin-top: 0.3rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.bottle .b-caught { font-size: 11px; color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; }
.bottle .b-mine { color: var(--lagoon-deep); }
.bottle::before { content: "🍾"; position: absolute; top: 0.9rem; right: 1rem; font-size: 1rem; opacity: 0.5; }
.bottle.caught::before { content: "🐚"; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.bottle.fresh { animation: bob 2.4s ease-in-out 3; border-color: color-mix(in srgb, var(--lagoon) 45%, var(--glass-line)); }
@media (prefers-reduced-motion: reduce) { .bottle.fresh { animation: none; } }

/* ---- the animated shore scene (shore.js) ---- */
.shore-scene {
  position: relative; overflow: hidden; border-radius: 16px;
  height: 356px; border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #8ecaee 0%, #a9d8ea 32%, #66c7c6 38%, #4fc5a9 52%, #55c990 74%, #63cc86 100%);
}
.shore-scene.compact { height: 230px; }
.shore-scene.sh-clickable { cursor: pointer; }
html.sky-night .shore-scene {
  background: linear-gradient(180deg, #24304f 0%, #2b3a63 30%, #22506a 39%, #1c5a63 54%, #1d6455 76%, #216a4f 100%);
}

.sh-sun { position: absolute; top: 7%; right: 8%; width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fff4bd, #ffd352 62%, #ffc231);
  box-shadow: 0 0 42px 15px rgba(255, 214, 110, 0.55); }
.sh-sun::before { content: ""; position: absolute; inset: -16px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 221, 140, 0.55) 0 5deg, transparent 5deg 30deg);
  animation: sh-spin 80s linear infinite; }
html.sky-night .sh-sun { background: radial-gradient(circle at 38% 36%, #ffffff, #dfe6ff 60%, #b9c4e6);
  box-shadow: 0 0 34px 10px rgba(200, 214, 255, 0.4); }
html.sky-night .sh-sun::before { display: none; }

.sh-cloud { position: absolute; height: 26px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); filter: blur(5px); left: -20%;
  animation: sh-cloud var(--cd, 90s) linear infinite; animation-delay: var(--cdelay, 0s); }
html.sky-night .sh-cloud { background: rgba(255, 255, 255, 0.14); }
@keyframes sh-cloud { from { left: -22%; } to { left: 118%; } }

.sh-wave { position: absolute; left: 0; right: 0; top: 35%; width: 100%; height: 46px; }
.sh-wave path { fill: rgba(255, 255, 255, 0.28); }
.sh-wave .w2 { fill: rgba(255, 255, 255, 0.16); }
.sh-wave .w1 { animation: sh-wave 11s ease-in-out infinite alternate; }
.sh-wave .w2 { animation: sh-wave 8s ease-in-out infinite alternate-reverse; }
@keyframes sh-wave { from { transform: translateX(-24px); } to { transform: translateX(24px); } }

.sh-life { position: absolute; inset: 0; pointer-events: none; }
.sh-fish { position: absolute; left: -10%; line-height: 0; animation: sh-swim var(--sd, 22s) linear infinite; animation-delay: var(--sdelay, 0s); }
.sh-fish svg { width: 36px; height: auto; display: block; }
.sh-fish.rev { animation-name: sh-swim-rev; }
@keyframes sh-swim { from { left: -10%; transform: scaleX(1); } to { left: 110%; transform: scaleX(1); } }
@keyframes sh-swim-rev { from { left: 110%; transform: scaleX(-1); } to { left: -10%; transform: scaleX(-1); } }
.sh-static { position: absolute; line-height: 0; animation: sh-cbob var(--bd, 5s) ease-in-out infinite; }
.sh-static svg { width: 26px; height: auto; display: block; }
@keyframes sh-cbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.sh-timer .sh-clock { width: 11px; height: 11px; opacity: 0.85; }

.sh-bottles { position: absolute; inset: 0; }
.sh-bottle { position: absolute; width: 28px; transform-origin: 50% 30%; border: 0; background: none; padding: 0; cursor: pointer;
  animation: sh-bbob var(--bob, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.shore-scene.compact .sh-bottle { transform: scale(0.82); }
@keyframes sh-bbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.shore-scene.compact .sh-bottle { animation-name: sh-bbob-c; }
@keyframes sh-bbob-c { 0%, 100% { transform: scale(0.82) translateY(0) rotate(-3deg); } 50% { transform: scale(0.82) translateY(-7px) rotate(3deg); } }

.sh-vessel { position: relative; display: block; width: 27px; height: 64px; margin: 0 auto; border-radius: 8px 8px 10px 10px;
  background: linear-gradient(180deg, rgba(150, 216, 182, 0.9), rgba(116, 200, 176, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.55); transform: rotate(-22deg);
  box-shadow: inset -3px 0 6px rgba(255, 255, 255, 0.4), inset 3px 0 5px rgba(3, 40, 45, 0.15), 0 6px 9px rgba(3, 40, 45, 0.22); }
.sh-vessel::before { content: ""; position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
  width: 10px; height: 13px; border-radius: 3px 3px 0 0; border: 1px solid rgba(255, 255, 255, 0.5); border-bottom: 0;
  background: linear-gradient(180deg, rgba(150, 216, 182, 0.85), rgba(116, 200, 176, 0.9)); }
.sh-vessel .cork { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); z-index: 2;
  width: 12px; height: 7px; border-radius: 3px; background: #b5804a; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.sh-vessel .paper { position: absolute; left: 3px; right: 3px; top: 13px; height: 30px; border-radius: 4px;
  background: repeating-linear-gradient(180deg, #f5ecd3 0 5px, #eee0bd 5px 7px); }

.sh-label { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: rgba(15, 23, 32, 0.9); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; display: flex; align-items: center; gap: 5px;
  box-shadow: 0 3px 10px rgba(3, 40, 45, 0.3); }
.sh-label .fl { font-size: 13px; }
.sh-label::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(15, 23, 32, 0.9); }
.sh-bottle:hover .sh-label { background: var(--lagoon-deep); }

.sh-timer { position: absolute; top: calc(100% - 4px); left: 52%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: rgba(15, 23, 32, 0.92); color: #ffd9a8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; line-height: 1;
  box-shadow: 0 4px 10px rgba(3, 40, 45, 0.4); }
.sh-timer b { font-size: 11px; color: #fff; font-family: "IBM Plex Mono", monospace; margin-top: 1px; }
.sh-bottle.soon .sh-timer { background: #a8391f; color: #ffe0d0; }

.sh-more { position: absolute; right: 12px; bottom: 12px; border: 0; cursor: pointer;
  background: rgba(15, 23, 32, 0.82); color: #fff; font-size: 11px; font-family: "IBM Plex Mono", monospace;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 3px 10px rgba(3, 40, 45, 0.3); }
.sh-empty { position: absolute; left: 0; right: 0; top: 58%; text-align: center; color: rgba(255, 255, 255, 0.92);
  font-size: 13px; text-shadow: 0 1px 6px rgba(3, 40, 45, 0.4); }

.shore-scene.sh-still .sh-sun::before,
.shore-scene.sh-still .sh-cloud,
.shore-scene.sh-still .sh-wave path,
.shore-scene.sh-still .sh-fish,
.shore-scene.sh-still .sh-static,
.shore-scene.sh-still .sh-bottle { animation: none !important; }
.shore-scene.sh-still .sh-fish { left: 50%; }
@media (prefers-reduced-motion: reduce) {
  .sh-sun::before, .sh-cloud, .sh-wave path, .sh-fish, .sh-static, .sh-bottle { animation: none !important; }
  .sh-fish { display: none; }
}
@keyframes sh-spin { to { transform: rotate(360deg); } }

/* the "opened bottle" note in the drawer — a torn scrap of aged paper,
   pulled from the sea, not a rounded UI card. Always this look, both themes.
   The zigzag top/bottom is cut directly into the shape (clip-path), so it's
   one true silhouette rather than a decorative strip glued on top of a box —
   the drop-shadow is a filter for the same reason: box-shadow would ignore
   the clip and shadow the old rectangle. */
.bottle-msg {
  --paper: #dcb977; --torn: 9px;
  position: relative;
  background: var(--paper);
  color: #2c2308; border: 0; border-radius: 0;
  margin: 0.4rem 0.3rem;
  padding: calc(var(--torn) + 0.7rem) 1.15rem calc(var(--torn) + 0.85rem);
  font-size: 13.5px; line-height: 1.68;
  clip-path: polygon(
    0% var(--torn), 8.33% 0%, 16.66% var(--torn), 25% 0%, 33.33% var(--torn), 41.66% 0%,
    50% var(--torn), 58.33% 0%, 66.66% var(--torn), 75% 0%, 83.33% var(--torn), 91.66% 0%, 100% var(--torn),
    100% calc(100% - var(--torn)), 91.66% 100%, 83.33% calc(100% - var(--torn)), 75% 100%, 66.66% calc(100% - var(--torn)), 58.33% 100%,
    50% calc(100% - var(--torn)), 41.66% 100%, 33.33% calc(100% - var(--torn)), 25% 100%, 16.66% calc(100% - var(--torn)), 8.33% 100%, 0% calc(100% - var(--torn))
  );
  filter: drop-shadow(0 10px 18px rgba(3, 20, 22, 0.35));
  transform: rotate(-0.7deg);
}
.bottle-msg .sig { display: block; margin-top: 0.9rem; font-style: italic; font-size: 12px; color: #5a3f10; }

/* "At a glance" stays in the same paper family as the message above it,
   instead of dropping back to a plain list — one note, read top to bottom */
.kv-paper {
  background: #ecd6a4; border: 1px solid rgba(120, 84, 24, 0.22); border-radius: 6px;
  padding: 0.85rem 1rem; box-shadow: inset 0 0 22px rgba(120, 84, 24, 0.1);
}
.kv-paper .kv dt { color: #6a5218; }
.kv-paper .kv dd { color: #2c2308; }
.kv-paper .kv dt { color: #6a5a34; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.kv-paper .kv dd { color: #40381f; }

.shore-scene + .shore-strip { margin-top: 1rem; }
.shore-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 12px; color: var(--ink-soft); }
.shore-strip .chip { cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.shore-strip .chip svg { flex: none; }

/* ---------- mobile bottom nav (built by mobilenav.js) ---------- */
.botnav, .botnav-scrim { display: none; }

@media (max-width: 720px) {
  /* the sidebar becomes a bottom sheet the "More" button slides up */
  .app > aside#side {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; height: auto; max-height: 74vh;
    transform: translateY(100%); transition: transform 0.24s ease;
    border-right: 0; border-top: 1px solid var(--glass-line);
    border-radius: 18px 18px 0 0; overflow: hidden;
    box-shadow: 0 -1.5rem 4rem -1rem rgba(6, 16, 32, 0.45); z-index: 55;
  }
  .app > aside#side.open { transform: none; }
  .app > aside#side::before {
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 4px; border-radius: 999px; background: var(--ink-faint); opacity: 0.45; z-index: 3;
  }
  aside#side nav.side { padding-top: 1.6rem; }
  aside#side nav.side a { padding: 0.72rem 0.9rem; font-size: 14px; }

  .topbar .menu-btn { display: none !important; }

  main { padding-bottom: 5.4rem; }

  /* floating, not docked to the edge — same glass language as the rest of the UI */
  .botnav {
    display: flex; position: fixed; left: 0; right: 0; z-index: 45;
    bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    margin: 0 0.7rem; border-radius: 20px;
    background: var(--glass); backdrop-filter: var(--blur) saturate(160%); -webkit-backdrop-filter: var(--blur) saturate(160%);
    border: 1px solid var(--glass-line);
    padding: 0.3rem 0.15rem;
    box-shadow: 0 18px 40px -14px rgba(6, 16, 32, 0.4), 0 2px 10px -2px rgba(6, 16, 32, 0.18), inset 0 1px 0 rgba(255,255,255,.09);
  }
  .botnav > a, .botnav > button {
    position: relative; flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 0.4rem 0.15rem; border: 0; background: none;
    text-decoration: none; color: var(--ink-faint); border-radius: 12px;
  }
  .botnav > a:active, .botnav > button:active { background: var(--nav-hover); }
  .botnav svg { width: 20px; height: 20px; opacity: 0.7; }
  .botnav .bl {
    font-family: "IBM Plex Mono", monospace; font-size: 8.5px; letter-spacing: 0.02em;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .botnav > .active { color: var(--lagoon-deep); }
  .botnav > .active svg { opacity: 1; }
  .botnav .bc {
    position: absolute; top: 0.15rem; left: 50%; margin-left: 0.25rem;
    min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px;
    background: var(--coral); color: #fff; font-size: 8px; font-weight: 700;
    display: grid; place-items: center; line-height: 1;
  }
  .botnav .bc[hidden] { display: none; }

  .botnav-scrim {
    display: block; position: fixed; inset: 0; z-index: 50;
    background: rgba(6, 16, 32, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.18s;
  }
  .botnav-scrim.open { opacity: 1; pointer-events: auto; }

  /* a record drawer should sit above the bottom nav while it's open */
  .scrim { z-index: 60; }
  .drawer { z-index: 61; }
}
