/* wxseam 2026-10-28 v218: cache bump with clouds tile-seam fix */
/* loginflash 2026-10-27 v217: cache bump with login-flash fix (session hint + /login auth redirect) */
/* HangarSync web skin — only applies when html.hs-web. App mode (hs-app) is untouched. */

/* ---- Theme tokens (web only) ---- */
html.hs-web.hs-theme-dark {
  --bg: #0b1016;
  --card: #141b22;
  --line: #24303a;
  --btn-line: #24303a;
  --text: #f4f7f5;
  --muted: #8ea0ad;
  --fg: #3b82f6;
  --fg-bright: #60a5fa;
  --fg-deep: #2563eb;
  --fg-soft: rgba(59, 130, 246, 0.16);
  --fg-softer: rgba(59, 130, 246, 0.08);
  --hs-surface: #0e141c;
  --hs-header-bg: rgba(11, 16, 22, 0.94);
  --hs-nav-bg: rgba(11, 16, 22, 0.96);
  --hs-nav-chrome: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 100%), linear-gradient(105deg, var(--hs-nav-grad-start, #15202b) 0%, var(--hs-nav-grad-mid, #1a2a38) 42%, var(--hs-nav-grad-end, #1a2a45) 100%);
  --hs-nav-grad-start: #15202b;
  --hs-nav-grad-mid: #1a2a38;
  --hs-nav-grad-end: #1a2a45;
  --hs-nav-tabs: linear-gradient(105deg, var(--hs-nav-grad-start, #15202b) 0%, var(--hs-nav-grad-mid, #1a2a38) 42%, var(--hs-nav-grad-end, #1a2a45) 100%);
  --hs-nav-tab: rgba(244, 247, 245, 0.72);
  --hs-nav-tab-hover: #f4f7f5;
  --hs-nav-tab-active-bg: linear-gradient(180deg, color-mix(in srgb, var(--fg) 22%, transparent) 0%, color-mix(in srgb, var(--fg) 18%, #0c1014) 100%);
  --hs-nav-tab-edge: rgba(255, 255, 255, 0.08);
  --hs-nav-tab-active-edge: color-mix(in srgb, var(--fg) 55%, transparent);
  --hs-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --hs-input-bg: #0b1016;
  --hs-btn-fg: #0b1016;
  --hs-live-ok: #22c55e;
  --hs-live-ok-soft: rgba(34, 197, 94, 0.18);
}

html.hs-web.hs-theme-light {
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #b7c2cd;
  --btn-line: #7d8b98;
  --text: #15202b;
  --muted: #5b6b78;
  --fg: #3b82f6;
  --fg-bright: #60a5fa;
  --fg-deep: #2563eb;
  --fg-soft: rgba(59, 130, 246, 0.16);
  --fg-softer: rgba(59, 130, 246, 0.08);
  --hs-surface: #eef2f5;
  --hs-header-bg: rgba(244, 246, 248, 0.96);
  --hs-nav-bg: rgba(255, 255, 255, 0.97);
  --hs-nav-chrome: linear-gradient(105deg, color-mix(in srgb, var(--hs-nav-grad-start, #15202b) 18%, #ffffff) 0%, color-mix(in srgb, var(--hs-nav-grad-mid, #1a2a38) 16%, #ffffff) 42%, color-mix(in srgb, var(--hs-nav-grad-end, #1a2a45) 26%, #ffffff) 100%);
  --hs-nav-tabs: linear-gradient(105deg, #eef3f7 0%, #e4edf2 48%, color-mix(in srgb, var(--fg) 18%, #eef3f7) 100%);
  --hs-nav-tab: #1a2836;
  --hs-nav-tab-hover: #0b1016;
  --hs-nav-tab-active-bg: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--fg) 8%, #ffffff) 100%);
  --hs-nav-tab-edge: rgba(21, 32, 43, 0.14);
  --hs-nav-tab-active-edge: color-mix(in srgb, var(--fg) 65%, transparent);
  --hs-shadow: 0 8px 28px rgba(21, 32, 43, 0.08);
  --hs-input-bg: #ffffff;
  --hs-btn-fg: #0b1016;
  --hs-live-ok: #16a34a;
  --hs-live-ok-soft: rgba(22, 163, 74, 0.16);
}

/* ---- Anti-FOUC: match canvas + hold paint until site chrome injects ---- */
html.hs-web {
  background: #0b1016;
  color-scheme: dark;
}
html.hs-web.hs-theme-light {
  background: #f4f6f8;
  color-scheme: light;
}
/* Hide body until nav/theme chrome is ready so page switches don't flash naked headers */
html.hs-web:not(.hs-chrome-ready) body {
  visibility: hidden;
}
html.hs-web.hs-chrome-ready body {
  visibility: visible;
}

/* ---- Site top nav (injected) — Veryon-style chrome + modern gradient tabs ---- */
html.hs-web .hs-site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  min-height: 0;
  background: var(--hs-nav-chrome);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html.hs-web .hs-site-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
  order: 1;
  margin-right: 0;
  line-height: 0;
  padding: 10px 20px 10px 32px;
}

html.hs-web .hs-site-nav-logo-wrap {
  position: relative;
  display: block;
  width: 102px;
  height: 52px;
  flex: 0 0 auto;
  overflow: visible;
}

html.hs-web .hs-site-nav-logo {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 102px;
  height: 52px;
  background: transparent;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  pointer-events: none;
}

/* Theme swap without src change — keeps layout locked */
html.hs-web.hs-theme-dark .hs-logo-light,
html.hs-web.hs-theme-light .hs-logo-dark {
  opacity: 0;
}

html.hs-web.hs-theme-dark .hs-logo-dark,
html.hs-web.hs-theme-light .hs-logo-light {
  opacity: 1;
}

/* Unified brand mirror shine: one LL→UR pass across mark + wordmark + underline */
html.hs-web .hs-site-nav-brand {
  position: relative;
  overflow: visible;
}
html.hs-web .hs-brand-shine-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  filter: url(#hsBrandShineGlow);
}
html.hs-web .hs-brand-shine-lit {
  position: absolute;
  inset: -20px;
  padding: 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(transparent, transparent);
  mask-image: linear-gradient(transparent, transparent);
}
html.hs-web .hs-brand-shine-lit .hs-site-nav-logo-wrap {
  position: relative;
  width: var(--hs-logo-mark-w, 154px);
  height: var(--hs-logo-mark-h, 70px);
  flex: 0 0 auto;
  overflow: visible;
}
html.hs-web .hs-brand-shine-lit .hs-site-nav-logo {
  filter: url(#hsBrandShineHot);
}
html.hs-web .hs-brand-shine-lit .hs-brand-shine-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
html.hs-web .hs-brand-shine-lit .hs-brand-word {
  min-width: max-content;
  flex-shrink: 0;
}
html.hs-web .hs-brand-shine-lit .hs-brand-word span {
  color: #ffffff;
}
html.hs-web .hs-brand-shine-lit .hs-brand-word i {
  background: #eaf3ff;
}
html.hs-web .hs-brand-shine-lit .hs-brand-word i::before,
html.hs-web .hs-brand-shine-lit .hs-brand-word i::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}
/* Theme-aware mark in the lit clone (same as base logos) */
html.hs-web.hs-theme-dark .hs-brand-shine-lit .hs-logo-light,
html.hs-web.hs-theme-light .hs-brand-shine-lit .hs-logo-dark {
  opacity: 0;
}
html.hs-web.hs-theme-dark .hs-brand-shine-lit .hs-logo-dark,
html.hs-web.hs-theme-light .hs-brand-shine-lit .hs-logo-light {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  html.hs-web .hs-brand-shine-glow { display: none; }
}

html.hs-web .hs-site-nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1 0 100%;
  order: 3;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--hs-nav-tabs);
  border-top: 1px solid var(--hs-nav-tab-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0 12px 0 24px;
  min-height: 46px;
}
html.hs-web .hs-site-nav-links::-webkit-scrollbar { display: none; }

html.hs-web .hs-site-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hs-nav-tab);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: 0;
  white-space: nowrap;
  border-right: 1px solid var(--hs-nav-tab-edge);
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
html.hs-web .hs-site-nav-links a:last-child {
  border-right: none;
}

html.hs-web .hs-site-nav-links a:hover {
  color: var(--hs-nav-tab-hover);
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

html.hs-web .hs-site-nav-links a.is-active {
  color: var(--text);
  font-weight: 750;
  background: var(--hs-nav-tab-active-bg);
  border-bottom: none;
  padding-bottom: 13px;
  box-shadow:
    inset 0 -3px 0 var(--fg),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}


/* Home tab: house icon, vertically centered */
html.hs-web .hs-site-nav-links a.hs-nav-home {
  padding: 0 18px;
  min-width: 52px;
}
html.hs-web .hs-site-nav-links a.hs-nav-home .hs-nav-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}

/* Icon tool buttons — same visual scale as theme switch track (30px) */
html.hs-web .hs-site-nav-tools .hs-icon-tool,
html.hs-web .hs-site-nav-tools a.hs-icon-tool,
html.hs-web .hs-site-nav-tools button.hs-icon-tool {
  width: var(--hs-chrome-h) !important;
  height: var(--hs-chrome-h) !important;
  min-width: var(--hs-chrome-h) !important;
  min-height: var(--hs-chrome-h) !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--muted) !important;
  box-sizing: border-box !important;
}
html.hs-web .hs-site-nav-tools .hs-icon-tool:hover,
html.hs-web .hs-site-nav-tools a.hs-icon-tool:hover,
html.hs-web .hs-site-nav-tools button.hs-icon-tool:hover {
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--fg) 55%, transparent) !important;
  background: color-mix(in srgb, var(--fg) 12%, transparent) !important;
}
html.hs-web .hs-site-nav-tools .hs-icon-tool .hs-tool-icon {
  display: block;
  width: 15px;
  height: 15px;
  color: currentColor;
}
html.hs-web.hs-theme-light .hs-site-nav-tools .hs-icon-tool,
html.hs-web.hs-theme-light .hs-site-nav-tools a.hs-icon-tool,
html.hs-web.hs-theme-light .hs-site-nav-tools button.hs-icon-tool {
  border-color: rgba(21, 32, 43, 0.28) !important;
  background: rgba(21, 32, 43, 0.04) !important;
}



html.hs-web.hs-theme-light .hs-site-nav-links a {
  color: var(--hs-nav-tab);
  font-weight: 700;
}
html.hs-web.hs-theme-light .hs-site-nav-links a.is-active {
  color: #0b1016;
}
html.hs-web .hs-site-nav-tools {
  --hs-chrome-h: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  order: 2;
  margin-left: auto;
  padding: 10px 10px 10px 12px;
}

/* Drop duplicate Home from page tools (site links already include Home) */
html.hs-web .hs-site-nav-tools > a.tool[href="/"],
html.hs-web .hs-site-nav-tools > a.tool[href="/home"] {
  display: none !important;
}

/* ---- Layout: left-aligned wide canvas (not phone-centered) ---- */
html.hs-web body {
  background: var(--bg);
  color: var(--text);
}

html.hs-web header:not(.hs-site-nav) {
  max-width: 1400px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 20px 32px 10px !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent;
  box-sizing: border-box;
  width: 100%;
}

html.hs-web main {
  max-width: 1400px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 24px 32px 48px !important;
  box-sizing: border-box;
  width: 100%;
}

html.hs-web .tools {
  gap: 8px;
}

html.hs-web .tool,
html.hs-web a.tool,
html.hs-web button.tool {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--btn-line);
  border-color: var(--btn-line);
  color: var(--muted);
  background: transparent;
}

html.hs-web .tool:hover,
html.hs-web a.tool:hover,
html.hs-web button.tool:hover {
  border-color: var(--fg);
  color: var(--text);
}


/* Light theme: stronger grey outline so chrome buttons don’t wash out */
html.hs-web.hs-theme-light .tool,
html.hs-web.hs-theme-light a.tool,
html.hs-web.hs-theme-light button.tool,
html.hs-web.hs-theme-light .hs-site-nav-tools .tool,
html.hs-web.hs-theme-light .hs-site-nav-tools a.tool,
html.hs-web.hs-theme-light .hs-site-nav-tools button.tool,
html.hs-web.hs-theme-light .viewbar button.view,
html.hs-web.hs-theme-light .top-actions button.act,
html.hs-web.hs-theme-light .door .actions button.act,
html.hs-web.hs-theme-light #login button#signIn,
html.hs-web.hs-theme-light #login .install,
html.hs-web.hs-theme-light a.tile,
html.hs-web.hs-theme-light a.service,
html.hs-web.hs-theme-light .card,
html.hs-web.hs-theme-light .day .card,
html.hs-web.hs-theme-light .door {
  border-color: var(--btn-line) !important;
}

html.hs-web.hs-theme-light .hs-site-nav-tools .tool:hover,
html.hs-web.hs-theme-light .hs-site-nav-tools a.tool:hover,
html.hs-web.hs-theme-light .hs-site-nav-tools button.tool:hover,
html.hs-web.hs-theme-light .tool:hover,
html.hs-web.hs-theme-light a.tool:hover,
html.hs-web.hs-theme-light button.tool:hover {
  border-color: var(--fg) !important;
}

/* Site-nav chrome: quieter pill/chip tools matching gradient header */
html.hs-web .hs-site-nav-tools .tool:not(.hs-theme-toggle),
html.hs-web .hs-site-nav-tools a.tool:not(.hs-theme-toggle),
html.hs-web .hs-site-nav-tools button.tool:not(.hs-theme-toggle) {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 6px 11px !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
  transition: color .15s ease, border-color .15s ease, background .15s ease !important;
}
html.hs-web .hs-site-nav-tools .tool:not(.hs-theme-toggle):hover,
html.hs-web .hs-site-nav-tools a.tool:not(.hs-theme-toggle):hover,
html.hs-web .hs-site-nav-tools button.tool:not(.hs-theme-toggle):hover {
  border-color: color-mix(in srgb, var(--fg) 50%, transparent) !important;
  color: var(--text) !important;
  background: color-mix(in srgb, var(--fg) 10%, transparent) !important;
}
html.hs-web.hs-theme-light .hs-site-nav-tools .tool:not(.hs-theme-toggle),
html.hs-web.hs-theme-light .hs-site-nav-tools a.tool:not(.hs-theme-toggle),
html.hs-web.hs-theme-light .hs-site-nav-tools button.tool:not(.hs-theme-toggle) {
  border-color: rgba(21, 32, 43, 0.14) !important;
  background: rgba(21, 32, 43, 0.03) !important;
}

/* Quiet chrome chips: Logout — same 30px height as theme switch */
html.hs-web .hs-site-nav-tools .hs-chrome-btn:not(.hs-theme-toggle),
html.hs-web .hs-site-nav-tools #logoutBtn {
  height: var(--hs-chrome-h) !important;
  min-height: var(--hs-chrome-h) !important;
  max-height: var(--hs-chrome-h) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 650 !important;
  letter-spacing: 0.03em !important;
  color: var(--muted) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-transform: none !important;
  border-radius: 999px !important;
  width: auto !important;
  min-width: var(--hs-chrome-h) !important;
}
html.hs-web .hs-site-nav-tools .hs-chrome-btn:not(.hs-theme-toggle):hover {
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--fg) 45%, transparent) !important;
  background: color-mix(in srgb, var(--fg) 8%, transparent) !important;
}
html.hs-web.hs-theme-light .hs-site-nav-tools .hs-chrome-btn:not(.hs-theme-toggle) {
  border-color: rgba(21, 32, 43, 0.28) !important;
  background: rgba(21, 32, 43, 0.04) !important;
}

/* Theme switch — always-visible track + handle (both themes) */
html.hs-web .hs-theme-toggle,
html.hs-web .hs-site-nav-tools .hs-theme-toggle {
  width: auto !important;
  min-width: 0 !important;
  height: var(--hs-chrome-h) !important;
  min-height: var(--hs-chrome-h) !important;
  max-height: var(--hs-chrome-h) !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important; /* no oversized outer ring */
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
}
html.hs-web .hs-theme-toggle .hs-theme-track {
  position: relative;
  display: block;
  width: 54px;
  height: var(--hs-chrome-h);
  border-radius: 999px;
  box-sizing: border-box;
  border: none !important; /* no outer ring — green fill only */
  outline: none !important;
  background: #1a2430;
  box-shadow: none !important;
  overflow: hidden;
}
html.hs-web .hs-theme-toggle .hs-theme-ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
html.hs-web .hs-theme-toggle .hs-theme-ico-moon {
  left: 7px;
  color: #c9d6e0;
}
html.hs-web .hs-theme-toggle .hs-theme-ico-sun {
  right: 7px;
  color: #f0c14a;
}
html.hs-web .hs-theme-toggle .hs-theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: none !important; /* no ring around knob */
  box-shadow: none !important;
  outline: none !important;
  transition: transform .18s ease, background .18s ease;
  pointer-events: none;
  z-index: 2;
}
/* Dark = knob left (moon side); Light = knob right (sun side) */
html.hs-web .hs-theme-toggle[aria-pressed="true"] .hs-theme-track,
html.hs-web .hs-theme-toggle[aria-checked="true"] .hs-theme-track {
  background: color-mix(in srgb, var(--fg) 55%, #1e2a3a);
  border: none;
}
html.hs-web .hs-theme-toggle[aria-pressed="true"] .hs-theme-knob,
html.hs-web .hs-theme-toggle[aria-checked="true"] .hs-theme-knob {
  transform: translateX(24px);
  background: #ffffff;
}
html.hs-web.hs-theme-light .hs-theme-toggle .hs-theme-track {
  background: #d7dde4;
  border: none;
  box-shadow: none;
}
html.hs-web.hs-theme-light .hs-theme-toggle .hs-theme-ico-moon {
  color: #4a5a68;
}
html.hs-web.hs-theme-light .hs-theme-toggle[aria-pressed="true"] .hs-theme-track,
html.hs-web.hs-theme-light .hs-theme-toggle[aria-checked="true"] .hs-theme-track {
  background: color-mix(in srgb, var(--fg) 45%, #e4eef8);
  border: none;
}
html.hs-web .hs-theme-toggle:hover .hs-theme-track {
  filter: brightness(1.06);
}
html.hs-web .hs-theme-toggle:focus-visible {
  outline: none;
  outline-offset: 2px;
}

/* Tool order spacing: theme | notify | admin | logout — admin tight to logout */
html.hs-web .hs-site-nav-tools .hs-icon-tool,
html.hs-web .hs-site-nav-tools a.hs-icon-tool,
html.hs-web .hs-site-nav-tools button.hs-icon-tool {
  flex: 0 0 auto !important;
}
html.hs-web .hs-site-nav-tools #adminBtn,
html.hs-web .hs-site-nav-tools button.hs-icon-tool[aria-label="Admin"] {
  margin-right: 0 !important;
  margin-left: 2px !important;
}
html.hs-web .hs-site-nav-tools #logoutBtn,
html.hs-web .hs-site-nav-tools .hs-chrome-btn:not(.hs-theme-toggle):not(.hs-icon-tool) {
  flex: 0 0 auto !important;
  margin-left: 4px !important;
  position: relative !important;
  z-index: 2 !important;
}
html.hs-web .hs-theme-toggle-fixed {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
}


/* Final: no outer pill/ring outside the track (knob + icons only) */
html.hs-web .hs-theme-toggle,
html.hs-web button.hs-theme-toggle,
html.hs-web .hs-site-nav-tools .hs-theme-toggle,
html.hs-web .hs-site-nav-tools button.hs-theme-toggle,
html.hs-web .hs-theme-toggle-fixed,
html.hs-web button.hs-theme-toggle-fixed,
html.hs-web body:has(#login) .hs-theme-toggle-fixed,
html.hs-web body:has(#login) button.hs-theme-toggle-fixed {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: 0 !important;
}
html.hs-web .hs-theme-toggle:hover,
html.hs-web button.hs-theme-toggle:hover,
html.hs-web .hs-site-nav-tools .hs-theme-toggle:hover,
html.hs-web .hs-site-nav-tools button.hs-theme-toggle:hover,
html.hs-web .hs-theme-toggle-fixed:hover,
html.hs-web button.hs-theme-toggle-fixed:hover {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}
html.hs-web .hs-theme-toggle .hs-theme-track,
html.hs-web .hs-theme-toggle .hs-theme-knob {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
/* App shell now owns #hs-site-nav (top bar). Do not hide it.
   Theme switch stays in the ⋮ / user menu, not a floating toggle. */
html.hs-app .hs-theme-toggle,
html.hs-app #hs-theme-toggle {
  display: none !important;
}

/* ---- Home dashboard tiles ---- */
html.hs-web a.tile {
  border: 1px solid var(--btn-line);
  min-height: 132px;
  border-radius: 14px;
  padding: 20px;
  box-shadow: none;
}

html.hs-web a.tile:hover {
  border-color: color-mix(in srgb, var(--fg) 55%, var(--line));
  box-shadow: var(--hs-shadow);
}

html.hs-web a.tile .icon {
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 0;
}

html.hs-web a.tile .icon .tile-svg {
  display: block;
  width: 20px;
  height: 20px;
}

html.hs-web a.tile .label {
  font-size: 20px;
}

html.hs-web .grid {
  gap: 18px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  html.hs-web .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  html.hs-web .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Cameras: full window width; fixed columns so layout shape matches on every monitor */
html.hs-web body:has(#camGrid) header,
html.hs-web body:has(#camGrid) main {
  max-width: none !important;
  width: 100% !important;
}
html.hs-web #camGrid.grid {
  gap: 10px !important;
  margin-top: 0 !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (min-width: 640px) {
  html.hs-web #camGrid.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 900px) {
  html.hs-web #camGrid.grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (min-width: 1200px) {
  html.hs-web #camGrid.grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* ---- Cards / service links ---- */
html.hs-web .card,
html.hs-web .door,
html.hs-web a.service,
html.hs-web .top-actions,
html.hs-web section {
  border-radius: 14px;
  border: 1px solid var(--btn-line);
  border-color: var(--btn-line);
  background: var(--card);
  box-shadow: none;
}

html.hs-web a.service:hover {
  border-color: color-mix(in srgb, var(--fg) 55%, var(--line));
  box-shadow: var(--hs-shadow);
}

/* Hangar / Services: multi-column service rows on desktop */
@media (min-width: 800px) {
  html.hs-web .stack {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  html.hs-web a.service {
    min-height: 88px;
  }
}

/* ---- Access Security: door grid, no scroll ---- */
html.hs-web body:has(#list .door) main,
html.hs-web main:has(#list.list) {
  max-width: 1400px !important;
}

/* door drag handle removed — grab card / long-press */

html.hs-web .door.drag-src {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.hs-web .door-slot {
  border-radius: 12px !important;
  border: 1.5px dashed color-mix(in srgb, var(--fg) 45%, transparent);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  min-height: 100px;
}
html.hs-web .door-ghost {
  position: fixed !important;
  z-index: 80 !important;
  pointer-events: none !important;
  box-shadow: 0 22px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) !important;
  transform: scale(1.06);
  opacity: .98;
  border-radius: 12px !important;
}
html.hs-web .door-ghost.settling {
  transition: left .28s cubic-bezier(.22,.61,.36,1), top .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease, box-shadow .2s ease;
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}

/* Access layout dirty: Cancel + Save on meta row; always reserve space (visibility), zero shift.
   Scoped away from .tile-layout-row (Dashboard/Hangar) so ST. SPACE collapse can zero the band. */
html.hs-web .meta-row:not(.tile-layout-row) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  min-height: 34px !important;
}
html.hs-web .layout-bar {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
  position: static !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  justify-content: flex-end;
  z-index: auto !important;
  gap: 8px !important;
  flex-shrink: 0;
}
html.hs-web .layout-bar.show {
  visibility: visible !important;
  pointer-events: auto !important;
}
html.hs-web .layout-bar .layout-cancel {
  padding: 7px 12px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}
html.hs-web .layout-bar .layout-save {
  min-width: 0 !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  text-transform: none !important;
}


html.hs-web .top-actions {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px !important;
  margin-bottom: 16px !important;
  width: 100%;
  max-width: none;
}

html.hs-web .top-actions button.act.bulk-act {
  flex: 1 1 0;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  min-height: 68px !important;
  gap: 14px !important;
}
html.hs-web .top-actions button.act.bulk-act .bulk-ico {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
}

html.hs-web .list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 12px !important;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  flex-direction: unset !important;
}

html.hs-web .door {
  padding: 12px !important;
  gap: 10px !important;
  border-radius: 12px !important;
  min-width: 0;
}

html.hs-web .door .top {
  gap: 10px !important;
}

/* door .icon number badges removed */


html.hs-web .door .label {
  font-size: 14px !important;
  line-height: 1.25;
}

/* door hint removed */

html.hs-web .door .actions {
  display: flex !important;
  grid-template-columns: unset !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 2px 8% 0 !important;
  box-sizing: border-box !important;
}

html.hs-web .door .actions button.act:not(.lock-circle) {
  flex: 1 1 0;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
}
html.hs-web .door .actions button.act.lock-circle {
  flex: 0 0 auto !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

html.hs-web .lead {
  max-width: 52rem;
}

html.hs-web .status {
  margin-top: 12px !important;
}

/* Access Live Link: keep a consistent 10px separation from the master actions. */
html.hs-web #status.status.live {
  margin-bottom: 10px !important;
}

/* ---- Forms / inputs ---- */
html.hs-web input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html.hs-web textarea,
html.hs-web select {
  background: var(--hs-input-bg);
  color: var(--text);
  border-color: var(--line);
}

/* ---- Login: lock page to viewport (hs-app + hs-web); card scrolls if needed ---- */
html.hs-app:has(#login),
html.hs-web:has(#login) {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.hs-app body:has(#login),
html.hs-web body:has(#login) {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  display: grid !important;
  place-items: center !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* hs-app: modest padding; keep dark shell */
html.hs-app body:has(#login) {
  padding: 12px;
  background: #0b1016;
  color: #f4f7f5;
}

/* hs-web: keep glow/padding but do not reintroduce page scroll */
html.hs-web body:has(#login) {
  background:
    radial-gradient(900px 420px at 50% 18%, color-mix(in srgb, var(--fg) 16%, transparent), transparent 70%),
    radial-gradient(700px 360px at 80% 90%, color-mix(in srgb, var(--fg) 8%, transparent), transparent 65%),
    var(--bg);
  color: var(--text);
  padding: 72px 20px 40px;
}

html.hs-app #login,
html.hs-web #login {
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* hs-app: phone-sized card (was fixed 320px → tiny bubble under Desktop-site ~980) */
html.hs-app #login {
  width: min(calc(92 * var(--hs-vw, 1vw)), 420px);
  max-width: calc(100% - 24px);
  margin: 0 auto;
  box-sizing: border-box;
}

/* ---- Login: compact centered card (web) ---- */

html.hs-web #login {
  width: min(320px, calc(100% - 32px));
  margin: 0 auto !important;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--hs-shadow), 0 18px 50px color-mix(in srgb, #000 18%, transparent);
  position: relative;
}

html.hs-web #login::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--fg), transparent);
}

html.hs-web #login h1 {
  color: var(--text);
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  margin: 2px 0 4px !important;
  text-align: center;
}

html.hs-web #login .sub {
  color: var(--muted);
  text-align: center;
  margin: 0 0 16px !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
}

html.hs-web #login p,
html.hs-web #login label {
  color: var(--muted);
}

html.hs-web #login label:not(.check) {
  margin: 10px 0 5px !important;
  font-size: 11px !important;
}

html.hs-web #login input:not([type="checkbox"]) {
  background: var(--hs-input-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px !important;
  font-size: 14px;
}

html.hs-web #login input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 22%, transparent);
}

html.hs-web #login .pw-wrap input {
  padding-right: 78px !important;
}

