.station-console [hidden] { display: none; }
.cloud-unavailable { grid-column: 1 / -1; margin: auto; padding: 40px 16px; font-size: 15px; line-height: 1.7; }
.station-console:is([data-view="optical"], [data-view="profile"]) .station-key { display: none; }
.cloud-lab {
  --cloud-line: #354347;
  --cloud-text: #e2e9e6;
  --cloud-muted: #a5b7b6;
  --cloud-accent: #93e0db;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(244px, 25%, 335px);
  color: var(--cloud-text);
  background: #11191b;
}
.cloud-frame {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  background: radial-gradient(ellipse at 49% 48%, #1b2d30, #111c20 62%, #10191c);
}
.cloud-view-heading, .cloud-viewport-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 15px clamp(14px, 2vw, 32px);
}
.cloud-view-heading h2 { font-size: clamp(16px, 1.25vw, 21px); font-weight: 600; letter-spacing: .015em; }
.cloud-scale, .cloud-limits { display: flex; align-items: center; gap: 8px; }
.cloud-scale, .cloud-hint { color: var(--cloud-muted); font-size: 12px; }
.cloud-limits { gap: 5px; }
.cloud-limits i { width: clamp(40px, 5.4vw, 86px); height: 5px; background: linear-gradient(90deg,#2d71ee 0%,#24a5e9 21%,#32ceca 44%,#91dd81 61%,#efda58 76%,#ff9145 100%); }
.cloud-stage { min-width: 0; position: relative; min-height: clamp(305px, 40vh, 455px); }
#height-profile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#height-profile:active { cursor: grabbing; }
.cloud-lab :is(button, canvas):focus-visible { outline: 2px solid #a4f3ea; outline-offset: -2px; }
.cloud-viewport-foot { padding-block: 4px 7px; border-top: 1px solid #2c3b3f; }
.cloud-tools { display: flex; align-items: center; }
.cloud-tools button, .scan-views button {
  min-width: 42px; min-height: 42px; padding: 4px 8px; background: transparent;
  color: #d7e3e1; border: 0; font-family: inherit;
}
.cloud-tools button { font: 18px/1 var(--mono); }
.cloud-tools .cloud-reset { margin-left: 7px; padding-inline: 14px; border-left: 1px solid var(--cloud-line); font-size: 13px; font-family: inherit; }
.cloud-tools button:hover, .scan-views button:hover { color: var(--cloud-accent); background: #233135; }
.touch-hint { display: none; }
.scan-console {
  display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 14px;
  padding: clamp(14px, 1.5vw, 24px); border-left: 1px solid var(--cloud-line);
  background: #151d1e;
}
.scan-console h3 { font-size: clamp(15px, 1.15vw, 19px); font-weight: 600; line-height: 1.3; }
.step-heading, .step-caption, .step-faces > div, .step-faces dt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.step-mark { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #c0cecb; cursor: pointer; min-height: 34px; }
.step-mark input { accent-color: var(--cloud-accent); width: 14px; height: 14px; }
.step-mark input:focus-visible { outline: 2px solid var(--cloud-accent); outline-offset: 2px; }
.step-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 5px 0 13px; border: 1px solid #465556; }
.step-choices button {
  border: 0; background: transparent; color: #c3d4d0; min-height: 39px;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
}
.step-choices button + button { border-left: 1px solid #465556; }
.step-choices button:hover { background: #253536; color: #e8f2ef; }
.step-choices button[aria-pressed="true"] { background: #b3e4d8; color: #102623; }
.step-caption { font-size: 12px; color: #c0d3ce; }
.step-caption span:last-child { color: #a0b2ad; font-size: 11px; }
.step-value { display: flex; align-items: baseline; gap: 7px; padding: 2px 0 6px; }
.step-value strong { font: 500 clamp(33px, 3.2vw, 49px)/1.12 var(--mono); letter-spacing: -.055em; color: #d6f8ed; }
.step-value > span, .step-faces dd { font: 12px/1.2 var(--mono); color: #b9cdc7; }
.step-faces { margin: 0; padding: 0; }
.step-faces > div { min-height: 25px; }
.step-faces dt { justify-content: flex-start; font-size: 12px; color: #c9d7d2; }
.step-faces b { width: 16px; text-align: center; font: 600 14px/1 var(--mono); color: #ff9db8; }
.step-faces > div:nth-child(2) b { color: #89deff; }
.step-faces dd { margin: 0; white-space: nowrap; }
.scan-instrument {
  display: grid; grid-template-columns: 64px minmax(0,1fr); column-gap: 12px;
  align-items: center; padding-top: 14px; border-top: 1px solid var(--cloud-line);
}
.scan-instrument h3 { grid-column: 2; font-size: 14px; }
.scan-illustration {
  position: relative; isolation: isolate; height: 56px; grid-area: 1 / 1 / 4;
  overflow: hidden; background: radial-gradient(ellipse at 55% 65%, #213030 0, transparent 68%);
}
.scan-part {
  position: absolute; width: 65%; height: auto; bottom: 1%; left: 26%;
  opacity: .93;
  mask-image: radial-gradient(ellipse at 52% 48%, black 34%, #000d 51%, transparent 74%);
}
.scan-sensor {
  position: absolute; top: 1%; left: 19%; width: 35%; height: 38%; object-fit: contain;
  filter: drop-shadow(2px 5px 4px #050a0b90); z-index: 2;
}
.scan-fan {
  position: absolute; top: 26%; left: 35%; width: 43%; height: 53%; z-index: 1;
  clip-path: polygon(0 0,100% 74%,25% 100%); transform-origin: 1% 2%;
  transform: skewX(var(--scan-tilt, 0deg)); opacity: .7;
  background: linear-gradient(150deg, #8ff5ef11 4%, #7ce8e737 55%, #87ebe77d 99%);
}
.scan-status { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: #bfcecb; }
.scan-instrument .scan-status, .scan-instrument progress { grid-column: 2; }
.scan-instrument .rescan { grid-column: 1 / -1; margin-top: 8px; }
#scan-percent { font-family: var(--mono); color: var(--cloud-accent); }
#scan-progress { width: 100%; height: 3px; margin: 5px 0; border: 0; appearance: none; background: #324044; color: var(--cloud-accent); }
#scan-progress::-webkit-progress-bar { background: #324044; }
#scan-progress::-webkit-progress-value { background: var(--cloud-accent); }
#scan-progress::-moz-progress-bar { background: var(--cloud-accent); }
.rescan {
  display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px;
  border: 1px solid #537373; background: #233736; color: #d2f4ec; font-size: 14px; font-weight: 600;
}
.rescan:hover { background: #2d4140; border-color: #87b5ad; }
.rescan svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scan-views { padding-top: 3px; border-top: 1px solid var(--cloud-line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.scan-views > span { color: var(--cloud-muted); font-size: 12px; }
.scan-views > div { display: flex; align-items: center; }
.scan-views button { font-size: 13px; }
.scan-views button[aria-pressed="true"] { color: #aff5e7; box-shadow: inset 0 -2px 0 #79cfc3; }
@media (pointer: coarse) { .mouse-hint { display: none; } .touch-hint { display: inline; } }
@media (max-width: 720px) {
  .cloud-lab { grid-template-columns: minmax(0,1fr); }
  .cloud-frame { grid-template-rows: auto clamp(245px, 63vw, 330px) auto; }
  .cloud-stage { min-height: 0; }
  .cloud-view-heading { padding-block: 12px 6px; }
  .cloud-view-heading h2 { font-size: 16px; }
  .cloud-viewport-foot { padding-block: 0; }
  .cloud-tools button { min-height: 44px; }
  .scan-console { border-left: 0; border-top: 1px solid var(--cloud-line); padding: 10px 14px; gap: 10px; }
  .scan-console h3 { font-size: 14px; }
  .step-choices { margin: 3px 0 10px; }
  .step-choices button { min-height: 44px; }
  #step-reading { display: grid; grid-template-columns: minmax(90px, .85fr) minmax(0,1.3fr); gap: 0 10px; }
  .step-caption { flex-wrap: wrap; justify-content: flex-start; gap: 2px 8px; }
  .step-value { grid-area: 2 / 1; padding-bottom: 0; }
  .step-faces { grid-area: 1 / 2 / 3; align-self: center; }
  .step-faces dt, .step-faces > div { gap: 4px; }
  .scan-instrument { grid-template-columns: minmax(0,1fr) auto; gap: 2px 14px; padding-top: 9px; }
  .scan-instrument h3 { grid-area: 1 / 1; }
  .scan-illustration { display: none; }
  .scan-instrument .scan-status { grid-area: 2 / 1; font-size: 11px; }
  .scan-instrument #scan-progress { grid-area: 3 / 1; margin: 0; }
  .scan-instrument .rescan { grid-area: 1 / 2 / 4; min-height: 44px; padding: 0 11px; margin: 0; }
  .scan-views { padding: 0; }
  .scan-views button { min-height: 44px; }
}
@media (max-width: 365px) {
  .cloud-view-heading, .cloud-viewport-foot { padding-inline: 8px; }
  .cloud-hint { font-size: 11px; }
  .cloud-tools .cloud-reset { margin-left: 0; padding-inline: 7px; }
}
