/* LineOps / NxtOps - Schedules Section
   Aligned 100% to established Dashboard UI Design Language */

/* Full Page Liquid Glass Background when in Schedules View */
body.view-schedules,
body:has(#schedules-view:not([hidden])) {
  background: #f2f3fa !important;
  color: #1f212b !important;
  min-height: 100vh;
}

#schedules-view[hidden] {
  display: none !important;
}

#schedules-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: schedulesFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes schedulesFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedules-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.schedules-header .eyebrow {
  margin: 0;
  font: 600 11px 'DM Sans', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.schedules-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: -1.2px;
  color: #fff;
  margin: 4px 0 2px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.schedules-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* 3 Schedule Type Selector Cards - Frosted 90% Translucent Liquid Glass */
.schedule-mode-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  min-height: 144px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(10, 18, 22, 0.10);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3), 
    0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
}

/* Glowing Top Horizon Line for Active Tab */
.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  opacity: 0;
  transition: opacity .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1);
  transform: scaleX(0.4);
  border-radius: 999px;
  pointer-events: none;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.45), 
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(56, 189, 248, 0.12);
}

.mode-card:active {
  transform: translateY(-1px) scale(0.985);
}

.mode-card.is-active {
  transform: translateY(-4px);
  background: radial-gradient(120% 90% at 50% 0%, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.05) 55%, rgba(10, 18, 22, 0.25) 100%);
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.6), 
    inset 0 0 18px rgba(56, 189, 248, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.65), 
    0 0 32px rgba(56, 189, 248, 0.28);
}

.mode-card.is-active::before {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 12px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.7);
}

.mode-card-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  color: #a0b6b8;
  transition: all .25s ease;
}

.mode-card.is-active .mode-card-badge {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 14px rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 700;
}

.mode-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 10px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.6px;
}

.mode-card-desc {
  font-size: 13px;
  color: #b0c0c5;
  line-height: 1.55;
  margin: 0 0 12px;
}

.mode-card-perk {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Generator Filters Panel - Unboxed floating controls */
.generator-filter-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

/* Common SVG Icon for Filters */
.filter-svg {
  width: 14px;
  height: 14px;
  color: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── Filter Chips Selector Capsules - Matching Top Menu Bar ─── */
.filter-chips {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  background: rgba(22, 26, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 5px;
  gap: 3px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: visible;
  user-select: none;
}

.filter-chips .glass-pill-indicator {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 6px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform .45s cubic-bezier(.2, .95, .28, 1.14), width .38s cubic-bezier(.2, .95, .28, 1.12), height .38s ease, opacity .25s ease;
}

.filter-chips .glass-pill-indicator::before {
  display: none !important;
}

.filter-chips .glass-pill-indicator.is-gliding {
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.filter-chip {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #8a99a4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: color .2s ease;
  box-shadow: none !important;
}

.filter-chip:hover {
  color: #ffffff;
}

.filter-chip.is-active {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  box-shadow: none !important;
}

/* ─── MSFS toggle = transparent glass shell ─── */
.msfs-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(22, 26, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: #8a99a4;
  line-height: 1;
}

.msfs-toggle-wrapper .filter-svg {
  width: 15px;
  height: 15px;
  color: #8a99a4;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}

.msfs-toggle-wrapper label:not(.switch) {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #8a99a4;
  letter-spacing: 0.2px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.scenery-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.15);
  border: 1px solid rgba(52, 199, 89, 0.4);
  color: #4ade80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.scenery-count-pill:hover {
  background: rgba(52, 199, 89, 0.28);
  border-color: rgba(52, 199, 89, 0.7);
  color: #86efac;
  transform: translateY(-1px);
}

.scenery-count-pill.is-subtle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.scenery-count-pill.is-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
}

.btn-rescan-scenery {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-rescan-scenery:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: translateY(-1px);
}

.btn-rescan-scenery.is-scanning {
  opacity: 0.7;
  pointer-events: none;
}

.btn-rescan-scenery svg.spin,
.scenery-modal-btn svg.spin {
  animation: scenery-spin 1s linear infinite;
}

@keyframes scenery-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scenery Modal */
.scenery-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: scenery-fade-in 0.2s ease;
}

@keyframes scenery-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scenery-modal-content {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #111417;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  color: #f1f5f9;
}

.scenery-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.scenery-modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}

.scenery-modal-header p {
  font-size: 12px;
  color: #8a99a4;
  margin: 0;
  line-height: 1.4;
}

.scenery-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #8a99a4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.scenery-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.scenery-modal-toolbar {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scenery-modal-search {
  flex: 1;
  min-width: 200px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.scenery-modal-search:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.09);
}