html.hs-web #login .pw-toggle {
  background: var(--fg) !important;
  color: var(--fg-ink,#0b1016)!important;
  border: 0 !important;
  min-width: 64px;
  padding: 7px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 0 color-mix(in srgb, #000 20%, transparent);
}

html.hs-web.hs-theme-light #login .pw-toggle {
  outline: 1px solid color-mix(in srgb, #0b1016 18%, transparent);
}

html.hs-web #login button#signIn {
  background: var(--fg);
  color: var(--fg-ink, #0b1016);
  margin-top: 14px !important;
  padding: 11px 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em;
}

html.hs-web #login button#signIn:hover {
  filter: brightness(1.06);
}

/* Install CTA: shown on phone browsers; desktop media query below hides it on PC */
html.hs-web #login .install {
  margin-top: 10px;
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  font-weight: 650;
}

html.hs-web #login .check {
  color: var(--text);
  margin-top: 12px !important;
  font-size: 13px !important;
}

html.hs-web #login .err {
  min-height: 16px;
  margin-top: 8px !important;
  text-align: center;
  font-size: 12px;
}

html.hs-web #login .steps {
  color: var(--muted);
}

html.hs-web #login .steps b {
  color: var(--text);
}

/* Theme control on login: small quiet chip, top-right — not a full-width CTA */
html.hs-web body:has(#login) .hs-theme-toggle-fixed,
html.hs-web body:has(#login) button.hs-theme-toggle-fixed {
  top: 12px;
  right: 12px;
  left: auto;
  width: auto !important;
  max-width: max-content;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  color: transparent !important;
  border-radius: 999px;
  padding: 0 !important;
  font-size: 0 !important;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none !important;
  opacity: 1;
}
html.hs-web body:has(#login) .hs-theme-toggle-fixed:hover,
html.hs-web body:has(#login) .hs-theme-toggle-fixed:focus-visible,
html.hs-web body:has(#login) button.hs-theme-toggle-fixed:hover,
html.hs-web body:has(#login) button.hs-theme-toggle-fixed:focus-visible {
  background: transparent !important;
  border: none !important;
  opacity: 1;
  outline: none;
}
@media (max-width: 720px) {
  html.hs-web body:has(#login) .hs-theme-toggle-fixed,
  html.hs-web body:has(#login) button.hs-theme-toggle-fixed {
    top: 10px;
    right: 10px;
    padding: 0 !important;
    font-size: 0 !important;
    font-weight: 550;
  }
}

/* Hardcoded dark leftovers on light web */
html.hs-web.hs-theme-light .trackline,
html.hs-web.hs-theme-light a.trackline {
  color: var(--text);
}

html.hs-web.hs-theme-light a.trackline {
  border-bottom-color: rgba(21, 32, 43, 0.28);
}

html.hs-web.hs-theme-light .mic {
  color: var(--text);
}

html.hs-web.hs-theme-light .dept-trigger {
  background: var(--hs-input-bg);
  color: var(--text);
}

html.hs-web.hs-theme-light .addtrip,
html.hs-web.hs-theme-light .mic.on {
  color: #0b1016;
}

html.hs-web.hs-theme-light .row,
html.hs-web.hs-theme-light .user {
  border-bottom-color: var(--line);
}

html.hs-web.hs-theme-light .swatch {
  border-color: var(--line);
}

/* App mode: same shell as tunnel (root-mounted phone app). No desktop zoom hacks. */
html.hs-app {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.hs-app .day,
html.hs-app #board > .day {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
html.hs-app .day .card,
html.hs-app .day .card-slot {
  width: 100% !important;
  max-width: none !important;
}
html.hs-app .shot {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 800 / 369;
  object-fit: cover !important;
  object-position: center;
  background: #0b1016;
}
html.hs-app .day,
html.hs-app #board > .day {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
html.hs-app .day .card,
html.hs-app .day .card-slot {
  width: 100% !important;
  max-width: none !important;
}
html.hs-app .shot {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 800 / 369;
  object-fit: cover !important;
  object-position: center;
  background: #0b1016;
}

/* Hide phone-install CTA on desktop web (PC) */
@media (hover: hover) and (pointer: fine) {
  html.hs-web #install,
  html.hs-web #steps {
    display: none !important;
  }
}

/* Narrow screens: keep nav usable */
@media (max-width: 720px) {
  html.hs-web .hs-site-nav {
    padding: 0;
    gap: 0;
    min-height: 0;
  }

  html.hs-web .hs-site-nav-brand {
    padding: 8px 12px 8px 16px;
  }

  html.hs-web .hs-site-nav-tools {
    padding: 8px 16px 8px 8px;
  }

  html.hs-web .hs-site-nav-links {
    padding: 0 8px 0 12px;
    min-height: 42px;
  }

  html.hs-web .hs-site-nav-links a {
    padding: 11px 14px;
  }

  html.hs-web .hs-site-nav-links a.is-active {
    padding-bottom: 11px;
  }

  html.hs-web .hs-site-nav-logo-wrap {
    width: 86px;
    height: 44px;
  }

  html.hs-web .hs-site-nav-logo {
    width: 86px;
    height: 44px;
  }

  html.hs-web header:not(.hs-site-nav),
  html.hs-web main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  html.hs-web .list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }

  html.hs-web body:has(#login) {
    padding: 64px 16px 24px;
  }

  html.hs-web #login {
    width: min(300px, calc(100% - 24px));
  }
}


/* Aircraft card drag (web) */
html.hs-web .day .card {
  cursor: grab;
}
html.hs-web .day.reordering .card-ghost,
html.hs-web .day .card.drag-src {
  cursor: grabbing;
}


/* Aircraft card photos — match aspect + radius (web) */
html.hs-web .shot {
  width: 100%;
  aspect-ratio: 1400 / 646;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}


/* Hide page headers that only duplicate HangarSync brand (web) */
html.hs-web header.hs-web-brand-dup,
html.hs-web header[hidden].hs-web-brand-dup {
  display: none !important;
}


/* Page trail — current section highlighted */
html.hs-web .hs-page-trail .on {
  color: var(--fg);
  font-weight: 750;
}
html.hs-web .hs-page-trail span:not(.dot):not(.on) {
  color: var(--muted);
  opacity: 0.85;
}

/* Uniform page header height (web) — exclude shell topbar */
html.hs-web header:not(.hs-site-nav) {
  min-height: 76px;
  padding: 18px 32px 14px !important;
  align-items: flex-start;
  box-sizing: border-box;
}
html.hs-web header h1,
html.hs-web h1 {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}
html.hs-web header .sub,
html.hs-web .sub {
  margin-top: 5px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  min-height: 16px;
}

/* Aircraft board — scale to the monitor (web) */
/* Lock the aircraft page to the viewport so cards fit with no page scroll */
html.hs-web:has(body.hs-board-page),
html.hs-web:has(#board) {
  height: 100%;
  overflow: hidden;
}
html.hs-web body.hs-board-page,
html.hs-web body:has(#board) {
  height: calc(100 * var(--hs-vh, 1dvh));
  max-height: calc(100 * var(--hs-vh, 1dvh));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Day view stays viewport-locked (no page scrollbar) */

html.hs-web body.hs-board-page .hs-site-nav,
html.hs-web body.hs-board-page header,
html.hs-web body.hs-board-page .viewbar,
html.hs-web body:has(#board) .hs-site-nav,
html.hs-web body:has(#board) header,
html.hs-web body:has(#board) .viewbar {
  flex: 0 0 auto;
  max-width: none !important;
  width: 100% !important;
}

html.hs-web body.hs-board-page main,
html.hs-web body:has(#board) main {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-width: none !important;
  width: 100% !important;
  padding: 6px var(--hs-page-inline, 28px) 8px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Day main stays flex child; cards shrink to fit */

html.hs-web .viewbar {
  margin: 0;
  padding: 0 var(--hs-page-inline, 28px) !important;
  box-sizing: border-box;
  width: 100% !important;
}

html.hs-web #board {
  flex: 1 1 auto;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}


/* Aircraft / Week / Month — flat blue-shell segment tabs (no gradient/underline) */
html.hs-web .viewbar {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  background: color-mix(in srgb, var(--card) 88%, #0b1016) !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
  min-height: 42px;
}
html.hs-web .viewbar button.view {
  position: relative;
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  color: var(--muted) !important;
  border: none !important;
  border-radius: 0 !important;
  border-right: 1px solid var(--line) !important;
  padding: 11px 16px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0.03em;
  box-shadow: none !important;
  white-space: nowrap;
  text-align: center;
  transition: color .15s ease, background .15s ease;
  cursor: pointer;
}
html.hs-web .viewbar button.view:last-child {
  border-right: none !important;
}
html.hs-web .viewbar button.view:hover {
  color: var(--text) !important;
  background: color-mix(in srgb, var(--fg) 12%, transparent) !important;
}
html.hs-web .viewbar button.view.on {
  color: #fff !important;
  font-weight: 750 !important;
  background: color-mix(in srgb, var(--fg) 28%, #0f1720) !important;
  border: none !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 11px 16px !important;
  box-shadow: inset 3px 0 0 var(--fg) !important;
}
html.hs-web .viewbar button.view.on:last-child {
  border-right: none !important;
}
html.hs-web.hs-theme-light .viewbar button.view {
  color: var(--muted) !important;
  font-weight: 700 !important;
  border-color: var(--line) !important;
}
html.hs-web.hs-theme-light .viewbar button.view.on {
  color: #0b1016 !important;
  background: color-mix(in srgb, var(--fg) 16%, #ffffff) !important;
  box-shadow: inset 3px 0 0 var(--fg) !important;
}

/* ---- Day cards: 3-up only on wide desktop web (fine pointer). Phones stay 1-col via app shell. ---- */
html.hs-web #board > .day {
  flex: 1 1 auto;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
}
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  html.hs-web #board > .day {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

html.hs-web .day .card,
html.hs-web .day .card-slot {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  /* Content-height cards: no empty strip below Add Trip (do not stretch to grid). */
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  /* Tight bottom padding so the card hugs Add Trip — keep side/top as before. */
  padding: 10px 12px 8px !important;
}
html.hs-web #board > .day {
  align-content: start !important;
  align-items: start !important;
}

/* Full aircraft photo frame (800×369 thumbs). Never cap with a small max-height —
   that crushed images into thin strips. Aspect keeps proportions; object-fit covers. */
html.hs-web .day .card > .shot {
  width: 100%;
  flex: 0 0 auto;
  max-height: none;
  aspect-ratio: 800 / 369 !important;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin-bottom: 8px !important;
  border-radius: 12px;
}

html.hs-web .day .card > .card-top {
  flex: 0 0 auto;
}

html.hs-web .day .card .type {
  font-size: 24px !important;
  margin-top: 4px !important;
}

html.hs-web .day .card > .times {
  flex: 0 0 auto;
  margin-top: 10px !important;
  font-size: 18px !important;
}

html.hs-web .day .card > .trackline,
html.hs-web .day .card > a.trackline,
html.hs-web .day .card > .track {
  flex: 0 0 auto;
  margin-top: 8px !important;
}

/* Always reserve one line for the ADS-B track link so in-flight cards
   do not grow/shift when the link appears (web only). */
html.hs-web .day .card > .track {
  min-height: 1.45em;
  line-height: 1.35;
  font-size: 13px;
}
html.hs-web .day .card > .track a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

/* Dark theme: dashboard chrome, aircraft cards, and doors share one 1px outline. */
html.hs-web.hs-theme-dark .tool:not(.hs-theme-toggle),
html.hs-web.hs-theme-dark a.tool:not(.hs-theme-toggle),
html.hs-web.hs-theme-dark button.tool:not(.hs-theme-toggle),
html.hs-web.hs-theme-dark a.tile,
html.hs-web.hs-theme-dark a.service,
html.hs-web.hs-theme-dark .card,
html.hs-web.hs-theme-dark .day .card,
html.hs-web.hs-theme-dark .door {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: var(--btn-line) !important;
}

html.hs-web .day .card > .addtrip {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto;
  padding: 10px 12px !important;
  order: 99; /* keep as visual bottom of card */
}

/* Aircraft Week/Month: Add Trip in page header (right of title) */
html.hs-web header .header-cal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  padding-right: 0;
}
html.hs-web header .header-cal-actions[hidden] {
  display: none !important;
}
html.hs-web header .header-addtrip,
html.hs-web header button.header-addtrip.addtrip {
  width: auto !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--fg, #3b82f6) !important;
  color: var(--fg-ink,#0b1016)!important;
  font-weight: 650 !important;
  font-size: 14px !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}
html.hs-web header .header-addtrip:hover,
html.hs-web header button.header-addtrip.addtrip:hover {
  filter: brightness(1.06);
}
html.hs-web.hs-theme-light header .header-addtrip,
html.hs-web.hs-theme-light header button.header-addtrip.addtrip {
  background: var(--fg, #3b82f6) !important;
  color: var(--fg-ink,#0b1016)!important;
}
html.hs-web.hs-theme-dark header .header-addtrip,
html.hs-web.hs-theme-dark header button.header-addtrip.addtrip {
  background: var(--fg, #3b82f6) !important;
  color: var(--fg-ink,#0b1016)!important;
}

/* When ETA is showing, keep card-top room; flap digits can shrink a bit on web */
html.hs-web .day .card .eta-box {
  flex-shrink: 0;
}
html.hs-web .day .card .flap-digit {
  width: 32px;
  height: 46px;
  font-size: 26px;
}
html.hs-web .day .card .flap-colon {
  font-size: 28px;
  line-height: 46px;
}

/* ---- Week / Month calendars: fill remaining main area ---- */
html.hs-web #board > .cal-zoom-shell {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

html.hs-web #board > .cal-zoom-shell > .cal-zoom-pad {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column;
  transform-origin: 0 0;
}

html.hs-web #board > .cal-zoom-shell > .cal-zoom-pad > .month {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column;
  box-sizing: border-box;
}

html.hs-web #board .month-nav,
html.hs-web #board .month-dows {
  flex: 0 0 auto;
  width: 100%;
}

/* v130: Week+Month share shell fill + JS row scale + identical date-cell chrome
   (calendar-only #board .month* — does not touch dashboard Ops tiles) */
html.hs-web #board > .cal-zoom-shell:has(.month.is-week),
html.hs-web #board > .cal-zoom-shell:has(.month:not(.is-week)) {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}
html.hs-web #board > .cal-zoom-shell:has(.month.is-week) > .cal-zoom-pad,
html.hs-web #board > .cal-zoom-shell:has(.month:not(.is-week)) > .cal-zoom-pad {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
html.hs-web #board > .cal-zoom-shell:has(.month.is-week) > .cal-zoom-pad > .month.is-week,
html.hs-web #board .month:not(.is-week) {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

/* Week single row: JS layoutCalScale sets height to match Month week rows */
html.hs-web #board .month.is-week .month-week {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}
html.hs-web #board .month.is-week .month-week .daycell {
  min-height: 0 !important;
  height: 100% !important;
}

html.hs-web #board .month .month-title,
html.hs-web #board .month .month-nav,
html.hs-web #board .month .month-dows {
  flex: 0 0 auto !important;
}
/* Week↔Month same header + DOW row (no layout jump on tab switch) */
html.hs-web #board .month .month-nav {
  padding: 12px 12px !important;
}
html.hs-web #board .month .month-title {
  font-size: 22px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}
html.hs-web #board .month .month-nav button {
  width: 36px !important;
  height: 36px !important;
}
html.hs-web #board .month .month-dows span {
  padding: 10px 2px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

/* Week+Month rows: JS layoutCalScale sets shared height */
html.hs-web #board .month .month-week {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  align-items: stretch;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #2a3844 !important;
}
/* Keep 1px bottom slot on last week too (transparent) so Week↔Month cell height matches */
html.hs-web #board .month .month-week:last-child {
  border-bottom-color: transparent !important;
}
/* Week single row IS last-child — restore visible bottom so the grid closes (esp. light theme) */
html.hs-web #board .month.is-week .month-week:last-child {
  border-bottom-color: #2a3844 !important;
}
html.hs-web.hs-theme-light #board .month.is-week .month-week:last-child {
  border-bottom-color: var(--line) !important;
}

/* Fixed shared date-cell chrome — identical Week↔Month (label strip + padding) */
html.hs-web #board .month .month-week .daycell {
  min-height: 0 !important;
  height: 100% !important;
  padding: 28px 3px 3px !important;
  font-size: 13px !important;
}
html.hs-web #board .month .daycell .num {
  height: 26px !important;
  font-size: 12px !important;
  padding: 0 6px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
html.hs-web #board .month .month-bars {
  top: 28px !important;
  bottom: 3px !important;
  overflow: visible !important; /* allow compact outside times */
}

/* Tall rows: still shared Week+Month (JS toggles hs-month-tall from same h) */
html.hs-web #board .month.hs-month-tall .month-week .daycell {
  padding: 36px 4px 6px !important;
  font-size: 14px !important;
}
html.hs-web #board .month.hs-month-tall .daycell .num {
  height: 32px !important;
  font-size: 14px !important;
  padding: 0 8px !important;
}
html.hs-web #board .month.hs-month-tall .month-bars {
  top: 36px !important;
  bottom: 4px !important;
}

/* Web Week+Month: % lane bars (height/top from JS) */
html.hs-web #board .month .mflight,
html.hs-web #board .month .mflight.mflight-flex {
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 3px !important;
  padding: 1px 3px !important;
  overflow: hidden;
}
html.hs-web #board .month .mflight.mflight-compact {
  overflow: visible !important;
}
html.hs-web #board .month .mflight .t0-out,
html.hs-web #board .month .mflight .t1-out {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
/* Light theme: outside times sit on white cells — use muted dark text, no white glow */
html.hs-web.hs-theme-light #board .month .mflight .t0-out,
html.hs-web.hs-theme-light #board .month .mflight .t1-out {
  color: var(--muted) !important;
  text-shadow: none !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter {
  margin-left: 4px;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn {
  width: auto !important;
  min-width: 96px !important;
  max-width: 168px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  border-color: #3d5260 !important;
  background: #0e141a !important;
  color: #f4f7f5 !important;
}
html.hs-web.hs-theme-light #board .month .month-nav .cal-ac-filter > button.filter-btn {
  background: #fff !important;
  color: #0b1016 !important;
  border-color: #c5d0d8 !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn[aria-expanded="true"] {
  border-color: var(--fg,#3b82f6) !important;
  color: var(--fg-text,#93c5fd) !important;
}
html.hs-web #board .month-week {
  width: 100% !important;
  align-items: stretch;
}
html.hs-web #board .month-week .daycell {
  height: 100% !important;
}

html.hs-web #board .month-title {
  font-size: 22px !important;
}

@media (max-width: 900px) {
  html.hs-web body.hs-board-page,
  html.hs-web body:has(#board) {
    height: auto;
    max-height: none;
    overflow: auto;
    display: block;
  }
  html.hs-web body.hs-board-page main,
  html.hs-web body:has(#board) main {
    display: block;
    overflow: visible;
    min-height: 0 !important;
  }
  html.hs-web #board > .day {
    grid-template-columns: 1fr !important;
    height: auto;
  }
  html.hs-web .day .card,
  html.hs-web .day .card-slot {
    height: auto !important;
    max-height: none !important;
  }
  html.hs-web .day .card > .shot {
    max-height: 200px;
  }
  html.hs-web #board > .cal-zoom-shell {
    height: auto !important;
  }
  html.hs-web #board .month .month-week {
    min-height: 0 !important;
  }
}


/* ETA-to airport on day cards */
html.hs-web .eta-to {
  margin-top: 8px !important;
  gap: 8px !important;
}
html.hs-web .eta-to input {
  background: var(--hs-input-bg) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
}


/* v130: Week+Month both use % lane bars; chrome tops set above */
html.hs-web #board .month-bars {
  top: 28px !important;
  bottom: 3px !important;
}


/* Web: no pinch-to-zoom chrome on calendars */
html.hs-web .cal-zoom-hint,
.cal-zoom-hint {
  display: none !important;
}

