/**
 * Argus painel — Fases 7–9: Jarvis / glassmorphism + paleta Argus.
 * Ativar: body.landing-theme.argus-panel-theme
 */

@keyframes jarvis-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes jarvis-spin {
  to {
    transform: rotate(360deg);
  }
}

body.argus-panel-theme {
  --argus-bg: #080c14;
  --argus-primary: #0052cc;
  --argus-text: #ffffff;
  --argus-muted: #b8c1cc;
  --argus-cyan: #00d1ff;
  --argus-purple: #7b61ff;
  --argus-orange: #ff7d00;
  --argus-border: #1e293b;
  --argus-glass: rgba(10, 14, 23, 0.72);
  --argus-glass-border: rgba(0, 209, 255, 0.15);
  --argus-radius: 16px;
  --argus-shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.35);
  --argus-glow-edge: 0 0 12px rgba(0, 209, 255, 0.12);

  background: radial-gradient(ellipse 100% 80% at 50% -30%, rgba(0, 82, 204, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(123, 97, 255, 0.08) 0%, transparent 45%),
    var(--argus-bg);
  color: var(--argus-text);
  min-height: 100vh;
}

body.argus-panel-theme .hint,
body.argus-panel-theme .plan-small {
  color: var(--argus-muted);
}

/* --- Glass surfaces (cartões) --- */
body.argus-panel-theme .plan-card,
body.argus-panel-theme .session-info-sheet-inner,
body.argus-panel-theme .jarvis-glass-card {
  background: var(--argus-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--argus-glass-border);
  border-radius: var(--argus-radius);
  box-shadow: var(--argus-shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--argus-glow-edge);
  color: var(--argus-text);
}

body.argus-panel-theme .session-info-sheet-label {
  color: var(--argus-muted);
}

body.argus-panel-theme .session-info-sheet-value {
  color: var(--argus-text);
}

body.argus-panel-theme .session-info-sheet-actions {
  border-top-color: rgba(30, 41, 59, 0.65);
}

body.argus-panel-theme .plan-card h1,
body.argus-panel-theme .plan-card h2,
body.argus-panel-theme .plan-card h3 {
  color: var(--argus-text);
}

/* Cabeçalho = mesmo top-strip + main-nav da landing (landing.css) */

body.argus-panel-theme .material-symbols-rounded {
  font-family: "Material Symbols Rounded", system-ui, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
}

/* CRM Fase 1 — itens de menu ainda sem rota */
.crm-sidebar-muted {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  opacity: 0.62;
  cursor: default;
  color: var(--svc-muted, #798eae);
  font-weight: 500;
  font-size: 14px;
}

body.argus-panel-theme .crm-sidebar-muted {
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--argus-muted);
}

.service-sidebar-section-label {
  list-style: none;
  margin: 0;
  padding: 10px 14px 2px;
  pointer-events: none;
}

.service-sidebar-section-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.argus-panel-theme .service-sidebar-section-text {
  color: var(--argus-muted);
}

/* Layout painel + menu lateral (cores referência CodingNepal / Poppins) */
.argus-panel-layout,
.service-panel-layout {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
  align-items: stretch;
}

/* Espaço sob o cabeçalho do site; variável usada para altura do sidebar alinhar ao viewport */
body.argus-panel-theme .argus-panel-layout.service-panel-layout {
  --argus-panel-below-header: clamp(16px, 2.2vw, 28px);
  padding-top: var(--argus-panel-below-header);
  box-sizing: border-box;
}

.service-panel-topbar {
  display: none;
  align-items: center;
  padding: 12px max(16px, env(safe-area-inset-left, 0px)) 12px max(16px, env(safe-area-inset-right, 0px));
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  background: #f9fafb;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 25;
}

.service-panel-topbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #1f2936;
  background: #ececfd;
  transition: background 0.2s ease;
}

.service-panel-topbar__btn:hover {
  background: #e2e2fb;
}

.service-panel-topbar .material-symbols-rounded {
  font-size: 26px;
}

