:root {
  --bg-dark: #090D16;
  --card-bg: rgba(18, 24, 38, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(30, 41, 59, 0.85);
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --color-gps: #3b82f6;
  --color-bds: #ef4444;
  --color-gal: #8b5cf6;
  --color-glo: #10b981;
  --color-qzs: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

/* =========================================================
   Light Theme System ([data-theme="light"])
   ========================================================= */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-hover: rgba(241, 245, 249, 0.95);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
}

[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .bg-glow {
  opacity: 0.08;
}

[data-theme="light"] .header {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 1.25rem 0;
}

[data-theme="light"] .live-banner {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .live-status-pill {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .live-status-pill b {
  color: #b91c1c !important;
}

[data-theme="light"] .live-ping-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6) !important;
}

[data-theme="light"] .live-meta-stream {
  color: #475569 !important;
  font-weight: 500 !important;
}

[data-theme="light"] .live-meta-stream b {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

[data-theme="light"] #live-time {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .site-location-pill {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .site-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .site-coords {
  color: #475569 !important;
}

[data-theme="light"] .sat-total-badge {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .sat-chips-compact .sat-chip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .sat-chips-compact .sat-chip.gps {
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

[data-theme="light"] .sat-chips-compact .sat-chip.glo {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

[data-theme="light"] .sat-chips-compact .sat-chip.gal {
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

[data-theme="light"] .sat-chips-compact .sat-chip.bds {
  color: #b45309 !important;
  border-color: #fde68a !important;
}

[data-theme="light"] .sat-chips-compact .sat-chip.qzss {
  color: #6d28d9 !important;
  border-color: #ddd6fe !important;
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-value {
  color: #0f172a;
}

[data-theme="light"] .tab-btn {
  color: #475569;
  background: rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

[data-theme="light"] .tab-btn.active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="light"] .modal-card,
[data-theme="light"] .modal-card-lg {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .coord-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .file-table th {
  background: #f1f5f9;
  color: #334155;
}

[data-theme="light"] .file-table td {
  border-color: #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .filter-bar {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .filter-label {
  color: #334155;
}

[data-theme="light"] .filter-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  font-weight: 700;
}

[data-theme="light"] .search-input-sm {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .search-input-sm::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .day-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .day-card:hover {
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .day-title {
  color: #0f172a !important;
}

[data-theme="light"] .day-submeta {
  color: #475569;
}

[data-theme="light"] .hourly-matrix-container {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .matrix-label {
  color: #475569;
}

[data-theme="light"] .hour-box {
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hour-box.missing {
  background: #f1f5f9;
  color: #94a3b8;
}

[data-theme="light"] .hour-box.complete {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.35);
  font-weight: 700;
}

[data-theme="light"] .hour-box.partial {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.35);
  font-weight: 700;
}

[data-theme="light"] .hour-box.receiving {
  background: rgba(16, 185, 129, 0.15);
  color: #15803d;
  border-color: rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

[data-theme="light"] .section-toolbar h2 {
  color: #0f172a;
}

[data-theme="light"] .legend {
  color: #475569;
}

[data-theme="light"] .sat-summary-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .sat-summary-card-title {
  color: #0f172a !important;
}

[data-theme="light"] .sat-summary-count-badge {
  color: #0284c7;
}

[data-theme="light"] .sat-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .sat-box-title {
  color: #475569 !important;
}

[data-theme="light"] .sat-box-count {
  color: #0f172a !important;
}

[data-theme="light"] .skyplot-card,
[data-theme="light"] .snr-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .skyplot-title,
[data-theme="light"] .snr-title {
  color: #0f172a !important;
}

[data-theme="light"] .skyplot-legend {
  color: #64748b;
}

[data-theme="light"] .snr-bar-row {
  border-color: #f1f5f9;
}

[data-theme="light"] .snr-progress-track {
  background: #e2e8f0;
}

[data-theme="light"] .snr-val-text {
  color: #334155;
}

[data-theme="light"] .admin-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .admin-subcard {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .admin-session-box {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .code-product-row,
[data-theme="light"] .hour-file-row {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .code-product-row:hover,
[data-theme="light"] .hour-file-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .code-badge-pill {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

[data-theme="light"] .aiub-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .aiub-header h3 {
  color: #0f172a;
}

[data-theme="light"] .aiub-subtitle {
  color: #64748b;
}

[data-theme="light"] .breadcrumb-bar {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .breadcrumb-label {
  color: #475569;
}

[data-theme="light"] .breadcrumb-links a {
  color: #0284c7;
  font-weight: 700;
}

[data-theme="light"] .breadcrumb-sep {
  color: #94a3b8;
}

[data-theme="light"] .aiub-table th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
}

[data-theme="light"] .aiub-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

[data-theme="light"] .aiub-table tr:hover td {
  background: #f8fafc;
}

[data-theme="light"] .aiub-item-link {
  color: #0f172a !important;
  font-weight: 600;
}

[data-theme="light"] .aiub-item-link:hover {
  color: #0284c7 !important;
}

[data-theme="light"] .aiub-badge.folder {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

[data-theme="light"] .aiub-badge.obs {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

[data-theme="light"] .aiub-badge.nav {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

[data-theme="light"] .aiub-badge.file {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .guide-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .guide-card h3 {
  color: #0f172a;
}

[data-theme="light"] .guide-lead {
  color: #475569;
}

[data-theme="light"] .api-block {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .api-title {
  color: #0284c7;
}

[data-theme="light"] .sub-text {
  color: #475569;
}

[data-theme="light"] .noti-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .noti-card-title {
  color: #0f172a !important;
}

[data-theme="light"] .noti-desc {
  color: #475569 !important;
}

[data-theme="light"] #skyplot-canvas {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .brand-title {
  color: #0f172a;
}

[data-theme="light"] .brand-subtitle {
  color: #64748b;
}

[data-theme="light"] .status-badge {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

[data-theme="light"] .live-banner {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .live-meta-stream {
  color: #475569;
}

[data-theme="light"] .site-location-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .site-name {
  color: #0f172a;
}

[data-theme="light"] .site-coords {
  color: #64748b;
}

[data-theme="light"] .sat-chips-compact .sat-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .nav-tabs {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .tab-btn {
  color: #64748b;
}

[data-theme="light"] .tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

[data-theme="light"] .tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

[data-theme="light"] .geoplot-card,
[data-theme="light"] .admin-header-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .map-tile-switch {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="light"] .modal-card,
[data-theme="light"] .modal-card-lg {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .modal-header h3 {
  color: #0f172a;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: #fbbf24;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
[data-theme="light"] .theme-toggle-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient Background Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-indigo), transparent);
  top: -150px;
  left: -150px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan), transparent);
  bottom: -200px;
  right: -200px;
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.5rem 0 1.25rem 0;
  border: none;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.lab-logo-img {
  height: 44px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.lab-logo-img:hover {
  transform: scale(1.02);
}

[data-theme="dark"] .lab-logo-img {
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3)) brightness(1.1);
}

.brand-divider {
  width: 1.5px;
  height: 38px;
  background: var(--card-border);
}

[data-theme="light"] .brand-divider {
  background: rgba(0, 0, 0, 0.12);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.accent-text {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.syncing {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Top Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0.2rem 0;
}

.stat-value.text-sm {
  font-size: 1.15rem;
}

.stat-value .unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================================================
   REALTIME SATELLITE GRAPHS STYLES (NEW!)
   ========================================================= */

.sat-constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sat-card-mini {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, border-color 0.2s;
}

.sat-card-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.sat-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
}

.sat-mini-content {
  flex: 1;
}

.sat-mini-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sat-mini-count {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* =========================================================
   LIVE Real-Time 1-Second Stream Banner (Balanced 3-Col Layout)
   ========================================================= */
.live-banner {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
}

.live-meta-stream {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.live-sep {
  color: var(--card-border);
}

/* Center Site Location: Perfectly Balanced & Centered */
.live-banner-center-site {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.site-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all 0.2s;
}

.site-location-pill:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.site-name {
  font-weight: 700;
  color: var(--text-main);
}

.site-coords {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Right Section: Satellites & Action */
.live-banner-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.sat-summary-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sat-total-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.sat-chips-compact {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.sat-chips-compact .sat-chip {
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sat-chips-compact .sat-chip.gps { color: #60a5fa; }
.sat-chips-compact .sat-chip.glo { color: #f87171; }
.sat-chips-compact .sat-chip.gal { color: #34d399; }
.sat-chips-compact .sat-chip.bds { color: #fbbf24; }
.sat-chips-compact .sat-chip.qzss { color: #c084fc; }

.geoplot-card, .admin-header-card, .admin-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-subcard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-session-box {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-height: 85px;
  overflow-y: auto;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.code-product-row, .hour-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  transition: all 0.2s;
}

.code-badge-pill {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.map-tile-switch {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  padding: 2px;
  border-radius: 8px;
  display: flex;
  gap: 2px;
}

/* Main Satellite Panel */
.sat-main-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sat-panel-title h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-tag-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.epoch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #38bdf8;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.epoch-badge b {
  color: #fff;
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-top: 0.25rem;
}

.ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 1.2s infinite;
}

.constellation-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  font-weight: 700;
}

.chart-container {
  position: relative;
  height: 380px;
  width: 100%;
}

/* Secondary Sub Grid */
.sat-sub-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 950px) {
  .sat-sub-grid {
    grid-template-columns: 1fr;
  }
}

.sat-sub-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.panel-header-mini {
  margin-bottom: 1rem;
}

.panel-header-mini h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.donut-chart-box {
  position: relative;
  height: 240px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Satellite Chips Matrix */
.sat-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.sat-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s, border-color 0.15s;
}

.sat-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.sat-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #fff;
}

.sat-badge.gps { background: var(--color-gps); }
.sat-badge.bds { background: var(--color-bds); }
.sat-badge.gal { background: var(--color-gal); }
.sat-badge.glo { background: var(--color-glo); }
.sat-badge.qzs { background: var(--color-qzs); }
.sat-badge.sbas { background: var(--accent-cyan); }

.sat-chip-snr {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.sat-chip-snr .unit {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Calendar Section */
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toolbar-left h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-item .box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.box.complete { background-color: #3b82f6; } /* 완료: 파란색 */
.box.receiving { background-color: #10b981; } /* 수신/기록 중: 초록색 */
.box.partial { background-color: #ef4444; } /* 결측: 빨간색 */
.box.missing { background-color: rgba(255, 255, 255, 0.1); } /* 미도달: 회색 */

/* Day Cards List */
.days-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.day-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.day-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.day-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.day-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.day-submeta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  margin-top: 0.2rem;
}

.day-actions {
  display: flex;
  gap: 0.5rem;
}

/* 24-Hour Matrix Grid */
.hourly-matrix-container {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.matrix-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hourly-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
}

.hour-block {
  aspect-ratio: 1 / 1.1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.hour-block:hover {
  transform: scale(1.18);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hour-block.complete {
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.65);
  color: #60a5fa;
}

.hour-block.receiving {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.7);
  color: #34d399;
  animation: pulse 1.5s infinite;
}

.hour-block.partial {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.75);
  color: #f87171;
}

/* Tooltip */
.hour-block .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.hour-block:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* API Guide & Docs */
.guide-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
}

.guide-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.guide-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.api-block {
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.api-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-box {
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
}

.code-box.pre-wrap {
  white-space: pre-wrap;
  color: #cbd5e1;
}

.code-example-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0.75rem 0 0.35rem 0;
}

/* Log Panel */
.log-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.log-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.log-console {
  background: #070a11;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  max-height: 450px;
  overflow-y: auto;
  line-height: 1.6;
}

.log-line {
  margin-bottom: 2px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open,
.modal-overlay.active {
  display: flex !important;
}

.modal-card {
  background: #111726;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  width: 100%;
  max-width: 950px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalScale 0.2s ease-out;
}

.modal-card.modal-card-md {
  max-width: 680px;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
}

.btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.modal-actions {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.85rem;
  width: 320px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-cyan);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.file-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.file-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.file-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.file-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.file-tag.obs { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.file-tag.nav { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }

.status-dot-uploaded {
  color: #34d399;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot-pending {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Filter Bar & Chips */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--card-border);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: #fff;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  outline: none;
}

.month-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chip.active {
  background: var(--accent-cyan);
  color: #030712;
  font-weight: 700;
  border-color: var(--accent-cyan);
}

.search-input-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  outline: none;
  width: 200px;
}

.search-input-sm:focus {
  border-color: var(--accent-cyan);
}

/* AIUB Style Explorer */
.aiub-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.aiub-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.aiub-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.aiub-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.aiub-actions {
  display: flex;
  gap: 0.5rem;
}

.breadcrumb-bar {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.breadcrumb-label {
  color: var(--text-dim);
  font-weight: 600;
}

.breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
}

.breadcrumb-links a {
  color: #38bdf8;
  text-decoration: none;
}

.breadcrumb-links a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-dim);
}

.aiub-table-wrapper {
  overflow-x: auto;
}

.aiub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.aiub-table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.aiub-table td {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.aiub-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
}

.aiub-item-link {
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.aiub-item-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.aiub-item-link i {
  font-size: 1rem;
}

.aiub-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.aiub-badge.folder { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.aiub-badge.obs { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.aiub-badge.nav { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.aiub-badge.file { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

/* Notification Modal Cards */
.noti-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.noti-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.noti-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* LIVE Telemetry Banner */
.live-banner {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.live-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #fff;
}

.live-ping-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: pulse-live 1.2s infinite ease-in-out;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: brightness(1.2); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-port-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.live-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.live-sep {
  color: rgba(255, 255, 255, 0.2);
}

.live-banner-center {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sat-summary-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sat-total-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

.sat-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sat-chip {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
}

.sat-chip.gps { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.sat-chip.glo { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.sat-chip.gal { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.sat-chip.bds { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.sat-chip.qzss { background: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168, 85, 247, 0.3); }

.live-banner-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sat-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .sat-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

.sat-box {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sat-box-title {
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.sat-box-count {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.sat-box.gps { background: rgba(59, 130, 246, 0.08); color: #60a5fa; border-color: rgba(59, 130, 246, 0.25); }
.sat-box.glo { background: rgba(239, 68, 68, 0.08); color: #f87171; border-color: rgba(239, 68, 68, 0.25); }
.sat-box.gal { background: rgba(16, 185, 129, 0.08); color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
.sat-box.bds { background: rgba(245, 158, 11, 0.08); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.sat-box.qzss { background: rgba(168, 85, 247, 0.08); color: #c084fc; border-color: rgba(168, 85, 247, 0.25); }

.sat-filter-card {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.sat-filter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sat-filter-card.active {
  box-shadow: 0 0 0 2px var(--accent-cyan), 0 4px 14px rgba(56, 189, 248, 0.3) !important;
  transform: scale(1.02);
}

.sat-filter-card.dimmed {
  opacity: 0.35;
  filter: grayscale(0.5);
}

.snr-bar-row {
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

.snr-bar-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.snr-bar-row.selected {
  border: 1.5px solid #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.snr-bar-row.dimmed {
  opacity: 0.25;
}

.snr-progress-fill.snr-fill-dimmed {
  opacity: 0.45 !important;
  filter: grayscale(0.35);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,0.15) 4px, rgba(255,255,255,0.15) 8px);
}

[data-theme="light"] .snr-bar-row.selected {
  border-color: #0284c7 !important;
  background: #e0f2fe !important;
}

[data-theme="light"] .sat-filter-card.active {
  box-shadow: 0 0 0 2px #0284c7, 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

.btn-freq-pill {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-freq-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.btn-freq-pill.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.35);
}

[data-theme="dark"] .btn-freq-pill.active {
  background: #38bdf8 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 6px rgba(56, 189, 248, 0.4);
}

[data-theme="dark"] .freq-band-selector {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Skyplot & SNR Visualizer Layout */
.skyplot-snr-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .skyplot-snr-grid {
    grid-template-columns: 1fr;
  }
}

.skyplot-card, .snr-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}

.skyplot-card-header, .snr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.skyplot-title, .snr-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skyplot-canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
}

#skyplot-canvas {
  background: #020617;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.skyplot-legend {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.s-leg {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.s-leg .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.s-leg .dot.gps { background: #3b82f6; }
.s-leg .dot.glo { background: #ef4444; }
.s-leg .dot.gal { background: #10b981; }
.s-leg .dot.bds { background: #f59e0b; }
.s-leg .dot.qzss { background: #a855f7; }

/* SNR Bar List */
.snr-bars-list {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.35rem;
}

.snr-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.snr-sat-id {
  width: 44px;
  font-weight: 700;
  text-align: center;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
}
.snr-sat-id.gps { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.snr-sat-id.glo { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.snr-sat-id.gal { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.snr-sat-id.bds { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.snr-sat-id.qzss { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.snr-progress-track {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.snr-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.snr-fill-high { background: linear-gradient(90deg, #10b981, #34d399); }
.snr-fill-mid { background: linear-gradient(90deg, #06b6d4, #38bdf8); }
.snr-fill-fair { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.snr-fill-low { background: linear-gradient(90deg, #ef4444, #f87171); }

.snr-val-text {
  width: 65px;
  text-align: right;
  font-weight: 600;
  color: #fff;
}

/* MATLAB GeoPlot Styles */
.geoplot-coords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.coord-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.coord-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.coord-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.coord-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.geoplot-map-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.geoplot-map-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.overlay-badge {
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.overlay-item {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cov-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid;
}
.cov-circle.c-5 { border-color: #ef4444; background: rgba(239, 68, 68, 0.2); }
.cov-circle.c-10 { border-color: #38bdf8; background: rgba(56, 189, 248, 0.15); }
.cov-circle.c-20 { border-color: #10b981; background: rgba(16, 185, 129, 0.1); }

/* Watermark-Free MATLAB Dark Tile Filter */
.matlab-dark-tile {
  filter: brightness(0.6) invert(1) contrast(2.5) hue-rotate(200deg) saturate(0.2) brightness(0.7) !important;
}

/* =========================================================
   Mobile First Responsive Polish (@media max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {
  .app-container {
    padding: 0.75rem 0.5rem;
  }

  /* Header Optimization */
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
  }

  .header-brand {
    justify-content: space-between;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    font-size: 0.72rem;
  }

  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .header-actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Live Telemetry Banner */
  .live-banner {
    flex-direction: column;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .live-banner-left,
  .live-banner-center,
  .live-banner-right {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .live-meta {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .sat-summary-chips {
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .sat-badge-btn {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
  }

  /* Horizontal Scrollable Nav Tabs (Mobile App Style) */
  .nav-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.2rem 0.5rem 0.2rem;
    gap: 0.45rem;
    scrollbar-width: none; /* Firefox */
  }

  .nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  /* Filter Toolbar */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .month-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .month-chips::-webkit-scrollbar {
    display: none;
  }

  /* Interactive GIS Map on Mobile */
  .geoplot-map-container #geoplot-map {
    height: 440px !important;
  }

  .geoplot-coords-grid {
    grid-template-columns: 1fr;
  }

  /* 모바일에서는 범례가 지도를 가리지 않도록 지도 아래 인라인 칩 바로 깔끔하게 전환 */
  .geoplot-map-overlay {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 0.5rem;
    width: 100% !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.4rem 0.85rem !important;
    font-size: 0.72rem !important;
    align-items: center;
  }

  .geoplot-map-overlay .overlay-badge {
    margin-bottom: 0;
  }

  .geoplot-map-overlay div {
    border-top: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
  }

  /* Modals on Mobile */
  .modal-card,
  .modal-card-lg {
    width: 95vw !important;
    max-height: 90vh !important;
    padding: 1rem !important;
  }

  .skyplot-snr-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  #skyplot-canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }

  /* Admin Operations Panel */
  .file-table {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .logo-title {
    font-size: 1.05rem;
  }

  .live-meta span {
    font-size: 0.72rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }
}

/* =========================================================
   Scientific Geodesy & Displacement Analysis (EKF / Bernese / GAMIT)
   ========================================================= */
.analysis-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.analysis-control-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analysis-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.analysis-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.analysis-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.analysis-main-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analysis-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
}

.analysis-mode-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mode-pills-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.mode-pill {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mode-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.mode-pill.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.analysis-subfilter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.engine-filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.subfilter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.2rem;
}

.engine-chip {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.engine-chip:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-main);
}

.engine-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.date-filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-select-sm {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-main);
  font-family: inherit;
}

/* KPI Cards */
.analysis-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.kpi-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.kpi-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.kpi-value-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.kpi-main-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.kpi-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-coords-breakdown {
  font-size: 0.72rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border-color);
}

/* Charts */
.analysis-charts-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analysis-chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-title-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: block;
}

.chart-legend-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chart-legend-item {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.analysis-two-col-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Models Specs Cards */
.analysis-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.model-spec-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.model-title-box {
  margin-bottom: 0.35rem;
}

.engine-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.model-meta-list {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.model-meta-list b {
  color: var(--text-main);
}

/* Archive Table */
.analysis-archive-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.analysis-files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.analysis-files-table th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.06);
}

.analysis-files-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.analysis-files-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 900px) {
  .analysis-two-col-charts {
    grid-template-columns: 1fr;
  }
}

/* Real-time Absolute Coordinates Card */
.analysis-coords-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.coords-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.coords-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 0.85rem;
}

@media (max-width: 980px) {
  .coords-compare-grid {
    grid-template-columns: 1fr;
  }
}

.coords-box {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.coords-box-ref {
  border-left: 3px solid #0284c7;
}

.coords-box-live {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.03);
}

.coords-box-diff {
  border-left: 3px solid #f59e0b;
}

.coords-box-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.badge-mini {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.live-pulse-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.coords-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.coord-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coord-line .c-label {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.coord-line .c-val {
  color: var(--text-main);
  font-weight: 600;
}

.coords-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.diff-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.diff-item.highlight {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.diff-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.diff-val {
  font-size: 0.88rem;
  font-weight: 800;
}

/* Displacement Row: Time-Series (58%) + 2D Position Map (42%) */
.analysis-disp-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .analysis-disp-row {
    grid-template-columns: 1fr;
  }
}

/* Clear Real vs Fake Badges */
.badge-tag-real {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.45);
  vertical-align: middle;
  margin-left: 5px;
  letter-spacing: -0.2px;
}

.badge-tag-fake {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  vertical-align: middle;
  margin-left: 5px;
  letter-spacing: -0.2px;
}

.badge-tag-warn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.45);
  vertical-align: middle;
  margin-left: 5px;
  letter-spacing: -0.2px;
}

/* =========================================================
   Mobile Bottom Navigation & Sheet Drawer System
   ========================================================= */
.mobile-bottom-nav {
  display: none; /* Hidden on Desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  z-index: 9998;
  align-items: center;
  justify-content: space-around;
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
  font-size: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item.active {
  color: #38bdf8;
}

[data-theme="light"] .mobile-nav-item.active {
  color: #0284c7;
}

.mobile-nav-item.active i {
  transform: translateY(-2px) scale(1.1);
  color: #38bdf8;
}

[data-theme="light"] .mobile-nav-item.active i {
  color: #0284c7;
}

/* Mobile More Menu Sheet */
.mobile-more-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-more-sheet.active {
  display: flex;
  align-items: flex-end;
  opacity: 1;
}

.mobile-sheet-content {
  width: 100%;
  background: #0f172a;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .mobile-sheet-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
}

.mobile-more-sheet.active .mobile-sheet-content {
  transform: translateY(0);
}

.mobile-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.85rem;
}

[data-theme="light"] .mobile-sheet-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-sheet-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: var(--text-main);
}

[data-theme="light"] .mobile-menu-row {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu-row:active {
  transform: scale(0.98);
  background: rgba(56, 189, 248, 0.08);
}

.mob-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mob-menu-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mob-menu-text b {
  font-size: 0.88rem;
  color: var(--text-main);
}

.mob-menu-text small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.mob-menu-arrow {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.4rem 0;
}

[data-theme="light"] .mobile-menu-divider {
  background: rgba(0, 0, 0, 0.06);
}

/* =========================================================
   Simplified Clean EKF Real-time Analysis View Styles
   ========================================================= */
.analysis-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.analysis-clean-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
}

[data-theme="light"] .analysis-clean-header {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.analysis-clean-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.analysis-clean-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.analysis-clean-title h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.analysis-clean-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 4 Simple Clean Functional Boxes */
.analysis-clean-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.clean-stat-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .clean-stat-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.clean-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.clean-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.clean-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.clean-stat-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.clean-stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.clean-status-tag {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

.clean-status-tag.fix {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* 2 Simple Clean Coordinates Boxes */
.analysis-clean-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.clean-coord-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
}

[data-theme="light"] .clean-coord-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.clean-coord-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

[data-theme="light"] .clean-coord-title {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.clean-pill-live {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-radius: 4px;
  font-weight: 700;
}

.clean-coord-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.coord-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coord-k {
  color: var(--text-muted);
}

.coord-v {
  color: var(--text-main);
  font-weight: 600;
}

.clean-offsets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.offset-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="light"] .offset-cell {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.offset-cell.highlight {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.offset-k {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.offset-v {
  font-size: 0.95rem;
  font-weight: 700;
}

.clean-live-target-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* =========================================================
   GnG Lab Logo Styles (100% Transparent 누끼)
   ========================================================= */
.logo-wrap,
.logo-capsule {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

[data-theme="dark"] .logo-wrap,
[data-theme="dark"] .logo-capsule {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.lab-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.lab-logo-img.logo-light {
  display: block !important;
}
.lab-logo-img.logo-dark {
  display: none !important;
}

[data-theme="dark"] .lab-logo-img.logo-light {
  display: none !important;
}
[data-theme="dark"] .lab-logo-img.logo-dark {
  display: block !important;
}

/* =========================================================
   Universal Mobile Responsiveness (@media (max-width: 768px))
   Tested for screens from 360px to 768px
   ========================================================= */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    font-size: 13.5px;
    -webkit-text-size-adjust: 100%;
  }

  .app-container {
    padding: 0.5rem 0.5rem 2rem 0.5rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* 1. Header & Brand */
  .header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.35rem 0 0.5rem 0 !important;
    margin-bottom: 0.5rem !important;
    gap: 0.35rem !important;
  }

  .brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    min-width: 0 !important;
  }

  .logo-wrap,
  .logo-capsule {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .lab-logo-img {
    height: 30px !important;
    max-width: 155px !important;
  }

  .brand-divider {
    display: none !important;
  }

  .brand-text-block {
    display: none !important; /* Hide long text on mobile to give full prominence to lab logo */
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  #system-status-badge {
    display: none !important; /* Live banner already indicates real-time status */
  }

  .theme-toggle-btn {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.75rem !important;
  }

  .theme-toggle-btn span {
    display: none !important;
  }

  #btn-login-open {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  #btn-login-open span {
    display: none !important;
  }

  /* 2. Top Live Telemetry Banner */
  .live-banner {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.65rem !important;
    gap: 0.5rem !important;
    margin-bottom: 0.65rem !important;
    border-radius: 12px !important;
  }

  .live-banner-left {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    font-size: 0.75rem !important;
  }

  .live-status-pill {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
  }

  .live-meta-stream {
    font-size: 0.72rem !important;
  }

  .live-banner-center-site {
    width: 100% !important;
  }

  .site-location-pill {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.35rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .live-banner-right {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.4rem !important;
  }

  .sat-summary-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .sat-total-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.55rem !important;
  }

  .sat-modal-btn {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.65rem !important;
  }

  .sat-chips-compact {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sat-chips-compact .sat-chip {
    padding: 3px 1px !important;
    font-size: 0.62rem !important;
    border-radius: 6px !important;
    min-width: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .sat-chips-compact .sat-chip b {
    font-size: 0.76rem !important;
  }

  /* 3. Navigation Tabs (Clean Horizontal Swipe on Mobile) */
  .nav-tabs {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 0.3rem !important;
    padding: 0 0 6px 0 !important;
    margin-bottom: 0.75rem !important;
    scrollbar-width: none !important;
    white-space: nowrap !important;
    border-bottom: 1px solid var(--card-border) !important;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .tab-btn {
    flex-shrink: 0 !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }

  /* 4. Tab 1: GIS Map View */
  .geoplot-card {
    padding: 0.65rem !important;
    border-radius: 12px !important;
  }

  .geoplot-card h2 {
    font-size: 1.0rem !important;
  }

  .map-controls-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.4rem !important;
  }

  .map-tile-switch {
    display: flex !important;
    width: 100% !important;
    gap: 0.3rem !important;
  }

  .map-tile-switch button {
    flex: 1 !important;
    padding: 0.4rem !important;
    font-size: 0.75rem !important;
  }

  .map-zoom-preset-group {
    display: flex !important;
    width: 100% !important;
    gap: 0.3rem !important;
  }

  .map-zoom-preset-group button {
    flex: 1 !important;
    padding: 0.4rem 0.2rem !important;
    font-size: 0.72rem !important;
  }

  .my-gps-btn {
    width: 100% !important;
    padding: 0.5rem !important;
    font-size: 0.82rem !important;
  }

  #geoplot-map {
    height: 44vh !important;
    min-height: 280px !important;
    border-radius: 10px !important;
  }

  .geoplot-map-overlay {
    bottom: 6px !important;
    right: 6px !important;
    padding: 0.3rem 0.5rem !important;
    font-size: 0.62rem !important;
  }

  /* 5. Tab 2: Calendar & Hourly Matrix View */
  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    padding: 0.65rem !important;
  }

  .filter-group {
    width: 100% !important;
  }

  .filter-select {
    flex: 1 !important;
  }

  .month-chips {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }

  .month-chips::-webkit-scrollbar {
    display: none !important;
  }

  .search-input-sm {
    width: 100% !important;
  }

  .section-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }

  .legend {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    font-size: 0.68rem !important;
  }

  .day-card {
    padding: 0.75rem !important;
    border-radius: 12px !important;
  }

  .day-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  .day-title {
    font-size: 1.05rem !important;
  }

  .day-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .day-quick-actions button,
  .day-quick-actions a {
    padding: 0.4rem 0.2rem !important;
    font-size: 0.72rem !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* 24-Hour Matrix Touch-Swipe Scroll */
  .hourly-matrix-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.4rem !important;
  }

  .hourly-grid {
    min-width: 680px !important;
    display: grid !important;
    grid-template-columns: repeat(24, minmax(26px, 1fr)) !important;
    gap: 3px !important;
  }

  /* 6. Tab 3: AIUB Browser */
  .aiub-card {
    padding: 0.75rem !important;
  }

  .aiub-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  .aiub-subtitle {
    display: none !important;
  }

  .aiub-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .aiub-actions button {
    justify-content: center !important;
    padding: 0.4rem 0.2rem !important;
    font-size: 0.75rem !important;
  }

  .breadcrumb-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4rem !important;
  }

  #aiub-search-input {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .aiub-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .aiub-table {
    min-width: 500px !important;
  }

  /* 7. Tab 4: Real-time 1s EKF Displacement (Clean Simple Boxes) */
  .analysis-clean-header {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.85rem !important;
    gap: 0.6rem !important;
  }

  .analysis-clean-title h2 {
    font-size: 1.05rem !important;
  }

  .analysis-clean-title p {
    font-size: 0.72rem !important;
  }

  .analysis-clean-status {
    width: 100% !important;
  }

  .status-live-pill {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.35rem !important;
  }

  .analysis-clean-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .clean-stat-box {
    padding: 0.75rem !important;
    gap: 0.35rem !important;
  }

  .clean-stat-label {
    font-size: 0.72rem !important;
  }

  .clean-stat-value {
    font-size: 1.3rem !important;
  }

  .clean-stat-sub {
    font-size: 0.68rem !important;
    gap: 0.3rem !important;
  }

  .analysis-clean-coords {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .clean-coord-box {
    padding: 0.75rem 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .clean-coord-title {
    font-size: 0.85rem !important;
  }

  .clean-coord-rows {
    font-size: 0.76rem !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  .coord-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 2px 0 !important;
  }

  .coord-k {
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    color: var(--text-muted) !important;
  }

  .coord-v {
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    text-align: right !important;
  }

  .clean-offsets-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .offset-cell {
    padding: 0.4rem 0.5rem !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .offset-k {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  .offset-v {
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  .analysis-charts-stack,
  .analysis-disp-row,
  .analysis-chart-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .analysis-disp-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .analysis-chart-card {
    padding: 0.75rem !important;
    overflow: hidden !important;
  }

  .chart-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  .chart-title-box h3 {
    font-size: 0.82rem !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  .chart-canvas-box {
    height: 250px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* 8. Tab 5: API Guide View */
  .guide-card {
    padding: 0.85rem !important;
  }

  .guide-lead {
    font-size: 0.8rem !important;
  }

  .code-box {
    overflow-x: auto !important;
    word-break: break-all !important;
    white-space: pre-wrap !important;
    padding: 0.65rem !important;
    font-size: 0.75rem !important;
  }

  /* 9. Modals (Touch-Optimized) */
  .modal-card,
  .modal-card-lg {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 88vh !important;
    margin: auto !important;
    border-radius: 14px !important;
    padding: 0 !important;
  }

  .modal-header {
    padding: 0.85rem 1rem !important;
  }

  .modal-body {
    padding: 0.85rem !important;
    max-height: calc(88vh - 65px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .file-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .file-table {
    min-width: 520px !important;
  }

  .skyplot-snr-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .skyplot-canvas-wrapper {
    display: flex !important;
    justify-content: center !important;
  }

  #skyplot-canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  .sat-filter-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
  }
}


