:root {
  --navy: #0f172a;
  --navy-2: #111c33;
  --blue: #1a56db;
  --blue-2: #3b82f6;
  --sky: #7bacfc;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  --ink: #1e293b;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: #e4e8ee;
  --surface: #f5f7fa;
  --white: #ffffff;
}

body.dark-mode {
  --navy: #070d1a;
  --navy-2: #0b1220;
  --blue: #4f8cff;
  --blue-2: #60a5fa;
  --sky: #93c5fd;
  --green: #34d399;
  --orange: #fbbf24;
  --red: #f87171;
  --ink: #e5edf7;
  --muted: #9fb0c6;
  --soft: #72839b;
  --line: #263448;
  --surface: #0b1220;
  --white: #111827;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 1280px;
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  width: 100%;
  min-width: 1280px;
  min-height: 100vh;
  overflow: visible;
  transition: grid-template-columns 260ms ease-in-out;
}

.app-shell.auto-follow-mode {
  grid-template-columns: 0 1fr;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--navy);
  color: #cbd5e1;
  overflow: hidden;
  transition: opacity 220ms ease-in-out, transform 260ms ease-in-out;
}

.app-shell.auto-follow-mode .sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-24px);
}

.brand {
  display: flex;
  align-items: center;
  height: 77px;
  padding: 18px 18px 16px;
}

.brand-lockup {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 16px 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
}

.nav-link .nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.nav-link .nav-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.72;
}

.nav-link.active {
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active .nav-icon { color: #ffffff; }

.nav-link.active .nav-icon img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.nav-caret {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-caret.open {
  transform: rotate(180deg);
}

.nav-sub-link {
  width: calc(100% - 22px);
  height: 34px;
  margin-left: 22px;
  padding-left: 14px;
  color: #9fb0c6;
  font-size: 12px;
}

.nav-sub-link .nav-icon {
  width: 14px;
  color: #64748b;
  font-size: 12px;
}

.nav-sub-link .nav-icon img {
  width: 14px;
  height: 14px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 0;
}

.airport-card {
  height: 330px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--navy-2);
}

.airport-card > img {
  display: block;
  width: 240px;
  height: 330px;
  object-fit: cover;
}

.workspace {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  padding: 20px 32px;
  overflow: visible;
  transition: padding 260ms ease-in-out;
}

.app-shell.auto-follow-mode .workspace {
  padding-inline: 24px;
}

.top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 38px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.health { display: inline-flex; align-items: center; gap: 6px; }
.health i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}
.swap { color: var(--soft); }
.replication { margin-top: 4px; color: var(--muted); font-size: 12px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-search,
.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--soft);
}

.global-search { width: 260px; padding: 0 12px; }
.global-search span,
.inline-search span {
  width: 16px;
  height: 16px;
  background: url("./assets/search.svg") center / contain no-repeat;
  color: transparent;
  flex: 0 0 auto;
}
.inline-search { width: 200px; padding: 0 12px; }
.global-search input,
.inline-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 700;
}

.asset-button {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.asset-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.asset-button:not(.alert-button) img {
  width: 18px;
  height: 18px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 100px;
  background: color-mix(in srgb, var(--user-accent, #1458d4) 16%, white);
  color: var(--user-accent, #1458d4);
  font-size: 12px;
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar span { line-height: 1; }

.avatar-portrait {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.86), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--user-accent, #1458d4) 76%, white), color-mix(in srgb, var(--user-accent, #1458d4) 52%, #0f172a));
}

.avatar-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #f7d7bd;
  box-shadow: inset -5px -4px 0 rgba(120, 75, 45, 0.12);
}

.avatar-portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 68%;
  height: 36%;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.78);
}

.avatar-portrait i {
  position: absolute;
  left: 50%;
  top: 17%;
  z-index: 1;
  width: 40%;
  height: 22%;
  border-radius: 999px 999px 45% 45%;
  transform: translateX(-50%);
  background: #253044;
}

.avatar-portrait b {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  width: 18%;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.34);
}

.portrait-john::before,
.portrait-omar::before { background: #8d5a3d; }

.portrait-maya::before { background: #e6b48f; }

.portrait-sarah i { background: #2f1f1b; }
.portrait-john i { background: #111827; }
.portrait-maya i { background: #1f2937; width: 48%; }
.portrait-omar i { background: #0f172a; height: 17%; }

.profile strong,
.profile span { display: block; line-height: 16px; }
.profile span { color: var(--muted); font-size: 11px; }

.profile:hover .avatar,
.profile:focus-visible .avatar {
  box-shadow: 0 0 0 3px rgba(20, 88, 212, 0.12);
}

.profile:focus-visible {
  outline: 2px solid rgba(20, 88, 212, 0.42);
  outline-offset: 5px;
  border-radius: 8px;
}

.time-filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  margin-top: 20px;
}

.reports-page,
.integrations-page,
.sita-flow-page,
.user-management-page,
.data-priority-page,
.gate-page,
.baggage-page,
.omar-mobile-page,
.security-page {
  display: none;
}

.app-shell.reports-mode .time-filter-section,
.app-shell.reports-mode .stats-row,
.app-shell.reports-mode .chart-panel,
.app-shell.reports-mode .toolbar-row,
.app-shell.reports-mode .table-panel,
.app-shell.reports-mode .workspace.glance-mode .glance-panel,
.app-shell.reports-mode .glance-panel,
.app-shell.reports-mode .pagination-row {
  display: none;
}

.app-shell.reports-mode.audit-detail-open .workspace {
  padding-right: 416px;
}

.app-shell.reports-mode .reports-page {
  display: block;
}

.app-shell.integrations-mode .time-filter-section,
.app-shell.integrations-mode .stats-row,
.app-shell.integrations-mode .chart-panel,
.app-shell.integrations-mode .toolbar-row,
.app-shell.integrations-mode .table-panel,
.app-shell.integrations-mode .workspace.glance-mode .glance-panel,
.app-shell.integrations-mode .glance-panel,
.app-shell.integrations-mode .pagination-row,
.app-shell.integrations-mode .reports-page,
.app-shell.integrations-mode .data-priority-page {
  display: none;
}

.app-shell.sita-flow-mode .top-header,
.app-shell.sita-flow-mode .time-filter-section,
.app-shell.sita-flow-mode .stats-row,
.app-shell.sita-flow-mode .chart-panel,
.app-shell.sita-flow-mode .toolbar-row,
.app-shell.sita-flow-mode .table-panel,
.app-shell.sita-flow-mode .workspace.glance-mode .glance-panel,
.app-shell.sita-flow-mode .glance-panel,
.app-shell.sita-flow-mode .pagination-row,
.app-shell.sita-flow-mode .reports-page,
.app-shell.sita-flow-mode .integrations-page,
.app-shell.sita-flow-mode .user-management-page,
.app-shell.sita-flow-mode .data-priority-page {
  display: none;
}

.app-shell.sita-flow-mode .workspace {
  padding: 0;
  overflow: hidden;
}

.app-shell.sita-flow-mode .sita-flow-page {
  display: block;
}

.app-shell.integrations-mode.integration-detail-open .workspace {
  padding-right: 416px;
}

.app-shell.integrations-mode .integrations-page {
  display: block;
}

.app-shell.user-management-mode .time-filter-section,
.app-shell.user-management-mode .stats-row,
.app-shell.user-management-mode .chart-panel,
.app-shell.user-management-mode .toolbar-row,
.app-shell.user-management-mode .table-panel,
.app-shell.user-management-mode .workspace.glance-mode .glance-panel,
.app-shell.user-management-mode .glance-panel,
.app-shell.user-management-mode .pagination-row,
.app-shell.user-management-mode .reports-page,
.app-shell.user-management-mode .integrations-page,
.app-shell.user-management-mode .sita-flow-page,
.app-shell.user-management-mode .data-priority-page {
  display: none;
}

.app-shell.user-management-mode.user-detail-open .workspace {
  padding-right: 416px;
}

.app-shell.user-management-mode .user-management-page {
  display: block;
}

.app-shell.data-priority-mode .time-filter-section,
.app-shell.data-priority-mode .stats-row,
.app-shell.data-priority-mode .chart-panel,
.app-shell.data-priority-mode .toolbar-row,
.app-shell.data-priority-mode .table-panel,
.app-shell.data-priority-mode .workspace.glance-mode .glance-panel,
.app-shell.data-priority-mode .glance-panel,
.app-shell.data-priority-mode .pagination-row,
.app-shell.data-priority-mode .reports-page,
.app-shell.data-priority-mode .integrations-page,
.app-shell.data-priority-mode .sita-flow-page,
.app-shell.data-priority-mode .user-management-page {
  display: none;
}

.app-shell.data-priority-mode .data-priority-page {
  display: block;
}

.app-shell.gate-mode .time-filter-section,
.app-shell.gate-mode .stats-row,
.app-shell.gate-mode .chart-panel,
.app-shell.gate-mode .toolbar-row,
.app-shell.gate-mode .table-panel,
.app-shell.gate-mode .workspace.glance-mode .glance-panel,
.app-shell.gate-mode .glance-panel,
.app-shell.gate-mode .pagination-row,
.app-shell.gate-mode .reports-page,
.app-shell.gate-mode .integrations-page,
.app-shell.gate-mode .sita-flow-page,
.app-shell.gate-mode .user-management-page {
  display: none;
}

.app-shell.gate-mode .data-priority-page {
  display: none;
}

.app-shell.gate-mode .gate-page {
  display: block;
}

.app-shell.baggage-mode .time-filter-section,
.app-shell.baggage-mode .stats-row,
.app-shell.baggage-mode .chart-panel,
.app-shell.baggage-mode .toolbar-row,
.app-shell.baggage-mode .table-panel,
.app-shell.baggage-mode .workspace.glance-mode .glance-panel,
.app-shell.baggage-mode .glance-panel,
.app-shell.baggage-mode .pagination-row,
.app-shell.baggage-mode .reports-page,
.app-shell.baggage-mode .integrations-page,
.app-shell.baggage-mode .sita-flow-page,
.app-shell.baggage-mode .user-management-page,
.app-shell.baggage-mode .data-priority-page,
.app-shell.baggage-mode .gate-page {
  display: none;
}

.app-shell.baggage-mode .baggage-page {
  display: block;
}

.app-shell.security-mode .time-filter-section,
.app-shell.security-mode .stats-row,
.app-shell.security-mode .chart-panel,
.app-shell.security-mode .toolbar-row,
.app-shell.security-mode .table-panel,
.app-shell.security-mode .workspace.glance-mode .glance-panel,
.app-shell.security-mode .glance-panel,
.app-shell.security-mode .pagination-row,
.app-shell.security-mode .reports-page,
.app-shell.security-mode .integrations-page,
.app-shell.security-mode .sita-flow-page,
.app-shell.security-mode .user-management-page,
.app-shell.security-mode .data-priority-page,
.app-shell.security-mode .gate-page,
.app-shell.security-mode .baggage-page,
.app-shell.security-mode .omar-mobile-page {
  display: none;
}

.app-shell.security-mode .workspace {
  padding: 18px 28px 20px;
  overflow: hidden;
}

.app-shell.security-mode .security-page {
  display: block;
}

.app-shell.omar-mobile-mode .time-filter-section,
.app-shell.omar-mobile-mode .stats-row,
.app-shell.omar-mobile-mode .chart-panel,
.app-shell.omar-mobile-mode .toolbar-row,
.app-shell.omar-mobile-mode .table-panel,
.app-shell.omar-mobile-mode .workspace.glance-mode .glance-panel,
.app-shell.omar-mobile-mode .glance-panel,
.app-shell.omar-mobile-mode .pagination-row,
.app-shell.omar-mobile-mode .reports-page,
.app-shell.omar-mobile-mode .integrations-page,
.app-shell.omar-mobile-mode .sita-flow-page,
.app-shell.omar-mobile-mode .user-management-page,
.app-shell.omar-mobile-mode .data-priority-page,
.app-shell.omar-mobile-mode .gate-page,
.app-shell.omar-mobile-mode .baggage-page {
  display: none;
}

.app-shell.omar-mobile-mode .workspace {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 28%, rgba(59, 130, 246, 0.13), transparent 30%),
    linear-gradient(135deg, #f6f8fc 0%, #edf3fb 48%, #f8fafc 100%);
}

.app-shell.omar-mobile-mode .omar-mobile-page {
  display: grid;
  min-height: calc(100vh - 78px);
  place-items: center;
  padding: 18px 0 26px;
}

.nav-link.attention-nav {
  position: relative;
  overflow: hidden;
}

.nav-link.attention-nav::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(147, 197, 253, 0.62);
  border-radius: 8px;
  animation: whatNextPulse 1500ms ease-in-out infinite;
  pointer-events: none;
}

@keyframes whatNextPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.app-shell.baggage-session-mode {
  display: block;
  min-width: 0;
}

.app-shell.baggage-session-mode .sidebar,
.app-shell.baggage-session-mode .top-header {
  display: none;
}

.app-shell.baggage-session-mode .workspace {
  min-height: 100vh;
  padding: 0;
}

.app-shell.user-management-mode .workspace {
  overflow: hidden;
}

.app-shell.data-priority-mode .workspace {
  overflow: hidden;
}

.user-management-page {
  max-width: 100%;
  height: calc(100vh - 40px);
  overflow: auto;
  padding-bottom: 12px;
}

.data-priority-page {
  max-width: 100%;
  height: calc(100vh - 40px);
  overflow: auto;
  padding-bottom: 18px;
}

.gate-page {
  min-height: calc(100vh - 76px);
}

.security-ops-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 76px);
  min-width: 0;
}

.security-ops-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.security-ops-title span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 900;
}

.security-ops-title span::after {
  content: "LIVE";
  padding: 3px 7px;
  border-radius: 999px;
  background: #d8f8e8;
  color: #12a66a;
  font-size: 9px;
}

.security-ops-title h1 {
  margin: 4px 0 3px;
  color: #111827;
  font-size: 22px;
  line-height: 26px;
}

.security-ops-title p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.security-title-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.security-title-actions button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dee5ee;
  border-radius: 8px;
  background: white;
  color: #64748b;
  font-weight: 800;
}

.security-title-actions .primary-action {
  border-color: #1d5fe9;
  background: #1d5fe9;
  color: white;
}

.security-tabs {
  display: flex;
  gap: 22px;
  min-height: 30px;
  border-bottom: 1px solid #dee5ee;
}

.security-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.security-tabs button.active {
  border-color: #1d5fe9;
  color: #1d5fe9;
}

.security-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.security-metric {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid #dee5ee;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 12px rgba(15, 25, 44, 0.04);
}

.security-metric i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eaf2ff;
}