.scenery-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenery-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.scenery-modal-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.scenery-modal-btn.is-primary {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.scenery-modal-btn.is-primary:hover {
  background: #1d4ed8;
}

.scenery-modal-body {
  padding: 18px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.scenery-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scenery-chip-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  font-size: 12px;
  transition: all 0.15s ease;
}

.scenery-chip-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.scenery-chip-icao {
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.5px;
}

.scenery-chip-iata {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.scenery-chip-name {
  color: #cbd5e1;
  font-size: 11px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenery-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(18, 22, 26, 0.95);
  border: 1px solid rgba(52, 199, 89, 0.5);
  color: #4ade80;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: scenery-toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scenery-toast.is-warning {
  border-color: rgba(234, 179, 8, 0.5);
  color: #fde047;
}

@keyframes scenery-toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Universal Liquid Glass Toggle Switch (Amine Kaddari Dribbble Reference) ─── */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 28px;
  vertical-align: middle;
  user-select: none;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.35s cubic-bezier(0.2, 0.8, 0.25, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  top: 2px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(0, 0, 0, 0.16);
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), width 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.switch:hover .slider {
  border-color: rgba(255, 255, 255, 0.28);
}

.switch:hover .slider::before {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: #34c759;
  border-color: rgba(52, 199, 89, 0.8);
  box-shadow: 0 0 14px rgba(52, 199, 89, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

input:checked + .slider::before {
  transform: translateX(20px);
}

/* Liquid Jelly Droplet Stretch Keyframe Animations */
@keyframes liquid-snap-on {
  0% {
    transform: translateX(0);
    width: 22px;
  }
  38% {
    transform: translateX(2px);
    width: 36px;
  }
  72% {
    transform: translateX(21px);
    width: 24px;
  }
  86% {
    transform: translateX(19px);
    width: 21px;
  }
  100% {
    transform: translateX(20px);
    width: 22px;
  }
}

@keyframes liquid-snap-off {
  0% {
    transform: translateX(20px);
    width: 22px;
  }
  38% {
    transform: translateX(4px);
    width: 36px;
  }
  72% {
    transform: translateX(-1px);
    width: 24px;
  }
  86% {
    transform: translateX(1px);
    width: 21px;
  }
  100% {
    transform: translateX(0);
    width: 22px;
  }
}

.switch.was-toggled input:checked + .slider::before {
  animation: liquid-snap-on 0.44s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}

.switch.was-toggled input:not(:checked) + .slider::before {
  animation: liquid-snap-off 0.44s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}

/* Flight Time Controls & Range Pill Capsules */
.time-range-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-range-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

/* ─── Input capsules = matching top menu bar glass ─── */
.time-box,
.icao-input-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  background: rgba(22, 26, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 16px;
  transition: all 0.25s ease;
}

.time-box:hover,
.time-box:focus-within,
.icao-input-box:hover,
.icao-input-box:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.glass-prefix {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.time-box select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  outline: none;
}

.time-box select option {
  background: #0d1a1e;
  color: #fff;
}

.fromto-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icao-input-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  min-width: 155px;
  background: rgba(22, 26, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 18px;
  transition: all 0.25s ease;
}

.icao-input-box:hover,
.icao-input-box:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.icao-input-box .glass-prefix {
  font-size: 10.5px;
  color: #8a99a4;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icao-input-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  width: 84px;
  min-width: 80px;
  text-transform: uppercase;
  font-family: 'DM Sans', monospace, sans-serif;
  letter-spacing: 0.08em;
  outline: none;
  padding: 0;
}

.icao-input-box input::placeholder {
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Airport & Aircraft Filter Widgets */
.airport-filter-widget,
.aircraft-filter-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-top: 4px;
}

/* Airport & Aircraft Input Capsule Bar */
.airport-input-bar,
.aircraft-input-bar {
  display: inline-flex;
  align-items: center;
  height: 48px;
  background: rgba(22, 26, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  gap: 12px;
  min-width: 340px;
  transition: all 0.25s ease;
}

.airport-input-bar:focus-within,
.aircraft-input-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.aircraft-select-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  flex: 1;
  min-width: 190px;
  cursor: pointer;
}

.aircraft-select-input option {
  background: #0d1a1e;
  color: #fff;
}

.bar-plus-icon,
.bar-sparkle {
  width: 16px;
  height: 16px;
  color: #8a99a4;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.airport-input-bar:focus-within .bar-plus-icon,
.airport-input-bar:focus-within .bar-sparkle,
.aircraft-input-bar:focus-within .bar-plus-icon,
.aircraft-input-bar:focus-within .bar-sparkle {
  color: #ffffff;
}

.airport-input-bar input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'DM Sans', monospace, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  outline: none;
  flex: 1;
  min-width: 180px;
  padding: 0;
}

.airport-input-bar input::placeholder {
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

/* ADD button */
.btn-add-airport {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(22, 26, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-add-airport:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%), rgba(30, 36, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.3), 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.airport-tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.airport-empty-hint {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* Airport Tag Chips = dark liquid glass capsules */
.airport-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: rgba(22, 26, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: 'DM Sans', monospace, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.airport-tag-chip.is-include {
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  background: rgba(10, 36, 26, 0.75);
}

.airport-tag-chip.is-exclude {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  background: rgba(45, 14, 20, 0.75);
}

.chip-mode-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.2;
}

.airport-tag-chip.is-include .chip-mode-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.airport-tag-chip.is-exclude .chip-mode-badge {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-add-airport.is-exclude-btn {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.1) 100%), rgba(22, 26, 30, 0.8);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-add-airport.is-exclude-btn:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.35) 0%, rgba(239, 68, 68, 0.15) 100%), rgba(35, 18, 22, 0.9);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fff;
}

.btn-clear-tags {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-clear-tags:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Circular Close Button */
.tag-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag-close-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.6);
  transform: scale(1.08);
}

/* Generate Schedule Button */
.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(22, 26, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.45);
  margin-left: auto;
}

.btn-generate:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%), rgba(30, 36, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.3), 0 12px 32px rgba(0, 0, 0, 0.6);
}