/* Web Month: grab cursor when wheel-zoomed (drag-to-pan) */
html.hs-web #board > .cal-zoom-shell.is-zoomed:has(.month:not(.is-week)) {
  cursor: grab;
}
html.hs-web #board > .cal-zoom-shell.is-zoomed.is-panning:has(.month:not(.is-week)) {
  cursor: grabbing;
}
html.hs-web #board > .cal-zoom-shell.is-zoomed:has(.month:not(.is-week)) .mflight {
  cursor: grab;
}
html.hs-web #board > .cal-zoom-shell.is-zoomed.is-panning:has(.month:not(.is-week)) .mflight {
  cursor: grabbing;
}
/* Keep browser text selection from painting over the Month while it is panned. */
html.hs-web #board > .cal-zoom-shell.is-panning,
html.hs-web #board > .cal-zoom-shell.is-panning * {
  user-select: none !important;
  -webkit-user-select: none !important;
}


html.hs-web .callsign-row {
  margin-top: 8px !important;
  gap: 8px !important;
}
html.hs-web .callsign-row input {
  background: var(--hs-input-bg) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  flex: 0 1 50% !important;
  width: 50% !important;
  max-width: 9.5em !important;
  min-width: 5.5em !important;
}

/* ---- Light theme: Aircraft Week/Month calendar surfaces ----
   index.html hard-codes dark hex for .month* / .daycell; override only for web light.
   Phone hs-app stays dark. Trip bars (.mflight) keep aircraft colors. */
html.hs-web.hs-theme-light #board > .cal-zoom-shell,
html.hs-web.hs-theme-light #board > .cal-zoom-shell > .cal-zoom-pad {
  background: transparent;
}

html.hs-web.hs-theme-light #board .month {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

html.hs-web.hs-theme-light #board .month-nav {
  background: var(--hs-surface) !important;
  border-bottom-color: var(--line) !important;
}

html.hs-web.hs-theme-light #board .month-title {
  color: var(--text) !important;
}

html.hs-web.hs-theme-light #board .month-nav button {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--btn-line) !important;
}

html.hs-web.hs-theme-light #board .month-dows {
  background: var(--hs-surface) !important;
  border-bottom-color: var(--line) !important;
}

html.hs-web.hs-theme-light #board .month-dows span {
  color: var(--muted) !important;
  border-right-color: var(--line) !important;
}

html.hs-web.hs-theme-light #board .month-dows span.weekend {
  background: color-mix(in srgb, var(--line) 55%, var(--hs-surface)) !important;
  color: var(--text) !important;
}

html.hs-web.hs-theme-light #board .month-week {
  border-bottom-color: var(--line) !important;
}

html.hs-web.hs-theme-light #board .daycell {
  background: var(--card) !important;
  border-right-color: var(--line) !important;
  color: var(--muted) !important;
}

html.hs-web.hs-theme-light #board .daycell .num {
  background: var(--hs-surface) !important;
  border-bottom-color: var(--line) !important;
  color: var(--text) !important;
}

html.hs-web.hs-theme-light #board .daycell.weekend .num {
  background: color-mix(in srgb, var(--line) 55%, var(--hs-surface)) !important;
  border-bottom-color: var(--line) !important;
  color: var(--text) !important;
}

html.hs-web.hs-theme-light #board .daycell.out {
  background: var(--bg) !important;
}

html.hs-web.hs-theme-light #board .daycell.out .num {
  background: color-mix(in srgb, var(--hs-surface) 70%, var(--bg)) !important;
  border-bottom-color: var(--line) !important;
  color: var(--muted) !important;
}

/* Keep orange today marker readable on light chrome */
html.hs-web.hs-theme-light #board .daycell.today .num {
  background: #c45c2a !important;
  border-bottom-color: #c45c2a !important;
  color: #fff !important;
}

/* Soft circumferential pulse around Week/Month "today" day cell.
   Pulse lives on ::after (pointer-events:none) — NEVER raise .daycell.today
   z-index above .month-bars or the opaque cell covers trip bars. */
@keyframes hs-today-cell-pulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(196, 92, 42, 0.28),
      0 0 0 0 rgba(196, 92, 42, 0);
    outline-color: rgba(196, 92, 42, 0.22);
  }
  50% {
    box-shadow:
      inset 0 0 0 2px rgba(255, 190, 140, 0.7),
      0 0 0 2px rgba(196, 92, 42, 0.35),
      0 0 18px rgba(196, 92, 42, 0.42);
    outline-color: rgba(255, 190, 140, 0.55);
  }
}
html.hs-web #board .daycell.today,
.daycell.today {
  position: relative;
  z-index: auto; /* stay under .month-bars trip layer */
}
html.hs-web #board .daycell.today::after,
.daycell.today::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  outline: 1px solid rgba(196, 92, 42, 0.22);
  outline-offset: -1px;
  box-shadow:
    inset 0 0 0 1px rgba(196, 92, 42, 0.28),
    0 0 0 0 rgba(196, 92, 42, 0);
  animation: hs-today-cell-pulse 2.4s ease-in-out infinite;
}
/* Keep solid orange today header/num; pulse lives on the cell ring */
html.hs-web #board .daycell.today .num,
.daycell.today .num {
  position: absolute;
  z-index: 1;
  animation: none;
}
/* Trip bars overlay must stay above daycell chrome/pulse */
html.hs-web #board .month-bars,
.month-bars {
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  html.hs-web #board .daycell.today::after,
  .daycell.today::after {
    animation: none;
    box-shadow: inset 0 0 0 2px rgba(196, 92, 42, 0.55);
    outline-color: rgba(196, 92, 42, 0.55);
  }
}

/* ==== tile layout (shared) ==== */
.layout-bar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 30;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: #10161c;
  border: 1px solid var(--line, #24303a);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  max-width: calc(calc(100 * var(--hs-vw, 1vw)) - 24px);
}
.layout-bar.show { display: flex; }
.layout-bar .layout-cancel {
  appearance: none;
  border: 1px solid var(--line, #24303a);
  border-radius: 12px;
  background: transparent;
  color: var(--muted, #8ea0ad);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 12px 16px;
  cursor: pointer;
}
.layout-bar .layout-save {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--fg, #3b82f6);
  color: var(--fg-ink,#0b1016);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-transform: none; /* HangarSync title-case: "Save Layout" */
}
.layout-bar .layout-cancel:disabled,
.layout-bar .layout-save:disabled {
  opacity: 0.55;
  cursor: default;
}

.meta-row.tile-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  min-height: 0;
  max-width: none;
}
.meta-row.tile-layout-row .meta {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--muted, #8ea0ad);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 650;
}

/* Legacy .meta-row.tile-layout-row: keep collapsed. Save Layout / Cancel now live in the
   page header (.hs-page-head / .hs-page-head-actions / .cam-head-tools / .acv-head-tools)
   so edit mode does not push main content down. */
html.hs-web .meta-row.tile-layout-row {
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  width: auto;
  box-sizing: border-box;
}

/* Header-hosted layout chrome: same row as title / Tiles / density — visibility only. */
html.hs-web .hs-page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
html.hs-web .hs-page-head-actions .hs-dash-tiles-ctl {
  margin-left: 0;
}
html.hs-web .hs-page-head > .layout-bar,
html.hs-web .hs-page-head-actions > .layout-bar,
html.hs-web .cam-head-tools > .layout-bar,
html.hs-web .acv-head-tools > .layout-bar,
html.hs-web header > .layout-bar.access-btn-layout-bar {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}
html.hs-web .hs-page-head > .layout-bar {
  margin-left: auto;
}

html.hs-theme-light .layout-bar {
  background: #ffffff;
  border-color: var(--line, #d5dde4);
  box-shadow: 0 14px 36px rgba(15, 23, 32, 0.12);
}
html.hs-web .hs-page-head > .layout-bar,
html.hs-web .hs-page-head-actions > .layout-bar,
html.hs-web .cam-head-tools > .layout-bar,
html.hs-web .acv-head-tools > .layout-bar,
html.hs-web header > .layout-bar.access-btn-layout-bar,
html.hs-web.hs-theme-light .hs-page-head > .layout-bar,
html.hs-web.hs-theme-light .hs-page-head-actions > .layout-bar,
html.hs-web.hs-theme-light .cam-head-tools > .layout-bar,
html.hs-web.hs-theme-light .acv-head-tools > .layout-bar,
html.hs-web.hs-theme-light header > .layout-bar.access-btn-layout-bar {
  background: transparent !important;
  box-shadow: none !important;
}

/* Tile drag affordances */
html.hs-web .tl-container > [data-id] {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  touch-action: manipulation;
}
html.hs-web .tl-container > [data-id].tl-latched,
html.hs-web .tl-container.tl-reordering > [data-id] {
  cursor: pointer;
}
html.hs-web .tl-container.tl-reordering,
html.hs-web .tl-container.tl-reordering > [data-id] {
  cursor: pointer;
}
html.hs-app .tl-container > [data-id] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  touch-action: none;
}
.tl-container.tl-reordering {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.tl-drag-src {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
/* Drop placeholder: strong insertion gap so intended slot is obvious */
.tl-slot {
  border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 70%, var(--fg-bright,#60a5fa));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 18%, transparent),
      color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 8%, transparent)
    );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 35%, transparent),
    0 0 0 3px color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 14%, transparent),
    0 10px 28px color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 18%, transparent);
  box-sizing: border-box;
  min-height: 80px;
  min-width: 0;
  /* Instant slot moves — animated height made camera grid flicker during drag */
  transition: none;
  position: relative;
  pointer-events: none;
}
.tl-slot::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 85%, var(--fg-text,#93c5fd));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 55%, transparent);
  opacity: 0.95;
}
.tl-slot.tl-slot-active {
  border-color: color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 90%, var(--fg-text,#93c5fd));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 26%, transparent),
      color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 12%, transparent)
    );
}
html.hs-theme-light .tl-slot {
  border-color: color-mix(in srgb, var(--accent, var(--fg-deep,#2563eb)) 65%, var(--fg,#3b82f6));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent, var(--fg-deep,#2563eb)) 14%, transparent),
      color-mix(in srgb, var(--accent, var(--fg-deep,#2563eb)) 6%, transparent)
    );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--fg-deep,#2563eb)) 28%, transparent),
    0 0 0 3px color-mix(in srgb, var(--accent, var(--fg-deep,#2563eb)) 12%, transparent),
    0 8px 22px color-mix(in srgb, var(--accent, var(--fg-deep,#2563eb)) 12%, transparent);
}
/* While reordering: freeze sibling layout transitions to reduce thrash */
.tl-container.tl-reordering > [data-id],
.tl-container.tl-reordering > .tl-slot {
  transition: none !important;
}
.tl-ghost {
  position: fixed;
  z-index: 80;
  margin: 0;
  pointer-events: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 0 2px color-mix(in srgb, var(--accent, var(--fg,#3b82f6)) 45%, transparent);
  transform: scale(1.04);
  opacity: 0.98;
  transition: box-shadow 0.2s ease, opacity 0.15s ease;
  will-change: left, top, transform;
  touch-action: none;
  border-radius: 18px;
}
.tl-ghost.settling {
  transition: left 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), top 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease, box-shadow 0.2s ease;
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html.hs-theme-light .tl-ghost {
  box-shadow: 0 22px 50px rgba(15, 23, 32, 0.18), 0 0 0 2px color-mix(in srgb, var(--accent, var(--fg-deep,#2563eb)) 35%, transparent);
}


/* ============================================================
   Shell layout (sidebar + topbar) — stage 2 chrome
   Replaces horizontal tab strip on html.hs-web + body.hs-shell
   ============================================================ */
html.hs-web {
  --hs-topbar-h: 136px;
  --hs-sidebar-w: 260px;
  --hs-bottom-nav-h: 64px;
  --hs-logo-mark-w: 154px;
  --hs-logo-mark-h: 70px;
  /* ST. SPACE — shared page content inset (title + tiles align with Aircraft) */
  --hs-page-inline: 28px;
  --hs-page-main-bottom: 16px;
  --hs-page-band-h: 64px;
  --sidebar: #0a0f14;
  --card-hover: #182129;
  --radius: 16px;
  --radius-sm: 12px;
}

html.hs-web.hs-theme-light {
  --sidebar: #eef2f5;
  --card-hover: #f7f9fb;
}

/* Fixed chrome offsets */
html.hs-web body.hs-shell {
  padding-top: var(--hs-topbar-h);
  padding-left: var(--hs-sidebar-w);
  min-height: calc(100 * var(--hs-vh, 1vh));
  box-sizing: border-box;
}

/* Topbar — reuse #hs-site-nav — glamour full-bleed header */
html.hs-web body.hs-shell .hs-site-nav.hs-shell-topbar {
  position: fixed;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 40;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 0 32px 0 18px !important;
  min-height: var(--hs-topbar-h);
  height: var(--hs-topbar-h);
  box-sizing: border-box;
  background: var(--hs-nav-chrome);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html.hs-web body.hs-shell .hs-site-nav-brand {
  order: 0;
  padding: 0 !important;
  margin: 0;
  margin-left: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
}
html.hs-web body.hs-shell .hs-site-nav-logo-wrap {
  /* Full hangar mark — no CSS crop/crush */
  position: relative;
  width: var(--hs-logo-mark-w, 154px);
  height: var(--hs-logo-mark-h, 70px);
  flex: 0 0 auto;
  overflow: visible;
}
html.hs-web body.hs-shell .hs-site-nav-logo-wrap.hs-logo-mark-crop {
  /* legacy class kept; no longer crops */
  width: var(--hs-logo-mark-w, 154px);
  height: var(--hs-logo-mark-h, 70px);
  overflow: visible;
}
html.hs-web body.hs-shell .hs-site-nav-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--hs-logo-mark-w, 154px);
  height: var(--hs-logo-mark-h, 70px);
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: none;
}
html.hs-web body.hs-shell .hs-logo-mark-crop .hs-site-nav-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--hs-logo-mark-w, 154px);
  height: var(--hs-logo-mark-h, 70px);
  max-width: none;
  transform: none;
  object-fit: contain;
  object-position: center;
}
html.hs-web .hs-brand-word {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  line-height: 1;
  min-width: 0;
  position: relative;
  isolation: isolate; /* contain underline z-index:-1 behind text */
}
html.hs-web .hs-brand-word span {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1; /* full g/y descenders */
  position: relative;
  z-index: 1; /* wordmark tails above underline */
}
html.hs-web .hs-brand-word i {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  /* Jason 2026-10-05: dropped a few px further below the wordmark (was 0.11em) */
  bottom: calc(0.11em - 6px);
  height: 4px;
  width: 100%;
  border-radius: 2px;
  /* Static underline — KITT pulse retired; lit by unified brand mirror shine */
  background: var(--fg);
  z-index: -1; /* underline BEHIND wordmark */
  pointer-events: none;
}
html.hs-web.hs-theme-light .hs-brand-word i {
  background: var(--fg);
}
html.hs-web body.hs-shell .hs-site-nav-tools {
  order: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0 !important;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  --hs-chrome-h: 46px;
}
html.hs-web body.hs-shell .hs-site-nav-tools .hs-icon-tool,
html.hs-web body.hs-shell .hs-site-nav-tools a.hs-icon-tool,
html.hs-web body.hs-shell .hs-site-nav-tools button.hs-icon-tool {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
}
html.hs-web body.hs-shell .hs-site-nav-tools .hs-icon-tool .hs-tool-icon {
  width: 18px;
  height: 18px;
}
html.hs-web body.hs-shell .hs-site-nav-links {
  display: none !important;
}

html.hs-web .hs-top-spacer { flex: 1; min-width: 8px; }

html.hs-web .hs-tenant-chip {
  display: none !important; /* Jason: remove Prepared-for chip from header */
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--fg-softer, rgba(59,130,246,.08));
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
html.hs-web .hs-tenant-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 3px var(--fg-soft, rgba(59,130,246,.16));
  flex: 0 0 auto;
}
html.hs-web .hs-tenant-chip[hidden] { display: none !important; }

html.hs-web .hs-shell-burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
html.hs-web .hs-shell-burger svg { display: block; }

/* Sidebar */
html.hs-web .hs-shell-sidebar {
  position: fixed;
  top: var(--hs-topbar-h);
  left: 0;
  bottom: 0;
  width: var(--hs-sidebar-w);
  z-index: 35;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  /* No left padding — selected pill flush to sidebar edge */
  padding: 14px 12px 16px 0;
  gap: 2px;
  overflow-y: auto;
  box-sizing: border-box;
}
/* Section labels removed (Navigate / Admin) — keep rule harmless if any linger */
html.hs-web .hs-nav-label {
  display: none !important;
}
html.hs-web .hs-shell-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 12px;
  padding: 12px 16px 12px 20px;
  min-height: 46px;
  box-sizing: border-box;
  /* Sharp left, rounded right — matches selected crop; inactive uses same geometry */
  border-radius: 0 12px 12px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  border: none;
  background: transparent;
  transition: background .14s ease, color .14s ease;
  cursor: pointer;
}
html.hs-web .hs-shell-nav-item .hs-nav-text {
  color: inherit;
  letter-spacing: -0.01em;
  line-height: 1;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}
html.hs-web .hs-shell-nav-item:hover {
  color: #fff;
  background: var(--fg-softer, rgba(59,130,246,.08));
  text-decoration: none;
}
/* Selected: darker blue pill, sharp left flush, rounded right only, bright left bar */
html.hs-web .hs-shell-nav-item.is-active {
  color: #ffffff;
  background: var(--fg-navy,#0e284a);
  border: none;
  box-shadow: none;
}
html.hs-web .hs-shell-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fg-bright, #60a5fa);
  border-radius: 0;
  pointer-events: none;
}
html.hs-web .hs-shell-nav-item.is-active .hs-nav-ico {
  color: var(--fg-bright, #60a5fa);
  opacity: 1;
}
html.hs-web .hs-shell-nav-item[hidden] { display: none !important; }
html.hs-web #hs-sidebar-admin {
  margin-top: 10px;
}
html.hs-web .hs-nav-ico {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex: 0 0 22px;
  opacity: 0.95;
  line-height: 0;
  margin: 0;
  padding: 0;
  align-self: center;
  /* True optical center with label — no translateY overshoot */
  transform: none;
}
html.hs-web .hs-nav-ico svg,
html.hs-web .hs-shell-nav-item .hs-nav-icon {
  width: 20px; height: 20px;
  display: block;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
}

html.hs-web .hs-shell-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 30;
}
html.hs-web .hs-shell-backdrop.open { display: block; }

html.hs-web .hs-shell-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: var(--hs-bottom-nav-h);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 15, 20, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
}
html.hs-web.hs-theme-light .hs-shell-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
}
html.hs-web .hs-shell-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  min-width: 56px;
  padding: 4px;
  cursor: pointer;
}
html.hs-web .hs-shell-bottom-nav a.is-active { color: var(--fg-bright, var(--fg)); }
html.hs-web .hs-shell-bottom-nav a svg { width: 20px; height: 20px; }
html.hs-web .hs-shell-bottom-nav a[hidden] { display: none !important; }

/* Page canvas under shell */
html.hs-web body.hs-shell > header:not(#hs-site-nav) {
  /* Title band: vertically center title; ST. SPACE inline + band tokens */
  display: flex !important;
  align-items: center !important;
  padding: 0 var(--hs-page-inline, 28px) !important;
  min-height: var(--hs-page-band-h, 64px) !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
  border-bottom: none !important;
  border-top: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}
html.hs-web body.hs-shell > main {
  padding: 0 var(--hs-page-inline, 28px) var(--hs-page-main-bottom, 28px) !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* ---- Home glamour metrics + tiles ---- */
html.hs-web .hs-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
  width: 100%;
  border-bottom: none !important;
  box-shadow: none !important;
}
html.hs-web .hs-page-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 12px 16px;
  min-width: 0;
}
html.hs-web .hs-page-head h1 {
  margin: 0 !important;
  font-size: 32px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  color: var(--text);
  white-space: nowrap;
}
html.hs-web .hs-page-head .eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 247, 245, 0.72);
  line-height: 1.15;
  flex: 0 0 auto;
}
html.hs-web .hs-page-head .sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

html.hs-web .hs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Home Ops Center: single rearrange grid (ops + aircraft + upcoming + activity + hangar + cameras + access). Keep 3-up look; no full-span last card.
   Equal-height rows: stretch to fill the viewport when ≤2 rows (no page scroll).
   hs-ops-scroll (3+ rows) keeps that same per-card height and lets the page scroll. */
html.hs-web #opsCards.hs-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Full 7-tile row height. Do not grow rows when some tiles are hidden. */
  grid-auto-rows: var(--ops-tile-h);
  align-items: stretch;
  align-content: start;
  margin-bottom: 12px;
  margin-top: 0;
}
html.hs-web #opsCards.hs-metrics > .hs-card {
  height: 100%;
  min-height: 0;
  align-self: stretch;
}
html.hs-web #opsCards.hs-metrics .hs-card:last-child {
  grid-column: auto;
}
html.hs-web #opsCards.tl-container > .hs-card[data-id] {
  cursor: pointer;
}
@media (max-width: 1100px) {
  html.hs-web #opsCards.hs-metrics {
    grid-template-columns: 1fr 1fr;
  }
  html.hs-web #opsCards.hs-metrics .hs-card:last-child {
    grid-column: auto;
  }
}
@media (max-width: 700px) {
  html.hs-web #opsCards.hs-metrics {
    grid-template-columns: 1fr;
  }
}

html.hs-web .hs-metrics.hs-metrics-2 {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  width: 100%;
}
html.hs-web .hs-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-sizing: border-box;
  box-shadow: var(--hs-shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
html.hs-web .hs-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
html.hs-web .hs-metric-big {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
html.hs-web .hs-metric-big > span:first-child {
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  margin-left: 0;
}
html.hs-web .hs-metric-big > span:not(:first-child) {
  color: rgba(244, 247, 245, 0.78);
  font-size: 18px;
  font-weight: 550;
  margin-left: 8px;
}

/* Today’s Ops multi-part metric labels */
html.hs-web #cardOps .hs-ops-metric { display: flex; flex-wrap: wrap; align-items: baseline; }
html.hs-web #cardOps > h3 { margin-bottom: 8px; }
html.hs-web #cardOps .hs-ops-n { font-size: inherit; font-weight: inherit; color: var(--text); }
html.hs-web #cardOps .hs-ops-lbl {
  font-size: 18px; font-weight: 550; color: rgba(244, 247, 245, 0.78); margin-left: 6px;
}
html.hs-web #cardOps .hs-ops-sep {
  font-size: 18px; font-weight: 550; color: rgba(244, 247, 245, 0.45); margin: 0 2px;
}
html.hs-web.hs-theme-light #cardOps .hs-ops-lbl {
  color: rgba(15, 23, 42, 0.62);
}
html.hs-web.hs-theme-light #cardOps .hs-ops-sep {
  color: rgba(15, 23, 42, 0.35);
}

