.hero-visual.ac-hero {
  height: 545px;
  border-radius: 22px;
  background: #0d2027;
  box-shadow: 0 24px 60px #17352b24, inset 0 0 55px #547e8b18;
  isolation: isolate;
}

.hero-visual.ac-hero::after { display: none; }

.ac-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.ac-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ac-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d9f5e7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  background: linear-gradient(150deg, #132b31, #203e45);
  z-index: 4;
  text-align: center;
  padding: 25px;
}

.ac-loading.is-ready { display: none; }

.ac-hero-top,
.ac-hero-bottom {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  color: #e1f8ee;
}

.ac-hero-top {
  top: 0;
  padding: 27px 27px 45px;
  background: linear-gradient(#07151dcc, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

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

.ac-hero-bottom {
  bottom: 0;
  padding: 52px 24px 22px;
  gap: 15px;
  background: linear-gradient(transparent, #06141cd9);
  font-size: 12px;
  font-weight: 600;
}

.ac-open-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  padding: 0 17px;
  background: #bdeccf;
  color: #102b2f;
  border: 0;
  border-radius: 999px;
  font: 800 12px "DM Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s, transform .2s;
}

.ac-open-button:hover { background: #d9ffe5; transform: translateY(-2px); }
.ac-open-button:focus-visible,
.ac-dialog button:focus-visible,
.ac-dialog input:focus-visible { outline: 3px solid #a7f2c2; outline-offset: 3px; }

body.ac-modal-open { overflow: hidden; }

.ac-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 20px;
  background: #061219e8;
  backdrop-filter: blur(10px);
}

.ac-dialog[hidden] { display: none; }

.ac-dialog-shell {
  width: min(1480px, 100%);
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b1a22;
  border: 1px solid #4c74794d;
  border-radius: 18px;
  box-shadow: 0 30px 90px #0009;
}

.ac-dialog-header {
  flex: 0 0 auto;
  min-height: 88px;
  padding: 16px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: #10252d;
  border-bottom: 1px solid #49727840;
}

.ac-dialog-kicker { color: #77bd9f; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.ac-dialog-header h2 { color: #edf9f2; font-size: 24px; letter-spacing: -.8px; margin: 3px 0 0; }

.ac-close {
  width: 42px;
  height: 42px;
  border: 1px solid #6c9e9655;
  border-radius: 11px;
  background: #17353b;
  color: white;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.ac-dialog-main { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 335px; }

.ac-expanded-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: radial-gradient(circle at 50% 46%, #1b3540, #0a1b24 70%);
  overflow: hidden;
}

.ac-stage-hint,
.ac-stage-readout {
  position: absolute;
  z-index: 2;
  color: #dcf1eb;
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
}

.ac-stage-hint { left: 24px; bottom: 22px; opacity: .7; }
.ac-stage-readout { top: 22px; left: 24px; display: flex; gap: 8px; }
.ac-stage-readout span { padding: 7px 10px; border: 1px solid #85b1b251; border-radius: 6px; background: #0a2028aa; }

.ac-controls {
  min-width: 0;
  overflow-y: auto;
  padding: 22px;
  color: #e7f1eb;
  background: #11262e;
  border-left: 1px solid #4c74794d;
  scrollbar-color: #567773 #11262e;
}

.ac-simulation-note {
  margin: 0 0 19px;
  color: #a9c4bc;
  font-size: 11px;
  line-height: 1.55;
}

.ac-control-section { padding: 19px 0; border-top: 1px solid #8fb7aa2a; }
.ac-control-section h3 { margin: 0 0 13px; color: #e9f5ee; font: 800 12px Manrope, sans-serif; letter-spacing: .1px; }
.ac-control-heading { display: flex; justify-content: space-between; align-items: center; }
.ac-control-heading output { color: #a9e6ba; font-size: 12px; font-weight: 800; }
.ac-mode-grid,
.ac-fault-grid,
.ac-camera-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }

.ac-mode-grid button,
.ac-fault-grid button,
.ac-camera-grid button {
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid #73999344;
  border-radius: 9px;
  background: #1a343b;
  color: #bfd3cb;
  font: 700 11px "DM Sans", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.ac-mode-grid button { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.ac-mode-grid button span { font-size: 11px; }
.ac-mode-grid button:hover,
.ac-fault-grid button:hover,
.ac-camera-grid button:hover { background: #25474b; }
.ac-mode-grid button[aria-pressed="true"],
.ac-fault-grid button[aria-pressed="true"],
.ac-camera-grid button[aria-pressed="true"] { border-color: #a6e5b8; background: #315c50; color: #fff; }

.ac-control-section input[type="range"] { width: 100%; accent-color: #a9e6ba; cursor: pointer; }
.ac-range-labels { display: flex; justify-content: space-between; color: #89a49e; font-size: 10px; }

.ac-diagnostic { border: 1px solid #8fb7aa3b; border-radius: 10px; background: #19383e; padding: 15px; }
.ac-diagnostic span { color: #9de7b2; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.ac-diagnostic p { color: #d8ece0; font-size: 11px; line-height: 1.55; margin: 7px 0 0; }

.ac-reset { margin-top: 15px; padding: 0; border: 0; background: none; color: #b9dfc9; font: 700 11px "DM Sans", sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hero-visual.ac-hero { height: 490px; }
  .ac-dialog { padding: 0; }
  .ac-dialog-shell { border: 0; border-radius: 0; }
  .ac-dialog-main { display: flex; flex-direction: column; }
  .ac-expanded-stage { flex: 0 0 43vh; flex-basis: 43dvh; min-height: 285px; }
  .ac-controls { flex: 1; border-left: 0; border-top: 1px solid #4c74794d; padding: 17px; }
}

@media (max-width: 700px) {
  .hero-visual.ac-hero { height: 390px; border-radius: 16px; }
  .ac-hero-top { padding: 19px 18px 35px; font-size: 8px; }
  .ac-hero-bottom { padding: 44px 14px 14px; font-size: 10px; }
  .ac-open-button { min-height: 40px; padding: 0 13px; gap: 9px; }
  .ac-dialog { padding: 0; }
  .ac-dialog-shell { border: 0; border-radius: 0; }
  .ac-dialog-header { min-height: 71px; padding: 12px 16px; }
  .ac-dialog-header h2 { font-size: 18px; }
  .ac-dialog-kicker { font-size: 7px; }
  .ac-dialog-main { display: flex; flex-direction: column; }
  .ac-expanded-stage { flex: 0 0 42vh; flex-basis: 42dvh; min-height: 270px; }
  .ac-controls { flex: 1; border-left: 0; border-top: 1px solid #4c74794d; padding: 16px 18px 28px; }
  .ac-stage-hint { left: 13px; bottom: 12px; font-size: 9px; }
  .ac-stage-readout { top: 12px; left: 13px; font-size: 9px; }
  .ac-control-section { padding: 16px 0; }
}

@media (max-width: 600px) { .hero-visual.ac-hero { height: 345px; } }
