:root {
  --night: #061a1f; --night-2: #0b2a30; --night-3: #12383f;
  --lime: #9fd76e; --lime-deep: #5d9e2f; --teal: #037c9d; --teal-bright: #26b3d4; --amber: #f2b766; --roof: #8c2f2a;
  --bg: #f4f3ee; --card: #fff; --ink: #12211e; --ink-2: #45544f; --ink-3: #75817d; --line: #e2dfd5; --line-2: #eeece5;
  --danger: #b3261e; --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'Figtree', system-ui, sans-serif;
  --st-pending: #e6a23c; --st-confirmed: #3f9b4f; --st-checked_in: #037c9d; --st-checked_out: #8a9490; --st-cancelled: #c0463e; --st-no_show: #c0463e;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 15px/1.5 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

/* shell */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--night); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; text-decoration: none; color: #fff; }
.side .brand img { width: 34px; height: 34px; }
.side .brand b { font: 800 1.25rem var(--display); }
.side .brand b .n { color: var(--lime); } .side .brand b .c { color: var(--teal-bright); }
.side .brand small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.75); text-decoration: none; font-weight: 550; }
.side a.nav svg { width: 19px; height: 19px; flex: none; }
.side a.nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.nav.active { background: var(--night-3); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
.side a.nav .count { margin-left: auto; background: var(--amber); color: var(--night); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side .sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 4px; }
.side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.side .me strong { display: block; }
.side .me span { color: rgba(255,255,255,.55); }
.side .me button { background: none; border: 0; color: var(--lime); padding: 0; margin-right: 14px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.main { padding: 28px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.topbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 80; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--night); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 70; }
  .topbar button { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; }
  .topbar b { font: 800 1.1rem var(--display); } .topbar b .n { color: var(--lime); } .topbar b .c { color: var(--teal-bright); }
  .main { padding-top: 18px; }
}

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: #c9c5b8; background: #fbfaf7; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--night); border-color: var(--night); color: #fff; }
.btn-primary:hover { background: var(--night-3); border-color: var(--night-3); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--night); }
.btn-lime:hover { background: #b2e388; border-color: #b2e388; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: #046a86; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fdecea; border-color: #f2c4c0; }
.btn-wa { background: #25d366; border-color: #25d366; color: #062b16; }
.btn-sm { height: 32px; padding: 0 11px; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.input, .fld input, .fld select, .fld textarea { width: 100%; height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.fld textarea { height: auto; min-height: 84px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(3,124,157,.15); }
.fld { display: grid; gap: 5px; }
.fld > span { font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.fld small { color: var(--ink-3); font-size: .78rem; }
.fld input[type=checkbox] { width: auto; height: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.span2 { grid-column: span 2; } .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.chk input { width: 17px; height: 17px; accent-color: var(--teal); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 0 14px; height: 36px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed=true] { background: var(--night); color: #fff; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgba(6,26,31,.04); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; }
.stat small { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.stat b { display: block; font: 700 1.7rem/1.2 var(--display); margin-top: 4px; }
.stat.hl { background: var(--night); color: #fff; border-color: var(--night); }
.stat.hl small { color: rgba(255,255,255,.6); }
.stat.hl b { color: var(--lime); }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } }
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }

.occ { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 6px; }
.occ div { flex: 1; background: var(--line-2); border-radius: 4px 4px 0 0; position: relative; min-height: 3px; }
.occ div i { position: absolute; inset: auto 0 0 0; background: var(--teal); border-radius: 4px 4px 0 0; }
.occ div.wknd i { background: var(--lime-deep); }
.occ-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-top: 6px; }

.list { display: grid; }
.row-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.row-item:first-child { border-top: 0; }
.row-item:hover { background: #faf9f5; }
.row-item strong { font-weight: 650; }
.row-item .meta { color: var(--ink-3); font-size: .85rem; }
.empty { color: var(--ink-3); padding: 14px 0; font-size: .92rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending { background: #fff4e3; color: #8a5300; }
.pill.confirmed { background: #e6f4ea; color: #1e6b30; }
.pill.checked_in { background: #e3f2f7; color: #035f78; }
.pill.checked_out { background: #eceeed; color: #4d5754; }
.pill.cancelled, .pill.no_show { background: #fdecea; color: #a1231b; }
.kind-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* table */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfaf6; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #faf9f4; }
td.num, th.num { text-align: right; white-space: nowrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters .input { width: auto; min-width: 140px; }
.filters .grow { flex: 1; min-width: 200px; }

/* calendar (tape chart) */
.tape-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); }
.tape { --cols: 14; --lbl: 170px; min-width: calc(var(--lbl) + var(--cols) * 46px); }
.tape-row { display: grid; grid-template-columns: var(--lbl) repeat(var(--cols), minmax(46px, 1fr)); position: relative; border-bottom: 1px solid var(--line-2); min-height: 48px; }
.tape-row:last-child { border-bottom: 0; }
.tape-row > .lbl { grid-column: 1; grid-row: 1; padding: 10px 12px; font-weight: 650; font-size: .88rem; position: sticky; left: 0; background: #fff; z-index: 3; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.tape-row > .lbl small { font-weight: 500; color: var(--ink-3); font-size: .75rem; }
.tape-head { position: sticky; top: 0; z-index: 4; background: #fbfaf6; }
.tape-head .d { grid-row: 1; text-align: center; padding: 8px 0; font-size: .75rem; color: var(--ink-3); border-left: 1px solid var(--line-2); line-height: 1.2; }
.tape-head .d b { display: block; font-size: .95rem; color: var(--ink); font-family: var(--display); }
.tape-head .d.today { background: var(--night); color: rgba(255,255,255,.7); }
.tape-head .d.today b { color: var(--lime); }
.tape-head .d.wknd { background: #f3f1e9; }
.tape .cell { grid-row: 1; border: 0; border-left: 1px solid var(--line-2); background: none; cursor: pointer; min-height: 48px; }
.tape .cell:hover { background: #eef7fa; }
.tape .cell.wknd { background: #faf9f4; }
.tape .cell.today { background: #f2f9ec; }
.bar { grid-row: 1; z-index: 2; margin: 7px 3px; border-radius: 8px; padding: 4px 9px; font-size: .8rem; font-weight: 650; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; border: 0; text-align: left; display: flex; align-items: center; gap: 6px; line-height: 1.2; }
.bar small { font-weight: 500; opacity: .85; }
.bar.pending { background: var(--st-pending); color: #3b2500; }
.bar.confirmed { background: var(--st-confirmed); }
.bar.checked_in { background: var(--st-checked_in); }
.bar.checked_out { background: var(--st-checked_out); }
.bar.exclusive { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 8px, transparent 8px 16px); }
.bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.block { grid-row: 1; z-index: 1; margin: 7px 3px; border-radius: 8px; background: repeating-linear-gradient(45deg, #e9e5da 0 6px, #f6f4ee 6px 12px); border: 1px dashed #c6c0b0; color: var(--ink-2); font-size: .76rem; font-weight: 600; padding: 4px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; text-align: left; }
.dp-cell { grid-row: 1; text-align: center; font-size: .78rem; padding: 14px 0; border-left: 1px solid var(--line-2); color: var(--ink-2); }
.dp-cell b { color: var(--ink); }
.dp-cell.closed { color: var(--danger); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* drawer & modal */
.drawer-bg { position: fixed; inset: 0; background: rgba(6,26,31,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg); z-index: 91; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.2); }
.drawer.open { transform: none; }
.drawer-head { position: sticky; top: 0; z-index: 2; background: var(--night); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.drawer-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: .03em; }
.drawer-head .icon-btn { margin-left: auto; background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.drawer-body { padding: 18px 20px 40px; display: grid; gap: 14px; }
.drawer-body .card + .card { margin-top: 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: .92rem; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; }
.lines { display: grid; gap: 6px; font-size: .9rem; }
.lines div { display: flex; justify-content: space-between; gap: 10px; }
.lines small { color: var(--ink-3); display: block; font-size: .78rem; }
.lines .tot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-weight: 700; font-size: 1rem; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.log { display: grid; gap: 10px; font-size: .86rem; }
.log div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.log time { color: var(--ink-3); font-size: .78rem; }
.callout { border-radius: 10px; padding: 11px 14px; font-size: .9rem; background: #eef7fa; color: #064d61; }
.callout.warn { background: #fff4e3; color: #7a4a06; }
.callout.err { background: #fdecea; color: #8c1d16; }
.callout.ok { background: #edf7e6; color: #24521c; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100% - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(6,26,31,.5); }
.dlg { padding: 22px; display: grid; gap: 14px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.cabin-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.cabin-pick label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: #fff; font-size: .9rem; }
.cabin-pick label:has(input:checked) { border-color: var(--teal); background: #eef7fa; }
.cabin-pick label.busy { border-style: dashed; color: var(--ink-3); }
.cabin-pick label.busy small { color: var(--danger); }
.cabin-pick small { display: block; color: var(--ink-3); font-size: .76rem; }

.cabin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cabin-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.cabin-card .ph { aspect-ratio: 16/9; background: var(--night-2); }
.cabin-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.cabin-card .bd { padding: 14px 16px; display: grid; gap: 4px; }
.cabin-card .bd .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos figure { margin: 0; position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #eee; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos button { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 6px; font-size: .75rem; padding: 3px 7px; cursor: pointer; }
.photos .first { position: absolute; left: 5px; bottom: 5px; background: var(--lime); color: var(--night); font-size: .7rem; font-weight: 700; border-radius: 5px; padding: 1px 6px; }

.settings-sec { display: grid; gap: 14px; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 4px; display: flex; justify-content: flex-end; gap: 8px; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--night) url('/img/hero-night.svg') center / cover; }
.auth form { width: min(400px, 100%); background: #fff; border-radius: 18px; padding: 30px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.auth .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.auth .logo img { width: 40px; height: 40px; }
.auth .logo b { font: 800 1.35rem var(--display); } .auth .logo b .n { color: var(--lime-deep); } .auth .logo b .c { color: var(--teal); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 160%); background: var(--night); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; z-index: 200; transition: transform .25s; max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.spinner { padding: 40px; text-align: center; color: var(--ink-3); }

/* ---------- phones & tablets ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label { touch-action: manipulation; }
@media (max-width: 900px) {
  /* 16px stops iOS from zooming the page when a field is tapped */
  .input, .fld input, .fld select, .fld textarea { font-size: 16px; height: 44px; }
  .fld textarea { height: auto; }
  .btn { height: 44px; padding: 0 16px; }
  .btn-sm { height: 40px; padding: 0 13px; }
  .icon-btn { width: 44px; height: 44px; }
  .seg button { height: 42px; padding: 0 12px; }
  .chk input { width: 20px; height: 20px; }
  .side .me button { padding: 10px 0; font-size: .9rem; }
  .side a.nav { padding: 12px; }
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar button { width: 44px; height: 44px; }
  .main { padding: 16px 14px 90px; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 1.45rem; }
  .page-head .tools { width: 100%; }
  .page-head .tools .btn-lime, .page-head .tools .btn-primary { margin-left: auto; }
  .filters .input { flex: 1 1 140px; min-width: 0; }
  .filters .grow { flex-basis: 100%; }
  .card { padding: 16px; }
  .stat { padding: 14px; }
  .stat b { font-size: 1.35rem; }
  .row-item { padding: 12px 0; }
  .row-item > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .cabin-pick { grid-template-columns: 1fr 1fr; }
  .cabin-pick label { padding: 11px; }
  .drawer-head { padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
  .drawer-body { padding: 14px 14px 60px; }
  .kv { grid-template-columns: 105px 1fr; }
  .log div { grid-template-columns: 1fr; gap: 0; }
  .status-actions .btn { flex: 1 1 auto; }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .dlg { padding: 18px; }
  .dlg-actions .btn { flex: 1 1 auto; }
  .tape { --lbl: 112px; min-width: calc(var(--lbl) + var(--cols) * 44px); }
  .tape-row > .lbl { padding: 8px; font-size: .8rem; }
  .sticky-save .btn { width: 100%; }

  /* tables become stacked cards */
  .table-wrap:has(table.stack-sm) { overflow: visible; background: transparent; border: 0; }
  table.stack-sm thead { display: none; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
  table.stack-sm td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; }
  table.stack-sm td::before { content: attr(data-label); color: var(--ink-3); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; text-align: left; flex: none; }
  table.stack-sm td:empty, table.stack-sm td[data-label='']::before { display: none; }
  table.stack-sm td.actions { justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
  table.stack-sm td.actions::before { display: none; }
}
@media (max-width: 420px) {
  .cabin-pick { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* back to top */
.to-top { position: fixed; z-index: 60; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--night); color: var(--lime); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--night-3); }
@media (max-width: 900px) { .card-head a.small { padding: 12px 0 12px 12px; } }
