.lab.holo-lab { grid-template-columns: minmax(0, 1fr); }
.holo-content { padding: 0 clamp(16px, 3vw, 32px) 32px; }
.holo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #3c5065;
  border-radius: 16px;
  background: #151d30;
}
.holo-size { display: grid; gap: 3px; min-width: 144px; }
.holo-size span { color: #aebdd0; font-size: 13px; }
.holo-size strong { color: #c9f2dd; font-size: clamp(24px, 4vw, 36px); line-height: 1.1; }
.holo-actions { display: flex; flex: 1 1 420px; flex-wrap: wrap; gap: 8px; }
.holo-controls button {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #567481;
  border-radius: 9px;
  background: #1e3040;
  color: #e3eee6;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.holo-controls button[data-holo-half] { background: #25443f; border-color: #6b9e90; }
.holo-controls button:disabled { opacity: .45; cursor: default; }
.holo-controls button:focus-visible, .holo-sources summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
#holo-light span:first-child { color: var(--gold); font-size: 18px; }
.holo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.holo-card, .holo-steps article { min-width: 0; padding: clamp(14px, 2.3vw, 23px); border: 1px solid #3a4a63; border-radius: 15px; background: #131a2e; }
.holo-card { display: flex; flex-direction: column; align-items: stretch; }
.holo-card h3 { margin: 0 0 15px; font-size: clamp(18px, 2vw, 25px); line-height: 1.22; }
.holo-card p:not(.eyebrow), .holo-steps p, .holo-note, .holo-sources p { color: #b9c7d8; font-size: 14px; line-height: 1.7; }
.holo-magnet-view { display: block; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; border-radius: 10px; border: 1px solid #3d5369; }
.holo-dark [data-holo-optical] { visibility: hidden; }
.holo-magnet-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  background: radial-gradient(ellipse at center, #202e46, #151e31 70%);
}
.holo-magnet-view[data-cut-axis="horizontal"] { flex-direction: row; }
.holo-magnet {
  display: flex;
  width: 74%;
  height: 25%;
  min-width: 0;
  justify-content: space-between;
  border: 1px solid #8791a9;
  border-radius: 6px;
  overflow: hidden;
}
.holo-magnet[hidden] { display: none; }
.holo-magnet-view[data-cut-axis="horizontal"] .holo-magnet { width: 44%; height: 30%; }
.holo-magnet.selected { outline: 2px solid #edcd8d; outline-offset: 3px; }
.holo-magnet b { display: grid; place-items: center; width: 50%; background: #a54158; color: #fff; font-size: clamp(14px, 2.6vw, 25px); }
.holo-magnet b+b { background: #335e95; }
.holo-status { margin: 18px 0 8px; color: #d6f4df; font-size: 16px; font-weight: 700; }
.holo-note { margin: 0 0 24px; }
.holo-why { border-top: 1px solid #384c62; padding-top: 24px; }
.holo-why h3 { margin: 8px 0 17px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.22; }
.holo-steps b { color: #bfecda; font-size: 18px; }
.holo-steps p { margin: 9px 0 0; }
.holo-insight { margin: 18px 0; padding: 16px; border-left: 3px solid #8dcbb7; background: #192a36; font-size: 16px; line-height: 1.65; }
.holo-sources summary { width: fit-content; cursor: pointer; color: var(--cyan); }
.holo-sources a { color: var(--cyan); }
@media (max-width: 760px) {
  .holo-steps { grid-template-columns: 1fr; }
  .holo-magnet-view { max-width: 300px; }
  .holo-actions { flex-basis: 100%; }
}

.holo-comparison { display: grid; gap: 16px; }
.holo-comparison-row { display: block; }
.holo-comparison-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 4vw, 46px); align-items: start; max-width: 890px; }
.holo-comparison-grid figure { margin: 0; }
.holo-comparison-grid figcaption, .holo-card .holo-column-label {
  color: #dce6ef;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}
.holo-original, .holo-fragment svg { display: block; width: 100%; aspect-ratio: 1; background: #101b2a; border: 1px solid #527084; border-radius: 3px; }
.holo-original { max-width: 290px; }
.holo-fragments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(108px, 100%), 138px)); gap: 12px; }
.holo-fragments.holo-pair { grid-template-columns: minmax(0, 126px); }
.holo-fragment { min-width: 0; }
.holo-fragment figcaption { margin: 5px 0 0; font-size: 12px; font-weight: 500; }
.holo-fragment.selected svg { outline: 2px solid var(--gold); outline-offset: 2px; }
.holo-empty[hidden] { display: none; }
.holo-comparison > .holo-card:last-child .holo-magnet-view { max-width: 230px; margin-left: 0; }