body.argus-panel-theme .argus-panel-sidebar.service-sidebar {
  --svc-text: #1f2936;
  --svc-muted: #798eae;
  --svc-bg: #ffffff;
  --svc-bg2: #ececfd;
  --svc-border: #e2e8f0;
  --svc-hover: #695cfe;
  --svc-hover-bg: #e2e2fb;
  --svc-shadow: rgba(0, 0, 0, 0.06);

  position: relative;
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--svc-bg);
  border-right: 1px solid var(--svc-border);
  box-shadow: 0 3px 9px var(--svc-shadow);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: calc(100vh - var(--argus-panel-below-header, 0px));
  max-height: calc(100vh - var(--argus-panel-below-header, 0px));
  z-index: 30;
}

.service-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #1f2936;
  background: #ececfd;
}

.service-sidebar-close:hover {
  background: #e2e2fb;
}

.service-sidebar-close .material-symbols-rounded {
  font-size: 24px;
}

.service-sidebar-scroll {
  flex: 1;
  overflow: auto;
  padding: 16px 14px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Mesmo ritmo vertical da coluna principal (.argus-panel-main), para alinhar o menu ao conteúdo */
body.argus-panel-theme .service-sidebar-scroll {
  padding-top: 26px;
}

.service-sidebar-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.service-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-sidebar-sep {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  pointer-events: none;
}

.service-sidebar-sep-line {
  display: block;
  height: 1px;
  margin: 0 14px;
  background: var(--svc-border, #e2e8f0);
}

.service-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ebe4dc;
  text-decoration: none;
  color: var(--svc-text, #1f2936);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-sidebar-link:hover {
  background: #2e7db2;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.service-sidebar-link.is-active {
  color: #fff;
  background: #8cc63f;
  border-color: rgba(255, 255, 255, 0.35);
}

.service-sidebar-ico {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.service-sidebar-label {
  white-space: nowrap;
}

body.argus-panel-theme .argus-panel-main.service-panel-main {
  flex: 1;
  min-width: 0;
  padding: 26px 26px 52px 22px;
}

.argus-panel-container {
  max-width: 100%;
}

body.service-drawer-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .service-panel-topbar {
    display: flex;
  }

  body.argus-panel-theme .argus-panel-sidebar.service-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    max-height: 100%;
    padding-left: env(safe-area-inset-left, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateX(-100%);
    transition: transform 0.32s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  body.argus-panel-theme .argus-panel-sidebar.service-sidebar.is-open {
    transform: translateX(0);
  }

  .service-sidebar-close {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
  }

  .service-sidebar-scroll {
    padding-top: 56px;
  }

  body.argus-panel-theme .argus-panel-main.service-panel-main {
    padding: 18px max(16px, env(safe-area-inset-left, 0px)) max(40px, env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-right, 0px));
  }

  .argus-panel-layout.service-panel-layout {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .jarvis-study-grid {
    grid-template-columns: 1fr;
  }

  .jarvis-chart-shell {
    min-height: min(320px, 52vh);
  }

  .jarvis-chart-canvas-wrap {
    height: min(360px, max(200px, var(--jarvis-chart-h, 240px)));
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  .jarvis-study-grid {
    grid-template-columns: 1fr;
  }

  .jarvis-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Botões com brilho (Fase 8) */
body.argus-panel-theme .btn-primary {
  background: linear-gradient(145deg, #0066ff 0%, var(--argus-primary) 100%);
  border-color: rgba(0, 209, 255, 0.35);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  transition: box-shadow 0.22s ease, transform 0.15s ease, filter 0.15s ease;
}

body.argus-panel-theme .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 22px rgba(0, 82, 204, 0.45), 0 0 12px rgba(0, 209, 255, 0.2);
  transform: translateY(-1px);
}

body.argus-panel-theme .btn-light {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(30, 41, 59, 0.95);
  color: var(--argus-muted);
  border-radius: 12px;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.argus-panel-theme .btn-light:hover {
  border-color: var(--argus-cyan);
  color: var(--argus-text);
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.15);
}

body.argus-panel-theme .form-error {
  color: #fca5a5;
}

body.argus-panel-theme .radar-input,
body.argus-panel-theme textarea,
body.argus-panel-theme input[type="text"],
body.argus-panel-theme input[type="search"],
body.argus-panel-theme input[type="url"],
body.argus-panel-theme input[type="time"],
body.argus-panel-theme input[type="date"],
body.argus-panel-theme select {
  background: rgba(8, 12, 20, 0.75);
  border: 1px solid rgba(30, 41, 59, 0.95);
  color: var(--argus-text);
  border-radius: 12px;
}

body.argus-panel-theme label {
  color: var(--argus-muted);
}

body.argus-panel-theme .auth-btn-submit {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.35);
  background: linear-gradient(145deg, #0066ff 0%, var(--argus-primary) 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.15s ease;
}

body.argus-panel-theme .auth-btn-submit:hover {
  box-shadow: 0 0 22px rgba(0, 82, 204, 0.45);
  transform: translateY(-1px);
}

/* --- Fase 8: indicadores painel /conta --- */
.jarvis-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.jarvis-metric-glow {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--argus-radius);
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 209, 255, 0.14);
  box-shadow: var(--argus-shadow-deep), var(--argus-glow-edge);
  overflow: hidden;
}

.jarvis-metric-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--argus-radius) var(--argus-radius) 0 0;
  opacity: 0.95;
}

.jarvis-metric-glow--cyan::before {
  background: linear-gradient(90deg, var(--argus-cyan), var(--argus-primary));
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.45);
}

