/* r61 — Integração visual do Módulo 8. Somente apresentação; motores e exportações preservados. */
body.mode8-page {
  background: #f5f8fc;
  color: #18344f;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: block;
  min-height: 100vh;
  padding-bottom: 120px;
}
body.mode8-page .appbar { z-index: 1030; }
body.mode8-page .appbar .brand-icon { border-radius: 13px; }
body.mode8-page .mode8-simulator-root {
  background: transparent;
  color: #253d55;
}
body.mode8-page .mode8-simulator-root .wide-wrapper {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 80px 16px 38px;
}

/* Cabeçalho único, compacto e alinhado aos cards de título dos outros módulos. */
body.mode8-page .mode8-simulator-root .mode8-overview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 0;
  padding: 15px 18px !important;
  margin-bottom: 14px;
  border: 1px solid #dce7f2;
  border-left: 4px solid #4f46e5;
  border-radius: 16px;
  background: #fff !important;
  box-shadow: 0 7px 22px rgba(25, 61, 103, .055);
}
body.mode8-page .mode8-simulator-root .mode8-overview-card__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e0dcff;
  border-radius: 12px;
  background: #f2efff;
  color: #6545d7;
}
body.mode8-page .mode8-simulator-root .mode8-overview-card__icon .material-icons-round {font-size: 24px;}
body.mode8-page .mode8-simulator-root .mode8-overview-card__copy {flex: 1; min-width: 0;}
body.mode8-page .mode8-simulator-root .mode8-overview-card__eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .09em;
  color: #604bc2;
}
body.mode8-page .mode8-simulator-root .mode8-overview-card h1 {
  margin: 0;
  color: #173e68;
  font-size: clamp(17px, 1.5vw, 22px) !important;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}
body.mode8-page .mode8-simulator-root .mode8-overview-card p {
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: 1.48 !important;
  color: #64758b !important;
}
body.mode8-page .mode8-simulator-root .mode8-overview-card__status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d6f0e6;
  border-radius: 999px;
  background: #f0faf6;
  color: #087a61;
  font-size: 11px;
  font-weight: 750;
  padding: 7px 10px;
  white-space: nowrap;
}
body.mode8-page .mode8-simulator-root .mode8-overview-card__status .material-icons-round {font-size: 16px;}

