/* v39 — sama suuruse ja asukohaga tervise- ning hirmuskänni aknad. */

.scene[data-step-type="healthScan"] .holo-console,
.scene[data-step-type="fearScan"] .holo-console {
  left: 51.4% !important;
  top: 11.8% !important;
  width: 45.1% !important;
  height: 64.2% !important;
  padding: .55cqw .62cqw .58cqw !important;
}

.scene[data-step-type="healthScan"] .prompt-copy,
.scene[data-step-type="fearScan"] .prompt-copy {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.16 !important;
}

/* Terviseskänn: inimese keha vasakul, kõik näitajad paremal. */
.scene[data-step-type="healthScan"] .health-scan-workstation {
  display: grid !important;
  grid-template-columns: minmax(165px, .64fr) minmax(0, 1.36fr) !important;
  gap: .38cqw !important;
  height: 100% !important;
  min-height: 0 !important;
}

.scene[data-step-type="healthScan"] .scan-visual-panel {
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  padding: .38cqw !important;
}

.scene[data-step-type="healthScan"] .health-body-svg {
  width: min(100%, 10.4cqw) !important;
  max-height: 78% !important;
}

.scene[data-step-type="healthScan"] .scan-mode-badge {
  max-width: calc(100% - .76cqw) !important;
  top: .38cqw !important;
  left: .38cqw !important;
  padding: .2cqw .32cqw !important;
  border-radius: .3cqw !important;
  font-size: clamp(8px, .49cqw, 10px) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
}

.scene[data-step-type="healthScan"] .scan-organ-label {
  left: .38cqw !important;
  right: .38cqw !important;
  bottom: .38cqw !important;
  padding: .3cqw .38cqw !important;
}

.scene[data-step-type="healthScan"] .scan-organ-label span {
  font-size: clamp(8px, .49cqw, 10px) !important;
}

.scene[data-step-type="healthScan"] .scan-organ-label b {
  font-size: clamp(10px, .66cqw, 13px) !important;
}

.scene[data-step-type="healthScan"] .scan-control-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: .3cqw !important;
  min-width: 0 !important;
  padding: .38cqw !important;
  overflow: hidden !important;
}

.scene[data-step-type="healthScan"] .scan-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .25cqw !important;
}

.scene[data-step-type="healthScan"] .scan-warning,
.scene[data-step-type="healthScan"] .scan-stat,
.scene[data-step-type="healthScan"] .scan-finding {
  min-width: 0 !important;
}

/* Hirmuskänn kasutab täpselt sama välimist akent. Mõtteookean on senisest
   ligikaudu poole kitsam ja vabanev pind kuulub hirmupaketile. */
.scene[data-step-type="fearScan"] .fear-scan-workstation {
  display: grid !important;
  grid-template-columns: minmax(185px, .55fr) minmax(0, 1.45fr) !important;
  gap: .38cqw !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.scene[data-step-type="fearScan"] .thought-ocean-content {
  grid-template-rows: minmax(0, 1.25fr) minmax(0, .875fr) minmax(0, .875fr) !important;
  gap: .22cqw !important;
  padding: .3cqw !important;
}

.scene[data-step-type="fearScan"] .thought-layer {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: .12cqw !important;
  padding: .24cqw .28cqw !important;
  border-radius: .42cqw !important;
}

.scene[data-step-type="fearScan"] .thought-layer header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .06cqw !important;
  align-items: start !important;
}

.scene[data-step-type="fearScan"] .thought-layer header span,
.scene[data-step-type="fearScan"] .thought-layer header b {
  min-width: 0 !important;
  white-space: normal !important;
  line-height: 1.05 !important;
}

.scene[data-step-type="fearScan"] .thought-layer header span {
  font-size: clamp(9px, .58cqw, 11px) !important;
  letter-spacing: .035em !important;
}

.scene[data-step-type="fearScan"] .thought-layer header b {
  font-size: clamp(8px, .5cqw, 10px) !important;
}

.scene[data-step-type="fearScan"] .thought-current {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  align-content: center !important;
  gap: .08cqw !important;
  overflow: hidden !important;
}

.scene[data-step-type="fearScan"] .thought-current span {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: .1cqw .22cqw !important;
  border-radius: .24cqw !important;
  font-size: clamp(10px, .62cqw, 12px) !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  transform: none !important;
  animation: none !important;
}

.scene[data-step-type="fearScan"] .fear-scan-side {
  gap: .24cqw !important;
  min-width: 0 !important;
  padding: .34cqw !important;
  align-content: stretch !important;
  overflow: hidden !important;
}

.scene[data-step-type="fearScan"] .fear-scan-workstation:not(.complete) .fear-scan-side {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
}

.scene[data-step-type="fearScan"] .fear-scan-workstation.complete .fear-scan-side {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

.scene[data-step-type="fearScan"] .fear-layer-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .2cqw !important;
}

.scene[data-step-type="fearScan"] .fear-layer-metrics > div {
  padding: .28cqw .34cqw !important;
}

.scene[data-step-type="fearScan"] .contact-fear-packet {
  height: 100% !important;
  min-height: 0 !important;
  gap: .24cqw !important;
  padding: .38cqw .44cqw !important;
}

.scene[data-step-type="fearScan"] .contact-fear-packet.locked {
  align-content: center !important;
}

.scene[data-step-type="fearScan"] .fear-packet-title {
  font-size: clamp(10px, .66cqw, 13px) !important;
}

.scene[data-step-type="fearScan"] .fear-packet-fields {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: .24cqw !important;
  min-height: 0 !important;
  height: 100% !important;
}

.scene[data-step-type="fearScan"] .fear-packet-field.source-field,
.scene[data-step-type="fearScan"] .fear-packet-field.work-field {
  grid-column: 1 / -1 !important;
}

.scene[data-step-type="fearScan"] .fear-packet-field.work-field {
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 0 !important;
}

.scene[data-step-type="fearScan"] .fear-packet-field > div {
  padding: .28cqw .34cqw !important;
  font-size: clamp(9px, .57cqw, 11px) !important;
  line-height: 1.14 !important;
}

.scene[data-step-type="fearScan"] .fear-packet-field.work-field > div {
  height: 100% !important;
  font-size: clamp(9px, .57cqw, 11px) !important;
}

@container (max-width: 980px) {
  .scene[data-step-type="healthScan"] .holo-console,
  .scene[data-step-type="fearScan"] .holo-console {
    left: 49.6% !important;
    width: 47.2% !important;
  }

  .scene[data-step-type="healthScan"] .health-scan-workstation {
    grid-template-columns: minmax(150px, .62fr) minmax(0, 1.38fr) !important;
  }

  .scene[data-step-type="fearScan"] .fear-scan-workstation {
    grid-template-columns: minmax(170px, .52fr) minmax(0, 1.48fr) !important;
  }
}