html.hs-web .hs-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 16px;
  color: var(--text);
}
html.hs-web .hs-metric-row strong {
  color: var(--text);
  font-weight: 700;
}
html.hs-web .hs-metric-row strong { color: var(--text); font-weight: 650; }
html.hs-web .hs-spark {
  margin-top: 14px;
  height: 36px;
  width: 100%;
}
html.hs-web .hs-spark path {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html.hs-web .hs-spark .fill {
  fill: url(#sparkFill);
  stroke: none;
  opacity: 0.35;
}
/* Today’s Operations — option 1 rails.
   Names in the card body face, thin 1px gray baselines, end ticks at 00:00/24:00,
   orange Now through the rails with an outline badge (normal letter-spacing).
   Trip bars 16px, centered on the hairline as a thick overlay. */
html.hs-web #cardOps .hs-ops-metric {
  font-size: 26px;
  line-height: 1.25;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: 18px;
}
html.hs-web #cardOps .hs-ops-part {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
html.hs-web #cardOps .hs-ops-part:first-child { text-align: left; }
html.hs-web #cardOps .hs-ops-part:last-child { text-align: right; }
html.hs-web #cardOps .hs-ops-part:only-child { text-align: center; }
html.hs-web #cardOps .hs-ops-metric .hs-ops-n { font-size: 26px; font-weight: 700; }
html.hs-web #cardOps .hs-ops-metric .hs-ops-lbl,
html.hs-web #cardOps .hs-ops-metric .hs-ops-sep {
  font-size: 18px;
  font-weight: 550;
}
@keyframes hs-ops-status-pulse {
  0%, 100% { color: #f4f7f5; }
  50% { color: #6ea8fe; }
}
html.hs-web #cardOps .hs-ops-metric .hs-ops-n,
html.hs-web #cardOps .hs-ops-metric .hs-ops-lbl {
  animation: hs-ops-status-pulse 4.8s ease-in-out infinite;
}
html.hs-web.hs-theme-light #cardOps .hs-ops-metric .hs-ops-n,
html.hs-web.hs-theme-light #cardOps .hs-ops-metric .hs-ops-lbl {
  animation-name: hs-ops-status-pulse-light;
}
@keyframes hs-ops-status-pulse-light {
  0%, 100% { color: #15202b; }
  50% { color: var(--fg,#3b82f6); }
}
html.hs-web #cardOps .ops-day {
  --ops-label-w: 156px;
  --ops-gap: 14px;
  --ops-now: 50%;
  --ops-rail: rgba(168, 180, 194, 0.62);
  --ops-now-c: #e08a28;
  --ops-bar-h: 16px;
  --ops-tick-over: 6px;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  overflow: visible;
}
html.hs-web #cardOps .ops-day-rails {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  overflow: visible;
  position: relative;
  padding: 8px 0 6px;
}
html.hs-web #cardOps .ops-day-rail-stack {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
  width: 100%;
}
html.hs-web #cardOps .ops-day-rail {
  display: grid;
  grid-template-columns: var(--ops-label-w) minmax(0, 1fr);
  align-items: center;
  gap: var(--ops-gap);
  min-width: 0;
  flex: 0 0 auto;
  min-height: 22px;
}
html.hs-web #cardOps .ops-day-label {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow: visible;
}
/* Option 1: names only, no color dots (color lives on the trip bar). */
html.hs-web #cardOps .ops-day-swatch {
  display: none;
}
html.hs-web #cardOps .ops-day-name {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
html.hs-web #cardOps .ops-day-track {
  position: relative;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  box-shadow: none;
}
/* 1px gray rail, vertically centered so the trip bar sits on it */
html.hs-web #cardOps .ops-day-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  margin: 0;
  background: var(--ops-rail);
  border-radius: 0;
  pointer-events: none;
  z-index: 0;
}
html.hs-web #cardOps .ops-day-bar {
  position: absolute;
  top: 50%;
  height: var(--ops-bar-h, 16px);
  transform: translateY(-50%);
  margin: 0;
  bottom: auto;
  border-radius: 3px;
  opacity: 1;
  min-width: 6px;
  z-index: 1;
  box-shadow: none;
}
/* Spanning Now line + 00:00 / 24:00 ticks across all rails (track column only) */
html.hs-web #cardOps .ops-day-now-overlay {
  position: absolute;
  /* Equal, short overshoot past the trip-bar stack. Same above and below. */
  top: calc(var(--ops-tick-over) * -1);
  bottom: calc(var(--ops-tick-over) * -1);
  left: calc(var(--ops-label-w) + var(--ops-gap));
  right: 0;
  pointer-events: none;
  z-index: 3;
}
html.hs-web #cardOps .ops-day-now-overlay::before,
html.hs-web #cardOps .ops-day-now-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ops-rail);
}
html.hs-web #cardOps .ops-day-now-overlay::before { left: 0; }
html.hs-web #cardOps .ops-day-now-overlay::after { right: 0; }
html.hs-web #cardOps .ops-day-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  margin-left: -0.75px;
  background: var(--ops-now-c);
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
}
html.hs-web #cardOps .ops-day-axis {
  display: grid;
  grid-template-columns: var(--ops-label-w) minmax(0, 1fr);
  gap: var(--ops-gap);
  align-items: start;
  flex: 0 0 auto;
  min-height: 18px;
  margin-top: 8px;
  position: relative;
  /* In-flow under rails — matches app; avoids clipped/escaped axis labels. */
}
html.hs-web #cardOps .ops-day-axis[hidden] { display: none !important; }
html.hs-web #cardOps .ops-day-axis-pad { min-width: 0; }
html.hs-web #cardOps .ops-day-axis-track {
  position: relative;
  min-width: 0;
  height: 18px;
  padding-top: 0;
  overflow: visible;
}
html.hs-web #cardOps .ops-day-scale {
  position: relative;
  height: 18px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(168, 180, 194, 0.82);
  line-height: 16px;
}
html.hs-web #cardOps .ops-day-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  line-height: 16px;
}
html.hs-web #cardOps .ops-day-scale span:nth-child(1) { left: 0; transform: none; }
html.hs-web #cardOps .ops-day-scale span:nth-child(2) { left: 50%; }
html.hs-web #cardOps .ops-day-scale span:nth-child(3) { left: 100%; transform: translateX(-100%); }
html.hs-web #cardOps .ops-day-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  border-left: 1px solid var(--ops-rail);
  border-right: 1px solid var(--ops-rail);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 0;
}
html.hs-web #cardOps .ops-day-now-cap {
  position: absolute;
  top: 0;
  left: var(--ops-now, 50%);
  transform: translateX(-50%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  font-stretch: normal;
  color: var(--ops-now-c, #e08a28);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: none;
  padding: 0 7px;
  border: 1.5px solid var(--ops-now-c, #e08a28);
  border-radius: 6px;
  background: var(--card, #121a24);
  z-index: 2;
}
html.hs-web #cardOps .ops-day-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 2px 4px;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
}
html.hs-web #cardOps .ops-day-empty[hidden] { display: none !important; }
/* More than three aircraft: scroll the rail stack only. Three or fewer stay
   on the space-evenly layout above (no overflow, no scrollbar gutter). */
html.hs-web #cardOps .ops-day.ops-day-many {
  overflow: hidden;
}
html.hs-web #cardOps .ops-day.ops-day-many .ops-day-rails {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 180, 194, 0.55) transparent;
}
html.hs-web #cardOps .ops-day.ops-day-many .ops-day-rails::-webkit-scrollbar {
  width: 8px;
}
html.hs-web #cardOps .ops-day.ops-day-many .ops-day-rails::-webkit-scrollbar-thumb {
  background: rgba(168, 180, 194, 0.55);
  border-radius: 4px;
}
html.hs-web #cardOps .ops-day.ops-day-many .ops-day-rails::-webkit-scrollbar-track {
  background: transparent;
}
html.hs-web #cardOps .ops-day.ops-day-many .ops-day-rail-stack {
  flex: 0 0 auto;
  justify-content: flex-start;
}
html.hs-web #cardOps .ops-day.ops-day-many .ops-day-axis {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 auto;
  margin-top: 8px;
}
html.hs-web #cardOps .ops-day-scale span.ops-day-scale-near {
  visibility: hidden;
}
html.hs-web.hs-theme-light #cardOps .ops-day {
  --ops-rail: rgba(90, 104, 120, 0.55);
}
html.hs-web.hs-theme-light #cardOps .ops-day-track {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
html.hs-web.hs-theme-light #cardOps .ops-day-scale {
  color: rgba(70, 84, 100, 0.72);
}
html.hs-web.hs-theme-light #cardOps .ops-day-now-line {
  box-shadow: none;
}
html.hs-web.hs-theme-light #cardOps .ops-day-now-cap {
  text-shadow: none;
  background: var(--card, #fff);
}

html.hs-web .hs-donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
html.hs-web .hs-donut {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--fg) 0 75%, #6b7d8a 75% 87.5%, #2a3540 87.5% 100%);
  display: grid; place-items: center;
  flex: 0 0 auto;
  position: relative;
}
html.hs-web .hs-donut::after {
  content: "";
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--card);
}
html.hs-web .hs-donut .center {
  position: absolute;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
html.hs-web .hs-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
html.hs-web .hs-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
/* Fixed dots column so counts/labels align when a line has 1–3 aircraft dots. */
html.hs-web .hs-ac-dots {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 0 0 40px;
  width: 40px;
  min-height: 10px;
}
html.hs-web .hs-legend-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
html.hs-web .hs-legend i,
html.hs-web .hs-ac-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
html.hs-web .hs-ac-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
html.hs-web .hs-legend .c-flying,
html.hs-web .hs-legend .c-active { background: var(--fg); }
html.hs-web .hs-legend .c-ground { background: #6b7d8a; }
html.hs-web .hs-legend .c-hangar { background: #4ade80; }
html.hs-web .hs-legend .c-maint { background: #f0c14a; }
html.hs-web .hs-legend .c-off {
  background: #2a3540;
  border: 1px solid #3a4a58;
  box-shadow: none;
}
html.hs-web .hs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
html.hs-web .hs-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
html.hs-web .hs-list li:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
html.hs-web .hs-list li:first-child {
  padding-top: 2px;
}
html.hs-web .hs-list .when {
  color: rgba(244, 247, 245, 0.88);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
html.hs-web .hs-list .bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg);
  margin-top: 6px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px var(--fg-soft, rgba(59,130,246,.16));
}
html.hs-web .hs-list .row { display: flex; gap: 10px; min-width: 0; }
html.hs-web .hs-card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-bright, var(--fg));
  text-decoration: none;
}
html.hs-web .hs-card-link:hover { text-decoration: underline; }
html.hs-web .hs-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
html.hs-web .hs-status-pill.ok {
  background: var(--fg-soft, rgba(59,130,246,.16));
  color: var(--fg-bright, var(--fg));
}
html.hs-web .hs-status-pill.warn {
  background: color-mix(in srgb, #f0c14a 16%, transparent);
  color: #f0c14a;
}

html.hs-web .hs-section-title {
  margin: 22px 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

html.hs-web .hs-home-grid,
html.hs-web #tileGrid.hs-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}
html.hs-web #tileGrid.hs-home-grid a.tile {
  min-height: 132px;
  border-radius: 16px;
  padding: 18px;
}
html.hs-web #tileGrid.hs-home-grid a.tile:hover {
  border-color: color-mix(in srgb, var(--fg) 45%, var(--line));
  background: var(--card-hover);
}

/* Hangar hub — match Services stack: wide short rows */
html.hs-web #menuStack.hs-hangar-stack,
html.hs-web .hs-hangar-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html.hs-web #menuStack.hs-hangar-stack a.service {
  border-radius: 18px;
  padding: 18px 16px;
}
html.hs-web #menuStack.hs-hangar-stack a.service:hover {
  border-color: color-mix(in srgb, var(--fg) 40%, var(--line));
}

/* Responsive: collapse sidebar */
@media (max-width: 1100px) {
  html.hs-web .hs-metrics { grid-template-columns: 1fr 1fr; }
  html.hs-web .hs-metrics .hs-card:last-child { grid-column: 1 / -1; }
  html.hs-web .hs-metrics.hs-metrics-2 { grid-template-columns: 1fr; }
  html.hs-web .hs-metrics.hs-metrics-2 .hs-card:last-child { grid-column: auto; }
  html.hs-web #tileGrid.hs-home-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  html.hs-web {
    --hs-topbar-h: 108px;
    --hs-logo-mark-w: 110px;
    --hs-logo-mark-h: 50px;
  }
  html.hs-web body.hs-shell {
    padding-left: 0;
    padding-bottom: calc(var(--hs-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }
  html.hs-web .hs-shell-burger { display: inline-flex; }
  html.hs-web .hs-shell-sidebar {
    width: min(280px, calc(86 * var(--hs-vw, 1vw)));
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: var(--hs-shadow);
    z-index: 38;
  }
  html.hs-web .hs-shell-sidebar.open { transform: translateX(0); }
  html.hs-web .hs-tenant-chip { display: none !important; }
  html.hs-web .hs-shell-bottom-nav { display: flex; }
  html.hs-web body.hs-shell > header:not(#hs-site-nav) {
    min-height: 64px !important;
    padding: 0 16px !important;
  }
  html.hs-web body.hs-shell > main { padding: 0 16px 24px !important; }
  html.hs-web .hs-brand-word span { font-size: 44px; }
  html.hs-web body.hs-shell .hs-site-nav.hs-shell-topbar {
    padding: 0 26px 0 10px !important;
    gap: 10px;
  }
}
@media (max-width: 560px) {
  html.hs-web {
    --hs-topbar-h: 96px;
    --hs-logo-mark-w: 88px;
    --hs-logo-mark-h: 40px;
  }
  html.hs-web .hs-metrics { grid-template-columns: 1fr; }
  html.hs-web .hs-metrics .hs-card:last-child { grid-column: auto; }
  html.hs-web #tileGrid.hs-home-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  html.hs-web #tileGrid.hs-home-grid a.tile { min-height: 118px; padding: 14px; }
  html.hs-web #tileGrid.hs-home-grid a.tile .label { font-size: 17px; }
  html.hs-web .hs-page-title-row {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }
  html.hs-web .hs-page-head .eyebrow { font-size: 10px; letter-spacing: 0.1em; }
  html.hs-web .hs-page-head h1 {
    font-size: clamp(16px, calc(4.6 * var(--hs-vw, 1vw)), 22px) !important;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  html.hs-web .hs-brand-word span { font-size: 34px; }
  html.hs-web .hs-brand-word i { height: 3px; bottom: calc(0.11em - 4px); }
  html.hs-web .hs-metric-big { font-size: 32px; }
  html.hs-web .hs-card { padding: 16px 18px; }
}


/* ---- Glamour header meta + menus + user foot (stage 3) ---- */
html.hs-web .hs-top-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  flex: 0 0 auto;
  margin-right: 0;
}
html.hs-web .hs-top-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  line-height: 1.15;
}
html.hs-web .hs-top-meta .meta-item svg,
html.hs-web .hs-top-meta .meta-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  opacity: 0.95;
  color: var(--text);
}
html.hs-web .hs-top-meta .meta-item.meta-time .meta-ico {
  width: 28px;
  height: 28px;
  opacity: 0.88;
}
html.hs-web .hs-top-meta .meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
html.hs-web .hs-top-meta .meta-stack strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
}
html.hs-web .hs-top-meta .meta-stack em,
html.hs-web .hs-top-meta .meta-item em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.92;
  margin: 0;
  letter-spacing: 0.01em;
}
html.hs-web .hs-notify-btn {
  position: relative;
}
html.hs-web .hs-notify-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 2px #0b1016;
}
html.hs-theme-light .hs-notify-dot {
  box-shadow: 0 0 0 2px #ffffff;
}
html.hs-web .hs-notify-dot[hidden] { display: none !important; }

