/* ========== Design tokens ========== */
:root {
  --font: "Outfit", system-ui, sans-serif;
  --font-quote: "Playfair Display", Georgia, serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text: #fff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
  background: #0b1d36;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* iOS-friendly scroll lock while staff sheet is open */
body.sheet-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

button,
input {
  font-family: inherit;
}

/* ========== Sky scenes ========== */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: background 1.2s ease;
  background: linear-gradient(180deg, #1a6bb5 0%, #5eb8e8 45%, #a8d8f0 70%, #e8f4c8 100%);
}

/* Open / sunny */
.sky.mode-open {
  background: linear-gradient(180deg, #1a6bb5 0%, #4aa8e0 40%, #87ceeb 65%, #f0e68c 100%);
}

.sky.mode-open .sun {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.sky.mode-open .moon,
.sky.mode-open .stars,
.sky.mode-open .weather-rain,
.sky.mode-open .weather-snow {
  opacity: 0;
  pointer-events: none;
}

.sky.mode-open .clouds {
  opacity: 0.55;
}

.sky.mode-open .ground {
  background: linear-gradient(180deg, transparent, rgba(120, 180, 80, 0.35));
}

/* Rain closed */
.sky.mode-rain {
  background: linear-gradient(180deg, #1a2332 0%, #2c3e50 40%, #3d5468 75%, #4a5f6f 100%);
}

.sky.mode-rain .sun,
.sky.mode-rain .moon,
.sky.mode-rain .stars,
.sky.mode-rain .weather-snow {
  opacity: 0;
  pointer-events: none;
}

.sky.mode-rain .clouds {
  opacity: 0.9;
  filter: brightness(0.55) saturate(0.6);
}

.sky.mode-rain .weather-rain {
  opacity: 1;
}

.sky.mode-rain .ground {
  background: linear-gradient(180deg, transparent, rgba(30, 50, 70, 0.55));
}

/* Snow closed */
.sky.mode-snow {
  background: linear-gradient(180deg, #6b8cae 0%, #9bb5cc 35%, #c5d4e0 70%, #e8eef4 100%);
}

.sky.mode-snow .sun,
.sky.mode-snow .moon,
.sky.mode-snow .stars,
.sky.mode-snow .weather-rain {
  opacity: 0;
  pointer-events: none;
}

.sky.mode-snow .clouds {
  opacity: 0.75;
  filter: brightness(1.05) saturate(0.3);
}

.sky.mode-snow .weather-snow {
  opacity: 1;
}

.sky.mode-snow .ground {
  background: linear-gradient(180deg, transparent, rgba(240, 248, 255, 0.55));
}

/* Night closed */
.sky.mode-night {
  background: linear-gradient(180deg, #050b18 0%, #0b1d36 40%, #132744 70%, #1a3355 100%);
}

.sky.mode-night .sun,
.sky.mode-night .weather-rain,
.sky.mode-night .weather-snow {
  opacity: 0;
  pointer-events: none;
}

.sky.mode-night .moon,
.sky.mode-night .stars {
  opacity: 1;
}

.sky.mode-night .clouds {
  opacity: 0.25;
  filter: brightness(0.4);
}

.sky.mode-night .ground {
  background: linear-gradient(180deg, transparent, rgba(5, 15, 30, 0.6));
}

/* Sun */
.sun {
  position: absolute;
  top: 12%;
  left: 72%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9c4, #ffd54f 40%, #ff9800 100%);
  box-shadow:
    0 0 40px 15px rgba(255, 213, 79, 0.55),
    0 0 100px 40px rgba(255, 167, 38, 0.35);
  opacity: 0;
  transform: translate(-50%, 20px) scale(0.6);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  animation: sun-glow 4s ease-in-out infinite alternate;
}

@keyframes sun-glow {
  from { box-shadow: 0 0 40px 15px rgba(255, 213, 79, 0.5), 0 0 100px 40px rgba(255, 167, 38, 0.3); }
  to { box-shadow: 0 0 55px 22px rgba(255, 213, 79, 0.7), 0 0 120px 55px rgba(255, 167, 38, 0.45); }
}

/* Moon */
.moon {
  position: absolute;
  top: 10%;
  right: 14%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5f0e1, #d4cfc0 70%, #b8b0a0);
  box-shadow: 0 0 40px 10px rgba(200, 220, 255, 0.25);
  opacity: 0;
  transition: opacity 1s ease;
}

.moon::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 28px 20px 0 -4px rgba(0, 0, 0, 0.07), 10px 40px 0 -6px rgba(0, 0, 0, 0.06);
}

/* Stars */
.stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 25% 45%, #fff, transparent),
    radial-gradient(1px 1px at 40% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 40%, #fff, transparent),
    radial-gradient(1px 1px at 15% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 35% 75%, #fff, transparent),
    radial-gradient(1px 1px at 60% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 70%, #fff, transparent),
    radial-gradient(1px 1px at 92% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 5% 80%, #fff, transparent);
  animation: twinkle 3.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

.sky.mode-night .stars {
  animation: twinkle 3.5s ease-in-out infinite alternate;
}

/* Clouds */
.clouds {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 1s ease, filter 1s ease;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 100px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.08));
  animation: drift linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 50%;
  height: 100%;
  top: -45%;
  left: 12%;
}

.cloud::after {
  width: 60%;
  height: 120%;
  top: -55%;
  right: 10%;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 200px)); }
}

/* Rain layer (do not use class name "rain" on buttons — it would hide them) */
.weather-rain {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  overflow: hidden;
}

.drop {
  position: absolute;
  top: -20px;
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, transparent, rgba(200, 230, 255, 0.7));
  border-radius: 2px;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(110vh);
  }
}

/* Snow layer */
.weather-snow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  overflow: hidden;
}

.flake {
  position: absolute;
  top: -20px;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
  animation: snowfall linear infinite;
  user-select: none;
  line-height: 1;
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(40px, 110vh, 0) rotate(360deg);
    opacity: 0.2;
  }
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  pointer-events: none;
  transition: background 1s ease;
}

