/* RESERVA interactive demo. Signal-flag system (docs/DESIGN_DIRECTION.md v4): black and white
   ground, flag red is the one action colour, yellow and blue live in the flags, sea and sand
   behind whole sections. Big Shoulders for signage-style headings, Archivo for everything read. */

@font-face { font-family: 'Big Shoulders'; src: url(../fonts/big-shoulders-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(../fonts/archivo-latin.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #111417; --ink-2: #2a2f35; --ink-3: #3d434b; --slate: #464c54; --mist: #a7adb5;
  --paper: #ffffff; --sand-100: #f0f1f2; --sand-200: #dcdfe2; --sand-400: #b3b8be; --rope: #80868e; --meta: #5a6068;
  --red: #c8102e; --red-600: #a10c24; --red-50: #fdecee; --yellow: #f2b705; --blue: #0b3d91;
  --sea-deep: #0f4c5c; --sea-glass: #2e6f62; --sand-grey: #e6e1d6;
  --good: #1d6b45; --good-50: #e3f1e9; --info: #0b3d91; --info-50: #e3eaf6; --rust: #b3261e; --rust-50: #fbe9e7; --stone-50: #eceef0;
  --display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --ui: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --bar: 44px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --settle: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.625 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 0.95; margin: 0; text-wrap: balance; letter-spacing: 0; }
h1, h2 { text-transform: uppercase; font-weight: 800; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus, var(--red)); outline-offset: 3px; border-radius: 2px; }
.on-ink { --focus: var(--yellow); }
.tab { font-variant-numeric: tabular-nums lining-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caps { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.meta { color: var(--meta); font-size: 14px; line-height: 20px; }
.muted { color: var(--slate); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { top: 52px; }

/* ---------- flags ---------- */
.flag { width: 16px; height: 16px; flex: none; outline: 1px solid rgba(17, 20, 23, 0.35); outline-offset: -1px; }
.flagword { display: inline-flex; gap: 3px; }

/* ---------- buttons, inputs, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 2px; font-weight: 600; font-size: 15px; line-height: 20px; text-decoration: none; transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease); }
.btn:hover { background: var(--sand-100); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-600); border-color: var(--red-600); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; padding-left: 8px; padding-right: 8px; text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover { background: var(--sand-100); }
.on-ink .btn.ghost:hover, .closing .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 1; background: var(--sand-100); border-color: var(--sand-200); color: var(--meta); cursor: not-allowed; }
.arrow::after { content: '\2192'; font-weight: 500; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rope); border-radius: 2px; background: #fff; font-size: 16px; font-weight: 400; letter-spacing: 0; }
textarea.input { min-height: 88px; resize: vertical; }
.input:focus-visible { outline-offset: 0; }
.input[readonly] { background: var(--sand-100); color: var(--slate); }
.input[aria-invalid='true'] { border-color: var(--rust); }
.err { color: var(--rust); font-size: 13px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 2px; font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; background: var(--stone-50); color: var(--ink-3); }
.pill::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.pill.good { background: var(--good-50); color: var(--good); }
.pill.warn { background: #fff4d1; color: #6b4f00; }
.pill.held { background: var(--good-50); color: var(--sea-glass); }
.pill.info { background: var(--info-50); color: var(--blue); }
.pill.crit { background: var(--rust-50); color: var(--rust); }
.pill.red { background: var(--red-50); color: var(--red-600); }
.info { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; margin-left: 4px; vertical-align: -4px; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: var(--meta); font: 700 12px/1 var(--ui); }
.info:hover, .info:focus-visible { color: var(--ink); }
.on-ink .info { color: var(--mist); }
.tip { position: fixed; z-index: 90; max-width: 300px; padding: 10px 12px; background: var(--ink); color: #fff; font-size: 13px; line-height: 18px; border-radius: 2px; pointer-events: none; box-shadow: 0 8px 24px -12px rgba(17, 20, 23, 0.5); }
.tip[hidden] { display: none; }
.meter { display: flex; height: 6px; color: var(--red); border: 1px solid currentColor; min-width: 60px; }
.meter > i { flex: 1 1 0; border-left: 1px solid currentColor; }
.meter > i:first-child { border-left: 0; }
.meter > i.on { background: currentColor; }
.meter.cont { position: relative; }
.meter.cont > b { position: absolute; inset: 0 auto 0 0; background: currentColor; }
.meter.low { color: var(--rust); }
.on-ink .meter { color: var(--yellow); }
.fix { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.02em; color: var(--meta); font-variant-numeric: tabular-nums; }
.fix > span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- demo bar (always on top) ---------- */
.demo-bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar); background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 2px solid var(--yellow); }
.demo-bar .mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: 0.08em; }
.demo-bar .mark .flag { width: 14px; height: 14px; outline-color: rgba(255, 255, 255, 0.4); }
.demo-bar .label { font-size: 12px; color: var(--mist); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.demo-bar .label b { color: var(--yellow); font-weight: 600; }
.demo-bar .sp { flex: 1; }
.roles { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 2px; }
.roles button { min-height: 30px; padding: 4px 12px; border: 0; background: transparent; color: #e5e7ea; font-size: 13px; font-weight: 600; }
.roles button + button { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.roles button[aria-pressed='true'] { background: var(--yellow); color: var(--ink); }
.roles button:hover:not([aria-pressed='true']) { background: rgba(255, 255, 255, 0.08); }
.bar-btn { min-height: 32px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 2px; background: transparent; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.bar-btn:hover { background: rgba(255, 255, 255, 0.1); }
.bar-btn.watch { background: var(--red); border-color: var(--red); }
.bar-btn.watch:hover { background: var(--red-600); }
.menu { position: fixed; z-index: 70; min-width: 240px; background: #fff; color: var(--ink); border: 1px solid var(--rope); border-radius: 2px; box-shadow: 0 8px 24px -12px rgba(17, 20, 23, 0.35); padding: 6px 0; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; min-height: 40px; padding: 8px 14px; border: 0; background: none; text-align: left; font-size: 14px; }
.menu button:hover, .menu button:focus-visible { background: var(--sand-100); }
.menu hr { border: 0; border-top: 1px solid var(--sand-200); margin: 6px 0; }
.menu .menu-h { padding: 6px 14px 2px; font-size: 12px; color: var(--meta); }
@media (max-width: 900px) { .demo-bar .label { display: none; } .bar-btn.tour { display: none; } }
@media (max-width: 640px) {
  .demo-bar { gap: 8px; padding: 0 8px; }
  .demo-bar .mark span { display: none; }
  .roles button { padding: 4px 7px; font-size: 12px; }
  .bar-btn.watch .long { display: none; }
}
.fiction { background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; padding: 4px 12px; letter-spacing: 0.02em; }
@media (min-width: 901px) { .fiction { display: none; } }
#app { padding-top: var(--bar); min-height: 100vh; }
#main:focus, main:focus { outline: none; }
@media (max-width: 900px) { .fiction { margin-top: var(--bar); } #app { padding-top: 0; } }

/* ---------- start screen ---------- */
.start { min-height: calc(100vh - var(--bar)); display: grid; grid-template-columns: 1fr; background: var(--paper); }
.start-photo { position: relative; min-height: 34vh; overflow: hidden; background: var(--sand-grey); }
.start-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.start-copy { padding: 32px 20px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.start h1 { font-size: clamp(56px, 9vw, 128px); line-height: 0.84; }
.start .lede { font-size: 19px; line-height: 1.5; max-width: 34em; color: var(--slate); }
.start .lede b { color: var(--ink); font-weight: 600; }
.start .choices { display: flex; flex-wrap: wrap; gap: 12px; }
.start .choices .btn { min-height: 56px; font-size: 17px; padding: 14px 22px; }
.start .choices small { font-weight: 500; opacity: 0.85; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); margin-top: 6px; }
.sides button { text-align: left; border: 0; border-bottom: 1px solid var(--sand-200); background: none; padding: 12px 12px 12px 0; display: grid; gap: 2px; }
.sides button:hover h3 { color: var(--red); }
.sides h3 { font-size: 22px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.sides p { font-size: 13px; line-height: 18px; color: var(--meta); }
@media (min-width: 1024px) {
  .start { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .start-photo { order: 2; min-height: 0; }
  .start-copy { padding: 40px 56px 40px max(32px, calc((100vw - 1240px) / 2 + 32px)); }
  .sides { grid-template-columns: repeat(4, 1fr); }
  .sides button { padding-right: 16px; }
}

/* ---------- guest site ---------- */
.site-head { position: sticky; top: var(--bar); z-index: 30; background: #fff; border-bottom: 1px solid var(--sand-200); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: 0.1em; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.site-nav a[aria-current='page'] { border-bottom-color: var(--red); }
.site-nav a:hover { color: var(--red); }
@media (max-width: 640px) { .wordmark .flagword { display: none; } .site-nav a { padding: 10px 8px; font-size: 14px; } }

.hero { position: relative; isolation: isolate; background: var(--paper); }
.hero-photo { position: relative; height: 40vh; min-height: 260px; max-height: 520px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.hero-copy { padding-top: 28px; padding-bottom: 32px; }
.hero h1 { font-size: clamp(48px, 1rem + 6.4vw, 112px); line-height: 0.86; max-width: 11ch; margin-top: 16px; }
.hero .lede { margin-top: 18px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--slate); }
@media (min-width: 1024px) {
  .hero { min-height: calc(100vh - var(--bar) - 64px - 56px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-photo { position: absolute; inset: 0; height: auto; max-height: none; z-index: -1; }
  .hero-photo img { object-position: 58% 50%; }
  .hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 20%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 66%); }
  .hero-copy { padding-top: 64px; padding-bottom: 40px; }
}
.searchbar { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); background: #fff; max-width: 860px; }
.searchbar label { display: grid; gap: 2px; padding: 8px 12px; border-right: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.searchbar select, .searchbar input { border: 0; padding: 4px 0; min-height: 32px; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; background: transparent; width: 100%; }
.searchbar .btn { grid-column: 1 / -1; border: 0; min-height: 52px; }
@media (min-width: 768px) { .searchbar { grid-template-columns: 1.3fr 1fr 0.8fr auto; } .searchbar label { border-bottom: 0; } .searchbar .btn { grid-column: auto; padding: 0 28px; } }
.next-bar { display: block; background: var(--red); color: #fff; text-decoration: none; }
.next-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.next-bar .t { font: 700 22px/1 var(--display); text-transform: uppercase; }
.next-bar .go { margin-left: auto; font-weight: 600; }
.next-bar:hover .go { text-decoration: underline; }

.band { padding: 56px 0; }
.band.ink { background: var(--ink); color: #fff; }
.band.sea { background: var(--sea-deep); color: #fff; }
.band.glass { background: var(--sea-glass); color: #fff; }
.band.sand { background: var(--sand-grey); }
.band h2 { font-size: clamp(44px, 6vw, 72px); }
.hoist { display: flex; align-items: center; gap: 12px; }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.sec-head h2 { margin-top: 10px; }
.sec-head p { max-width: 26em; }

.board { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--yellow); }
.board li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.board .row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 14px 4px; text-decoration: none; color: #fff; }
.board .row:hover { background: rgba(255, 255, 255, 0.05); }
.board .row:hover .ttl { color: var(--yellow); }
.board .head { display: none; color: var(--mist); }
.board .ttl { grid-column: 1 / -1; font: 700 24px/1.05 var(--display); text-transform: uppercase; }
.board .harb { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.board .left { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.board .left.low { color: var(--yellow); font-weight: 600; }
.board .from { font-size: 14px; }
.board .from b { font-weight: 600; }
.flaps { display: inline-flex; gap: 2px; font: 700 22px/1 var(--display); color: var(--yellow); }
.flaps > span { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 0.92em; height: 1.45em; background: #1d2227; border-radius: 2px; }
.flaps > span::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.7); }
.flaps.flip > span { animation: flap 420ms var(--settle) both; animation-delay: calc(var(--i) * 45ms); transform-origin: 50% 0; }
@keyframes flap { from { transform: perspective(200px) rotateX(-90deg); opacity: 0; } }
@media (min-width: 900px) {
  .board .head, .board .row { grid-template-columns: 8.5rem 1fr 11rem 9rem 9rem; gap: 20px; }
  .board .head { display: grid; padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .board .ttl { grid-column: auto; }
  .board .from { text-align: right; }
}

.harbours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.harbour { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); border: 0; padding: 0; text-align: left; }
.harbour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--settle); }
.harbour:hover img, .harbour:focus-visible img { transform: scale(1.04); }
.harbour::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(17, 20, 23, 0), rgba(17, 20, 23, 0.82)); }
.harbour .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; }
.harbour .flag { width: 28px; height: 28px; position: absolute; top: 12px; left: 12px; z-index: 1; outline-color: rgba(255, 255, 255, 0.5); }
.harbour h3 { font-size: 30px; text-transform: uppercase; }
.harbour p { font-size: 13px; line-height: 18px; opacity: 0.9; margin-top: 4px; }
@media (min-width: 768px) { .harbours { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 767px) { .harbours > :last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
.policies { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.25); margin-top: 28px; }
.policies > div { background: var(--sea-glass); padding: 16px 16px 16px 0; }
.policies h3 { font-size: 24px; text-transform: uppercase; }
.policies p { margin-top: 6px; color: rgba(255, 255, 255, 0.9); font-size: 15px; }
@media (min-width: 768px) { .policies { grid-template-columns: repeat(3, 1fr); } .policies > div { padding: 16px 20px; } }
.hold-big { font: 800 clamp(88px, 14vw, 180px)/0.8 var(--display); color: var(--yellow); letter-spacing: -0.01em; }
.site-foot { background: var(--ink); color: rgba(255, 255, 255, 0.85); padding: 32px 0 120px; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot .harb-flags { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot .harb-flags span { display: inline-flex; gap: 8px; align-items: center; }

/* search */
.search-page { padding-top: 32px; padding-bottom: 120px; }
.search-page h1 { font-size: clamp(44px, 6vw, 72px); }
.filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 8px; padding: 16px; background: var(--sand-100); }
.filters .field { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
@media (min-width: 900px) { .filters { grid-template-columns: 1.2fr 1fr 0.7fr 0.9fr 1.1fr 1fr; align-items: end; } }
.result-line { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 16px 0 20px; }
.cards { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-100); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--settle); }
.card:hover .ph img, .card:focus-visible .ph img { transform: scale(1.04); }
.card .body { border-top: 2px solid var(--ink); margin-top: 12px; padding-top: 10px; display: grid; gap: 6px; }
.card:hover .body { border-top-color: var(--red); }
.card h3 { font-size: 26px; text-transform: uppercase; line-height: 0.98; }
.card:hover h3 { color: var(--red); }
.card .k { display: flex; align-items: center; gap: 8px; }
.card .price { font-size: 15px; }
.card .price b { font-weight: 600; }
.card .avail { font-size: 14px; font-weight: 600; color: var(--sea-glass); }
.card .avail.none { color: var(--rust); }
.empty { padding: 40px 20px; border: 1px dashed var(--sand-400); text-align: center; }
.empty h3 { font-size: 28px; text-transform: uppercase; }
.empty p { margin: 8px auto 16px; max-width: 32em; color: var(--slate); }

/* trip page */
.trip { padding-top: 20px; padding-bottom: 140px; }
.crumbs { font-size: 13px; color: var(--meta); margin-bottom: 14px; }
.crumbs a { color: var(--meta); }
.gallery { display: grid; gap: 6px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(240px, 46vw, 500px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main { grid-row: 1 / 3; overflow: hidden; }
.gallery.g2 > div:nth-child(2) { grid-row: 1 / 3; }
.gallery > div { overflow: hidden; background: var(--sand-100); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 260px; } .gallery > div:not(.main) { display: none; } .gallery .main { grid-row: auto; } }
.trip-grid { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 1024px) { .trip-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; } }
.trip h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 0.88; margin-top: 12px; }
.trip .sub { font-size: 19px; color: var(--slate); margin-top: 12px; }
.trip section { margin-top: 36px; }
.trip section > h2 { font-size: 30px; padding-top: 12px; border-top: 2px solid var(--ink); margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--red); transform: translateY(1px); }
.cols2 { display: grid; gap: 8px 24px; }
@media (min-width: 640px) { .cols2 { grid-template-columns: 1fr 1fr; } }
.plan { list-style: none; padding: 0; margin: 0; }
.plan li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sand-200); }
.plan .tm { font: 700 24px/1 var(--display); }
.plan b { display: block; font-weight: 600; }
.policy-box { display: flex; gap: 16px; padding: 16px; background: var(--sand-100); border-left: 4px solid var(--blue); }
.policy-box b { display: block; }

.book { border: 2px solid var(--ink); background: #fff; }
@media (min-width: 1024px) { .book { position: sticky; top: calc(var(--bar) + 80px); } }
.book-h { padding: 14px 16px; background: var(--ink); color: #fff; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.book-h h2 { font-size: 26px; }
.book-b { padding: 16px; display: grid; gap: 18px; }
.book-b > *, .trip-grid > *, .page2 > *, .grid2 > *, .lab-grid > * { min-width: 0; }
.datestrip { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.datestrip button { scroll-snap-align: start; }
.datestrip button { display: grid; gap: 2px; justify-items: center; padding: 8px 0; border: 1px solid var(--sand-400); background: #fff; border-radius: 4px; font-size: 12px; line-height: 14px; }
.datestrip button b { font: 700 24px/1 var(--display); }
.datestrip button[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.datestrip button[disabled] { color: var(--sand-400); background: var(--sand-100); cursor: not-allowed; }
.datestrip .p { color: var(--meta); font-size: 11px; }
.datestrip button[aria-pressed='true'] .p { color: var(--mist); }
.deps { display: grid; gap: 8px; }
.dep { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--sand-400); background: #fff; text-align: left; border-radius: 2px; }
.dep[aria-pressed='true'] { border: 2px solid var(--red); padding: 9px 11px; background: var(--red-50); }
.dep .tm { font: 700 26px/1 var(--display); }
.dep .meter { grid-column: 2 / 3; }
.dep[disabled] { opacity: 0.6; cursor: not-allowed; }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--rope); width: max-content; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 20px; font-weight: 600; }
.stepper button:hover:not([disabled]) { background: var(--sand-100); }
.stepper button[disabled] { color: var(--sand-400); cursor: not-allowed; }
.stepper output { min-width: 64px; text-align: center; font-weight: 600; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 15px; }
.breakdown td { padding: 6px 0; border-bottom: 1px solid var(--sand-200); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.breakdown tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 17px; padding-top: 10px; }
.breakdown .adj td:first-child { color: var(--red-600); }
.note { font-size: 13px; line-height: 18px; color: var(--meta); }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-top: 2px solid var(--ink); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
body.ap-on .mobile-cta { display: none; }

/* hold, checkout, confirmation */
.hold-band { background: var(--sea-glass); color: #fff; padding: 28px 0; }
.hold-band .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.hold-band .count { font: 800 clamp(72px, 10vw, 128px)/0.82 var(--display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.hold-band.expired { background: var(--ink-3); }
.hold-band p { max-width: 30em; color: rgba(255, 255, 255, 0.92); }
.page2 { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 140px; }
@media (min-width: 1024px) { .page2 { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; } }
.panel { border: 1px solid var(--sand-200); background: #fff; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--sand-200); }
.panel-h h2, .panel-h h3 { font-size: 22px; text-transform: uppercase; }
.panel-b { padding: 16px; }
.summary .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.summary .ph img { width: 100%; height: 100%; object-fit: cover; }
.form { display: grid; gap: 16px; }
@media (min-width: 640px) { .form.two { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.window { border: 2px solid var(--ink); background: var(--sand-100); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--sand-200); font-size: 12px; color: var(--meta); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--sand-400); background: #fff; }
.window-b { padding: 14px; display: grid; gap: 8px; }
.window-b .big { font: 800 44px/0.9 var(--display); }
.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--yellow); } 100% { background: transparent; } }

.checkout { max-width: 560px; margin: 32px auto 140px; padding: 0 20px; }
.checkout .co { border: 1px solid var(--sand-400); background: #fff; }
.co-h { padding: 16px; border-bottom: 1px solid var(--sand-200); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.co-amt { font: 800 48px/1 var(--display); }
.co-b { padding: 16px; display: grid; gap: 14px; }
.cardrow { display: grid; grid-template-columns: 1fr 90px 72px; gap: 8px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.flow li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sand-200); opacity: 0.35; transition: opacity 300ms var(--ease); }
.flow li.done, .flow li.now { opacity: 1; }
.flow .n { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); font-weight: 700; font-size: 13px; }
.flow li.done .n { background: var(--ink); color: #fff; }
.flow li.now .n { border-color: var(--red); color: var(--red); }
.flow code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
.flow .sub { font-size: 13px; color: var(--meta); }
.state-flip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.confirmed { padding-top: 40px; padding-bottom: 140px; }
.confirmed h1 { font-size: clamp(52px, 7vw, 104px); line-height: 0.86; }
.refbig { display: inline-flex; flex-wrap: wrap; gap: 3px; font: 800 clamp(22px, 6.4vw, 34px)/1 var(--display); }
.refbig > span { background: var(--ink); color: var(--yellow); width: 1em; height: 1.4em; display: inline-grid; place-items: center; border-radius: 2px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: #fff; border: 2px solid var(--ink); }
.timeline li:last-child::before { background: var(--red); border-color: var(--red); }
.timeline b { font-weight: 600; }
.timeline .meta { font-size: 13px; }

.trips { padding-top: 32px; padding-bottom: 140px; }
.trips h1 { font-size: clamp(48px, 6vw, 80px); }
.triprow { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sand-200); text-decoration: none; color: inherit; }
.triprow img { width: 96px; height: 96px; object-fit: cover; }
.triprow h3 { font-size: 24px; text-transform: uppercase; }
.triprow:hover h3 { color: var(--red); }
@media (min-width: 768px) { .triprow { grid-template-columns: 120px 1fr auto; align-items: center; } .triprow img { width: 120px; height: 90px; } }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--sand-200); overflow-x: auto; margin: 16px 0; }
.tabs button { padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs button[aria-selected='true'] { border-bottom-color: var(--red); }
.cancel-box { border: 2px solid var(--ink); padding: 16px; display: grid; gap: 12px; }
.refund-big { font: 800 52px/1 var(--display); }

/* ---------- dashboards ---------- */
.dash { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--bar)); background: var(--paper); }
.side { background: var(--ink); color: #fff; display: none; }
.side-in { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); display: flex; flex-direction: column; padding: 20px 0; overflow-y: auto; }
.side .wm { padding: 0 20px; font: 800 22px/1 var(--display); letter-spacing: 0.1em; display: flex; align-items: center; gap: 10px; }
.side .area { padding: 8px 20px 0; font-size: 12px; line-height: 16px; color: var(--mist); }
.side .area b { color: #fff; font-weight: 600; display: block; font-size: 14px; margin-top: 2px; }
.side nav { margin-top: 20px; display: grid; }
.side nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 20px; color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 14px; font-weight: 500; border-left: 3px solid transparent; }
.side nav a:hover { background: var(--ink-2); }
.side nav a[aria-current='page'] { color: #fff; background: var(--ink-2); border-left-color: var(--yellow); }
.side nav a .flag { width: 12px; height: 12px; }
.side .badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 2px; line-height: 18px; }
.side .foot { margin-top: auto; padding: 16px 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); display: grid; gap: 8px; font-size: 12px; color: var(--mist); }
.side .foot select { background: var(--ink-2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); min-height: 40px; padding: 6px 8px; font-size: 13px; width: 100%; }
.side .foot .who { color: #fff; font-size: 14px; font-weight: 600; }
.main { min-width: 0; }
.topbar { position: sticky; top: var(--bar); z-index: 20; background: #fff; border-bottom: 1px solid var(--sand-200); display: flex; align-items: center; gap: 12px 20px; padding: 10px 16px; min-height: 60px; flex-wrap: wrap; }
.topbar h1 { font-size: 30px; }
.topbar .fix { margin-left: auto; }
.menu-btn { min-height: 40px; padding: 4px 12px; border: 1px solid var(--rope); background: #fff; font-weight: 600; font-size: 14px; }
.content { padding: 20px 16px 140px; display: grid; gap: 20px; max-width: 1280px; }
@media (min-width: 1024px) { .dash { grid-template-columns: 232px minmax(0, 1fr); } .side { display: block; } .menu-btn { display: none; } .topbar { padding: 10px 28px; } .content { padding: 24px 28px 140px; } }
.side.open { display: block; position: fixed; inset: var(--bar) auto 0 0; width: 260px; z-index: 55; box-shadow: 0 0 0 100vmax rgba(17, 20, 23, 0.4); }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; background: var(--red-50); border-left: 4px solid var(--red); }
.banner b { font-weight: 600; }
.banner .btn { margin-left: auto; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); background: #fff; border-bottom: 1px solid var(--sand-200); }
.kpi { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--sand-200); display: grid; gap: 4px; align-content: start; }
.kpi:nth-child(odd) { border-right: 1px solid var(--sand-200); }
.kpi:nth-child(even) { padding-left: 16px; }
.kpi .l { font-size: 13px; color: var(--meta); font-weight: 500; }
.kpi { min-width: 0; }
.kpi .v { font-size: clamp(22px, 6vw, 30px); line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi .d { font-size: 12px; color: var(--meta); }
.kpi.changed .v { animation: flash 1.6s var(--ease); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpi { border-bottom: 0; border-right: 1px solid var(--sand-200); padding: 16px 20px; } .kpi:nth-child(even) { padding-left: 20px; } .kpi:first-child { padding-left: 0; } .kpi:last-child { border-right: 0; } }
.grid2 { display: grid; gap: 20px; }
@media (min-width: 1100px) { .grid2 { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); } .grid2.even { grid-template-columns: 1fr 1fr; } }
.hc { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: 200px auto; gap: 6px 8px; }
.hc-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--meta); text-align: right; transform: translateY(-6px); height: calc(100% + 12px); font-variant-numeric: tabular-nums; }
.hc-plot { position: relative; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--ink); }
.hc-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--sand-200); }
.hc-bar { position: relative; flex: 1; min-height: 1px; background: var(--ink); }
.hc-bar.hi { background: var(--red); }
.hc-bar:hover { background: var(--ink-3); }
.hc-x { display: flex; gap: 3px; font-size: 11px; color: var(--meta); }
.hc-x span { flex: 1; white-space: nowrap; overflow: visible; }
@media (max-width: 640px) { .hc { grid-template-rows: 160px auto; } .hc-plot, .hc-x { gap: 1px; } }
.today { list-style: none; padding: 0; margin: 0; }
.today li { display: grid; grid-template-columns: 70px 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sand-200); }
.today .tm { font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.today .t { font-size: 14px; font-weight: 600; line-height: 18px; }
.today .meter { grid-column: 2 / 3; }
.today .g { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--meta); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input { max-width: 340px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--sand-200); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; background: var(--sand-100); text-align: left; font-size: 12px; font-weight: 600; color: var(--meta); padding: 9px 12px; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--sand-200); vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: #f7f8f8; }
.tbl tr.sel { background: var(--red-50); box-shadow: inset 3px 0 0 var(--red); }
.tbl tr.new td { animation: flash 2s var(--ease); }
.tbl .rowlink { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.tbl .exp { max-width: 240px; }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 10px 0; font-size: 13px; color: var(--meta); }
@media (max-width: 700px) {
  table.tbl.stack thead { display: none; }
  table.tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; }
  .tbl.stack tr { padding: 10px 12px; border-top: 1px solid var(--sand-200); }
  .tbl.stack td { border: 0; padding: 2px 0; }
  .tbl.stack td.num { text-align: left; }
  .tbl.stack td[data-l]::before { content: attr(data-l) ': '; color: var(--meta); font-size: 12px; }
}
.cal { overflow-x: auto; border: 1px solid var(--sand-200); }
.cal table { border-collapse: collapse; min-width: 860px; width: 100%; font-size: 13px; }
.cal th { background: var(--sand-100); padding: 8px; text-align: left; font-weight: 600; font-size: 12px; color: var(--meta); }
.cal th.today { color: var(--red-600); }
.cal td { border-top: 1px solid var(--sand-200); border-left: 1px solid var(--sand-200); padding: 6px; vertical-align: top; }
.cal td.lst { min-width: 190px; border-left: 0; }
.cal td.lst b { display: block; font-size: 14px; }
.chip { display: grid; gap: 4px; width: 100%; padding: 6px 8px; margin-bottom: 4px; border: 1px solid var(--rope); background: #fff; text-align: left; border-radius: 2px; font-size: 12px; line-height: 14px; }
.chip .tm { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.chip.blocked { background: repeating-linear-gradient(135deg, var(--sand-400) 0 1px, var(--sand-100) 1px 6px); border-color: var(--sand-400); }
.chip.blocked b { color: var(--rust); }
.chip.full { background: var(--red-50); }
.chip.past { opacity: 0.55; }
.chip:hover { border-color: var(--ink); }
.week-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.week-nav h2 { font-size: 24px; margin: 0 8px; }
.rules td .toggle { margin: 0; }
.toggle { position: relative; width: 44px; height: 24px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; padding: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform 150ms var(--ease); }
.toggle[aria-checked='true'] { background: var(--sea-glass); border-color: var(--sea-glass); }
.toggle[aria-checked='true']::after { transform: translateX(20px); background: #fff; }
.toggle[disabled] { opacity: 0.5; cursor: not-allowed; }
.preview { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.preview > div { min-width: 0; overflow: hidden; border: 1px solid var(--sand-200); padding: 6px; font-size: 12px; line-height: 15px; display: grid; gap: 2px; background: #fff; }
.preview .pd { font-weight: 600; }
.preview .pp { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.preview .pr { color: var(--meta); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .ch { background: var(--red-50); border-color: var(--red); }
.preview .ch .pr { color: var(--red-600); }
@media (max-width: 640px) { .preview .pp { font-size: 13px; } .preview > div { padding: 4px; } }
.denied { padding: 28px; border: 2px solid var(--ink); display: grid; gap: 12px; max-width: 620px; }
.denied h2 { font-size: 32px; }
.reason { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; background: var(--sand-100); border-left: 4px solid var(--rope); font-size: 14px; }
.attention { list-style: none; padding: 0; margin: 0; }
.attention li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sand-200); font-size: 14px; }
.attention li::before { content: ''; width: 10px; height: 10px; background: var(--good); flex: none; }
.attention li.bad::before { background: var(--rust); }
.attention .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.diff { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.diff del { background: var(--rust-50); text-decoration: none; padding: 0 4px; }
.diff ins { background: var(--good-50); text-decoration: none; padding: 0 4px; }

/* lab */
.lab-grid { display: grid; gap: 24px; }
@media (min-width: 1100px) { .lab-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.lab-meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.lab-meter i { height: 36px; border: 2px solid var(--ink); background: #fff; display: grid; place-items: end center; font-style: normal; font-size: 10px; color: var(--meta); }
.lab-meter i.won { background: var(--red); border-color: var(--red); color: #fff; }
.lab-meter i.pop { animation: pop 300ms var(--settle) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes pop { from { transform: scaleY(0.2); opacity: 0; } }
.verdict { font: 800 clamp(30px, 3.4vw, 44px)/0.95 var(--display); text-transform: uppercase; }
.log { max-height: 320px; overflow-y: auto; }

/* ---------- drawer, toast, overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 64; background: rgba(17, 20, 23, 0.42); }
.drawer { position: fixed; z-index: 65; top: var(--bar); right: 0; bottom: 0; width: min(540px, 100vw); background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 32px -16px rgba(17, 20, 23, 0.4); animation: sheet 240ms var(--ease); }
@keyframes sheet { from { transform: translateX(100%); } }
.drawer-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--sand-200); }
.drawer-h { flex-wrap: wrap; }
.drawer-h h2 { font-size: 26px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drawer-h .x { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--sand-400); background: #fff; font-size: 22px; line-height: 1; }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 22px; align-content: start; }
.drawer-b h3 { font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); margin-bottom: 8px; }
.drawer-f { padding: 12px 16px; border-top: 1px solid var(--sand-200); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--meta); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; font-size: 14px; border-left: 4px solid var(--yellow); animation: fade 200ms var(--ease); }
.toast.bad { border-left-color: var(--red); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
body.ap-on .toasts { bottom: auto; top: calc(var(--bar) + 12px); }

/* closing card */
.closing { position: fixed; inset: var(--bar) 0 0; z-index: 66; background: var(--ink); color: #fff; overflow-y: auto; }
.closing .wrap { padding-top: 40px; padding-bottom: 120px; }
.closing h2 { font-size: clamp(48px, 7vw, 100px); line-height: 0.86; max-width: 12ch; margin-top: 14px; }
.closing .four { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.2); margin: 32px 0; }
.closing .four > div { background: var(--ink); padding: 18px 18px 18px 0; display: grid; gap: 8px; align-content: start; }
.closing .four h3 { font-size: 28px; text-transform: uppercase; color: var(--yellow); display: flex; gap: 10px; align-items: center; }
.closing .four p { color: rgba(255, 255, 255, 0.85); font-size: 15px; }
@media (min-width: 900px) { .closing .four { grid-template-columns: repeat(4, 1fr); } .closing .four > div { padding: 20px; } }
.closing .acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- walkthrough player, tour ---------- */
.ap-layer { pointer-events: none; }
.ap-block { position: fixed; inset: 0; z-index: 75; pointer-events: auto; cursor: pointer; background: transparent; }
.ap-cursor { position: fixed; left: 0; top: 0; z-index: 79; width: 22px; height: 26px; margin: -2px 0 0 -2px; transition: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.ap-cursor path { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.ap-cursor.down { transform-origin: 2px 2px; }
.ap-ripple { position: fixed; z-index: 78; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid var(--red); border-radius: 50%; animation: ripple 600ms var(--ease) forwards; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ap-ring { position: fixed; z-index: 77; border: 3px solid var(--red); box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.55); border-radius: 2px; }
.ap-cap { position: fixed; z-index: 81; width: min(560px, calc(100vw - 32px)); background: #fff; border: 2px solid var(--ink); border-top: 6px solid var(--red); padding: 14px 18px 16px; box-shadow: 0 16px 40px -20px rgba(17, 20, 23, 0.55); pointer-events: none; }
.ap-cap .k { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); display: flex; gap: 10px; align-items: center; }
.ap-cap .k .sys { background: var(--blue); color: #fff; padding: 1px 6px; letter-spacing: 0.06em; }
.ap-cap p { margin-top: 6px; font-size: 18px; line-height: 1.45; }
.ap-player { position: fixed; z-index: 82; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(820px, calc(100vw - 24px)); background: var(--ink); color: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 2px; border-top: 3px solid var(--yellow); pointer-events: auto; --focus: var(--yellow); }
.ap-player button { min-height: 36px; min-width: 36px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; font-size: 13px; font-weight: 600; border-radius: 2px; }
.ap-player button:hover { background: rgba(255, 255, 255, 0.1); }
.ap-player .play { background: var(--red); border-color: var(--red); min-width: 76px; }
.ap-mid { min-width: 0; display: grid; gap: 6px; }
.ap-meta { display: flex; gap: 12px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.ap-meta b { color: var(--yellow); font-weight: 600; }
.ap-meta span { overflow: hidden; text-overflow: ellipsis; }
.ap-bar { display: flex; gap: 2px; }
.ap-bar button { flex: 1; min-height: 10px; min-width: 0; height: 10px; padding: 0; border: 0; background: rgba(255, 255, 255, 0.22); position: relative; overflow: hidden; }
.ap-bar button i { position: absolute; inset: 0 auto 0 0; background: var(--yellow); }
.ap-bar button[aria-current='step'] { background: rgba(255, 255, 255, 0.4); }
.ap-acts { display: flex; gap: 6px; }
@media (max-width: 700px) {
  .ap-player { grid-template-columns: auto 1fr; bottom: 0; width: 100vw; border-radius: 0; }
  .ap-acts { grid-column: 1 / -1; justify-content: space-between; }
  .ap-cap p { font-size: 16px; }
}
.tour-spot { position: fixed; z-index: 83; border: 3px solid var(--red); box-shadow: 0 0 0 100vmax rgba(17, 20, 23, 0.5); border-radius: 2px; pointer-events: none; transition: all 200ms var(--ease); }
.tour-cap { position: fixed; z-index: 84; width: min(400px, calc(100vw - 24px)); background: #fff; border: 2px solid var(--ink); border-top: 6px solid var(--yellow); padding: 16px; display: grid; gap: 10px; }
.tour-cap h3 { font-size: 26px; text-transform: uppercase; }
.tour-cap p { font-size: 15px; line-height: 1.5; color: var(--slate); }
.tour-cap .row { display: flex; gap: 8px; align-items: center; }
.tour-cap .row .n { margin-right: auto; font-size: 13px; color: var(--meta); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .tour-cap { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; } }
.diag-list { list-style: none; padding: 0; margin: 0; }
.diag-list li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sand-200); font-size: 14px; }
.diag-list .ok { color: var(--good); font-weight: 700; }
.diag-list .bad { color: var(--rust); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