html.hs-web .hs-notify-wrap {
  position: relative;
  display: inline-flex;
}
html.hs-web .hs-notify-panel {
  width: min(360px, calc(calc(100 * var(--hs-vw, 1vw)) - 24px));
  padding: 0;
  overflow: hidden;
}
html.hs-web .hs-notify-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
html.hs-web .hs-notify-panel-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
html.hs-web .hs-notify-panel-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
html.hs-web .hs-notify-panel-list {
  max-height: min(360px, calc(50 * var(--hs-vh, 1vh)));
  overflow: auto;
  padding: 6px 0;
}
html.hs-web .hs-notify-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title when" "body body";
  gap: 2px 10px;
  padding: 10px 14px;
  text-decoration: none !important;
  color: inherit;
  border: 0;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: transform .18s ease, opacity .18s ease, background .15s ease;
}
html.hs-web .hs-notify-item.hs-notify-dragging {
  cursor: grabbing;
  transition: none;
}
html.hs-web .hs-notify-item.hs-notify-removing {
  transform: translateX(var(--hs-notify-out, -110%));
  opacity: 0;
  pointer-events: none;
}
html.hs-web .hs-notify-item:hover {
  background: transparent;
}
/* Notification rows only. Odd is a quiet blue; even is a greyer blue. Footer stays plain. */
html.hs-web.hs-theme-dark .hs-notify-panel-list > .hs-notify-item:nth-child(odd),
html.hs-web.hs-theme-dark .hs-notify-panel-list > .hs-notify-item:nth-child(odd):hover {
  background: var(--fg-navy2,#1a2c40);
}
html.hs-web.hs-theme-dark .hs-notify-panel-list > .hs-notify-item:nth-child(even),
html.hs-web.hs-theme-dark .hs-notify-panel-list > .hs-notify-item:nth-child(even):hover {
  background: #1c242c;
}
html.hs-web .hs-notify-item-title {
  grid-area: title;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.hs-web .hs-notify-item-body {
  grid-area: body;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.hs-web .hs-notify-item-when {
  grid-area: when;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 2px;
}
html.hs-web .hs-notify-empty {
  padding: 18px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
html.hs-web .hs-notify-panel-foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 14px 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
html.hs-web .hs-notify-clear {
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}
html.hs-web .hs-notify-clear:hover { color: var(--text); }
html.hs-web .hs-notify-clear:disabled {
  opacity: 0.4;
  cursor: default;
}
html.hs-web .hs-notify-enable {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--fg-ink,#fff);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
html.hs-web .hs-notify-enable[hidden] { display: none !important; }
html.hs-web .hs-notify-all {
  margin-right: auto;
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
  text-decoration: none;
}
html.hs-web .hs-notify-all:hover { text-decoration: underline; }

html.hs-web .hs-shell-menu-wrap {
  position: relative;
  display: inline-flex;
}
html.hs-web .hs-shell-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--hs-shadow);
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}
html.hs-web .hs-shell-menu.open { display: flex; }
html.hs-web .hs-shell-menu a,
html.hs-web .hs-shell-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
html.hs-web .hs-shell-menu a:hover,
html.hs-web .hs-shell-menu button:hover {
  background: var(--fg-softer, rgba(59,130,246,.08));
  color: var(--text);
  text-decoration: none;
}

html.hs-web .hs-sidebar-foot {
  margin-top: auto;
  padding: 14px 6px 6px;
  border-top: 1px solid var(--line);
  position: relative;
}
html.hs-web .hs-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}
html.hs-web .hs-user:hover {
  background: var(--fg-softer, rgba(59,130,246,.08));
  border-color: transparent;
}
/* Initials avatar — dark navy circle + light-blue letters (Ops Center footer proof) */
html.hs-web .hs-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #15233a;
  border: none;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700; letter-spacing: 0.02em;
  color: #8ec5ff;
  flex: 0 0 56px;
  line-height: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
html.hs-theme-light .hs-avatar {
  background: #1a3354;
  color: #8ec5ff;
}
html.hs-web .hs-user-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.hs-web .hs-user .who {
  /* Match a.tile .label (home tile title) size */
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #f4f7f5;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.hs-theme-light .hs-user .who { color: var(--text); }
html.hs-web .hs-user-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
html.hs-web .hs-user .role {
  font-size: 12px; color: #8ea0ad; margin-top: 0; line-height: 1.2;
  min-width: 0;
}
html.hs-web .hs-user-caret {
  color: #8ea0ad; font-size: 9px; flex: 0 0 auto;
  line-height: 1;
  /* Sit under the name, on the right (same row as muted role) */
  align-self: center;
}
html.hs-web .hs-user-menu {
  left: 8px;
  right: 8px;
  top: auto;
  bottom: calc(100% + 6px);
  min-width: 0;
}
html.hs-web .hs-shell-sidebar .hs-tenant-chip-side {
  display: none;
}

@media (max-width: 1100px) {
  html.hs-web .hs-top-meta { gap: 18px; }
  html.hs-web .hs-top-meta .meta-stack strong { font-size: 17px; }
  html.hs-web body.hs-shell .hs-site-nav.hs-shell-topbar { padding: 0 24px 0 14px !important; gap: 12px; }
}
@media (max-width: 820px) {
  html.hs-web .hs-top-meta .meta-weather,
  html.hs-web .hs-top-meta .meta-time { display: none; }
}


/* ---- Weather icon condition colors (header meta) ---- */
html.hs-web .hs-top-meta .meta-wx-ico {
  opacity: 1;
}
html.hs-web .hs-top-meta .meta-wx-ico .wx-a,
html.hs-web .hs-top-meta .meta-wx-ico .wx-b {
  fill: currentColor;
}
html.hs-web .hs-top-meta .meta-wx-ico g.wx-a,
html.hs-web .hs-top-meta .meta-wx-ico g.wx-b {
  fill: none;
}
/* Sun / clear — warm yellow/gold */
html.hs-web .hs-top-meta .meta-wx-sun { color: #f0b429; }
html.hs-web .hs-top-meta .meta-wx-sun .wx-a { fill: #f5c518; }
html.hs-web .hs-top-meta .meta-wx-sun .wx-b { stroke: #e8a910; fill: none; }
/* Moon / clear night — softer silver */
html.hs-web .hs-top-meta .meta-wx-moon { color: #c5d0e0; }
html.hs-web .hs-top-meta .meta-wx-moon .wx-a { fill: #d8e0ec; }
/* Clouds — gray/white */
html.hs-web .hs-top-meta .meta-wx-cloud { color: #9aa3b2; }
html.hs-web .hs-top-meta .meta-wx-cloud .wx-a { fill: #b0b8c6; }
/* Partly cloudy — gold sun + gray cloud */
html.hs-web .hs-top-meta .meta-wx-partly { color: #9aa3b2; }
html.hs-web .hs-top-meta .meta-wx-partly .wx-a { fill: #b0b8c6; }
html.hs-web .hs-top-meta .meta-wx-partly .wx-b { fill: #f0b429; stroke: #e8a910; }
html.hs-web .hs-top-meta .meta-wx-partly g.wx-b { fill: none; stroke: #e8a910; }
/* Partly cloudy night — soft moon + gray cloud */
html.hs-web .hs-top-meta .meta-wx-partly-night { color: #9aa3b2; }
html.hs-web .hs-top-meta .meta-wx-partly-night .wx-a { fill: #b0b8c6; }
html.hs-web .hs-top-meta .meta-wx-partly-night .wx-b { fill: #c5d0e0; }
/* Rain — blue drops, gray cloud */
html.hs-web .hs-top-meta .meta-wx-rain { color: #9aa3b2; }
html.hs-web .hs-top-meta .meta-wx-rain .wx-a { fill: #a8b0be; }
html.hs-web .hs-top-meta .meta-wx-rain .wx-b { stroke: var(--fg,#3b82f6); fill: none; }
/* Snow — light blue flakes, pale cloud */
html.hs-web .hs-top-meta .meta-wx-snow { color: #c5d4e8; }
html.hs-web .hs-top-meta .meta-wx-snow .wx-a { fill: #d0dae8; }
html.hs-web .hs-top-meta .meta-wx-snow .wx-b { fill: #7dd3fc; }
/* Thunder — purple cloud, yellow bolt */
html.hs-web .hs-top-meta .meta-wx-thunder { color: #8b7ec8; }
html.hs-web .hs-top-meta .meta-wx-thunder .wx-a { fill: #7c6bb5; }
html.hs-web .hs-top-meta .meta-wx-thunder .wx-b { fill: #f5c518; }
/* Fog — muted gray */
html.hs-web .hs-top-meta .meta-wx-fog { color: #94a3b8; }
html.hs-web .hs-top-meta .meta-wx-fog .wx-a { stroke: #94a3b8; fill: none; }

/* ---- Weather / timezone pickers (clickable top meta) ---- */
html.hs-web .hs-top-meta .meta-item.meta-clickable {
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 8px;
  margin: -4px -8px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
}
html.hs-web .hs-top-meta .meta-item.meta-clickable:hover,
html.hs-web .hs-top-meta .meta-item.meta-clickable[aria-expanded="true"] {
  background: var(--fg-softer, rgba(59,130,246,.08));
  border-color: var(--line);
  color: var(--text);
}
html.hs-web .hs-meta-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
html.hs-web .hs-meta-picker {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  max-width: min(360px, calc(calc(100 * var(--hs-vw, 1vw)) - 24px));
  max-height: min(420px, calc(75 * var(--hs-vh, 1vh)));
  overflow: hidden;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card, #141b22);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}
html.hs-web .hs-meta-picker.open { display: flex; }
html.hs-web .hs-meta-picker .hs-picker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 2px;
  flex: 0 0 auto;
}
html.hs-web .hs-meta-picker .hs-picker-current {
  font-size: 11px;
  color: var(--muted);
  padding: 0 10px 6px;
  flex: 0 0 auto;
}
html.hs-web .hs-meta-picker .hs-picker-current strong {
  color: var(--text);
  font-weight: 650;
}
html.hs-web .hs-meta-picker .hs-picker-search-wrap {
  padding: 0 6px 6px;
  flex: 0 0 auto;
}
html.hs-web .hs-meta-picker .hs-picker-search {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  outline: none;
}
html.hs-web .hs-meta-picker .hs-picker-search::placeholder {
  color: var(--muted);
  opacity: .85;
}
html.hs-web .hs-meta-picker .hs-picker-search:focus {
  border-color: color-mix(in srgb, var(--fg, #3b82f6) 55%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg, #3b82f6) 28%, transparent);
}
html.hs-web .hs-meta-picker .hs-picker-results {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(300px, calc(55 * var(--hs-vh, 1vh)));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 2px;
}
html.hs-web .hs-meta-picker .hs-picker-empty,
html.hs-web .hs-meta-picker .hs-picker-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px;
}
html.hs-web .hs-meta-picker button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  flex: 0 0 auto;
}
html.hs-web .hs-meta-picker button:hover {
  background: var(--fg-softer, rgba(59,130,246,.12));
}
html.hs-web .hs-meta-picker button.is-active {
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  color: #fff;
}
html.hs-web .hs-meta-picker button small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
html.hs-web .hs-meta-picker button.is-active small { color: rgba(255,255,255,.75); }
html.hs-web.hs-theme-light .hs-meta-picker .hs-picker-search {
  background: color-mix(in srgb, var(--fg, #3b82f6) 6%, #fff);
}


/* shell main full bleed reinforce */
html.hs-web body.hs-shell > main,
html.hs-web body.hs-shell > header:not(#hs-site-nav) {
  max-width: none !important;
  width: 100% !important;
}
html.hs-web body.hs-shell #hs-site-nav.hs-shell-topbar {
  max-width: none !important;
  width: calc(100 * var(--hs-vw, 1vw)) !important;
  left: 0 !important;
  right: 0 !important;
  /* Above the Ops page-band escape layer (z-index 10000) so title/Tiles
     scroll underneath this bar. The Tiles popover stays inside that band,
     still above the dashboard cards. */
  z-index: 11000 !important;
}


/* Light theme: keep secondary metric label readable (not forced white) */
html.hs-web.hs-theme-light .hs-metric-big > span:not(:first-child) {
  color: var(--muted);
}
html.hs-web.hs-theme-light .hs-page-head .eyebrow {
  color: var(--muted);
}
html.hs-web.hs-theme-light .hs-list .when {
  color: var(--muted);
}


/* Dark theme: force high-contrast white for sidebar + ops cards (Jason proof) */
html.hs-web.hs-theme-dark .hs-shell-nav-item {
  color: #ffffff;
}
html.hs-web.hs-theme-dark .hs-shell-nav-item:hover {
  color: #ffffff;
}
html.hs-web.hs-theme-dark .hs-card h3,
html.hs-web.hs-theme-dark .hs-list li,
html.hs-web.hs-theme-dark .hs-metric-row,
html.hs-web.hs-theme-dark .hs-legend,
html.hs-web.hs-theme-dark .hs-metric-big,
html.hs-web.hs-theme-dark .hs-metric-big > span:first-child,
html.hs-web.hs-theme-dark .hs-page-head h1 {
  color: #ffffff;
}
html.hs-web.hs-theme-dark .hs-list .when {
  color: rgba(255, 255, 255, 0.9);
}
html.hs-web.hs-theme-dark .hs-metric-big > span:not(:first-child) {
  color: rgba(255, 255, 255, 0.82);
}

/* Selected nav: bright blue icon (override dark-theme white force) */
html.hs-web.hs-theme-dark .hs-shell-nav-item.is-active .hs-nav-ico {
  color: var(--fg-bright, #60a5fa);
}
html.hs-web.hs-theme-light .hs-shell-nav-item.is-active {
  background: color-mix(in srgb, var(--fg) 16%, #ffffff);
  color: var(--text);
}
html.hs-web.hs-theme-light .hs-shell-nav-item.is-active .hs-nav-ico {
  color: var(--fg-deep, var(--fg));
}
html.hs-web.hs-theme-light .hs-shell-nav-item.is-active::before {
  background: var(--fg);
}

/* ---- Add Trip: wider depart/return datetime so time entry does not clip ---- */
html.hs-web #add .when-row input[type="datetime-local"],
html.hs-web #add .when-row input[type="date"] {
  max-width: 17rem !important;
  min-width: 13.5rem !important;
  flex: 1 1 auto !important;
}

/* ---- Add Trip / Admin sheet: centered, content-area, full controls visible ---- */
html.hs-web #add.sheet,
html.hs-web #addAircraft.sheet,
html.hs-web #admin.sheet {
  left: calc(var(--hs-sidebar-w, 260px) + (calc(100 * var(--hs-vw, 1vw)) - var(--hs-sidebar-w, 260px)) / 2) !important;
  right: auto !important;
  transform: translateX(-50%);
  width: min(440px, calc(calc(100 * var(--hs-vw, 1vw)) - var(--hs-sidebar-w, 260px) - 48px)) !important;
  max-width: 440px !important;
  top: calc(var(--hs-topbar-h, 136px) + 16px) !important;
  max-height: calc(calc(100 * var(--hs-vh, 1dvh)) - var(--hs-topbar-h, 136px) - 32px) !important;
  z-index: 60 !important;
  gap: 8px !important;
  padding: 14px 16px 16px !important;
  box-sizing: border-box;
  overflow: auto;
}
html.hs-web #add.sheet.open,
html.hs-web #addAircraft.sheet.open,
html.hs-web #admin.sheet.open {
  display: flex !important;
}
@media (max-width: 900px) {
  html.hs-web #add.sheet,
html.hs-web #addAircraft.sheet,
  html.hs-web #admin.sheet {
    left: 50% !important;
    width: min(440px, calc(calc(100 * var(--hs-vw, 1vw)) - 32px)) !important;
  }
}

/* ---- Unified page header band (Dashboard / Aircraft / Hangar) ---- */
html.hs-web {
  --hs-page-band-h: 64px; /* ST. SPACE: match Aircraft (72→64; 72 restored scroll) */
  --hs-page-inline: 28px;
  --hs-page-main-bottom: 16px;
}
html.hs-web body.hs-shell > header:not(#hs-site-nav) {
  min-height: var(--hs-page-band-h) !important;
  max-height: var(--hs-page-band-h);
  height: var(--hs-page-band-h);
  overflow: hidden;
}
html.hs-web body.hs-shell.hs-board-page > header:not(#hs-site-nav),
html.hs-web body.hs-shell:has(#board) > header:not(#hs-site-nav) {
  min-height: var(--hs-page-band-h) !important;
  max-height: var(--hs-page-band-h);
  height: var(--hs-page-band-h);
}


/* ---- Ops Cameras tile (dashboard live fill) ---- */
html.hs-web #cardCameras.hs-card-cameras {
  min-height: 0;
  overflow: hidden;
}
html.hs-web #cardCameras .hs-cam-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}
html.hs-web #cardCameras .hs-cam-head h3 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
html.hs-web #cardCameras .hs-cam-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html.hs-web #cardCameras .hs-cam-select {
  width: auto;
  max-width: min(62%, 220px);
  flex: 0 1 auto;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-color: color-mix(in srgb, var(--fg) 12%, var(--card));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238ea0ad' d='M1.4 1.2L6 5.6l4.6-4.4 1.2 1.3L6 8 0.2 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--line));
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 30px 8px 11px;
  cursor: pointer;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html.hs-web #cardCameras .hs-cam-select:hover,
html.hs-web #cardCameras .hs-cam-select:focus {
  border-color: color-mix(in srgb, var(--fg) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--fg-soft, rgba(59,130,246,.16));
}
html.hs-web #cardCameras .hs-cam-select:disabled {
  opacity: 0.65;
  cursor: default;
}
html.hs-web #cardCameras .hs-cam-select option {
  background: var(--card);
  color: var(--text);
}
html.hs-web #cardCameras .hs-cam-shot {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1016;
  border: 1px solid var(--line);
}
html.hs-web #cardCameras .hs-cam-shot img,
html.hs-web #cardCameras .hs-cam-shot video,
html.hs-web #cardCameras .hs-cam-shot .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
html.hs-web #cardCameras .hs-cam-shot img,
html.hs-web #cardCameras .hs-cam-shot video {
  object-fit: contain;
  display: none;
  background: #000;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}
/* Desktop mouse zoom/pan: grab only on the image viewport when zoomed (not tile chrome). */
html.hs-web #cardCameras .hs-cam-shot.is-zoomed {
  cursor: grab;
}
html.hs-web #cardCameras .hs-cam-shot.is-zoomed.is-panning {
  cursor: grabbing;
}
html.hs-web #cardCameras .hs-cam-shot .ph {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1016;
  z-index: 1;
}
html.hs-web #cardCameras .hs-cam-shot .ph[hidden] {
  display: none !important;
}
html.hs-web #cardCameras .hs-cam-shot .live-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  color: var(--hs-live-ok);
  border: 1px solid color-mix(in srgb, var(--hs-live-ok) 55%, transparent);
  pointer-events: none;
}
html.hs-web #cardCameras .hs-cam-shot .live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hs-live-ok);
  box-shadow: 0 0 6px var(--hs-live-ok-soft);
}
html.hs-web #cardCameras .hs-cam-shot.is-snap .live-dot {
  color: #f0c14a;
  border-color: rgba(240, 193, 74, 0.45);
}
html.hs-web #cardCameras .hs-cam-shot.is-snap .live-dot::before {
  background: #f0c14a;
  box-shadow: none;
}
html.hs-web #cardCameras .hs-card-link {
  flex: 0 0 auto;
  margin-top: 10px;
  padding-top: 0;
}
html.hs-web.hs-theme-light #cardCameras .hs-cam-select {
  background-color: color-mix(in srgb, var(--fg) 8%, #fff);
}
html.hs-web.hs-theme-light #cardCameras .hs-cam-shot {
  background: #e8eef4;
}

html.hs-web.hs-theme-light #cardCameras .hs-cam-shot .ph {
  background: #e8eef4;
}

/* ---- Access Control tile (Cameras twin + Lock/Unlock overlay) ---- */
html.hs-web #cardAccess.hs-card-access {
  min-height: 0;
  overflow: hidden;
}
html.hs-web #cardAccess .hs-cam-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}
html.hs-web #cardAccess .hs-cam-head h3 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
html.hs-web #cardAccess .hs-cam-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
html.hs-web #cardAccess .hs-cam-select {
  width: auto;
  max-width: min(62%, 220px);
  flex: 0 1 auto;
  min-width: 0;
  box-sizing: border-box;
  appearance: none; -webkit-appearance: none;
  background-color: color-mix(in srgb, var(--fg) 12%, var(--card));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238ea0ad' d='M1.4 1.2L6 5.6l4.6-4.4 1.2 1.3L6 8 0.2 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px;
  border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--line));
  border-radius: 10px; color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em; padding: 8px 30px 8px 11px; cursor: pointer; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html.hs-web #cardAccess .hs-cam-select:hover,
html.hs-web #cardAccess .hs-cam-select:focus {
  border-color: color-mix(in srgb, var(--fg) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--fg-soft, rgba(59,130,246,.16));
}
html.hs-web #cardAccess .hs-cam-select:disabled { opacity: 0.65; cursor: default; }
html.hs-web #cardAccess .hs-cam-select option { background: var(--card); color: var(--text); }
html.hs-web #cardAccess .hs-cam-shot {
  position: relative; flex: 1 1 auto; min-height: 0; height: 100%;
  border-radius: 12px; overflow: hidden; background: #0b1016; border: 1px solid var(--line);
}
html.hs-web #cardAccess .hs-cam-shot img,
html.hs-web #cardAccess .hs-cam-shot video,
html.hs-web #cardAccess .hs-cam-shot .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
}
html.hs-web #cardAccess .hs-cam-shot img,
html.hs-web #cardAccess .hs-cam-shot video {
  object-fit: contain; display: none; background: #000; pointer-events: none;
}
html.hs-web #cardAccess .hs-cam-shot .ph {
  color: var(--muted); font-size: 13px; font-weight: 550; padding: 16px; text-align: center;
  display: flex; align-items: center; justify-content: center; background: #0b1016; z-index: 1;
}
html.hs-web #cardAccess .hs-cam-shot .ph[hidden] { display: none !important; }
html.hs-web #cardAccess .hs-cam-shot .live-dot {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55); color: var(--hs-live-ok);
  border: 1px solid color-mix(in srgb, var(--hs-live-ok) 55%, transparent);
  pointer-events: none;
}
html.hs-web #cardAccess .hs-cam-shot .live-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--hs-live-ok); box-shadow: 0 0 6px var(--hs-live-ok-soft);
}
html.hs-web #cardAccess .hs-cam-shot.is-snap .live-dot {
  color: #f0c14a; border-color: rgba(240, 193, 74, 0.45);
}
html.hs-web #cardAccess .hs-cam-shot.is-snap .live-dot::before {
  background: #f0c14a; box-shadow: none;
}
html.hs-web #cardAccess .overlay-actions {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; justify-content: center; gap: 28px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.62));
  pointer-events: none;
}
html.hs-web #cardAccess .overlay-actions[hidden] { display: none !important; }
html.hs-web #cardAccess .overlay-actions .act-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: auto; min-width: 64px;
}
html.hs-web #cardAccess .overlay-actions .act-label {
  margin: 0; color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; opacity: .92; pointer-events: none;
}
html.hs-web #cardAccess button.act.lock-circle {
  appearance: none; position: relative;
  width: 52px; height: 52px; min-width: 52px; padding: 0; margin: 0;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.45); color: #fff;
  display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
html.hs-web #cardAccess button.act.lock-circle .btn-glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: opacity .28s ease, transform .35s cubic-bezier(.34, 1.2, .64, 1);
}
html.hs-web #cardAccess button.act.lock-circle svg.pl-icon {
  width: 26px; height: 26px; display: block; overflow: visible; pointer-events: none;
}
html.hs-web #cardAccess button.act.lock-circle svg.pl-icon .pl-fill { fill: currentColor; }
html.hs-web #cardAccess button.act.lock-circle svg.pl-icon .pl-stroke {
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
html.hs-web #cardAccess button.act.lock-circle svg.check { width: 24px; height: 24px; display: block; overflow: visible; }
html.hs-web #cardAccess button.act.lock-circle svg.check .ck-stroke {
  fill: none; stroke: var(--fg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 32; stroke-dashoffset: 32;
}
html.hs-web #cardAccess button.act.lock-circle .glyph-padlock { opacity: 1; transform: scale(1); }
html.hs-web #cardAccess button.act.lock-circle .glyph-check { opacity: 0; transform: scale(0.85); pointer-events: none; }
html.hs-web #cardAccess button.act.lock-circle.shackle-out .glyph-padlock { opacity: 0.25; transition: opacity .32s ease; }
html.hs-web #cardAccess button.act.lock-circle.show-check {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 55%, transparent);
  background: color-mix(in srgb, var(--fg) 18%, rgba(0,0,0,.5));
}
html.hs-web #cardAccess button.act.lock-circle.show-check .glyph-padlock { opacity: 0; transform: scale(0.88); }
html.hs-web #cardAccess button.act.lock-circle.show-check .glyph-check { opacity: 1; transform: scale(1); }
html.hs-web #cardAccess button.act.lock-circle.show-check svg.check .ck-stroke {
  animation: hs-access-ck-draw .45s ease forwards;
}
@keyframes hs-access-ck-draw { to { stroke-dashoffset: 0; } }
html.hs-web #cardAccess button.act.lock-circle:active { transform: scale(.96); }
html.hs-web #cardAccess button.act.lock-circle:disabled { opacity: .55; cursor: default; transform: none; }
html.hs-web #cardAccess .overlay-actions.has-hold {
  justify-content: flex-end;
  gap: 12px;
  padding-right: 10px;
}
html.hs-web #cardAccess .gate-hold-wrap { min-width: 78px; }
html.hs-web #cardAccess .gate-hold-wrap[hidden] { display: none !important; }
html.hs-web #cardAccess .gate-hold-label {
  position: relative; display: block; height: 1.15em; min-width: 78px;
}
html.hs-web #cardAccess .gate-hold-label .gh-idle,
html.hs-web #cardAccess .gate-hold-label .gh-active {
  position: absolute; left: 0; right: 0; top: 0; text-align: center;
  transition: opacity .28s ease, transform .35s cubic-bezier(.34, 1.2, .64, 1);
}
html.hs-web #cardAccess .gate-hold-label .gh-idle {
  opacity: 1; transform: scale(1); color: rgba(214, 222, 228, .88);
}
html.hs-web #cardAccess .gate-hold-label .gh-active {
  opacity: 0; transform: scale(.85); color: #3dd68c;
}
html.hs-web #cardAccess .gate-hold-wrap.is-active .gate-hold-label .gh-idle {
  opacity: 0; transform: scale(.88);
}
html.hs-web #cardAccess .gate-hold-wrap.is-active .gate-hold-label .gh-active {
  opacity: 1; transform: scale(1);
}
html.hs-web #cardAccess button.act.lock-circle.gate-hold-btn.is-active {
  color: #3dd68c;
  border-color: rgba(61, 214, 140, .9);
  background: rgba(61, 214, 140, .18);
  box-shadow: 0 0 12px rgba(61, 214, 140, .28);
}
html.hs-web #cardAccess button.act.lock-circle.gate-hold-btn.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(61, 214, 140, .85);
  pointer-events: none;
  animation: hs-gate-hold-pulse 1.6s ease-out infinite;
}
@keyframes hs-gate-hold-pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.45); opacity: 0; }
}
html.hs-web #cardAccess button.act.lock-circle.gate-hold-btn svg.gh-icon {
  width: 26px; height: 26px; display: block; overflow: hidden; pointer-events: none;
}
html.hs-web #cardAccess button.act.lock-circle.gate-hold-btn .glyph-hold {
  opacity: 1; transform: scale(1);
}
/* Picket gate: rails + 5 pickets slide into right post (viewBox %). */
html.hs-web #cardAccess button.act.lock-circle.gate-hold-btn .gh-slide {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translateX(0);
  transition: transform .72s cubic-bezier(.45,.05,.25,1), opacity .16s linear;
}
html.hs-web #cardAccess button.act.lock-circle.gate-hold-btn.is-active .gh-slide {
  transform: translateX(59.6%);
  opacity: 0;
  transition: transform .72s cubic-bezier(.45,.05,.25,1), opacity .18s linear .52s;
}
html.hs-web #cardAccess .hs-card-link {
  flex: 0 0 auto; margin-top: 10px; padding-top: 0;
}
html.hs-web.hs-theme-light #cardAccess .hs-cam-select {
  background-color: color-mix(in srgb, var(--fg) 8%, #fff);
}
html.hs-web.hs-theme-light #cardAccess .hs-cam-shot { background: #e8eef4; }
html.hs-web.hs-theme-light #cardAccess .hs-cam-shot .ph { background: #e8eef4; }

/* Hidden dashboard tiles stay in their grid cell so neighbors do not
   reflow or stretch. The cell is empty; width and height stay the full set. */
html.hs-web #opsCards .hs-card.hs-tile-hidden,
html.hs-web #opsCards .hs-card[hidden] {
  display: flex !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ops Center header — show/hide tiles control (moved out of Preferences) */
