:root { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: #020912; }
.windy-maintenance-app [hidden] { display: none !important; }
.windy-maintenance-app { width: min(1500px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 28px; }
.maintenance-topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.maintenance-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); text-decoration: none; font-weight: 800; }
.maintenance-brand .delivrone-systems-brand { width: 138px; height: 50px; }
.super-admin-pill { border: 1px solid rgba(255,123,118,.42); border-radius: 999px; padding: 7px 11px; color: var(--danger); background: rgba(255,123,118,.07); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.maintenance-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 42px 0 24px; }
.maintenance-heading h1 { margin: 2px 0 8px; font-size: clamp(2.5rem, 6vw, 5rem); }
.maintenance-heading p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); }
.maintenance-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.maintenance-actions button { min-height: 48px; padding: 0 18px; }
.maintenance-safety { margin-bottom: 18px; border: 1px solid rgba(242,188,99,.35); border-radius: 14px; padding: 14px 17px; background: rgba(242,188,99,.07); }
.maintenance-safety strong { color: var(--warning); }
.maintenance-safety p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.maintenance-status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; background: #081522; }
.status-indicator { width: 12px; height: 12px; border-radius: 50%; background: #7b8792; box-shadow: 0 0 0 5px rgba(123,135,146,.1); }
.maintenance-status.active .status-indicator { background: var(--success); box-shadow: 0 0 0 5px rgba(85,223,160,.12); }
.maintenance-status.waiting .status-indicator { background: var(--warning); box-shadow: 0 0 0 5px rgba(242,188,99,.12); }
.maintenance-status.error .status-indicator { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,123,118,.12); }
.maintenance-status p { margin: 3px 0 0; color: var(--muted); }
.session-countdown { color: var(--mint); font: 800 .9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.remote-stage { height: min(76vh, 920px); min-height: 620px; overflow: hidden; border: 1px solid rgba(20,156,255,.42); border-radius: 18px; background: #000; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.remote-stage iframe { width: 100%; height: 100%; border: 0; background: #000; }
.maintenance-placeholder { min-height: 420px; display: grid; place-content: center; justify-items: center; border: 1px dashed rgba(138,190,225,.28); border-radius: 18px; padding: 36px; text-align: center; background: linear-gradient(145deg, rgba(8,21,34,.72), rgba(2,9,18,.88)); }
.maintenance-placeholder h2 { margin: 22px 0 8px; }
.maintenance-placeholder p { max-width: 650px; margin: 0; color: var(--muted); }
.placeholder-browser { width: 180px; height: 110px; display: flex; gap: 6px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #050e17; }
.placeholder-browser span { width: 9px; height: 9px; border-radius: 50%; background: #52606c; }
.maintenance-toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; max-width: calc(100% - 32px); transform: translate(-50%,18px); border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; color: var(--text); background: #182225; opacity: 0; transition: .2s ease; pointer-events: none; }
.maintenance-toast.show { opacity: 1; transform: translate(-50%,0); }
.maintenance-toast.error { border-color: rgba(255,123,118,.55); color: var(--danger); }
@media (max-width: 800px) {
  .windy-maintenance-app { width: min(100% - 20px, 1500px); }
  .maintenance-heading { align-items: stretch; flex-direction: column; }
  .maintenance-actions, .maintenance-actions button { width: 100%; }
  .maintenance-status { grid-template-columns: auto 1fr; }
  .session-countdown { grid-column: 2; }
  .remote-stage { min-height: 520px; }
}
