/* Extracted verbatim from Haltitude-Aviation.html's GLOBAL_CSS (template interpolations
   resolved to their literal values from the T theme-tokens object) — see migration report. */
  * { box-sizing: border-box; }
  .ha-root { font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif; color: #1c2b3a; }
  .ha-card { transition: transform .25s ease, box-shadow .25s ease; }
  .ha-pilot-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -12px rgba(20,50,79,0.35); }
  .ha-fade { animation: haFade .5s ease; }
  @keyframes haFade { from { opacity:0; transform:translateY(6px);} to {opacity:1; transform:translateY(0);} }
  .ha-btn { transition: filter .15s ease, transform .1s ease; }
  .ha-btn:hover { filter: brightness(1.08); }
  .ha-btn:active { transform: scale(0.98); }
  .ha-input:focus { outline:none; border-color:#2c5a86 !important; box-shadow:0 0 0 3px rgba(44,90,134,0.18); }
  ::-webkit-scrollbar{width:10px;}
  ::-webkit-scrollbar-thumb{background:#d7e1ea;border-radius:8px;}
  .ha-cal-cell { transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out; position: relative; }
  .ha-cal-cell.hoverable:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 26px -10px rgba(20,50,79,0.35); border-color: #2c5a86 !important; z-index: 3; }
  .ha-cal-pulse { animation: haCalPulse 250ms ease-out; }
  @keyframes haCalPulse { 0% { transform: scale(1); } 40% { transform: scale(0.93); } 100% { transform: scale(1); } }
  .ha-cal-fadein { animation: haCalFadeIn 150ms ease-out; }
  @keyframes haCalFadeIn { from { opacity: 0; } to { opacity: 1; } }
  .ha-cal-tooltip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; background: #0c2338; color: #ffffff; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 5; }
  .ha-cal-tooltip-detail { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 8px; background: #0c2338; color: #ffffff; font-size: 11.5px; font-weight: 500; padding: 10px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; z-index: 6; box-shadow: 0 12px 24px -8px rgba(0,0,0,0.4); min-width: 200px; text-align: left; }
  @media print {
    .no-print { display: none !important; }
    .ha-receipt-print { box-shadow: none !important; }
    body { background: white !important; }
  }
  .ha-hero-video-wrap { max-width: 1789px; margin: 0 auto; overflow: hidden; }
  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  input[type="number"] { -moz-appearance: textfield; }
  .ha-editable { position: relative; outline: 1.5px dashed transparent; outline-offset: 3px; border-radius: 4px; transition: outline-color 120ms ease; }
  .ha-editable-active { outline-color: #2c5a86; cursor: text; }
  .ha-editable-active.ha-editable-blank { outline-color: #b3402f; min-height: 1em; min-width: 24px; display: inline-block; }
  .ha-editable-toolbar { position: absolute; top: -13px; right: -6px; display: flex; gap: 3px; opacity: 0; pointer-events: none; transition: opacity 120ms ease; z-index: 4; }
  /* Images sit inside overflow:hidden frames (the pilot-photo box, etc.) that would clip a toolbar
     hanging outside the box's own bounds — inset it instead of overhanging the top-right corner. */
  .ha-editable-toolbar-inset { top: 6px; right: 6px; }
  .ha-editable-active:hover .ha-editable-toolbar, .ha-editable-toolbar.ha-editable-toolbar-pinned { opacity: 1; pointer-events: auto; }
  .ha-editable-toolbar button { background: #14324f; color: #ffffff; border: 1.5px solid #ffffff; border-radius: 999px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.25); padding: 0; }
  .ha-editable-toolbar button:hover { filter: brightness(1.15); }
  /* Day-jumper (DayViewModal): the arrow "shakes" instead of disabling when there's nothing further
     in that direction, so a press always gets some visible response. */
  .ha-jump-shake { animation: haJumpShake 380ms ease-in-out; }
  @keyframes haJumpShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(1px); } }
  .ha-jump-ribbon { animation: haRibbonInOut 2.6s ease-in-out forwards; }
  @keyframes haRibbonInOut { 0% { opacity: 0; transform: translateY(-4px); } 10% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-4px); } }
  /* Mission Control tile labels with a pending count: gold + a gentle emphasized-to-dimmed pulse,
     4 cycles, then settles back on full (emphasized) opacity — see dev spec, Admin Access Nav &
     Dashboard Cleanup §6. Runs once per Dashboard mount, not continuously. */
  .ha-heartbeat { animation: haHeartbeat 1.2s ease-in-out 4; }
  @keyframes haHeartbeat { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
  .ha-mini-cal-cell { transition: background 120ms ease, transform 120ms ease; }
  .ha-mini-cal-cell.clickable:hover { background: #eaf1f8 !important; transform: scale(1.08); }
  /* Login page layouts (see Dev Spec, Sign-In Layout Toggle & Per-Page URL Routing, 2026-08-27 §1) —
     real breakpoints, which inline styles elsewhere in this app don't need, since these are the only
     layouts that have to collapse to a single column on narrow screens. Two layouts, switchable from
     Builder Tools (ctx.settings.loginLayoutStyle): "split" (default) and "overlay".

     Rebalanced Split — capped and centered at 1180px, matching the width the nav bar and every other
     page already use, so a wide monitor shows plain page background on the sides instead of the photo
     stretching indefinitely (the original uncapped 75/25 split this replaces). */
  .ha-login-split-outer { background: #f5f8fb; min-height: calc(100vh - 80px); display: flex; align-items: center; padding: 40px 24px; }
  .ha-login-split-body { max-width: 1180px; margin: 0 auto; width: 100%; }
  .ha-login-split { display: grid; grid-template-columns: 58% 42%; min-height: 640px; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 32px -16px rgba(20,50,79,0.25); }
  .ha-login-photo { position: relative; background-size: cover; background-position: center; }
  .ha-login-split-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,35,56,0.72) 0%, rgba(12,35,56,0.06) 45%, rgba(12,35,56,0) 65%); }
  .ha-login-split-tagline { position: absolute; left: 40px; bottom: 36px; max-width: 320px; }
  .ha-login-split-tagline h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
  .ha-login-split-tagline p { color: rgba(255,255,255,0.8); font-size: 12.5px; line-height: 1.5; margin: 0; }
  .ha-login-split-formwrap { background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 48px; }

  /* Full-Bleed Overlay — no cap by design; the photo is meant to fill the screen. */
  .ha-login-overlay { position: relative; min-height: calc(100vh - 80px); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: flex-end; padding: 0 min(120px, 6vw) 0 0; }
  .ha-login-overlay-scrim { position: absolute; inset: 0; background: radial-gradient(120% 100% at 0% 100%, rgba(12,35,56,0.82) 0%, rgba(12,35,56,0.46) 34%, rgba(12,35,56,0) 60%); }
  .ha-login-overlay-headline { position: absolute; left: min(80px, 6vw); bottom: 84px; max-width: 480px; z-index: 1; }
  .ha-login-overlay-headline h2 { color: #fff; font-size: 40px; font-weight: 800; line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.015em; }
  .ha-login-overlay-headline p { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.55; max-width: 360px; margin: 0; }
  .ha-login-overlay-rule { width: 40px; height: 3px; background: #c9a44c; margin-bottom: 16px; }
  .ha-login-overlay-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: #ffffff; border-radius: 18px; box-shadow: 0 16px 32px -16px rgba(20,50,79,0.25); padding: 40px; }

  @media (max-width: 640px) {
    .ha-login-split-outer { padding: 0; }
    .ha-login-split-body { max-width: none; }
    .ha-login-split { grid-template-columns: 1fr; min-height: 0; border-radius: 0; box-shadow: none; }
    .ha-login-photo { min-height: 200px; }
    .ha-login-split-tagline { display: none; }
    .ha-login-split-formwrap { padding: 32px 24px; }

    .ha-login-overlay { flex-direction: column; justify-content: flex-end; padding: 0; min-height: 0; }
    .ha-login-overlay-headline { display: none; }
    .ha-login-overlay-card { max-width: none; width: 100%; margin: 0; border-radius: 18px 18px 0 0; }
  }
  /* Shared Btn/DropdownItem loading spinner (see Dev Spec, Feedback/Perceived-Performance/Motion/
     Undo/Consistency Polish §1, 2026-08-27) — duration comes from the M.spin motion token (800ms). */
  .ha-spin { animation: haSpin 800ms linear infinite; }
  @keyframes haSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  /* Skeleton loading placeholders (see Dev Spec, Live Validation/Toasts/Skeleton Loading Polish §3,
     2026-08-27) — TestimonialsPage and BookFlightPage's pre-boot gap. A gentle opacity pulse reads
     more clearly as "still loading" than reusing haFade's one-shot entrance animation. */
  .ha-skeleton { background: #e4ebf1; border-radius: 8px; animation: haSkeletonPulse 1.3s ease-in-out infinite; }
  @keyframes haSkeletonPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
