:root {
  color-scheme: dark;
  --bg-deep: #171e29;
  --bg: #232b38;
  --panel: rgba(29, 39, 52, 0.91);
  --panel-strong: rgba(39, 52, 69, 0.97);
  --edge: rgba(196, 209, 220, 0.22);
  --edge-bright: rgba(196, 209, 220, 0.56);
  --text: #f7f9fb;
  --muted: #9eacb9;
  --cyan: #c4d1dc;
  --cyan-soft: rgba(196, 209, 220, 0.11);
  --orange: #f29531;
  --orange-soft: rgba(242, 149, 49, 0.12);
  --strongclub-accent: #315bff;
  --strongclub-accent-soft: rgba(49, 91, 255, 0.14);
  --alert: #ff6f61;
  --safe-x: 2.65vw;
  font-family: Inter, Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

body { color: var(--text); }
#brand-strongclub, .galley-dashboard, .strongclub-dashboard { display: none; }
.display-shell[data-view="galley"] #ticket-dashboard,
.display-shell[data-view="galley"] #strongclub-dashboard { display: none; }
.display-shell[data-view="galley"] #galley-dashboard { display: block; }
.display-shell[data-view="strongclub"] { --sc-white:#f7f8fc; --sc-mid:#bcc2cd; --sc-muted:#9299a6; --sc-line:rgba(220,226,238,.17); --bg-deep:#030409; --bg:#080a0f; --panel:rgba(15,17,22,.94); --panel-strong:rgba(19,21,27,.98); --edge:var(--sc-line); --edge-bright:rgba(220,226,238,.44); --text:var(--sc-white); --muted:var(--sc-muted); --cyan:var(--strongclub-accent); --orange:var(--strongclub-accent); background:radial-gradient(circle at 80% 0%,var(--strongclub-accent-soft),transparent 30%),#05060a; }
.display-shell[data-view="strongclub"] .ambient-field { opacity:.35; background-image:linear-gradient(rgba(220,226,238,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(220,226,238,.018) 1px,transparent 1px); background-size:4vw 4vw; }
.display-shell[data-view="strongclub"] #brand-techahoy, .display-shell[data-view="strongclub"] #ticket-dashboard { display:none; }
.display-shell[data-view="strongclub"] #brand-strongclub { display:flex; }
.display-shell[data-view="strongclub"] #strongclub-dashboard { display:block; }
.strongclub-mark { display:block; width:2.35vw; height:2.35vw; border:0; object-fit:contain; transform:none; }
.strongclub-view-label { margin-left:.45vw; color:var(--muted); font-size:.55vw; font-weight:800; letter-spacing:.18em; }

.display-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 960px;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(196, 209, 220, 0.1), transparent 34%),
    radial-gradient(circle at 8% 96%, rgba(242, 149, 49, 0.08), transparent 30%),
    linear-gradient(135deg, #171e29, var(--bg) 54%, #1b2532);
}

.lifecycle-transition {
  position: absolute;
  z-index: 42;
  inset: 0;
  visibility: hidden;
  overflow: hidden;
  background: #02070c;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.display-shell.is-lifecycle-transitioning .lifecycle-transition {
  visibility: visible;
  opacity: 1;
  transition: none;
}
.lifecycle-transition-video,
.lifecycle-transition-dashboard-endpoint,
.lifecycle-transition-fallback,
.lifecycle-transition-vignette,
.lifecycle-transition-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lifecycle-transition-video {
  z-index: 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms linear;
}
.lifecycle-transition-video-playing .lifecycle-transition-video { opacity: 1; }
.lifecycle-transition-dashboard-endpoint {
  z-index: 6;
  display: none;
  background: #232b38 url("/assets/lifecycle/ta-dashboard-transition-dashboard-endpoint-v1.png") center / cover no-repeat;
}
.display-shell[data-view="galley"] .lifecycle-transition-dashboard-endpoint {
  background-image: url("/assets/lifecycle/galley-dashboard-transition-dashboard-endpoint-v1.png");
}
.display-shell[data-view="strongclub"] .lifecycle-transition-dashboard-endpoint {
  background-color: #030409;
  background-image: url("/assets/lifecycle/sc-dashboard-transition-dashboard-endpoint-v1.png");
}
.lifecycle-transition-fallback {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 149, 49, .12), transparent 17%),
    linear-gradient(rgba(112, 213, 231, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 213, 231, .04) 1px, transparent 1px),
    #02070c url("/assets/lifecycle/ta-dashboard-transition-sleep-endpoint-v6.jpg") center / cover no-repeat;
  background-size: auto, 4vw 4vw, 4vw 4vw, cover;
  opacity: .92;
}
.display-shell[data-view="strongclub"] .lifecycle-transition-fallback {
  background:
    radial-gradient(circle at 50% 50%, rgba(49, 91, 255, .16), transparent 19%),
    linear-gradient(rgba(49, 91, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 91, 255, .045) 1px, transparent 1px),
    #030409 url("/assets/lifecycle/sc-dashboard-transition-sleep-endpoint-v1.jpg") center / cover no-repeat;
  background-size: auto, 4vw 4vw, 4vw 4vw, cover;
}
.lifecycle-transition[data-kind="closing"] .lifecycle-transition-fallback {
  background: #232b38 url("/assets/lifecycle/ta-dashboard-transition-dashboard-endpoint-v1.png") center / cover no-repeat;
}
.lifecycle-transition[data-preparing-kind="closing"] .lifecycle-transition-fallback {
  background: #232b38 url("/assets/lifecycle/ta-dashboard-transition-dashboard-endpoint-v1.png") center / cover no-repeat;
}
.display-shell[data-view="galley"] .lifecycle-transition[data-kind="closing"] .lifecycle-transition-fallback {
  background-image: url("/assets/lifecycle/galley-dashboard-transition-dashboard-endpoint-v1.png");
}
.display-shell[data-view="galley"] .lifecycle-transition[data-preparing-kind="closing"] .lifecycle-transition-fallback {
  background-image: url("/assets/lifecycle/galley-dashboard-transition-dashboard-endpoint-v1.png");
}
.display-shell[data-view="strongclub"] .lifecycle-transition[data-kind="closing"] .lifecycle-transition-fallback {
  background-color: #030409;
  background-image: url("/assets/lifecycle/sc-dashboard-transition-dashboard-endpoint-v1.png");
}
.display-shell[data-view="strongclub"] .lifecycle-transition[data-preparing-kind="closing"] .lifecycle-transition-fallback {
  background-color: #030409;
  background-image: url("/assets/lifecycle/sc-dashboard-transition-dashboard-endpoint-v1.png");
}
.lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .lifecycle-transition-fallback,
.lifecycle-transition[data-kind="closing"][data-stage="handoff"] .lifecycle-transition-fallback {
  background: #02070c url("/assets/lifecycle/ta-dashboard-transition-sleep-endpoint-v6.jpg") center / cover no-repeat;
  opacity: 1;
}
.display-shell[data-view="galley"] .lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .lifecycle-transition-fallback,
.display-shell[data-view="galley"] .lifecycle-transition[data-kind="closing"][data-stage="handoff"] .lifecycle-transition-fallback {
  background-image: url("/assets/lifecycle/galley-dashboard-transition-sleep-endpoint-v1.jpg");
}
.display-shell[data-view="strongclub"] .lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .lifecycle-transition-fallback,
.display-shell[data-view="strongclub"] .lifecycle-transition[data-kind="closing"][data-stage="handoff"] .lifecycle-transition-fallback {
  background-color: #030409;
  background-image: url("/assets/lifecycle/sc-dashboard-transition-sleep-endpoint-v1.jpg");
}
.lifecycle-transition-video-fallback .lifecycle-transition-video { opacity: 0; }
.lifecycle-transition-video-fallback .lifecycle-transition-fallback { opacity: .92; }
.lifecycle-transition-force-fallback .lifecycle-transition-video { opacity: 0; }
.lifecycle-transition-force-fallback .lifecycle-transition-fallback { opacity: .92; }
.lifecycle-transition-vignette {
  z-index: 1;
  display: none;
  background: radial-gradient(circle at center, transparent 0 24%, rgba(1, 6, 10, .08) 42%, rgba(1, 5, 8, .7) 100%);
}
.lifecycle-transition-frame {
  z-index: 2;
  inset: 8vh 6vw;
  width: auto;
  height: auto;
  border: 1px solid rgba(112, 213, 231, .26);
  display: none;
  opacity: 0;
  transform: translateZ(0) scale(.84);
  transition: opacity 600ms ease, transform 950ms cubic-bezier(.18,.82,.22,1);
}
.lifecycle-transition-frame::before,
.lifecycle-transition-frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(112, 213, 231, .18);
}
.lifecycle-transition-frame::before { inset: 7vh 9vw; }
.lifecycle-transition-frame::after { inset: 14vh 18vw; border-color: rgba(242, 149, 49, .22); }
.lifecycle-transition-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: none;
  width: 30vh;
  place-items: center;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 520ms ease, transform 900ms cubic-bezier(.16,.82,.24,1);
}
.lifecycle-transition-video-fallback .lifecycle-transition-vignette,
.lifecycle-transition-force-fallback .lifecycle-transition-vignette,
.lifecycle-transition-video-fallback .lifecycle-transition-frame,
.lifecycle-transition-force-fallback .lifecycle-transition-frame,
.lifecycle-transition-video-fallback .lifecycle-transition-core,
.lifecycle-transition-force-fallback .lifecycle-transition-core { display: grid; }
.lifecycle-transition-video-fallback .lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .lifecycle-transition-core,
.lifecycle-transition-force-fallback .lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .lifecycle-transition-core,
.lifecycle-transition-video-fallback .lifecycle-transition[data-kind="closing"][data-stage="handoff"] .lifecycle-transition-core,
.lifecycle-transition-force-fallback .lifecycle-transition[data-kind="closing"][data-stage="handoff"] .lifecycle-transition-core,
.lifecycle-transition-video-fallback .lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .strongclub-lifecycle-frame,
.lifecycle-transition-force-fallback .lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .strongclub-lifecycle-frame,
.lifecycle-transition-video-fallback .lifecycle-transition[data-kind="closing"][data-stage="handoff"] .strongclub-lifecycle-frame,
.lifecycle-transition-force-fallback .lifecycle-transition[data-kind="closing"][data-stage="handoff"] .strongclub-lifecycle-frame {
  display: none;
}
.lifecycle-transition-sleep-copy {
  position: absolute;
  z-index: 5;
  top: 60.8%;
  left: 50%;
  display: grid;
  min-width: 30vw;
  place-items: center;
  color: #a5bbc4;
  opacity: 0;
  text-align: center;
  transform: translate3d(-50%, 1.2vh, 0);
  transition: opacity 360ms ease, transform 520ms ease;
}
.lifecycle-transition-sleep-copy span {
  font-size: .8vw;
  font-weight: 650;
  letter-spacing: .06em;
}
.lifecycle-transition-sleep-copy time {
  margin-top: .9vh;
  padding: 0;
  background: none;
  color: #eef8fa;
  font-size: 3.15vw;
  font-weight: 430;
  letter-spacing: .11em;
  line-height: 1;
  text-shadow: 0 0 1.4vw rgba(112, 213, 231, .18);
}
.lifecycle-transition[data-kind="opening"][data-stage="depart-sleep"] .lifecycle-transition-sleep-copy,
.lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .lifecycle-transition-sleep-copy,
.lifecycle-transition[data-kind="closing"][data-stage="handoff"] .lifecycle-transition-sleep-copy {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}
.lifecycle-transition-anchor {
  position: relative;
  z-index: 2;
  width: 22vh;
  min-width: 126px;
  max-width: 250px;
  height: 22vh;
  object-fit: contain;
  filter: drop-shadow(0 0 1.4vw rgba(242, 149, 49, .42));
  transform: translateZ(0);
  transition: opacity 420ms ease, transform 820ms cubic-bezier(.16,.82,.24,1);
}
.lifecycle-transition-ring {
  position: absolute;
  width: 27vh;
  min-width: 156px;
  max-width: 305px;
  height: 27vh;
  min-height: 156px;
  max-height: 305px;
  border: 1px solid rgba(242, 149, 49, .42);
  border-radius: 50%;
  opacity: .4;
  transform: translateZ(0) scale(.82);
  transition: opacity 480ms ease, transform 900ms ease;
}
.display-shell[data-view="strongclub"] .lifecycle-transition-anchor {
  width: 23vh;
  height: 23vh;
  filter: drop-shadow(0 0 1.55vw rgba(49, 91, 255, .58));
}
.display-shell[data-view="strongclub"] .lifecycle-transition-ring {
  border-color: rgba(49, 91, 255, .58);
  box-shadow: 0 0 1.4vw rgba(49, 91, 255, .13);
}
.lifecycle-transition[data-kind="opening"][data-stage="depart-sleep"] .lifecycle-transition-core {
  transform: translate3d(-50%, -50%, 0) scale(.88);
}
.lifecycle-transition[data-kind="opening"][data-stage="depart-sleep"] .lifecycle-transition-ring {
  opacity: .7;
  transform: translateZ(0) scale(.68);
}
.lifecycle-transition[data-kind="opening"][data-stage="energise"] .lifecycle-transition-anchor {
  animation: lifecycle-anchor-charge 1.35s ease-in-out infinite;
}
.lifecycle-transition[data-kind="opening"][data-stage="energise"] .lifecycle-transition-ring {
  opacity: .82;
  transform: translateZ(0) scale(1.36);
}
.lifecycle-transition[data-kind="opening"][data-stage="assemble"] .lifecycle-transition-frame,
.lifecycle-transition[data-kind="closing"][data-stage="collapse"] .lifecycle-transition-frame,
.lifecycle-transition[data-kind="closing"][data-stage="settle"] .lifecycle-transition-frame {
  opacity: .78;
  transform: translateZ(0) scale(1);
}
.lifecycle-transition[data-kind="opening"][data-stage="assemble"] .lifecycle-transition-anchor {
  transform: translateZ(0) scale(1.12);
}
.lifecycle-transition[data-kind="opening"][data-stage="reveal"] {
  opacity: 0;
  transition: opacity .65s ease;
}
.lifecycle-transition[data-kind="opening"][data-stage="reveal"] .lifecycle-transition-dashboard-endpoint {
  display: block;
}
.display-shell[data-view="strongclub"] .lifecycle-transition[data-kind="closing"][data-stage="collapse"],
.display-shell[data-view="strongclub"] .lifecycle-transition[data-kind="closing"][data-stage="settle"],
.display-shell[data-view="strongclub"] .lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] {
  opacity: 1;
}
.lifecycle-transition[data-kind="opening"][data-stage="reveal"] .lifecycle-transition-core {
  opacity: 0;
  transform: translate3d(-50%, -84%, 0) scale(.48);
}
.lifecycle-transition[data-kind="closing"][data-stage="latch"] { opacity: .36; }
.lifecycle-transition[data-kind="closing"][data-stage="latch"] .lifecycle-transition-core { opacity: 0; }
.lifecycle-transition[data-kind="closing"][data-stage="collapse"] { opacity: .82; }
.lifecycle-transition[data-kind="closing"][data-stage="collapse"] .lifecycle-transition-core {
  opacity: .6;
  transform: translate3d(-50%, -50%, 0) scale(.72);
}
.lifecycle-transition[data-kind="closing"][data-stage="settle"] .lifecycle-transition-core {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}
.lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] .lifecycle-transition-frame {
  opacity: 0;
}
.lifecycle-transition[data-kind="closing"][data-stage="settle"] .lifecycle-transition-anchor {
  animation: lifecycle-anchor-settle 2.6s ease-out both;
}
.lifecycle-transition[data-kind="closing"][data-stage="settle"] .lifecycle-transition-ring {
  opacity: .5;
  transform: translateZ(0) scale(1.14);
}
.lifecycle-transition[data-kind="closing"][data-stage="collapse"] ~ .masthead,
.lifecycle-transition[data-kind="closing"][data-stage="collapse"] ~ .dashboard {
  opacity: .3;
  transform: translateZ(0) scale(.96);
}
.lifecycle-transition[data-kind="closing"][data-stage="settle"] ~ .masthead,
.lifecycle-transition[data-kind="closing"][data-stage="settle"] ~ .dashboard,
.lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] ~ .masthead,
.lifecycle-transition[data-kind="closing"][data-stage="sleep-land"] ~ .dashboard {
  opacity: 0;
  transform: translateZ(0) scale(.92);
}
.display-shell.is-closing-transition .masthead,
.display-shell.is-closing-transition .dashboard {
  transition: opacity 1200ms ease, transform 1600ms cubic-bezier(.18,.78,.22,1);
}
.display-shell.is-closing-transition .brand-anchor,
.display-shell.is-closing-transition .brand-anchor-shell::before,
.display-shell.is-closing-transition .officer-flash,
.display-shell.is-closing-transition .crew-new-badge,
.display-shell.is-closing-transition .crew-new-badge::after,
.display-shell.is-closing-transition .crew-late-badge,
.display-shell.is-closing-transition .galley-late-badge,
.display-shell.is-closing-transition .crew-arrival-info-badge,
.display-shell.is-closing-transition .galley-arrival-info-badge,
.display-shell.is-closing-transition .crew-made-it-badge,
.display-shell.is-closing-transition .galley-made-it-badge,
.display-shell.is-closing-transition .sick-flow { animation-play-state: paused; }
.display-shell.is-boot-revealing .masthead { animation: lifecycle-region-strike 820ms cubic-bezier(.16,.82,.24,1) both; }
.display-shell.is-boot-revealing .dashboard-grid > *,
.display-shell.is-boot-revealing .galley-crew-deck,
.display-shell.is-boot-revealing .strongclub-dashboard > * {
  animation: lifecycle-region-strike 920ms cubic-bezier(.16,.82,.24,1) both;
}
.display-shell.is-boot-revealing .dashboard-grid > *:nth-child(2),
.display-shell.is-boot-revealing .strongclub-dashboard > *:nth-child(2) { animation-delay: 130ms; }
.display-shell.is-boot-revealing .dashboard-grid > *:nth-child(3),
.display-shell.is-boot-revealing .strongclub-dashboard > *:nth-child(3) { animation-delay: 260ms; }

