:root {
  --bg: #0f1f1a;
  --bg2: #163028;
  --panel: #1c3a30;
  --line: #2f5648;
  --text: #e8f2ec;
  --muted: #9bb5a8;
  --accent: #d4a54a;
  --accent2: #3d9b74;
  --danger: #e07a6a;
  --radius: 10px;
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, #214639 0%, transparent 55%),
    linear-gradient(160deg, var(--bg), #0b1612 70%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; }
.topbar {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: .85rem 1.25rem;
  background: rgba(10, 22, 18, .88);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.brand { display: flex; gap: .75rem; align-items: center; min-width: 180px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #b8862f);
  color: #1a1205; font-weight: 800;
}
.brand-mark.lg { width: 56px; height: 56px; font-size: 1.2rem; margin: 0 auto 1rem; }
/* Tall Pines logo (vertical mark on black) ? height-capped so headers stay compact */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
  background: #000;
  border-radius: 8px;
}
.brand-logo--sidebar {
  max-height: 48px;
  max-width: 44px;
}
.brand-logo--mobile {
  max-height: 40px;
  max-width: 36px;
}
.brand-logo--login {
  max-height: 120px;
  max-width: 140px;
  margin: 0 auto 1rem;
}
.brand-logo--hero {
  max-height: 110px;
  max-width: 120px;
  margin: 0 0 .85rem;
}
.brand-logo-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}
.brand-logo-link:hover,
.brand-logo-link:focus-visible {
  opacity: .92;
}
.ops-nav { display: flex; gap: .35rem; flex: 1; flex-wrap: wrap; }
.ops-nav a, .nav-stub {
  padding: .45rem .75rem; border-radius: 999px; color: var(--text);
  border: 1px solid transparent;
}
.ops-nav a:hover { background: var(--panel); text-decoration: none; }
.ops-nav a.is-active { background: var(--panel); border-color: var(--line); color: var(--accent); }
.nav-stub { color: var(--muted); opacity: .55; cursor: default; }
.logout button {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: .4rem .7rem; cursor: pointer;
}
.shell { padding: 1.25rem; max-width: 1400px; margin: 0 auto; }
.page-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.page-head h1 { margin: 0 0 .25rem; font-size: 1.75rem; letter-spacing: -.02em; }
.actions, .page-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Guest ID photo — staff face-match on detail screens */
.guest-id-head { align-items: flex-start; }
.guest-id-head-main { flex: 1 1 14rem; min-width: 0; }
.guest-id-head .actions { flex: 0 1 auto; }
.guest-id-photo { min-width: 0; }
.guest-id-photo--hero { flex: 0 0 auto; width: min(100%, 12.5rem); }
.guest-id-photo--panel { width: 100%; max-width: 16rem; }
.guest-id-photo--desk { width: 100%; max-width: 11.5rem; }
.guest-id-photo-frame {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  overflow: hidden;
}
.guest-id-photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: contain;
  background: rgba(0,0,0,.15);
}
.guest-id-photo--hero .guest-id-photo-img { max-height: 14rem; }
.guest-id-photo--desk .guest-id-photo-img { max-height: 12rem; }
.guest-id-photo-badge {
  position: absolute;
  left: .4rem;
  bottom: .4rem;
  padding: .15rem .45rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  background: rgba(20,40,32,.88);
  color: #dff5ea;
}
.guest-id-photo-badge--pending { background: rgba(120,80,20,.92); color: #ffe9b8; }
.guest-id-photo-badge--ok { background: rgba(20,70,50,.9); color: #c8f0dc; }
.guest-id-photo-meta { margin: .4rem 0 0; }
.guest-id-photo-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  min-height: 8.5rem;
  padding: .85rem;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgba(0,0,0,.12);
}
.guest-id-photo--hero .guest-id-photo-empty { min-height: 10rem; }
.guest-id-photo-request { margin-top: .35rem; }
.wc-d-identity {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: .35rem;
}
.wc-d-identity-text { flex: 1 1 auto; min-width: 0; }
.wc-d-identity .guest-id-photo--desk { flex: 0 0 9.5rem; }
@media (max-width: 720px) {
  .guest-id-head .guest-id-photo--hero { width: min(100%, 11rem); }
  .wc-d-identity { flex-direction: column-reverse; }
  .wc-d-identity .guest-id-photo--desk { max-width: 100%; flex-basis: auto; }
}
.reports-hub-note { max-width: 52rem; margin: 0 0 1rem; }
.reports-cat h2 { margin: 0 0 .35rem; }
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
  margin-top: .85rem;
}
.report-card {
  display: block;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 28, 22, .55);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