.security-metric i img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.security-metric.good i { background: #d8f8e8; }
.security-metric.warn i { background: #fff2c7; }
.security-metric.purple i { background: #f1eafe; }

.security-metric strong {
  color: #111827;
  font-size: 24px;
  line-height: 26px;
}

.security-metric span,
.security-metric em {
  display: block;
}

.security-metric span {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.security-metric em {
  margin-top: 3px;
  color: #12a66a;
  font-size: 10px;
  font-style: normal;
}

.security-metric.warn em { color: #d97706; }
.security-metric.purple em { color: #7c3aed; }

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr) minmax(0, 0.86fr) minmax(340px, 420px);
  grid-template-rows: minmax(260px, 1fr) minmax(250px, 1fr);
  gap: 10px;
  min-height: 0;
  flex: 1;
}

.security-ops-shell:not(.override-open) .security-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.security-card,
.security-override-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dee5ee;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px rgba(15, 25, 44, 0.04);
}

.security-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #eef2f7;
}

.security-card header strong {
  color: #1e293b;
  font-size: 13px;
}

.security-card header em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.checkpoint-monitor {
  grid-column: 1 / 3;
}

.security-trend {
  grid-column: 3 / 4;
}

.feed-health {
  grid-column: 1 / 2;
}

.display-preview {
  grid-column: 2 / 3;
}

.change-history {
  grid-column: 3 / 4;
}

.security-override-panel {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}

.security-ops-shell:not(.override-open) .checkpoint-monitor {
  grid-column: 1 / 2;
}

.security-ops-shell:not(.override-open) .security-trend {
  grid-column: 2 / 4;
}

.security-focus-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}

.security-focus-tabs button {
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.security-focus-tabs button.active {
  background: #dcebff;
  color: #1d5fe9;
}

.security-table {
  padding: 0 10px 10px;
}

.security-table-head,
.security-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.72fr 0.78fr 0.58fr 1.15fr;
  gap: 10px;
  align-items: center;
}

.security-table-head {
  height: 30px;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.security-table-row {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 1px solid #eef2f7;
  background: white;
  color: #1e293b;
  text-align: left;
}

.security-table-row.selected {
  background: #f7fbff;
}

.security-table-row span strong,
.security-table-row span em {
  display: block;
}

.security-table-row span em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.security-table-row b {
  color: #1e293b;
  font-size: 12px;
}

.security-table-row .up {
  color: #12a66a;
}

.security-table-row .down {
  color: #d97706;
}

.security-table-row i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 999px;
  background: #12a66a;
}

.security-table-row i.warn { background: #d97706; }
.security-table-row i.purple { background: #7c3aed; }

.security-chart-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: #64748b;
  font-size: 10px;
}

.security-chart-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.security-chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #12a66a;
}

.security-chart-legend .line-1 { background: #7c3aed; }
.security-chart-legend .line-2 { background: #1d5fe9; }
.security-chart-legend .line-3 { background: #d97706; }
.security-chart-legend small {
  margin-left: auto;
  color: #64748b;
  font-size: 10px;
}

.security-chart {
  position: relative;
  height: calc(100% - 78px);
  margin: 0 14px 14px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(to bottom, transparent 0 24%, #e9eef5 24% calc(24% + 1px), transparent calc(24% + 1px) 49%, #e9eef5 49% calc(49% + 1px), transparent calc(49% + 1px) 74%, #e9eef5 74% calc(74% + 1px), transparent calc(74% + 1px));
}

.security-y-axis,
.security-x-axis {
  position: absolute;
  z-index: 3;
  color: #94a3b8;
  font-size: 9px;
  pointer-events: none;
}

.security-y-axis {
  left: 0;
  top: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 3px;
}

.security-y-axis b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #64748b;
  font-size: 9px;
}

.security-x-axis {
  left: 22px;
  right: 10px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
}

.security-x-axis b {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: #64748b;
}

.security-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.security-chart polyline {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.security-chart polyline.forecast {
  stroke-dasharray: 4 4;
  opacity: 0.78;
}

.security-chart .line-0 { stroke: #12a66a; }
.security-chart .line-1 { stroke: #7c3aed; }
.security-chart .line-2 { stroke: #1d5fe9; }
.security-chart .line-3 { stroke: #d97706; }

.security-now-line,
.security-override-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed;
}

.security-now-line {
  left: 50%;
  border-color: #1e293b;
}

.security-override-line {
  left: 42%;
  border-color: #7c3aed;
}

.security-now-line b,
.security-override-line b {
  position: absolute;
  top: 2px;
  left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: white;
  color: #1e293b;
  font-size: 8px;
  white-space: nowrap;
}

.security-override-line b {
  color: #7c3aed;
}

.security-feed,
.security-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef2f7;
}

.security-feed strong,
.security-feed span,
.security-feed em {
  display: block;
}

.security-feed strong,
.security-history-item strong {
  color: #1e293b;
  font-size: 12px;
}

.security-feed span,
.security-feed em,
.security-history-item span,
.security-history-item em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.security-feed b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #d8f8e8;
  color: #12a66a;
  font-size: 10px;
}

.security-feed.warn b {
  background: #fff2c7;
  color: #d97706;
}

.security-card footer {
  padding: 9px 12px;
  color: #1d5fe9;
  font-size: 11px;
  font-weight: 800;
}

.security-display-screen {
  display: grid;
  grid-template-columns: 1fr 136px;
  height: 118px;
  margin: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #0f192c;
  color: white;
}

.security-display-screen > div {
  padding: 15px;
}

.security-display-screen span,
.security-display-screen small {
  display: block;
  color: #a9b6ca;
  font-size: 10px;
}

.security-display-screen strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 26px;
}

.security-display-screen b {
  display: grid;
  place-items: center;
  background: #12a66a;
  color: white;
  text-align: center;
  font-size: 11px;
}

.security-display-screen.rule-clear b {
  background: #12a66a;
}

.security-display-screen.rule-watch b {
  background: #f59e0b;
}

.security-display-screen.rule-alert b {
  background: #ef4444;
}

.security-display-screen b strong {
  margin: 2px 0;
  font-size: 42px;
  line-height: 42px;
}

.security-display-screen b em {
  font-size: 11px;
  font-style: normal;
}

.security-rule-bar {
  margin: 0 14px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
}

.security-rule-bar span,
.security-rule-bar em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.security-rule-bar div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  height: 10px;
  margin: 8px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #12a66a 0 33.33%, #f59e0b 33.33% 66.66%, #ef4444 66.66%);
}

.security-rule-bar i {
  position: absolute;
  left: var(--rule-position);
  top: -4px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 3px white;
  transform: translateX(-50%);
}

.security-rule-bar .rule-clear i {
  background: #12a66a;
}

.security-rule-bar .rule-watch i {
  background: #f59e0b;
}

.security-rule-bar .rule-alert i {
  background: #ef4444;
}

.security-rule-bar b {
  position: relative;
  top: 18px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.security-rule-bar b:nth-of-type(2) {
  text-align: center;
}

.security-rule-bar b:nth-of-type(3) {
  text-align: right;
}

.security-source-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 14px;
}

.security-source-compare p {
  margin: 0;
}

.security-source-compare span,
.security-source-compare strong {
  display: block;
}

.security-source-compare span {
  color: #64748b;
  font-size: 10px;
}

.security-source-compare strong {
  color: #1d5fe9;
  font-size: 13px;
}

.security-history-item {
  grid-template-columns: 42px 1fr auto;
}

.security-history-item b {
  color: #64748b;
  font-size: 10px;
}

.security-override-panel {
  display: flex;
  flex-direction: column;
}

.security-override-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  background: #0f192c;
  color: white;
}

.security-override-panel header strong,
.security-override-panel header span {
  display: block;
}

.security-override-panel header strong {
  font-size: 16px;
}

.security-override-panel header span {
  color: #a9b6ca;
  font-size: 10px;
}

.security-override-panel header button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #1a253c;
  color: white;
}

.security-workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid #dee5ee;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.security-workflow b {
  color: #1d5fe9;
}

.security-safety-note {
  display: flex;
  gap: 8px;
  margin: 10px 16px 0;
  padding: 8px;
  border: 1px solid #f4ce85;
  border-radius: 8px;
  background: #fff3d6;
  color: #82510b;
}

.security-safety-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.security-form-block {
  padding: 10px 16px 0;
}

.security-form-block h3 {
  margin: 0 0 7px;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}

.security-form-grid {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
}

.security-form-grid label,
.security-note-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
}

.security-form-grid strong,
.security-note-field strong {
  min-height: 36px;
  padding: 10px;
  border: 1px solid #cad5e2;
  border-radius: 6px;
  background: white;
  color: #1e293b;
  font-size: 12px;
  font-weight: 500;
}

.security-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #dee5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.security-compare p {
  margin: 0;
}

.security-compare span,
.security-compare strong {
  display: block;
}

.security-compare span {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}

.security-compare strong {
  color: #1e293b;
  font-size: 18px;
}

.security-compare p:nth-of-type(2) strong,
.security-compare b {
  color: #7c3aed;
}

.security-note-field {
  margin-top: 8px;
}

.security-note-field strong {
  min-height: 38px;
  font-size: 10px;
  line-height: 1.25;
}

.security-review-summary {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eaf2ff;
}

.security-review-summary p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.security-review-summary b {
  color: #1e293b;
}

.security-ack {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: #1e293b;
  font-size: 10px;
  line-height: 1.3;
}

.security-override-panel > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding: 10px 16px;
  border-top: 1px solid #dee5ee;
  background: #f8fafc;
}

.security-override-panel footer button {
  height: 36px;
  border: 1px solid #cad5e2;
  border-radius: 8px;
  background: white;
  color: #64748b;
  font-weight: 800;
}

.security-override-panel footer .primary-action {
  border-color: #1d5fe9;
  background: #1d5fe9;
  color: white;
}

.security-display-network {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 238px minmax(0, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.security-live-views {
  grid-column: 1 / -1;
}

.security-live-view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.security-live-view-card {
  position: relative;
  height: 164px;
  overflow: hidden;
  border-radius: 10px;
  background: #0f192c;
}

.security-live-view-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.security-live-view-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 44, 0.02), rgba(15, 25, 44, 0.66));
}

.security-live-view-card div,
.security-live-view-card b {
  position: absolute;
  z-index: 2;
}

.security-live-view-card div {
  left: 12px;
  bottom: 12px;
}

.security-live-view-card strong,
.security-live-view-card span {
  display: block;
  color: white;
}

.security-live-view-card strong {
  font-size: 16px;
}

.security-live-view-card span {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 11px;
}

.security-live-view-card b {
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(18, 166, 106, 0.95);
  color: white;
  font-size: 12px;
}

.security-display-list {
  grid-column: 1 / -1;
  min-height: 0;
}

.security-display-list-head,
.security-display-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr 0.9fr 1.2fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.security-display-list-head {
  height: 34px;
  padding: 0 12px;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.security-display-row {
  min-height: 52px;
  padding: 0 12px;
  border-top: 1px solid #eef2f7;
}

.security-display-row strong {
  color: #1e293b;
  font-size: 12px;
}

.security-display-row span,
.security-display-row em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.security-display-row b {
  color: #1d5fe9;
  font-size: 13px;
}

.security-display-row i {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #d8f8e8;
  color: #12a66a;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.security-display-row i.warn {
  background: #fff2c7;
  color: #d97706;
}

.security-display-row i.purple {
  background: #f1eafe;
  color: #7c3aed;
}

.mobile-device-frame {
  position: relative;
  width: 414px;
  height: 842px;
  padding: 12px;
  border: 8px solid #111827;
  border-radius: 48px;
  background: #020617;
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.mobile-device-speaker {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
  background: #020617;
}

.mobile-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #f4f7fb;
  color: #172033;
}

.mobile-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 10px 26px 4px;
  color: #111827;
  font-size: 12px;
}

.mobile-status-bar span {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.mobile-status-bar i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #111827;
}

.mobile-status-bar i:nth-child(1) { height: 5px; }
.mobile-status-bar i:nth-child(2) { height: 8px; }
.mobile-status-bar i:nth-child(3) { height: 11px; }

.mobile-status-bar b {
  display: block;
  width: 18px;
  height: 9px;
  border: 1px solid #111827;
  border-radius: 3px;
}

.mobile-hero {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 12px;
}

.mobile-hero .user-avatar {
  width: 42px;
  height: 42px;
}

.mobile-hero span,
.mobile-airport-pulse span,
.mobile-panel header span,
.mobile-kpi-row span {
  display: block;
  color: #73819a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-hero strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 22px;
}

.mobile-hero em {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.mobile-hero button,
.mobile-ai-actions button,
.mobile-what-next-card button,
.mobile-request-card button,
.mobile-mode-card button {
  border: 0;
  border-radius: 12px;
  background: #1458d4;
  color: white;
  font-weight: 800;
}

.mobile-hero button {
  width: 44px;
  height: 36px;
}

.mobile-airport-pulse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.mobile-airport-pulse strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 22px;
  line-height: 26px;
}

.mobile-airport-pulse em {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.mobile-airport-pulse b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 11px;
}

.mobile-airport-pulse b i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
}

.mobile-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px;
}

.mobile-kpi-row article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #ffffff;
}

.mobile-kpi-row strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 20px;
  line-height: 22px;
}

.mobile-kpi-row em {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.mobile-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 16px 12px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.mobile-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-panel header strong {
  color: #111827;
  font-size: 15px;
}

.mobile-next-flight {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: #eff6ff;
}

.mobile-next-flight span,
.mobile-next-flight em {
  display: block;
  color: #64748b;
  font-style: normal;
}

.mobile-next-flight strong {
  display: block;
  margin: 3px 0;
  color: #0f172a;
  font-size: 19px;
  line-height: 23px;
}

.mobile-next-flight b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #334155;
  font-size: 10px;
  text-transform: uppercase;
}

.mobile-next-flight b.status-delayed,
.mobile-next-flight b.status-gate-change {
  background: #fef3c7;
  color: #b45309;
}

.mobile-next-flight b.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.mobile-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.mobile-zone-grid article {
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 15px;
  background: #ffffff;
}

.mobile-zone-grid i {
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--zone-color);
}

.mobile-zone-grid strong,
.mobile-zone-grid span {
  display: block;
}

.mobile-zone-grid strong {
  color: #111827;
  font-size: 14px;
}

.mobile-zone-grid span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.mobile-what-next-card,
.mobile-ai-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #101f3a;
  color: white;
}

.mobile-what-next-card span,
.mobile-what-next-card strong,
.mobile-ai-card b,
.mobile-ai-card strong {
  display: block;
}

.mobile-what-next-card span,
.mobile-ai-card b {
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-what-next-card strong,
.mobile-ai-card strong {
  margin-top: 6px;
  font-size: 15px;
  line-height: 20px;
}

.mobile-what-next-card button {
  width: 100%;
  height: 38px;
  margin-top: 13px;
  background: #ffffff;
  color: #1458d4;
}

.mobile-request-card,
.mobile-mode-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #ffffff;
}

.mobile-request-card + .mobile-request-card,
.mobile-mode-card + .mobile-mode-card {
  margin-top: 9px;
}

.mobile-request-card strong,
.mobile-mode-card strong,
.mobile-request-card span,
.mobile-mode-card span {
  display: block;
}

.mobile-request-card strong,
.mobile-mode-card strong {
  color: #111827;
  font-size: 14px;
}

.mobile-request-card span,
.mobile-mode-card span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.mobile-request-card em {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.mobile-request-card button,
.mobile-mode-card button {
  grid-column: 1 / -1;
  height: 36px;
  background: #edf4ff;
  color: #1458d4;
}

.mobile-ai-panel p {
  margin: 0;
  color: #52627a;
  font-size: 13px;
  line-height: 19px;
}

.mobile-ai-panel.active {
  box-shadow: inset 0 0 0 2px rgba(20, 88, 212, 0.16);
}

.mobile-ai-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mobile-ai-actions button {
  min-height: 42px;
  padding: 0 8px;
  font-size: 11px;
}

.mobile-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 14px 16px;
  border-top: 1px solid #dbe4f0;
  background: #ffffff;
}

.mobile-bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.mobile-bottom-nav button i {
  font-style: normal;
  font-size: 14px;
}

.mobile-bottom-nav button.active {
  background: #e8f1ff;
  color: #1458d4;
}

.mobile-device-frame {
  width: 418px;
  height: 872px;
  padding: 9px;
  border: 1px solid #293241;
  border-radius: 54px;
  background:
    linear-gradient(145deg, #252b35, #06080d 42%, #1b2028);
  box-shadow:
    0 38px 92px rgba(15, 23, 42, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 10px #070b12;
}

.mobile-device-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 49px;
  pointer-events: none;
}

.mobile-device-speaker {
  top: 18px;
  width: 112px;
  height: 27px;
  border-radius: 0 0 18px 18px;
  background: #05070c;
}

.mobile-device-speaker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #202938;
}

.mobile-device-side-button {
  position: absolute;
  width: 3px;
  border-radius: 999px;
  background: #202938;
}

.mobile-device-side-button.left {
  left: -3px;
  top: 146px;
  height: 76px;
}

.mobile-device-side-button.right {
  right: -3px;
  top: 184px;
  height: 104px;
}

.mobile-screen {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 44px;
  background: #f4f7fb;
}

.mobile-command-header {
  flex: 0 0 auto;
  height: 126px;
  padding: 10px 16px 12px;
  overflow: hidden;
  background: #0f192c;
  color: white;
}

.mobile-status-bar {
  height: 20px;
  padding: 0 6px;
  color: white;
}

.mobile-status-bar strong {
  font-size: 11px;
  font-weight: 800;
}

.mobile-system-icons {
  gap: 4px;
}

.mobile-system-icons i {
  width: 3px;
  background: #ffffff;
}

.mobile-system-icons i:nth-child(1) { height: 5px; }
.mobile-system-icons i:nth-child(2) { height: 8px; }
.mobile-system-icons i:nth-child(3) { height: 11px; }

.mobile-system-icons em {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: #1a56db;
  color: #ffffff;
  font-size: 8px;
  font-style: normal;
  line-height: 1;
}

.mobile-status-bar b {
  position: relative;
  width: 21px;
  height: 10px;
  border-color: #ffffff;
  background: #ffffff;
}

.mobile-status-bar b::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: #ffffff;
}

.mobile-system-row,
.mobile-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-system-row {
  margin-top: 8px;
}

.mobile-brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #1a253c;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.mobile-brand-lockup strong,
.mobile-brand-lockup em,
.mobile-page-title span,
.mobile-page-title strong,
.mobile-page-title em {
  display: block;
  font-style: normal;
}

.mobile-brand-lockup strong {
  font-size: 13px;
  font-weight: 500;
}

.mobile-brand-lockup em,
.mobile-page-title span,
.mobile-page-title em {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

.mobile-secure-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-secure-group b {
  color: #60a5fa;
  font-size: 12px;
}

.mobile-secure-group span {
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
}

.mobile-secure-group button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #1a253c;
  color: #ef4444;
  font-size: 12px;
}

.mobile-page-title {
  margin-top: 11px;
}

.mobile-page-title strong {
  margin-top: 2px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.mobile-profile-strip {
  display: grid;
  grid-template-columns: 38px 1fr 44px;
  gap: 9px;
  align-items: center;
  padding: 10px 14px 0;
}

.mobile-profile-strip .user-avatar {
  width: 38px;
  height: 38px;
}

.mobile-profile-strip span,
.mobile-profile-strip em {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.mobile-profile-strip strong {
  display: block;
  color: #1e293b;
  font-size: 15px;
}

.mobile-profile-strip button {
  width: 40px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #1a56db;
  color: white;
  font-weight: 900;
}

.mobile-workspace {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: #f4f7fb;
}

.mobile-profile-strip + .mobile-workspace {
  padding-top: 12px;
}

.mobile-global-search {
  display: grid;
  grid-template-columns: 21px 1fr auto;
  gap: 8px;
  align-items: center;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #dee5ee;
  border-radius: 12px;
  background: #ffffff;
}

.mobile-global-search span {
  color: #71829d;
  font-size: 18px;
}

.mobile-global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
}

.mobile-global-search b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcebff;
  color: #1a56db;
  font-size: 10px;
}

