/* v42 — kontaktivormist sõltuvad variandid, tingimuslik sümbol ja valikuline skänn. */

.contact-variant-shell,
.symbol-selection-shell,
.scan-decision-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .48cqw;
  min-height: 0;
  height: 100%;
}

.contact-variant-shell {
  grid-template-rows: auto minmax(0, 1fr);
}

.branch-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .12cqw .5cqw;
  align-items: center;
  padding: .42cqw .52cqw;
  border: 1px solid rgba(80, 215, 255, .48);
  border-radius: .5cqw;
  background: linear-gradient(135deg, rgba(4, 39, 72, .92), rgba(3, 20, 43, .92));
}

.branch-context > span {
  color: #72dfff;
  font-size: clamp(8px, .5cqw, 10px);
  font-weight: 950;
  letter-spacing: .08em;
}

.branch-context > strong {
  grid-column: 1;
  color: #f2fcff;
  font-size: clamp(12px, .82cqw, 16px);
}

.branch-context > small {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 18cqw;
  color: #a9d6e5;
  font-size: clamp(8px, .52cqw, 10px);
  line-height: 1.2;
  text-align: right;
}

.branch-context.recommended {
  border-color: rgba(255, 201, 82, .68);
  background: linear-gradient(135deg, rgba(72, 48, 5, .88), rgba(24, 24, 30, .92));
}

.branch-context.recommended > span { color: #ffd36c; }
.branch-context.optional > span { color: #77efc5; }

.contact-variant-grid,
.scan-decision-grid {
  align-content: start;
}

.contact-variant-grid .choice-button,
.scan-decision-grid .choice-button {
  min-height: 6.4cqw !important;
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4cqw;
  min-height: 0;
  overflow: auto;
}

.symbol-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(48px, 4.8cqw, 84px) minmax(0, 1fr);
  gap: .55cqw;
  align-items: center;
  padding: .48cqw;
  border: 1px solid rgba(83, 220, 255, .58);
  border-radius: .58cqw;
  background: linear-gradient(135deg, rgba(5, 38, 73, .96), rgba(3, 17, 42, .97));
  color: #eefcff;
  text-align: left;
  cursor: pointer;
}

.symbol-choice:hover,
.symbol-choice:focus-visible {
  border-color: #69f2b8;
  outline: none;
  transform: translateY(-1px);
}

.symbol-choice.compatible { box-shadow: inset 0 0 1cqw rgba(75, 237, 177, .08); }
.symbol-choice.mismatch { border-color: rgba(255, 203, 88, .5); }
.symbol-choice img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: .42cqw; }
.symbol-choice > span { display: grid; gap: .14cqw; min-width: 0; }
.symbol-choice strong { font-size: clamp(11px, .74cqw, 14px); line-height: 1.1; }
.symbol-choice em { color: #b8dce7; font-size: clamp(9px, .58cqw, 11px); font-style: normal; line-height: 1.2; }
.symbol-choice small { color: #76efc1; font-size: clamp(8px, .49cqw, 10px); font-weight: 900; }
.symbol-choice.mismatch small { color: #ffd16b; }

.scene[data-step-type="healthScan"] .scan-decision-shell {
  height: 100%;
  overflow: hidden;
}

.scene[data-step-type="healthScan"] .scan-decision-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .32cqw !important;
  overflow: auto;
}

.scene[data-step-type="healthScan"] .scan-decision-grid .choice-button {
  min-height: 5.25cqw !important;
  padding: .5cqw !important;
}

.result-branch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .38cqw;
}

.result-branch-summary > div {
  min-width: 0;
  display: grid;
  gap: .12cqw;
  padding: .44cqw .5cqw;
  border: 1px solid rgba(76, 207, 245, .4);
  border-radius: .48cqw;
  background: rgba(4, 31, 58, .78);
}

.result-branch-summary span {
  color: #78d8ef;
  font-size: clamp(8px, .5cqw, 10px);
  font-weight: 900;
  text-transform: uppercase;
}

.result-branch-summary b {
  min-width: 0;
  color: #effcff;
  font-size: clamp(10px, .66cqw, 13px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.scan-summary-grid.branch-summary {
  margin-bottom: .42cqw;
}

.scan-locked-summary.intentional-skip {
  border-color: rgba(122, 211, 255, .42);
}

@container (max-width: 980px) {
  .symbol-grid { grid-template-columns: 1fr 1fr; }
  .symbol-choice { grid-template-columns: 42px minmax(0, 1fr); padding: .36cqw; }
  .branch-context > small { max-width: 20cqw; }
  .result-branch-summary { grid-template-columns: 1fr; }
}
