    * { -webkit-tap-highlight-color: transparent; user-select: none; box-sizing: border-box; }
    input, textarea { user-select: text; }
    .safe-bottom { padding-bottom: calc(16px + env(safe-area-inset-bottom, 16px)); }
    .safe-top { padding-top: env(safe-area-inset-top, 16px); }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
    
    /* Radar Grid & HUD Effects — Somente no modo escuro */
    .telemetry-grid {
      background-image: none !important;
    }
    .dark .telemetry-grid {
      background-image: linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
                        linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px) !important;
      background-size: 24px 24px !important;
    }
    .hud-glow {
      box-shadow: 0 0 20px -2px rgba(16, 185, 129, 0.3);
    }
    .subgrid-active-cell {
      box-shadow: inset 0 0 0 1.5px rgba(56, 189, 248, 0.8) !important;
      background-color: rgba(14, 165, 233, 0.15) !important;
    }
    .volante-btn {
      min-height: 42px;
      touch-action: manipulation;
      transition: all 0.15s ease;
    }
    
    /* Animações Aeroespaciais */
    @keyframes rocket-pulse {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-3px) rotate(-2deg); }
    }
    @keyframes flame-flicker {
      0%, 100% { opacity: 0.9; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8)); }
    }
    @keyframes radar-sweep {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    .animate-rocket {
      display: inline-block;
      animation: rocket-pulse 2.2s ease-in-out infinite;
    }
    .animate-flame {
      display: inline-block;
      animation: flame-flicker 0.4s ease-in-out infinite;
    }
    
    /* BOTÃO DE LANÇAMENTO E IGNIÇÃO ORBITAL */
    .btn-rocket-launch {
      background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #06b6d4 100%);
      box-shadow: 0 8px 25px -4px rgba(16, 185, 129, 0.45), 0 0 15px 0 rgba(6, 182, 212, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.35);
      position: relative;
      overflow: hidden;
    }
    .btn-rocket-launch:hover {
      background: linear-gradient(135deg, #34d399 0%, #2dd4bf 50%, #22d3ee 100%);
      box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.6), 0 0 20px 0 rgba(6, 182, 212, 0.4);
    }
    .btn-rocket-launch:active {
      transform: scale(0.98);
    }

    /* TEMA CLARO CLEANROOM / APOLLO WHITE DEFINITIVO (ZERO ARESTAS) */
    html:not(.dark) body {
      background-color: #f8fafc !important;
      color: #0f172a !important;
    }
    /* Elimina grid de papel milimetrado no tema claro para acabamento Apple/Fintech limpo */
    html:not(.dark) .telemetry-grid {
      background-image: none !important;
    }
    html:not(.dark) header {
      background-color: rgba(255, 255, 255, 0.98) !important;
      border-color: #e2e8f0 !important;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    }
    html:not(.dark) header > div:first-child {
      background-color: #f8fafc !important;
      border-color: #e2e8f0 !important;
      color: #0284c7 !important;
    }
    html:not(.dark) nav {
      background-color: rgba(255, 255, 255, 0.98) !important;
      border-color: #e2e8f0 !important;
      box-shadow: 0 -1px 8px rgba(0,0,0,0.04) !important;
    }
    
    /* RESET DE FUNDOS ESCUROS APENAS EM CONTAINERS / CARDS (PRESERVA BOTÕES COLORIDOS) */
    html:not(.dark) div.bg-gradient-to-b:not([class*="from-amber"]):not([class*="from-emerald"]):not([class*="from-cyan"]):not([class*="from-teal"]),
    html:not(.dark) div.bg-gradient-to-br:not([class*="from-amber"]):not([class*="from-emerald"]):not([class*="from-cyan"]):not([class*="from-teal"]),
    html:not(.dark) div.bg-gradient-to-r:not(button):not(a):not(.btn-rocket-launch):not([class*="from-amber"]):not([class*="from-emerald"]):not([class*="from-cyan"]):not([class*="from-teal"]) {
      background-image: none !important;
      background-color: #ffffff !important;
      border-color: #e2e8f0 !important;
      box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.05) !important;
    }
    
    /* PRESERVAÇÃO DE BOTÕES E BADGES COLORIDOS ATIVOS */
    html:not(.dark) button.btn-rocket-launch,
    html:not(.dark) .btn-rocket-launch {
      background-image: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0891b2 100%) !important;
      color: #ffffff !important;
      box-shadow: 0 8px 25px -4px rgba(5, 150, 105, 0.4) !important;
    }
    html:not(.dark) button[class*="from-amber-"],
    html:not(.dark) div[class*="from-amber-"]:not([class*="bg-gradient-to-r"]):not([class*="bg-gradient-to-br"]) {
      background-image: linear-gradient(to right, #f59e0b, #eab308) !important;
      color: #0f172a !important;
    }
    
    /* SUPERFÍCIES E CARDS NO TEMA CLARO */
    html:not(.dark) .bg-slate-950,
    html:not(.dark) .bg-slate-950\/95,
    html:not(.dark) .bg-slate-950\/90,
    html:not(.dark) .bg-slate-950\/80,
    html:not(.dark) .bg-slate-950\/70,
    html:not(.dark) .bg-slate-950\/60,
    html:not(.dark) .bg-slate-950\/50,
    html:not(.dark) .bg-slate-950\/40,
    html:not(.dark) .bg-slate-950\/30 {
      background-color: #f8fafc !important;
      border-color: #e2e8f0 !important;
      color: #0f172a !important;
    }
    html:not(.dark) .bg-slate-900,
    html:not(.dark) .bg-slate-900\/95,
    html:not(.dark) .bg-slate-900\/90,
    html:not(.dark) .bg-slate-900\/80,
    html:not(.dark) .bg-slate-900\/70,
    html:not(.dark) .bg-slate-900\/60,
    html:not(.dark) .bg-slate-900\/50,
    html:not(.dark) .bg-slate-900\/40,
    html:not(.dark) .bg-slate-900\/30 {
      background-color: #ffffff !important;
      border-color: #e2e8f0 !important;
      color: #0f172a !important;
    }
    html:not(.dark) .bg-slate-800 {
      background-color: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
      color: #1e293b !important;
    }
    html:not(.dark) .border-slate-800,
    html:not(.dark) .border-slate-700,
    html:not(.dark) .border-cyan-800\/60,
    html:not(.dark) .border-cyan-800\/50,
    html:not(.dark) .border-emerald-800\/60,
    html:not(.dark) .border-emerald-800\/50,
    html:not(.dark) .border-purple-800\/60,
    html:not(.dark) .border-teal-800\/60,
    html:not(.dark) .border-rose-800\/60 {
      border-color: #e2e8f0 !important;
    }

    /* INPUTS, SELECTS E TEXTAREAS NO TEMA CLARO */
    html:not(.dark) input:not([type="checkbox"]):not([type="radio"]),
    html:not(.dark) select,
    html:not(.dark) textarea {
      background-color: #ffffff !important;
      border-color: #cbd5e1 !important;
      color: #0f172a !important;
    }
    html:not(.dark) input::placeholder,
    html:not(.dark) textarea::placeholder {
      color: #94a3b8 !important;
    }
    html:not(.dark) select option {
      background-color: #ffffff !important;
      color: #0f172a !important;
    }

    /* TABELAS NO TEMA CLARO */
    html:not(.dark) table {
      border-color: #e2e8f0 !important;
    }
    html:not(.dark) thead {
      background-color: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
    }
    html:not(.dark) th {
      color: #334155 !important;
      border-color: #e2e8f0 !important;
    }
    html:not(.dark) td {
      border-color: #f1f5f9 !important;
    }
    html:not(.dark) tbody tr:hover {
      background-color: #f8fafc !important;
    }
    html:not(.dark) tfoot {
      background-color: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }

    /* AVISO CDC E ALERTAS NO TEMA CLARO */
    html:not(.dark) .bg-amber-950\/40,
    html:not(.dark) .bg-amber-950\/30,
    html:not(.dark) .bg-amber-950\/50,
    html:not(.dark) .bg-amber-950\/60,
    html:not(.dark) .bg-amber-950\/70 {
      background-color: #fffbeb !important;
      border-color: #fcd34d !important;
      color: #78350f !important;
    }
    html:not(.dark) .text-amber-200\/90,
    html:not(.dark) .text-amber-200 {
      color: #78350f !important;
    }

    /* LEGENDA DO VOLANTE (QUADRANTES Q1, Q2, Q3, Q4) - LEGIBILIDADE TOTAL NO TEMA CLARO */
    html:not(.dark) #legenda-volante {
      border-color: #cbd5e1 !important;
    }
    html:not(.dark) #legenda-volante span,
    html:not(.dark) #legenda-volante div {
      font-weight: 800 !important;
      letter-spacing: 0.02em !important;
    }
    /* Fallback para tags span antigas */
    html:not(.dark) #legenda-volante .bg-emerald-950\/60,
    html:not(.dark) #legenda-volante .bg-emerald-950 {
      background-color: #ecfdf5 !important;
      color: #065f46 !important;
      border-color: #a7f3d0 !important;
    }
    html:not(.dark) #legenda-volante .bg-blue-950\/60,
    html:not(.dark) #legenda-volante .bg-blue-950,
    html:not(.dark) #legenda-volante .bg-cyan-950\/60,
    html:not(.dark) #legenda-volante .bg-cyan-950 {
      background-color: #f0f9ff !important;
      color: #0369a1 !important;
      border-color: #bae6fd !important;
    }
    html:not(.dark) #legenda-volante .bg-amber-950\/60,
    html:not(.dark) #legenda-volante .bg-amber-950 {
      background-color: #fffbeb !important;
      color: #92400e !important;
      border-color: #fde68a !important;
    }
    html:not(.dark) #legenda-volante .bg-purple-950\/60,
    html:not(.dark) #legenda-volante .bg-purple-950 {
      background-color: #faf5ff !important;
      color: #6b21a8 !important;
      border-color: #e9d5ff !important;
    }
    html:not(.dark) #legenda-volante .text-emerald-400 { color: #065f46 !important; }
    html:not(.dark) #legenda-volante .text-blue-400 { color: #0369a1 !important; }
    html:not(.dark) #legenda-volante .text-amber-400 { color: #92400e !important; }
    html:not(.dark) #legenda-volante .text-purple-400 { color: #6b21a8 !important; }
    
    /* TIPOGRAFIA E CONTRASTES NO TEMA CLARO */
    html:not(.dark) .text-white:not(button):not(button *):not(a):not(a *):not(.btn-rocket-launch):not(.btn-rocket-launch *):not(.nasa-primary-cta):not(.nasa-primary-cta *):not([class*="bg-emerald-"]):not([class*="bg-cyan-"]):not([class*="bg-purple-"]) {
      color: #0f172a !important;
    }
    html:not(.dark) button.text-white,
    html:not(.dark) button .text-white,
    html:not(.dark) [class*="bg-emerald-"] .text-white,
    html:not(.dark) [class*="bg-cyan-"] .text-white,
    html:not(.dark) [class*="bg-purple-"] .text-white,
    html:not(.dark) .nasa-primary-cta,
    html:not(.dark) .nasa-primary-cta * {
      color: #ffffff !important;
    }
    html:not(.dark) .text-slate-100,
    html:not(.dark) .text-slate-200,
    html:not(.dark) .text-slate-300 {
      color: #1e293b !important;
    }
    html:not(.dark) .text-slate-400 {
      color: #475569 !important;
    }
    html:not(.dark) .text-slate-500 {
      color: #64748b !important;
    }
    
    /* BADGES DE TELEMETRIA TÉCNICOS NO TEMA CLARO */
    html:not(.dark) .bg-cyan-950,
    html:not(.dark) .bg-cyan-950\/80,
    html:not(.dark) .bg-cyan-950\/50,
    html:not(.dark) .bg-cyan-950\/40 {
      background-color: #e0f2fe !important;
      border-color: #bae6fd !important;
      color: #0369a1 !important;
    }
    html:not(.dark) .text-cyan-300,
    html:not(.dark) .text-cyan-400 {
      color: #0284c7 !important;
    }
    html:not(.dark) .bg-emerald-950,
    html:not(.dark) .bg-emerald-950\/80,
    html:not(.dark) .bg-emerald-950\/60 {
      background-color: #d1fae5 !important;
      border-color: #a7f3d0 !important;
      color: #065f46 !important;
    }
    html:not(.dark) .text-emerald-400,
    html:not(.dark) .text-emerald-300 {
      color: #047857 !important;
    }
    html:not(.dark) .bg-amber-950,
    html:not(.dark) .bg-amber-950\/70,
    html:not(.dark) .bg-amber-950\/50,
    html:not(.dark) .bg-amber-950\/30 {
      background-color: #fef3c7 !important;
      border-color: #fde68a !important;
      color: #92400e !important;
    }
    html:not(.dark) .text-amber-400,
    html:not(.dark) .text-amber-300 {
      color: #b45309 !important;
    }
    html:not(.dark) .bg-rose-950,
    html:not(.dark) .bg-rose-950\/60,
    html:not(.dark) .bg-rose-950\/40 {
      background-color: #ffe4e6 !important;
      border-color: #fecdd3 !important;
      color: #9f1239 !important;
    }
    html:not(.dark) .text-rose-400,
    html:not(.dark) .text-rose-300 {
      color: #be123c !important;
    }
    html:not(.dark) .bg-purple-950 {
      background-color: #f3e8ff !important;
      border-color: #e9d5ff !important;
      color: #6b21a8 !important;
    }
    html:not(.dark) .text-purple-400,
    html:not(.dark) .text-purple-300 {
      color: #7e22ce !important;
    }

    @media (max-width: 640px) {
      header.sticky > div:first-child {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
      }

      header.sticky .grid-cols-7 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
      }

      header.sticky .grid-cols-7 button {
        min-height: 2.25rem;
        font-size: 0.65rem;
      }

      main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
      }

      #view-inicio h1 {
        font-size: 1.5rem;
      }

      #view-inicio .grid-cols-1.sm\\:grid-cols-3 {
        grid-template-columns: 1fr;
      }
    }
    
    /* MODAIS NO TEMA CLARO */
    html:not(.dark) #modal-dialog > div {
      background-color: #ffffff !important;
      border-color: #cbd5e1 !important;
      box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    }
    html:not(.dark) #toast {
      background-color: #ffffff !important;
      color: #047857 !important;
      box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
      border-color: #10b981 !important;
    }