/* ========== App chrome ========== */
.app {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(16px + var(--safe-t)) 20px calc(24px + var(--safe-b));
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 30%;
  background: #0b1d36;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.brand h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.tagline {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 400;
  margin-top: 2px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.icon-btn:active {
  transform: scale(0.94);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Status card */
.status-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.status-pulse {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
  animation: pulse-dot 2s ease infinite;
}

.status-pulse.is-closed {
  background: #ff7043;
  box-shadow: 0 0 0 0 rgba(255, 112, 67, 0.5);
  animation: pulse-dot-closed 2s ease infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes pulse-dot-closed {
  0% { box-shadow: 0 0 0 0 rgba(255, 112, 67, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 112, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 112, 67, 0); }
}

.status-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.status-title {
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.status-message {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.45;
  max-width: 28ch;
  margin: 0 auto 18px;
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Customer notes — high-visibility stack (up to 5) */
.notices-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Author CSS can override UA [hidden]; force hide when empty */
.notices-wrap[hidden] {
  display: none !important;
}

.notices-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8e1;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.55), rgba(230, 81, 0, 0.5));
  border: 1px solid rgba(255, 224, 130, 0.5);
  box-shadow: 0 6px 18px rgba(255, 143, 0, 0.3);
}

.notices-heading-icon {
  font-size: 1rem;
}

.notices-count {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.9;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.notices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Customer notice / message board — high-visibility when posted */
.notice-card {
  position: relative;
  border-radius: 24px;
  padding: 3px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    135deg,
    #ffe082 0%,
    #ffb300 35%,
    #ff8f00 70%,
    #ffca28 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 236, 179, 0.55),
    0 12px 40px rgba(255, 160, 0, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.25);
  animation:
    notice-in 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    notice-glow-pulse 2.8s ease-in-out infinite;
}

.notice-card + .notice-card {
  animation-delay: 0.05s;
}

.notice-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.55),
    transparent 42%
  );
  pointer-events: none;
  z-index: 0;
  animation: notice-shimmer 4s ease-in-out infinite;
}

.notice-inner {
  position: relative;
  z-index: 1;
  border-radius: 21px;
  padding: 18px 18px 16px 20px;
  background: linear-gradient(
    165deg,
    #fff8e1 0%,
    #ffecb3 48%,
    #ffe082 100%
  );
  color: #3e2723;
  border-left: 6px solid #e65100;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes notice-glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 236, 179, 0.55),
      0 12px 40px rgba(255, 160, 0, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 224, 130, 0.75),
      0 16px 48px rgba(255, 143, 0, 0.55),
      0 6px 20px rgba(0, 0, 0, 0.28);
  }
}

@keyframes notice-shimmer {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-4%) translateY(0);
  }
  50% {
    opacity: 0.95;
    transform: translateX(4%) translateY(-2%);
  }
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bf360c;
  margin-bottom: 12px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3e0, #ffcc80);
  border: 1.5px solid rgba(230, 81, 0, 0.35);
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.18);
}