html.hs-web .hs-dash-tiles-ctl {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-left: auto;
}
html.hs-web .hs-dash-tiles-btn,
html.hs-web button.tool.hs-dash-tiles-btn,
html.hs-web.hs-theme-dark button.tool.hs-dash-tiles-btn,
html.hs-web.hs-theme-light button.tool.hs-dash-tiles-btn,
html.hs-web .hs-dash-tiles-btn:hover,
html.hs-web button.tool.hs-dash-tiles-btn:hover,
html.hs-web .hs-dash-tiles-btn[aria-expanded="true"],
html.hs-web button.tool.hs-dash-tiles-btn[aria-expanded="true"] {
  background: var(--fg-navy,#0e284a) !important; /* selected nav .hs-shell-nav-item.is-active */
  color: #ffffff !important;
  border: 1px solid var(--fg-navy,#0e284a) !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  font: inherit;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none !important;
}
html.hs-web .hs-dash-tiles-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  min-width: 240px;
  max-width: min(320px, calc(calc(100 * var(--hs-vw, 1vw)) - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
html.hs-web .hs-dash-tiles-panel[hidden] { display: none !important; }
html.hs-web .hs-dash-tiles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html.hs-web .hs-dash-tiles-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
html.hs-web .hs-dash-tiles-check input {
  accent-color: var(--fg);
}
html.hs-web .hs-dash-tiles-check:has(input:disabled) {
  opacity: 0.55;
  cursor: default;
}
html.hs-web .hs-dash-tiles-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
html.hs-web.hs-theme-light .hs-dash-tiles-panel {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

/* Ops Center Tiles popover must clear every dashboard card. The grid/main use
   viewport-lock overflow and some cards create their own paint layers, so keep
   the entire header escape layer above the grid instead of relying on the
   panel's local z-index alone. */
html.hs-web body.hs-shell:has(#opsCards) > header:not(#hs-site-nav) {
  position: relative;
  z-index: 10000 !important;
  isolation: isolate;
  overflow: visible !important;
}
html.hs-web body.hs-shell:has(#opsCards) > header:not(#hs-site-nav) .hs-page-head,
html.hs-web body.hs-shell:has(#opsCards) > header:not(#hs-site-nav) .hs-dash-tiles-ctl {
  position: relative;
  z-index: 10001;
  overflow: visible;
}
html.hs-web body.hs-shell:has(#opsCards) > header:not(#hs-site-nav) .hs-dash-tiles-panel {
  z-index: 10002 !important;
}

/* ---- Dashboard Ops Center: viewport-lock (no page scroll) when ≤2 tile rows ----
   Header band matches Aircraft; tile tops align with Aircraft Week/Month viewbar.
   Equal-height Ops tiles fill remaining main. When hs-ops-scroll (all tiles / 3+ rows),
   unlock document scroll and keep a locked equal card floor so tiles are not crushed. */
html.hs-web:has(#opsCards):not(.hs-ops-scroll) {
  height: 100%;
  overflow: hidden;
}
html.hs-web body.hs-shell:has(#opsCards):not(.hs-ops-scroll) {
  height: calc(100 * var(--hs-vh, 1dvh));
  max-height: calc(100 * var(--hs-vh, 1dvh));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
html.hs-web body.hs-shell:has(#opsCards) > header:not(#hs-site-nav) {
  position: relative;
  z-index: 90;
  flex: 0 0 auto;
  max-width: none !important;
  width: 100% !important;
}
html.hs-web body.hs-shell:has(#opsCards):not(.hs-ops-scroll) > main {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-width: none !important;
  width: 100% !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
html.hs-web body.hs-shell:has(#opsCards):not(.hs-ops-scroll) #opsCards.hs-metrics {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin-bottom: 0;
  margin-top: 0;
  overflow: hidden;
}
html.hs-web body.hs-shell:has(#opsCards):not(.hs-ops-scroll) #opsCards.hs-metrics > .hs-card {
  min-height: 0;
  overflow: hidden;
}

/* All tiles / 3+ rows: page scrolls. Each card keeps the original 2-row
   locked height (half the viewport under the chrome) — do not shrink to fit
   a third row, and do not leave a short grid with empty space below. */
html.hs-web {
  /* topbar + page band 64 + main bottom 16 + grid margin 12 + one row-gap 16 */
  --ops-tile-h: calc((calc(100 * var(--hs-vh, 1dvh)) - var(--hs-topbar-h, 136px) - 108px) / 2);
}
html.hs-web.hs-ops-scroll:has(#opsCards) {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
html.hs-web body.hs-shell.hs-ops-scroll:has(#opsCards),
html.hs-web.hs-ops-scroll body.hs-shell:has(#opsCards) {
  height: auto;
  max-height: none;
  min-height: calc(100 * var(--hs-vh, 1dvh));
  overflow-x: hidden;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
}
html.hs-web body.hs-shell.hs-ops-scroll:has(#opsCards) > main,
html.hs-web.hs-ops-scroll body.hs-shell:has(#opsCards) > main {
  flex: 0 0 auto;
  min-height: 0 !important;
  max-width: none !important;
  width: 100% !important;
  overflow: visible;
  display: block;
  padding-bottom: 28px !important;
}
html.hs-web body.hs-shell.hs-ops-scroll:has(#opsCards) #opsCards.hs-metrics,
html.hs-web.hs-ops-scroll body.hs-shell:has(#opsCards) #opsCards.hs-metrics {
  flex: none;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  margin-top: 0;
  overflow: visible;
  grid-auto-rows: var(--ops-tile-h);
  align-items: stretch;
}
html.hs-web body.hs-shell.hs-ops-scroll:has(#opsCards) #opsCards.hs-metrics > .hs-card,
html.hs-web.hs-ops-scroll body.hs-shell:has(#opsCards) #opsCards.hs-metrics > .hs-card {
  height: var(--ops-tile-h);
  min-height: var(--ops-tile-h);
  max-height: none;
  overflow: hidden;
  align-self: stretch;
}
/* Page titles: one bold title, no gray secondary line beside/under it */
html.hs-web body.hs-shell > header:not(#hs-site-nav) .hs-page-head h1,
html.hs-web body.hs-shell > header:not(#hs-site-nav) h1,
html.hs-web body.hs-hangar-hub > header:not(#hs-site-nav) .hs-page-head h1,
html.hs-web body.hs-hangar-hub > header h1 {
  margin: 0 !important;
  font-size: 32px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  text-transform: none !important;
  color: var(--text);
  white-space: nowrap;
}
html.hs-web.hs-theme-dark body.hs-shell > header:not(#hs-site-nav) h1,
html.hs-web.hs-theme-dark body.hs-hangar-hub > header h1 {
  color: #ffffff;
}
html.hs-web body.hs-shell > header:not(#hs-site-nav) .eyebrow,
html.hs-web body.hs-shell > header:not(#hs-site-nav) .sub,
html.hs-web body.hs-hangar-hub > header .eyebrow,
html.hs-web body.hs-hangar-hub > header .sub {
  display: none !important;
}

/* Activity feed (v129): title + Access|Aircraft pill toggle + rounded cards */
html.hs-web .hs-page-trail.hs-quiet-trail,
html.hs-web .hs-quiet-trail {
  display: none !important;
}
html.hs-web body.hs-activity-page > main,
html.hs-web body:has(#list) > main {
  max-width: none !important;
  width: 100% !important;
}
html.hs-web body.hs-activity-page > header.page-head,
html.hs-web body.hs-activity-page > header:not(#hs-site-nav) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
html.hs-web body.hs-activity-page .act-page-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.hs-web body.hs-activity-page .act-title-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0;
}
html.hs-web body.hs-activity-page #clearAll[hidden],
html.hs-web body.hs-activity-page .tool[hidden] {
  display: none !important;
}
html.hs-web body.hs-activity-page .act-views {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 3px !important;
  border-radius: 999px !important;
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05) !important;
  overflow: visible !important;
  flex: 0 0 auto;
}
html.hs-web body.hs-activity-page .act-views .act-view {
  border: 0 !important;
  border-radius: 999px !important;
  margin: 0 !important;
  padding: 7px 16px !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
html.hs-web body.hs-activity-page .act-views .act-view:hover {
  color: var(--text) !important;
  background: transparent !important;
}
html.hs-web body.hs-activity-page .act-views .act-view.on {
  background: var(--fg,#3b82f6) !important;
  color: var(--fg-ink,#fff)!important;
  font-weight: 750 !important;
  box-shadow: 0 1px 3px color-mix(in srgb,var(--fg,#3b82f6) 40%,transparent) !important;
  border: 0 !important;
}
html.hs-web.hs-theme-light body.hs-activity-page .act-views {
  background: #e8eef6 !important;
  border-color: #c9d4e3 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8) !important;
}
html.hs-web.hs-theme-light body.hs-activity-page .act-views .act-view.on {
  background: var(--fg,#3b82f6) !important;
  color: var(--fg-ink,#fff)!important;
}
html.hs-web body.hs-activity-page .swipe {
  border-radius: 14px !important;
  overflow: hidden !important;
}
html.hs-web body.hs-activity-page .item {
  border-radius: 14px !important;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
}
html.hs-web body.hs-activity-page .item .bullet {
  width: 3px !important;
  height: 12px !important;
  border-radius: 2px !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
  box-sizing: content-box !important;
  background: var(--fg) !important;
  box-shadow: 0 0 0 3px var(--fg-soft, rgba(59,130,246,.16)) !important;
  flex-shrink: 0 !important;
}
html.hs-web .hs-activity-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  width: 100%;
  padding: 8px 4px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 14px;
  line-height: 1.35;
}
html.hs-web .hs-activity-row .hs-act-line {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.hs-web .hs-activity-row .hs-act-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 650;
}



/* v126: keep today pulse paint-only; it must never participate in cell layout. */
html.hs-web #board .daycell.today,
.daycell.today {
  margin: 0 !important;
}
html.hs-web #board .daycell.today::after,
.daycell.today::after {
  box-sizing: border-box;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
}
html.hs-web #board .daycell.today .num,
.daycell.today .num {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  margin: 0 !important;
}


/* ===== Preferences modal (compact label / control rows) ===== */
.hs-prefs-overlay {
  /* notifpopup 2026-10-18: above the web site header (z 11000) / Ops header layer (10000-10002) so the modal title + close button are never covered */
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(6, 10, 14, .62);
  display: none; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
}
.hs-prefs-overlay.open { display: flex; }
.hs-prefs-modal {
  width: min(460px, 100%);
  max-height: min(calc(88 * var(--hs-vh, 1vh)), 720px);
  overflow: auto;
  background: var(--card, #141b22);
  border: 1px solid var(--line, #24303a);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  padding: 16px 16px 14px;
  color: var(--text, #f4f7f5);
  font-family: "Avenir Next","Segoe UI",sans-serif;
}
.hs-prefs-modal .hs-prefs-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin: 0 0 14px;
}
.hs-prefs-modal .hs-prefs-head h2 {
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em;
}
.hs-prefs-modal .hs-prefs-close {
  width: 34px; height: 34px; margin: 0; padding: 0;
  border-radius: 10px; border: 1px solid var(--line, #24303a);
  background: transparent; color: var(--muted, #8ea0ad);
  font-size: 20px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.hs-prefs-modal .hs-prefs-close:hover { color: var(--text); border-color: var(--fg); }
.hs-prefs-modal .hs-prefs-card {
  background: color-mix(in srgb, var(--card, #141b22) 70%, #0b1016);
  border: 1px solid var(--line, #24303a);
  border-radius: 14px;
  padding: 12px 12px 4px;
  margin: 0 0 12px;
}
.hs-prefs-modal .hs-prefs-card h3 {
  margin: 0 0 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #8ea0ad);
}
.hs-prefs-row {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px;
  margin: 0 0 10px; min-width: 0;
}
.hs-prefs-row > label,
.hs-prefs-row > .hs-prefs-lab {
  /* Fixed label column → Weather / Timezone / Camera / quiet times share one control left edge */
  flex: 0 0 8.5rem;
  width: 8.5rem;
  margin: 0;
  color: var(--muted, #8ea0ad);
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 650;
  white-space: nowrap;
}
.hs-prefs-row .hs-prefs-ctl {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  max-width: none;
}
.hs-prefs-row .hs-prefs-ctl.grow {
  /* Fill to card right → shared right edge (long red line); wide enough for full camera names */
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}
.hs-prefs-row .hs-prefs-ctl input[type=time] {
  /* Shared left with selects; shorter width → shorter shared right edge for Start/End */
  width: 9.75rem;
  max-width: 9.75rem;
}
.hs-prefs-modal input[type=text],
.hs-prefs-modal input[type=time],
.hs-prefs-modal select {
  width: 100%; max-width: 100%; box-sizing: border-box;
  font: inherit; border-radius: 10px; border: 1px solid var(--line, #24303a);
  background: #0b1016; color: var(--text, #f4f7f5); padding: 9px 11px;
  font-size: 13px;
}
.hs-prefs-modal select {
  appearance: none;
  background-image:
    linear-gradient(45deg,transparent 50%,var(--muted,#8ea0ad) 50%),
    linear-gradient(135deg,var(--muted,#8ea0ad) 50%,transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  text-overflow: clip;
}
.hs-prefs-seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border-radius: 999px; background: #0f172a; border: 1px solid #1e293b;
}
.hs-prefs-seg button {
  border: 0; border-radius: 999px; margin: 0; padding: 7px 12px;
  background: transparent; color: var(--muted, #8ea0ad);
  font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; line-height: 1.2;
}
.hs-prefs-seg button.on {
  background: var(--fg, #3b82f6); color: var(--fg-ink,#fff); font-weight: 750;
  box-shadow: 0 1px 3px color-mix(in srgb,var(--fg,#3b82f6) 35%,transparent);
}
.hs-prefs-check {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 14px; font-weight: 560; color: var(--text);
  cursor: pointer; text-transform: none; letter-spacing: 0;
}
.hs-prefs-check input { width: 16px; height: 16px; accent-color: var(--fg, #3b82f6); margin: 0; }
.hs-prefs-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px;
}
.hs-prefs-save {
  background: var(--fg, #3b82f6); color: var(--fg-ink, #0b1016);
  border: 0; border-radius: 11px; padding: 10px 16px;
  font: inherit; font-weight: 750; cursor: pointer;
}
.hs-prefs-note { color: var(--muted); font-size: 13px; min-height: 1.2em; }
.hs-prefs-note.ok { color: var(--fg, #3b82f6); }
.hs-prefs-note.bad { color: #e35d5d; }

html.hs-theme-light .hs-prefs-modal {
  background: #fff; border-color: #d5dde6; color: #0b1016;
  box-shadow: 0 20px 48px rgba(15,23,42,.18);
}
html.hs-theme-light .hs-prefs-modal .hs-prefs-card {
  background: #f7f9fc; border-color: #d5dde6;
}
html.hs-theme-light .hs-prefs-modal input[type=text],
html.hs-theme-light .hs-prefs-modal input[type=time],
html.hs-theme-light .hs-prefs-modal select {
  background: #f4f7fb; border-color: #d5dde6; color: #0b1016;
}
html.hs-theme-light .hs-prefs-seg {
  background: #e8eef6; border-color: #c9d4e3;
}
html.hs-theme-light .hs-prefs-overlay { background: rgba(15, 23, 42, .45); }

/* ===== Notification Settings modal (rides on the Preferences modal frame: .hs-prefs-overlay/.hs-prefs-modal) ===== */
.hs-ns-modal .hs-ns-lead { margin: 0 0 12px; color: var(--muted, #8ea0ad); font-size: 13px; line-height: 1.45; }
.hs-ns-modal .hs-prefs-card.hs-ns-card { padding: 0; overflow: hidden; }
.hs-ns-modal .ns-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line, #24303a);
}
.hs-ns-modal .ns-row:last-child { border-bottom: 0; }
.hs-ns-modal .ns-row.master { background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent); }
.hs-ns-modal .ns-body { flex: 1; min-width: 0; }
.hs-ns-modal .ns-label { font-size: 14px; font-weight: 650; letter-spacing: -.01em; color: var(--text, #f4f7f5); }
.hs-ns-modal .ns-hint { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted, #8ea0ad); }
.hs-ns-modal .ns-row.optional .ns-label::after {
  content: "Optional"; margin-left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted, #8ea0ad); vertical-align: middle;
}
.hs-ns-modal .hs-toggle {
  position: relative; flex: 0 0 auto; width: 48px; height: 28px; border-radius: 999px;
  border: 0; padding: 0; margin: 0; cursor: pointer; background: #2a3540;
  transition: background .18s ease;
}
.hs-ns-modal .hs-toggle[aria-checked="true"] { background: var(--fg, #3b82f6); }
.hs-ns-modal .hs-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s ease;
}
.hs-ns-modal .hs-toggle[aria-checked="true"] .knob { transform: translateX(20px); }
.hs-ns-modal .hs-toggle:focus-visible { outline: 2px solid color-mix(in srgb, var(--fg, #3b82f6) 70%, transparent); outline-offset: 2px; }
.hs-ns-modal .ns-sub { margin: 14px 2px 8px; color: var(--muted, #8ea0ad); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hs-ns-modal .ns-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.hs-ns-modal .ns-chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line, #24303a); background: #1c2630; color: #c9d4de; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; margin: 0; }
.hs-ns-modal .ns-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--fg, #3b82f6) 15%, transparent); border-color: color-mix(in srgb, var(--fg, #3b82f6) 50%, transparent); color: var(--fg-text, #8fb8ff); }
.hs-ns-modal .hs-prefs-foot { margin-top: 12px; }
.hs-ns-modal .hs-ns-secondary {
  background: transparent; color: var(--text, #f4f7f5); border: 1px solid var(--line, #24303a);
  border-radius: 11px; padding: 9px 14px; margin: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.hs-ns-modal .hs-prefs-note { flex: 1 1 100%; }
.hs-ns-modal .ns-foot { margin: 8px 2px 0; color: var(--muted, #8ea0ad); font-size: 12.5px; line-height: 1.4; }
.hs-ns-modal .ns-foot a { color: var(--fg, #3b82f6); text-decoration: none; font-weight: 650; }
html.hs-theme-light .hs-ns-modal .ns-row { border-bottom-color: #e8eef4; }
html.hs-theme-light .hs-ns-modal .ns-row.master { background: color-mix(in srgb, var(--fg, #3b82f6) 10%, #fff); }
html.hs-theme-light .hs-ns-modal .hs-toggle { background: #c9d4e3; }
html.hs-theme-light .hs-ns-modal .hs-toggle[aria-checked="true"] { background: var(--fg, #3b82f6); }
html.hs-theme-light .hs-ns-modal .ns-chip { background: #eef3f8; border-color: #d5dde6; color: #33414f; }
html.hs-theme-light .hs-ns-modal .ns-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--fg, #3b82f6) 14%, transparent); color: var(--fg-deeper, #1d4ed8); }
html.hs-theme-light .hs-ns-modal .hs-ns-secondary { color: #0b1016; border-color: #d5dde6; }

/* Upcoming tile aircraft filter */
html.hs-web #cardUpcoming .hs-up-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 0 0 4px; position: relative;
}
html.hs-web #cardUpcoming .hs-up-head h3 { margin: 0; }
html.hs-web #cardUpcoming .up-ac-filter { position: relative; flex: 0 0 auto; }
html.hs-web #cardUpcoming .up-ac-filter > button.filter-btn,
html.hs-web #cardUpcoming .up-ac-filter > button.filter-btn[aria-expanded="true"],
html.hs-web #cardUpcoming .up-ac-filter > button.filter-btn:hover {
  width: auto; min-width: 72px; max-width: 140px; height: 30px; margin: 0;
  padding: 0 12px;
  background: var(--fg-navy,#0e284a); /* selected nav .hs-shell-nav-item.is-active */
  color: #ffffff;
  border: 1px solid var(--fg-navy,#0e284a);
  border-radius: 8px; font: inherit; font-size: 12px; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; white-space: nowrap;
  box-shadow: none;
}
html.hs-web #cardUpcoming .up-ac-filter > button.filter-btn .filter-label {
  overflow: hidden; text-overflow: ellipsis; max-width: 110px;
  color: #ffffff;
}
html.hs-web #cardUpcoming .up-ac-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 12;
  min-width: 200px; max-width: 260px; padding: 8px;
  background: #10161c; border: 1px solid #3d5260; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
html.hs-web #cardUpcoming .up-ac-menu.open { display: block; }
html.hs-web #cardUpcoming .up-ac-menu label {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  cursor: pointer; color: #f4f7f5; font-size: 13px; font-weight: 600; user-select: none;
}
html.hs-web #cardUpcoming .up-ac-menu label:hover { background: #1b2630; }
html.hs-web #cardUpcoming .up-ac-menu label input {
  width: 16px; height: 16px; margin: 0; accent-color: var(--fg, #3b82f6); flex: 0 0 auto;
}
html.hs-web #cardUpcoming .up-ac-menu .filter-sep { height: 1px; background: #31414d; margin: 6px 4px; }
html.hs-web #cardUpcoming .up-ac-menu .filter-swatch {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
}
html.hs-web.hs-theme-light #cardUpcoming .up-ac-menu {
  background: #fff; border-color: #d5dde6; box-shadow: 0 12px 28px rgba(15,23,42,.14);
}
html.hs-web.hs-theme-light #cardUpcoming .up-ac-menu label { color: #0b1016; }
html.hs-web.hs-theme-light #cardUpcoming .up-ac-menu label:hover { background: #eef2f7; }
html.hs-web.hs-theme-light #cardUpcoming .up-ac-menu .filter-sep { background: #d5dde6; }

/* Access tile: same mouse-wheel zoom / drag-pan as the Cameras tile (image only). */
html.hs-web #cardAccess .hs-cam-shot img,
html.hs-web #cardAccess .hs-cam-shot video {
  transform-origin: center center;
  will-change: transform;
}
html.hs-web #cardAccess .hs-cam-shot.is-zoomed { cursor: grab; }
html.hs-web #cardAccess .hs-cam-shot.is-zoomed.is-panning { cursor: grabbing; }
html.hs-web #cardAccess .hs-cam-flip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(0,0,0,.58);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  pointer-events: auto;
}
html.hs-web #cardAccess .hs-cam-flip[hidden] { display: none !important; }
html.hs-web #cardAccess .hs-cam-flip svg { width: 16px; height: 16px; display: block; }
html.hs-web #cardAccess .hs-cam-shot.is-nocam .ph,
html.hs-web #cardAccess .hs-cam-shot[data-mode="nocam"] .ph {
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
}
html.hs-web #cardUpcoming #upcomingList {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* ===== Lock / Unlock activation feedback: GREEN everywhere (2026-10-05) =====
   Applies to every padlock circle (Access Button View, Access Camera View,
   dashboard Access tile, Gate Cameras) and Unlock All / Lock All. The :not(#hs-x)
   bump outranks page-level and light-theme !important rules that used blue --fg. */
:root { --hs-act-ok: var(--hs-live-ok, #22c55e); }
html body button.act.lock-circle.show-check:not(.gate-hold-btn):not(#hs-x) {
  color: var(--hs-act-ok) !important;
  border-color: color-mix(in srgb, var(--hs-act-ok) 75%, transparent) !important;
  background: color-mix(in srgb, var(--hs-act-ok) 18%, rgba(0,0,0,.5)) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--hs-act-ok) 40%, transparent) !important;
}
html.hs-theme-light body button.act.lock-circle.show-check:not(.gate-hold-btn):not(#hs-x) {
  background: color-mix(in srgb, var(--hs-act-ok) 14%, #ffffff) !important;
}
html body button.act.lock-circle.show-check:not(.gate-hold-btn):not(#hs-x)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--hs-act-ok) 85%, transparent);
  pointer-events: none;
  animation: hs-act-ok-pulse 1.1s ease-out 1 forwards;
}
html body button.act.lock-circle:not(#hs-x) svg.check .ck-stroke,
html body button.act.bulk-act:not(#hs-x) .bulk-ico svg.check .ck-stroke {
  stroke: var(--hs-act-ok) !important;
}
html body button.act.bulk-act.show-check:not(#hs-x) .bulk-ico {
  color: #ffffff !important;
  border-color: var(--hs-act-ok) !important;
  background: var(--hs-act-ok) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--hs-act-ok) 45%, transparent) !important;
}
html body button.act.bulk-act.show-check:not(#hs-x) .bulk-ico svg.check .ck-stroke {
  stroke: #ffffff !important;
}
@keyframes hs-act-ok-pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ---- Home Ops Center: shared narrow responsive (web + tablet; 1600 desktop unchanged) ---- */
@media (max-width: 820px) {
  html.hs-web #cardOps .ops-day {
    --ops-label-w: clamp(96px, calc(28 * var(--hs-vw, 1vw)), 140px);
    --ops-gap: 10px;
  }
  html.hs-web #cardAircraft .hs-donut-wrap {
    gap: clamp(10px, calc(3 * var(--hs-vw, 1vw)), 16px);
    min-width: 0;
  }
  html.hs-web #cardAircraft .hs-donut {
    width: clamp(72px, calc(22 * var(--hs-vw, 1vw)), 100px);
    height: clamp(72px, calc(22 * var(--hs-vw, 1vw)), 100px);
  }
  html.hs-web #cardAircraft .hs-donut::after {
    width: clamp(46px, calc(14 * var(--hs-vw, 1vw)), 64px);
    height: clamp(46px, calc(14 * var(--hs-vw, 1vw)), 64px);
  }
  html.hs-web #cardAircraft .hs-legend {
    font-size: clamp(12px, calc(3.4 * var(--hs-vw, 1vw)), 15px);
    min-width: 0;
  }
  html.hs-web #cardAircraft .hs-legend-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 430px) {
  html.hs-web #cardOps .ops-day {
    --ops-label-w: 96px;
    --ops-gap: 8px;
  }
  html.hs-web #cardOps .ops-day-name { font-size: 13px; }
}

/* ============================================================
   Aircraft / Week / Month viewbar — Option 3 glass card tabs + icons (2026-10-11 pre-tabs-opt3).
   Three equal glass cards, matching line icons (CSS masks, no markup change);
   only the active tab gets the blue tint/edge. px units only so Desktop-site
   (hs-deskguard zoom) and monitor scaling stay identical.
   ============================================================ */
html.hs-web .viewbar {
  display: flex !important;
  align-items: stretch !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 6px !important;
}
html.hs-web .viewbar button.view,
html.hs-web .viewbar button.view.on,
html.hs-web .viewbar button.view:last-child,
html.hs-web .viewbar button.view.on:last-child {
  flex: 1 1 0 !important;
  min-width: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 11px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: none !important;
  text-transform: none !important;
}
html.hs-web .viewbar button.view::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--hs-vb-ico) center / contain no-repeat;
  mask: var(--hs-vb-ico) center / contain no-repeat;
}
html.hs-web .viewbar button.view[data-view="day"] { --hs-vb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M2 13l8-2 2-8 2 1-1 7 7 2v2l-7-1-1 5 2 2v1l-4-1-4 1v-1l2-2-1-5-5 1z'/%3E%3C/svg%3E"); }
html.hs-web .viewbar button.view[data-view="week"] { --hs-vb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M7 14h10'/%3E%3C/svg%3E"); }
html.hs-web .viewbar button.view[data-view="month"] { --hs-vb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M7 14h2M11 14h2M15 14h2M7 17h2M11 17h2'/%3E%3C/svg%3E"); }
html.hs-web .viewbar button.view:hover {
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--fg) 35%, transparent) !important;
}
html.hs-web .viewbar button.view.on,
html.hs-web .viewbar button.view.on:last-child {
  color: #fff !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 22%, transparent), color-mix(in srgb, var(--fg) 10%, #0c1014)) !important;
  border-color: color-mix(in srgb, var(--fg) 55%, transparent) !important;
}
html.hs-web .viewbar button.view.on::before { background: var(--fg-bright, #60a5fa); }
html.hs-web.hs-theme-light .viewbar button.view,
html.hs-web.hs-theme-light .viewbar button.view:last-child {
  color: var(--muted) !important;
  font-weight: 650 !important;
  background: linear-gradient(180deg, #ffffff, #f4f6f8) !important;
  border-color: var(--line) !important;
}
html.hs-web.hs-theme-light .viewbar button.view.on,
html.hs-web.hs-theme-light .viewbar button.view.on:last-child {
  color: #0b1016 !important;
  background: color-mix(in srgb, var(--fg) 14%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--fg) 60%, transparent) !important;
  box-shadow: none !important;
}
html.hs-web.hs-theme-light .viewbar button.view.on::before { background: var(--fg-deep, #2563eb); }

/* ============================================================
   Aircraft / Week / Month viewbar — Option 2 nav-tile style (2026-10-13 pre-viewtiles).
   48px icon square (bright blue selected / slate unselected), white solid glyph,
   label + grey helper; phone: icon above label, helper hidden. Overrides Option 3.
   ============================================================ */
html.hs-web body .viewbar { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:14px !important; }
html.hs-web body .viewbar button.view[data-view], html.hs-web body .viewbar button.view[data-view].on, html.hs-web body .viewbar button.view[data-view]:last-child, html.hs-web body .viewbar button.view[data-view].on:last-child {
  display:grid !important; grid-template-columns:48px minmax(0,1fr) !important; grid-template-rows:auto auto !important;
  column-gap:14px !important; row-gap:2px !important; align-content:center !important; align-items:center !important;
  justify-items:start !important; justify-content:stretch !important; text-align:left !important;
  min-height:76px !important; padding:12px 16px !important; border-radius:18px !important;
  border:1px solid var(--line, #253041) !important; background:var(--card, #121922) !important;
  color:var(--text, #e6edf3) !important; font-size:17px !important; font-weight:650 !important;
  letter-spacing:-0.02em !important; line-height:1.2 !important; box-shadow:none !important; flex:none !important; min-width:0 !important;
}
html.hs-web body .viewbar button.view[data-view]::before {
  content:"" !important; grid-column:1 !important; grid-row:1 / span 2 !important; width:48px !important; height:48px !important;
  border-radius:14px !important; -webkit-mask:none !important; mask:none !important;
  background:var(--hs-vb-glyph) center / 26px 26px no-repeat, linear-gradient(180deg, #3b4a5e 0%, #263241 100%) !important;
}
html.hs-web body .viewbar button.view[data-view].on::before { background:var(--hs-vb-glyph) center / 26px 26px no-repeat, linear-gradient(180deg, var(--fg-top,#68a1f8) 0%, var(--fg-deep,#2563eb) 100%) !important; }
html.hs-web body .viewbar button.view[data-view]::after {
  grid-column:2 !important; grid-row:2 !important; font-size:12px !important; font-weight:500 !important;
  letter-spacing:0 !important; color:var(--muted, #8a97a6) !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}
html.hs-web body .viewbar button.view[data-view]:hover { border-color:color-mix(in srgb, var(--fg, #3b82f6) 35%, transparent) !important; }
html.hs-web body .viewbar button.view[data-view].on, html.hs-web body .viewbar button.view[data-view].on:last-child {
  color:#fff !important; border-color:rgba(96,165,250,.85) !important;
  box-shadow:inset 0 0 18px color-mix(in srgb,var(--fg,#3b82f6) 22%,transparent), 0 0 0 1px color-mix(in srgb,var(--fg,#3b82f6) 25%,transparent) !important;
}
html.hs-web.hs-theme-light body .viewbar button.view[data-view], html.hs-web.hs-theme-light body .viewbar button.view[data-view]:last-child { background:#fff !important; color:#0b1016 !important; border-color:var(--line) !important; }
html.hs-web.hs-theme-light body .viewbar button.view[data-view].on { background:color-mix(in srgb, var(--fg) 8%, #fff) !important; border-color:color-mix(in srgb, var(--fg) 60%, transparent) !important; }
html.hs-web body .viewbar button.view[data-view="day"] { --hs-vb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M21 15.2v-1.8l-7.6-4.7V3.6c0-.8-.6-1.5-1.4-1.5s-1.4.7-1.4 1.5v5.1L3 13.4v1.8l7.6-2.4v5l-2.1 1.5v1.4L12 19.8l3.5 1v-1.4l-2.1-1.5v-5z'/%3E%3C/svg%3E"); }
html.hs-web body .viewbar button.view[data-view="day"]::after { content:"Today\2019s Board" !important; }
html.hs-web body .viewbar button.view[data-view="week"] { --hs-vb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-rule='evenodd' d='M7 2.4h1.8v2H15.2v-2H17v2h1.4A2.6 2.6 0 0 1 21 7v10.8a2.6 2.6 0 0 1-2.6 2.6H5.6A2.6 2.6 0 0 1 3 17.8V7a2.6 2.6 0 0 1 2.6-2.6H7zM4.6 9.4h14.8v1.4H4.6zM5.20 12.6h1.5v4.6h-1.5zM7.25 12.6h1.5v4.6h-1.5zM9.30 12.6h1.5v4.6h-1.5zM11.35 12.6h1.5v4.6h-1.5zM13.40 12.6h1.5v4.6h-1.5zM15.45 12.6h1.5v4.6h-1.5zM17.50 12.6h1.5v4.6h-1.5z'/%3E%3C/svg%3E"); }
html.hs-web body .viewbar button.view[data-view="week"]::after { content:"7-Day Schedule" !important; }
html.hs-web body .viewbar button.view[data-view="month"] { --hs-vb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-rule='evenodd' d='M7 2.4h1.8v2H15.2v-2H17v2h1.4A2.6 2.6 0 0 1 21 7v10.8a2.6 2.6 0 0 1-2.6 2.6H5.6A2.6 2.6 0 0 1 3 17.8V7a2.6 2.6 0 0 1 2.6-2.6H7zM4.6 9.4h14.8v1.4H4.6zM5.6 12.2h2.2v1.9h-2.2zM9.0 12.2h2.2v1.9h-2.2zM12.4 12.2h2.2v1.9h-2.2zM15.8 12.2h2.2v1.9h-2.2zM5.6 15.1h2.2v1.9h-2.2zM9.0 15.1h2.2v1.9h-2.2zM12.4 15.1h2.2v1.9h-2.2zM15.8 15.1h2.2v1.9h-2.2zM5.6 18.0h2.2v1.9h-2.2zM9.0 18.0h2.2v1.9h-2.2zM12.4 18.0h2.2v1.9h-2.2zM15.8 18.0h2.2v1.9h-2.2z'/%3E%3C/svg%3E"); }
html.hs-web body .viewbar button.view[data-view="month"]::after { content:"Calendar View" !important; }
@media (max-width: 600px) {
  html.hs-web body .viewbar { gap:10px !important; }
  html.hs-web body .viewbar button.view[data-view], html.hs-web body .viewbar button.view[data-view].on, html.hs-web body .viewbar button.view[data-view]:last-child, html.hs-web body .viewbar button.view[data-view].on:last-child {
    grid-template-columns:minmax(0,1fr) !important; grid-template-rows:auto auto !important; justify-items:center !important;
    text-align:center !important; row-gap:6px !important; min-height:88px !important; padding:10px 6px !important; font-size:15px !important;
  }
  html.hs-web body .viewbar button.view[data-view]::before { grid-column:1 !important; grid-row:1 !important; width:40px !important; height:40px !important; border-radius:12px !important; background-size:22px 22px, auto !important; }
  html.hs-web body .viewbar button.view[data-view].on::before { background-size:22px 22px, auto !important; }
  html.hs-web body .viewbar button.view[data-view]::after { display:none !important; content:none !important; }
}

/* ============================================================
   Light theme fixes (2026-10-18, pre-lighttheme) — light theme ONLY (html.hs-theme-light), web + phone/app shell.
   Uses the existing light tokens (--card, --hs-surface, --hs-input-bg, --line, --muted, --text, --fg, --fg-deep).
   Pages that hardcoded dark surfaces / light-on-dark text get the light equivalents. Dark theme is untouched.
   ============================================================ */

/* Accent TEXT shade (brand.js sets a pale #8fb8ff for dark backgrounds): darken for light surfaces. */
html.hs-theme-light {
  --fg-text: color-mix(in srgb, var(--fg-deep, #2563eb) 82%, #0b1016) !important;
}

/* App/phone shell: the anti-FOUC hold rule left the page canvas dark in light theme. */
html.hs-app.hs-theme-light,
html.hs-app.hs-theme-light body {
  background: var(--bg, #f4f6f8);
}

/* Sidebar profile block: role + caret used a dark-theme grey (2.4:1) */
html.hs-theme-light #hsUserRole,
html.hs-theme-light .hs-user-caret { color: var(--muted, #5b6b78); }

/* ---- Admin / Brand / Settings (.av2-*) : Back + buttons + pills + chips + cards + drawer ---- */
html.hs-theme-light main button.av2-btn,
html.hs-theme-light .av2-drawer button.av2-btn,
html.hs-theme-light .av2-tr button.av2-back,
html.hs-theme-light button.av2-back {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
html.hs-theme-light main button.av2-btn.p,
html.hs-theme-light .av2-drawer button.av2-btn.p {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--fg-ink, #0b1016);
}
html.hs-theme-light main button.av2-btn.d,
html.hs-theme-light .av2-drawer button.av2-btn.d {
  background: transparent;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.45);
}
html.hs-theme-light .av2-pill,
html.hs-theme-light .av2-chip {
  background: var(--hs-surface, #eef2f5);
  color: var(--muted, #5b6b78);
  border-color: var(--line);
}
html.hs-theme-light .av2-pill.b,
html.hs-theme-light .av2-chip.on {
  background: color-mix(in srgb, var(--fg) 12%, #fff);
  border-color: color-mix(in srgb, var(--fg) 55%, transparent);
  color: var(--fg-text);
}
html.hs-theme-light .av2-card { background: var(--card, #fff); }
html.hs-theme-light .av2-drawer { background: var(--card, #fff); box-shadow: -18px 0 40px rgba(21, 32, 43, 0.18); }
html.hs-theme-light .av2-drawer input[type=text],
html.hs-theme-light .av2-drawer input[type=email],
html.hs-theme-light .av2-drawer input[type=tel],
html.hs-theme-light .av2-drawer input[type=password],
html.hs-theme-light .av2-drawer select { background: var(--hs-input-bg, #fff); color: var(--text); }

/* ---- Contacts (vendors / crew / facility cards): action buttons, avatar chips, icon buttons, dialogs ---- */
html.hs-theme-light .tl-av { background: var(--hs-surface, #eef2f5); color: var(--text); }
html.hs-theme-light .tl-a > * { background: var(--card, #fff); color: var(--text); border-color: var(--line); }
html.hs-theme-light .tl-a > .p { background: var(--fg); border-color: var(--fg); color: var(--fg-ink, #0b1016); }
html.hs-theme-light .ib,
html.hs-theme-light .cc-o,
html.hs-theme-light .step,
html.hs-theme-light .pc { background: var(--card, #fff); }
html.hs-theme-light .pc.dup { background: rgba(251, 191, 36, 0.1); }
html.hs-theme-light input.in,
html.hs-theme-light select.in,
html.hs-theme-light textarea.in { background: var(--hs-input-bg, #fff); color: var(--text); }

/* ---- FBO Support / Lav / Fuel request ---- */
html.hs-theme-light .fx-t,
html.hs-theme-light .fx-name { color: var(--text); }
html.hs-theme-light .fx-row,
html.hs-theme-light .fx-req { background: var(--hs-surface, #eef2f5); border-color: var(--line); }
html.hs-theme-light .fx-row b,
html.hs-theme-light .fx-req b,
html.hs-theme-light .fx-dlg dd { color: var(--text); }
html.hs-theme-light .fx-badge {
  background: color-mix(in srgb, var(--fg) 12%, #fff);
  border-color: color-mix(in srgb, var(--fg) 55%, transparent);
  color: var(--fg-text);
}
html.hs-theme-light .fx-tile input,
html.hs-theme-light .fx-tile select,
html.hs-theme-light .fx-tile textarea { background: var(--hs-input-bg, #fff); color: var(--text); }
html.hs-theme-light .fx-btn.alt { background: var(--card, #fff); color: var(--text); border-color: var(--line); }
/* Yes / No segmented choice: same light control look as the other light toggles (unselected = white, selected = accent tint + accent edge) */
html.hs-theme-light .fx-seg { background: var(--hs-input-bg, #fff); border-color: var(--line); }
html.hs-theme-light .fx-seg span { color: var(--muted, #5b6b78); }
html.hs-theme-light .fx-seg span.on {
  background: color-mix(in srgb, var(--fg) 14%, #fff);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg-deep, #2563eb) 70%, transparent);
}
html.hs-theme-light .fx-msg.err { color: #b91c1c; }
html.hs-theme-light .fx-msg.ok { color: #15803d; }
html.hs-theme-light .fx-note { color: #92400e; }
html.hs-theme-light .fx-st { color: #92400e; }
html.hs-theme-light .fx-st.sent { color: var(--fg-text); }
html.hs-theme-light .fx-st.confirmed { color: #15803d; }
html.hs-theme-light .fx-st.failed { color: #b91c1c; }
html.hs-theme-light .fx-cf { color: var(--text); background: var(--card, #fff); border-color: var(--line); }

/* ---- Report Facility Issue (issues): status tabs, detail text, delete button, status chips ---- */
html.hs-theme-light .iv-tab { color: var(--muted, #5b6b78); }
html.hs-theme-light .iv-tab.on { color: var(--fg-ink, #0b1016); }
html.hs-theme-light .iv-tn { background: rgba(21, 32, 43, 0.08); }
html.hs-theme-light .iv-tab.on .iv-tn { background: rgba(255, 255, 255, 0.28); }
html.hs-theme-light .iv-row:hover { background: rgba(21, 32, 43, 0.04); }
html.hs-theme-light .iv-m b,
html.hs-theme-light .iv-desc { color: var(--text); }
html.hs-theme-light .iv-del { color: #b91c1c; border-color: rgba(185, 28, 28, 0.5); }
html.hs-theme-light .iv-msg.err { color: #b91c1c; }
html.hs-theme-light .iv-msg.ok { color: #15803d; }
html.hs-theme-light .iv-chip[style*="#3b82f6"] { color: var(--fg-text) !important; }
html.hs-theme-light .iv-chip[style*="#f59e0b"] { color: #b45309 !important; }
html.hs-theme-light .iv-chip[style*="#22c55e"] { color: #15803d !important; }
html.hs-theme-light .iv-chip[style*="#8ea0ad"] { color: #5b6b78 !important; }
html.hs-theme-light svg.iv-ic[stroke="#f59e0b"] { stroke: #b45309; }
html.hs-theme-light svg.iv-ic[stroke="#22c55e"] { stroke: #15803d; }
html.hs-theme-light svg.iv-ic[stroke="#8ea0ad"] { stroke: #5b6b78; }
html.hs-theme-light svg.iv-ic[stroke="#3b82f6"] { stroke: var(--fg-text); }

/* ---- Bay Layout: aircraft toolbox panel ---- */
html.hs-theme-light .scale-bar,
html.hs-theme-light .craft { background: var(--hs-surface, #eef2f5); }
html.hs-theme-light .scale-bar .val { color: var(--fg-text); }

/* ---- Potable Water tracker: dark hardcoded controls ---- */
html.hs-theme-light:is(.hs-web, .hs-app) .wt-btn { background: var(--card, #fff); color: var(--text); border-color: var(--line); }
html.hs-theme-light:is(.hs-web, .hs-app) .wt-btn.danger { color: #b91c1c; border-color: rgba(185, 28, 28, 0.45); }
html.hs-theme-light:is(.hs-web, .hs-app) .wt-btn.xl { color: #15803d; border-color: rgba(21, 128, 61, 0.5); background: rgba(34, 197, 94, 0.12); }
html.hs-theme-light:is(.hs-web, .hs-app) .wt-side .cap { color: var(--muted, #5b6b78); }
html.hs-theme-light:is(.hs-web, .hs-app) .wt-fix { background: var(--card, #fff); border-color: var(--btn-line, #7d8b98); color: var(--text); }
html.hs-theme-light:is(.hs-web, .hs-app) .wt-fix:hover:not(:disabled) { background: var(--hs-surface, #eef2f5); border-color: var(--text); }
html.hs-theme-light:is(.hs-web, .hs-app) .wt-seg,
html.hs-theme-light:is(.hs-web, .hs-app) .wt-per { background: var(--hs-input-bg, #fff); }
html.hs-theme-light:is(.hs-web, .hs-app) .wt-pend.fix,
html.hs-theme-light:is(.hs-web, .hs-app) .wt-delta.down,
html.hs-theme-light:is(.hs-web, .hs-app) #wtNote.err { color: #b91c1c; }

/* ---- Contacts: danger / warning text, Access command-log links, This Device status pills ---- */
html.hs-theme-light .ct-btn.danger,
html.hs-theme-light .ct-err { color: #b91c1c; }
html.hs-theme-light .ct-btn.danger { border-color: rgba(185, 28, 28, 0.45); }
html.hs-theme-light .dupw,
html.hs-theme-light .dupw button,
html.hs-theme-light .tag { color: #92400e; }
html.hs-theme-light .cmd-table .act-cell.unlock { color: var(--fg-text); }
html.hs-theme-light .td { --td-g: #15803d; --td-r: #b91c1c; --td-o: #b45309; }

/* ---- Status pills (Open / OK): dark-theme pastel text on light tints ---- */
html.hs-theme-light .hs-status-pill.warn { color: #92400e; }
html.hs-theme-light .hs-status-pill.ok { color: var(--fg-text); }

/* ---- Phone / installed app: light-theme parity with the web light rules ---- */
html.hs-app.hs-theme-light .hs-shell-bottom-nav a.is-active { color: var(--fg-deep, #2563eb); }
html.hs-app.hs-theme-light #hsUserName { color: var(--text); }
html.hs-app.hs-theme-light body .hs-page-head .eyebrow { color: var(--muted); }
html.hs-app.hs-theme-light #cardOps .hs-ops-metric .hs-ops-n,
html.hs-app.hs-theme-light #cardOps .hs-ops-metric .hs-ops-lbl { animation-name: hs-ops-status-pulse-light; }
html.hs-app.hs-theme-light .acv-views {
  background: #e8eef6; border-color: #c9d4e3; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html.hs-app.hs-theme-light .acv-views .acv-view.on { background: var(--fg, #3b82f6); color: var(--fg-ink, #fff); }
html.hs-app.hs-theme-light body.hs-activity-page .act-views {
  background: #e8eef6 !important; border-color: #c9d4e3 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
html.hs-app.hs-theme-light body.hs-activity-page .act-views .act-view.on { background: var(--fg, #3b82f6) !important; color: var(--fg-ink, #fff) !important; }
html.hs-app.hs-theme-light #tallies .total-tile,
html.hs-app.hs-theme-light #history .item { background: var(--card, #fff); }
html.hs-app.hs-theme-light #tallies .total-tile.on { background: color-mix(in srgb, var(--dept, var(--fg)) 10%, #fff); }

/* ---- Accent / status text that was a dark-theme pastel on white cards (2.5–3.7:1 -> accent text shade) ---- */
html.hs-theme-light #cardAircraft .hs-card-link,
html.hs-theme-light #cardUpcoming .hs-card-link,
html.hs-theme-light #cardActivity .hs-card-link,
html.hs-theme-light #hangarIssuesLink { color: var(--fg-text); }
html.hs-theme-light .adsb-tag,
html.hs-theme-light .trk-tag,
html.hs-theme-light .hs-trk-tag,
html.hs-theme-light .hs-up-route,
html.hs-theme-light .track > a,
html.hs-theme-light .ns-foot a { color: var(--fg-text); }
html.hs-theme-light #opsDayNowCap { color: #b45309; }
html.hs-theme-light .status .status-label,
html.hs-theme-light #feedStatusLabel { color: #15803d; }
html.hs-theme-light .item .delta.up { color: #15803d; }
html.hs-theme-light .item .delta.down { color: #b91c1c; }
html.hs-theme-light .hs-page-head .eyebrow { color: var(--muted, #5b6b78) !important; }

/* ---- v6: same accent/status text fixes, with enough specificity to beat page-local #id rules and app-skin ties ---- */
html.hs-theme-light body #cardCameras .hs-card-link,
html.hs-theme-light body #cardAccess .hs-card-link { color: var(--fg-text); }
html.hs-theme-light body #upcomingList li.hs-up-item .hs-up-route,
html.hs-theme-light body #upcomingList li.hs-up-item .hs-trk-tag { color: var(--fg-text); }
html.hs-theme-light body #cardOps .ops-day-now-cap#opsDayNowCap { color: #b45309; }
html.hs-theme-light body #cardOps .ops-day-scale span { color: var(--muted, #5b6b78); }
html.hs-theme-light body .hs-status-pill.warn { color: #92400e; }
html.hs-theme-light body .hs-status-pill.ok { color: var(--fg-text); }
html.hs-theme-light body #subGrid .btn:not(.solid):not(.ghost):not(.danger-ghost):not(:disabled) { color: var(--fg-text); }
html.hs-theme-light body .iv-tab .iv-tn { color: color-mix(in srgb, var(--muted, #5b6b78) 75%, #000); }
html.hs-theme-light body .hs-user-caret { color: var(--muted, #5b6b78); }
@keyframes hs-ops-status-pulse-light { 0%, 100% { color: #15202b; } 50% { color: var(--fg-text, #1d4ed8); } }

/* ---- Light theme main header (2026-10-18, pre-lightheader): "Option 3 Reversed" — white on the left fading to an accent-blue tint on the right.
   Light theme only. Real light logo/wordmark unchanged. Ink icons, dot ring matches header, amber weather sun. ---- */
html.hs-theme-light body #hs-site-nav.hs-shell-topbar {
  background: linear-gradient(105deg, #ffffff 22%, color-mix(in srgb, var(--fg) 18%, #ffffff) 100%) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 2px 12px rgba(21, 32, 43, .08) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.hs-theme-light #hs-site-nav #hsBurger,
html.hs-theme-light #hs-site-nav .hs-icon-tool {
  background: var(--hs-surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
html.hs-theme-light #hs-site-nav #hsBurger svg,
html.hs-theme-light #hs-site-nav .hs-icon-tool svg { color: var(--text) !important; }
html.hs-theme-light #hs-site-nav .hs-notify-dot { box-shadow: 0 0 0 2px #ffffff !important; }
html.hs-theme-light #hs-site-nav #hsWeather svg .wx-a { fill: #b45309 !important; }
html.hs-theme-light #hs-site-nav #hsWeather svg .wx-b,
html.hs-theme-light #hs-site-nav #hsWeather svg .wx-b path { stroke: #b45309 !important; }

/* ---- Light theme: small icons on Contact FBO (FBO Support) and Contacts cards -> themed accent (2026-10-18, pre-fbosmallicons) ---- */
html.hs-theme-light .fx-mi { background: linear-gradient(180deg, var(--fg-top, #68a1f8), var(--fg-deep, #2563eb)); }
html.hs-theme-light .tl-dt .k { color: var(--fg-text); }
html.hs-theme-light .tl-a > :not(.p) svg { color: var(--fg-text); }
html.hs-theme-light #acts .ct-btn:not(.pri) .bi svg { color: var(--fg-text); }

/* ---- Dark theme: small icons on Contact FBO (FBO Support) and Contacts cards -> themed accent, matching light (2026-10-18, pre-darkfboicons) ---- */
html.hs-theme-dark .fx-mi { background: linear-gradient(180deg, var(--fg-top, #68a1f8), var(--fg-deep, #2563eb)); }
html.hs-theme-dark .tl-dt .k { color: var(--fg-text, #93c5fd); }
html.hs-theme-dark .tl-a > :not(.p) svg { color: var(--fg-text, #93c5fd); }
html.hs-theme-dark #acts .ct-btn:not(.pri) .bi svg { color: var(--fg-text, #93c5fd); }

/* ===== hs-log v1 (2026-10-19): ONE shared log-table style — Command Log + Activity (Access / Aircraft). Option 3 Blue Band + bubbles ===== */
/* hs-log v1 base — shared by Command Log + Activity logs (layout only; look lives in the option block) */
.cmd-log.hs-log-host { margin-top:22px !important; background:none !important; border:0 !important; padding:0 !important; box-shadow:none !important; border-radius:0 !important; }
.cmd-log.hs-log-host > h2 { display:none !important; }
.hs-log { --lr:16px; --log-tw-sm:96px; position:relative; border-radius:var(--lr) !important; overflow:clip; color:var(--text); font-family:inherit; isolation:isolate; }
.hs-log svg { display:block; width:100%; height:100%; }
/* web-skin styles every <section> as a bordered 14px card (root cause of the missing corners) — never inside a log */
.hs-log .hs-log-day { border:0 !important; background:none !important; border-radius:0 !important; box-shadow:none !important; margin:0 !important; padding:0 !important; }
.hs-log-title { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 18px 12px; }
.hs-log-title h2 { margin:0; font-size:17px; font-weight:700; letter-spacing:-.015em; line-height:1.2; color:var(--text); text-transform:none; }
.hs-log-tmeta { font-size:12.5px; font-weight:650; color:var(--muted); }
.hs-log-scroll.is-capped { max-height:min(62vh, 540px); overflow:auto; overscroll-behavior:contain; }
.hs-log-head, .hs-log-row { display:grid; grid-template-columns:var(--log-cols); column-gap:16px; align-items:center; padding:0 18px; }
.hs-log-h, .hs-log-c { grid-column:var(--c); grid-row:1; }
.hs-log-l2 { display:contents; }
.hs-log-head { position:sticky; top:0; z-index:3; min-height:44px; }
.hs-log-h { display:flex; align-items:center; gap:7px; min-width:0; font-size:13px; font-weight:700; letter-spacing:.005em; line-height:1.2; white-space:nowrap; text-transform:none; }
.hs-log-hi { display:none; flex:0 0 auto; width:15px; height:15px; align-items:center; justify-content:center; }
.hs-log-ht { overflow:hidden; text-overflow:ellipsis; }
.hs-log-h.r-time { justify-content:flex-end; text-align:right; }
.hs-log-row { min-height:48px; padding-top:8px; padding-bottom:8px; }
.hs-log-c { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:550; line-height:1.35; color:var(--text); }
.hs-log-c.r-pri { font-weight:700; }
.hs-log-c.r-extra { color:var(--muted); font-weight:600; }
.hs-log-c.r-time { text-align:right; color:var(--muted); font-size:13px; font-weight:650; font-variant-numeric:tabular-nums; }
.hs-log .t-sm { display:none; }
.hs-log-dayhead { display:flex; align-items:center; gap:9px; padding:0 18px; min-height:40px; }
.hs-log-dayicon { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; flex:0 0 auto; }
.hs-log-dayname { font-size:14px; font-weight:700; letter-spacing:-.005em; text-transform:none; }
.hs-log-count { margin-left:auto; display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:22px; padding:0 9px; border-radius:999px; font-size:12px; font-weight:750; font-variant-numeric:tabular-nums; line-height:1; }
.hs-log-chip { display:inline-flex; align-items:center; justify-content:center; gap:6px; max-width:100%; height:26px; padding:0 11px 0 9px; border-radius:999px; font-size:12.5px; font-weight:700; line-height:1; vertical-align:middle; letter-spacing:.005em; text-transform:none; }
.hs-log-ci { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; flex:0 0 auto; }
.hs-log-cl { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hs-log-empty { padding:20px 18px 22px; color:var(--muted); font-size:14px; font-weight:550; }
/* chip tones */
.hs-log .t-blue  { --tc:#93c5fd; --tb:rgba(59,130,246,.18); --tl:rgba(59,130,246,.38); }
.hs-log .t-sky   { --tc:#7dd3fc; --tb:rgba(56,189,248,.14); --tl:rgba(56,189,248,.32); }
.hs-log .t-grey  { --tc:#c3ced8; --tb:rgba(148,163,184,.14); --tl:rgba(148,163,184,.30); }
.hs-log .t-amber { --tc:#fcd34d; --tb:rgba(245,158,11,.16); --tl:rgba(245,158,11,.36); }
.hs-log .t-green { --tc:#86efac; --tb:rgba(34,197,94,.15); --tl:rgba(34,197,94,.34); }
.hs-log .t-red   { --tc:#fca5a5; --tb:rgba(239,68,68,.16); --tl:rgba(239,68,68,.38); }
html.hs-theme-light .hs-log .t-blue  { --tc:#1d4ed8; --tb:#e3edff; --tl:#bcd2fb; }
html.hs-theme-light .hs-log .t-sky   { --tc:#0369a1; --tb:#e2f3fc; --tl:#b5def4; }
html.hs-theme-light .hs-log .t-grey  { --tc:#3f4f5e; --tb:#edf1f5; --tl:#d3dbe3; }
html.hs-theme-light .hs-log .t-amber { --tc:#92400e; --tb:#fdf1d8; --tl:#f3d593; }
html.hs-theme-light .hs-log .t-green { --tc:#166534; --tb:#e2f6e8; --tl:#b6e3c3; }
html.hs-theme-light .hs-log .t-red   { --tc:#b91c1c; --tb:#fde6e6; --tl:#f5c0c0; }
.hs-log-chip { color:var(--tc); background:var(--tb); box-shadow:inset 0 0 0 1px var(--tl); }
/* phone / installed app: two-line rows, nothing squished (line 1 = who · what · when, line 2 = where · detail) */
@media (max-width:600px) {
  .hs-log { --lr:16px; }
  .hs-log-title { padding:13px 14px 11px; }
  .hs-log-head, .hs-log-row {
    grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) var(--log-tw-sm);
    grid-template-areas:"pri ev time" "l2 l2 l2";
    column-gap:10px; row-gap:5px; padding:0 14px;
  }
  .hs-log-h, .hs-log-c { grid-column:auto; grid-row:auto; }
  .hs-log .r-pri { grid-area:pri; } .hs-log .r-ev { grid-area:ev; } .hs-log .r-time { grid-area:time; }
  .hs-log-l2 { grid-area:l2; display:flex; align-items:center; gap:12px; min-width:0; }
  .hs-log-l2 > .r-loc { flex:1 1 0; min-width:0; }
  .hs-log-l2 > .r-extra { flex:0 1 auto; min-width:0; max-width:52%; text-align:right; justify-content:flex-end; }
  .hs-log-head { padding-top:9px; padding-bottom:9px; }
  .hs-log-head .r-loc, .hs-log-head .r-extra { font-size:12px; font-weight:650; }
  .hs-log-row { padding-top:11px; padding-bottom:11px; }
  .hs-log-c { font-size:14.5px; }
  .hs-log-c.r-loc, .hs-log-c.r-extra { font-size:13.5px; font-weight:550; color:var(--muted); }
  .hs-log-c.r-time { font-size:13.5px; }
  .hs-log .t-lg { display:none; } .hs-log .t-sm { display:inline; }
  .hs-log-dayhead { padding:0 14px; }
}
.hs-log-command { --log-tw-sm:78px; }
.hs-log-flight, .hs-log-access { --log-tw-sm:58px; }
/* full names / long details wrap (max 2 lines) instead of being cut with an ellipsis */
.hs-log-c:not(.r-time):not(.r-ev) { white-space:normal; text-overflow:clip; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; }
.hs-log-c.r-time, .hs-log-c.r-ev { white-space:nowrap; }
/* hs-log OPTION 3 — "Blue Band": rounded card with a solid app-blue header band (white Title Case + inline SVG column icons), zebra rows, icon-and-text status */
.hs-log { background:var(--card); border:1px solid var(--line); }
.hs-log-head { background:linear-gradient(180deg,#2f6fe4,#1f56c9); color:#fff; min-height:46px; }
.hs-log-hi { display:inline-flex; color:rgba(255,255,255,.82); }
.hs-log-h { font-size:13.5px; }
.hs-log-dayhead { background:#111a24; border-bottom:1px solid #22303b; }
.hs-log-day + .hs-log-day .hs-log-dayhead { border-top:1px solid #22303b; }
.hs-log-dayicon { color:#60a5fa; }
.hs-log-dayname { color:#eef3f8; }
.hs-log-count { color:#93c5fd; background:transparent; box-shadow:inset 0 0 0 1.5px rgba(96,165,250,.6); }
.hs-log-row:nth-child(even) { background:rgba(255,255,255,.028); }
.hs-log-row:hover { background:rgba(59,130,246,.08); }
/* Jason's pick (Oct 19): status + phases as bubbles — tinted fill, thin same-hue border, inline SVG icon, Title Case */
.hs-log-chip { height:28px; padding:0 12px 0 10px; gap:7px; font-size:13px; font-weight:700; border:1px solid var(--tl); box-shadow:none; box-sizing:border-box; }
.hs-log-ci { width:15px; height:15px; }
.hs-log-chip { height:auto; min-height:28px; padding:4px 12px 4px 10px; }
.hs-log-chip.is-long .hs-log-cl { white-space:normal; line-height:1.15; text-align:left; } /* a rare long label (e.g. FBO request) wraps inside the bubble instead of being cut */
@media (max-width:600px) {
  .hs-log-chip { min-height:26px; padding:4px 10px 4px 8px; gap:6px; font-size:12px; }
  .hs-log-ci { width:14px; height:14px; }
  .hs-log-command .hs-log-head, .hs-log-command .hs-log-row { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) var(--log-tw-sm); }
  .hs-log-flight .hs-log-head, .hs-log-flight .hs-log-row { grid-template-columns:minmax(0,1fr) minmax(0,1.06fr) var(--log-tw-sm); }
}
html.hs-theme-light .hs-log { background:#fff; border-color:#cfd8e2; box-shadow:0 1px 2px rgba(15,23,42,.05); }
html.hs-theme-light .hs-log-dayhead { background:#f3f6fa; border-bottom-color:#e2e8ef; }
html.hs-theme-light .hs-log-day + .hs-log-day .hs-log-dayhead { border-top-color:#e2e8ef; }
html.hs-theme-light .hs-log-dayicon { color:#2563eb; }
html.hs-theme-light .hs-log-dayname { color:#15202b; }
html.hs-theme-light .hs-log-count { color:#1d4ed8; box-shadow:inset 0 0 0 1.5px #93b4f2; }
html.hs-theme-light .hs-log-row:nth-child(even) { background:#f6f8fb; }
html.hs-theme-light .hs-log-row:hover { background:#eef4fd; }
@media (max-width:600px) { .hs-log-h { font-size:13px; } .hs-log-head .r-loc, .hs-log-head .r-extra { font-size:12px; } .hs-log-head .r-loc .hs-log-hi, .hs-log-head .r-extra .hs-log-hi { width:13px; height:13px; } }
/* ===== /hs-log v1 ===== */


/* dashcambtns 2026-10-27: Dashboard Cameras header keeps select + Player/Playback chips aligned */
html.hs-web #cardCameras .hs-cam-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
html.hs-web #cardCameras .hs-cam-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
}
html.hs-web #cardCameras .hs-cam-select {
  margin-left: auto;
}

/* ---- Calendar nav Option C (calnavC): soft blue accent outline, SVG chevrons ---- */
html.hs-web #board .month .month-nav .cal-nav-pair {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
}
html.hs-web #board .month .month-nav .cal-nav-pair > button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1.5px solid color-mix(in srgb, var(--fg, #3b82f6) 42%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent) !important;
  color: var(--fg-bright, #60a5fa) !important;
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font-size: 0 !important;
  cursor: pointer;
}
html.hs-web #board .month .month-nav .cal-nav-pair > button:hover {
  border-color: color-mix(in srgb, var(--fg, #3b82f6) 70%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 16%, transparent) !important;
  color: #fff !important;
}
html.hs-web #board .month .month-nav .cal-nav-pair > button:active {
  background: color-mix(in srgb, var(--fg, #3b82f6) 22%, transparent) !important;
}
html.hs-web #board .month .month-nav .cal-nav-pair > button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--fg, #3b82f6) 55%, transparent) !important;
  outline-offset: 2px !important;
}
html.hs-web #board .month .month-nav .cal-chev-wrap {
  display: grid !important;
  place-items: center !important;
  width: 16px !important;
  height: 16px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  pointer-events: none !important;
}
html.hs-web #board .month .month-nav .cal-chev {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex: 0 0 16px !important;
  pointer-events: none !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter {
  margin-left: 8px !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn {
  width: auto !important;
  min-width: 132px !important;
  max-width: 168px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid color-mix(in srgb, var(--fg, #3b82f6) 42%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent) !important;
  color: var(--text, #f4f7f5) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn:hover {
  border-color: color-mix(in srgb, var(--fg, #3b82f6) 70%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 16%, transparent) !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn:active {
  background: color-mix(in srgb, var(--fg, #3b82f6) 22%, transparent) !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--fg, #3b82f6) 55%, transparent) !important;
  outline-offset: 2px !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn .filter-label {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 120px !important;
  line-height: 1 !important;
  flex: 0 1 auto !important;
  white-space: nowrap !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn .cal-chev-wrap {
  flex: 0 0 16px !important;
}
html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn[aria-expanded="true"] {
  border-color: var(--fg, #3b82f6) !important;
  color: var(--fg-text, #93c5fd) !important;
}
html.hs-web.hs-theme-light #board .month .month-nav .cal-nav-pair > button {
  border-color: color-mix(in srgb, var(--fg, #3b82f6) 48%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 10%, #fff) !important;
  color: var(--fg-deep, #2563eb) !important;
}
html.hs-web.hs-theme-light #board .month .month-nav .cal-ac-filter > button.filter-btn {
  border-color: color-mix(in srgb, var(--fg, #3b82f6) 48%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 10%, #fff) !important;
  color: var(--text, #15202b) !important;
}
/* Override older light-theme generic month-nav button fill for pair + filter */
html.hs-web.hs-theme-light #board .month-nav .cal-nav-pair > button,
html.hs-web.hs-theme-light #board .month-nav .cal-ac-filter > button.filter-btn {
  background: color-mix(in srgb, var(--fg, #3b82f6) 10%, #fff) !important;
  border-color: color-mix(in srgb, var(--fg, #3b82f6) 48%, transparent) !important;
}
@media (max-width: 600px) {
  html.hs-web #board .month .month-nav .cal-nav-pair { gap: 6px !important; }
  html.hs-web #board .month .month-nav .cal-ac-filter { margin-left: 6px !important; }
  html.hs-web #board .month .month-nav .cal-ac-filter > button.filter-btn {
    min-width: 0 !important;
    max-width: 42vw !important;
    padding: 0 10px !important;
  }
}

/* ssimport 2026-10-28 — Screenshot Trip Import */
html.hs-web #board .month .month-nav button.hs-import-btn,
html.hs-app #board .month .month-nav button.hs-import-btn,
#board .month .month-nav button.hs-import-btn {
  width: auto !important;
  min-width: 108px !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  margin-left: 8px !important;
  border-radius: 10px !important;
  border: 1.5px solid color-mix(in srgb, var(--fg, #3b82f6) 42%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent) !important;
  color: var(--text, #f4f7f5) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer;
  box-sizing: border-box !important;
}
#board .month .month-nav button.hs-import-btn .cal-chev-wrap {
  display: grid !important;
  place-items: center !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 0 !important;
}
#board .month .month-nav button.hs-import-btn svg { display: block; width: 16px; height: 16px; }
#board .month .month-nav button.hs-import-btn:hover {
  border-color: color-mix(in srgb, var(--fg, #3b82f6) 70%, transparent) !important;
  background: color-mix(in srgb, var(--fg, #3b82f6) 16%, transparent) !important;
}
#board .month .month-nav button.hs-import-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--fg, #3b82f6) 55%, transparent) !important;
  outline-offset: 2px !important;
}

.hs-import-overlay {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(5, 10, 18, 0.62);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.hs-import-modal {
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  background: #121a24;
  border: 1px solid color-mix(in srgb, var(--fg, #3b82f6) 28%, #2a3a4a);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  color: #f4f7f5;
  display: flex; flex-direction: column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.hs-import-modal.phone {
  width: 100%; max-width: 390px;
  max-height: calc(100vh - 12px);
  border-radius: 18px 18px 0 0;
  align-self: flex-end; margin: 0;
}
.hs-imp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(148,163,184,0.14);
}
.hs-imp-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.hs-imp-head .sub { margin: 4px 0 0; font-size: 12.5px; color: #94a3b8; font-weight: 500; }
.hs-imp-x {
  width: 36px; height: 36px; border-radius: 10px; padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--fg, #3b82f6) 42%, transparent);
  background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent);
  color: #93c5fd; display: grid; place-items: center; cursor: pointer;
}
.hs-imp-x svg { display: block; }
.hs-imp-body { padding: 18px 22px 8px; flex: 1; overflow: auto; }
.hs-imp-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(148,163,184,0.14);
}
.hs-sec-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #94a3b8; margin: 0 0 10px;
}
.hs-ac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.hs-ac-card {
  position: relative; border-radius: 12px;
  border: 1.5px solid rgba(148,163,184,0.22); background: #0f1720;
  padding: 14px 12px 12px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 8px; min-height: 78px; color: inherit;
}
.hs-ac-card.selected {
  border-color: color-mix(in srgb, var(--ac, #3b82f6) 85%, white);
  background: color-mix(in srgb, var(--ac, #3b82f6) 14%, #0f1720);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ac, #3b82f6) 35%, transparent);
}
.hs-ac-swatch { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35); }
.hs-ac-name { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.hs-ac-card .check {
  position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ac, #3b82f6); color: #0b1016; display: none; place-items: center;
}
.hs-ac-card.selected .check { display: grid; }
.hs-drop {
  border: 1.5px dashed color-mix(in srgb, var(--fg, #3b82f6) 45%, transparent);
  background: color-mix(in srgb, var(--fg, #3b82f6) 6%, #0f1720);
  border-radius: 14px; padding: 28px 20px; text-align: center; margin-bottom: 16px;
}
.hs-drop.over { border-color: var(--fg, #3b82f6); background: color-mix(in srgb, var(--fg, #3b82f6) 12%, #0f1720); }
.hs-drop .icon-wrap {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--fg, #3b82f6) 42%, transparent);
  background: color-mix(in srgb, var(--fg, #3b82f6) 10%, transparent);
  color: #60a5fa; display: grid; place-items: center;
}
.hs-drop .title { font-size: 14.5px; font-weight: 650; margin: 0 0 4px; }
.hs-drop .hint { font-size: 12.5px; color: #94a3b8; margin: 0 0 14px; }
.hs-btn-optc {
  height: 36px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--fg, #3b82f6) 42%, transparent);
  background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent);
  color: #f4f7f5; font-weight: 650; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.hs-btn-primary {
  height: 40px; padding: 0 18px; border-radius: 10px; border: none;
  background: linear-gradient(180deg, #4f8ff7, #3b82f6);
  color: #fff; font-weight: 700; font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(59,130,246,0.28);
}
.hs-btn-primary:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.hs-btn-ghost {
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid rgba(148,163,184,0.28);
  background: transparent; color: #cbd5e1; font-weight: 650; font-size: 13.5px; cursor: pointer;
}
.hs-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.hs-thumb {
  position: relative; width: 132px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(148,163,184,0.25); background: #0b121a;
}
.hs-thumb img { display: block; width: 100%; height: 84px; object-fit: cover; }
.hs-thumb .cap { padding: 6px 8px; font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-thumb .rm {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 8px;
  background: rgba(11,16,22,0.72); border: 1px solid rgba(148,163,184,0.3);
  color: #e2e8f0; display: grid; place-items: center; padding: 0; cursor: pointer;
}
.hs-scan-band {
  position: absolute; left: 22%; top: 0; bottom: 28px; width: 36%;
  background: linear-gradient(90deg, transparent, rgba(147,197,253,0.55), transparent);
  pointer-events: none; z-index: 2; box-shadow: 0 0 18px rgba(96,165,250,0.45);
}
.hs-thumb.scanning { box-shadow: inset 0 0 0 1px rgba(96,165,250,0.45); }
.hs-reading-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 6px; color: #93c5fd; font-weight: 650; font-size: 14px;
}
.hs-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(96,165,250,0.25); border-top-color: #60a5fa;
  animation: hsSpin 0.8s linear infinite;
}
@keyframes hsSpin { to { transform: rotate(360deg); } }
.hs-rev-ac {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ac, #00ff11) 12%, #0f1720);
  border: 1px solid color-mix(in srgb, var(--ac, #00ff11) 45%, transparent);
}
.hs-rev-ac .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--ac); }
.hs-rev-ac .nm { font-weight: 700; font-size: 14px; }
.hs-rev-ac .meta { margin-left: auto; font-size: 12px; color: #94a3b8; }
.hs-tz-note { font-size: 12px; color: #94a3b8; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.hs-tz-note svg { color: #60a5fa; flex: 0 0 14px; }
.hs-leg {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start;
  padding: 12px; border-radius: 12px; border: 1px solid rgba(148,163,184,0.18);
  background: #0f1720; margin-bottom: 10px;
}
.hs-leg input[type=checkbox] { width: 16px; height: 16px; margin-top: 3px; accent-color: #3b82f6; }
.hs-leg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.hs-leg-date { font-weight: 700; font-size: 13.5px; }
.hs-badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; }
.hs-badge.new { background: rgba(34,197,94,0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.hs-badge.changed { background: rgba(59,130,246,0.18); color: #93c5fd; border: 1px solid rgba(59,130,246,0.35); }
.hs-badge.already { background: rgba(148,163,184,0.14); color: #94a3b8; border: 1px solid rgba(148,163,184,0.28); }
.hs-leg-route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.hs-endpoint { display: flex; flex-direction: column; gap: 2px; min-width: 72px; }
.hs-endpoint .icao { font-size: 15px; font-weight: 750; letter-spacing: 0.04em; }
.hs-endpoint .hhmm { font-size: 13px; color: #cbd5e1; font-weight: 600; }
.hs-endpoint .hhmm.warn {
  color: #fbbf24; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.4);
  border-radius: 6px; padding: 1px 6px; display: inline-block;
}
.hs-arrow { color: #64748b; display: grid; place-items: center; }
.hs-warn-pill {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 650; color: #fbbf24;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.35);
  border-radius: 8px; padding: 4px 8px;
}
.hs-icon-btn {
  width: 32px; height: 32px; border-radius: 10px; padding: 0; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--fg, #3b82f6) 42%, transparent);
  background: color-mix(in srgb, var(--fg, #3b82f6) 8%, transparent);
  color: #93c5fd; display: grid; place-items: center;
}
.hs-imp-err { color: #f87171; font-size: 13px; font-weight: 650; margin: 10px 0 0; }
.hs-toast.ssimport {
  position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 99995;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
  background: #0f1a12; border: 1px solid rgba(34,197,94,0.45);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); color: #e7f9ec; font-weight: 650; font-size: 14px;
  white-space: nowrap;
}
.hs-toast.ssimport .ok {
  width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #0b1016;
  display: grid; place-items: center; flex: 0 0 22px;
}
.hs-trip-hl {
  outline: 2px solid rgba(0,255,17,0.9) !important;
  box-shadow: 0 0 0 4px rgba(0,255,17,0.22), 0 0 18px rgba(0,255,17,0.35) !important;
  border-radius: 6px !important;
}
@media (max-width: 520px) {
  .hs-import-overlay { padding: 0; align-items: flex-end; }
  .hs-ac-grid { grid-template-columns: 1fr; }
  .hs-leg { grid-template-columns: 24px 1fr 32px; }
  .hs-thumb { width: calc(50% - 5px); }
}


/* ssimportfix 2026-10-28 — aircraft empty / loading */
.hs-ac-empty, .hs-ac-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 18px 14px; border-radius: 12px;
  border: 1px dashed #3d5260; background: #0e141a; text-align: center;
}
.hs-ac-loading { flex-direction: row; color: #94a3b8; font-size: 13.5px; }
.hs-ac-hint { margin: 8px 0 0; font-size: 12.5px; color: #94a3b8; text-align: center; }