.btn-generate-icon {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

/* StandBy Radar / Reserve Panel */
.standby-hud-panel {
  background: linear-gradient(145deg, #161922 0%, #11151c 100%);
  border: 1px solid rgba(31, 33, 43, 0.22);
  border-radius: 22px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.standby-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.standby-beacon {
  display: flex;
  align-items: center;
  gap: 14px;
}

.beacon-radar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-radar::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  75%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.beacon-info h3 {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.beacon-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #a0b6b8;
}

.standby-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.standby-toggle-btn.is-active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.standby-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* Callout Alert Box */
.callout-alert-box {
  background: radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.18) 0%, rgba(10, 18, 22, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.2);
  animation: calloutPulse 2.5s ease-in-out infinite alternate;
}

@keyframes calloutPulse {
  from {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
  }
  to {
    border-color: rgba(245, 158, 11, 0.85);
    box-shadow: 0 14px 44px rgba(245, 158, 11, 0.3);
  }
}

.callout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.callout-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.callout-timer {
  font-family: monospace, 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  letter-spacing: 0.06em;
}

.callout-timer.timer-urgency-high {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.6);
  animation: timerBlink 1s infinite;
}

@keyframes timerBlink {
  50% { opacity: 0.6; }
}

/* StandBy Premium OCC Callout Card */
.standby-callout-card {
  background: linear-gradient(145deg, rgba(18, 25, 33, 0.95) 0%, rgba(10, 15, 20, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 24px rgba(245, 158, 11, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.standby-callout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #7ee4c2 50%, #f59e0b 100%);
}

.callout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.callout-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout-leg-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.callout-flight-num {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.6px;
}

.callout-icao-num {
  font-size: 13px;
  font-weight: 600;
  color: #8fa0a8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
}

.callout-multiplier-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38d697;
  background: rgba(56, 214, 151, 0.14);
  border: 1px solid rgba(56, 214, 151, 0.32);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 12px rgba(56, 214, 151, 0.15);
}

.callout-notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(245, 158, 11, 0.09);
  border-left: 3px solid #fbbf24;
  border-radius: 10px;
  color: #fde68a;
  font-size: 0.94rem;
  line-height: 1.45;
}

.notice-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fbbf24;
}

/* Callout Route Board */
.callout-route-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.station-block {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.station-block.origin {
  text-align: left;
}

.station-block.destination {
  text-align: right;
}

.station-code {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.station-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #e2e8f0;
  font-weight: 600;
  margin-top: 6px;
}

.station-block.destination .station-name {
  justify-content: flex-end;
}

.station-flag {
  font-size: 17px;
  display: inline-block;
  line-height: 1;
}

.station-meta {
  font-size: 12px;
  color: #7e8e98;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.flight-track-block {
  flex: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.track-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #7ee4c2;
  background: rgba(14, 41, 32, 0.85);
  border: 1px solid rgba(56, 214, 151, 0.38);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.track-clock-svg {
  width: 13px;
  height: 13px;
  color: #7ee4c2;
}

.track-line-wrapper {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-line-glow {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.4) 0%, rgba(126, 228, 194, 0.9) 50%, rgba(245, 158, 11, 0.4) 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(126, 228, 194, 0.5);
}

.track-plane-icon {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  color: #7ee4c2;
  background: #0f171f;
  border: 1px solid rgba(126, 228, 194, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transform: rotate(90deg);
  box-shadow: 0 0 12px rgba(126, 228, 194, 0.4);
}

.track-plane-icon svg {
  width: 14px;
  height: 14px;
}

.track-subtext {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #64748b;
  text-transform: uppercase;
}

/* Callout Metrics Grid */
.callout-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-cell {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metric-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #8fa0a8;
  text-transform: uppercase;
}

.metric-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.metric-cell.highlight-payout {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.06) 100%);
  border-color: rgba(56, 214, 151, 0.35);
  box-shadow: 0 4px 16px rgba(56, 214, 151, 0.1);
}

.metric-cell.highlight-payout .metric-label {
  color: #8deacb;
}

.metric-cell.highlight-payout .payout-amount {
  color: #38d697;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(56, 214, 151, 0.35);
}

/* Aircraft Bar */
.callout-aircraft-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.aircraft-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.aircraft-bar-left strong {
  color: #ffffff;
}

.aircraft-svg {
  width: 17px;
  height: 17px;
  color: #7ee4c2;
}

.variant-select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #8deacb;
}

.standby-aircraft-select {
  background: #142028;
  color: #f1f5f9;
  border: 1px solid rgba(126, 228, 194, 0.38);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.86rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.standby-aircraft-select:focus {
  border-color: #7ee4c2;
  box-shadow: 0 0 10px rgba(126, 228, 194, 0.25);
}

.aircraft-hint {
  font-size: 0.82rem;
  color: #8deacb;
  opacity: 0.85;
}

/* Actions Row */
.callout-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.btn-callout-accept {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-callout-accept:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
}

.btn-callout-accept svg {
  width: 18px;
  height: 18px;
}

.btn-callout-decline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-callout-decline:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

@media (max-width: 768px) {
  .callout-route-board {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .station-block {
    width: 100%;
    min-width: unset;
  }
  .station-block.destination {
    text-align: left;
  }
  .station-block.destination .station-name {
    justify-content: flex-start;
  }
  .flight-track-block {
    width: 100%;
    max-width: 100%;
  }
  .callout-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .callout-actions-row {
    flex-direction: column;
  }
  .btn-callout-accept, .btn-callout-decline {
    width: 100%;
  }
}

/* Active Flight 24h Window */
.active-flight-box {
  background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.09) 0%, rgba(10, 18, 22, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.flight-timer-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Roster / Sectors Container - Frosted 90% Translucent */
.roster-sectors-container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(10, 18, 22, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.roster-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roster-header-bar h2 {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-meta-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a0b6b8;
}

.meta-tag.bonus-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.meta-tag.rep-tag {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

/* ─── Premium Reference Flight Sector Card (Dribbble/Daily Design Reference) ─── */
.sector-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 26, 32, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.28s ease;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.25), 0 14px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.sector-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 20px 50px rgba(0, 0, 0, 0.6);
}

.sector-card.is-next-up {
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(18, 30, 36, 0.7);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 18px 45px rgba(0, 0, 0, 0.6);
}

.sector-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sector-card.is-next-up .sector-card-glow {
  background: radial-gradient(circle, rgba(124, 228, 194, 0.15) 0%, transparent 70%);
}

/* 1. Header: Leg indicator & Flight Pill Badge (Airline Name removed) */
.sector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sector-leg-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.sector-leg-tag {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.4px;
}

.sector-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.sector-status-dot.is-active {
  background: #7ce4c2;
  box-shadow: 0 0 8px #7ce4c2;
}

.sector-status-text {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
}

.sector-card.is-next-up .sector-status-text {
  color: #7ce4c2;
  font-weight: 700;
}

.sector-top-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sector-operator-pill.operator-lauda,
.callout-operator-pill.operator-lauda {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffb4a9;
  background: linear-gradient(135deg, rgba(216, 30, 5, 0.35) 0%, rgba(143, 20, 3, 0.25) 100%), rgba(26, 12, 12, 0.7);
  border: 1px solid rgba(216, 30, 5, 0.55);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(216, 30, 5, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.sector-operator-pill.operator-qantaslink,
.callout-operator-pill.operator-qantaslink {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(224, 0, 27, 0.45) 0%, rgba(143, 0, 16, 0.35) 100%), rgba(26, 12, 12, 0.7);
  border: 1px solid rgba(224, 0, 27, 0.65);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(224, 0, 27, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.sector-flight-pill {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 3px 10px 3px 12px;
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sector-flight-pill:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sector-flight-num {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  line-height: 1;
}

.sector-flight-symbol {
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.callout-flight-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

/* 2. Main Body: Departure / Arrival & Curved Arc */
.sector-main-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 0 0;
}

.sector-side {
  display: flex;
  flex-direction: column;
  min-width: 80px;
}

.sector-dest {
  text-align: right;
  align-items: flex-end;
}

.sector-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #d6e2e4;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.sector-code {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1.8px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.sector-city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #8da4a8;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.sector-dest .sector-city {
  justify-content: flex-end;
}

.city-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.city-flag-img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sector-card:hover .city-flag-img {
  transform: scale(1.08);
}

.city-flag-fallback {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
}

/* Modern Flight Route Vector Track */
.sector-route-vector {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 200px;
  margin: 0 8px;
  padding: 0 4px;
}

.waypoint-node {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.waypoint-ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #0f1c22;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.waypoint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.flight-vector-track {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
}

.vector-line-solid {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.8) 70%, #ffffff 100%);
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.vector-jet-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26, 38, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 3px 10px rgba(0, 0, 0, 0.5);
  margin: 0 4px;
  flex-shrink: 0;
  z-index: 3;
}

.vector-jet-svg {
  width: 15px;
  height: 15px;
  color: #ffffff;
  transform: rotate(90deg);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.vector-line-dashed {
  flex: 1;
  height: 2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 0%);
  background-position: top;
  background-size: 7px 2px;
  background-repeat: repeat-x;
}

/* 3. Bottom Bar: Centered Segmented Capsule & Lower-Right Leg Pay */
.sector-bottom-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sector-pill-segmented {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 34, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 3px 10px rgba(0, 0, 0, 0.25);
  max-width: calc(100% - 95px);
  height: 28px;
  box-sizing: border-box;
  margin: 0;
}

.pill-seg {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #d1dedc;
  white-space: nowrap;
  line-height: 1;
  margin: 0 !important;
  padding: 0 !important;
}

.pill-duration {
  font-weight: 700;
  color: #ffffff;
}

.pill-fleet {
  color: #9cb1b4;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.pill-fleet-interactive {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 135px;
  cursor: pointer;
  color: #c5e7e2;
  margin: 0 !important;
  padding: 0 !important;
  min-height: unset !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.sector-aircraft-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: none !important;
  color: #c5e7e2 !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer;
  padding: 0 13px 0 0 !important;
  outline: none !important;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 120px;
  width: auto !important;
  min-height: unset !important;
  height: auto !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.sector-aircraft-select option {
  background: #101c22;
  color: #e5f6f4;
  font-size: 12px;
  padding: 4px 8px;
}

.pill-fleet-arrow {
  position: absolute;
  right: 0;
  pointer-events: none;
  font-size: 8px;
  color: #79a8a1;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.pill-fleet-interactive:hover .sector-aircraft-select {
  color: #8deacb !important;
}

.pill-fleet-interactive:hover .pill-fleet-arrow {
  color: #8deacb;
  transform: translateY(1px);
}

.pill-divider {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
  flex-shrink: 0;
}

.sector-pay-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
  margin-left: auto;
  line-height: 1.2;
}

/* Roster Footer / Acceptance Bar */
.roster-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.roster-summary-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-item span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.stat-item strong {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: #fff;
}

.stat-item strong.highlight-green {
  color: #ffffff;
}

.roster-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-accept-roster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 50, 58, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 26px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-accept-roster:hover {
  background: rgba(50, 60, 68, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d8e8ea;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Empty Generated Schedule State ─── */
.schedules-empty-roster-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  width: 100%;
}

.empty-roster-glass-card {
  max-width: 580px;
  width: 100%;
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 26, 32, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.empty-roster-icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 228, 194, 0.12);
  border: 1px solid rgba(124, 228, 194, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(124, 228, 194, 0.2);
}

.empty-roster-svg {
  width: 28px;
  height: 28px;
  color: #7ce4c2;
}

.empty-roster-content h3 {
  font-family: 'Manrope', sans-serif;
  margin: 0 0 8px;
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.empty-roster-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #8da4a8;
}

.empty-roster-content p strong {
  color: #ffffff;
}

.btn-generate-hero {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(22, 34, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-generate-hero:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%), rgba(30, 46, 56, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
}

.btn-generate-hero .btn-generate-icon {
  width: 17px;
  height: 17px;
  color: #7ce4c2;
}

@media (max-width: 900px) {
  .schedule-mode-selector {
    grid-template-columns: 1fr;
  }
  .generator-filter-panel {
    padding: 20px;
  }
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .roster-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Schedules Error Card State - Liquid Obsidian & Coral Glass */
.schedules-error-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 30px 34px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(20, 26, 32, 0.95) 100%), rgba(14, 20, 25, 0.85);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(239, 68, 68, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  animation: schedulesFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.schedules-error-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.schedules-error-icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.schedules-error-svg {
  width: 24px;
  height: 24px;
}

.schedules-error-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.error-eyebrow {
  font: 700 10.5px 'DM Sans', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f87171;
}

.schedules-error-headline h3 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.error-explanation {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.schedules-error-diagnostics {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.diag-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.diag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.diag-chip.is-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.diag-chip.is-inc-chip {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.diag-chip.is-exc-chip {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.schedules-error-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.error-action-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-error-fix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-error-fix:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-error-fix.btn-fix-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-error-fix.btn-fix-primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  border-color: #34d399;
}

@media (max-width: 768px) {
  .schedule-mode-selector {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .mode-card {
    min-height: auto !important;
    padding: 18px 16px !important;
    border-radius: 20px !important;
  }
  .generator-filter-panel {
    padding: 16px 14px !important;
    border-radius: 20px !important;
  }
  .filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .filter-col {
    width: 100% !important;
  }
  .filter-inputs-wrap {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .roster-footer-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .btn-generate-hero {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .roster-sector-card {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }
  .sector-card-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .schedules-error-card {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }
  .schedules-error-top {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .error-action-suggestions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .btn-error-fix {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   Compact OCC Callout Card (occx-*) & Ready-Room
   ========================================================================== */

.occx-card {
  --occx-accent: #f5a524;
  --occx-accent-soft: rgba(245, 165, 36, 0.12);
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, rgba(20, 28, 36, 0.92) 0%, rgba(12, 17, 23, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.occx-card.is-accepted { --occx-accent: #34d399; --occx-accent-soft: rgba(52, 211, 153, 0.12); }
.occx-card.is-urgent { --occx-accent: #f87171; --occx-accent-soft: rgba(248, 113, 113, 0.12); }

.occx-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}
.occx-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--occx-accent);
  box-shadow: 0 0 8px var(--occx-accent);
  transition: width 1s linear, background-color 0.3s ease;
}

/* Header */
.occx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.occx-head-left, .occx-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.occx-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--occx-accent);
}
.occx-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--occx-accent);
  box-shadow: 0 0 0 0 var(--occx-accent);
  animation: occxPing 1.8s ease-out infinite;
}
.occx-card.is-accepted .occx-live i { animation: none; }
@keyframes occxPing {
  0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.55); }
  100% { box-shadow: 0 0 0 7px rgba(245, 165, 36, 0); }
}
.occx-flight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.occx-flight img { width: 14px; height: 14px; object-fit: contain; }
.occx-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.occx-icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.occx-icon-btn svg { width: 15px; height: 15px; }
.occx-icon-btn:hover, .occx-icon-btn.is-playing {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}
.occx-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  padding: 4px 12px;
  border-radius: 10px;
  background: var(--occx-accent-soft);
}
.occx-timer small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.occx-timer strong {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--occx-accent);
}

/* Route */
.occx-route {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 1.2fr) 1fr;
  align-items: center;
  gap: 16px;
  padding: 4px 2px;
}
.occx-stn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.occx-stn.is-dest { align-items: flex-end; text-align: right; }
.occx-stn strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #f8fafc;
}
.occx-stn span {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.occx-stn span i { font-style: normal; }
.occx-stn em {
  font-style: normal;
  font-size: 11.5px;
  color: #7c8a96;
}
.occx-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
}
.occx-line {
  position: relative;
  width: 100%;
  height: 14px;
  display: grid;
  place-items: center;
}
.occx-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.occx-line svg {
  position: relative;
  width: 14px;
  height: 14px;
  padding: 0 6px;
  box-sizing: content-box;
  color: var(--occx-accent);
  background: #10171e;
  transform: rotate(90deg);
}
.occx-muted { color: #7c8a96; font-weight: 500; }

/* Incident */
.occx-incident {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--occx-accent);
}
.occx-tag {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--occx-accent);
  white-space: nowrap;
}
.occx-incident p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.occx-incident p b { color: #e2e8f0; font-weight: 700; }

/* Stats */
.occx-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.3fr;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}
.occx-stats > div {
  padding: 10px 14px;
  min-width: 0;
}
.occx-stats > div + div { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.occx-stats dt {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8a96;
  margin-bottom: 3px;
}
.occx-stats dd {
  margin: 0;
  font-size: 13.5px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.occx-stats dd b { font-weight: 700; }
.occx-stats .is-pay { background: rgba(52, 211, 153, 0.06); }
.occx-stats .is-pay dd b { color: #34d399; font-size: 15px; }
.occx-stats .is-pay .occx-muted { font-size: 11px; }
.occx-select {
  width: 100%;
  max-width: 100%;
  padding: 2px 22px 2px 0;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.occx-select:focus-visible { box-shadow: 0 1px 0 var(--occx-accent); }
.occx-select option { background: #111a22; color: #e2e8f0; }

/* Footer */
.occx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.occx-scramble {
  font-size: 11.5px;
  font-weight: 600;
  color: #fcd34d;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 165, 36, 0.1);
  font-variant-numeric: tabular-nums;
}
.occx-scramble.is-expired { color: #7c8a96; background: rgba(255, 255, 255, 0.04); }
.occx-scramble.is-earned { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.occx-actions { display: flex; gap: 8px; margin-left: auto; }
.occx-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.occx-btn:active { transform: translateY(1px); }
.occx-btn-ghost {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.occx-btn-ghost:hover { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.25); }
.occx-btn-primary {
  background: #10b981;
  color: #04130d;
  border: 1px solid #34d399;
  box-shadow: 0 6px 18px -8px rgba(16, 185, 129, 0.8);
}
.occx-btn-primary:hover { background: #34d399; }
.occx-btn:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 720px) {
  .occx-card { padding: 16px; }
  .occx-route { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .occx-stn strong { font-size: 22px; }
  .occx-incident { flex-direction: column; gap: 4px; }
  .occx-stats { grid-template-columns: 1fr 1fr; }
  .occx-stats > div:nth-child(3) { border-left: 0; }
  .occx-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .occx-actions { width: 100%; }
  .occx-actions .occx-btn { flex: 1; }
}

.readyroom-card {
  background: linear-gradient(145deg, rgba(16, 24, 32, 0.85) 0%, rgba(10, 15, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.readyroom-radar-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(56, 214, 151, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(56, 214, 151, 0.15);
}

.readyroom-radar-ring::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #38d697;
  opacity: 0;
  animation: readyRadarPulse 2s infinite ease-out;
}

@keyframes readyRadarPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.readyroom-radar-ring svg {
  width: 26px;
  height: 26px;
  color: #38d697;
}

.readyroom-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-transform: uppercase;
}

.readyroom-desc {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #94a3b8;
}

.readyroom-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.readyroom-badge {
  font-family: 'DM Mono', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

@media (max-width: 768px) {
  .occ-ops-grid {
    grid-template-columns: 1fr;
  }
}




.sector-schedule-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1;
}

.sector-schedule-badge .schedule-cal-icon {
  color: #38bdf8;
}