/* Cards, controles e abas com os mesmos tons suaves e contornos do projeto. */
body.mode8-page .mode8-simulator-root .kpi-grid {gap: 10px; margin-bottom: 14px;}
body.mode8-page .mode8-simulator-root .kpi-card {
  border: 1px solid #dfe8f1;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(20, 55, 94, .045);
  padding: 13px 15px;
}
body.mode8-page .mode8-simulator-root .kpi-card::before {height: 3px;}
body.mode8-page .mode8-simulator-root .kpi-label {color: #506983; font-size: 10px;}
body.mode8-page .mode8-simulator-root .kpi-value {color: #173e68; font-size: clamp(16px, 1.4vw, 21px);}
body.mode8-page .mode8-simulator-root .workspace {gap: 14px;}
body.mode8-page .mode8-simulator-root .control-pane {
  top: 76px;
  border: 1px solid #dce7f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 62, 107, .055);
}
body.mode8-page .mode8-simulator-root .aside-top h3,
body.mode8-page .mode8-simulator-root .control-pane h4 {color: #173e68;}
body.mode8-page .mode8-simulator-root .results-pane .tab-content-panel {
  border: 1px solid #dce7f1;
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 62, 107, .055);
}
body.mode8-page .mode8-simulator-root .tabs-nav-container {
  border-color: #dce7f1;
  border-radius: 15px 15px 0 0;
  background: #fff;
}
body.mode8-page .mode8-simulator-root .tab-btn {transition: color .18s ease, background .18s ease, box-shadow .18s ease;}
body.mode8-page .mode8-simulator-root .tab-btn.active {color: #5540bd; background: #f2efff; border-bottom-color: #6651d6;}
body.mode8-page .mode8-simulator-root .tab-btn:hover {color: #4632b2; background: #f7f5ff;}
body.mode8-page .mode8-simulator-root .section-title {color: #173e68;}
body.mode8-page .mode8-simulator-root .form-control {
  border: 1px solid #cbddea;
  border-radius: 9px;
  background: #fff;
}
body.mode8-page .mode8-simulator-root .form-control:focus {border-color: #6b70d9; box-shadow: 0 0 0 3px #7067cc20;}
body.mode8-page .mode8-simulator-root .btn-action {background: #23699b; border-radius: 9px;}
body.mode8-page .mode8-simulator-root .help-dialog {border-radius: 18px;}
body.mode8-page .mode-bottom-nav {font-family: Inter, system-ui, sans-serif;}
body.mode8-page .mode8-simulator-root .tab-btn:focus-visible,
body.mode8-page .mode8-simulator-root .btn-outline:focus-visible,
body.mode8-page .mode8-simulator-root .btn-action:focus-visible,
body.mode8-page .mode8-simulator-root .form-control:focus-visible {outline: 3px solid #a7b4f4; outline-offset: 2px;}

@media (max-width: 900px) {
  body.mode8-page .mode8-simulator-root .wide-wrapper {padding: 76px 12px 28px;}
  body.mode8-page .mode8-simulator-root .control-pane {top: auto;}
}
@media (max-width: 560px) {
  body.mode8-page .mode8-simulator-root .wide-wrapper {padding: 72px 9px 28px;}
  body.mode8-page .mode8-simulator-root .mode8-overview-card {align-items: flex-start; gap: 10px; padding: 13px !important; flex-wrap: wrap;}
  body.mode8-page .mode8-simulator-root .mode8-overview-card__icon {flex-basis: 36px; width: 36px; height: 36px;}
  body.mode8-page .mode8-simulator-root .mode8-overview-card__icon .material-icons-round {font-size: 21px;}
  body.mode8-page .mode8-simulator-root .mode8-overview-card__copy {flex: 1 1 calc(100% - 50px);}
  body.mode8-page .mode8-simulator-root .mode8-overview-card__status {margin-left: 46px; font-size: 10px; padding: 5px 8px;}
  body.mode8-page .mode8-simulator-root .mode8-overview-card p {font-size: 11px !important;}
}
@media (prefers-reduced-motion: reduce) {
  body.mode8-page .mode8-simulator-root .tab-btn {transition: none;}
}
@media print {
  body.mode8-page {padding: 0; background: #fff;}
  body.mode8-page .appbar,
  body.mode8-page .mode8-overview-card,
  body.mode8-page .mode-bottom-nav {display: none !important;}
  body.mode8-page .mode8-simulator-root .wide-wrapper {max-width: 100%; padding: 0;}
}

/* r62 — SVGs embutidos, sem dependência da fonte Material Icons ou de rede. */
body.mode8-page .mode8-svg-icon {display:inline-block;width:1.3em;height:1.3em;flex:0 0 auto;vertical-align:middle;stroke:currentColor;}
body.mode8-page .appbar .mode8-svg-icon {width:21px;height:21px;}
body.mode8-page .mode8-simulator-root .mode8-overview-card__icon .mode8-svg-icon {width:25px;height:25px;}
body.mode8-page .mode8-simulator-root .mode8-overview-card__status .mode8-svg-icon {width:15px;height:15px;}
body.mode8-page .mode8-simulator-root .material-icons-round {font-family:'Material Icons Round', sans-serif !important;font-feature-settings:'liga';}
body.mode8-page .appbar .brand-icon .mode8-svg-icon {color:#7544e5;}
body.mode8-page .appbar .appbar-icon-actions a .mode8-svg-icon {color:#2474c8;}
body.mode8-page .appbar .appbar-icon-actions button .mode8-svg-icon {color:#7544e5;}

/* r65 — parâmetros da simulação recolhidos por padrão (sem perder o estado dos inputs). */
body.mode8-page .mode8-simulator-root .control-pane:has(.mode8-control-expander:not([open])) {
  padding-bottom: 16px;
}
body.mode8-page .mode8-simulator-root .mode8-control-expander {min-width:0;}
body.mode8-page .mode8-simulator-root .mode8-control-expander__summary {
  cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:0;min-width:0;min-height:38px;
}
body.mode8-page .mode8-simulator-root .mode8-control-expander__summary::-webkit-details-marker {display:none;}
body.mode8-page .mode8-simulator-root .mode8-control-expander__summary::marker {content:'';}
body.mode8-page .mode8-simulator-root .mode8-control-expander__summary:focus-visible {
  outline:2px solid #7067cc;outline-offset:5px;border-radius:5px;
}
body.mode8-page .mode8-simulator-root .mode8-control-expander__title {display:flex;flex-direction:column;gap:3px;min-width:0;}
body.mode8-page .mode8-simulator-root .mode8-control-expander__heading {
  font-size:15px;font-weight:800;letter-spacing:-.02em;color:#173e68;
}
body.mode8-page .mode8-simulator-root .mode8-control-expander__actions {display:flex;align-items:center;gap:8px;flex:0 0 auto;}
body.mode8-page .mode8-simulator-root .mode8-control-expander__chevron {
  width:20px;height:20px;color:#6c59bb;transition:transform .18s ease;
}
body.mode8-page .mode8-simulator-root .mode8-control-expander[open] .mode8-control-expander__chevron {transform:rotate(180deg);}
body.mode8-page .mode8-simulator-root .mode8-control-expander__content {padding-top:17px;}
@media(prefers-reduced-motion:reduce) {
  body.mode8-page .mode8-simulator-root .mode8-control-expander__chevron {transition:none;}
}