/* Deterministic local-only endpoint used to render the transition film. */
.lifecycle-neutral-capture .lifecycle-transition,
.lifecycle-neutral-capture .sleep-screen,
.lifecycle-neutral-capture .pairing-screen,
.lifecycle-neutral-capture .display-announcement { display: none !important; }
.lifecycle-transition-preview .pairing-screen { display: none !important; }
.lifecycle-neutral-capture .masthead,
.lifecycle-neutral-capture .dashboard {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.lifecycle-neutral-capture .system-state { visibility: hidden; }
.lifecycle-neutral-capture .metric-card {
  border-color: rgba(196, 209, 220, .22) !important;
  background: linear-gradient(145deg, rgba(39, 52, 69, .94), rgba(29, 39, 52, .9)) !important;
}
.lifecycle-neutral-capture .metric-card::before { background: linear-gradient(90deg, rgba(196, 209, 220, .42), transparent) !important; }
.lifecycle-neutral-capture .metric-warning { display: none !important; }
.lifecycle-neutral-capture .crew-card {
  border-color: rgba(196, 209, 220, .22) !important;
  background: rgba(29, 39, 52, .9) !important;
  box-shadow: none !important;
  opacity: .72 !important;
  animation: none !important;
}
.lifecycle-neutral-capture .crew-card strong { display: none !important; }
.lifecycle-neutral-capture .crew-card > span:not(.crew-presence-marker) { color: #758493 !important; }
.lifecycle-neutral-capture .crew-presence-marker,
.lifecycle-neutral-capture .crew-new-badge,
.lifecycle-neutral-capture .crew-late-badge,
.lifecycle-neutral-capture .crew-arrival-info-badge,
.lifecycle-neutral-capture .crew-made-it-badge,
.lifecycle-neutral-capture .crew-insignia,
.lifecycle-neutral-capture .galley-insignia,
.lifecycle-neutral-capture .officer-flash,
.lifecycle-neutral-capture .start-date { display: none !important; }
.lifecycle-neutral-capture .crew-harvey,
.lifecycle-neutral-capture .galley-harvey,
.lifecycle-neutral-capture .night-presence { display: none !important; }
.lifecycle-neutral-capture .crew-lines path { stroke: rgba(196, 209, 220, .3); }
.lifecycle-neutral-capture .metric-value { color: #7c8996; }
.lifecycle-neutral-capture .gauge-value,
.lifecycle-neutral-capture .gauge-needle { opacity: .22; }
.lifecycle-neutral-capture .ticket-rows {
  min-height: 22vh;
  background: repeating-linear-gradient(to bottom, transparent 0 3.65vh, rgba(196, 209, 220, .07) 3.65vh 3.75vh);
}
.lifecycle-neutral-capture .galley-crew-deck {
  background: linear-gradient(145deg, rgba(39, 52, 69, .92), rgba(35, 43, 56, .78)) !important;
  box-shadow: none !important;
}
.lifecycle-neutral-capture .galley-person-card {
  border-color: rgba(196, 209, 220, .22) !important;
  background: rgba(29, 39, 52, .9) !important;
  box-shadow: none !important;
  color: #758493 !important;
  opacity: .72 !important;
  animation: none !important;
}
.lifecycle-neutral-capture .galley-avatar > span,
.lifecycle-neutral-capture .galley-avatar img,
.lifecycle-neutral-capture .galley-person-copy strong,
.lifecycle-neutral-capture .galley-location,
.lifecycle-neutral-capture .galley-status-marker,
.lifecycle-neutral-capture .galley-new-badge,
.lifecycle-neutral-capture .galley-late-badge,
.lifecycle-neutral-capture .galley-arrival-info-badge,
.lifecycle-neutral-capture .galley-made-it-badge,
.lifecycle-neutral-capture .galley-officer-flash { display: none !important; }
.lifecycle-neutral-capture .galley-avatar {
  border-color: rgba(196, 209, 220, .2) !important;
  background: rgba(35, 43, 56, .82) !important;
}
.lifecycle-neutral-capture .galley-role { color: #758493 !important; }
.lifecycle-neutral-capture .galley-crew-lines path { stroke: rgba(196, 209, 220, .3); }

.sleep-screen {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  overflow: hidden;
  background: #02070c;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
}
.display-shell.is-sleeping .sleep-screen {
  visibility: visible;
  opacity: 1;
  transition: opacity 900ms ease;
}
.sleep-background-video,
.sleep-background-fallback,
.sleep-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sleep-background-video {
  z-index: 1;
  object-fit: cover;
  opacity: 0;
}
.sleep-background-fallback {
  z-index: 0;
  background: #02070c url("/assets/lifecycle/ta-sleep-loop-poster-v1.jpg") center / cover no-repeat;
  opacity: .96;
}
.display-shell[data-view="strongclub"] .sleep-background-fallback {
  background: #030409 url("/assets/lifecycle/sc-sleep-loop-poster-v1.jpg") center / cover no-repeat;
}
.sleep-video-playing .sleep-background-video { opacity: .96; }
.sleep-video-fallback .sleep-background-video,
.is-lifecycle-preloading .sleep-background-video { opacity: 0; }
.sleep-video-fallback .sleep-background-fallback { opacity: .96; }
.sleep-vignette {
  z-index: 2;
  background: radial-gradient(circle at center, rgba(2, 7, 12, .04) 0 27%, rgba(2, 7, 12, .02) 48%, rgba(2, 7, 12, .14) 100%);
}
.sleep-core {
  position: relative;
  z-index: 4;
  display: grid;
  width: 42vw;
  min-width: 470px;
  place-items: center;
  text-align: center;
}
.night-presence {
  position: absolute;
  z-index: 5;
  bottom: 3.4vh;
  left: 3vw;
  display: grid;
  visibility: hidden;
  gap: 0.75vh;
  opacity: 0;
  transform: translateY(1.2vh);
  transition: opacity 550ms ease, transform 550ms ease, visibility 0s linear 550ms;
  pointer-events: none;
}
.night-presence.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 550ms ease, transform 550ms ease;
}
.display-shell.is-lifecycle-transitioning .night-presence {
  visibility: hidden;
  opacity: 0;
  transform: translateY(1.2vh);
}
.night-presence-label {
  color: rgba(196, 209, 220, 0.68);
  font-size: 0.52vw;
  font-weight: 820;
  letter-spacing: 0.16em;
}
.night-presence-people {
  display: flex;
  flex-wrap: wrap;
  max-width: 94vw;
  gap: 0.55vw;
}
.night-presence-card {
  display: flex;
  box-sizing: border-box;
  width: 13.8vw;
  min-width: 165px;
  height: 6.4vh;
  min-height: 52px;
  padding: 0.68vh 0.72vw;
  align-items: center;
  gap: 0.62vw;
  border: 1px solid rgba(196, 209, 220, 0.32);
  border-radius: 0.28vw;
  background: rgba(9, 19, 31, 0.76);
  box-shadow: inset 0 0 1vw rgba(112, 213, 231, 0.04), 0 0.45vh 1.2vw rgba(0, 0, 0, 0.24);
}
.night-presence-mark {
  display: block;
  width: 1.55vw;
  min-width: 22px;
  height: 1.55vw;
  min-height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}
.night-presence-copy {
  display: grid;
  min-width: 0;
  gap: 0.2vh;
}
.night-presence-copy strong {
  overflow: hidden;
  color: #eef5f7;
  font-size: 0.76vw;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.night-presence-copy span {
  color: var(--cyan);
  font-size: 0.46vw;
  font-weight: 840;
  letter-spacing: 0.1em;
}
.night-presence-everhold { border-color: rgba(255, 255, 255, 0.36); }
.everhold-infinity-mark {
  position: relative;
  display: block;
  overflow: hidden;
  width: 1.12vw;
  min-width: 16px;
  height: 0.9vw;
  min-height: 13px;
  flex: 0 0 auto;
}
.everhold-infinity-mark img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: contain;
  filter: none !important;
}
.sleep-anchor {
  position: relative;
  z-index: 2;
  width: 22vh;
  min-width: 126px;
  max-width: 250px;
  height: 22vh;
  object-fit: contain;
  filter: drop-shadow(0 0 1.2vw rgba(242, 149, 49, .34));
  animation: sleep-anchor-breathe 5.6s ease-in-out infinite;
  will-change: transform, opacity;
}
.sleep-anchor-orbit {
  position: absolute;
  top: 0;
  width: 27vh;
  min-width: 156px;
  max-width: 305px;
  height: 27vh;
  min-height: 156px;
  max-height: 305px;
  border: 1px solid rgba(242, 149, 49, .32);
  border-radius: 50%;
  transform: translateY(-2vh);
  animation: sleep-anchor-orbit 5.6s ease-out infinite;
  will-change: transform, opacity;
}
.display-shell[data-view="strongclub"] .sleep-anchor {
  width: 23vh;
  height: 23vh;
  filter: drop-shadow(0 0 1.35vw rgba(49, 91, 255, .55));
}
.display-shell[data-view="strongclub"] .sleep-anchor-orbit {
  border-color: rgba(49, 91, 255, .55);
  box-shadow: 0 0 1.5vw rgba(49, 91, 255, .12);
}
.sleep-state { margin-top: 2.8vh; color: #8ba0aa; font-size: .62vw; font-weight: 820; letter-spacing: .24em; }
.sleep-countdown-label { margin-top: 5.5vh; color: #a5bbc4; font-size: .8vw; font-weight: 650; letter-spacing: .06em; }
.sleep-countdown { margin-top: .9vh; color: #eef8fa; font-size: 3.15vw; font-weight: 430; letter-spacing: .11em; line-height: 1; text-shadow: 0 0 1.4vw rgba(112, 213, 231, .18); }
.sleep-context { margin-top: 1.7vh; color: #f2a35a; font-size: .68vw; font-weight: 720; letter-spacing: .1em; }
.sleep-context[hidden] { display: none; }
.display-shell[data-view="strongclub"] .sleep-state { color: #aeb9cf; }
.display-shell[data-view="strongclub"] .sleep-countdown-label { color: #aeb9cf; }
.display-shell[data-view="strongclub"] .sleep-countdown { text-shadow: 0 0 1.5vw rgba(49, 91, 255, .3); }
.display-shell[data-view="strongclub"] .sleep-context { color: var(--strongclub-accent); }

.strongclub-sleep-frame,
.strongclub-lifecycle-frame {
  position: absolute;
  z-index: 3;
  inset: 3.8vh 2.35vw;
  display: none;
  border: 1px solid rgba(49, 91, 255, .48);
  box-shadow: inset 0 0 2.4vw rgba(49, 91, 255, .045), 0 0 1.8vw rgba(49, 91, 255, .045);
  pointer-events: none;
}
.strongclub-sleep-frame::before,
.strongclub-lifecycle-frame::before {
  content: "";
  position: absolute;
  inset: 1.3vh .75vw;
  border: 1px solid rgba(49, 91, 255, .13);
}
.display-shell[data-view="strongclub"] .strongclub-sleep-frame { display: block; }
.lifecycle-transition-video-fallback .display-shell[data-view="strongclub"] .strongclub-lifecycle-frame,
.lifecycle-transition-force-fallback .display-shell[data-view="strongclub"] .strongclub-lifecycle-frame { display: block; }
.strongclub-frame-mark {
  position: absolute;
  width: 3.4vh;
  height: 3.4vh;
  object-fit: contain;
  opacity: .48;
  filter: drop-shadow(0 0 .65vw rgba(49, 91, 255, .52));
  animation: strongclub-frame-idle 8s ease-in-out infinite;
}
.strongclub-frame-mark-top { top: -1.7vh; left: 50%; transform: translateX(-50%); }
.strongclub-frame-mark-right { top: 50%; right: -1.7vh; transform: translateY(-50%) rotate(90deg); }
.strongclub-frame-mark-bottom { bottom: -1.7vh; left: 50%; transform: translateX(-50%) rotate(180deg); }
.strongclub-frame-mark-left { top: 50%; left: -1.7vh; transform: translateY(-50%) rotate(-90deg); }
.sleep-night-cue {
  position: absolute;
  top: -7vh;
  right: 5vw;
  width: 2.4vh;
  height: 2.4vh;
  border-radius: 50%;
  background: #d7e6ec;
  box-shadow: 0 0 1.5vw rgba(193, 224, 235, .22);
  opacity: .76;
}
.sleep-night-cue::after {
  content: "";
  position: absolute;
  top: -.3vh;
  left: .65vh;
  width: 2.4vh;
  height: 2.4vh;
  border-radius: 50%;
  background: #06131b;
}

.display-announcement {
  position: absolute;
  z-index: 45;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.display-announcement.is-visible { visibility: visible; }
.display-announcement-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(1, 7, 11, 0.82);
  transition: opacity 420ms ease;
}
.display-announcement-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 74vw;
  min-height: 58vh;
  align-items: center;
  gap: 4.4vw;
  padding: 5.5vh 5vw;
  opacity: 0;
  transform: translate3d(-50%, -37%, 0) scale(0.74);
  transition: opacity 380ms ease, transform 900ms cubic-bezier(0.16, 0.82, 0.24, 1);
}
.display-announcement-surface {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 106, 26, 0.76);
  background: linear-gradient(135deg, rgba(4, 15, 22, 0.99), rgba(15, 45, 56, 0.99));
  box-shadow: 0 3vh 12vh rgba(0, 0, 0, 0.7), inset 0 0 5vw rgba(255, 106, 26, 0.07);
  transition: opacity 360ms ease, transform 480ms ease;
}
.display-announcement-portrait {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  width: 31vh;
  height: 31vh;
  place-items: center;
  overflow: visible;
  border: 2px solid rgba(255, 106, 26, 0.76);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #173c4a, #07161e 72%);
  box-shadow: 0 0 0 1.2vh rgba(255, 106, 26, 0.08), 0 2.5vh 7vh rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translate3d(0, 18vh, 0) scale(0.52);
  transform-origin: center;
  transition: opacity 420ms ease, transform 1100ms cubic-bezier(0.16, 0.88, 0.22, 1);
  will-change: transform, opacity;
}
.display-announcement-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 260ms ease;
}
.display-announcement-portrait.has-avatar .display-announcement-avatar { opacity: 1; }
.display-announcement-initials { color: #cde5eb; font-size: 7.3vh; font-weight: 580; letter-spacing: -0.05em; }
.display-announcement-anchor-badge {
  position: absolute;
  z-index: 3;
  right: -1.5vh;
  bottom: -1.5vh;
  display: grid;
  width: 7.2vh;
  height: 7.2vh;
  place-items: center;
  border: 1px solid rgba(255, 106, 26, 0.88);
  border-radius: 50%;
  background: #07131a;
}
.display-announcement-anchor-badge img { width: 5.6vh; height: 5.6vh; object-fit: contain; }
.display-announcement-anchor-badge.has-location-context {
  width: 8.4vh;
  height: 8.4vh;
  border-color: rgba(196, 209, 220, 0.68);
  border-radius: 1.2vh;
  background: rgba(239, 244, 247, 0.96);
}
.announcement-location-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 4.8vh;
  line-height: 1;
}
.announcement-location-emoji.is-combined {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.45vh;
}
.announcement-location-emoji.is-combined .location-emoji-part + .location-emoji-part { margin-left: 0.7vh; }
.announcement-client-logo { display: block; width: 6.8vh; max-height: 5.8vh; padding: 0; border-radius: 0; background: transparent; object-fit: contain; }
.announcement-client-code { color: #f8fbfd; font-size: 1.75vh; font-weight: 900; letter-spacing: 0.08em; }
.display-announcement-copy { position: relative; z-index: 2; display: grid; max-width: 40vw; gap: 1.6vh; transition: opacity 320ms ease, transform 440ms ease; }
.display-announcement-copy small { color: var(--orange); font-size: 0.82vw; font-weight: 850; letter-spacing: 0.24em; }
.display-announcement-copy strong { font-size: 3.7vw; font-weight: 520; letter-spacing: -0.045em; line-height: 1.02; }
.display-announcement-copy > span { color: #a7c2ca; font-size: 0.68vw; font-weight: 800; letter-spacing: 0.18em; }
.display-announcement.is-visible .display-announcement-backdrop { opacity: 1; }
.display-announcement.is-visible .display-announcement-card { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.display-announcement.is-visible .display-announcement-portrait { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.display-announcement.is-departing .display-announcement-backdrop { opacity: 0; }
.display-announcement.is-departing .display-announcement-surface { opacity: 0; transform: scale(0.92); }
.display-announcement.is-departing .display-announcement-copy { opacity: 0; transform: translate3d(0, 2vh, 0) scale(0.96); }
.display-shell[data-view="strongclub"] .display-announcement:not(.is-hector) { display: none; }
.display-announcement.is-hector .display-announcement-card {
  width: 78vw;
  min-height: 64vh;
  gap: 4.8vw;
}
.display-announcement.is-hector .display-announcement-surface {
  border-color: rgba(242, 149, 49, 0.9);
  background: linear-gradient(135deg, rgba(7, 18, 38, 0.99), rgba(35, 43, 56, 0.99));
  box-shadow: 0 3vh 12vh rgba(0, 0, 0, 0.76), inset 0 0 7vw rgba(49, 91, 255, 0.08);
}
.display-announcement.is-hector .display-announcement-portrait {
  width: 42vh;
  height: 42vh;
  border-color: rgba(242, 149, 49, 0.95);
  border-radius: 2.8vh;
  background: #071226;
  box-shadow: 0 0 0 1.2vh rgba(49, 91, 255, 0.08), 0 2.5vh 7vh rgba(0, 0, 0, 0.55);
  transform: translate3d(-5vw, 18vh, 0) scale(0.5) rotate(-4deg);
}
.display-announcement.is-hector .display-announcement-avatar { border-radius: 2.6vh; }
.display-announcement.is-hector .display-announcement-copy { max-width: 42vw; }
.display-announcement.is-hector .display-announcement-copy small { color: #f29531; }
.display-announcement.is-hector.is-visible .display-announcement-portrait {
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}
.display-announcement.is-hector.is-departing .display-announcement-portrait {
  opacity: 0;
  transform: translate3d(5vw, -8vh, 0) scale(0.92) rotate(2deg);
}

.helpdesk-call-signal {
  position: absolute;
  z-index: 46;
  top: 2.2vh;
  left: 50%;
  box-sizing: border-box;
  display: flex;
  min-width: 31vw;
  max-width: 52vw;
  min-height: 8.2vh;
  align-items: center;
  gap: 1.15vw;
  padding: 1.15vh 1.4vw;
  overflow: hidden;
  border: 1px solid rgba(242, 149, 49, .88);
  border-radius: .55vw;
  background: linear-gradient(135deg, rgba(36, 43, 57, .98), rgba(11, 29, 39, .98));
  box-shadow: 0 1.2vh 4vh rgba(0, 0, 0, .58), inset .28vw 0 0 #f29531;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -130%, 0);
  transition: opacity 220ms ease, transform 420ms cubic-bezier(.16, .84, .24, 1);
}
.helpdesk-call-signal.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}
.helpdesk-call-signal[data-phase="connected"] {
  border-color: rgba(87, 200, 220, .9);
  box-shadow: 0 1.2vh 4vh rgba(0, 0, 0, .58), inset .28vw 0 0 #57c8dc;
}
.helpdesk-call-signal[data-phase="ended"] {
  border-color: rgba(196, 209, 220, .56);
  box-shadow: 0 1.2vh 4vh rgba(0, 0, 0, .58), inset .28vw 0 0 #c4d1dc;
}
.helpdesk-call-icon {
  display: grid;
  flex: 0 0 auto;
  width: 4.7vh;
  height: 4.7vh;
  place-items: center;
  border: 1px solid rgba(242, 149, 49, .76);
  border-radius: 50%;
  background: rgba(242, 149, 49, .1);
}
.helpdesk-call-signal[data-phase="ringing"] .helpdesk-call-icon { animation: helpdesk-call-ring 1.1s ease-in-out infinite; }
.helpdesk-call-signal[data-phase="connected"] .helpdesk-call-icon { border-color: rgba(87, 200, 220, .76); background: rgba(87, 200, 220, .1); }
.helpdesk-call-signal[data-phase="ended"] .helpdesk-call-icon { border-color: rgba(196, 209, 220, .48); background: rgba(196, 209, 220, .08); }
.helpdesk-call-icon svg { width: 2.65vh; height: 2.65vh; fill: #f29531; }
.helpdesk-call-signal[data-phase="connected"] .helpdesk-call-icon svg { fill: #57c8dc; }
.helpdesk-call-signal[data-phase="ended"] .helpdesk-call-icon svg { fill: #c4d1dc; }
.helpdesk-call-copy { display: grid; min-width: 0; gap: .3vh; }
.helpdesk-call-copy small { color: #f29531; font-size: .58vw; font-weight: 900; letter-spacing: .18em; }
.helpdesk-call-signal[data-phase="connected"] .helpdesk-call-copy small { color: #57c8dc; }
.helpdesk-call-signal[data-phase="ended"] .helpdesk-call-copy small { color: #c4d1dc; }
.helpdesk-call-copy strong { color: #fff; font-size: 1.45vw; font-weight: 720; letter-spacing: .035em; line-height: 1.05; }
.helpdesk-call-copy > span { overflow: hidden; color: #c4d1dc; font-size: .74vw; font-weight: 720; letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
@keyframes helpdesk-call-ring {
  0%, 100% { transform: rotate(0deg) scale(1); }
  18% { transform: rotate(-7deg) scale(1.04); }
  36% { transform: rotate(7deg) scale(1.04); }
  54% { transform: rotate(-4deg) scale(1.02); }
  72% { transform: rotate(4deg) scale(1.02); }
}
.crew-card.arrival-landed { animation: arrival-card-land 1.25s ease-out 1; }

.ambient-field {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(112, 213, 231, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 213, 231, 0.025) 1px, transparent 1px),
    linear-gradient(112deg, transparent 45%, rgba(112, 213, 231, 0.045) 50%, transparent 55%);
  background-size: 4vw 4vw, 4vw 4vw, 180% 100%;
  /* Static on purpose: full-screen background animation is too costly on the target webOS TV. */
}

.masthead {
  position: absolute;
  z-index: 10;
  right: var(--safe-x);
  left: var(--safe-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead {
  top: 1.5vh;
  height: 8.2vh;
  border-bottom: 1px solid var(--edge);
}

.brand-lockup,
.system-state { display: flex; align-items: center; }

.brand-lockup { gap: 0.72vw; }

.brand-anchor-shell {
  position: relative;
  display: grid;
  width: 2.75vw;
  min-width: 34px;
  height: 2.75vw;
  min-height: 34px;
  place-items: center;
}
.brand-anchor-shell::before {
  content: "";
  position: absolute;
  inset: -0.18vw;
  border: 1px solid rgba(255, 106, 26, 0.72);
  border-radius: 50%;
  animation: anchor-wave 4.8s ease-out infinite;
  will-change: transform, opacity;
}

.anchor-mark {
  width: 2.35vw;
  min-width: 28px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 106, 26, 0.26));
}
.brand-anchor {
  transform: translateZ(0) scale(1);
  transform-origin: center;
  animation: anchor-breathe 4.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.brand-name { font-size: 1.35vw; font-weight: 680; letter-spacing: 0.015em; }

.system-state {
  gap: 0.55vw;
  color: var(--muted);
  font-size: 0.7vw;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.source-summary { display: flex; align-items: center; gap: 0.55vw; }

.source-badge { color: var(--cyan); font-weight: 800; letter-spacing: 0.16em; }
.source-badge.state-stale,
.source-badge.state-error,
.source-badge.state-unknown { color: var(--orange); }
.source-time { margin-right: 1.2vw; letter-spacing: 0.04em; }

.system-state time {
  min-width: 4.7vw;
  margin-left: 1vw;
  color: var(--text);
  font-size: 1.18vw;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: right;
}

.connection-dot {
  width: 0.42vw;
  height: 0.42vw;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.connection-dot.is-live {
  background: var(--cyan);
  animation: pulse 2.4s ease-out infinite;
}

.dashboard {
  position: absolute;
  z-index: 3;
  top: 10.8vh;
  right: var(--safe-x);
  bottom: 1.4vh;
  left: var(--safe-x);
}

.eyebrow {
  margin: 0 0 0.6vh;
  color: var(--cyan);
  font-size: 0.58vw;
  font-weight: 750;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  font-size: 3vw;
  font-weight: 420;
  letter-spacing: -0.035em;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  grid-template-rows: 50vh 35.4vh;
  gap: 0.65vw;
}

.metric-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 29.9vh 19.45vh;
  gap: 0.65vh 0.48vw;
}

.metric-card,
.crew-panel,
.tickets-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.016), 0 1.2vh 3vh rgba(0, 0, 0, 0.12);
}

.metric-card::before,
.crew-panel::before,
.tickets-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 24%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.72;
}

.metric-card {
  padding: 1.25vh 0.9vw;
  transition: border-color 500ms ease, background 500ms ease;
}

.metric-label {
  display: block;
  color: #d3dbe3;
  font-size: 0.84vw;
  font-weight: 760;
  letter-spacing: 0.055em;
}

.metric-value {
  display: block;
  color: var(--text);
  font-size: 4.05vw;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.metric-time::after {
  content: "m";
  margin-left: 0.15em;
  color: #d3dbe3;
  font-size: 0.38em;
  font-weight: 620;
  letter-spacing: 0;
}
.metric-time.is-unknown::after { content: ""; }

.gauge-card .metric-copy {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.gauge-card .metric-label { position: absolute; top: 1.25vh; left: 0.9vw; }
.gauge-card .metric-value {
  position: absolute;
  top: 20.4vh;
  left: 0;
  width: 100%;
  font-size: 2.65vw;
  text-align: center;
}

.gauge {
  position: absolute;
  top: 4.3vh;
  left: 50%;
  width: 77%;
  height: 16vh;
  overflow: visible;
  transform: translateX(-50%);
}

.gauge-track,
.gauge-value,
.gauge-rail,
.gauge-ticks {
  fill: none;
  stroke-linecap: butt;
}
.gauge-rail { stroke: rgba(196, 209, 220, 0.28); stroke-width: 1.5; }
.gauge-ticks { stroke: rgba(247, 249, 251, 0.54); stroke-width: 2; }
.gauge-track { stroke: rgba(196, 209, 220, 0.14); stroke-width: 17; }
.gauge-value {
  stroke: var(--cyan);
  stroke-width: 17;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 5px rgba(196, 209, 220, 0.34));
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 0.78, 0.18, 1);
}
.gauge-needle {
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 110px 108px;
  transform: rotate(0deg);
  transition: transform 1.15s cubic-bezier(0.22, 0.78, 0.18, 1);
  filter: drop-shadow(0 0 4px rgba(242, 149, 49, 0.5));
}
.gauge-hub-ring { fill: #1b2532; stroke: rgba(242, 149, 49, 0.68); stroke-width: 2; }
.gauge-hub { fill: var(--text); filter: drop-shadow(0 0 5px rgba(247, 249, 251, 0.3)); }
.gauge-scale { position: absolute; top: 18.7vh; color: var(--muted); font-size: 0.7vw; font-weight: 650; }
.gauge-min { left: 11%; }
.gauge-max { right: 11%; }

.count-card { display: flex; flex-direction: column; justify-content: space-between; }
.count-card .metric-value { margin: 0 0 0.1vh; }
.metric-alert {
  border-color: rgba(255, 111, 97, 0.42);
  background: linear-gradient(145deg, rgba(68, 37, 48, 0.83), rgba(25, 28, 38, 0.9));
}
.metric-alert::before { background: linear-gradient(90deg, transparent, var(--alert), transparent); }
.metric-alert.is-clear {
  border-color: var(--edge);
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
}
.metric-warning {
  position: absolute;
  right: 0.8vw;
  bottom: 1.15vh;
  display: none;
  width: 2.1vw;
  min-width: 30px;
  height: 2.1vw;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--alert);
  border-radius: 50%;
  background: rgba(255, 111, 97, 0.14);
  color: #fff;
  font-size: 1.15vw;
  font-weight: 900;
  box-shadow: 0 0 1vw rgba(255, 111, 97, 0.28);
}
.metric-warning.is-visible { display: flex; }

.panel-heading {
  position: relative;
  z-index: 3;
  display: flex;
  height: 4.4vh;
  padding: 0 0.95vw;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(196, 209, 220, 0.13);
  color: #d3dbe3;
  font-size: 0.69vw;
  font-weight: 780;
  letter-spacing: 0.12em;
}
.panel-heading span:last-child { color: var(--muted); font-weight: 600; }

.crew-map { position: absolute; inset: 4.4vh 0 0; }
.crew-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.crew-lines path {
  fill: none;
  stroke: rgba(196, 209, 220, 0.52);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

.crew-card {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 17.4%;
  min-height: 8vh;
  padding: 0.68vh 0.4vw;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.38vh;
  border: 1px solid rgba(196, 209, 220, 0.58);
  border-radius: 0.3vw;
  background: rgba(39, 52, 69, 0.96);
  text-align: center;
  opacity: 1;
}
.crew-card[hidden],
.galley-person-card[hidden] { display: none; }
.crew-card strong {
  max-width: 100%;
  font-size: 0.78vw;
  font-weight: 720;
  line-height: 1.22;
  white-space: nowrap;
}
.crew-presence-marker {
  position: absolute;
  z-index: 5;
  top: 0.5vh;
  right: 0.38vw;
  display: flex;
  width: 1.05vw;
  min-width: 14px;
  height: 1.05vw;
  min-height: 14px;
  align-items: center;
  justify-content: center;
}
.crew-presence-marker img,
.crew-presence-house,
.crew-sick-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.crew-presence-marker img {
  filter: drop-shadow(0 0 0.25vw rgba(242, 149, 49, 0.34));
}
.crew-presence-house {
  width: auto;
  height: auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.15vw;
  line-height: 1;
  filter: drop-shadow(0 0.08vw 0.08vw rgba(0, 0, 0, 0.45));
}
.crew-location-emoji {
  display: block;
  width: auto;
  height: auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.18vw;
  line-height: 1;
  filter: drop-shadow(0 0.08vw 0.08vw rgba(0, 0, 0, 0.5));
}
.crew-location-emoji.is-combined {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84vw;
}
.crew-location-emoji.is-combined .location-emoji-part + .location-emoji-part { margin-left: 0.16vw; }
.location-emoji-part { display: block; }
.crew-client-logo {
  box-sizing: border-box;
  display: block;
  width: 1.78vw !important;
  height: 1.28vw !important;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0.08vw 0.16vw rgba(0, 0, 0, 0.52)) !important;
  object-fit: contain;
}
.crew-client-code {
  display: grid;
  min-width: 1.7vw;
  min-height: 1.06vw;
  padding: 0.08vw 0.14vw;
  place-items: center;
  border: 1px solid rgba(87, 200, 220, 0.52);
  border-radius: 0.14vw;
  background: rgba(7, 17, 26, 0.76);
  color: #f8fbfd !important;
  font-size: 0.42vw !important;
  letter-spacing: 0.04em !important;
}
.crew-presence-marker.crew-presence-client { width: 1.78vw; right: 0.28vw; }
.crew-presence-marker.crew-presence-gym-lunch { width: 1.72vw; right: 0.24vw; }
.crew-status-emoji {
  max-width: none;
  max-height: none;
  filter: drop-shadow(0 0.08vw 0.08vw rgba(0, 0, 0, 0.5)) !important;
}
.crew-palm-emoji { width: 165% !important; height: 165% !important; }
.crew-stopwatch-emoji { width: 138% !important; height: 138% !important; }
.crew-mending-heart-emoji { width: 140% !important; height: 140% !important; }
.crew-sick-icon { width: 112%; height: 112%; }
.crew-card .crew-presence-sick {
  top: 0.18vh;
  right: 0.2vw;
  width: 1.47vw;
  min-width: 20px;
  height: 1.47vw;
  min-height: 20px;
}
.sick-flow {
  animation: sick-roll 3.4s ease-in-out infinite;
  will-change: transform, opacity;
}
.crew-card span { color: var(--cyan); font-size: 0.52vw; font-weight: 800; letter-spacing: 0.075em; }
.crew-card .crew-presence-marker { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; }
.crew-card .crew-insignia {
  position: absolute;
  z-index: 6;
  right: 0.42vw;
  bottom: 0.48vh;
  box-sizing: border-box;
  width: 1.16vw;
  min-width: 15px;
  pointer-events: none;
  color: #f3c849;
  filter: drop-shadow(0 0 0.14vw rgba(243, 200, 73, 0.34));
}
.crew-card .crew-rank-insignia {
  display: flex;
  width: 1.34vw;
  min-width: 17px;
  bottom: 0.78vh;
  height: auto;
  flex-direction: column;
  gap: 0.28vh;
}
.crew-card .crew-rank-insignia i {
  display: block;
  width: 100%;
  height: 0.24vh;
  min-height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.crew-card .crew-specialist-insignia {
  width: 1.08vw;
  min-width: 15px;
  height: 1.08vw;
  min-height: 15px;
  overflow: visible;
  fill: currentColor;
  stroke: #172536;
  stroke-width: 1;
}
.crew-card .crew-specialist-insignia .crew-insignia-highlight {
  fill: #ffe78f;
  fill-opacity: 0.92;
  stroke: none;
}
.crew-card .crew-security-insignia {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.officer-card .crew-insignia { right: 0.94vw; }
.crew-card.is-shore-leave > strong,
.crew-card.is-sick > strong,
.crew-card.is-unconfirmed > strong,
.crew-card.is-not-started > strong { color: #7f8b96; }
.crew-card.is-shore-leave > span:first-of-type,
.crew-card.is-sick > span:first-of-type,
.crew-card.is-not-started > span:first-of-type { color: #667583; }
.crew-card.is-unconfirmed > span:not(.crew-presence-marker):not(.crew-new-badge):not(.start-date):not(.crew-late-badge):not(.crew-arrival-info-badge):not(.crew-made-it-badge):not(.crew-insignia) { color: #667583; }
.crew-card.is-office,
.crew-card.is-home,
.crew-card.is-gym,
.crew-card.is-lunch,
.crew-card.is-gym-lunch,
.crew-card.is-client,
.crew-card.is-active-unknown {
  border-color: rgba(196, 209, 220, 0.84);
  background: linear-gradient(145deg, rgba(49, 65, 86, 0.98), rgba(39, 52, 69, 0.98));
  box-shadow: inset 0 0 1vw rgba(196, 209, 220, 0.08), 0 0 0.65vw rgba(196, 209, 220, 0.14);
}
.crew-card.is-shore-leave,
.crew-card.is-sick,
.crew-card.is-unconfirmed,
.crew-card.is-not-started {
  border-color: rgba(196, 209, 220, 0.18);
  background: rgba(27, 37, 50, 0.78);
  box-shadow: none;
}
.crew-alex { top: 2%; left: 1.1%; animation-delay: 70ms; }
.crew-thomas { top: 2%; left: 23.55%; animation-delay: 100ms; }
.crew-harvey { top: 2%; left: 46%; animation-delay: 130ms; }
.crew-mike { top: 2%; left: 77.55%; animation-delay: 160ms; }
.crew-presence-marker .crew-everhold-mark {
  width: 1.02vw;
  min-width: 14px;
  height: 0.82vw;
  min-height: 11px;
}
.crew-luke { top: 36%; left: 5.55%; animation-delay: 260ms; }
.crew-scott { top: 36%; left: 41.55%; animation-delay: 320ms; }
.crew-stephen { top: 36%; left: 77.55%; animation-delay: 380ms; }
.crew-lewis-pryce,
.crew-sam,
.crew-jono,
.crew-henry,
.crew-michael,
.crew-lewis-callow { top: 72%; width: 13.5%; min-height: 8vh; }
.crew-lewis-pryce { left: 0.5%; animation-delay: 460ms; }
.crew-sam { left: 14.5%; animation-delay: 510ms; }
.crew-card .crew-new-badge {
  position: absolute;
  z-index: 7;
  top: -0.9vh;
  left: 0.55vw;
  box-sizing: border-box;
  display: none;
  min-width: 2.7vw;
  height: 1.8vh;
  padding: 0 0.38vw;
  border: 1px solid rgba(242, 149, 49, 0.88);
  border-radius: 0.22vw;
  background: var(--orange);
  color: #06131b;
  font-size: 0.52vw;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.62vh;
  text-align: center;
  box-shadow: 0 0.18vh 0.3vw rgba(0, 0, 0, 0.42);
}
.crew-card.is-office .crew-new-badge,
.crew-card.is-home .crew-new-badge,
.crew-card.is-gym .crew-new-badge,
.crew-card.is-lunch .crew-new-badge,
.crew-card.is-gym-lunch .crew-new-badge,
.crew-card.is-client .crew-new-badge,
.crew-card.is-active-unknown .crew-new-badge { display: block; }
.crew-card .crew-late-badge,
.crew-card .crew-arrival-info-badge,
.crew-card .crew-made-it-badge {
  position: absolute;
  z-index: 8;
  bottom: -0.9vh;
  left: 0.55vw;
  box-sizing: border-box;
  min-width: 2.7vw;
  height: 1.8vh;
  padding: 0 0.38vw;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0.22vw;
  background: #cf263d;
  color: #fff;
  font-size: 0.52vw;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.62vh;
  text-align: center;
  box-shadow: 0 0.18vh 0.34vw rgba(0, 0, 0, 0.48), 0 0 0.5vw rgba(207, 38, 61, 0.24);
}
.crew-card .crew-arrival-info-badge {
  border-color: rgba(190, 244, 255, 0.96);
  background: #58cbe3;
  color: #06131b;
  -webkit-text-fill-color: #06131b;
  box-shadow: 0 0.18vh 0.34vw rgba(0, 0, 0, 0.48), 0 0 0.42vw rgba(88, 203, 227, 0.24);
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.crew-card .crew-made-it-badge {
  background: #2aa86b;
  box-shadow: 0 0.18vh 0.34vw rgba(0, 0, 0, 0.48), 0 0 0.5vw rgba(42, 168, 107, 0.28);
}
.crew-arrival-info-badge b,
.galley-arrival-info-badge b {
  display: inline-grid;
  width: 1em;
  height: 1em;
  border: 1px solid rgba(6, 19, 27, 0.78);
  border-radius: 50%;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 0.86em;
  font-style: normal;
  line-height: 0.9;
}
.crew-jono { left: 36.5%; animation-delay: 560ms; }
.crew-henry { left: 50.5%; animation-delay: 610ms; }
.crew-michael { left: 72.5%; animation-delay: 660ms; }
.crew-lewis-callow { left: 86.5%; width: 13.1%; animation-delay: 710ms; }
.crew-lewis-pryce strong,
.crew-sam strong,
.crew-jono strong,
.crew-henry strong,
.crew-michael strong,
.crew-lewis-callow strong { font-size: 0.67vw; white-space: normal; }

.officer-card > strong,
.officer-card > span:not(.crew-presence-marker):not(.crew-insignia) { position: relative; z-index: 2; }
.officer-flash {
  position: absolute;
  z-index: 4;
  right: -0.72vw;
  bottom: -1.2vh;
  width: 1.6vw;
  height: 1.6vw;
  object-fit: contain;
  opacity: 0.88;
  transform: scale(1);
  transform-origin: center;
  filter: drop-shadow(0 0 0.24vw rgba(255, 224, 0, 0.5));
  animation: flash-pop 6s linear infinite;
  will-change: opacity, transform;
}
.crew-scott .officer-flash { animation-delay: 650ms; }
.crew-stephen .officer-flash { animation-delay: 1300ms; }
.officer-card.is-shore-leave .officer-flash { display: none; }
.officer-card.is-sick .officer-flash { display: none; }
.officer-card.is-unconfirmed .officer-flash { display: none; }
.officer-card.is-not-started .officer-flash { display: none; }
.crew-card.is-shore-leave .crew-insignia,
.crew-card.is-sick .crew-insignia,
.crew-card.is-unconfirmed .crew-insignia,
.crew-card.is-not-started .crew-insignia { display: none; }
.crew-card .start-date {
  position: absolute;
  right: 7%;
  bottom: -2.25vh;
  left: 7%;
  z-index: 5;
  padding: 0.36vh 0.2vw;
  border-radius: 999px;
  background: var(--cyan);
  color: #05202a;
  font-size: 0.47vw;
  font-weight: 850;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 0 0.7vw rgba(112, 213, 231, 0.16);
}

.tickets-panel { grid-column: 1 / 3; }
.tickets-heading { height: 4.2vh; font-size: 0.82vw; }
.ticket-table { padding: 0 0.9vw; }
.ticket-row {
  display: grid;
  grid-template-columns: 6.3% 48.7% 13% 21% 11%;
  min-height: 3.75vh;
  align-items: center;
  border-bottom: 1px solid rgba(112, 213, 231, 0.08);
  color: #d7e8ec;
  font-size: 0.98vw;
  font-weight: 560;
}
.ticket-row span {
  min-width: 0;
  padding-right: 0.75vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-row span:first-child { color: var(--cyan); font-weight: 650; }
.ticket-header {
  min-height: 2.45vh;
  color: var(--muted);
  font-size: 0.72vw;
  font-weight: 740;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.ticket-header span:first-child { color: var(--muted); }
.ticket-rows .ticket-row {
  opacity: 1;
}
.ticket-empty { color: var(--muted); }

/* Galley: Simple In/Out only, with fixed hierarchy and same-origin avatars. */
.galley-layout {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75vw;
}
.galley-crew-deck {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 209, 220, 0.2);
  background: linear-gradient(145deg, rgba(39, 52, 69, 0.92), rgba(35, 43, 56, 0.78));
  box-shadow: inset 0 0 4vw rgba(196, 209, 220, 0.025);
}
.galley-crew-deck::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.galley-crew-lines { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.galley-crew-lines path {
  fill: none;
  stroke: rgba(196, 209, 220, 0.52);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.galley-person-card {
  position: absolute;
  z-index: 2;
  display: flex;
  box-sizing: border-box;
  width: 10.4%;
  height: 15.2vh;
  padding: 0.45vh 0.28vw;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.18vh;
  border: 1px solid rgba(196, 209, 220, 0.2);
  border-radius: 0.32vw;
  background: rgba(27, 37, 50, 0.97);
  color: #74858a;
  opacity: 0.78;
  transform: translate3d(0, 0, 0);
  transform-origin: center;
}
.galley-avatar {
  position: relative;
  display: grid;
  width: 2.8vw;
  min-width: 28px;
  height: 2.8vw;
  min-height: 28px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(196, 209, 220, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #34475d, #1b2532 72%);
  color: #829ca5;
  font-size: 1.18vw;
  font-weight: 740;
  letter-spacing: -0.03em;
}
.galley-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  object-fit: cover;
}
.galley-person-card.has-avatar .galley-avatar img { opacity: 1; }
.galley-person-copy {
  display: grid;
  width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  grid-template-rows: 2.16em 1.1em 1.15em;
  align-content: center;
  gap: 0.1vh;
  text-align: center;
}
.galley-person-copy strong {
  display: flex;
  overflow: hidden;
  height: 2.16em;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 0.82vw;
  font-weight: 720;
  line-height: 1.08;
  white-space: normal;
}
.galley-person-copy .galley-role {
  color: #667583;
  font-size: 0.6vw;
  font-weight: 860;
  letter-spacing: 0.09em;
}
.galley-person-copy .galley-location {
  overflow: hidden;
  color: #70808d;
  font-size: 0.66vw;
  font-weight: 620;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.galley-person-card.is-office,
.galley-person-card.is-home,
.galley-person-card.is-gym,
.galley-person-card.is-lunch,
.galley-person-card.is-gym-lunch,
.galley-person-card.is-client,
.galley-person-card.is-active-unknown {
  border-color: rgba(196, 209, 220, 0.78);
  background: linear-gradient(145deg, rgba(49, 65, 86, 0.98), rgba(39, 52, 69, 0.98));
  color: var(--text);
  opacity: 1;
  box-shadow: inset 0 0 1.2vw rgba(196, 209, 220, 0.075), 0 0 0.7vw rgba(196, 209, 220, 0.11);
}
.galley-person-card.is-office .galley-avatar,
.galley-person-card.is-home .galley-avatar,
.galley-person-card.is-gym .galley-avatar,
.galley-person-card.is-lunch .galley-avatar,
.galley-person-card.is-gym-lunch .galley-avatar,
.galley-person-card.is-client .galley-avatar,
.galley-person-card.is-active-unknown .galley-avatar { border-color: rgba(242, 149, 49, 0.72); }
.galley-person-card.is-office .galley-role,
.galley-person-card.is-home .galley-role,
.galley-person-card.is-gym .galley-role,
.galley-person-card.is-lunch .galley-role,
.galley-person-card.is-gym-lunch .galley-role,
.galley-person-card.is-client .galley-role,
.galley-person-card.is-active-unknown .galley-role { color: var(--cyan); }
.galley-person-card.is-office .galley-location,
.galley-person-card.is-home .galley-location,
.galley-person-card.is-gym .galley-location,
.galley-person-card.is-lunch .galley-location,
.galley-person-card.is-gym-lunch .galley-location,
.galley-person-card.is-client .galley-location,
.galley-person-card.is-active-unknown .galley-location { color: #c4d1dc; }
.galley-person-card.is-shore-leave,
.galley-person-card.is-sick,
.galley-person-card.is-unconfirmed,
.galley-person-card.is-not-started { opacity: 0.68; }
.galley-person-card.is-source-unknown { opacity: 0.9; }
.galley-insignia {
  position: absolute;
  z-index: 6;
  top: 0.58vh;
  left: 0.42vw;
  box-sizing: border-box;
  width: 1.16vw;
  min-width: 15px;
  pointer-events: none;
  color: #f3c849;
  filter: drop-shadow(0 0 0.14vw rgba(243, 200, 73, 0.34));
}
.galley-rank-insignia {
  display: flex;
  width: 1.34vw;
  min-width: 17px;
  height: auto;
  flex-direction: column;
  gap: 0.28vh;
}
.galley-rank-insignia i {
  display: block;
  width: 100%;
  height: 0.24vh;
  min-height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.galley-specialist-insignia {
  width: 1.08vw;
  min-width: 15px;
  height: 1.08vw;
  min-height: 15px;
  overflow: visible;
  fill: currentColor;
  stroke: #172536;
  stroke-width: 1;
}
.galley-specialist-insignia .galley-insignia-highlight {
  fill: #ffe78f;
  fill-opacity: 0.92;
  stroke: none;
}
.galley-security-insignia {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.galley-person-card.is-shore-leave .galley-insignia,
.galley-person-card.is-sick .galley-insignia,
.galley-person-card.is-unconfirmed .galley-insignia,
.galley-person-card.is-not-started .galley-insignia { display: none; }
.galley-status-marker {
  position: absolute;
  z-index: 6;
  top: 0.55vh;
  right: 0.42vw;
  display: grid;
  width: 1.42vw;
  min-width: 18px;
  height: 1.42vw;
  min-height: 18px;
  place-items: center;
}
.galley-status-marker img,
.galley-status-marker svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.galley-status-marker .crew-sick-icon { width: 128%; height: 128%; }
.galley-status-marker .crew-location-emoji { font-size: 1.45vw; }
.galley-status-marker .crew-location-emoji.is-combined { font-size: 0.96vw; }
.galley-status-marker .crew-location-emoji.is-combined .location-emoji-part + .location-emoji-part { margin-left: 0.18vw; }
.galley-status-marker .crew-client-logo {
  width: 2.05vw !important;
  height: 1.52vw !important;
  padding: 0.14vw;
}
.galley-new-badge {
  position: absolute;
  z-index: 8;
  top: -1.45vh;
  left: 0.35vw;
  box-sizing: border-box;
  display: none;
  min-width: 2.7vw;
  height: 1.8vh;
  padding: 0 0.38vw;
  border: 1px solid rgba(242, 149, 49, 0.88);
  border-radius: 0.22vw;
  background: var(--orange);
  color: #06131b;
  font-size: 0.52vw;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.62vh;
  text-align: center;
  box-shadow: 0 0.18vh 0.3vw rgba(0, 0, 0, 0.42);
}
.galley-person-card.is-office .galley-new-badge,
.galley-person-card.is-home .galley-new-badge,
.galley-person-card.is-gym .galley-new-badge,
.galley-person-card.is-lunch .galley-new-badge,
.galley-person-card.is-gym-lunch .galley-new-badge,
.galley-person-card.is-client .galley-new-badge,
.galley-person-card.is-active-unknown .galley-new-badge { display: block; }
.galley-late-badge,
.galley-arrival-info-badge,
.galley-made-it-badge {
  position: absolute;
  z-index: 8;
  bottom: -1.02vh;
  left: 50%;
  box-sizing: border-box;
  min-width: 3.15vw;
  height: 2.05vh;
  padding: 0 0.48vw;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 0.24vw;
  background: #cf263d;
  color: #fff;
  font-size: 0.59vw;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.86vh;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 0.18vh 0.38vw rgba(0, 0, 0, 0.5), 0 0 0.58vw rgba(207, 38, 61, 0.26);
}
.galley-arrival-info-badge {
  border-color: rgba(190, 244, 255, 0.96);
  background: #58cbe3;
  color: #06131b;
  -webkit-text-fill-color: #06131b;
  box-shadow: 0 0.18vh 0.38vw rgba(0, 0, 0, 0.5), 0 0 0.48vw rgba(88, 203, 227, 0.24);
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.galley-made-it-badge {
  background: #2aa86b;
  box-shadow: 0 0.18vh 0.38vw rgba(0, 0, 0, 0.5), 0 0 0.58vw rgba(42, 168, 107, 0.28);
}
.galley-alex { top: 2.6%; left: 6.05%; }
.galley-thomas { top: 2.6%; left: 29.2%; }
.galley-harvey { top: 2.6%; left: 52.35%; }
.galley-mike { top: 2.6%; left: 79.9%; }
.galley-status-marker .galley-everhold-mark {
  width: 1.18vw;
  min-width: 15px;
  height: 0.95vw;
  min-height: 12px;
}
.galley-luke { top: 36.2%; left: 9.7%; }
.galley-scott { top: 36.2%; left: 48.7%; }
.galley-stephen { top: 36.2%; left: 79.9%; }
.galley-lewis-pryce,
.galley-sam,
.galley-jono,
.galley-henry,
.galley-michael,
.galley-lewis-callow { top: 72.8%; }
.galley-lewis-pryce { left: 4.1%; }
.galley-sam { left: 15.3%; }
.galley-jono { left: 43.1%; }
.galley-henry { left: 54.3%; }
.galley-michael { left: 74.3%; }
.galley-lewis-callow { left: 85.5%; }
.galley-officer-flash {
  position: absolute;
  z-index: 7;
  right: -0.82vw;
  bottom: -1.5vh;
  display: none;
  width: 2.25vw;
  min-width: 25px;
  height: 2.25vw;
  min-height: 25px;
  object-fit: contain;
  opacity: 0.9;
  transform: scale(1);
  filter: drop-shadow(0 0 0.28vw rgba(255, 224, 0, 0.52));
  animation: flash-pop 6s linear infinite;
  will-change: opacity, transform;
}
.galley-officer-card.is-office .galley-officer-flash,
.galley-officer-card.is-home .galley-officer-flash,
.galley-officer-card.is-gym .galley-officer-flash,
.galley-officer-card.is-lunch .galley-officer-flash,
.galley-officer-card.is-gym-lunch .galley-officer-flash,
.galley-officer-card.is-client .galley-officer-flash,
.galley-officer-card.is-active-unknown .galley-officer-flash { display: block; }
.galley-scott .galley-officer-flash { animation-delay: 650ms; }
.galley-stephen .galley-officer-flash { animation-delay: 1300ms; }
.galley-person-card.is-state-changing {
  z-index: 12;
  animation: galley-state-change 1100ms cubic-bezier(0.18, 0.82, 0.2, 1) 1;
  will-change: transform, opacity;
}

.pairing-screen {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(18, 67, 81, 0.32), transparent 42%), rgba(3, 8, 13, 0.985);
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}
.pairing-screen.is-linked { visibility: hidden; opacity: 0; }
.pairing-card {
  width: min(62vw, 900px);
  padding: 6vh 5vw;
  border: 1px solid var(--edge);
  background: linear-gradient(145deg, rgba(13, 38, 50, 0.96), rgba(5, 15, 23, 0.985));
  text-align: center;
  box-shadow: 0 3vh 10vh rgba(0, 0, 0, 0.38);
}
.pairing-anchor { width: 4vw; margin-bottom: 3vh; }
.pairing-card h1 { font-size: 3.2vw; }
.pairing-instruction { margin: 3vh 0 2vh; color: var(--muted); font-size: 0.95vw; }
.pairing-instruction strong { color: var(--cyan); }
.pairing-code { color: var(--text); font-size: 4.4vw; font-weight: 430; letter-spacing: 0.22em; text-indent: 0.22em; }
.pairing-status { margin: 2.5vh 0 0; color: var(--muted); font-size: 0.75vw; letter-spacing: 0.05em; }

.pair-admin-body { min-height: 100%; overflow: auto; background: var(--bg-deep); }
.pair-admin-shell { width: min(92vw, 680px); margin: 8vh auto; padding: 48px; border: 1px solid var(--edge); background: var(--panel); }
.pair-admin-anchor { width: 48px; margin-bottom: 28px; }
.pair-admin-shell h1 { font-size: 54px; }
.pair-admin-copy { color: var(--muted); font-size: 17px; line-height: 1.55; }
.pair-form { display: grid; gap: 22px; margin-top: 34px; }
.pair-form label { display: grid; gap: 8px; color: #aac3cc; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pair-form input { width: 100%; border: 1px solid var(--edge); border-radius: 0; padding: 15px 16px; background: #051018; color: var(--text); font: inherit; font-size: 18px; letter-spacing: normal; text-transform: none; outline: none; }
.pair-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.pair-form button { border: 0; padding: 17px 22px; background: var(--orange); color: #160904; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.pair-result { min-height: 24px; margin-top: 24px; color: var(--cyan); line-height: 1.5; }

/* StrongClub commerce view: one 16:9 renderer, no customer/contact/address fields. */
.strongclub-dashboard { color:var(--sc-white); }
.sc-topline { display:grid; height:23.2vh; grid-template-columns:1.28fr .9fr .9fr 1fr; gap:.55vw; }
.sc-card { position:relative; overflow:hidden; border:1px solid var(--sc-line); background:linear-gradient(145deg,rgba(19,21,27,.98),rgba(10,11,15,.96)); box-shadow:0 1.2vh 3vh rgba(0,0,0,.18); }
.sc-card::before { content:""; position:absolute; top:0; left:0; width:26%; height:2px; background:linear-gradient(90deg,var(--strongclub-accent),transparent); }
.sc-ytd-card,.sc-stat-card { padding:1.65vh 1.2vw; }
.sc-kicker { display:block; color:var(--strongclub-accent); font-size:.56vw; font-weight:850; letter-spacing:.19em; }
.sc-hero-value,.sc-stat-value { display:block; margin-top:1.25vh; color:var(--sc-white); font-size:3.5vw; font-weight:520; letter-spacing:-.055em; line-height:1; }
.sc-hero-value { font-size:4.35vw; }
.sc-card-label { display:block; margin-top:.55vh; color:var(--sc-mid); font-size:.82vw; font-weight:620; letter-spacing:.02em; }
.sc-goal-track { height:.55vh; margin-top:1.65vh; overflow:hidden; background:rgba(247,248,252,.15); }
.sc-goal-track span { display:block; width:0; height:100%; background:var(--strongclub-accent); transition:width 900ms ease; }
.sc-goal-caption { display:flex; justify-content:space-between; margin-top:.5vh; color:var(--sc-muted); font-size:.62vw; }
.sc-change { display:block; margin-top:1.6vh; color:var(--sc-mid); font-size:.88vw; font-weight:780; }
.sc-change.is-down { color:var(--sc-mid); } .sc-change.is-up { color:var(--strongclub-accent); }
.sc-coverage { display:block; margin-top:1.6vh; color:var(--strongclub-accent); font-size:.67vw; font-weight:720; line-height:1.35; }
.sc-main-grid { display:grid; height:58.3vh; margin-top:.6vh; grid-template-columns:31.5% 1fr; gap:.55vw; }
.sc-right-stack { display:grid; min-width:0; grid-template-rows:31.5vh 26.2vh; gap:.6vh; }
.sc-panel-heading { display:flex; height:4.3vh; align-items:center; justify-content:space-between; padding:0 .9vw; border-bottom:1px solid rgba(220,226,238,.12); color:var(--sc-white); font-size:.68vw; font-weight:820; letter-spacing:.12em; }
.sc-panel-heading span:last-child { color:var(--sc-muted); font-size:.5vw; }
.sc-daily-sales { height:calc(100% - 4.3vh); padding:.8vh .8vw; }
.sc-daily-row { display:grid; height:3.38vh; grid-template-columns:4.1vw 1fr 4.2vw; align-items:center; gap:.55vw; border-bottom:1px solid rgba(220,226,238,.08); color:var(--sc-mid); font-size:.61vw; }
.sc-daily-row:nth-child(n+16) { display:none; }
.sc-daily-bar { height:.38vh; background:rgba(247,248,252,.09); } .sc-daily-bar span { display:block; height:100%; background:var(--sc-white); transition:width 800ms ease; }
.sc-daily-total { color:var(--sc-white); text-align:right; }
.sc-order-row { display:grid; min-height:3.35vh; grid-template-columns:.75fr .75fr 1.05fr 1.05fr .72fr; align-items:center; padding:0 .9vw; border-bottom:1px solid rgba(220,226,238,.09); color:#d9dde5; font-size:.65vw; }
.sc-order-head { min-height:3.05vh; color:var(--sc-muted); font-size:.5vw; font-weight:800; letter-spacing:.1em; }
.sc-order-row span:nth-child(2) { color:var(--sc-white); font-weight:720; }
.sc-order-status { color:var(--sc-muted); } .sc-order-status.is-open { color:var(--strongclub-accent); } .sc-order-status.is-cancelled { color:var(--sc-mid); }
.sc-chart-card { padding-bottom:.7vh; } #sc-monthly-chart { display:block; width:100%; height:17.1vh; padding:.4vh .8vw 0; }
.sc-chart-grid { fill:none; stroke:rgba(220,226,238,.1); stroke-width:1; }
.sc-chart-line { fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-width:4; vector-effect:non-scaling-stroke; }
.sc-chart-current { stroke:var(--strongclub-accent); } .sc-chart-previous { stroke:#8a919c; stroke-width:2; stroke-dasharray:6 8; }
.sc-chart-months { display:grid; grid-template-columns:repeat(12,1fr); padding:0 1vw; color:#7f8794; font-size:.46vw; font-weight:760; text-align:center; }
.sc-footer { display:flex; height:3.5vh; align-items:end; justify-content:space-between; color:var(--sc-muted); font-size:.52vw; font-weight:760; letter-spacing:.11em; }
.sc-footer span:first-child { color:var(--strongclub-accent); font-size:.66vw; }
.sc-footer-brand { display:flex; align-items:center; gap:.35vw; }
.sc-footer-brand img { width:.82vw; height:.82vw; object-fit:contain; }
.pair-view-select,.screen-view-select { width:100%; border:1px solid rgba(112,213,231,.24); border-radius:0; padding:15px 16px; background:#051018; color:var(--text); font:inherit; font-size:18px; }
.linked-screen-tools { margin-top:3vh; padding-top:2.4vh; border-top:1px solid var(--edge); } .linked-screen-tools h2 { margin:0 0 .6vh; font-size:1.2rem; font-weight:650; }
.linked-screen-list { display:grid; gap:.8vh; margin-top:1.5vh; } .linked-screen-row { display:grid; grid-template-columns:1fr .9fr auto; align-items:center; gap:.7rem; padding:.7rem; border:1px solid var(--edge); }
.linked-screen-meta { color:var(--muted); font-size:.78rem; }
.linked-screen-row button,#load-screens { width:auto; margin:0; border:0; padding:.65rem .9rem; background:var(--orange); color:#160904; font:inherit; font-weight:800; cursor:pointer; }

/* Entra-authenticated display administration */
.admin-html { height: auto; min-height: 100%; overflow: auto; }
.admin-body {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background:
    radial-gradient(circle at 82% -10%, rgba(21, 107, 122, 0.22), transparent 32rem),
    linear-gradient(145deg, #02070b, #06131b 58%, #081a23);
  color: var(--text);
}
.admin-body button,
.admin-body input,
.admin-body select { font: inherit; }
.admin-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid var(--edge);
  background: rgba(2, 10, 15, 0.88);
  backdrop-filter: blur(18px);
}
.admin-brand { display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.admin-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,106,26,.25)); }
.admin-brand span { display: grid; gap: 2px; }
.admin-brand strong { font-size: 17px; letter-spacing: .01em; }
.admin-brand small { color: var(--muted); font-size: 12px; }
.admin-identity { display: flex; align-items: center; gap: 10px; color: #bdd0d5; font-size: 13px; }
.admin-identity-dot { width: 8px; height: 8px; border-radius: 50%; background: #57d597; box-shadow: 0 0 0 4px rgba(87,213,151,.1); }
.admin-identity a { margin-left: 8px; color: var(--cyan); font-weight: 700; text-decoration: none; }
.admin-layout { width: min(1440px, calc(100% - 44px)); margin: 0 auto; padding: 58px 0 80px; }
.admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.admin-intro h1 { margin: 5px 0 12px; font-size: clamp(42px, 5vw, 74px); font-weight: 430; letter-spacing: -.045em; }
.admin-intro p:not(.admin-kicker) { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.admin-kicker { margin: 0; color: var(--orange); font-size: 11px; font-weight: 850; letter-spacing: .21em; text-transform: uppercase; }
.admin-button { border: 1px solid transparent; padding: 12px 17px; color: var(--text); font-size: 13px; font-weight: 780; cursor: pointer; }
.admin-button:disabled { opacity: .55; cursor: wait; }
.admin-button-primary { width: 100%; background: var(--orange); color: #1a0a03; }
.admin-button-secondary { border-color: var(--edge-bright); background: rgba(112,213,231,.07); }
.admin-button:focus-visible,
.admin-body input:focus-visible,
.admin-body button:focus-visible { outline: 3px solid rgba(112,213,231,.45); outline-offset: 2px; }
.admin-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 38px 0 16px; }
.admin-stats article { display: grid; gap: 4px; min-height: 112px; align-content: center; padding: 22px; border: 1px solid var(--edge); background: linear-gradient(145deg, var(--panel-strong), var(--panel)); }
.admin-stats span { font-size: 36px; font-weight: 620; letter-spacing: -.04em; }
.admin-stats small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.admin-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, .75fr); gap: 16px; align-items: start; }
.admin-side-column { display: grid; gap: 16px; }
.admin-panel { border: 1px solid var(--edge); background: linear-gradient(145deg, rgba(14,39,50,.95), rgba(7,23,31,.93)); box-shadow: 0 20px 60px rgba(0,0,0,.16); }
.admin-screens-panel { min-height: 630px; padding: 26px; }
.admin-link-panel,
.admin-access-panel { padding: 26px; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-panel h2 { margin: 6px 0 0; font-size: 25px; font-weight: 570; letter-spacing: -.025em; }
.admin-subtle { color: var(--muted); font-size: 13px; line-height: 1.55; }
.admin-screen-list { display: grid; gap: 12px; }
.admin-screen-card { position: relative; display: grid; grid-template-columns: minmax(185px, 1fr) auto; gap: 18px; padding: 20px; border: 1px solid rgba(113,208,227,.17); background: rgba(3,14,20,.58); }
.admin-screen-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 2px; background: var(--orange); }
.admin-screen-summary { display: flex; min-width: 0; align-items: center; gap: 12px; }
.admin-screen-status-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #748c94; }
.admin-screen-card[data-state="online"] .admin-screen-status-dot { background: #57d597; box-shadow: 0 0 0 5px rgba(87,213,151,.09); }
.admin-screen-card[data-state="recent"] .admin-screen-status-dot { background: #f2b45b; }
.admin-screen-summary > div { display: grid; min-width: 0; gap: 3px; }
.admin-screen-name { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.admin-screen-status { color: var(--muted); font-size: 12px; }
.admin-view-switch { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border: 1px solid var(--edge); background: #030d12; }
.admin-transition-test[hidden], .admin-test-hector[hidden] { display: none !important; }
.admin-view-switch button { min-width: 100px; border: 0; padding: 9px 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 780; cursor: pointer; }
.admin-view-switch button.is-active { background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(112,213,231,.24); }
.admin-view-switch button[data-view="galley"].is-active { background: rgba(242,149,49,.12); color: #f3b66f; box-shadow: inset 0 0 0 1px rgba(242,149,49,.35); }
.admin-view-switch button[data-view="strongclub"].is-active { background: var(--strongclub-accent-soft); color: #91a7ff; box-shadow: inset 0 0 0 1px rgba(49,91,255,.42); }
.admin-screen-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(113,208,227,.12); }
.admin-screen-details label,
.admin-screen-details > div { display: grid; gap: 6px; }
.admin-screen-details span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-screen-details strong { font-size: 12px; font-weight: 600; }
.admin-transition-diagnostic { grid-column: 1 / -1; width: max-content; max-width: 100%; color: var(--muted); font-size: 10px; }
.admin-transition-diagnostic[hidden] { display: none; }
.admin-transition-diagnostic summary { display: flex; align-items: baseline; gap: 6px; cursor: pointer; list-style-position: inside; }
.admin-transition-diagnostic summary::-webkit-details-marker { display: none; }
.admin-transition-diagnostic summary::before { content: "+"; color: #728990; font-size: 11px; }
.admin-transition-diagnostic[open] summary::before { content: "−"; }
.admin-transition-diagnostic summary span { letter-spacing: .06em; text-transform: uppercase; }
.admin-transition-diagnostic summary strong { color: #9db2b9; font-size: 10px; font-weight: 680; }
.admin-transition-diagnostic-detail { max-width: 720px; margin: 7px 0 0 14px; color: #7f969e; line-height: 1.45; }
.admin-screen-details input,
.admin-form input { width: 100%; border: 1px solid var(--edge); padding: 11px 12px; background: #031018; color: var(--text); outline: none; }
.admin-transition-test { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border: 1px solid rgba(113,208,227,.13); background: rgba(112,213,231,.035); }
.admin-transition-test-copy { display: grid; min-width: 0; gap: 4px; }
.admin-transition-test-copy > span { color: var(--orange); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.admin-transition-test-copy strong { font-size: 13px; }
.admin-transition-test-copy small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-transition-test-actions { display: flex; flex: 0 0 auto; align-items: end; gap: 8px; }
.admin-transition-test-view { display: grid; gap: 4px; }
.admin-transition-test-view span { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.admin-transition-test-view select { min-width: 116px; border: 1px solid var(--edge-bright); padding: 8px 28px 8px 9px; background: #07151d; color: #d8e5e8; font: inherit; font-size: 11px; }
.admin-transition-test-view select:disabled { opacity: .48; }
.admin-transition-test-actions button { border: 1px solid var(--edge-bright); padding: 9px 11px; background: rgba(112,213,231,.06); color: #c6d7dc; font-size: 11px; font-weight: 760; cursor: pointer; }
.admin-transition-test-actions button:disabled { opacity: .42; cursor: not-allowed; }
.admin-transition-test-actions .admin-cancel-transition-test,
.admin-transition-test-actions .admin-cancel-frame-day { border-color: rgba(242,149,49,.4); color: #f2b276; }
.admin-screen-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; }
.admin-screen-actions button { border: 1px solid var(--edge); padding: 9px 12px; background: transparent; color: #c6d7dc; font-size: 12px; font-weight: 750; cursor: pointer; }
.admin-screen-actions button:disabled { opacity: .4; cursor: not-allowed; }
.admin-screen-actions .admin-test-hector { border-color: rgba(242,149,49,.38); color: #f2b276; }
.admin-screen-actions .admin-reload-screen { border-color: rgba(112,213,231,.25); color: #a8dbe4; }
.admin-screen-actions .admin-revoke-screen { border-color: rgba(255,111,97,.27); color: #ff9d94; }
.admin-empty { display: grid; place-items: center; gap: 8px; min-height: 380px; color: var(--muted); text-align: center; }
.admin-empty[hidden] { display: none; }
.admin-empty strong { color: var(--text); font-size: 20px; }
.admin-empty span { max-width: 440px; line-height: 1.5; }
.admin-form { display: grid; gap: 16px; margin-top: 22px; }
.admin-form > label { display: grid; gap: 7px; }
.admin-form > label > span,
.admin-form legend { color: #aac3cc; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.admin-form fieldset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.admin-form legend { grid-column: 1 / -1; margin-bottom: 8px; }
.admin-code-input { font-size: 24px !important; font-weight: 720 !important; letter-spacing: .24em !important; }
.admin-radio-card { position: relative; cursor: pointer; }
.admin-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.admin-radio-card > span { display: grid; gap: 3px; min-height: 66px; align-content: center; padding: 11px; border: 1px solid var(--edge); background: rgba(3,16,24,.7); }
.admin-radio-card input:checked + span { border-color: var(--cyan); background: var(--cyan-soft); }
.admin-radio-card strong { font-size: 13px; }
.admin-radio-card small { color: var(--muted); font-size: 11px; }
.admin-form-result { min-height: 20px; margin: 0; color: #9edfc0; font-size: 12px; line-height: 1.45; }
.admin-access-panel strong { color: #bed1d7; }
.admin-switchbot-panel { margin-top: 16px; padding: 26px; }
.admin-switchbot-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); gap: 18px; margin-top: 22px; align-items: start; }
.admin-switchbot-form { margin-top: 0; padding: 20px; border: 1px solid rgba(113,208,227,.17); background: rgba(3,14,20,.58); }
.admin-switchbot-form h3 { margin: 0; font-size: 18px; }
.admin-switchbot-form select,
.admin-switchbot-fields select { width: 100%; border: 1px solid var(--edge); padding: 11px 12px; background: #031018; color: var(--text); }
.admin-switchbot-size { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-switchbot-size label { display: grid; gap: 7px; }
.admin-switchbot-size span { color: #aac3cc; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.admin-switchbot-enabled { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.admin-switchbot-enabled input { width: auto !important; }
.admin-switchbot-card[data-state="online"] .admin-screen-status-dot { background: #57d597; }
.admin-switchbot-card[data-state="offline"] .admin-screen-status-dot { background: #748c94; }
.admin-switchbot-badge { align-self: center; justify-self: end; border: 1px solid rgba(112,213,231,.3); padding: 6px 9px; color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.admin-switchbot-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-switchbot-fields label { display: grid; gap: 6px; }
.admin-switchbot-status-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 13px; background: rgba(112,213,231,.035); }
.admin-switchbot-status-grid div { display: grid; gap: 5px; min-width: 0; }
.admin-switchbot-status-grid span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-switchbot-status-grid strong { overflow: hidden; color: #c5d8dd; font-size: 11px; text-overflow: ellipsis; }
.admin-switchbot-card .admin-switchbot-toggle { border-color: rgba(255,111,97,.27); color: #ff9d94; }

/* Display control bridge: Tech Ahoy Dark Sea interface direction 001. */
.admin-body {
  --admin-dark-sea: #242b39;
  --admin-deep-water: #151e2d;
  --admin-signal-blue: #5f9ed1;
  --admin-glass: rgba(21, 30, 45, .68);
  --admin-glass-strong: rgba(18, 27, 42, .9);
  --admin-line: rgba(255, 255, 255, .16);
  --admin-line-bright: rgba(255, 255, 255, .3);
  --admin-mist: rgba(255, 255, 255, .64);
  --admin-radius: 16px;
  --admin-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 2%, rgba(95, 158, 209, .14), transparent 29rem),
    linear-gradient(145deg, #273142 0%, var(--admin-dark-sea) 46%, #202735 100%);
  color: #fff;
  font-family: Gotham, "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.admin-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.admin-atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 76%);
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
.admin-atmosphere-wake {
  position: absolute;
  top: 18%;
  right: -11rem;
  width: min(58vw, 54rem);
  aspect-ratio: 1.8;
  opacity: .22;
  transform: rotate(-8deg);
  background: repeating-radial-gradient(ellipse at 14% 52%, transparent 0 25px, rgba(95,158,209,.25) 26px 27px, transparent 28px 51px);
  background-size: 132% 100%;
  animation: admin-wake 12s linear infinite;
}
.admin-topbar {
  min-height: 78px;
  padding: 10px max(clamp(22px, 4vw, 64px), env(safe-area-inset-right)) 10px max(clamp(22px, 4vw, 64px), env(safe-area-inset-left));
  border-bottom-color: var(--admin-line);
  background: rgba(36, 43, 57, .76);
  backdrop-filter: blur(22px) saturate(140%);
}
.admin-brand { gap: 16px; }
.admin-brand img {
  width: 91px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(242,149,49,.18));
  animation: admin-buoy 5s ease-in-out infinite;
}
.admin-brand span { padding-left: 15px; border-left: 1px solid var(--admin-line); }
.admin-brand strong { color: #fff; font-size: 16px; }
.admin-brand small { color: var(--admin-mist); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.admin-identity { color: var(--admin-mist); }
.admin-identity-dot { background: var(--orange); box-shadow: 0 0 0 5px rgba(242,149,49,.08), 0 0 16px rgba(242,149,49,.42); animation: admin-signal 2.4s ease-in-out infinite; }
.admin-identity a { color: #fff; }
.admin-identity a:hover { color: var(--orange); }
.admin-layout { position: relative; width: min(1500px, calc(100% - 44px)); padding-top: clamp(42px, 5vw, 72px); }
.admin-intro { position: relative; min-height: 176px; align-items: center; padding: 16px 0 38px; }
.admin-intro h1 { max-width: 780px; margin: 7px 0 14px; color: #fff; font-size: clamp(46px, 6vw, 86px); font-weight: 670; line-height: .94; letter-spacing: -.055em; }
.admin-intro p:not(.admin-kicker) { color: var(--admin-mist); font-size: clamp(16px, 1.45vw, 20px); }
.admin-kicker { color: var(--orange); }
.admin-intro-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 22px; }
.admin-bearing { position: relative; width: 118px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--admin-line); border-radius: 50%; box-shadow: inset 0 0 38px rgba(6,12,22,.34), 0 0 50px rgba(95,158,209,.08); }
.admin-bearing::before,
.admin-bearing::after { content: ""; position: absolute; inset: 17%; border: 1px dashed rgba(255,255,255,.16); border-radius: 50%; }
.admin-bearing::after { inset: 34%; border-style: solid; }
.admin-bearing-ring { position: absolute; inset: -1px; border: 1px solid rgba(95,158,209,.28); border-radius: 50%; background: conic-gradient(from 224deg, transparent 0 79%, rgba(95,158,209,.04) 85%, rgba(95,158,209,.24) 100%); animation: admin-bearing-turn 8s linear infinite; }
.admin-bearing-sweep { position: absolute; left: 50%; bottom: 50%; width: 1px; height: 45%; transform: rotate(-20deg); transform-origin: bottom; background: linear-gradient(var(--orange), transparent); animation: admin-bearing-mark 7s ease-in-out infinite; }
.admin-bearing img { position: relative; z-index: 2; width: 38px; height: 38px; filter: drop-shadow(0 7px 16px rgba(242,149,49,.26)); }
.admin-button {
  position: relative;
  min-height: 46px;
  overflow: hidden;
  border-color: var(--admin-line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #fff;
  transition: transform .35s var(--admin-ease), border-color .25s, background .25s;
}
.admin-button::before { content: ""; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); transition: transform .7s var(--admin-ease); }
.admin-button:hover { transform: translateY(-3px); border-color: var(--admin-line-bright); background: rgba(255,255,255,.075); }
.admin-button:hover::before { transform: translateX(110%); }
.admin-button-primary { border-color: var(--orange); background: var(--orange); color: var(--admin-deep-water); }
.admin-button-secondary { border-color: rgba(95,158,209,.38); background: rgba(95,158,209,.1); }
.admin-button:focus-visible,
.admin-body input:focus-visible,
.admin-body select:focus-visible,
.admin-body button:focus-visible { outline-color: rgba(95,158,209,.66); }
.admin-stats { gap: 14px; margin-top: 24px; }
.admin-stats article,
.admin-panel,
.admin-screen-card,
.admin-switchbot-form {
  border-color: var(--admin-line);
  border-radius: var(--admin-radius);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(14,23,37,.2));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 24px 70px rgba(2,8,17,.24);
  backdrop-filter: blur(14px);
}
.admin-stats article { position: relative; overflow: hidden; min-height: 116px; transition: transform .35s var(--admin-ease), border-color .25s, background .25s; }
.admin-stats article::after { content: ""; position: absolute; right: -18px; bottom: -34px; width: 78px; height: 78px; border: 1px solid rgba(95,158,209,.18); border-radius: 50%; box-shadow: 0 0 0 13px rgba(95,158,209,.035), 0 0 0 27px rgba(95,158,209,.025); }
.admin-stats article:hover { transform: translateY(-4px); border-color: rgba(95,158,209,.36); background: linear-gradient(145deg, rgba(95,158,209,.09), rgba(14,23,37,.2)); }
.admin-stats span { color: #fff; font-size: 39px; }
.admin-stats small { color: var(--admin-mist); }
.admin-columns { gap: 18px; }
.admin-side-column { gap: 18px; }
.admin-panel { overflow: hidden; }
.admin-panel h2 { color: #fff; }
.admin-subtle,
.admin-screen-status,
.admin-transition-test-copy small,
.admin-screen-details span,
.admin-form > label > span,
.admin-form legend,
.admin-switchbot-size span,
.admin-transition-test-view span,
.admin-switchbot-status-grid span { color: var(--admin-mist); }
.admin-screen-card { background: rgba(15,24,38,.36); transition: transform .35s var(--admin-ease), border-color .25s, background .25s; }
.admin-screen-card:hover { transform: translateY(-2px); border-color: rgba(95,158,209,.34); background: rgba(24,37,55,.48); }
.admin-screen-card::before { width: 64px; border-radius: var(--admin-radius) 0 0; background: linear-gradient(90deg, var(--orange), rgba(242,149,49,0)); }
.admin-screen-card[data-state="online"] .admin-screen-status-dot { background: var(--orange); box-shadow: 0 0 0 5px rgba(242,149,49,.08), 0 0 13px rgba(242,149,49,.36); }
.admin-view-switch { border-color: var(--admin-line); border-radius: 12px; background: rgba(12,20,32,.38); }
.admin-view-switch button { border-radius: 8px; transition: color .2s, background .2s, transform .25s var(--admin-ease); }
.admin-view-switch button:hover { color: #fff; background: rgba(95,158,209,.1); transform: translateY(-1px); }
.admin-view-switch button.is-active,
.admin-view-switch button[data-view="galley"].is-active,
.admin-view-switch button[data-view="strongclub"].is-active { background: rgba(242,149,49,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(242,149,49,.5), 0 0 16px rgba(242,149,49,.08); }
.admin-screen-details { border-top-color: rgba(255,255,255,.1); }
.admin-screen-details input,
.admin-form input,
.admin-switchbot-form select,
.admin-switchbot-fields select,
.admin-transition-test-view select {
  border-color: var(--admin-line);
  border-radius: 10px;
  background: rgba(13,22,35,.56);
  color: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.admin-screen-details input:focus,
.admin-form input:focus,
.admin-switchbot-form select:focus,
.admin-switchbot-fields select:focus,
.admin-transition-test-view select:focus { border-color: var(--admin-signal-blue); box-shadow: 0 0 0 4px rgba(95,158,209,.1); background: rgba(19,31,47,.72); }
.admin-transition-test { border-color: rgba(95,158,209,.2); border-radius: 12px; background: rgba(95,158,209,.055); }
.admin-transition-test-actions button,
.admin-screen-actions button {
  border-color: var(--admin-line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.78);
  transition: transform .25s var(--admin-ease), border-color .2s, background .2s, color .2s;
}
.admin-transition-test-actions button:hover,
.admin-screen-actions button:hover { transform: translateY(-2px); border-color: rgba(95,158,209,.4); background: rgba(95,158,209,.09); color: #fff; }
.admin-screen-actions .admin-test-hector,
.admin-transition-test-actions .admin-cancel-transition-test,
.admin-transition-test-actions .admin-cancel-frame-day { border-color: rgba(242,149,49,.42); color: #f7bc78; }
.admin-radio-card > span { border-color: var(--admin-line); border-radius: 11px; background: rgba(13,22,35,.44); transition: transform .25s var(--admin-ease), border-color .2s, background .2s; }
.admin-radio-card:hover > span { transform: translateY(-2px); border-color: rgba(95,158,209,.38); background: rgba(95,158,209,.08); }
.admin-radio-card input:checked + span { border-color: var(--orange); background: rgba(242,149,49,.13); box-shadow: inset 0 0 0 1px rgba(242,149,49,.18); }
.admin-switchbot-status-grid { border-radius: 10px; background: rgba(95,158,209,.045); }
.admin-switchbot-status-grid strong { color: rgba(255,255,255,.8); }
.admin-switchbot-badge { border-color: rgba(95,158,209,.36); border-radius: 999px; color: #9bc4e4; }
.admin-access-panel strong { color: #fff; }
.admin-empty strong { color: #fff; }

@keyframes admin-buoy { 50% { transform: translateY(-3px) rotate(-.7deg); } }
@keyframes admin-signal { 50% { opacity: .45; transform: scale(.86); } }
@keyframes admin-bearing-turn { to { transform: rotate(360deg); } }
@keyframes admin-bearing-mark { 0%,100% { transform: rotate(-20deg); } 50% { transform: rotate(34deg); } }
@keyframes admin-wake { to { background-position: 132% 0; } }

@media (max-width: 980px) {
  .admin-columns { grid-template-columns: 1fr; }
  .admin-switchbot-layout { grid-template-columns: 1fr; }
  .admin-switchbot-status-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-side-column { grid-template-columns: 1fr 1fr; }
  .admin-screens-panel { min-height: 0; }
}
@media (max-width: 700px) {
  .admin-topbar { align-items: flex-start; gap: 14px; padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
  .admin-brand img { width: 70px; height: 39px; }
  .admin-brand span { padding-left: 10px; }
  .admin-brand strong { font-size: 14px; }
  .admin-brand small { display: none; }
  .admin-identity { align-items: flex-end; flex-direction: column; gap: 3px; }
  .admin-identity-dot { display: none; }
  .admin-layout { width: min(100% - 28px, 1440px); padding-top: 35px; }
  .admin-intro { align-items: flex-start; flex-direction: column; }
  .admin-intro-controls { width: 100%; }
  .admin-bearing { width: 78px; }
  .admin-bearing img { width: 27px; height: 27px; }
  .admin-intro-controls .admin-button { flex: 1; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-side-column { grid-template-columns: 1fr; }
  .admin-screen-card { grid-template-columns: 1fr; }
  .admin-view-switch { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .admin-screen-details { grid-column: 1; grid-template-columns: 1fr; }
  .admin-transition-test { grid-column: 1; align-items: stretch; flex-direction: column; }
  .admin-transition-test-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-screen-actions { grid-column: 1; }
  .admin-screen-actions button { flex: 1 1 calc(50% - 9px); }
  .admin-screen-actions { flex-wrap: wrap; }
  .admin-switchbot-fields,
  .admin-switchbot-status-grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .admin-stats article:hover,
  .admin-screen-card:hover,
  .admin-button:hover,
  .admin-radio-card:hover > span,
  .admin-transition-test-actions button:hover,
  .admin-screen-actions button:hover { transform: none; }
  .admin-button:active,
  .admin-radio-card:active > span,
  .admin-transition-test-actions button:active,
  .admin-screen-actions button:active { transform: scale(.985); border-color: rgba(95,158,209,.5); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-body *, .admin-body *::before, .admin-body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(112, 213, 231, 0.38); } 75%, 100% { box-shadow: 0 0 0 0.55vw rgba(112, 213, 231, 0); } }
@keyframes anchor-breathe {
  0%, 100% { opacity: 0.72; transform: translateZ(0) scale(0.96); }
  50% { opacity: 1; transform: translateZ(0) scale(1.1); }
}
@keyframes anchor-wave {
  0% { opacity: 0; transform: scale(0.72); }
  18% { opacity: 0.78; }
  72%, 100% { opacity: 0; transform: scale(1.42); }
}
@keyframes sick-roll {
  0%, 100% { opacity: 0.52; transform: translateY(-2.4px); }
  50% { opacity: 1; transform: translateY(3.2px); }
}
@keyframes flash-pop {
  0%, 68%, 100% { opacity: 0.88; transform: scale(1); }
  70% { opacity: 0.18; transform: scale(0.88); }
  72% { opacity: 1; transform: scale(1.28); }
  74% { opacity: 0.28; transform: scale(0.94); }
  76% { opacity: 1; transform: scale(1.2); }
  80% { opacity: 0.88; transform: scale(1); }
}
@keyframes galley-state-change {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  18% { opacity: 0.54; transform: translate3d(1.15vw, -3.2vh, 0) scale(1.08); }
  42% { opacity: 1; transform: translate3d(-0.48vw, -0.7vh, 0) scale(1.045); }
  68% { opacity: 0.86; transform: translate3d(0.2vw, -1.45vh, 0) scale(1.025); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes arrival-card-land {
  0% { border-color: rgba(255, 106, 26, 0.95); transform: translate3d(0, 0, 0) scale(1.18); }
  45% { border-color: rgba(255, 106, 26, 0.72); transform: translate3d(0, 0, 0) scale(0.97); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes sleep-anchor-breathe {
  0%, 100% { opacity: .78; transform: translateZ(0) scale(.96); }
  50% { opacity: 1; transform: translateZ(0) scale(1.07); }
}
@keyframes sleep-anchor-orbit {
  0% { opacity: 0; transform: translateY(-2vh) scale(.76); }
  22% { opacity: .64; }
  78%, 100% { opacity: 0; transform: translateY(-2vh) scale(1.42); }
}
@keyframes lifecycle-anchor-charge {
  0%, 100% { opacity: .76; transform: translateZ(0) scale(.9); }
  42% { opacity: 1; transform: translateZ(0) scale(1.16); }
  56% { opacity: .68; transform: translateZ(0) scale(1.04); }
  72% { opacity: 1; transform: translateZ(0) scale(1.22); }
}
@keyframes lifecycle-anchor-settle {
  0% { opacity: .18; transform: translateZ(0) scale(1.5); }
  48% { opacity: 1; transform: translateZ(0) scale(.92); }
  72% { transform: translateZ(0) scale(1.07); }
  100% { opacity: 1; transform: translateZ(0) scale(1); }
}
@keyframes lifecycle-region-strike {
  0% { opacity: 0; transform: translate3d(0, 3.4vh, 0) scale(.94); }
  64% { opacity: 1; transform: translate3d(0, -.45vh, 0) scale(1.012); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes strongclub-frame-idle {
  0%, 100% { opacity: .32; }
  50% { opacity: .62; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