.jarvis-metric-glow--purple::before {
  background: linear-gradient(90deg, var(--argus-purple), var(--argus-primary));
  box-shadow: 0 0 14px rgba(123, 97, 255, 0.4);
}

.jarvis-metric-glow--orange::before {
  background: linear-gradient(90deg, var(--argus-orange), #cc5500);
  box-shadow: 0 0 14px rgba(255, 125, 0, 0.35);
}

.jarvis-metric-glow--blue::before {
  background: linear-gradient(90deg, var(--argus-primary), var(--argus-cyan));
  box-shadow: 0 0 14px rgba(0, 82, 204, 0.4);
}

.jarvis-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--argus-muted);
  margin-bottom: 6px;
}

.jarvis-metric-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--argus-text);
  line-height: 1.15;
}

.jarvis-metric-hint {
  display: block;
  font-size: 12px;
  color: var(--argus-muted);
  margin-top: 4px;
}

.jarvis-progress-track {
  height: 10px;
  background: rgba(8, 12, 20, 0.9);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 10px;
  border: 1px solid rgba(30, 41, 59, 0.8);
}

.jarvis-progress-track--compact {
  height: 8px;
  margin-top: 6px;
}

.jarvis-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.jarvis-progress-fill--green {
  background: linear-gradient(90deg, #22c55e, var(--argus-cyan));
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.jarvis-progress-fill--cyan {
  background: linear-gradient(90deg, var(--argus-primary), var(--argus-cyan));
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.35);
}

.jarvis-progress-fill--purple {
  background: linear-gradient(90deg, var(--argus-purple), var(--argus-cyan));
  box-shadow: 0 0 10px rgba(123, 97, 255, 0.35);
}

/* Gráfico + skeleton (Fase 9) */
.jarvis-chart-shell {
  position: relative;
  margin-top: 14px;
  min-height: min(420px, 360px);
  border-radius: var(--argus-radius);
}

.jarvis-chart-skeleton {
  position: absolute;
  inset: 0;
  border-radius: var(--argus-radius);
  background: linear-gradient(
    110deg,
    rgba(30, 41, 59, 0.35) 0%,
    rgba(0, 209, 255, 0.08) 45%,
    rgba(30, 41, 59, 0.35) 90%
  );
  background-size: 200% 100%;
  animation: jarvis-shimmer 1.6s ease-in-out infinite;
  border: 1px solid rgba(0, 209, 255, 0.1);
}

.jarvis-chart-canvas-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(420px, max(220px, var(--jarvis-chart-h, 280px)));
  min-height: 220px;
}