.notice-icon {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.notice-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e65100;
  margin-left: 2px;
  box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.55);
  animation: notice-dot-pulse 1.6s ease infinite;
}

@keyframes notice-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(230, 81, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0);
  }
}

.notice-text {
  font-size: clamp(1.15rem, 4.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #212121;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.notice-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #6d4c41;
  font-weight: 600;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .notice-card,
  .notice-glow,
  .notice-pulse-dot {
    animation: notice-in 0.3s ease !important;
  }

  .notice-glow,
  .notice-pulse-dot {
    animation: none !important;
  }
}

/* Bay availability (customer) */
.bays-card {
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bays-header {
  margin-bottom: 14px;
}

.bays-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.bays-summary {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.35;
}

.bays-group + .bays-group {
  margin-top: 14px;
}

.bays-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.bays-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 380px) {
  .bays-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bay-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 12px 12px 11px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.bay-chip.is-online {
  border-color: rgba(129, 199, 132, 0.45);
  background: rgba(76, 175, 80, 0.16);
}

.bay-chip.is-down {
  border-color: rgba(255, 167, 38, 0.55);
  background: rgba(255, 152, 0, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.15);
}

.bay-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bay-chip-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bay-chip-status {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.bay-chip.is-online .bay-chip-status {
  color: #c8e6c9;
  background: rgba(46, 125, 50, 0.45);
}

.bay-chip.is-down .bay-chip-status {
  color: #fff3e0;
  background: rgba(230, 81, 0, 0.55);
}

.bay-chip-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  font-weight: 500;
}

/* Staff bay board */
.bay-board-card {
  border-radius: 18px;
  padding: 16px 14px 14px;
  margin-bottom: 18px;
  background: rgba(129, 199, 132, 0.1);
  border: 1px solid rgba(129, 199, 132, 0.28);
}

.staff-bay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.staff-bay-row {
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-bay-row.is-down {
  border-color: rgba(255, 167, 38, 0.4);
  background: rgba(255, 152, 0, 0.1);
}

.staff-bay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-bay-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.staff-bay-type {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.staff-bay-toggle {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.staff-bay-toggle button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 58px;
}

.staff-bay-toggle button.is-active.open {
  background: rgba(76, 175, 80, 0.45);
  color: #fff;
}

.staff-bay-toggle button.is-active.down {
  background: rgba(230, 81, 0, 0.55);
  color: #fff;
}

.staff-bay-note {
  margin-top: 10px;
}

.staff-bay-note[hidden] {
  display: none !important;
}

.staff-bay-note .field {
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.bay-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.bay-note-chips .chip {
  font-size: 0.72rem;
  padding: 6px 10px;
}

#saveBaysBtn {
  margin-top: 4px;
}

/* Staff posted notes list */
.posted-notes-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.posted-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.notes-quota {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.notes-quota.is-full {
  color: #ffcc80;
}

.staff-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.staff-note-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.staff-note-text {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

.staff-note-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.staff-note-remove {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffcdd2;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.staff-note-remove:hover {
  background: rgba(244, 67, 54, 0.25);
}

.staff-note-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Staff message board */
.message-board-card {
  border-radius: 18px;
  padding: 16px 14px 14px;
  margin-bottom: 18px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 213, 79, 0.28);
}

.message-board-head h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.message-board-head p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  margin-bottom: 4px;
}

.field-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.45;
  font-size: 0.95rem;
}

.char-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.char-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.char-count.near-limit {
  color: #ffcc80;
}

.chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 12px 0 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.chip:active {
  transform: scale(0.97);
}

.message-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

.message-actions .btn {
  margin-top: 0;
}

.live-note-preview {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 380px) {
  .status-grid-2 {
    grid-template-columns: 1fr;
  }

  .message-actions {
    grid-template-columns: 1fr;
  }
}

.status-grid-2 .status-option {
  min-height: 88px;
  padding: 12px 10px;
}

.status-grid-2 .so-emoji {
  font-size: 1.45rem;
}

.status-grid-2 .so-title {
  font-size: 0.92rem;
}

.status-grid-2 .so-desc {
  font-size: 0.72rem;
}

.meta-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
}

.meta-pill.weather-pill {
  background: rgba(255, 255, 255, 0.12);
}

.meta-pill.weather-pill.is-rain {
  background: rgba(100, 149, 237, 0.28);
  border-color: rgba(160, 200, 255, 0.35);
}

.meta-pill.weather-pill.is-snow {
  background: rgba(220, 235, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auto-weather-card {
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin-bottom: 18px;
  background: rgba(66, 165, 245, 0.12);
  border: 1px solid rgba(100, 181, 246, 0.28);
}

.auto-weather-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.auto-weather-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auto-weather-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  max-width: 34ch;
}

.auto-weather-live {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-ui {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  transition: background 0.2s ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-ui {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  border-color: transparent;
}

.toggle input:checked + .toggle-ui::after {
  transform: translateX(22px);
}

.toggle input:focus-visible + .toggle-ui {
  outline: 2px solid #90caf9;
  outline-offset: 2px;
}

.address-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.12s ease;
  text-align: left;
}

.address-link:hover {
  background: rgba(0, 0, 0, 0.28);
}

.address-link:active {
  transform: scale(0.98);
}

.address-pin {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.address-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.address-line {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.address-line.soft {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
}

.address-cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  flex-shrink: 0;
}

/* Quote */
.quote-card {
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.quote-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.quote-text {
  font-family: var(--font-quote);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.quote-author {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--text-soft);
  display: block;
}

/* Tips */
.tips-card {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tips-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tips-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tips-card li {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.4;
}

.tips-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

/* Install / Add to Home Screen */
.install-card {
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.install-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.install-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.install-header h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.install-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.35;
}

.install-details {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  overflow: hidden;
}

.install-details:last-of-type {
  margin-bottom: 0;
}

.install-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  user-select: none;
}

.install-details summary::-webkit-details-marker {
  display: none;
}

.install-os {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-chevron {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}

.install-details[open] .install-chevron {
  transform: rotate(180deg);
}

.install-steps {
  margin: 0 14px 14px;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.install-steps li strong {
  color: #fff;
  font-weight: 600;
}

.install-note {
  margin: 0 14px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85em;
  line-height: 1.3;
}

.footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.sync-badge {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  align-self: center;
}

.sync-badge.live {
  color: #a5d6a7;
  border-color: rgba(129, 199, 132, 0.35);
}

.sync-badge.error {
  color: #ffab91;
  border-color: rgba(255, 138, 128, 0.35);
}

.cloud-lead {
  margin-bottom: 8px;
}

.cloud-lead code,
.hint code {
  font-size: 0.78em;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.cloud-block {
  margin-bottom: 8px;
}

/* ========== Admin sheet ========== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 12, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}

.sheet-backdrop[hidden],
.sheet[hidden] {
  display: none !important;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  max-height: min(92vh, 92dvh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #1a2a40 0%, #121c2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  padding: 12px 20px calc(28px + var(--safe-b));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  animation: slide-up 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  color: #fff;
}

/* Desktop: center sheet as a modal card */
@media (min-width: 720px) {
  .sheet {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 40px));
    max-height: min(86vh, 720px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: fade-scale-in 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }

  @keyframes fade-scale-in {
    from {
      opacity: 0;
      transform: translate(-50%, -46%) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  margin: 4px auto 14px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sheet-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.sheet-lead {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  margin-bottom: 18px;
}

.pin-gate,
.admin-controls {
  padding-top: 4px;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
  margin-top: 12px;
}

.field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field:focus {
  border-color: rgba(100, 180, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.error {
  color: #ff8a80;
  font-size: 0.85rem;
  margin-top: 8px;
}

.hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
  line-height: 1.4;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.status-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  padding: 16px;
  min-height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}

.status-option:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.status-option .so-emoji {
  grid-row: 1 / 3;
  font-size: 1.75rem;
  line-height: 1;
}

.status-option .so-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.status-option .so-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.status-option:hover {
  background: rgba(255, 255, 255, 0.09);
}

.status-option:active {
  transform: scale(0.98);
}

.status-option.active {
  border-color: #64b5f6;
  background: rgba(100, 181, 246, 0.15);
  box-shadow: 0 0 0 1px rgba(100, 181, 246, 0.3);
}

.status-option.is-rain.active {
  border-color: #90caf9;
  background: rgba(100, 140, 180, 0.25);
}

.status-option.is-snow.active {
  border-color: #e3f2fd;
  background: rgba(187, 222, 251, 0.22);
}

.status-option.night.active {
  border-color: #b39ddb;
  background: rgba(126, 87, 194, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .flake {
    animation: none !important;
    opacity: 0.7;
  }
}

.settings-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  margin-top: 4px;
}

.settings-block h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.save-toast {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #81c784;
  animation: fade-in 0.2s ease;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .sun,
  .stars,
  .cloud,
  .drop,
  .status-pulse,
  .sheet,
  .sheet-backdrop {
    animation: none !important;
  }
}