.mobile-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
}

.mobile-section-heading strong,
.mobile-section-heading span {
  display: block;
}

.mobile-section-heading strong {
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
}

.mobile-section-heading span {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
}

.mobile-section-heading button,
.mobile-section-heading em {
  border: 0;
  background: transparent;
  color: #1a56db;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mobile-kpi-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0;
}

.mobile-kpi-row article {
  padding: 12px;
  border-color: #dee5ee;
  border-radius: 12px;
}

.mobile-kpi-row article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-kpi-row i {
  color: #1a56db;
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
}

.mobile-kpi-row b {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1a56db;
}

.mobile-kpi-row strong {
  margin-top: 8px;
  color: #1e293b;
  font-size: 20px;
  font-weight: 400;
}

.mobile-kpi-row span {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

.mobile-kpi-row article.danger i,
.mobile-kpi-row article.danger strong {
  color: #dc2626;
}

.mobile-kpi-row article.danger b {
  background: #dc2626;
}

.mobile-alert-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #dee5ee;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
}

.mobile-alert-row i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-style: normal;
}

.mobile-alert-row.danger i { background: #fee2e2; color: #dc2626; }
.mobile-alert-row.warning i { background: #fff2c7; color: #d97706; }

.mobile-alert-row strong,
.mobile-alert-row em {
  display: block;
}

.mobile-alert-row strong {
  color: #1e293b;
  font-size: 13px;
}

.mobile-alert-row em {
  margin-top: 3px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-alert-row b {
  color: #dc2626;
  font-size: 10px;
}

.mobile-alert-row.warning b {
  color: #d97706;
}

.mobile-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-quick-action {
  min-height: 94px;
  padding: 12px;
  border: 1px solid #dee5ee;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
}

.mobile-quick-action i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
  border-radius: 8px;
  background: #dcebff;
  color: #1a56db;
  font-style: normal;
  font-weight: 900;
}

.mobile-quick-action.approval i { background: #ede9fe; color: #7c3aed; }
.mobile-quick-action.emergency i { background: #fee2e2; color: #dc2626; }

.mobile-quick-action strong,
.mobile-quick-action span {
  display: block;
}

.mobile-quick-action strong {
  color: #1e293b;
  font-size: 11px;
}

.mobile-quick-action span {
  margin-top: 5px;
  color: #64748b;
  font-size: 9px;
}

.mobile-continuity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #dcebff;
  border-radius: 12px;
  background: #ebf5ff;
  color: #1e293b;
  font-size: 11px;
}

.mobile-continuity b {
  color: #1a56db;
}

.mobile-continuity em {
  color: #64748b;
  font-size: 9px;
  font-style: normal;
}

.mobile-confirmation {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border-radius: 12px;
  background: #d8f8e8;
}

.mobile-confirmation b,
.mobile-confirmation em {
  color: #059669;
  font-style: normal;
  font-weight: 900;
}

.mobile-confirmation strong,
.mobile-confirmation span {
  display: block;
}

.mobile-confirmation strong {
  color: #1e293b;
  font-size: 13px;
}

.mobile-confirmation span {
  color: #64748b;
  font-size: 10px;
}

.mobile-queue-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 10px;
}

.mobile-queue-controls span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.mobile-queue-controls span.active {
  background: #dcebff;
  color: #1a56db;
}

.mobile-queue-controls em {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.mobile-request-card {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(15, 25, 44, 0.05);
}

.mobile-request-card:first-of-type {
  border-color: #d97706;
}

.mobile-request-card em {
  padding: 0;
  background: transparent;
  color: #d97706;
  font-size: 10px;
  text-transform: uppercase;
}

.mobile-request-card b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2c7;
  color: #d97706;
  font-size: 10px;
}

.mobile-back-button {
  height: 30px;
  margin-bottom: 10px;
  border: 0;
  background: transparent;
  color: #1a56db;
  font-weight: 800;
}

.mobile-detail-card {
  padding: 14px;
  border: 1px solid #d97706;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px rgba(15, 25, 44, 0.05);
}

.mobile-detail-card.danger { border-color: #dc2626; }
.mobile-detail-card.good { border-color: #059669; }

.mobile-detail-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mobile-detail-card header span,
.mobile-detail-card header strong,
.mobile-detail-card header em {
  display: block;
}

.mobile-detail-card header span {
  color: #d97706;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-detail-card.danger header span { color: #dc2626; }
.mobile-detail-card.good header span { color: #059669; }

.mobile-detail-card header strong {
  margin-top: 3px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
}

.mobile-detail-card header em {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.mobile-detail-card header b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2c7;
  color: #d97706;
  font-size: 10px;
}

.mobile-detail-card.danger header b { background: #fee2e2; color: #dc2626; }
.mobile-detail-card.good header b { background: #d8f8e8; color: #059669; }

.mobile-change-comparison {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.mobile-change-comparison span,
.mobile-change-comparison strong {
  display: block;
}

.mobile-change-comparison span {
  color: #94a3b8;
  font-size: 9px;
  text-transform: uppercase;
}

.mobile-change-comparison strong {
  margin-top: 3px;
  color: #1e293b;
  font-size: 14px;
}

.mobile-change-comparison i {
  color: #d97706;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.mobile-change-comparison div:last-child {
  text-align: right;
}

.mobile-change-comparison div:last-child strong {
  color: #d97706;
}

.mobile-risk-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.mobile-risk-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.mobile-risk-list b {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
}

.mobile-risk-list b.danger { background: #fee2e2; color: #dc2626; }
.mobile-risk-list b.good { background: #d8f8e8; color: #059669; }
.mobile-risk-list b.warning { background: #fff2c7; color: #d97706; }

.mobile-request-note {
  margin-top: 12px;
}

.mobile-request-note span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.mobile-request-note p {
  margin: 4px 0 0;
  color: #1e293b;
  font-size: 11px;
  line-height: 1.35;
}

.mobile-decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.mobile-decision-actions button {
  height: 40px;
  border: 1px solid #dee5ee;
  border-radius: 8px;
  background: white;
  color: #1e293b;
  font-weight: 900;
}

.mobile-decision-actions button:last-child {
  border-color: #1a56db;
  background: #1a56db;
  color: white;
}

.mobile-detail-card small {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 9px;
  text-align: center;
}

.mobile-camera-grid {
  display: grid;
  gap: 10px;
}

.mobile-camera-feed {
  overflow: hidden;
  border: 1px solid #dee5ee;
  border-radius: 14px;
  background: white;
}

.mobile-camera-feed > div {
  position: relative;
  height: 112px;
  background:
    linear-gradient(135deg, rgba(15, 25, 44, 0.75), rgba(15, 25, 44, 0.26)),
    linear-gradient(90deg, #b9c7d6 0 18%, #e5edf6 18% 22%, #93a7bc 22% 36%, #d7e2ee 36% 43%, #8ca1b7 43% 100%);
}

.mobile-camera-feed > div::before {
  content: "LIVE";
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  font-size: 9px;
  font-weight: 900;
}

.mobile-camera-feed > div span {
  position: absolute;
  bottom: 18px;
  width: 26px;
  height: 34px;
  border-radius: 999px 999px 6px 6px;
  background: rgba(15, 23, 42, 0.38);
}

.mobile-camera-feed > div span:nth-child(1) { left: 68px; }
.mobile-camera-feed > div span:nth-child(2) { left: 155px; height: 44px; }
.mobile-camera-feed > div span:nth-child(3) { right: 58px; }

.mobile-camera-feed footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.mobile-camera-feed strong,
.mobile-camera-feed em {
  font-style: normal;
}

.mobile-camera-feed strong {
  color: #1e293b;
  font-size: 13px;
}

.mobile-camera-feed em {
  color: #059669;
  font-size: 11px;
  font-weight: 800;
}

.mobile-camera-feed.warn em { color: #d97706; }
.mobile-camera-feed.alert em { color: #dc2626; }

.mobile-security-note,
.mobile-emergency-summary {
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  background: #ebf5ff;
  color: #1e293b;
}

.mobile-security-note strong,
.mobile-security-note span,
.mobile-emergency-summary span,
.mobile-emergency-summary strong,
.mobile-emergency-summary p {
  display: block;
}

.mobile-security-note span,
.mobile-emergency-summary p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 17px;
}

.mobile-scenario-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid #dee5ee;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
}

.mobile-scenario-card.selected {
  border-color: #1a56db;
  box-shadow: inset 0 0 0 1px rgba(26, 86, 219, 0.25);
}

.mobile-scenario-card strong,
.mobile-scenario-card span {
  display: block;
}

.mobile-scenario-card strong {
  color: #1e293b;
  font-size: 13px;
}

.mobile-scenario-card span {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 16px;
}

.mobile-scenario-card em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.mobile-scenario-card.selected em {
  background: #dcebff;
  color: #1a56db;
}

.mobile-emergency-summary span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-emergency-summary strong {
  margin-top: 4px;
  color: #1e293b;
  font-size: 16px;
}

.mobile-emergency-summary button {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #1a56db;
  color: white;
  font-weight: 900;
}

.mobile-forecast-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
}

.mobile-forecast-control {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #dee5ee;
  border-radius: 8px;
  background: #ffffff;
}

.mobile-forecast-control span {
  color: #1a56db;
  font-size: 15px;
  font-weight: 900;
}

.mobile-forecast-control strong {
  color: #1e293b;
  font-size: 12px;
  font-weight: 500;
}

.mobile-forecast-control b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcebff;
  color: #1a56db;
  font-size: 10px;
}

.mobile-forecast-control em {
  color: #64748b;
  font-style: normal;
  font-weight: 900;
}

.mobile-forecast-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.mobile-forecast-overview strong,
.mobile-forecast-overview span {
  display: block;
}

.mobile-forecast-overview strong {
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
}

.mobile-forecast-overview span {
  color: #64748b;
  font-size: 9px;
}

.mobile-forecast-overview em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2c7;
  color: #d97706;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-forecast-overview i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #d97706;
}

.mobile-forecast-card {
  height: 188px;
  overflow: hidden;
  padding: 10px 11px 9px;
  border: 1px solid #dee5ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 25, 44, 0.05);
}

.mobile-forecast-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px;
}

.mobile-forecast-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mobile-forecast-title i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ebf5ff;
  color: #1a56db;
  font-style: normal;
  font-weight: 900;
}

.mobile-forecast-title strong,
.mobile-forecast-title span {
  display: block;
}

.mobile-forecast-title strong {
  color: #1e293b;
  font-size: 12px;
}

.mobile-forecast-title span {
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-forecast-card header > b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
}

.mobile-forecast-card header > b.warning {
  background: #fff2c7;
  color: #d97706;
}

.mobile-forecast-card header > b.danger {
  background: #fee2e2;
  color: #dc2626;
}

.mobile-forecast-values {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 26px;
  margin-top: 4px;
}

.mobile-forecast-values strong,
.mobile-forecast-values b,
.mobile-forecast-values span {
  display: inline-block;
}

.mobile-forecast-values strong {
  color: #1e293b;
  font-size: 20px;
  font-weight: 400;
}

.mobile-forecast-values b {
  color: #d97706;
  font-size: 11px;
}

.mobile-forecast-card.danger .mobile-forecast-values b {
  color: #dc2626;
}

.mobile-forecast-values span {
  margin-left: 5px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

.mobile-forecast-values div:last-child span {
  display: block;
  margin: 1px 0 0;
  font-weight: 400;
}

.mobile-forecast-chart {
  position: relative;
  height: 60px;
  margin-top: 4px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 0 30%, rgba(148, 163, 184, 0.16) 30% calc(30% + 1px), transparent calc(30% + 1px) 62%, rgba(148, 163, 184, 0.16) 62% calc(62% + 1px), transparent calc(62% + 1px) 94%, rgba(148, 163, 184, 0.16) 94% calc(94% + 1px), transparent calc(94% + 1px));
}

.mobile-risk-band {
  position: absolute;
  inset: 0 0 auto;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 242, 199, 0.62);
}

.mobile-forecast-card.danger .mobile-risk-band {
  background: rgba(254, 226, 226, 0.68);
}

.mobile-risk-band em {
  position: absolute;
  top: 4px;
  right: 0;
  color: #d97706;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.mobile-forecast-card.danger .mobile-risk-band em {
  color: #dc2626;
}

.mobile-now-line {
  position: absolute;
  z-index: 2;
  left: 7px;
  top: 0;
  bottom: 2px;
  border-left: 1px dashed #7bacfc;
}

.mobile-forecast-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mobile-forecast-chart polygon {
  fill: rgba(123, 172, 252, 0.18);
}

.mobile-forecast-chart polyline {
  fill: none;
  stroke: #7bacfc;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.mobile-forecast-chart > i {
  position: absolute;
  left: var(--peak-x);
  top: var(--peak-y);
  z-index: 3;
  width: 8px;
  height: 8px;
  border: 2px solid #fff2c7;
  border-radius: 999px;
  background: #d97706;
  transform: translate(-50%, -50%);
}

.mobile-forecast-card.danger .mobile-forecast-chart > i {
  border-color: #fee2e2;
  background: #dc2626;
}

.mobile-forecast-axis {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 8px;
}

.mobile-forecast-card footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.mobile-forecast-card footer i {
  color: #1a56db;
  font-style: normal;
  font-weight: 900;
}

.mobile-forecast-card footer span {
  overflow: hidden;
  color: #1e293b;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-forecast-card footer button {
  border: 0;
  background: transparent;
  color: #1a56db;
  font-size: 9px;
  font-weight: 900;
}

.mobile-ai-panel {
  margin: 14px;
  border-radius: 18px;
}

.mobile-ai-panel {
  position: relative;
}

.mobile-ai-orb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, #ffffff 0 7%, transparent 8%),
    linear-gradient(135deg, #60a5fa, #1a56db 52%, #6d28d9);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(26, 86, 219, 0.3);
  animation: aiOrbPulse 1450ms ease-in-out infinite;
}

.mobile-ai-panel > .mobile-ai-orb {
  margin: 0 auto 14px;
}

.mobile-ai-orb.active {
  animation: aiOrbPulse 900ms ease-in-out infinite, aiOrbSpin 2800ms linear infinite;
}

@keyframes aiOrbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 34px rgba(26, 86, 219, 0.28); }
  50% { transform: scale(1.06); box-shadow: 0 18px 42px rgba(26, 86, 219, 0.42); }
}

@keyframes aiOrbSpin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.mobile-ai-conversation {
  position: relative;
}

.mobile-ai-conversation > .mobile-ai-orb {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 0 12px auto;
}

.mobile-chat-thread {
  display: grid;
  gap: 9px;
}

.mobile-chat-bubble {
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(10px);
  animation: aiBubbleIn 420ms ease forwards;
}

.mobile-chat-bubble:nth-child(2) {
  animation-delay: 360ms;
}

.mobile-chat-bubble span,
.mobile-chat-bubble p {
  display: block;
}

.mobile-chat-bubble span {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.mobile-chat-bubble p {
  margin: 0;
  color: #1e293b;
  font-size: 12px;
  line-height: 17px;
}

.mobile-chat-bubble.director {
  margin-left: auto;
  background: #dcebff;
}

.mobile-chat-bubble.ai {
  background: #ffffff;
  border: 1px solid #dee5ee;
}

@keyframes aiBubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-baggage-dashboard {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dee5ee;
  border-radius: 14px;
  background: #ffffff;
  opacity: 0;
  transform: translateY(10px);
  animation: aiBubbleIn 420ms ease 760ms forwards;
}

.mobile-baggage-dashboard .mobile-section-heading {
  margin-top: 0;
}

.mobile-baggage-dashboard .mobile-section-heading em {
  color: #d97706;
}

.mobile-baggage-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-baggage-metrics article {
  padding: 9px;
  border-radius: 10px;
  background: #f8fafc;
}

.mobile-baggage-metrics span,
.mobile-baggage-metrics strong,
.mobile-baggage-metrics em {
  display: block;
}

.mobile-baggage-metrics span,
.mobile-baggage-metrics em {
  color: #64748b;
  font-size: 9px;
  font-style: normal;
}

.mobile-baggage-metrics strong {
  margin: 3px 0;
  color: #1e293b;
  font-size: 18px;
}

.mobile-baggage-metrics .warning strong {
  color: #d97706;
}

.mobile-claim-bars {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-claim-bars span {
  display: grid;
  grid-template-columns: 52px 1fr 42px;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 10px;
}

.mobile-claim-bars i {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-claim-bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--claim-fill);
  border-radius: inherit;
  background: #1a56db;
}

.mobile-chat-bubble.ask-video {
  margin-top: 12px;
  animation-delay: 1120ms;
}

.mobile-chat-bubble.ask-video button {
  width: 100%;
  height: 34px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: #1a56db;
  color: white;
  font-weight: 900;
}

.mobile-device-frame.landscape-cctv {
  width: 872px;
  height: 418px;
  animation: phoneRotateLandscape 820ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
  transform-origin: center;
}

@keyframes phoneRotateLandscape {
  from {
    transform: rotate(-88deg) scale(0.48);
    opacity: 0.1;
    filter: blur(4px);
    border-radius: 64px;
  }
  62% {
    transform: rotate(3deg) scale(1.015);
    opacity: 1;
    filter: blur(0);
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.mobile-device-frame.landscape-cctv.cctv-fadeout {
  animation: phoneCctvReturn 760ms cubic-bezier(0.42, 0, 0.2, 1) both;
}

@keyframes phoneCctvReturn {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  45% {
    transform: rotate(0deg) scale(0.985);
    opacity: 1;
  }
  100% {
    transform: rotate(88deg) scale(0.56);
    opacity: 0;
    filter: blur(6px);
  }
}

.mobile-device-frame.landscape-cctv .mobile-device-speaker {
  left: 20px;
  top: 50%;
  width: 27px;
  height: 112px;
  border-radius: 0 18px 18px 0;
  transform: translateY(-50%);
}

.mobile-device-frame.landscape-cctv .mobile-device-speaker::after {
  left: 11px;
  top: 50%;
  width: 4px;
  height: 42px;
  transform: translateY(-50%);
}

.mobile-device-frame.landscape-cctv .mobile-screen {
  border-radius: 38px;
}

.mobile-device-frame.landscape-cctv .mobile-bottom-nav {
  display: none;
}

.mobile-ai-cctv-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #030712;
}

.mobile-cctv-feed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #030712;
}

.mobile-cctv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  filter: saturate(1.04) contrast(1.03);
  animation: cctvVideoIn 680ms ease both;
}

@keyframes cctvVideoIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

.mobile-cctv-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.04), rgba(3, 7, 18, 0.46)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.mobile-cctv-feed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(3, 7, 18, 0.35));
  pointer-events: none;
}

.mobile-device-frame.cctv-fadeout .mobile-cctv-video,
.mobile-device-frame.cctv-fadeout .mobile-cctv-feed::before,
.mobile-device-frame.cctv-fadeout .mobile-cctv-feed::after {
  animation: cctvVideoFadeOut 680ms ease both;
}

@keyframes cctvVideoFadeOut {
  to {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(4px) saturate(0.65);
  }
}

.mobile-cctv-live,
.mobile-cctv-time {
  position: absolute;
  z-index: 2;
  top: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.68);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.mobile-cctv-live {
  left: 22px;
}

.mobile-cctv-time {
  right: 22px;
}

.camera-person {
  position: absolute;
  z-index: 1;
  bottom: 88px;
  width: 24px;
  height: 58px;
  border-radius: 999px 999px 8px 8px;
  background: #1f2937;
  box-shadow: 0 -19px 0 -5px #9b6a4a;
  animation: cctvDrift 3600ms ease-in-out infinite alternate;
}

.person-one { left: 28%; }
.person-two { left: 48%; height: 68px; animation-delay: 420ms; }
.person-three { left: 68%; animation-delay: 760ms; }

.camera-bag {
  position: absolute;
  z-index: 1;
  bottom: 70px;
  width: 38px;
  height: 24px;
  border-radius: 6px;
  background: #0f172a;
  animation: bagMove 4200ms linear infinite;
}

.bag-one { left: 36%; }
.bag-two { left: 58%; animation-delay: 1100ms; background: #7f1d1d; }

@keyframes cctvDrift {
  to { transform: translateX(14px); }
}

@keyframes bagMove {
  to { transform: translateX(110px); }
}

.mobile-ai-feed-assist {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 52px minmax(230px, 300px);
  gap: 12px;
  align-items: end;
}

.mobile-ai-feed-assist > div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  backdrop-filter: blur(10px);
}

.mobile-ai-feed-assist strong,
.mobile-ai-feed-assist span {
  display: block;
}

.mobile-ai-feed-assist strong {
  font-size: 13px;
}

.mobile-ai-feed-assist span {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 16px;
}

.mobile-ai-feed-assist button:not(.mobile-ai-orb) {
  width: 100%;
  height: 34px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: #1a56db;
  color: white;
  font-weight: 900;
}

.mobile-bottom-nav {
  grid-template-columns: repeat(5, 1fr);
  flex: 0 0 64px;
  gap: 0;
  padding: 8px;
  border-color: #2a3a56;
  background: #0f192c;
}

.mobile-bottom-nav button {
  height: 48px;
  color: #94a3b8;
  border-radius: 8px;
}

.mobile-bottom-nav button.active {
  background: #1a253c;
  color: white;
}

.gate-login-card {
  width: min(560px, 100%);
  margin: 120px auto 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.gate-login-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.gate-login-brand h1 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 22px;
  line-height: 26px;
}

.gate-login-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 19px;
}

.gate-login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gate-login-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gate-login-field select,
.gate-login-field input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 700;
}