.jarvis-chart-canvas-wrap canvas {
  max-height: 420px;
}

/* Launcher /conta */
body.argus-panel-theme.argus-launcher-page {
  background: transparent;
}

body.argus-panel-theme .launcher-kicker {
  color: var(--argus-cyan);
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.35);
}

body.argus-panel-theme .launcher-title,
body.argus-panel-theme .launcher-cargo {
  color: var(--argus-text);
}

body.argus-panel-theme .launcher-clock {
  background: var(--argus-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--argus-glass-border);
  border-radius: var(--argus-radius);
  box-shadow: var(--argus-shadow-deep), var(--argus-glow-edge);
}

body.argus-panel-theme .launcher-tile {
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 209, 255, 0.12);
  border-radius: var(--argus-radius);
  box-shadow: var(--argus-shadow-deep);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.argus-panel-theme a.launcher-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 209, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 209, 255, 0.18);
}

body.argus-panel-theme .launcher-tile--accent {
  background: linear-gradient(155deg, rgba(0, 82, 204, 0.35) 0%, rgba(10, 14, 23, 0.85) 100%);
  border-color: rgba(0, 82, 204, 0.45);
}

body.argus-panel-theme .plan-card--launcher-detail {
  background: var(--argus-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--argus-glass-border);
  border-radius: var(--argus-radius);
  box-shadow: var(--argus-shadow-deep), var(--argus-glow-edge);
}

body.argus-panel-theme .plan-card--launcher-detail .plan-small,
body.argus-panel-theme .plan-card--launcher-detail p,
body.argus-panel-theme .plan-card--launcher-detail li {
  color: var(--argus-muted);
}

body.argus-panel-theme .plan-card--launcher-detail a {
  color: var(--argus-cyan);
}

/* Lista estudo → cartões (Fase 8) */
.study-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.jarvis-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 18px;
}

.jarvis-study-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--argus-radius);
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(30, 41, 59, 0.85);
  box-shadow: var(--argus-shadow-deep);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.jarvis-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 18px rgba(0, 209, 255, 0.12);
}

.jarvis-study-card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.jarvis-study-card--progress {
  border-color: rgba(0, 82, 204, 0.45);
}

.jarvis-study-card--progress .jarvis-study-card-status {
  background: var(--argus-primary);
  color: var(--argus-primary);
}

.jarvis-study-card--review {
  border-color: rgba(255, 125, 0, 0.45);
}

.jarvis-study-card--review .jarvis-study-card-status {
  background: var(--argus-orange);
  color: var(--argus-orange);
}

.jarvis-study-card--done {
  border-color: rgba(0, 209, 255, 0.4);
}

.jarvis-study-card--done .jarvis-study-card-status {
  background: #22c55e;
  color: #22c55e;
}

.jarvis-study-card-title {
  margin: 0 28px 8px 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.jarvis-study-card-title a {
  color: var(--argus-text);
  text-decoration: none;
}

.jarvis-study-card-title a:hover {
  color: var(--argus-cyan);
}

.jarvis-study-card-meta {
  margin: 0 0 8px;
}

.jarvis-study-card-tags {
  margin: 0 0 12px;
  color: var(--argus-muted);
}

.jarvis-study-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Material estudo */
body.argus-panel-theme .voice-controls-box,
body.argus-panel-theme .mode-controls-box,
body.argus-panel-theme .chameleon-zone--deep {
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 209, 255, 0.12);
  border-radius: var(--argus-radius);
  box-shadow: var(--argus-shadow-deep);
}

body.argus-panel-theme .voice-controls-help,
body.argus-panel-theme .voice-controls-title {
  color: var(--argus-muted);
}