a.report-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.report-card.is-soon { opacity: .72; cursor: default; }
.report-card-top {
  display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start;
  margin-bottom: .35rem;
}
.report-card p { margin: 0; font-size: .9rem; }
.report-badge {
  flex-shrink: 0;
  font-size: .72rem;
  letter-spacing: .02em;
  padding: .15rem .45rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.report-badge.ready, .report-badge.status-available { color: #b8e0cc; border-color: #2f7d5c; }
.report-badge.added, .report-badge.status-added { color: #f0d59a; border-color: var(--accent); }
.report-badge.soon, .report-badge.status-coming_soon { color: var(--muted); }
.report-badge.status-needs_gl { color: #e0b0a8; border-color: rgba(224,122,106,.45); }
.report-badge.status-not_applicable { opacity: .8; }
.reports-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .85rem;
}
.reports-kpi > div { display: grid; gap: .2rem; }
.reports-kpi strong { font-size: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 8px; padding: .55rem .9rem; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.primary { background: var(--accent2); border-color: #2f7d5c; color: #f4fff9; font-weight: 600; }
.btn.danger {
  border-color: rgba(224, 122, 106, .65);
  color: #ffd0c8;
  background: rgba(224, 122, 106, .12);
}
.btn.danger:hover:not(:disabled) { filter: brightness(1.1); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.flash { background: #214c38; border: 1px solid #2f7d5c; padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.error { color: var(--danger); }
.grid-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22,48,40,.7); }
.stay-grid { width: 100%; border-collapse: collapse; min-width: 960px; }
.stay-grid th, .stay-grid td { border: 1px solid var(--line); padding: .45rem; vertical-align: top; }
.stay-grid th { background: #13261f; font-weight: 600; font-size: .85rem; }
.stay-grid .item-col { min-width: 160px; position: sticky; left: 0; background: #152b23; z-index: 1; }
.stay-grid .is-today { background: rgba(212,165,74,.08); }
.stay-grid .has-booking { background: rgba(61,155,116,.18); }
.stay-grid .drop-cell {
  position: relative;
  min-height: 52px;
  --split-top: transparent;
  --split-bot: transparent;
}
.stay-grid .drop-cell.split-day::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--split-top) 0%,
    var(--split-top) 48%,
    transparent 48%,
    transparent 52%,
    var(--split-bot) 52%,
    var(--split-bot) 100%
  );
}
.stay-grid .drop-cell.has-arrival { --split-top: rgba(61, 155, 116, .42); }
.stay-grid .drop-cell.has-departure { --split-bot: rgba(212, 165, 74, .42); }
.stay-grid .drop-cell.has-arrival.has-departure {
  background: transparent;
}
.stay-grid .drop-cell > * { position: relative; z-index: 1; }
.stay-grid-legend .park-swatch {
  display: inline-block;
  width: 1.1rem;
  height: .7rem;
  border-radius: 3px;
  vertical-align: middle;
  border: 1px solid var(--line);
}
.stay-grid-legend .park-swatch.has-arrival {
  background: linear-gradient(to bottom, rgba(61,155,116,.55) 50%, transparent 50%);
}
.stay-grid-legend .park-swatch.has-departure {
  background: linear-gradient(to bottom, transparent 50%, rgba(212,165,74,.55) 50%);
}
.booking-chip {
  display: block; background: #2a6b52; color: #f3fff9; border-radius: 6px;
  padding: .35rem .4rem; font-size: .78rem; font-weight: 600;
  cursor: grab; user-select: none;
}
.booking-chip:hover { text-decoration: none; filter: brightness(1.1); }
.booking-chip:active { cursor: grabbing; }
.booking-chip.is-dragging { opacity: .45; }
.booking-depart {
  display: block;
  background: rgba(212, 165, 74, .28);
  color: #f7e7c4;
  border: 1px solid rgba(212, 165, 74, .45);
  border-radius: 6px;
  padding: .2rem .35rem;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: .25rem;
}
.booking-depart:hover { text-decoration: none; filter: brightness(1.08); }
.stay-depart-stack { margin-bottom: .15rem; }
.stay-turn-label {
  margin-top: .2rem;
  text-align: center;
  opacity: .85;
  font-weight: 600;
  letter-spacing: .02em;
}
.booking-span {
  display: block; height: 8px; margin: .35rem 0; border-radius: 4px;
  background: rgba(61,155,116,.45);
}
/* Discounted or staff-modified booking — amber/gold rim (Carbon Bay accent) */
.booking-special {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}
.booking-chip.booking-special {
  border: 2px solid var(--accent);
  background: #2f7358;
}
.booking-depart.booking-special {
  border-width: 2px;
  border-color: var(--accent);
}
.booking-span.booking-special {
  background: rgba(212, 165, 74, .5);
  box-shadow: 0 0 0 2px var(--accent);
}
tr.booking-special > td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}
li.booking-special {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: .55rem;
}
.stay-grid-legend .park-swatch.booking-special {
  background: #2a6b52;
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}
/* Priority guest (Donny Willis et al.) — rose rim + wash; wins over gold when both apply */
.booking-priority-guest {
  --priority-guest: #f071a0;
  box-shadow: 0 0 0 3px var(--priority-guest);
  border-color: var(--priority-guest);
  background: rgba(240, 113, 160, .16);
}
.booking-chip.booking-priority-guest {
  border: 3px solid var(--priority-guest, #f071a0);
  background: linear-gradient(160deg, #5a2a3d 0%, #2f7358 70%);
  box-shadow: 0 0 0 1px rgba(240, 113, 160, .45);
}
.booking-depart.booking-priority-guest {
  border-width: 3px;
  border-color: var(--priority-guest, #f071a0);
  background: rgba(240, 113, 160, .18);
  color: #ffe6f0;
}
.booking-span.booking-priority-guest {
  background: rgba(240, 113, 160, .55);
  box-shadow: 0 0 0 3px var(--priority-guest, #f071a0);
}
tr.booking-priority-guest > td:first-child {
  box-shadow: inset 5px 0 0 var(--priority-guest, #f071a0);
  background: rgba(240, 113, 160, .08);
}
tr.booking-priority-guest > td {
  background: rgba(240, 113, 160, .06);
}
li.booking-priority-guest {
  box-shadow: inset 5px 0 0 var(--priority-guest, #f071a0);
  padding-left: .55rem;
  background: rgba(240, 113, 160, .1);
  border-radius: 4px;
}
.stay-grid-legend .park-swatch.booking-priority-guest {
  background: #5a2a3d;
  box-shadow: 0 0 0 3px #f071a0;
  border-color: #f071a0;
}
.form-card.booking-priority-guest {
  border: 2px solid #f071a0;
  box-shadow: 0 0 0 3px rgba(240, 113, 160, .35);
  background: rgba(240, 113, 160, .08);
}
.drop-cell.drop-hover {
  outline: 2px dashed var(--accent);
  background: rgba(212,165,74,.12);
}

/* Bookings grid — company-location daily weather under day/date headers */
.stay-grid th .day-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .12rem;
  margin-top: .28rem;
  width: 100%;
  padding: .2rem .15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  line-height: 1.15;
}
.stay-grid th .day-weather:hover,
.stay-grid th .day-weather:focus-visible {
  border-color: rgba(212, 165, 74, .45);
  background: rgba(212, 165, 74, .1);
  color: var(--text);
  outline: none;
}
.day-weather-temps { color: inherit; white-space: nowrap; }
.day-weather-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  background: currentColor;
  opacity: .92;
  /* sun (clear) default */
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3Cg stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v2.2M12 19.8V22M2 12h2.2M19.8 12H22M4.9 4.9l1.6 1.6M17.5 17.5l1.6 1.6M4.9 19.1l1.6-1.6M17.5 6.5l1.6-1.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3Cg stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v2.2M12 19.8V22M2 12h2.2M19.8 12H22M4.9 4.9l1.6 1.6M17.5 17.5l1.6 1.6M4.9 19.1l1.6-1.6M17.5 6.5l1.6-1.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.day-weather-icon--clear,
.day-weather-icon--mostly-clear { color: var(--accent); }
.day-weather-icon--partly-cloudy {
  color: #c5d8cc;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8.5' cy='9' r='3' fill='black'/%3E%3Cpath d='M7 16h9.5a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.4 1.2A3.2 3.2 0 0 0 7 16z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8.5' cy='9' r='3' fill='black'/%3E%3Cpath d='M7 16h9.5a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.4 1.2A3.2 3.2 0 0 0 7 16z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.day-weather-icon--overcast,
.day-weather-icon--fog {
  color: #9bb5a8;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17h10a4 4 0 0 0 .3-8 5 5 0 0 0-9.5 1.4A3.5 3.5 0 0 0 7 17z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17h10a4 4 0 0 0 .3-8 5 5 0 0 0-9.5 1.4A3.5 3.5 0 0 0 7 17z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.day-weather-icon--drizzle,
.day-weather-icon--rain,
.day-weather-icon--showers {
  color: #7eb8a0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 14h10a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.5 1.2A3 3 0 0 0 7 14z' fill='black'/%3E%3Cg stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M9 16.5v2.2M12 17v2.5M15 16.5v2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 14h10a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.5 1.2A3 3 0 0 0 7 14z' fill='black'/%3E%3Cg stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M9 16.5v2.2M12 17v2.5M15 16.5v2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.day-weather-icon--snow {
  color: #c9dde8;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 13h10a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.5 1.2A3 3 0 0 0 7 13z' fill='black'/%3E%3Cg fill='black'%3E%3Ccircle cx='9' cy='16.5' r='1'/%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='15' cy='16.5' r='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 13h10a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.5 1.2A3 3 0 0 0 7 13z' fill='black'/%3E%3Cg fill='black'%3E%3Ccircle cx='9' cy='16.5' r='1'/%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='15' cy='16.5' r='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.day-weather-icon--storm {
  color: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 13h10a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.5 1.2A3 3 0 0 0 7 13z' fill='black'/%3E%3Cpath d='M11 14l-1.5 4h2l-1 4 4.5-6h-2.2L14 14z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 13h10a3.5 3.5 0 0 0 .2-7 4.5 4.5 0 0 0-8.5 1.2A3 3 0 0 0 7 13z' fill='black'/%3E%3Cpath d='M11 14l-1.5 4h2l-1 4 4.5-6h-2.2L14 14z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.weather-popover {
  position: absolute;
  z-index: 40;
  width: 240px;
  max-width: calc(100vw - 1.5rem);
  padding: .75rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #152b23;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  color: var(--text);
}
.weather-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.weather-popover-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .35rem;
}
.weather-popover-close:hover { color: var(--text); }
.weather-popover-dl {
  margin: 0;
  display: grid;
  gap: .35rem;
}
.weather-popover-dl > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  font-size: .86rem;
}
.weather-popover-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.weather-popover-dl dd { margin: 0; text-align: right; }
@media (max-width: 700px) {
  .stay-grid th .day-weather { padding: .15rem 0; }
  .day-weather-temps { font-size: .7rem; }
}

.flash.error-flash { background: #4c2121; border-color: #7d2f2f; color: #ffd7d0; }
.form-card {
  background: rgba(28,58,48,.85); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}
.form-card.wide { grid-column: 1 / -1; }
.stack { display: grid; gap: .85rem; }
.stack label, .form-card label { display: grid; gap: .35rem; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: .6rem .7rem; border-radius: 8px;
  border: 1px solid var(--line); background: #0f1f1a; color: var(--text);
  color-scheme: dark;
}
/* Readonly/disabled: keep Carbon Bay contrast (avoid browser/light fallback white-on-white). */
input:disabled, input[readonly],
select:disabled,
textarea:disabled, textarea[readonly] {
  background: #163028;
  color: var(--text);
  border-color: var(--line);
  opacity: .92;
  cursor: default;
  -webkit-text-fill-color: var(--text);
}
input:disabled::placeholder,
input[readonly]::placeholder,
textarea:disabled::placeholder,
textarea[readonly]::placeholder {
  color: var(--muted);
  opacity: 1;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.manifest-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) {
  .detail-grid, .manifest-cols { grid-template-columns: 1fr; }
}
.manifest-summary { margin-bottom: 1.25rem; }
.plain.compact li { padding: .28rem 0; font-size: .92rem; }
.manifest-boards { display: grid; gap: 1.25rem; }
.manifest-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28,58,48,.72);
  overflow: hidden;
  border-left: 5px solid var(--mb-accent, var(--accent));
}
.manifest-board-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem; background: rgba(15,31,26,.45);
  border-bottom: 1px solid rgba(47,86,72,.55);
}
.manifest-board-head h2 { margin: 0; font-size: 1.15rem; }
.manifest-board-head p { margin: .25rem 0 0; }
.manifest-crew-block, .manifest-crew-empty { padding: .75rem 1rem 0; }
.manifest-crew-block h3 { margin: 0 0 .45rem; font-size: .95rem; }
.manifest-bookings-wrap { padding: .75rem 1rem 1rem; overflow-x: auto; }
.manifest-table { width: 100%; font-size: .88rem; }
.manifest-table th { white-space: nowrap; }
.manifest-table td { vertical-align: top; }
.manifest-kinds { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.kind-chip {
  display: inline-block; padding: .1rem .4rem; border-radius: 999px;
  font-size: .7rem; background: rgba(15,31,26,.65); color: var(--muted);
}
.kind-chip.kind-arrival { background: rgba(61,155,116,.25); color: #b8e6d0; }
.kind-chip.kind-departure { background: rgba(224,168,106,.22); color: #f0d0a8; }
.kind-chip.kind-in-house { background: rgba(107,91,149,.28); color: #d5c8f0; }
.due-owes { color: #e0a86a; font-weight: 600; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .45rem 0; border-bottom: 1px solid rgba(47,86,72,.5); }
.count {
  display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem;
  border-radius: 999px; background: var(--bg); font-size: .75rem; margin-left: .35rem;
}
.manifest-crew { margin-top: .2rem; font-size: .85rem; color: var(--muted); }
.manifest-crew:not(.is-unassigned) { color: #c8e6c0; }
.manifest-crew.is-unassigned { color: #e0a86a; }
.manifest-crew-cell { min-width: 9rem; max-width: 14rem; }
.manifest-crew-compact { display: grid; gap: .15rem; }
.manifest-crew-names {
  font-size: .85rem;
  color: #c8e6c0;
  line-height: 1.3;
}
.manifest-crew-names.is-unassigned { color: #e0a86a; }
.manifest-crew-edit > summary {
  cursor: pointer;
  list-style: none;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}
.manifest-crew-edit > summary:hover { color: #d7ebe0; }
.manifest-crew-edit > summary::-webkit-details-marker { display: none; }
.manifest-crew-form { margin-top: .4rem; gap: .35rem; }
.manifest-crew-actions {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.manifest-crew-cancel {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--muted); font: inherit; font-size: .78rem;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.manifest-crew-cancel:hover { color: #d7ebe0; }
.manifest-crew-select {
  min-height: 5.5rem;
  font-size: .85rem;
}
.manifest-unassigned {
  min-width: auto; padding: 0 .45rem; background: rgba(224,168,106,.2); color: #e0a86a;
}
.crew-pick { display: grid; gap: .3rem; max-height: 11rem; overflow: auto; padding: .15rem 0; }
.crew-pick-row {
  display: flex !important; align-items: center; gap: .55rem;
  padding: .3rem .4rem; border-radius: 8px; border: 1px solid transparent;
}
.crew-pick-row:hover { background: rgba(15,31,26,.55); }
.crew-pick-row input { width: auto; margin: 0; }
.staff-search-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem;
  margin: .75rem 0 .35rem;
}
.staff-search { flex: 1 1 14rem; margin: 0; max-width: 28rem; }
.staff-search input {
  width: 100%; margin: 0;
}
.staff-list { margin-top: .25rem; }
.staff-empty { padding: .75rem 0; margin: 0; }
.perm-user {
  padding: .35rem 0;
  border-bottom: 1px solid rgba(47,86,72,.55);
}
.perm-user:last-of-type { border-bottom: 0; }
.perm-user-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem .75rem;
  padding: .45rem .35rem;
  border-radius: 8px;
  cursor: pointer;
}
.perm-user-head:hover { background: rgba(15,31,26,.35); }
.perm-user-head:focus-visible { outline: 2px solid rgba(61,155,116,.7); outline-offset: 2px; }
.perm-user-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .55rem;
  min-width: 0;
}
.perm-user-email { font-size: .9rem; word-break: break-all; }
.perm-user-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; flex: 0 0 auto; }
.perm-user-actions .btn { font-size: .85rem; padding: .3rem .65rem; }
.staff-delete-form { display: inline; margin: 0; }
.staff-delete-reason { white-space: nowrap; }
.perm-user-body {
  padding: .15rem .35rem .85rem;
}
.perm-user-save { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.perm-user.is-open .perm-user-head { margin-bottom: .35rem; }
.perm-ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .75rem;
  margin: .35rem 0 .75rem;
}
@media (max-width: 700px) { .perm-ticks { grid-template-columns: 1fr; } }
.perm-presets {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .65rem;
  margin: .15rem 0 .5rem;
}
.perm-presets .btn { font-size: .85rem; padding: .35rem .7rem; }
.perm-tick, .perm-row {
  display: flex !important; align-items: flex-start; gap: .45rem;
  font-size: .9rem; margin: 0;
}
.perm-tick input, .perm-row input { width: auto; margin-top: .2rem; flex: 0 0 auto; }
.tiny { font-size: .75rem; }
.timeclock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.timeclock-legend {
  margin: 0 0 .75rem;
  font-size: .85rem;
}
.timeclock-card {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .85rem; border-radius: 10px; border: 1px solid rgba(47,86,72,.35);
  background: rgba(8,16,13,.55);
  color: rgba(220,232,226,.55);
  opacity: .42;
  filter: saturate(.35) brightness(.72);
  transition: opacity .15s ease, filter .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.timeclock-card.is-out strong { color: rgba(220,232,226,.5); font-weight: 500; }
.timeclock-card.is-in {
  opacity: 1;
  filter: none;
  color: var(--text);
  border-color: rgba(61,155,116,.85);
  background: rgba(28,72,54,.72);
  box-shadow: inset 3px 0 0 #3d9b74, 0 0 0 1px rgba(61,155,116,.15);
}
.timeclock-card.is-in strong { color: #e8fff4; font-weight: 700; }
.timeclock-status { margin-top: .35rem; color: #b8e6d0; font-size: .9rem; font-weight: 600; }
.tc-kiosk { max-width: 36rem; }
.tc-pin-input {
  font-size: 1.75rem; letter-spacing: .35rem; text-align: center;
  padding: .85rem 1rem; width: 100%;
}
.tc-pin-label { display: block; }
.tc-confirm-head { margin-bottom: .75rem; }
#tc-geo-msg.tc-geo-ok { color: #b8e6d0; }
#tc-geo-msg.tc-geo-bad { color: #ffb4a8; font-weight: 600; }
#tc-geo-msg.tc-geo-warn { color: #e6d4a0; }
.tc-selfie video, .tc-selfie-preview {
  width: 100%; max-width: 280px; border-radius: 8px; border: 1px solid var(--line);
  background: #0a1512;
}
.tc-step + .tc-step { margin-top: .5rem; }
.time-entry-block {
  padding: .85rem 0;
  border-bottom: 1px solid rgba(47,86,72,.5);
}
.time-entry-block:last-child { border-bottom: 0; }
.item-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.item-card {
  display: block; padding: 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(28,58,48,.85); color: var(--text);
}
.item-card:hover { text-decoration: none; border-color: var(--accent); }
.item-card h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.item-card .meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; color: var(--muted); font-size: .85rem; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a {
  padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--line);
  color: var(--text); background: var(--bg2);
}
.tabs a.is-active { border-color: var(--accent); color: var(--accent); }
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background:
    radial-gradient(900px 500px at 80% 0%, #2a5a45 0%, transparent 50%),
    linear-gradient(165deg, #0c1814, #163028);
}
.login-card {
  width: min(420px, 100%);
  background: rgba(18, 36, 30, .92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.login-card h1 { margin: 0 0 .35rem; }
.login-card form { text-align: left; margin-top: 1.25rem; }
.avail-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
}
.avail-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .4rem;
  min-height: 64px;
  background: #13261f;
  position: relative;
  isolation: isolate;
}
.avail-cell.open,
.avail-cell.status-available { background: rgba(61,155,116,.18); }
.avail-cell.closed,
.avail-cell.status-closed { background: rgba(224,122,106,.14); opacity: .9; }
.avail-cell.full,
.avail-cell.status-full { background: rgba(212,165,74,.16); outline: 1px solid rgba(212,165,74,.55); }
.avail-cell.status-past { background: rgba(80,100,92,.18); opacity: .72; color: var(--muted); }
/* Split-day: top = afternoon arrival, bottom = morning departure */
.avail-cell.split-day::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      var(--split-top, transparent) 0%,
      var(--split-top, transparent) 50%,
      var(--split-bot, transparent) 50%,
      var(--split-bot, transparent) 100%
    );
}
.avail-cell.has-arrival { --split-top: rgba(61, 155, 116, .48); }
.avail-cell.has-departure { --split-bot: rgba(212, 165, 74, .48); }
.avail-cell.status-full.has-arrival.has-departure,
.avail-cell.status-available.has-arrival.has-departure {
  background: #13261f;
  outline: 1px solid rgba(212,165,74,.45);
}
.avail-cell .d { font-weight: 700; position: relative; z-index: 1; }
.avail-cell.rate-weekend { box-shadow: inset 0 -3px 0 rgba(212,165,74,.85); }
.avail-cell.rate-special { box-shadow: inset 0 -3px 0 rgba(61,155,116,.95); }
.avail-cell .tiny { font-size: .7rem; opacity: .9; position: relative; z-index: 1; }
.avail-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: .35rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .75;
  text-align: center;
}
.avail-cell.pad { border: none; background: transparent; min-height: 48px; }
button.avail-cell {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button.avail-cell:disabled { cursor: not-allowed; opacity: .7; }
button.avail-cell.in-range { background: rgba(212,165,74,.2); }
button.avail-cell.is-start,
button.avail-cell.is-end { outline: 2px solid var(--accent); background: rgba(212,165,74,.28); }
.public-avail .avail-cell { min-height: 58px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: .55rem .35rem; text-align: left; }
label.check { display: flex !important; align-items: center; gap: .55rem; grid-template-columns: none !important; }
label.check input { width: auto; }
.public-book { min-height: 100vh; }
.hold-banner {
  border: 1px solid rgba(212,165,74,.55);
  background: rgba(212,165,74,.12);
  border-radius: 8px;
  padding: .75rem 1rem;
}
.booking-timer-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #1e3d32;
  border-bottom: 1px solid rgba(212,165,74,.55);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.booking-timer-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: .65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
}
.booking-timer-inner strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  color: #f0d59a;
  min-width: 4rem;
  text-align: right;
}
.booking-timer-bar.is-urgent {
  background: #4a3420;
  border-bottom-color: rgba(224,122,106,.65);
}
.booking-timer-bar.is-urgent strong { color: #ffb4a8; }
.booking-timer-bar.is-expired {
  background: #4c2121;
  border-bottom-color: #7d2f2f;
}
.booking-timer-box {
  font-size: 1.35rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: rgba(212,165,74,.14);
  border: 1px solid rgba(212,165,74,.45);
}
.public-hero {
  padding: 2.5rem 1.25rem 1.5rem;
  background:
    radial-gradient(900px 420px at 20% 0%, #2a5a45 0%, transparent 55%),
    linear-gradient(165deg, #0c1814, #163028);
  border-bottom: 1px solid var(--line);
}
.public-hero h1 { margin: .2rem 0 .4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); margin: 0; }
.public-shell { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.public-shell.narrow { max-width: 640px; }
.public-shell.wide { max-width: 1280px; }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.search-dates-form { margin-bottom: 1.75rem; }
.search-dates-form h2 { font-size: 1.25rem; }
.waitlist-card { margin-top: 1.5rem; }
.empty-search { text-align: left; }
.park-cal-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.avail-status-legend {
  margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 36, 30, .55);
}
.avail-status-legend-title {
  margin: 0 0 .45rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.avail-status-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.avail-status-legend-list li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .86rem;
  line-height: 1.35;
}
.park-swatch {
  display: inline-block; width: .85rem; height: .85rem; border-radius: 3px;
  border: 1px solid var(--line); vertical-align: middle; flex: 0 0 auto; margin-top: .2rem;
}
.park-swatch.available { background: rgba(61,155,116,.45); }
.park-swatch.full { background: rgba(212,165,74,.4); }
.park-swatch.closed { background: rgba(224,122,106,.35); }
.park-swatch.past { background: rgba(80,100,92,.45); }
.park-swatch.split-day {
  background: linear-gradient(
    to bottom,
    rgba(61,155,116,.55) 0%,
    rgba(61,155,116,.55) 50%,
    rgba(212,165,74,.55) 50%,
    rgba(212,165,74,.55) 100%
  );
}
.park-cal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 36, 30, .55);
}
.park-cal {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: .78rem;
}
.park-cal th, .park-cal td {
  border-bottom: 1px solid rgba(47,86,72,.45);
  border-right: 1px solid rgba(47,86,72,.28);
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.park-cal thead th {
  position: sticky; top: 0; z-index: 2;
  background: #12241e;
  padding: .45rem .2rem;
  font-weight: 600;
}
.park-cal-day { min-width: 2.4rem; }
.park-cal-day .dow { display: block; font-size: .65rem; opacity: .7; text-transform: uppercase; }
.park-cal-day .dom { display: block; font-size: .9rem; }
.park-cal-day.is-weekend { color: var(--accent); }
.park-cal-name {
  text-align: left !important;
  min-width: 9.5rem;
  max-width: 12rem;
  padding: .55rem .65rem !important;
  background: #12241e;
}
.park-cal-name.sticky-col {
  position: sticky; left: 0; z-index: 3;
  box-shadow: 2px 0 0 rgba(47,86,72,.45);
}
.park-cal thead .park-cal-name.sticky-col { z-index: 4; }
.park-cal-name a { color: var(--text); font-weight: 600; }
.park-cal-name a:hover { color: var(--accent); }
.park-cal-name .tiny { display: block; margin-top: .15rem; }
.park-cal-cell {
  min-width: 2.4rem; height: 2.6rem;
  position: relative;
  isolation: isolate;
}
.park-cal-link, .park-cal-static {
  display: grid; place-items: center;
  width: 100%; height: 100%; min-height: 2.6rem;
  text-decoration: none; color: inherit;
  position: relative; z-index: 1;
}
.park-cal-cell.status-available { background: rgba(61,155,116,.18); }
.park-cal-cell.status-available:hover { background: rgba(61,155,116,.38); }
.park-cal-cell.status-full { background: rgba(212,165,74,.16); color: var(--muted); }
.park-cal-cell.status-closed { background: rgba(224,122,106,.14); color: var(--muted); }
.park-cal-cell.status-past { background: rgba(80,100,92,.18); color: var(--muted); opacity: .8; }
.park-cal-cell.split-day::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      var(--split-top, transparent) 0%,
      var(--split-top, transparent) 50%,
      var(--split-bot, transparent) 50%,
      var(--split-bot, transparent) 100%
    );
}
.park-cal-cell.has-arrival { --split-top: rgba(61, 155, 116, .5); }
.park-cal-cell.has-departure { --split-bot: rgba(212, 165, 74, .5); }
.park-cal-cell.status-full.has-arrival.has-departure {
  background: #12241e;
  color: var(--text);
}
.park-cal-link .rate { font-size: .68rem; font-weight: 600; color: var(--accent); }
.park-cal-static .mark, .park-cal-link .mark { opacity: .75; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.item-photo, .hero-photo {
  width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: .75rem;
  border: 1px solid var(--line);
}
.item-photo-placeholder {
  display: grid; place-items: center; min-height: 140px; max-height: 220px;
  background: linear-gradient(145deg, #1a3a2e, #243f34);
  color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem;
}
.hero-photo { max-height: 320px; margin: 1rem 0; }
.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .5rem;
  margin: 0 0 1.25rem;
}
.photo-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.photo-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem;
  background: color-mix(in srgb, var(--panel, #1a2a24) 92%, #000);
}
.photo-card.is-default { outline: 2px solid var(--accent, #3d9b74); }
.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.photo-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--accent, #3d9b74);
  color: #fff;
  font-size: .7rem;
  padding: .15rem .4rem;
  border-radius: 4px;
}
.tag-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  background: color-mix(in srgb, var(--tag, #3d9b74) 28%, #13261f);
  border: 1px solid var(--tag, #3d9b74);
  color: var(--text); border-radius: 999px;
  padding: .15rem .55rem; font-size: .78rem; margin: .1rem .2rem .1rem 0;
}
.tag-x {
  background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1;
}
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tag-pick { border: 1px solid var(--line); border-radius: 8px; padding: .75rem; margin: 0; }
.tag-pick legend { padding: 0 .35rem; color: var(--muted); }
.inline-role select { width: auto; min-width: 8rem; }
code { font-size: .85em; color: var(--accent); }
.waiver-body {
  background: #0f1f1a; border: 1px solid var(--line); border-radius: 8px;
  padding: .85rem 1rem; max-height: 220px; overflow: auto; color: var(--text);
}
.waiver-body p { margin: 0 0 .6rem; }
.price-break td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.price-break .total-row td { border-top: 1px solid var(--line); padding-top: .7rem; }
.price-summary { border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1rem; background: #13261f; }
.price-summary h3 { margin: 0 0 .6rem; font-size: 1rem; }

/* ?? Staff app shell: collapsible sidebar ?? */
body.staff { min-height: 100vh; }
.app-frame {
  display: grid;
  grid-template-columns: var(--sidebar-w, 260px) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .2s ease;
}
.app-frame.sidebar-collapsed { --sidebar-w: 72px; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 22, 18, .96);
  border-right: 1px solid var(--line);
  z-index: 30;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem .85rem;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.sidebar-brand-home {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.sidebar-brand-home:hover,
.sidebar-brand-home:focus-visible {
  color: inherit;
  text-decoration: none;
  opacity: .92;
}
.sidebar-brand-mark,
.mobile-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: .12rem;
  min-width: 0;
}
.platform-version {
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: .85;
}
.sidebar-brand-text { min-width: 0; flex: 1; }
.sidebar-brand-text strong {
  display: block;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user {
  padding: .55rem .85rem .7rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.sidebar-user-label {
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.sidebar-user-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-collapse-btn {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.sidebar-collapse-btn:hover { filter: brightness(1.1); }
.app-frame.sidebar-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: .65rem .5rem 1rem;
  display: grid;
  gap: .35rem;
  align-content: start;
}
.nav-group {
  border-radius: 10px;
  background: rgba(22, 48, 40, .35);
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
/* Expanded section: no amber rim (owner: yellow border hurts readability). Accordion cue = chevron + open items. */
.nav-group.is-open {
  border-color: transparent;
  background: rgba(22, 48, 40, .35);
  box-shadow: none;
}
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 10px;
}
.nav-group-toggle:hover { color: var(--text); background: rgba(28, 58, 48, .55); }
.nav-group.is-open > .nav-group-toggle {
  color: var(--text);
  font-weight: 600;
  background: transparent;
}
.nav-chevron {
  margin-left: auto;
  font-size: .7rem;
  opacity: .55;
  color: var(--muted);
  transition: transform .15s ease, color .15s ease, opacity .15s ease;
}
.nav-group.is-open .nav-chevron {
  transform: rotate(0deg);
  opacity: .85;
  color: var(--muted);
}
.nav-group:not(.is-open) .nav-chevron { transform: rotate(-90deg); }
.nav-group-items {
  display: none;
  padding: 0 .35rem .45rem;
  gap: .15rem;
}
.nav-group.is-open .nav-group-items { display: grid; }
.nav-group[data-nav-active="1"] > .nav-group-toggle {
  color: var(--text);
}
.nav-more {
  margin-top: .15rem;
  border-top: 1px solid rgba(47, 86, 72, .35);
  padding-top: .15rem;
}
.nav-more-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  text-align: left;
  border-radius: 8px;
}
.nav-more-toggle:hover { color: var(--text); background: rgba(28, 58, 48, .45); }
.nav-more-toggle .nav-chevron {
  margin-left: auto;
  font-size: .65rem;
  opacity: .65;
  transition: transform .15s ease;
}
.nav-more.is-open .nav-more-toggle .nav-chevron { transform: rotate(0deg); }
.nav-more:not(.is-open) .nav-more-toggle .nav-chevron { transform: rotate(-90deg); }
.nav-more-items {
  display: none;
  gap: .1rem;
  padding: 0 0 .2rem;
}
.nav-more.is-open .nav-more-items { display: grid; }
.side-nav a,
.side-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .48rem .65rem;
  border-radius: 8px;
  color: var(--text);
  border: 1px solid transparent;
}
.side-nav a:hover,
.side-link:hover {
  background: var(--panel);
  text-decoration: none;
}
.side-nav a.is-active {
  background: rgba(61, 155, 116, .18);
  border-color: rgba(61, 155, 116, .45);
  color: var(--accent);
}
.nav-ico {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: 0 0 22px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  color: inherit;
  line-height: 0;
}
.nav-glyph {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  font-size: .72rem !important;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
  background: rgba(212, 165, 74, .12);
  border: 1px solid rgba(212, 165, 74, .35);
  border-radius: 6px;
  line-height: 1;
}
.sidebar-collapse-btn {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}
/* Hard-cap any leftover SVG so it can never fill the viewport */
body.staff svg,
.sidebar svg,
.side-nav svg,
.nav-ico svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  overflow: hidden !important;
}
.live-desk .live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .65rem;
  margin-bottom: 1rem;
}
.live-stat {
  background: rgba(28, 58, 48, .85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .9rem;
  display: grid;
  gap: .2rem;
}
.live-stat .n { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.live-stat .l { color: var(--muted); font-size: .78rem; }
.live-stat.ready { border-color: rgba(61, 155, 116, .65); }
.live-stat.warn { border-color: rgba(224, 122, 106, .65); }
.live-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 1100px) { .live-grid { grid-template-columns: 1fr; } }
.live-list { display: grid; gap: .45rem; max-height: 62vh; overflow: auto; }
.live-row {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .55rem .65rem; border-radius: 8px; border: 1px solid rgba(47, 86, 72, .55);
  background: rgba(15, 31, 26, .55);
}
.live-row.is-new { outline: 2px solid var(--accent); background: rgba(212, 165, 74, .12); }
.live-row.status-ready { border-color: rgba(61, 155, 116, .55); }
.live-row.status-missing { border-color: rgba(224, 122, 106, .45); }
.badge {
  display: inline-block; padding: .15rem .45rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; border: 1px solid var(--line);
}
/* Author display:inline-block must not beat [hidden] (Messages badge stuck at "0") */
.badge[hidden],
.nav-im-badge[hidden],
.im-topbar-badge[hidden],
.im-unread-badge[hidden] {
  display: none !important;
}
.badge.ok { background: rgba(61, 155, 116, .2); color: #b8f0d4; border-color: #2f7d5c; }
.badge.warn { background: rgba(224, 122, 106, .18); color: #ffd0c8; border-color: #a35a4e; }
.badge.bad { background: rgba(224, 122, 106, .22); color: #ffd0c8; border-color: #a35a4e; }
.live-toast {
  position: sticky; top: .5rem; z-index: 40;
  background: #214c38; border: 1px solid #2f7d5c; padding: .65rem 1rem;
  border-radius: 8px; margin-bottom: .75rem;
}
.live-toast.is-error { background: #4c2121; border-color: #7d2f2f; }
.live-status.is-ok { color: #8fd9b4; }
.live-status.is-bad { color: var(--danger); }
.live-search {
  margin-bottom: .75rem;
}
.live-search input {
  font-size: 1.05rem;
  padding: .75rem .9rem;
}
@media print {
  .sidebar, .mobile-topbar, .no-print, .sidebar-backdrop { display: none !important; }
  .app-frame { display: block; }
  .app-main, .shell { padding: 0; }
  body { background: #fff; color: #000; }
  .form-card, .live-stat { background: #fff; border-color: #ccc; color: #000; }
}

/* ?? Smartwaiver-style Waiver Console ?? */
.wc { display: grid; gap: .85rem; }
.wc-toolbar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start;
}
.wc-toolbar-main {
  flex: 1 1 100%;
  min-width: min(100%, 28rem);
  display: grid;
  gap: .55rem;
}
.wc-title { margin: 0; font-size: 1.55rem; }
.wc-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.wc-search-wrap { display: grid; gap: .25rem; width: 100%; max-width: none; }
.wc-search-wrap input {
  font-size: 1.05rem;
  padding: .75rem .95rem;
  width: 100%;
  box-sizing: border-box;
}
.wc-chip {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
}
.wc-chip.is-active { border-color: var(--accent2); color: #c8f5df; background: rgba(61, 155, 116, .18); }
.wc-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid var(--accent2);
  line-height: 1;
}
.wc-badge-pass { border-color: #d4a54a; background: #2a2110; color: #f0d59a; }
.wc-pin.is-disabled { opacity: .28; cursor: not-allowed; }
.wc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  margin: 0 .12rem;
  font-size: .95rem;
}
.wc-ico-online { filter: saturate(1.1); }
.wc-ico-email-pending {
  position: relative;
  color: #e8c56a;
  font-size: 1rem;
}
.wc-ico-email-pending sup {
  font-size: .65rem;
  font-weight: 800;
  color: #f0a050;
  margin-left: -0.15rem;
  top: -0.35em;
}
.wc-status-pill {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #13261f;
  font-size: .82rem;
  font-weight: 600;
}
.wc-status-pill.wc-status-ok {
  border-color: #2f7d5c;
  background: rgba(61, 155, 116, .18);
  color: #b8f0d4;
}
.wc-status-pill.wc-status-pending {
  border-color: #d4a54a;
  background: rgba(212, 165, 74, .18);
  color: #f0d59a;
}
.wc-pass-dot {
  display: inline-grid; place-items: center;
  width: 1rem; height: 1rem; border-radius: 999px;
  font-size: .65rem; font-weight: 800;
  background: rgba(212, 165, 74, .25); color: #e8c56a;
  border: 1px solid rgba(212, 165, 74, .55);
}
.wc-pass-tag,
.wc-checkin-tag {
  display: inline-block; margin: .5rem 0 0;
  padding: .25rem .55rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
}
/* Author display: must beat [hidden] or the banner never hides */
.wc-pass-tag[hidden],
.wc-checkin-tag[hidden] {
  display: none !important;
}
.wc-checkin-tag.is-pass {
  background: rgba(212, 165, 74, .18); color: #f0d59a;
  border: 1px solid rgba(212, 165, 74, .45);
}
.wc-checkin-tag.is-walkin {
  background: rgba(61, 155, 116, .2); color: #b7ebcf;
  border: 1px solid rgba(61, 155, 116, .45);
}
.wc-pass-status {
  display: inline-block; margin: .35rem 0 0;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.wc-pass-status[hidden] { display: none !important; }
.wc-pass-status.is-current {
  background: rgba(212, 165, 74, .18); color: #f0d59a;
  border: 1px solid rgba(212, 165, 74, .45);
}
.wc-pass-status.is-stale {
  background: rgba(192, 72, 56, .14); color: #ffc9c0;
  border: 1px solid rgba(196, 92, 74, .4);
}
.wc-pass-ok-dialog h2 { color: #f0d59a; }
.wc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: .85rem;
  align-items: start;
}
.wc-body:has(#wc-detail[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 1000px) {
  .wc-body { grid-template-columns: 1fr; }
}
.wc-list-pane {
  padding: 0;
  overflow: auto;
  max-height: calc(100vh - 9.5rem);
}
.wc-load-more {
  text-align: center;
  padding: .65rem .75rem  .85rem;
  border-top: 1px solid rgba(47, 86, 72, .45);
}
.wc-table { width: 100%; border-collapse: collapse; }
.wc-table th, .wc-table td {
  text-align: left; padding: .65rem .75rem;
  border-bottom: 1px solid rgba(47, 86, 72, .55);
  vertical-align: middle;
}
.wc-table th {
  background: #13261f; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.wc-row { cursor: pointer; }
.wc-row:hover { background: rgba(61, 155, 116, .08); }
.wc-row.is-selected { background: rgba(61, 155, 116, .28); }
.wc-row.is-new { outline: 2px solid var(--accent); }
.wc-pin {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--line); background: #0f1f1a;
  color: #6a8578; cursor: pointer; font-size: .85rem;
  display: inline-grid; place-items: center; padding: 0;
}
.wc-pin:disabled,
.wc-pin.is-busy {
  cursor: wait;
  opacity: 1; /* never grey out ? keep on/off color visible */
}
.wc-pin.is-on {
  background: #2f9e6a; border-color: #3d9b74; color: #fff;
  box-shadow: 0 0 0 2px rgba(61, 155, 116, .35);
}
/* Season pass pin ? gold when checked in */
.wc-pin.wc-pin-pass {
  color: #8a7350;
  border-color: #5a4a2a;
  background: #1a160e;
}
.wc-pin.wc-pin-pass.is-on {
  background: #d4a54a;
  border-color: #f0d59a;
  color: #1a1408;
  box-shadow: 0 0 0 2px rgba(212, 165, 74, .45);
  filter: none;
}
.wc-pin:hover { filter: brightness(1.1); }
.wc-pin.wc-pin-pass.is-on:hover { filter: brightness(1.05); }
.wc-flag { color: #e07a6a; font-weight: 700; }
.wc-id-badge {
  display: inline-block;
  margin-left: .15rem;
  padding: .08rem .32rem;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #2a1f08;
  background: #d4a54a;
  border: 1px solid #b8892e;
}
.wc-ban-badge {
  display: inline-block;
  margin-left: .2rem;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #2a120f;
  background: #e07a6a;
  vertical-align: middle;
}
.wc-row.is-banned-row { background: rgba(192, 72, 56, .12); }
.wc-row.is-banned-row.is-selected { background: rgba(192, 72, 56, .28); }
.wc-ban-cell { text-align: center; }
.wc-ban-note {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--line); background: #0f1f1a;
  color: #c8d9d0; cursor: pointer; font-size: .95rem;
  display: inline-grid; place-items: center; padding: 0;
}
.wc-ban-cell.is-banned .wc-ban-note {
  background: #4a221c;
  border-color: #c45c4a;
  color: #ffc9c0;
  box-shadow: 0 0 0 2px rgba(196, 92, 74, .35);
}
.wc-ban-note:hover { filter: brightness(1.1); }
.wc-ban-dialog { max-width: 28rem; }
.wc-ban-status {
  margin: 0;
  padding: .55rem .7rem;
  border-radius: 6px;
  border: 1px solid #c45c4a;
  background: rgba(196, 92, 74, .18);
  color: #ffc9c0;
  font-size: .9rem;
}
.wc-ban-notes-list {
  max-height: 12rem;
  overflow: auto;
  border: 1px solid rgba(47, 86, 72, .55);
  border-radius: 6px;
  padding: .55rem .7rem;
  background: #0f241c;
}
.wc-ban-notes-ul { list-style: none; margin: 0; padding: 0; }
.wc-ban-notes-ul li {
  padding: .45rem 0;
  border-bottom: 1px solid rgba(47, 86, 72, .45);
  color: #e8f2ec;
}
.wc-ban-notes-ul li:last-child { border-bottom: 0; }
.wc-ban-dialog textarea {
  width: 100%;
  min-height: 4.5rem;
  border-radius: 6px;
  border: 1px solid #3d6a58;
  background: #0f241c;
  color: #e8f2ec;
  padding: .55rem .7rem;
  font: inherit;
  resize: vertical;
}
.ban-alert {
  border-color: #c45c4a;
  background: rgba(196, 92, 74, .12);
}
.ban-chip { font-weight: 800; }
.profile-notes li { margin-bottom: .65rem; }
.sec-entry.sec-warning { border-left: 3px solid #d4a54a; padding-left: .55rem; }
.sec-entry.sec-violation { border-left: 3px solid #c45c4a; padding-left: .55rem; }
.sec-entry.sec-note { border-left: 3px solid #3d9b74; padding-left: .55rem; }
.wc-le-dialog {
  max-width: 32rem;
  border: 3px solid #b91c1c;
  background: #1c0808;
  color: #fee2e2;
}
.wc-le-dialog h2 {
  color: #fecaca;
  font-size: 1.25rem;
  letter-spacing: .02em;
  margin: 0 0 .35rem;
}
.wc-le-banner {
  background: #7f1d1d;
  color: #fff;
  font-weight: 700;
  padding: .55rem .7rem;
  border-radius: 4px;
  margin: 0 0 .6rem;
}
.wc-le-summary {
  background: rgba(0,0,0,.35);
  padding: .65rem .75rem;
  border-radius: 4px;
  line-height: 1.45;
}
.wc-le-notes {
  margin-top: .45rem;
  color: #fecaca;
}
.wc-le-procedure {
  margin-top: .55rem;
  font-weight: 700;
  color: #fca5a5;
}
.wc-le-dialog .muted,
.wc-le-dialog .muted.tiny { color: #f5d0d0; }
.wc-le-note-label { display: block; margin: .65rem 0; }
.wc-le-dialog textarea {
  width: 100%;
  background: #2a1010;
  color: #fee2e2;
  border: 1px solid #991b1b;
}
.wc-le-actions { flex-wrap: wrap; gap: .4rem; }

.wc-sec-form label { display: block; margin-bottom: .45rem; }
.wc-sec-form input, .wc-sec-form select, .wc-sec-form textarea {
  width: 100%;
  margin-top: .2rem;
}
.wr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: .65rem;
  margin-top: .75rem;
}
.wr-card { margin: 0; padding: .85rem 1rem; }
.wr-num { font-size: 1.65rem; font-weight: 800; margin-top: .2rem; }
.wr-card-ban .wr-num { color: #c45c4a; }
.wr-card-warn .wr-num { color: #d4a54a; }
.wr-card-viol .wr-num { color: #e07a6a; }
.wr-tag-breakdown { margin: 0; padding: .75rem 1rem; }
.wr-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.wr-tag-chips .wc-tag {
  text-decoration: none;
  cursor: pointer;
}
.wr-tag-chips .wc-tag .count {
  opacity: .85;
  font-weight: 700;
  margin-left: .15rem;
}
.wr-tag-chips .wr-tag-active {
  outline: 2px solid var(--accent2, #3d9b74);
  outline-offset: 1px;
}
.wc-checkins { font-variant-numeric: tabular-nums; font-weight: 600; }
.wc-detail { position: sticky; top: .75rem; max-height: calc(100vh - 6rem); overflow: auto; }
.wc-detail-head { margin-bottom: .75rem; }
.wc-detail-actions { display: flex; gap: .4rem; justify-content: flex-end; margin-bottom: .5rem; }
.wc-detail h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.wc-d-meta { margin: .65rem 0 0; }
.wc-tabs {
  display: flex; gap: .25rem; border-bottom: 1px solid var(--line);
  margin: 0 0 .75rem; padding: 0;
}
.wc-tabs button {
  background: transparent; border: 0; color: var(--muted);
  padding: .5rem .7rem; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.wc-tabs button.is-active { color: var(--accent2); border-bottom-color: var(--accent2); }
.wc-tab-panel { display: none; }
.wc-tab-panel.is-active { display: block; }
.wc-flag-list { list-style: none; padding: 0; margin: 0; }
.wc-flag-list li {
  padding: .55rem 0; border-bottom: 1px solid rgba(47, 86, 72, .45);
  color: #ffc9c0;
}
.wc-info-table { width: 100%; font-size: .9rem; }
.wc-info-table th { white-space: nowrap; }
.wc-info-table td { vertical-align: top; }
.wc-info-tags { min-width: 8.5rem; }
.wc-tags-cell { min-width: 7rem; max-width: 14rem; }
.wc-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.wc-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.wc-tag {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e2a24;
  background: var(--wc-tag, #c8e0d4);
  border: 1px solid rgba(0,0,0,.12);
}
.wc-tag-sm {
  font-size: .68rem;
  padding: .1rem .32rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-tag-x {
  border: 0;
  background: transparent;
  color: #334;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
  padding: 0 .1rem;
  font-weight: 800;
}
.wc-tag-x:hover { color: #8a2e22; }
.wc-tags-panel { display: grid; gap: .55rem; }
.wc-tags-h {
  margin: .35rem 0 0;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.wc-tag-assigned {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.wc-tag-assigned li {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.wc-tag-filter-label {
  display: grid;
  gap: .25rem;
  font-size: .8rem;
  color: var(--muted);
}
.wc-tag-filter-label input,
.wc-tag-filter-wrap input {
  border: 1px solid rgba(61,155,116,.4);
  border-radius: 4px;
  background: #0c1712;
  color: #e8f0ea;
  padding: .35rem .5rem;
  font: inherit;
  font-size: .85rem;
}
.wc-tag-filter-wrap { margin-top: .45rem; }
.wc-tag-picker {
  margin-top: .15rem;
  display: grid;
  gap: .35rem;
  padding: .5rem;
  border-radius: 6px;
  background: #102018;
  border: 1px solid rgba(61,155,116,.35);
  max-height: 12rem;
  overflow: auto;
}
.wc-tag-choice {
  text-align: left;
  border: 1px solid rgba(61,155,116,.35);
  background: #163126;
  color: #d7eee2;
  border-radius: 4px;
  padding: .35rem .5rem;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.wc-tag-choice:hover { border-color: var(--accent2); }
.wc-tag-new { display: flex; gap: .35rem; }
.wc-tag-new input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(61,155,116,.4);
  border-radius: 4px;
  background: #0c1712;
  color: #e8f0ea;
  padding: .35rem .5rem;
  font: inherit;
  font-size: .85rem;
}
.btn.tiny { padding: .3rem .55rem; font-size: .78rem; }
.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .92rem;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: .55rem .5rem .75rem;
  display: grid;
  gap: .2rem;
}
.side-logout {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
}
.logout { margin: 0; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.mobile-topbar {
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 22, 18, .92);
  position: sticky;
  top: 0;
  z-index: 20;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
a.mobile-brand:hover,
a.mobile-brand:focus-visible {
  color: inherit;
  text-decoration: none;
  opacity: .92;
}
.mobile-brand-text { min-width: 0; }
.mobile-brand strong { font-size: .95rem; display: block; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 25;
}

/* Collapsed: icons only */
.app-frame.sidebar-collapsed .sidebar-brand-text,
.app-frame.sidebar-collapsed .sidebar-user,
.app-frame.sidebar-collapsed .nav-label,
.app-frame.sidebar-collapsed .nav-chevron {
  display: none;
}
.app-frame.sidebar-collapsed .nav-group-items { display: none !important; }
.app-frame.sidebar-collapsed .nav-more { display: none !important; }
.app-frame.sidebar-collapsed .nav-group-toggle { justify-content: center; padding: .65rem; }
.app-frame.sidebar-collapsed .side-nav a,
.app-frame.sidebar-collapsed .side-link {
  justify-content: center;
  padding: .65rem;
}
.app-frame.sidebar-collapsed .sidebar-brand { justify-content: center; }
.app-frame.sidebar-collapsed .sidebar-collapse-btn { margin: 0; }

body.staff .shell {
  max-width: none;
  width: 100%;
  padding: 1.25rem 1.5rem 2rem;
}

@media (max-width: 900px) {
  .app-frame { grid-template-columns: 1fr; }
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.4);
  }
  .app-frame.sidebar-mobile-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop:not([hidden]) { display: block; }
  .app-frame.sidebar-collapsed { --sidebar-w: 260px; }
  .app-frame.sidebar-collapsed .sidebar-brand-text,
  .app-frame.sidebar-collapsed .sidebar-user,
  .app-frame.sidebar-collapsed .nav-label,
  .app-frame.sidebar-collapsed .nav-chevron { display: initial; }
  .app-frame.sidebar-collapsed .nav-group.is-open .nav-group-items { display: grid !important; }
  .app-frame.sidebar-collapsed .nav-group-toggle,
  .app-frame.sidebar-collapsed .side-nav a,
  .app-frame.sidebar-collapsed .side-link { justify-content: flex-start; padding: .48rem .65rem; }
}

/* ?? Parking permit quantity dialog ?? */
.pp-dialog {
  border: 1px solid #2f5648;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  background: #1c3a30;
  color: #e8f2ec;
  max-width: 26rem;
  width: calc(100% - 2rem);
}
.pp-dialog::backdrop { background: rgba(0,0,0,.55); }
.pp-dialog h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.pp-dialog .stack { display: grid; gap: .75rem; }
.pp-dialog label { display: grid; gap: .3rem; font-size: .9rem; }
.pp-dialog input[type=number] {
  font-size: 1.15rem;
  padding: .55rem .7rem;
  border-radius: 6px;
  border: 1px solid #3d6a58;
  background: #0f241c;
  color: #e8f2ec;
}
.pp-dialog .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pp-dialog #parking-permit-countdown span { font-weight: 700; color: #b8e0c8; }

/* ?? Employee role / title combobox ?? */
.role-title-field { display: grid; gap: .35rem; }
.role-title-combobox { position: relative; display: block; }
.role-title-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 40;
  background: #13261f; border: 1px solid var(--line); border-radius: 8px;
  max-height: 240px; overflow: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.role-title-item {
  display: grid; gap: .1rem; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid rgba(47, 86, 72, .55);
  padding: .55rem .7rem; color: var(--text); cursor: pointer;
  border-radius: 0;
}
.role-title-item:last-child { border-bottom: 0; }
.role-title-item:hover { background: rgba(61, 155, 116, .18); }
.role-title-item.is-add strong { color: var(--accent); }
.role-title-dialog {
  border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem;
  background: #1c3a30; color: var(--text); max-width: 28rem; width: calc(100% - 2rem);
}
.role-title-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.role-title-dialog h2 { margin: 0 0 .35rem; font-size: 1.2rem; }

/* Product copyright ? muted, non-competing */
.site-copyright {
  margin: 0;
  padding: 1rem 1.25rem 1.35rem;
  text-align: center;
  font-size: .68rem;
  line-height: 1.45;
  color: var(--muted);
  opacity: .72;
  letter-spacing: .01em;
}
.login-page .site-copyright {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem 1.1rem;
  pointer-events: none;
}
body.staff .site-copyright {
  margin-top: auto;
  padding: .65rem 1.25rem 1rem;
  opacity: .55;
  font-size: .64rem;
}
.public-book .site-copyright {
  max-width: 1100px;
  margin: 0 auto;
}

/* Security audit */
.usage-bars { display: grid; gap: .55rem; }
.usage-bar-row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr auto;
  gap: .65rem;
  align-items: center;
}
@media (max-width: 700px) {
  .usage-bar-row { grid-template-columns: 1fr; gap: .25rem; }
}
.usage-bar-label { font-weight: 600; font-size: .92rem; }
.usage-bar-track {
  height: .7rem;
  border-radius: 999px;
  background: rgba(15, 31, 26, .65);
  border: 1px solid var(--line);
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f7d5c, #d4a54a);
  min-width: 2px;
}
.usage-bar-n { white-space: nowrap; text-align: right; }
.posture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.posture-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .45rem .55rem;
  border-radius: 8px;
  border: 1px solid rgba(47, 86, 72, .45);
  background: rgba(15, 31, 26, .35);
}
.posture-list li.is-ok { border-color: rgba(61, 155, 116, .45); }
.posture-list li.is-bad { border-color: rgba(224, 122, 106, .45); }
.posture-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: .1rem;
}
.posture-list li.is-ok .posture-mark { background: rgba(61, 155, 116, .28); color: #b8e6d0; }
.posture-list li.is-bad .posture-mark { background: rgba(224, 122, 106, .22); color: #ffd0c8; }
.posture-indicators { display: grid; gap: .45rem; font-size: .92rem; }

/* Retail drawer / register shifts */
.retail-drawer { margin: 0 0 1rem; }
.retail-drawer-banner {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--line);
}
.retail-drawer-banner.is-open {
  border-color: rgba(61, 155, 116, .55);
  background: rgba(61, 155, 116, .14);
}
.retail-drawer-banner.is-closed {
  border-color: rgba(224, 122, 106, .55);
  background: rgba(224, 122, 106, .12);
}
.retail-drawer-status { display: grid; gap: .2rem; min-width: 0; }
.retail-drawer-kpis {
  display: flex; flex-wrap: wrap; gap: .35rem .85rem; margin-top: .2rem;
  font-size: .92rem;
}
.retail-drawer-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.retail-drawer-dialog {
  border: 1px solid var(--line); border-radius: 12px; padding: 0;
  background: var(--panel); color: var(--text); max-width: min(440px, 94vw);
}
.retail-drawer-dialog::backdrop { background: rgba(0,0,0,.55); }
.retail-drawer-dialog-inner { padding: 1rem 1.1rem 1.1rem; }
.retail-drawer-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.retail-drawer-z { margin: .25rem 0 .5rem; }
.retail-shift-z .retail-shift-print-title { margin: 0 0 .25rem; font-size: 1.15rem; }
.retail-shift-z .retail-sales-kpi { margin-top: .75rem; }

/* Retail POS */
.retail-subnav {
  display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem;
}
.retail-subnav a {
  padding: .4rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(15,31,26,.35); color: var(--text);
}
.retail-subnav a.is-active { border-color: var(--accent2); background: rgba(61,155,116,.18); }
.retail-cat-filter {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0 .25rem;
}
.retail-cat-filter a,
.retail-cat-filter button {
  padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(15,31,26,.35); color: var(--text); font: inherit; cursor: pointer;
  text-decoration: none;
}
.retail-cat-filter a.is-active,
.retail-cat-filter button.is-active {
  border-color: var(--accent2); background: rgba(61,155,116,.18);
}
.retail-cat-add,
.retail-cat-edit {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: end;
}
.retail-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.retail-cat-item {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: end;
  padding: .65rem 0; border-bottom: 1px solid var(--line);
}
.retail-cat-item:last-child { border-bottom: 0; }
.retail-pos {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 1rem; align-items: start;
}
.retail-pos-tabs,
.retail-sticky-pay,
.retail-scan-hint-mobile { display: none; }
.retail-pos-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem;
  margin-left: .25rem; border-radius: 999px;
  background: rgba(61,155,116,.28); color: var(--accent); font-size: .78rem; font-weight: 700;
}
.retail-scan input {
  width: 100%; font-size: 1.1rem; padding: .7rem .85rem;
}
.retail-keys-wrap { margin-top: .75rem; }
.retail-keys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .65rem;
}
.retail-keys-pager {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-top: .65rem;
}
.retail-keys-pager[hidden] { display: none !important; }
.retail-key {
  --key-bg: var(--panel);
  min-height: 110px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--key-bg) 70%, #163028), var(--panel));
  color: var(--text); padding: .75rem; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between; gap: .35rem;
  cursor: pointer; text-align: left; font: inherit;
}
/* Author display:flex must not beat [hidden] */
.retail-key[hidden] { display: none !important; }
.retail-key:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }
.retail-key:disabled, .retail-key.is-oos { opacity: .45; cursor: not-allowed; }
.retail-key.is-pass { box-shadow: inset 0 0 0 1px rgba(139,92,246,.45); }
.retail-key-name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.retail-key-price { color: var(--accent); font-weight: 700; }
.retail-key-badge {
  font-size: .72rem; padding: .12rem .4rem; border-radius: 6px;
  background: rgba(139,92,246,.25); color: #ddd6fe;
}
.retail-key-stock { font-size: .75rem; color: var(--muted); }
.retail-key-stock.is-low { color: var(--accent); }
.retail-key-stock.is-oos { color: var(--danger); }
.retail-cart { position: sticky; top: .75rem; }
.retail-cart-lines { display: grid; gap: .55rem; min-height: 4rem; margin-bottom: .75rem; }
.retail-line {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(15,31,26,.35);
}
.retail-line-actions { display: flex; align-items: center; gap: .35rem; }
.retail-qty { min-width: 1.5rem; text-align: center; font-weight: 700; }
.retail-cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.25rem; padding: .5rem 0; border-top: 1px solid var(--line);
}
.retail-dual-totals {
  display: grid; gap: .35rem; padding: .65rem 0; border-top: 1px solid var(--line);
}
.retail-dual-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  font-size: 1.05rem;
}
.retail-dual-row strong { color: var(--accent); }
.retail-tender { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.retail-tender-btn { min-height: 3.4rem; font-size: 1rem; line-height: 1.2; gap: .35em; }
.retail-tender-btn .tiny { font-weight: 600; opacity: .9; }
.retail-mod-dialog {
  border: 1px solid var(--line); border-radius: 12px; padding: 0;
  background: var(--panel); color: var(--text); max-width: min(420px, 94vw);
}
.retail-mod-dialog::backdrop { background: rgba(0,0,0,.55); }
.retail-mod-dialog-inner { padding: 1rem 1.1rem 1.1rem; }
.retail-mod-options { display: grid; gap: .5rem; }
.retail-mod-option {
  display: grid; gap: .15rem; text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem;
  background: rgba(15,31,26,.4); cursor: pointer;
}
.retail-mod-option:hover { border-color: var(--accent); }
.retail-mod-admin { margin-top: .5rem; display: grid; gap: .75rem; }
.retail-mod-rows { display: grid; gap: .65rem; }
.retail-mod-row { margin: 0; padding: .85rem; }
.retail-pass-panel {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px dashed var(--line);
  display: grid; gap: .55rem;
}
/* Author display:grid must not beat [hidden] — pass fields stay off until cart has a pass */
.retail-pass-panel[hidden] { display: none !important; }
.retail-pass-panel h3 { margin: 0; font-size: 1rem; }
.retail-customer-results { display: grid; gap: .35rem; max-height: 10rem; overflow: auto; }
.retail-customer-hit {
  text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem;
  background: rgba(15,31,26,.4); cursor: pointer;
}
.retail-customer-hit:hover { border-color: var(--accent2); }
.retail-customer-picked { margin: 0; color: var(--accent2) !important; }
.retail-rv { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .75rem; margin: 0; }
.retail-rv label { display: inline-flex; gap: .4rem; margin-right: 1rem; }
.retail-swatch {
  display: inline-block; width: .75rem; height: .75rem; border-radius: 3px;
  margin-left: .35rem; vertical-align: middle; border: 1px solid var(--line);
}
.retail-quick-order-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  margin-bottom: .65rem;
}
.retail-quick-order-head h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.retail-quick-order-head p { margin: 0; }
#quick-order-status.is-error { color: var(--danger); }
.retail-quick-order-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem;
}
.retail-quick-order-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center; gap: .55rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15,31,26,.35);
  cursor: grab;
  user-select: none;
}
.retail-quick-order-item.is-dragging { opacity: .55; cursor: grabbing; }
.retail-quick-order-item.drop-hover { border-color: var(--accent); }
.retail-quick-grip {
  color: var(--muted); letter-spacing: -.12em; font-size: .85rem; line-height: 1;
  padding: 0 .15rem;
}
.retail-quick-order-name { font-weight: 650; }
.retail-quick-order-meta { white-space: nowrap; }
.retail-quick-order-btns { display: inline-flex; gap: .3rem; }
.retail-quick-order-btns .btn { min-width: 2rem; }
.retail-adjust { display: flex; gap: .35rem; margin-top: .35rem; }
.retail-adjust input { width: 4.5rem; }
.retail-product-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: flex-end; }
.retail-receipt-brand { font-size: 1.15rem; }
.retail-discount {
  display: grid; gap: .45rem; padding: .55rem 0 .25rem;
  border-top: 1px dashed var(--line); margin-top: .25rem;
}
.retail-discount-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.retail-discount-modes { display: flex; gap: .75rem; flex-wrap: wrap; }
.retail-discount-modes label { display: inline-flex; gap: .3rem; align-items: center; margin: 0; font-size: .9rem; }
.retail-discount-input input { max-width: 8rem; }
.retail-recent-head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
}
.retail-recent-list {
  list-style: none; margin: .65rem 0 0; padding: 0; display: grid; gap: .35rem;
}
.retail-recent-list a {
  display: grid; grid-template-columns: 4.5rem 1fr auto auto; gap: .55rem; align-items: center;
  padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); text-decoration: none; background: rgba(15,31,26,.35);
}
.retail-recent-list a:hover { border-color: var(--accent); }
.retail-sales-kpi {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
}
.retail-sales-kpi.is-with-gross { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.retail-sales-kpi strong { font-size: 1.35rem; color: var(--accent); display: block; margin-top: .15rem; }
.retail-sales-kpi .is-gross strong { color: var(--muted); font-size: 1.15rem; }
tr.is-voided,
tr.is-cancelled { opacity: .72; }
tr.is-voided > td:not(.sale-status):not(.sale-actions),
tr.is-cancelled > td:not(.sale-status):not(.sale-actions) {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(224, 122, 106, .85);
}
.retail-recent-list li.is-voided a,
.retail-recent-list li.is-cancelled a {
  opacity: .72;
}
.retail-recent-list li.is-voided a > span,
.retail-recent-list li.is-voided a > strong,
.retail-recent-list li.is-cancelled a > span,
.retail-recent-list li.is-cancelled a > strong {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(224, 122, 106, .85);
}
.retail-recent-list li.is-voided .sale-status,
.retail-recent-list li.is-cancelled .sale-status {
  text-decoration: none;
}
.retail-void-confirm { display: flex; gap: .5rem; align-items: center; }

/* Retail POS — tablet / phone responsive register */
@media (max-width: 960px) {
  .retail-pos {
    grid-template-columns: 1fr;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  .retail-pos-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: .35rem 0 .55rem;
    background: linear-gradient(180deg, rgba(15,31,26,.96), rgba(15,31,26,.92));
  }
  .retail-pos-tab {
    min-height: 2.75rem;
    font: inherit;
    font-weight: 650;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(15,31,26,.45);
    cursor: pointer;
  }
  .retail-pos-tab.is-active {
    border-color: var(--accent2);
    background: rgba(61,155,116,.22);
  }
  .retail-pos.is-tab-products .retail-cart { display: none; }
  .retail-pos.is-tab-cart .retail-pos-main { display: none; }
  .retail-cart { position: static; }
  .retail-scan-hint-mobile { display: block; margin: .15rem 0 .35rem; }
  .retail-keys {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: .55rem;
  }
  .retail-key {
    min-height: 118px;
    padding: .85rem .75rem;
    -webkit-tap-highlight-color: transparent;
  }
  .retail-key-name { font-size: 1.05rem; }
  .retail-line {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .55rem;
    padding: .7rem .75rem;
  }
  .retail-line-actions { margin-left: auto; gap: .45rem; }
  .retail-qty-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700;
  }
  .retail-qty { min-width: 2rem; font-size: 1.15rem; }
  .retail-dual-row { font-size: 1.12rem; }
  .retail-dual-row strong { font-size: 1.25rem; }
  .retail-tender {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .retail-tender-btn {
    min-height: 3.6rem;
    font-size: 1.08rem;
    width: 100%;
  }
  .retail-mod-option { min-height: 3.2rem; padding: .85rem .9rem; }
  .retail-customer-hit { min-height: 2.75rem; padding: .65rem .75rem; }
  .retail-sticky-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem .75rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(15,31,26,.96);
    box-shadow: 0 -8px 24px rgba(0,0,0,.28);
  }
  .retail-sticky-pay[hidden] { display: none !important; }
  .retail-sticky-pay-totals {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .4rem;
    min-width: 0; font-size: 1.05rem;
  }
  .retail-sticky-pay-totals strong { color: var(--accent); font-size: 1.15rem; }
  .retail-sticky-pay-actions {
    display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto;
  }
  .retail-sticky-pay-actions .btn {
    min-height: 2.85rem;
    min-width: 4.25rem;
    font-weight: 650;
  }
  .retail-drawer-banner { align-items: stretch; }
  .retail-drawer-actions .btn { min-height: 2.75rem; }
  .hw-pos-station { align-items: stretch; }
  .hw-pos-station-form select { min-height: 2.5rem; min-width: 0; width: 100%; }
}

@media (max-width: 720px) {
  .retail-sales-kpi,
  .retail-sales-kpi.is-with-gross { grid-template-columns: 1fr; }
  .retail-recent-list a {
    grid-template-columns: 1fr 1fr;
    gap: .35rem .55rem;
    min-height: 2.75rem;
  }
  .page-head h1 { font-size: 1.4rem; }
  .retail-keys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .retail-key { min-height: 108px; }
  .retail-discount-toggle { align-items: flex-start; }
  .retail-discount-modes { gap: .55rem 1rem; }
  .retail-discount-modes label { min-height: 2.4rem; }
  .retail-subnav a { min-height: 2.5rem; display: inline-flex; align-items: center; }
}

@media (max-width: 430px) {
  .retail-sticky-pay-actions { width: 100%; }
  .retail-sticky-pay-actions .btn { flex: 1 1 0; }
  .retail-tender { grid-template-columns: 1fr; }
}

/* Staff instant messages */
.im {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  min-height: min(70vh, 720px);
  align-items: stretch;
}
.im-sidebar, .im-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.im-side-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--line);
}
.im-staff-head { border-top: 1px solid var(--line); }
.im-inbox, .im-directory {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .5rem; overflow: auto; max-height: 28vh;
}
.im-directory { max-height: none; flex: 1; }
.im-conv, .im-peer {
  display: flex; align-items: center; gap: .55rem;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: .45rem .55rem; cursor: pointer;
}
.im-conv:hover, .im-peer:hover { background: rgba(15, 31, 26, .55); border-color: rgba(47, 86, 72, .55); }
.im-conv.is-active { background: rgba(61, 155, 116, .14); border-color: rgba(61, 155, 116, .45); }
.im-conv-body, .im-peer-body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.im-conv-name, .im-peer-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-conv-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-conv-meta { display: grid; gap: .2rem; justify-items: end; flex: 0 0 auto; }
.im-presence {
  width: .65rem; height: .65rem; border-radius: 50%; flex: 0 0 auto;
  background: #5a7268; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.im-presence.is-online { background: #3d9b74; box-shadow: 0 0 0 2px rgba(61, 155, 116, .25); }
.im-status-online { color: #8fd9b4 !important; }
.im-thread-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line);
}
.im-messages {
  flex: 1; overflow: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 220px; background: rgba(15, 31, 26, .28);
}
.im-bubble {
  max-width: min(78%, 36rem);
  align-self: flex-start;
  background: rgba(28, 58, 48, .95);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: .55rem .75rem;
}
.im-bubble.is-mine {
  align-self: flex-end;
  background: rgba(61, 155, 116, .22);
  border-color: rgba(61, 155, 116, .45);
  border-radius: 12px 12px 4px 12px;
}
.im-bubble-body { white-space: pre-wrap; word-break: break-word; }
.im-bubble-meta { margin-top: .25rem; }
.im-compose {
  display: grid; grid-template-columns: 1fr auto; gap: .55rem; align-items: end;
  padding: .75rem 1rem; border-top: 1px solid var(--line);
}
.im-compose textarea {
  width: 100%; resize: vertical; min-height: 2.6rem; max-height: 8rem;
  font: inherit; color: var(--text);
  background: rgba(15, 31, 26, .55); border: 1px solid var(--line); border-radius: 8px;
  padding: .55rem .7rem;
}
.im-unread-badge, .nav-im-badge { margin-left: .35rem; }
.im-topbar-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; margin-left: auto; margin-right: .35rem;
  border: 1px solid var(--line); border-radius: 8px; color: var(--text);
  background: rgba(15, 31, 26, .45); text-decoration: none !important;
}
.im-topbar-link:hover { border-color: var(--accent2); }
.im-topbar-ico { font-size: 1.05rem; line-height: 1; }
.im-topbar-badge {
  position: absolute; top: -.35rem; right: -.35rem; min-width: 1.1rem;
  text-align: center; pointer-events: none;
}
.im-peer-pick { cursor: default; }
.im-peer-check {
  width: 1.05rem; height: 1.05rem; flex: 0 0 auto; accent-color: #3d9b74;
}
.im-peer-open { flex: 0 0 auto; }
.im-multi-compose {
  display: grid; gap: .45rem;
  padding: .65rem .75rem .85rem;
  border-top: 1px solid var(--line);
}
.im-multi-compose textarea {
  width: 100%; resize: vertical; min-height: 2.4rem; max-height: 7rem;
  font: inherit; color: var(--text);
  background: rgba(15, 31, 26, .55); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .65rem;
}

/* Full-screen staff message attention overlay (staff layout + mobile hub).
   Critical display rules also inlined in partials/staff-message-attention.blade.php. */
.im-attention {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: stretch; justify-content: stretch;
  padding: 0;
}
.im-attention[hidden] { display: none !important; }
.im-attention-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 8, 6, .94);
}
.im-attention-panel {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  overflow: auto;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  border: 0; border-radius: 0;
  background: linear-gradient(165deg, #163528 0%, #0a1612 55%, #07110e 100%);
  display: flex; flex-direction: column; justify-content: center; gap: .85rem;
  color: #eef7f2;
}
.im-attention-kicker {
  margin: 0; text-transform: uppercase; letter-spacing: .1em;
  font-size: .8rem; font-weight: 800; color: #7dcea0;
}
.im-attention-title { margin: 0; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; font-weight: 800; }
.im-attention-meta { margin: 0; opacity: .85; }
.im-attention-body {
  margin: 0; padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(15, 31, 26, .85);
  border: 2px solid rgba(125, 206, 160, .45);
  font-size: clamp(1.2rem, 3.6vw, 1.65rem); line-height: 1.4;
  white-space: pre-wrap; word-break: break-word;
  max-width: 40rem;
}
.im-attention-actions {
  display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .35rem; max-width: 40rem;
}
.im-attention-actions .btn { min-height: 3.1rem; flex: 1 1 auto; font-size: 1.05rem; font-weight: 700; }
.im-attention-hint { margin: .2rem 0 0; max-width: 40rem; }
html.im-attention-open, html.im-attention-open body {
  overflow: hidden;
}

@media (max-width: 900px) {
  .im { grid-template-columns: 1fr; min-height: 0; }
  .im-inbox { max-height: 18vh; }
  .im-directory { max-height: 22vh; }
  .im-messages { min-height: 40vh; }
}

@media print {
  .sidebar, .page-head-actions, .retail-subnav, .flash, .no-print { display: none !important; }
  body.staff { background: #fff; color: #000; }
  .form-card { border: none; box-shadow: none; }
  .retail-receipt { color: #000; }
}

/* Hardware stations */
.hw-current-form {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
}
.hw-current-form label { min-width: 14rem; flex: 1; }
.hw-station-list { display: grid; gap: .75rem; }
.hw-station-card {
  border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem;
  background: rgba(0,0,0,.02);
}
.hw-station-card.is-inactive { opacity: .7; }
.hw-station-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center;
}
.hw-station-actions { display: flex; gap: .4rem; align-items: center; }
.hw-role-summary {
  list-style: none; margin: .55rem 0 0; padding: 0;
  display: grid; gap: .25rem;
}
.hw-role-summary li {
  display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: baseline;
  font-size: .92rem;
}
.hw-role-block {
  border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem;
  margin: 0 0 .75rem;
}
.hw-role-block legend { padding: 0 .35rem; font-weight: 600; }
.hw-pos-station {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  margin: 0 0 .85rem; padding: .45rem .65rem;
  border: 1px dashed var(--line); border-radius: 8px;
  background: rgba(0,0,0,.015);
}
.hw-pos-station-form label {
  display: flex; align-items: center; gap: .4rem; margin: 0;
}
.hw-pos-station-form select {
  min-width: 10rem; font-size: .9rem; padding: .25rem .4rem;
}
.hw-receipt-meta { margin: 0 0 .85rem; }
.retail-receipt-ticket { font-size: .95rem; }
.retail-receipt-ticket .data { font-size: .9rem; }

/* —— Staff mobile hub (Capacitor /app/mobile) —— */
body.mobile-hub {
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}
.mh-shell {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1.1rem 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.mh-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.mh-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.mh-brand strong { display: block; font-size: 1.05rem; }
.mh-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}
.mh-main h1 {
  margin: 0 0 .35rem;
  font-size: 1.65rem;
  letter-spacing: -.02em;
}
.mh-lede { margin: 0 0 1.1rem; }
.mh-grid {
  display: grid;
  gap: .75rem;
}
.mh-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  min-height: 5.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(28,58,48,.95), rgba(15,31,26,.92));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: border-color .15s ease, transform .15s ease;
}
.mh-tile:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.mh-tile:active { transform: scale(.985); }
.mh-tile-label { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.mh-tile-blurb { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.mh-tile--live { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.mh-tile--checkin { border-color: color-mix(in srgb, var(--accent2) 50%, var(--line)); }
.mh-tile--pos { border-color: color-mix(in srgb, #6bb8ff 40%, var(--line)); }
.mh-tile--waivers { border-color: color-mix(in srgb, #c4a0e8 40%, var(--line)); }
.mh-tile--housekeeping { border-color: color-mix(in srgb, #e0a060 45%, var(--line)); }
.mh-tile--messages { border-color: color-mix(in srgb, #7dcea0 50%, var(--line)); }
.mh-full { margin-top: 1.5rem; text-align: center; }

/* Housekeeping ops */
.hk-unit-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .75rem; }
.hk-status-btns, .hk-mobile-status { display: flex; flex-wrap: wrap; gap: .45rem; }
.hk-status-btns .btn, .hk-mobile-status .btn { min-height: 2.6rem; }
.hk-chip-clean { border-color: #2f7d5c; color: #8fd9b8; }
.hk-chip-dirty { border-color: #b8862f; color: #f0d59a; }
.hk-chip-out_of_order { border-color: #b42318; color: #f3b4b0; }
.hk-chip-maintenance { border-color: #6b7c93; color: #c5d0e0; }
.hk-unit-card.hk-status-dirty { border-left: 3px solid var(--accent); }
.hk-unit-card.hk-status-out_of_order,
.hk-unit-card.hk-status-maintenance { border-left: 3px solid #b42318; }
.hk-mobile-counts { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.hk-count-pill {
  display: inline-flex; gap: .35rem; align-items: center;
  padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: inherit; text-decoration: none; font-size: .85rem;
}
.hk-count-pill.is-active { border-color: var(--accent); color: var(--accent); }
.hk-mobile-list { display: grid; gap: .75rem; }
.hk-mobile-card {
  border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem;
  background: var(--panel);
}
.hk-mobile-card-top { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.hk-mobile-status { margin-top: .65rem; }
.hk-mobile-status .btn { flex: 1 1 42%; }

/* Narrow WebView: live desk / POS — keep usable, no redesign */
@media (max-width: 520px) {
  .wc-toolbar { gap: .65rem; }
  .wc-toolbar-main { min-width: 0; }
  .wc-title { font-size: 1.25rem; }
  .wc-list-pane { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wc-table { min-width: 36rem; }
  .retail-pos { gap: .75rem; }
  .retail-key { min-height: 96px; }
  body.staff .shell { padding: .85rem .85rem 1.5rem; }
}

/* Season pass holder profile tiles */
.sp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: .75rem;
  margin: 0 0 1rem;
}
.sp-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  min-height: 5.25rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(28,58,48,.95), rgba(15,31,26,.92));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: border-color .15s ease, transform .15s ease;
}
.sp-tile:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.sp-tile:active { transform: scale(.985); }
.sp-tile-label { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.sp-tile-blurb { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.sp-tile--pass { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sp-tile--license { border-color: color-mix(in srgb, #6bb8ff 45%, var(--line)); }
.sp-tile--cards { border-color: color-mix(in srgb, var(--accent2) 50%, var(--line)); }
.sp-tile--waivers { border-color: color-mix(in srgb, #c4a0e8 40%, var(--line)); }
.sp-tile--contact { border-color: color-mix(in srgb, #7dcea0 50%, var(--line)); }
.sp-tile--manage { border-color: color-mix(in srgb, #e0a060 45%, var(--line)); }

.sp-panel {
  margin-top: 1rem;
}
.sp-panel-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sp-panel-summary::-webkit-details-marker { display: none; }
.sp-panel-summary::before {
  content: "▸";
  color: var(--muted);
  font-size: .85rem;
  transition: transform .12s ease;
}
.sp-panel[open] > .sp-panel-summary::before { transform: rotate(90deg); }
.sp-panel-summary h2 {
  margin: 0;
  font-size: 1.15rem;
}

.sp-license {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.sp-license-photo { min-width: 0; }
.sp-license-img {
  display: block;
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}
.sp-license-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  min-height: 10rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgba(0,0,0,.12);
}
.sp-license-status--expired { color: #f3b4b0; }
.sp-license-status--expiring { color: #f0d59a; }
.sp-license-status--ok { color: #8fd9b8; }
.sp-license-status--missing { color: var(--muted); }

@media (max-width: 720px) {
  .sp-license { grid-template-columns: 1fr; }
}

/* Season pass report summary metrics — keep large currency amounts inside cards */
.sp-report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.75rem), 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
  align-items: stretch;
}
.sp-report-metric {
  margin-bottom: 0;
  min-width: 0;
  padding: 1rem 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .3rem;
}
.sp-report-metric__label {
  line-height: 1.25;
}
.sp-report-metric__value {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: none;
  font-size: clamp(1.05rem, 0.55rem + 1.8vw, 1.65rem);
}
.sp-report-metric__value--money {
  font-size: clamp(0.95rem, 0.4rem + 1.55vw, 1.45rem);
  letter-spacing: -0.01em;
}
@media (max-width: 480px) {
  .sp-report-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  }
}