.gate-password-field {
  margin-bottom: 16px;
}

.gate-login-field input:disabled {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
  letter-spacing: 3px;
}

.gate-flight-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.gate-flight-preview strong,
.gate-flight-preview span {
  display: block;
}

.gate-flight-preview strong {
  color: var(--ink);
  font-size: 16px;
}

.gate-flight-preview span {
  color: var(--muted);
}

.gate-flight-preview b {
  color: var(--ink);
}

.gate-flight-preview em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.gate-login-button {
  width: 100%;
  height: 40px;
}

.gate-empty {
  margin: 16px 0;
  color: var(--muted);
}

.gate-session-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.gate-session-shell span,
.gate-session-shell em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.gate-session-shell strong {
  display: block;
  color: var(--ink);
}

.gate-logout-button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #dc2626;
  font-weight: 900;
}

.baggage-login-card {
  margin-top: 110px;
}

.baggage-board {
  min-height: 100vh;
  overflow: auto;
  background: #eef2f6;
  color: #101828;
}

.baggage-board svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.baggage-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  padding: 0 40px;
  background: #0b1728;
  color: white;
}

.baggage-station-group,
.baggage-tabs,
.baggage-session-actions,
.baggage-belt-title,
.baggage-context-bar,
.baggage-guidance,
.baggage-summary,
.baggage-queue-heading,
.baggage-queue-heading span,
.baggage-flight-queue,
.baggage-assignment,
.baggage-airline,
.baggage-airline-logo,
.baggage-row-actions,
.baggage-action,
.baggage-queue-controls {
  display: flex;
  align-items: center;
}

.baggage-station-group {
  gap: 24px;
}

.baggage-station-group span,
.baggage-belt-title span {
  display: block;
  color: #9eadbe;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.baggage-station-group strong,
.baggage-belt-title strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 28px;
  line-height: 1;
}

.baggage-station-group > i {
  width: 2px;
  height: 48px;
  background: #3a4a60;
}

.baggage-belt-title {
  gap: 12px;
}

.baggage-belt-title b {
  display: grid;
  place-items: center;
  color: #d9e1ea;
  font-size: 30px;
}

.baggage-tabs {
  gap: 8px;
}

.baggage-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
  height: 64px;
  padding: 0 24px;
  border: 2px solid #506079;
  border-radius: 10px;
  background: #0b1728;
  color: #d9e1ea;
  font-size: 18px;
  font-weight: 900;
}

.baggage-tabs button.active {
  border-color: white;
  background: white;
  color: #0b1728;
}

.baggage-tabs button i,
.baggage-online i,
.baggage-summary b i,
.baggage-airline em i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #17b26a;
}

.baggage-tabs button b {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #0b1728;
  color: white;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 15px;
}

.baggage-session-actions {
  gap: 12px;
}

.baggage-online,
.baggage-night-btn,
.baggage-logout {
  height: 56px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
}

.baggage-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #14243a;
  color: white;
}

.baggage-night-btn {
  width: 64px;
  border: 2px solid #506079;
  background: transparent;
  color: white;
  font-size: 24px;
}

.baggage-logout {
  padding: 0 24px;
  background: #d92d20;
  color: white;
}

.baggage-context-bar {
  justify-content: space-between;
  height: 100px;
  padding: 0 40px;
  border-bottom: 1px solid #cbd4de;
  background: white;
}

.baggage-guidance {
  gap: 16px;
}

.baggage-guidance > b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #e9f0ff;
  color: #155eef;
  font-size: 28px;
}

.baggage-guidance strong,
.baggage-guidance em {
  display: block;
}

.baggage-guidance strong {
  font-size: 20px;
  font-weight: 900;
}

.baggage-guidance em {
  margin-top: 4px;
  color: #526173;
  font-style: normal;
  font-weight: 700;
}

.baggage-summary {
  gap: 32px;
}

.baggage-summary em,
.baggage-progress em {
  display: block;
  color: #526173;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.baggage-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}

.baggage-summary b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ddf5e8;
  color: #178a50;
}

.baggage-workflow {
  padding: 24px 40px;
}

.baggage-queue-heading {
  justify-content: space-between;
  height: 56px;
}

.baggage-queue-heading strong {
  font-size: 28px;
  font-weight: 950;
}

.baggage-queue-heading span {
  gap: 12px;
}

.baggage-queue-heading span b {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0b1728;
  color: white;
  font-family: "Roboto Mono", ui-monospace, monospace;
}

.baggage-queue-heading em {
  color: #526173;
  font-style: normal;
  font-weight: 800;
}

.baggage-flight-queue {
  flex-direction: column;
  gap: 14px;
}

.baggage-assignment {
  width: 100%;
  min-height: 202px;
  gap: 24px;
  padding: 14px;
  border: 1px solid #cbd4de;
  border-radius: 14px;
  background: white;
  box-shadow: 0 3px 10px rgba(11, 23, 40, 0.1);
}

.baggage-assignment.closed {
  border-width: 2px;
  border-color: #8d9aaa;
  background: #f6f8fa;
}

.baggage-airline {
  width: 236px;
  gap: 16px;
  overflow: hidden;
}

.baggage-airline-logo {
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
}

.baggage-airline-logo.emirates { background: #9d1c31; }
.baggage-airline-logo.delta { background: #0c2340; }
.baggage-airline-logo.united {
  border: 2px solid #cbd4de;
  background: white;
}

.baggage-airline-logo img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.baggage-airline strong {
  display: block;
  color: #101828;
  font-size: 20px;
  font-weight: 900;
}

.baggage-airline em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.baggage-airline em.loading {
  background: #e9f0ff;
  color: #0647c8;
}

.baggage-airline em.ready {
  background: #fef0c7;
  color: #b54708;
}

.baggage-airline em.ready i { background: #f79009; }

.baggage-airline em.closed {
  background: #ddf5e8;
  color: #178a50;
}

.baggage-divider {
  width: 1px;
  height: 138px;
  background: #cbd4de;
}

.baggage-flight-context {
  width: 472px;
  overflow: hidden;
}

.baggage-flight-context div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #101828;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-weight: 900;
}

.baggage-flight-context div strong {
  font-size: 34px;
}

.baggage-flight-context div b {
  font-size: 42px;
}

.baggage-flight-context p {
  overflow: hidden;
  margin: 10px 0 12px;
  color: #101828;
  font-size: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.baggage-flight-context span {
  display: flex;
  gap: 24px;
}

.baggage-flight-context span em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #526173;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.baggage-progress {
  width: 300px;
}

.baggage-progress div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.baggage-progress strong {
  display: block;
  margin-top: 4px;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 28px;
}

.baggage-progress div > b {
  color: #155eef;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 18px;
}

.baggage-progress p {
  margin: 12px 0 0;
  color: #526173;
  font-weight: 800;
}

.baggage-progress p.complete,
.baggage-assignment.closed .baggage-progress div > b {
  color: #178a50;
}

.baggage-row-actions {
  flex: 1;
  gap: 12px;
  align-self: stretch;
  min-width: 0;
}

.baggage-action {
  display: flex;
  flex: 1;
  min-width: 150px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: white;
  text-align: center;
}

.baggage-action svg {
  width: 30px;
  height: 30px;
}

.baggage-action strong {
  font-size: 18px;
  font-weight: 950;
}

.baggage-action span {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.9;
}

.baggage-action.primary {
  border-color: #155eef;
  background: #155eef;
}

.baggage-action.done {
  border-color: #178a50;
  background: #178a50;
}

.baggage-action.danger {
  border-color: #d92d20;
  background: #d92d20;
}

.baggage-action.disabled {
  border-color: #cbd4de;
  background: #e6ebf0;
  color: #7d8998;
}

.baggage-action.wide {
  flex: 1 1 100%;
}

.baggage-queue-controls {
  gap: 16px;
  height: 96px;
}

.baggage-queue-controls button,
.baggage-queue-controls span {
  display: grid;
  place-items: center;
  height: 72px;
  border: 2px solid #cbd4de;
  border-radius: 10px;
  background: #f6f8fa;
  color: #7d8998;
  font-weight: 900;
}

.baggage-queue-controls button {
  width: 220px;
}

.baggage-queue-controls span {
  flex: 1;
  border-color: #0b1728;
  background: white;
  color: #101828;
  font-family: "Roboto Mono", ui-monospace, monospace;
}

.baggage-board.night {
  background: #0b1220;
}

.baggage-board.night .baggage-context-bar,
.baggage-board.night .baggage-assignment,
.baggage-board.night .baggage-queue-controls span {
  border-color: #263448;
  background: #111827;
  color: #e5edf7;
}

.baggage-board.night .baggage-guidance strong,
.baggage-board.night .baggage-summary strong,
.baggage-board.night .baggage-queue-heading strong,
.baggage-board.night .baggage-airline strong,
.baggage-board.night .baggage-flight-context div,
.baggage-board.night .baggage-flight-context p,
.baggage-board.night .baggage-progress strong {
  color: #e5edf7;
}

.time-spacer { width: 139px; }
.center-controls,
.calendar-selector,
.actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions-group { gap: 4px; }

.tabs-group,
.view-switcher {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  background: var(--line);
}

.time-tab,
.tab-nav,
.view-switcher button {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.time-tab { padding: 0 16px; }
.tab-nav {
  width: 28px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
}

.time-tab.active,
.view-switcher button.active {
  background: var(--blue);
  color: white;
  font-weight: 700;
}

.view-switcher .table-auto-now {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.view-switcher .theme-toggle {
  padding: 0 10px;
}

.theme-icon-button {
  font-size: 16px;
  font-weight: 900;
}

.view-switcher .table-auto-now span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted);
}

.view-switcher .table-auto-now.active {
  background: #dcfce7;
  color: #047857;
}

.view-switcher .table-auto-now.active span {
  background: #10b981;
}

.calendar-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.calendar-pill input {
  width: 132px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  outline: 0;
}

.calendar-pill strong {
  display: none;
}

.primary-action {
  height: 28px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  height: 110px;
  margin-top: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 22px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card.warning .stat-icon { color: var(--orange); background: #fffbeb; }
.stat-value { font-size: 26px; font-weight: 750; line-height: 31px; }
.stat-title { margin-top: 4px; color: var(--muted); font-weight: 600; }
.stat-trend { margin-top: 7px; color: var(--green); font-size: 12px; }
.stat-card.warning .stat-trend { color: var(--red); }

.workspace.table-auto-mode .stats-row {
  height: 74px;
  margin-top: 12px;
}

.workspace.table-auto-mode .stat-card {
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
}

.workspace.table-auto-mode .stat-icon {
  width: 34px;
  height: 34px;
}

.workspace.table-auto-mode .stat-icon svg {
  width: 18px;
  height: 18px;
}

.workspace.table-auto-mode .stat-value {
  font-size: 20px;
  line-height: 23px;
}

.workspace.table-auto-mode .stat-title {
  margin-top: 1px;
  font-size: 12px;
}

.workspace.table-auto-mode .stat-trend {
  display: none;
}

.chart-panel {
  height: 141px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.workspace.table-auto-mode .chart-panel {
  height: 92px;
  margin-top: 12px;
  padding: 10px 16px;
}

.workspace.table-auto-mode .chart-header strong {
  font-size: 12px;
}

.workspace.table-auto-mode .histogram-wrap {
  height: 50px;
  margin-top: 8px;
}

.workspace.table-auto-mode .bars-area {
  height: 34px;
}

.workspace.table-auto-mode .toolbar-row {
  margin-top: 12px;
}

.workspace.table-auto-mode .table-panel {
  height: calc(100vh - 366px);
  min-height: 520px;
  margin-top: 12px;
}

.workspace.table-auto-mode .pagination-row {
  height: 30px;
  margin-top: 8px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 17px;
}

.chart-header strong { font-size: 14px; }
.slim-stats {
  display: none;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.slim-stats strong {
  color: var(--ink);
  font-size: 12px;
}

.slim-stats .attention strong { color: var(--red); }

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
.departures { background: var(--blue-2); }
.arrivals { background: var(--sky); }
.irregular { background: var(--red); }

.histogram-wrap {
  position: relative;
  height: 80px;
  margin-top: 12px;
  cursor: col-resize;
  user-select: none;
}

.bars-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 60px;
  overflow: hidden;
}

.stacked-bar {
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
  width: 5px;
  overflow: hidden;
}

.bar-segment {
  width: 5px;
  border-radius: 1px;
}

.needle {
  position: absolute;
  top: -7px;
  left: 70%;
  z-index: 1;
  width: 10px;
  height: 68px;
  border-left: 2px dashed var(--orange);
  transform: translateX(-1px);
  pointer-events: none;
}

.needle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--orange);
}

.time-labels {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-size: 10px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  margin-top: 20px;
}

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

select,
.more-filters,
.reset-filters {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 600;
}

.more-filters {
  color: var(--blue);
  font-weight: 700;
}

.reset-filters {
  color: var(--muted);
  font-weight: 700;
}

.reset-filters:hover {
  border-color: #bfdbfe;
  color: var(--blue);
  background: #eff6ff;
}

.more-filters.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.view-switcher button {
  padding: 0 14px;
}

.table-panel {
  height: calc(100vh - 592px);
  min-height: 328px;
  margin-top: 20px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.glance-panel {
  display: none;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - 363px);
  min-height: 520px;
  margin-top: 16px;
}

.glance-rail {
  --rail-marker: 50%;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  padding: 18px 16px 18px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.glance-rail::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-2), var(--orange));
}

.glance-rail::after {
  content: "";
  position: absolute;
  left: 8px;
  top: clamp(20px, var(--rail-marker), calc(100% - 20px));
  width: 12px;
  height: 12px;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 1px #fed7aa;
  transform: translateY(-50%);
  transition: top 220ms ease-in-out;
}

.rail-kicker {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glance-rail strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 28px;
}

.glance-rail span:not(.rail-kicker) {
  color: var(--muted);
  font-weight: 600;
}

.auto-follow-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.auto-follow-toggle span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
}