body.argus-panel-theme .chameleon-pre {
  background: rgba(8, 12, 20, 0.85);
  color: var(--argus-muted);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 12px;
}

body.argus-panel-theme .revisao-due-banner {
  background: rgba(0, 82, 204, 0.2);
  border: 1px solid rgba(0, 209, 255, 0.28);
  border-radius: var(--argus-radius);
}

.jarvis-due-banner-glow {
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.12);
}

/* Revisão cartões XL (Fase 8) */
.jarvis-card-xl {
  padding: 22px 20px !important;
  border-radius: var(--argus-radius) !important;
}

.jarvis-revisao-hub .revisao-routine-grid {
  gap: 18px;
}

body.argus-panel-theme .revisao-routine-card {
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 209, 255, 0.12);
  border-radius: var(--argus-radius);
  box-shadow: var(--argus-shadow-deep);
}

body.argus-panel-theme .revisao-goal-bar-wrap {
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid rgba(30, 41, 59, 0.9);
}

body.argus-panel-theme .revisao-goal-bar-fill {
  background: linear-gradient(90deg, var(--argus-primary), var(--argus-cyan));
  box-shadow: 0 0 12px rgba(0, 209, 255, 0.25);
}

body.argus-panel-theme .revisao-stats-table {
  color: var(--argus-text);
}

body.argus-panel-theme .revisao-stats-table th {
  color: var(--argus-muted);
  border-bottom-color: rgba(30, 41, 59, 0.9);
}

body.argus-panel-theme .revisao-stats-table td {
  border-color: rgba(30, 41, 59, 0.65);
}

body.argus-panel-theme .revisao-sessao-card,
body.argus-panel-theme .revisao-sessao-strip {
  background: rgba(10, 14, 23, 0.72);
  border-color: rgba(0, 209, 255, 0.15);
}

body.argus-panel-theme .tutor-chat-card,
body.argus-panel-theme .tutor-msg--assistant {
  background: var(--argus-glass);
  border-color: var(--argus-glass-border);
}

/* Radar */
body.argus-panel-theme .service-header h1,
body.argus-panel-theme .service-card-head h2,
body.argus-panel-theme .argus-panel-page-title {
  color: var(--argus-text);
}

body.argus-panel-theme .service-breadcrumb,
body.argus-panel-theme .service-api-badge {
  color: var(--argus-muted);
}

body.argus-panel-theme .service-card {
  background: var(--argus-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--argus-glass-border);
  border-radius: var(--argus-radius);
  box-shadow: var(--argus-shadow-deep);
}

/* Radar: caixas de resultado IA (inline cyan removido do HTML) */
body.argus-panel-theme:not(.crm-light-ui) .jarvis-page-radar #radar-ai-result,
body.argus-panel-theme:not(.crm-light-ui) .jarvis-page-radar #radar-fc-result {
  background: rgba(0, 209, 255, 0.06);
  border: 1px solid rgba(0, 209, 255, 0.15);
  color: var(--argus-text);
}

/* TAF */
body.argus-panel-theme .taf-section {
  margin-top: 1.25rem;
}

body.argus-panel-theme .taf-table {
  color: var(--argus-text);
}

body.argus-panel-theme .taf-table th {
  color: var(--argus-muted);
  border-bottom-color: rgba(30, 41, 59, 0.9);
}

body.argus-panel-theme .taf-table td {
  border-color: rgba(30, 41, 59, 0.6);
}

/* Rodapé: sem overrides — igual à página principal (landing.css) */

/* Fase 9: loading ring (uso opcional em JS) */
.argus-loading-ring {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 209, 255, 0.25);
  border-top-color: var(--argus-cyan);
  border-radius: 50%;
  animation: jarvis-spin 0.75s linear infinite;
  vertical-align: middle;
}

body.argus-panel-theme.jarvis-wait-cursor {
  cursor: wait;
}

@media (max-width: 520px) {
  .jarvis-metrics-strip {
    grid-template-columns: 1fr;
  }
}