.auto-follow-toggle.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--blue);
}

.auto-follow-toggle.active span {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.glance-scroll {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.glance-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(0);
  opacity: 1;
  transition: transform 220ms ease-in-out, opacity 220ms ease-in-out;
}

.glance-row {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 0 0 1px #e7ebf1;
}

.glance-row.featured-row {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  background: white;
}

.glance-row.compact-row {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.glance-grid.is-animating {
  transform: translateY(8px);
  opacity: 0.72;
}

.flight-tile {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.flight-tile.status-on-time,
.flight-tile.status-boarding,
.flight-tile.status-arrived,
.flight-tile.status-departed,
.flight-tile.status-scheduled {
  color: var(--ink);
  background: white;
}

.flight-tile:hover,
.flight-tile:focus-visible,
.flight-tile.selected {
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  outline: 0;
}

.flight-tile.selected {
  box-shadow: inset 3px 0 0 var(--blue), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.flight-tile.irregular {
  border-color: #fed7aa;
  background: #fffaf0;
}

.flight-tile.irregular::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: var(--orange);
}

.flight-tile.irregular.status-cancelled::before {
  background: var(--red);
}

.flight-tile.irregular.status-cancelled {
  border-color: #fecaca;
  background: #fff5f5;
}

.flight-tile.irregular.status-gate-change::before {
  background: var(--orange);
}

.flight-tile.featured {
  min-height: 132px;
  padding: 14px 18px 12px 18px;
}

.tile-topline,
.tile-main,
.tile-meta,
.flight-tile.compact {
  display: flex;
  align-items: center;
}

.tile-topline {
  justify-content: space-between;
  gap: 12px;
}

.tile-topline > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-featured-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  text-transform: capitalize;
}

.tile-featured-status.status-on-time,
.tile-featured-status.status-arrived {
  color: #166534;
}

.tile-featured-status.status-boarding,
.tile-featured-status.status-scheduled {
  color: var(--blue);
}

.tile-featured-status.status-departed {
  color: #64748b;
}

.tile-featured-status.highlight {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.tile-featured-status.status-delayed,
.tile-featured-status.status-gate-change {
  background: #fef3c7;
  color: #c2410c;
}

.tile-featured-status.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.tile-main {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 8px;
}

.tile-main .airline-logo {
  flex: 0 0 78px;
  width: 78px;
  height: 30px;
}

.tile-flight-code {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.tile-flight-code strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1;
}

.flight-tile.compact strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-tile.compact span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-meta {
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.tile-meta span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-meta span:nth-child(2) {
  align-items: center;
  text-align: center;
}

.tile-meta span:nth-child(3) {
  align-items: center;
  text-align: center;
}

.tile-meta span:last-child {
  align-items: flex-end;
  text-align: right;
}

.tile-meta em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.tile-meta strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.15;
}

.tile-meta span:first-child strong {
  font-size: 18px;
}

.tile-meta small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.flight-tile.compact {
  min-height: 64px;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 10px 11px 16px;
}

.compact-left {
  flex: 1 1 auto;
  min-width: 0;
}

.compact-left strong {
  font-size: 13px;
  line-height: 1.15;
}

.compact-left span {
  margin-top: 6px;
  font-weight: 400;
}

.compact-left .compact-flight-line {
  color: #3c7ad8;
}

.compact-right {
  display: flex;
  flex: 0 0 82px;
  min-width: 82px;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.flight-tile.compact .tile-time {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

.tile-alert {
  flex: 0 0 auto;
  max-width: 82px;
  min-width: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: transparent;
  color: #92400e;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  text-transform: capitalize;
  white-space: nowrap;
}

.tile-alert.quiet {
  min-width: auto;
  max-width: 82px;
  background: transparent;
}

.tile-alert.status-on-time,
.tile-alert.status-arrived {
  color: #166534;
}

.tile-alert.status-boarding,
.tile-alert.status-scheduled {
  color: var(--blue);
}

.tile-message-indicator {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: var(--blue);
  vertical-align: middle;
}

.tile-alert .tile-message-indicator {
  margin-right: 5px;
}

.tile-message-indicator svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-cs {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 14px;
  margin-left: 4px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
}

.workspace.glance-mode .flight-tile.regular .status-badge {
  width: auto;
  max-width: none;
  background: transparent;
  color: var(--ink);
}

.workspace.glance-mode .flight-tile.irregular .status-badge.status-gate-change {
  color: #92400e;
  background: #ffedd5;
}

.workspace.glance-mode .flight-tile.irregular .status-badge.status-cancelled {
  color: #991b1b;
  background: #fee2e2;
}

.flight-tile.compact.status-delayed .tile-alert,
.flight-tile.compact.status-gate-change .tile-alert {
  color: #c2410c;
}

.flight-tile.compact.status-cancelled .tile-alert {
  color: #b91c1c;
}

.flight-tile.compact.status-departed .tile-alert {
  color: #64748b;
}

.workspace.glance-mode .stats-row {
  height: 0;
  margin-top: 8px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.workspace.glance-mode .chart-panel {
  height: 62px;
  margin-top: 14px;
  padding: 8px 16px 6px;
  border-radius: 10px;
}

.workspace.glance-mode .chart-header {
  height: 15px;
}

.workspace.glance-mode .chart-header strong {
  font-size: 12px;
}

.workspace.glance-mode .slim-stats {
  display: flex;
}

.workspace.glance-mode .legend {
  gap: 12px;
}

.workspace.glance-mode .histogram-wrap {
  height: 25px;
  margin-top: 6px;
}

.workspace.glance-mode .bars-area {
  height: 19px;
}

.workspace.glance-mode .stacked-bar,
.workspace.glance-mode .bar-segment {
  width: 3px;
}

.workspace.glance-mode .needle {
  top: -1px;
  height: 24px;
}

.workspace.glance-mode .time-labels {
  display: none;
}

.workspace.glance-mode .table-panel {
  display: none;
}

.workspace.glance-mode .glance-panel {
  display: grid;
}

.app-shell.auto-follow-mode .workspace.glance-mode .glance-panel {
  grid-template-columns: 150px minmax(0, 1fr);
  height: calc(100vh - 347px);
}

.app-shell.auto-follow-mode .workspace.glance-mode .glance-grid {
  gap: 10px;
}

.app-shell.auto-follow-mode .workspace.glance-mode .glance-row {
  gap: 10px;
}

.app-shell.auto-follow-mode .workspace.glance-mode .glance-row.featured-row {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.app-shell.auto-follow-mode .workspace.glance-mode .glance-row.compact-row {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.workspace.glance-mode .pagination-row {
  margin-top: 14px;
}

.app-shell.reports-mode .workspace.glance-mode .glance-panel,
.app-shell.reports-mode .workspace.glance-mode .pagination-row {
  display: none;
}

.table-panel::-webkit-scrollbar {
  width: 4px;
  height: 6px;
}

.table-panel::-webkit-scrollbar-track {
  background: transparent;
}

.table-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #94a3b8;
}

.table-panel::-webkit-scrollbar-corner {
  background: transparent;
}

.flight-table {
  width: 100%;
  min-width: 1480px;
}

.flight-header,
.flight-row {
  display: grid;
  grid-template-columns:
    minmax(58px, 0.58fr)
    minmax(82px, 0.72fr)
    minmax(112px, 1fr)
    minmax(126px, 1.14fr)
    minmax(44px, 0.44fr)
    minmax(52px, 0.5fr)
    minmax(88px, 0.82fr)
    minmax(82px, 0.76fr)
    minmax(112px, 1fr)
    minmax(74px, 0.68fr)
    minmax(78px, 0.72fr)
    minmax(58px, 0.54fr);
  align-items: center;
  padding: 0 16px;
  column-gap: 10px;
}

.flight-header > span,
.flight-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-header {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 40px;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.flight-row {
  height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.flight-row:hover,
.flight-row:focus-visible,
.flight-row.selected {
  background: #f8fbff;
}

.flight-row:focus-visible {
  outline: 2px solid #bfdbfe;
  outline-offset: -2px;
}

.flight-row.selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.time-cell,
.flight-cell,
.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-2);
}

.indicator-dot.arrival { background: var(--sky); }
.indicator-dot.irregular { background: var(--red); }

.cs-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.airline-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  width: 100%;
  height: 24px;
  overflow: hidden;
  border-radius: 4px;
  background: #f8fafc;
}

.airline-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.airline-fallback {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.status-badge {
  display: inline-grid;
  place-items: center;
  width: 100%;
  max-width: 132px;
  height: 21px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-badge.status-on-time { color: #166534; background: #dcfce7; }
.status-badge.status-boarding { color: #1d4ed8; background: #dbeafe; }
.status-badge.status-delayed { color: #92400e; background: #fef3c7; }
.status-badge.status-gate-change { color: #92400e; background: #ffedd5; }
.status-badge.status-cancelled { color: #991b1b; background: #fee2e2; }
.status-badge.status-departed { color: #475569; background: #f1f5f9; }
.status-badge.status-arrived { color: #166534; background: #dcfce7; }
.status-badge.status-scheduled { color: #1d4ed8; background: #e0ecff; }

.actions-cell button {
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
}

.actions-cell button:hover {
  background: #eff6ff;
  color: var(--blue);
}

.action-indicator {
  display: grid;
  place-items: center;
  padding: 0;
}

.action-indicator svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-indicator.active.alert {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--orange);
}

.action-indicator.active.message {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--blue);
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  margin-top: 20px;
}

.pages-group,
.step-navigation,
#pageButtons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pages-group label { color: var(--muted); }
.pages-group select { height: 28px; margin-left: 8px; padding: 0 8px; }
.step-navigation button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
}

.step-navigation button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.step-navigation button:disabled {
  cursor: default;
  opacity: 0.45;
}

.selection-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  color: var(--ink);
  font-weight: 600;
}

.selection-toast.visible { display: block; }

.user-switcher-panel[aria-hidden="true"] {
  display: none;
}

.user-switcher-panel[aria-hidden="false"] {
  position: fixed;
  top: 68px;
  right: 28px;
  z-index: 90;
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100vh - 92px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.2);
}

.user-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid #e5ebf3;
}

.user-switcher-header span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-switcher-header strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.user-switcher-header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: white;
  color: #64748b;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.user-switcher-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.user-option {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 22px;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.user-option:hover,
.user-option:focus-visible {
  border-color: rgba(20, 88, 212, 0.42);
  background: #f4f8ff;
  outline: none;
}

.user-option.selected {
  border-color: rgba(20, 88, 212, 0.72);
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--user-accent, #1458d4) 82%, white), color-mix(in srgb, var(--user-accent, #1458d4) 48%, #0f172a));
  color: white;
  font-weight: 900;
}

.user-avatar.large {
  width: 54px;
  height: 54px;
  font-size: 16px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-option-main,
.user-option-title,
.permission-list {
  display: flex;
  min-width: 0;
}

.user-option-main {
  flex-direction: column;
  gap: 6px;
}

.user-option-title {
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.user-option-title strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 18px;
}

.user-option-title em {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.user-team {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.user-description {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.permission-list {
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.permission-list i {
  padding: 4px 7px;
  border-radius: 999px;
  background: white;
  color: #41607d;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.selected-check {
  display: none;
  align-self: center;
  justify-self: end;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.user-option.selected .selected-check {
  display: block;
}

.confirm-modal[aria-hidden="true"] {
  display: none;
}

.confirm-modal[aria-hidden="false"] {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
}

.confirm-dialog {
  position: relative;
  z-index: 1;
  width: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.confirm-dialog strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.confirm-dialog p {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.confirm-dialog div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-dialog button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.confirm-dialog button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.confirm-dialog button.danger {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.add-flight-modal[aria-hidden="true"] {
  display: none;
}

.add-flight-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.add-flight-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
}

.add-flight-shell {
  position: absolute;
  inset: 24px;
  left: 264px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  background: #f1f5f9;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.add-flight-header,
.add-flight-header-actions,
.add-flight-progress,
.add-route-summary,
.add-flight-body,
.add-flight-footer,
.add-flight-footer div,
.add-field-row,
.add-form-section header,
.add-flight-status section > div,
.add-flight-status p,
.add-review-grid {
  display: flex;
}

.add-flight-header {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.add-flight-header span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.add-flight-header strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 24px;
  line-height: 30px;
}

.add-flight-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.add-flight-header-actions {
  gap: 8px;
}

.add-flight-header-actions button,
.add-flight-footer button {
  height: 36px;
  border: 1px solid #c5d1e0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
}

.add-flight-progress {
  align-items: center;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #f8fafc;
}

.add-flight-progress button {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.add-flight-progress button:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c5d1e0;
}

.add-flight-progress i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-style: normal;
}

.add-flight-progress .active,
.add-flight-progress .done {
  color: var(--blue);
}

.add-flight-progress .active i,
.add-flight-progress .done i {
  background: #eaf2ff;
}

.add-flight-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  background: white;
}

.add-flight-shell.draft-list .add-flight-panel {
  padding: 18px;
}

.draft-list-panel {
  display: grid;
  gap: 12px;
}

.draft-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.draft-card div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.draft-card strong {
  color: var(--ink);
}

.draft-card span,
.draft-card small {
  color: var(--muted);
  font-size: 12px;
}

.draft-card button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.draft-card svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.draft-card button:first-of-type {
  color: var(--blue);
}

.draft-card button:last-of-type {
  color: var(--red);
}

.add-flight-header-actions .primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.add-route-summary {
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: 12px;
  background: #f4f7fb;
}

.add-route-summary div strong {
  display: block;
  color: var(--soft);
  font-size: 22px;
}

.add-route-summary div span,
.add-route-summary aside span {
  color: var(--muted);
  font-size: 11px;
}

.add-route-summary b {
  color: var(--soft);
}

.add-route-summary aside {
  margin-left: auto;
  text-align: right;
}

.add-route-summary aside strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.add-route-summary aside em {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.add-flight-body {
  gap: 18px;
  min-height: 0;
  flex: 1;
}

.add-flight-form {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  min-width: 0;
  overflow: auto;
  padding-right: 2px;
}

.add-form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: white;
}

.add-form-section header {
  align-items: center;
  gap: 10px;
}

.add-form-section header i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eaf2ff;
  color: var(--blue);
  font-style: normal;
}

.add-form-section header strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.add-form-section header span {
  color: var(--muted);
  font-size: 11px;
}

.add-field-row {
  gap: 10px;
}

.add-field {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.add-field.full {
  flex-basis: 100%;
}

.add-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.add-field b {
  color: var(--red);
}

.add-field em {
  color: var(--soft);
  font-size: 10px;
  font-style: normal;
}

.add-field input,
.add-field select,
.add-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c5d1e0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
  outline: 0;
}

.add-field input,
.add-field select {
  height: 38px;
}

.add-field textarea {
  min-height: 60px;
  padding-top: 10px;
  resize: vertical;
}

.add-field.invalid input,
.add-field.invalid select,
.add-field.invalid textarea {
  border-color: var(--red);
  background: #fff5f5;
}

.add-field small {
  color: var(--muted);
  font-size: 10px;
}

.add-field small.error {
  color: var(--red);
}

.add-flight-status {
  display: flex;
  flex: 0 0 300px;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
}

.add-flight-status section {
  padding: 16px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: white;
}

.add-flight-status section > div {
  justify-content: space-between;
  margin-bottom: 10px;
}

.add-flight-status strong {
  color: var(--ink);
  font-size: 14px;
}

.add-flight-status b {
  color: var(--blue);
  font-size: 12px;
}

.add-progress-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecf2;
}

.add-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.add-flight-status p {
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 12px;
}

.add-flight-status p.complete {
  color: #10b981;
}

.add-guidance p {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.add-review-grid {
  flex-wrap: wrap;
  gap: 10px;
}

.add-review-item {
  flex: 1 1 190px;
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #f8fafc;
}

.add-review-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.add-review-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.add-flight-footer {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #dce4ee;
}

.add-flight-footer span {
  color: var(--muted);
  font-size: 12px;
}

.add-flight-footer span b {
  color: var(--red);
}

.add-flight-footer div {
  gap: 8px;
}

.add-flight-footer .primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.multi-updates-modal[aria-hidden="true"] {
  display: none;
}

.multi-updates-modal[aria-hidden="false"] {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.multi-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
}

.multi-shell {
  position: absolute;
  inset: 24px;
  left: 264px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  background: white;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.multi-header,
.multi-footer,
.multi-steps,
.multi-steps span,
.multi-source-tabs,
.multi-upload-box,
.multi-table-head,
.multi-row,
.multi-options button,
.impact-card > div,
.impact-metrics,
.multi-draft-list article {
  display: flex;
  align-items: center;
}

.multi-header {
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.multi-header strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.multi-header span,
.multi-header small,
.multi-footer,
.multi-table-head span,
.multi-table-head button,
.multi-config span,
.multi-config p,
.multi-config small,
.multi-upload-box span,
.multi-draft-list span {
  color: var(--muted);
  font-size: 11px;
}

.multi-header > button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 18px;
}

.multi-steps {
  flex: 1;
  justify-content: center;
  gap: 32px;
}

.multi-steps span {
  gap: 8px;
  color: var(--muted);
}

.multi-steps i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.multi-steps .active i {
  background: var(--blue);
  color: white;
}

.multi-steps b {
  color: var(--ink);
  font-size: 11px;
}

.multi-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(680px, 1fr) 416px;
}

.multi-workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: #f8fafc;
}

.multi-source-card,
.multi-table-card,
.multi-config,
.review-card,
.multi-draft-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.multi-source-card,
.multi-table-card {
  padding: 14px;
}

.multi-section-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 12px;
}

.multi-source-tabs {
  gap: 6px;
  margin-bottom: 12px;
}

.multi-source-tabs button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 800;
}

.multi-source-tabs .active {
  background: var(--blue);
  color: white;
}

.multi-upload-box {
  gap: 12px;
  padding: 12px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
}

.multi-upload-box div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.multi-upload-box button,
.multi-footer button,
.multi-table-head button,
.multi-draft-list button,
.review-card > button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.multi-table-card {
  min-height: 0;
  flex: 1;
}

.multi-table-head {
  gap: 8px;
  margin-bottom: 10px;
}

.multi-table-head b {
  margin-right: auto;
  color: var(--ink);
  font-size: 12px;
}

.multi-table-head em,
.impact-card em {
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.multi-table-head small,
.impact-card small {
  padding: 7px 10px;
  border-radius: 7px;
  background: #fef3c7;
  color: #d97706;
  font-size: 10px;
  font-weight: 750;
}

.multi-grid {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.multi-grid-header,
.multi-row {
  display: grid;
  grid-template-columns: 28px 76px 92px minmax(118px, 1fr) 104px 112px 152px 108px;
  gap: 8px;
  align-items: center;
  min-width: 860px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.multi-grid-header {
  background: #f8fafc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.multi-row {
  color: var(--ink);
  font-size: 11px;
}

.multi-row.review,
.multi-row.excluded {
  background: #fffbeb;
}

.multi-row > button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: white;
  color: white;
  font-size: 10px;
}

.multi-row > button.checked {
  border-color: var(--blue);
  background: var(--blue);
}

.multi-row select,
.multi-config select {
  min-width: 0;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.multi-validation {
  color: #d97706;
  font-size: 10px;
  font-weight: 850;
}

.multi-validation.ready {
  color: #16a34a;
}

.multi-config {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: #f8fafc;
}

.multi-config > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.multi-config label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.multi-config select {
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.pa-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ebf5ff;
}

.pa-preview strong {
  color: var(--blue);
  font-size: 12px;
}

.pa-preview p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.multi-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.multi-options button {
  gap: 10px;
  align-items: flex-start;
  border: 0;
  background: transparent;
  text-align: left;
}

.multi-options i,
.system-check-list i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: white;
  font-size: 10px;
  font-style: normal;
}

.multi-options .checked i,
.system-check-list .checked i {
  border-color: var(--blue);
  background: var(--blue);
}

.multi-options span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.multi-options b {
  color: var(--ink);
  font-size: 12px;
}

.impact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.impact-card > div {
  justify-content: space-between;
}

.impact-metrics {
  gap: 8px;
}

.impact-metrics span,
.review-summary-grid span {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.impact-metrics b,
.review-summary-grid b {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.multi-footer {
  justify-content: space-between;
  min-height: 66px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: white;
}

.multi-footer div {
  display: flex;
  gap: 10px;
}

.multi-footer .primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.multi-review {
  display: grid;
  flex: 1;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 22px;
  background: #f8fafc;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.review-card h3 {
  margin: 0;
  color: var(--ink);
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.auth-ready,
.auth-needed {
  padding: 14px;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
}

.auth-needed {
  background: #fef3c7;
  color: #92400e;
}

.auth-ready p,
.auth-needed p {
  color: inherit;
}

.auth-needed em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 850;
}

.system-check-list {
  display: grid;
  gap: 10px;
}

.system-check-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.multi-draft-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.multi-draft-list article {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.multi-draft-list div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.audit-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}

.audit-title-row p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.audit-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 34px;
}

.audit-title-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.audit-title-actions,
.audit-mode-switch,
.audit-results-toolbar,
.audit-results-toolbar div,
.audit-results-toolbar button,
.audit-pagination,
.audit-detail-actions {
  display: flex;
  align-items: center;
}

.audit-title-actions {
  gap: 8px;
}

.audit-title-actions button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.audit-mode-switch {
  gap: 10px;
  margin-top: 20px;
}

.audit-mode-switch button {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 12px;
  flex: 1;
  height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.audit-mode-switch button.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.audit-mode-switch i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e0ecff;
  color: var(--blue);
  font-style: normal;
}

.audit-mode-switch strong,
.audit-mode-switch small {
  display: block;
}

.audit-mode-switch small {
  margin-top: 2px;
  color: var(--muted);
}

.audit-mode-switch b {
  color: var(--blue);
}

.audit-filters {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
  gap: 10px 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.audit-filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.audit-filters label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.audit-filters select,
.audit-filters input {
  height: 38px;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  outline: 0;
}

.audit-filters button {
  align-self: end;
  justify-self: start;
  height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 850;
}

.audit-filters label:nth-child(1) { grid-column: 1; grid-row: 1; }
.audit-filters label:nth-child(2) { grid-column: 2; grid-row: 1; }
.audit-filters label:nth-child(3) { grid-column: 3 / span 2; grid-row: 1; }
.audit-filters label:nth-child(4) { grid-column: 5; grid-row: 1; }
.audit-filters label:nth-child(5) { grid-column: 1 / span 2; grid-row: 2; }
.audit-filters label:nth-child(6) { grid-column: 3; grid-row: 2; }
.audit-filters label:nth-child(7) { grid-column: 4; grid-row: 2; }
.audit-filters label:nth-child(8) { grid-column: 5; grid-row: 2; }
.audit-filters label:nth-child(9) { grid-column: 1; grid-row: 3; }
.audit-filters button { grid-column: 5; grid-row: 3; }

.audit-results-toolbar {
  justify-content: space-between;
  margin-top: 12px;
  height: 34px;
}

.audit-results-toolbar div {
  gap: 10px;
}

.audit-results-toolbar strong {
  color: var(--ink);
}

.audit-results-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.audit-results-toolbar button {
  gap: 7px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.audit-results-toolbar button i {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #cbd5e1;
}

.audit-results-toolbar button.active i {
  background: var(--blue);
}

.audit-table {
  margin-top: 8px;
  overflow: auto;
  height: calc(100vh - 418px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.audit-table-head,
.audit-row {
  display: grid;
  grid-template-columns: 28px 128px 68px 145px 86px 96px 98px 108px minmax(148px, 1fr) 86px;
  gap: 8px;
  align-items: center;
  min-width: 1120px;
  padding: 0 12px;
}

.audit-table-head {
  height: 38px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.audit-row {
  width: 100%;
  min-height: 65px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 12px;
  text-align: left;
}

.audit-row.selected {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.audit-check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: white;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.audit-actor {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 8px;
  align-items: center;
}

.audit-actor i,
.audit-detail-actor i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  grid-row: span 2;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.audit-actor b,
.audit-actor small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-actor small,
.audit-new,
.audit-pagination {
  color: var(--muted);
}

.audit-chip,
.audit-type {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.audit-chip.user { color: var(--blue); background: #e0ecff; }
.audit-chip.rms { color: #92400e; background: #ffedd5; }
.audit-chip.system { color: #166534; background: #dcfce7; }
.audit-type.high { color: #991b1b; background: #fee2e2; }
.audit-type.medium { color: #92400e; background: #fef3c7; }
.audit-type.info { color: #166534; background: #dcfce7; }

.audit-pagination {
  justify-content: space-between;
  height: 34px;
  margin-top: 8px;
}

.audit-detail-panel[aria-hidden="true"] {
  display: none;
}

.audit-detail-panel[aria-hidden="false"] {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  display: flex;
  width: 384px;
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: white;
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.08);
}

.audit-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.audit-detail-header div,
.audit-detail-header span,
.audit-summary-card > div,
.audit-detail-actor,
.audit-flight-context div,
.audit-related p {
  display: flex;
  align-items: center;
}

.audit-detail-header div {
  gap: 9px;
}

.audit-detail-header i,
.audit-summary-card > div > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  font-style: normal;
}

.audit-detail-header span {
  flex-direction: column;
  align-items: flex-start;
}

.audit-detail-header strong {
  color: var(--ink);
  font-size: 14px;
}

.audit-detail-header small,
.audit-detail-body small,
.audit-detail-body span,
.audit-detail-body p {
  color: var(--muted);
}

.audit-detail-header button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.audit-detail-body {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
}

.audit-summary-card,
.audit-change-card,
.audit-flight-context,
.audit-related {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.audit-summary-card > div {
  gap: 9px;
}

.audit-summary-card span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.audit-summary-card em,
.audit-flight-context em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.audit-summary-card em.high {
  background: #fee2e2;
  color: #991b1b;
}

.audit-summary-card em.medium {
  background: #fef3c7;
  color: #92400e;
}

.audit-summary-card p {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  line-height: 1.45;
}

.audit-detail-section,
.audit-change-card,
.audit-flight-context,
.audit-related {
  margin-top: 16px;
}

.audit-detail-section h3,
.audit-change-card h3,
.audit-flight-context h3,
.audit-related h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
}

.audit-detail-actor {
  gap: 9px;
  min-height: 40px;
}

.audit-detail-actor i {
  width: 40px;
  height: 40px;
}

.audit-detail-actor span {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.audit-detail-actor em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.audit-detail-section p,
.audit-change-card p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 0;
}

.audit-detail-section p strong,
.audit-change-card p strong {
  color: var(--ink);
  text-align: right;
}

.audit-change-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.audit-change-card h3 em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.audit-before-after {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

.audit-before-after span {
  display: flex;
  min-height: 90px;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.audit-before-after strong {
  color: var(--ink);
  font-size: 16px;
}

.audit-before-after em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.audit-before-after b {
  color: var(--muted);
  text-align: center;
}

.audit-flight-context div {
  gap: 10px;
}

.audit-flight-context i,
.audit-related i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-style: normal;
  font-weight: 900;
}

.audit-flight-context span,
.audit-related span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.audit-related p {
  gap: 8px;
  margin: 0;
}

.audit-detail-actions {
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.audit-detail-actions button {
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.add-flight-footer [disabled],
.add-flight-footer .primary[disabled] {
  border-color: transparent;
  background: #e7ecf2;
  color: #aab7c7;
}

.integrations-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.integrations-title-row p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.integrations-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 34px;
}

.integrations-title-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.integration-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.integration-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.integration-metric i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.integration-metric i img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.integration-metric.warning i {
  background: #fffbeb;
  color: var(--orange);
}

.integration-metric strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 28px;
}

.integration-metric span {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 750;
}

.integration-metric small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.integration-filters {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 178px 300px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  margin-top: 12px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.integration-search,
.integration-select,
.integration-log-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.integration-search input,
.integration-log-filters input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.integration-search kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: var(--soft);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
}

.integration-select select {
  width: 100%;
  height: 30px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.integration-status-tabs {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 2px;
  border-radius: 8px;
  background: #eef2f7;
}

.integration-status-tabs button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.integration-status-tabs button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.integration-directory {
  margin-top: 12px;
}

.integration-directory header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  color: var(--ink);
}

.integration-directory header span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.integration-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 8px;
  max-height: 334px;
  margin-top: 8px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.integration-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 18px;
  gap: 10px;
  min-height: 106px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.integration-card:hover,
.integration-card:focus-visible,
.integration-card.selected {
  border-color: #bfdbfe;
  background: #f8fbff;
  outline: 0;
}

.integration-card.selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.integration-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: color-mix(in srgb, var(--integration-color, #2563eb) 18%, white);
  color: var(--integration-color, #2563eb);
  font-size: 12px;
  font-weight: 950;
}

.integration-mark.logo {
  background: white;
}

.integration-mark img {
  max-width: 52px;
  max-height: 42px;
  object-fit: contain;
}

.integration-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.integration-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.integration-status i,
.integration-level i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.integration-status.connected {
  background: #dcfce7;
  color: #166534;
}

.integration-status.disconnected {
  background: #fee2e2;
  color: #991b1b;
}

.integration-status.disabled {
  background: #f1f5f9;
  color: #64748b;
}

.integration-card-copy strong {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 16px;
  text-overflow: ellipsis;
}

.integration-card-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.integration-card-copy em {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.integration-card > b {
  align-self: end;
  color: var(--soft);
  letter-spacing: 1px;
}

.integration-logs-table {
  height: calc(100vh - 718px);
  min-height: 314px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.integration-log-filters {
  display: grid;
  grid-template-columns: 220px 170px 130px minmax(240px, 1fr);
  gap: 8px;
  align-items: center;
  height: 48px;
  padding: 10px 12px;
}

.integration-log-filters label,
.integration-log-filters select {
  height: 28px;
  border-radius: 7px;
}

.integration-log-filters select {
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.integration-log-head,
.integration-log-row {
  display: grid;
  grid-template-columns: 220px 170px 130px minmax(320px, 1fr);
  align-items: center;
  min-width: 900px;
  padding: 0 12px;
}

.integration-log-head {
  height: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.integration-log-rows {
  height: calc(100% - 84px);
  overflow: auto;
  scrollbar-width: thin;
}

.integration-log-row {
  min-height: 29px;
  border-bottom: 1px solid #eef2f7;
  color: var(--ink);
}

.integration-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.integration-level.info { color: #166534; }
.integration-level.warn { color: #b45309; }
.integration-level.error { color: #b91c1c; }

.integration-detail-panel[aria-hidden="true"] {
  display: none;
}

.integration-detail-panel[aria-hidden="false"] {
  position: fixed;
  top: 20px;
  right: 0;
  z-index: 20;
  display: flex;
  width: 380px;
  height: calc(100vh - 20px);
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-radius: 14px 0 0 0;
  background: white;
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.1);
}

.integration-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 116px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.integration-detail-header > div {
  display: flex;
  min-width: 0;
  gap: 10px;
}

.integration-detail-header .integration-mark {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 10px;
}

.integration-detail-header .integration-mark img {
  max-width: 32px;
  max-height: 24px;
}

.integration-detail-header strong,
.integration-detail-header small {
  display: block;
}

.integration-detail-header strong {
  color: var(--ink);
  font-size: 16px;
}

.integration-detail-header small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.integration-detail-header button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.integration-detail-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.integration-detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.integration-detail-status small {
  color: var(--muted);
  font-size: 11px;
}

.integration-detail-body section {
  margin-bottom: 20px;
}

.integration-detail-body h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.integration-detail-body section > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  line-height: 1.35;
}

.integration-detail-body section > p:first-of-type {
  border-radius: 8px 8px 0 0;
}

.integration-detail-body section > p:last-child {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.integration-detail-body section > p:only-child {
  border-radius: 8px;
}

.integration-detail-body p strong {
  max-width: 205px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.integration-detail-body p em {
  color: var(--green);
  font-style: normal;
}

.integration-detail-body p small {
  display: block;
  color: var(--soft);
  font-size: 10px;
}

.integration-detail-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.integration-detail-footer a {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.integration-detail-footer button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.sita-flow-page {
  height: 100vh;
  background: #191919;
  color: #f4f4f5;
}

.sita-workflow-shell {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  height: 100%;
}

.sita-executions {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #343434;
  background: #232323;
}

.sita-executions header,
.sita-flow-topbar,
.sita-inspector header {
  display: flex;
  align-items: center;
}

.sita-executions header {
  justify-content: space-between;
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid #343434;
}

.sita-executions header button,
.sita-flow-topbar button,
.sita-canvas-tools button,
.sita-inspector button {
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #2d2d2d;
  color: #f4f4f5;
  font-weight: 800;
}

.sita-executions label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px;
  color: #f4f4f5;
  font-weight: 800;
}

.sita-executions input {
  accent-color: #ff7a1a;
}

.sita-execution-list {
  flex: 1;
  overflow: auto;
  padding: 0 10px 10px;
  scrollbar-width: thin;
}

.sita-execution-list button {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #f4f4f5;
  text-align: left;
}

.sita-execution-list button.active {
  border-left-color: #16c784;
  background: #303030;
}

.sita-execution-list strong,
.sita-execution-list span {
  display: block;
}

.sita-execution-list span {
  margin-top: 3px;
  color: #d4d4d8;
  font-size: 12px;
}

.sita-executions footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid #343434;
  color: #f4f4f5;
  font-size: 12px;
}

.sita-workflow-main {
  display: grid;
  grid-template-rows: 50px minmax(300px, 1fr) 274px;
  min-width: 0;
  height: 100%;
}

.sita-flow-topbar {
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid #303030;
  background: #202020;
}

.sita-flow-topbar > div,
.sita-flow-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sita-flow-topbar strong {
  font-size: 14px;
}

.sita-flow-topbar span,
.sita-flow-topbar em,
.sita-flow-topbar b {
  padding: 3px 7px;
  border-radius: 5px;
  background: #333;
  color: #d4d4d8;
  font-size: 11px;
  font-style: normal;
}

.sita-flow-topbar b {
  color: #16c784;
}

.sita-flow-topbar button {
  height: 30px;
  padding: 0 10px;
}

.sita-flow-topbar nav {
  padding: 3px;
  border-radius: 6px;
  background: #303030;
}

.sita-flow-topbar nav button {
  height: 28px;
  border: 0;
  background: transparent;
}

.sita-flow-topbar nav button.active {
  background: #111;
}

.sita-flow-topbar [data-sita-run] {
  border-color: #126c43;
  background: #095c38;
}

.sita-canvas {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 8px, transparent 8px 18px),
    #171717;
}

.sita-run-meta {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 3;
}

.sita-run-meta strong,
.sita-run-meta span,
.sita-run-meta button {
  display: block;
}

.sita-run-meta span {
  margin-top: 5px;
  color: #d4d4d8;
}

.sita-run-meta span b {
  color: #16c784;
}

.sita-run-meta button {
  margin-top: 7px;
  border: 0;
  border-radius: 5px;
  background: #111;
  color: white;
  font-weight: 800;
}

.sita-edges {
  position: absolute;
  inset: 0;
  width: 1220px;
  height: 420px;
  pointer-events: none;
}

.sita-edges path {
  fill: none;
  stroke: #0f8b4c;
  stroke-width: 2;
}

.sita-edges text {
  fill: #b8b8b8;
  font-size: 11px;
}

.sita-node {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-rows: 58px auto auto;
  justify-items: center;
  width: 104px;
  min-height: 112px;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  cursor: grab;
}

.sita-node:active {
  cursor: grabbing;
}

.sita-node i {
  display: grid;
  place-items: center;
  width: 68px;
  height: 58px;
  border: 2px solid #078849;
  border-radius: 10px;
  background: #303030;
  color: #ffbd69;
  font-style: normal;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.sita-node.trigger i {
  color: #ff7a1a;
}

.sita-node.database i {
  color: #8ec5ff;
  font-size: 16px;
}

.sita-node.active i {
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.45);
}

.sita-node strong {
  margin-top: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.sita-node span {
  margin-top: 2px;
  color: #b8b8b8;
  font-size: 11px;
}

.sita-node b {
  position: absolute;
  right: 18px;
  top: 44px;
  color: #16c784;
}

.sita-canvas-tools {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.sita-canvas-tools button {
  width: 34px;
  height: 34px;
}

.sita-inspector {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 0;
  border-top: 1px solid #333;
  background: #161616;
}

.sita-inspector aside {
  min-width: 0;
  overflow: auto;
  border-right: 1px solid #333;
  padding: 12px;
}

.sita-inspector aside strong,
.sita-inspector aside span {
  display: block;
}

.sita-inspector aside span {
  margin: 12px 0;
  color: #d4d4d8;
  font-size: 12px;
}

.sita-inspector aside button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 34px;
  margin-bottom: 4px;
  padding: 0 10px;
  border: 0;
  text-align: left;
}

.sita-inspector aside button.active {
  background: #343434;
}

.sita-inspector main {
  min-width: 0;
  min-height: 0;
}

.sita-inspector header {
  justify-content: space-between;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #333;
}

.sita-inspector header div,
.sita-inspector header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sita-inspector header i {
  color: #ffbd69;
  font-style: normal;
  font-weight: 900;
}

.sita-inspector header span {
  color: #d4d4d8;
  font-size: 12px;
}

.sita-inspector header button {
  height: 28px;
  padding: 0 10px;
  text-transform: capitalize;
}

.sita-inspector header button.active {
  border-color: #9a4f18;
  background: #91430c;
}

.sita-inspector-content {
  height: calc(100% - 42px);
  overflow: auto;
  padding: 14px;
}

.sita-inspector-content pre {
  margin: 0;
  color: #d7b4ff;
  font: 12px/1.55 Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.sita-log-lines,
.sita-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sita-log-lines p,
.sita-timeline p {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 10px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #303030;
  border-radius: 7px;
  background: #1f1f1f;
}

.sita-log-lines time,
.sita-timeline b,
.sita-timeline em {
  color: #a1a1aa;
  font-style: normal;
}

.sita-log-lines span,
.sita-timeline span {
  color: #f4f4f5;
}

.data-priority-title-row,
.data-priority-actions,
.data-priority-tabs,
.data-priority-card header,
.priority-row,
.priority-history-list article {
  display: flex;
  align-items: center;
}

.data-priority-title-row {
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.data-priority-title-row p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.data-priority-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 34px;
}

.data-priority-title-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.data-priority-actions {
  gap: 8px;
}

.data-priority-actions button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.data-priority-actions button:disabled {
  color: #aab7c7;
  background: #f1f5f9;
}

.data-priority-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.data-priority-metrics article,
.data-priority-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.data-priority-metrics article {
  min-height: 86px;
  padding: 16px;
}

.data-priority-metrics strong,
.data-priority-metrics span,
.data-priority-metrics em {
  display: block;
}

.data-priority-metrics strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 28px;
}

.data-priority-metrics span {
  margin-top: 3px;
  color: var(--ink);
  font-weight: 850;
}

.data-priority-metrics em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
}

.data-priority-tabs {
  gap: 4px;
  width: fit-content;
  margin-top: 14px;
  padding: 3px;
  border-radius: 9px;
  background: #eef2f7;
}

.data-priority-tabs button {
  min-width: 150px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.data-priority-tabs button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.data-priority-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 14px;
  margin-top: 14px;
}

.data-priority-card {
  border-radius: 12px;
}

.data-priority-card header {
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.data-priority-card header strong,
.data-priority-card header span {
  display: block;
}

.data-priority-card header strong {
  color: var(--ink);
}

.data-priority-card header span,
.data-priority-card header em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.priority-table-head,
.priority-row {
  display: grid;
  grid-template-columns: 58px minmax(188px, 1.1fr) minmax(220px, 1.2fr) minmax(160px, 0.9fr) 94px 84px;
  gap: 10px;
  align-items: center;
}

.priority-table-head {
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.priority-row {
  min-height: 78px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.priority-row:last-child {
  border-bottom: 0;
}

.priority-row > b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
}

.priority-row strong,
.priority-row em {
  display: block;
}

.priority-row span em,
.priority-row p {
  color: var(--muted);
}

.priority-row p {
  margin: 0;
  line-height: 18px;
}

.priority-row i {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-style: normal;
  font-weight: 850;
}

.priority-row i.degraded {
  background: #fef3c7;
  color: #92400e;
}

.priority-row i.active {
  background: #e0ecff;
  color: var(--blue);
}

.priority-row div {
  display: flex;
  gap: 6px;
}

.priority-row button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.priority-row button:disabled {
  color: #cbd5e1;
  background: #f8fafc;
}

.data-priority-help {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-priority-help ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 16px 18px 18px 38px;
}

.data-priority-help li b,
.data-priority-help li span {
  display: block;
}

.data-priority-help li b {
  color: var(--ink);
}

.data-priority-help li span,
.priority-example-card p {
  color: var(--muted);
  line-height: 18px;
}

.priority-example-card {
  padding-bottom: 14px;
}

.priority-example-card p,
.priority-example-card div {
  margin: 12px 16px 0;
}

.priority-example-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.priority-example-card div span {
  color: var(--muted);
}

.priority-example-card div strong {
  max-width: 190px;
  text-align: right;
}

.priority-history-card {
  min-height: 520px;
}

.priority-history-list {
  display: flex;
  flex-direction: column;
}

.priority-history-list article {
  gap: 14px;
  min-height: 74px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.priority-history-list article:last-child {
  border-bottom: 0;
}

.priority-history-list time {
  width: 118px;
  color: var(--muted);
  font-size: 12px;
}

.priority-history-list time b,
.priority-history-list strong,
.priority-history-list span {
  display: block;
}

.priority-history-list time b {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.priority-history-list div {
  flex: 1;
}

.priority-history-list span {
  margin-top: 3px;
  color: var(--muted);
}

.priority-history-list em {
  color: var(--blue);
  font-style: normal;
  font-weight: 850;
}

.user-management-heading-row {
  margin-top: 16px;
}

.user-management-heading-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 34px;
}

.user-management-heading-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.user-management-tabs {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.user-management-tabs button {
  height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.user-management-tabs button.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.user-integration-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.user-auth-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 14px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.user-auth-card > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
  font-style: normal;
}

.user-auth-card strong {
  color: var(--ink);
}

.user-auth-card em {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.user-auth-card em.disabled {
  background: #fee2e2;
  color: var(--red);
}

.user-auth-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.user-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.user-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 316px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.user-toolbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
}

.user-toolbar select,
.user-toolbar button:not(.primary-action) {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.user-toolbar .primary-action {
  margin-left: auto;
}

.users-table {
  margin-top: 14px;
  overflow: auto;
  max-height: calc(100vh - 405px);
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.users-table-head,
.managed-user-row {
  display: grid;
  grid-template-columns: 32px 1.3fr 1.7fr 1fr 1fr 1.3fr 42px;
  gap: 10px;
  align-items: center;
  min-width: 780px;
  padding: 0 16px;
}

.users-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 40px;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.managed-user-row {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--muted);
  text-align: left;
}

.managed-user-row.selected {
  background: #ebf5ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.managed-user-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-user-row span:first-child i {
  display: block;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--soft);
  border-radius: 4px;
}

.managed-user-row.selected span:first-child i {
  border-color: var(--blue);
  background: var(--blue);
}

.managed-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.managed-user-name b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ebf5ff;
  color: var(--blue);
  font-size: 10px;
}

.role-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ebf5ff;
  color: var(--blue);
  font-style: normal;
  font-weight: 850;
}

.role-badge.operator {
  background: #dcfce7;
  color: #16a34a;
}

.role-badge.admin {
  background: #fee2e2;
  color: var(--red);
}

.users-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
}

.users-pagination b,
.users-pagination em {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-style: normal;
}

.users-pagination em {
  background: var(--blue);
  color: white;
}

.user-detail-panel[aria-hidden="true"] {
  display: none;
}

.user-detail-panel[aria-hidden="false"] {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 20;
  display: flex;
  width: 380px;
  height: 100vh;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: white;
}

.user-detail-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.user-detail-header > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ebf5ff;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.user-detail-header strong,
.user-detail-header span,
.user-detail-header small {
  display: block;
}

.user-detail-header strong {
  color: var(--ink);
  font-size: 18px;
}

.user-detail-header span,
.user-detail-header small {
  color: var(--muted);
}

.user-detail-header em {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-style: normal;
  font-weight: 900;
}

.user-detail-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.user-detail-tabs button {
  height: 32px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.user-detail-tabs button.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.user-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.user-detail-body section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-detail-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.user-detail-body section > strong {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.synect-auth-box {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
}

.synect-auth-box strong {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.synect-auth-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.user-detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.user-detail-actions button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 850;
}

.sso-status-card,
.sso-config-form,
.sso-test-card,
.token-validation-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.sso-status-card strong {
  color: var(--ink);
}

.sso-status-card em {
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.sso-status-card em.enabled {
  background: #dcfce7;
  color: #16a34a;
}

.sso-status-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.sso-config-form header {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 16px;
}

.sso-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.sso-form-grid label,
.token-validation-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

.sso-form-grid input,
.token-validation-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.sso-form-grid input {
  height: 40px;
  padding: 0 12px;
}

.sso-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.sso-toggle-row span strong,
.sso-toggle-row span small {
  display: block;
}

.sso-toggle-row span small {
  color: var(--muted);
}

.sso-toggle-row button {
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 2px;
}

.sso-toggle-row button i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: white;
  transition: transform 160ms ease;
}

.sso-toggle-row button.on {
  background: var(--blue);
}

.sso-toggle-row button.on i {
  transform: translateX(18px);
}

.sso-config-form footer,
.sso-test-card,
.token-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.sso-config-form footer button,
.sso-test-card button,
.token-actions button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 850;
}

.sso-test-card {
  justify-content: space-between;
}

.sso-test-card div {
  margin-right: auto;
}

.sso-test-card strong,
.sso-test-card span {
  display: block;
}

.sso-test-card span.failed {
  color: var(--red);
}

.sso-test-card span.success {
  color: #16a34a;
}

.token-validation-card textarea {
  height: 110px;
  padding: 12px;
  resize: vertical;
}

.validation-results {
  margin-top: 16px;
}

.validation-results header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.validation-results header em {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-style: normal;
  font-weight: 900;
}

.validation-results p {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  color: var(--muted);
}

.validation-results strong {
  color: var(--ink);
  font-weight: 500;
}

.flight-editor {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 450px;
  padding: 16px;
  border-left: 1px solid var(--line);
  background: white;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.08);
  transform: translateX(100%);
  transition:
    transform 240ms ease-in-out,
    width 180ms ease,
    inset 180ms ease,
    border-radius 180ms ease,
    box-shadow 180ms ease;
}

.app-shell.editor-open .flight-editor {
  transform: translateX(0);
}

.flight-editor.expanded {
  inset: 0 0 0 240px;
  width: auto;
  padding: 24px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: -24px 0 70px rgba(15, 23, 42, 0.18);
}

.app-shell.editor-open .toolbar-row {
  position: relative;
  z-index: 11;
}

.app-shell.editor-open .view-switcher {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.editor-header,
.editor-flight-brand,
.editor-header-actions,
.editor-tabs,
.editor-two-col,
.editor-three-col,
.editor-pill-row,
.editor-stat-strip,
.editor-section-head,
.editor-chip-row,
.editor-list p,
.journey-summary,
.journey-item,
.expanded-display div,
.cctv-top,
.cctv-bottom,
.history-head,
.editor-footer {
  display: flex;
  align-items: center;
}

.editor-header {
  justify-content: space-between;
  gap: 10px;
}

.editor-flight-brand {
  gap: 12px;
  min-width: 0;
}

.editor-flight-brand .airline-logo {
  width: 135px;
  height: 42px;
  flex: 0 0 135px;
}

.editor-flight-brand strong {
  font-size: 24px;
  line-height: 30px;
  white-space: nowrap;
}

.editor-header-actions {
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.editor-header-actions .status-badge {
  width: auto;
  padding: 0 8px;
}

.editor-icon-button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.editor-icon-button:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.editor-tabs {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.editor-tabs button,
.history-source-tabs button {
  min-width: 0;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
}

.editor-tabs button {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
}

.editor-tabs button.active,
.history-source-tabs button.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.editor-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}

.flight-editor.expanded .editor-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px 18px;
  padding-right: 8px;
}

.flight-editor.expanded .editor-route-card,
.flight-editor.expanded .editor-separator,
.flight-editor.expanded .history-source-tabs,
.flight-editor.expanded .history-head,
.flight-editor.expanded .history-timeline,
.flight-editor.expanded .messaging-panel {
  grid-column: 1 / -1;
}

.flight-editor.expanded .editor-separator {
  margin: 0;
}

.flight-editor.expanded .editor-remarks {
  grid-column: 1 / -1;
  min-height: 104px;
}

.expanded-editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) repeat(3, minmax(260px, 1fr));
  gap: 18px;
  min-height: 0;
  flex: 1;
}

.expanded-editor-grid.messaging-collapsed {
  grid-template-columns: 58px repeat(3, minmax(280px, 1fr));
}

.expanded-messaging-column,
.expanded-editor-column {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
}

.expanded-messaging-column {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.expanded-messaging-column.collapsed {
  align-items: center;
  padding-right: 10px;
}

.expanded-editor-column {
  padding: 0 2px;
}

.expanded-column-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.expanded-column-head strong {
  color: var(--ink);
  font-size: 14px;
}

.expanded-column-head span {
  color: var(--muted);
  font-size: 11px;
}

.expanded-column-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.expanded-column-scroll::-webkit-scrollbar {
  width: 4px;
}

.expanded-column-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.editor-scroll::-webkit-scrollbar { width: 4px; }
.editor-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #cbd5e1; }

.editor-route-card {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
}

.editor-route-card div:last-child { text-align: right; }
.editor-route-card strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 32px;
}
.editor-route-card span { color: var(--muted); font-size: 12px; }
.editor-route-card b { color: var(--muted); text-align: center; }

.editor-separator {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

.editor-two-col {
  gap: 12px;
  margin-bottom: 14px;
}

.editor-three-col {
  gap: 8px;
  margin-bottom: 8px;
}

.editor-readonly,
.editor-field {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.editor-readonly span,
.editor-field > span,
.editor-section h4,
.editor-section-head strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  color: #8a94a6;
  font-weight: 900;
  vertical-align: middle;
}

.field-lock svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editor-readonly strong {
  color: var(--ink);
  font-size: 13px;
}

.editor-readonly small {
  color: var(--muted);
  font-size: 11px;
}

.editor-field select,
.editor-field input {
  min-width: 0;
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 600;
  outline: 0;
}

.editor-field.locked select,
.editor-field.locked input,
.editor-stat-strip label.locked input,
.editor-section.locked input,
.editor-section.locked button {
  border-color: #dbe3ee;
  background: #f1f5f9;
  color: #72839b;
  cursor: not-allowed;
}

.editor-section.locked {
  opacity: 0.9;
}

.editor-field.invalid input {
  border-color: var(--red);
  border-width: 1.5px;
  background: #ffebeb;
}

.editor-field.invalid small {
  color: #c41f1f;
  font-size: 10px;
  white-space: nowrap;
}

.editor-pill-row {
  justify-content: flex-end;
  gap: 10px;
}

.editor-pill-row span,
.editor-pill-row button,
.editor-chip-row span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.editor-pill-row button.active {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #10b981;
}

.editor-pill-row.passive span {
  color: var(--soft);
}

.editor-stat-strip {
  justify-content: space-between;
  gap: 8px;
  text-align: center;
}

.editor-stat-strip span,
.editor-stat-strip label span {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-stat-strip strong,
.editor-stat-strip input {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

.editor-stat-strip label {
  flex: 1;
  min-width: 0;
}

.editor-stat-strip input,
.editor-list input,
.editor-add-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  outline: 0;
}

.editor-stat-strip input {
  height: 28px;
  padding: 0 6px;
  text-align: center;
}

.editor-section {
  margin-bottom: 14px;
}

.flight-editor.expanded .editor-two-col,
.flight-editor.expanded .editor-three-col,
.flight-editor.expanded .editor-section,
.flight-editor.expanded .editor-list,
.flight-editor.expanded .editor-remarks,
.flight-editor.expanded .journey-summary,
.flight-editor.expanded .journey-timeline,
.flight-editor.expanded .expanded-display,
.flight-editor.expanded .cctv-stack {
  margin-bottom: 0;
}

.editor-section.compact {
  margin-bottom: 12px;
}

.editor-section h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.editor-section h4 {
  margin: 0 0 8px;
}

.editor-section p,
.expanded-display p {
  margin: 0;
}

.editor-section-head {
  justify-content: space-between;
  margin-bottom: 8px;
}

.editor-section-head button {
  width: 24px;
  height: 23px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font-size: 20px;
  line-height: 20px;
}

.editor-chip-row {
  gap: 8px;
  flex-wrap: wrap;
}

.editor-add-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.editor-add-row input {
  height: 32px;
  padding: 0 10px;
  background: var(--surface);
}

.editor-add-row button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

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

.editor-list p {
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.editor-list p span {
  flex: 1;
}

.editor-list input {
  max-width: 150px;
  height: 28px;
  padding: 0 8px;
  text-align: right;
}

.editor-list strong {
  color: var(--ink);
}

.editor-list em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
}

.muted { color: var(--muted) !important; }

.alert-line {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-size: 12px;
}

.alert-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.alert-line.orange::before { background: var(--orange); }
.alert-line.blue::before { background: var(--blue); }

.editor-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
}

.editor-remarks {
  width: 100%;
  min-height: 78px;
  margin-top: 14px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.journey-summary {
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 11px;
}

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 16px;
}

.journey-item {
  position: relative;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 8px;
}

.journey-item.current {
  background: #ebf5ff;
}

.journey-item i {
  align-self: stretch;
  width: 16px;
  background: linear-gradient(#10b981, #10b981) center / 2px 100% no-repeat;
}

.journey-item i::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border: 2px solid white;
  border-radius: 999px;
  background: #10b981;
}

.journey-item.current i,
.journey-item.current i::before {
  background-color: var(--blue);
}

.journey-item div {
  min-width: 0;
  flex: 1;
}

.journey-item strong {
  display: block;
  font-size: 12px;
}

.journey-item strong span {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dcfce7;
  color: #10b981;
  font-size: 9px;
}

.journey-item.current strong span {
  background: #dbeafe;
  color: var(--blue);
}

.journey-item p {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-item em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.expanded-display {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 11px;
}

.expanded-display div {
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.expanded-display a {
  color: var(--blue);
  font-weight: 800;
}

.expanded-display p {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.expanded-display p strong {
  color: #10b981;
}

.expanded-display footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 10px;
}

.cctv-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cctv-lock-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.cctv-card.locked::after {
  content: "Locked view";
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.flight-editor.expanded .cctv-stack {
  grid-row: span 3;
}

.cctv-card {
  position: relative;
  height: 298px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(15,23,42,0.1), rgba(15,23,42,0.68)),
    repeating-linear-gradient(90deg, #334155 0 38px, #475569 38px 40px),
    linear-gradient(#cbd5e1, #64748b);
}

.cctv-card.image-feed {
  background-position: center;
  background-size: cover;
}

.cctv-card.baggage {
  height: 238px;
}

.flight-editor.expanded .cctv-card {
  height: 360px;
}

.flight-editor.expanded .cctv-card.baggage {
  height: 278px;
}

.cctv-top,
.cctv-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 10px;
}

.cctv-top { top: 0; }
.cctv-bottom {
  bottom: 0;
  color: #d1d5db;
}

.cctv-top span {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--red);
  font-weight: 800;
}

.cctv-scene {
  position: absolute;
  inset: 62px 24px 38px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255,255,255,0.14) 22% 23%, transparent 23% 47%, rgba(255,255,255,0.14) 47% 48%, transparent 48%),
    linear-gradient(#1e3a8a 0 45%, #111827 45% 100%);
  color: white;
}

.cctv-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cctv-label {
  position: absolute;
  right: 20px;
  bottom: 42px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.cctv-scene b,
.cctv-scene span {
  position: absolute;
  right: 18px;
}

.cctv-scene b {
  top: 44px;
  font-size: 16px;
}

.cctv-scene img + b {
  left: 12px;
  right: auto;
  top: auto;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  font-size: 11px;
}

.cctv-scene span {
  bottom: 24px;
  font-size: 38px;
  font-weight: 900;
}

.history-source-tabs {
  display: flex;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.history-source-tabs button {
  flex: 1;
  padding: 10px 4px;
  font-size: 13px;
}

.history-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.history-head span {
  color: var(--muted);
  font-size: 12px;
}

.history-timeline {
  display: flex;
  flex-direction: column;
}

.history-item {
  position: relative;
  padding: 0 0 14px 28px;
  border-bottom: 1px solid var(--line);
}

.history-item + .history-item {
  padding-top: 14px;
}

.history-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.history-item i {
  position: absolute;
  left: 5px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
  z-index: 1;
}

.history-item.orange i { background: var(--orange); }
.history-item.green i { background: #10b981; }

.history-item time {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.history-item strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.history-item p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.history-item p b {
  color: var(--ink);
}

.history-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.history-item em {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.history-item.orange em {
  background: #ffedd5;
  color: #c2410c;
}

.history-item.green em {
  background: #dcfce7;
  color: #10b981;
}

.messaging-panel {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  gap: 14px;
}

.messaging-panel.collapsed {
  align-items: center;
  width: 42px;
}

.messaging-title-row,
.aoc-chat-head,
.message-composer,
.message-actions {
  display: flex;
  align-items: center;
}

.messaging-title-row {
  justify-content: space-between;
  gap: 16px;
}

.messaging-panel.collapsed .messaging-title-row {
  display: none;
}

.messaging-title-row div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.messaging-title-row strong {
  color: var(--ink);
  font-size: 18px;
}

.messaging-title-row span {
  color: var(--muted);
  font-size: 12px;
}

.messaging-title-row button,
.messaging-collapsed-card,
.message-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.messaging-title-row button {
  height: 32px;
  padding: 0 12px;
}

.messaging-collapsed-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  text-align: center;
}

.messaging-collapsed-card span,
.aoc-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.messaging-collapsed-card span {
  width: 32px;
  height: 32px;
}

.messaging-collapsed-card svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aoc-chat-card,
.messaging-collapsed-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.aoc-chat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 430px;
  flex: 1;
  padding: 12px;
}

.expanded-messaging-column .aoc-chat-card {
  min-height: 0;
}

.aoc-chat-head {
  gap: 10px;
}

.aoc-avatar {
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 28px;
}

.aoc-chat-head div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.aoc-chat-head span,
.aoc-chat-card small {
  color: var(--muted);
  font-size: 11px;
}

.aoc-chat-head em {
  color: #10b981;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.chat-messages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.message-composer {
  margin-top: auto;
}

.chat-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 13px;
}

.chat-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.chat-bubble p {
  margin: 0;
  line-height: 18px;
}

.chat-bubble.aoc {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #f1f5f9;
}

.chat-bubble.user {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #f1f5f9;
  color: var(--ink);
}

.chat-bubble.airline {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
}

.message-composer {
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.message-composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
}

.message-composer button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
}

.message-composer svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-composer svg path {
  stroke: currentColor;
}

.editor-footer {
  gap: 8px;
  margin-top: auto;
}

.editor-footer button {
  flex: 1;
  height: 36px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.editor-footer .danger {
  border-color: var(--red);
  color: var(--red);
}

.editor-footer .primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

body.dark-mode {
  background: var(--surface);
  color: var(--ink);
}

body.dark-mode .top-header,
body.dark-mode .workspace,
body.dark-mode .reports-page,
body.dark-mode .integrations-page,
body.dark-mode .data-priority-page {
  background: var(--surface);
}

body.dark-mode .tabs-group,
body.dark-mode .view-switcher {
  background: #1c283a;
}

body.dark-mode .tab-nav,
body.dark-mode .calendar-pill,
body.dark-mode .global-search,
body.dark-mode .inline-search,
body.dark-mode .icon-button,
body.dark-mode select,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode .more-filters,
body.dark-mode .reset-filters,
body.dark-mode .theme-toggle,
body.dark-mode .auto-follow-toggle,
body.dark-mode .user-switcher-header button,
body.dark-mode .confirm-dialog button,
body.dark-mode .editor-footer button,
body.dark-mode .data-priority-actions button,
body.dark-mode .priority-row button {
  border-color: var(--line);
  background: #111827;
  color: var(--ink);
}

body.dark-mode .editor-field.locked select,
body.dark-mode .editor-field.locked input,
body.dark-mode .editor-stat-strip label.locked input,
body.dark-mode .editor-section.locked input,
body.dark-mode .editor-section.locked button,
body.dark-mode .cctv-lock-note {
  border-color: #334155;
  background: #172033;
  color: #9fb0c6;
}

body.dark-mode .theme-toggle[aria-pressed="true"],
body.dark-mode .more-filters.active,
body.dark-mode .auto-follow-toggle.active,
body.dark-mode .view-switcher .table-auto-now.active {
  background: #14315d;
  color: #bfdbfe;
}

body.dark-mode .stat-card,
body.dark-mode .chart-panel,
body.dark-mode .table-panel,
body.dark-mode .integration-metric,
body.dark-mode .integration-filters,
body.dark-mode .integration-card,
body.dark-mode .integration-logs-table,
body.dark-mode .integration-log-head,
body.dark-mode .integration-detail-panel[aria-hidden="false"],
body.dark-mode .data-priority-metrics article,
body.dark-mode .data-priority-card,
body.dark-mode .priority-table-head,
body.dark-mode .priority-row,
body.dark-mode .user-auth-card,
body.dark-mode .users-table,
body.dark-mode .users-table-head,
body.dark-mode .managed-user-row,
body.dark-mode .user-detail-panel[aria-hidden="false"],
body.dark-mode .sso-status-card,
body.dark-mode .sso-config-form,
body.dark-mode .sso-test-card,
body.dark-mode .token-validation-card,
body.dark-mode .flight-header,
body.dark-mode .flight-row,
body.dark-mode .glance-rail,
body.dark-mode .flight-tile,
body.dark-mode .flight-tile.status-on-time,
body.dark-mode .flight-tile.status-boarding,
body.dark-mode .flight-tile.status-arrived,
body.dark-mode .flight-tile.status-departed,
body.dark-mode .flight-tile.status-scheduled,
body.dark-mode .confirm-dialog,
body.dark-mode .user-switcher-panel[aria-hidden="false"],
body.dark-mode .add-flight-shell,
body.dark-mode .add-flight-panel,
body.dark-mode .draft-list-panel,
body.dark-mode .multi-shell,
body.dark-mode .flight-editor,
body.dark-mode .audit-detail-panel,
body.dark-mode .audit-detail-section,
body.dark-mode .audit-summary-card,
body.dark-mode .audit-table,
body.dark-mode .audit-filters,
body.dark-mode .integration-log-filters label,
body.dark-mode .integration-select,
body.dark-mode .user-toolbar label,
body.dark-mode .user-toolbar select,
body.dark-mode .user-toolbar button:not(.primary-action),
body.dark-mode .sso-form-grid input,
body.dark-mode .token-validation-card textarea,
body.dark-mode .sso-toggle-row,
body.dark-mode .editor-section,
body.dark-mode .editor-list,
body.dark-mode .editor-route-card,
body.dark-mode .journey-summary,
body.dark-mode .journey-timeline,
body.dark-mode .expanded-display,
body.dark-mode .cctv-card,
body.dark-mode .messaging-panel,
body.dark-mode .gate-login-card,
body.dark-mode .gate-flight-preview,
body.dark-mode .gate-session-shell,
body.dark-mode .baggage-login-card,
body.dark-mode .message-composer {
  border-color: var(--line);
  background: #111827;
  color: var(--ink);
}

body.dark-mode .gate-login-field select,
body.dark-mode .gate-login-field input {
  border-color: var(--line);
  background: #172033;
  color: var(--ink);
}

body.dark-mode .gate-login-field input:disabled {
  color: #9fb0c6;
}

body.dark-mode .flight-row:hover,
body.dark-mode .flight-row:focus-visible,
body.dark-mode .flight-row.selected,
body.dark-mode .integration-card:hover,
body.dark-mode .integration-card:focus-visible,
body.dark-mode .integration-card.selected,
body.dark-mode .managed-user-row.selected,
body.dark-mode .audit-row:hover,
body.dark-mode .audit-row.selected {
  background: #172033;
}

body.dark-mode .flight-header,
body.dark-mode .flight-row {
  border-bottom-color: var(--line);
}

body.dark-mode .glance-row,
body.dark-mode .glance-row.featured-row {
  background: white;
  box-shadow: 0 0 0 1px #cbd5e1;
}

body.dark-mode .flight-tile.irregular {
  background: #2b2115;
}

body.dark-mode .flight-tile:hover,
body.dark-mode .flight-tile:focus-visible,
body.dark-mode .flight-tile.selected {
  border-color: #60a5fa;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.dark-mode .airline-logo,
body.dark-mode .cs-badge,
body.dark-mode .tile-cs,
body.dark-mode .permission-list i,
body.dark-mode .status-badge.status-departed,
body.dark-mode .integration-directory header span,
body.dark-mode .integration-status-tabs,
body.dark-mode .integration-search kbd,
body.dark-mode .integration-mark.logo,
body.dark-mode .managed-user-name b,
body.dark-mode .user-detail-body section > strong,
body.dark-mode .synect-auth-box,
body.dark-mode .users-pagination b,
body.dark-mode .user-option,
body.dark-mode .draft-entry,
body.dark-mode .add-flight-status section,
body.dark-mode .multi-row,
body.dark-mode .chat-bubble.aoc,
body.dark-mode .chat-bubble.user {
  background: #182235;
  color: var(--ink);
}

body.dark-mode .user-option:hover,
body.dark-mode .user-option:focus-visible,
body.dark-mode .user-option.selected {
  background: #172b4d;
}

body.dark-mode .stat-icon {
  background: #142d52;
  color: #93c5fd;
}

body.dark-mode .stat-card.warning .stat-icon {
  background: #332714;
  color: #fbbf24;
}

body.dark-mode .status-badge.status-on-time,
body.dark-mode .status-badge.status-arrived {
  background: #143524;
  color: #86efac;
}

body.dark-mode .status-badge.status-boarding,
body.dark-mode .status-badge.status-scheduled {
  background: #14315d;
  color: #bfdbfe;
}

body.dark-mode .status-badge.status-delayed,
body.dark-mode .status-badge.status-gate-change,
body.dark-mode .tile-featured-status.status-delayed,
body.dark-mode .tile-featured-status.status-gate-change {
  background: #3a2a12;
  color: #fbbf24;
}

body.dark-mode .status-badge.status-cancelled,
body.dark-mode .tile-featured-status.status-cancelled {
  background: #3b1518;
  color: #fca5a5;
}

body.dark-mode .add-flight-backdrop,
body.dark-mode .multi-backdrop,
body.dark-mode .confirm-backdrop {
  background: rgba(2, 6, 23, 0.62);
}

body.dark-mode .chat-bubble.airline {
  background: #10324d;
  color: #bae6fd;
}

body.dark-mode .message-composer input,
body.dark-mode .calendar-pill input {
  background: transparent;
}

body.dark-mode .selection-toast {
  background: #111827;
  color: var(--ink);
}

@media (max-width: 1500px) {
  .stats-row { gap: 12px; }
  .stat-value { font-size: 22px; }
  .filters-group { gap: 8px; }
  select, .more-filters, .reset-filters, .theme-toggle { padding: 0 8px; }
  .view-switcher button { padding: 0 10px; }
}
