.workstation-scan {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #aacbe523;
  border-radius: 20px;
  background: #080c12;
  box-shadow: 0 24px 80px #0004;
}
.ws-heading,
.ws-toolbar,
.ws-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
}
.ws-heading {
  color: #8ca4bb;
  font:
    9px 'DM Mono',
    monospace;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #b8d7f017;
}
.ws-heading span:last-child {
  color: #607887;
  font-size: 8px;
}
.ws-viewport {
  --ws-reveal: 100%;
  position: relative;
  height: clamp(420px, 43vw, 620px);
  isolation: isolate;
  overflow: hidden;
  background: #080c12;
}
.ws-poster,
.ws-canvas,
.ws-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.workstation-scan .ws-poster {
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.ws-canvas {
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease-out;
}
.workstation-scan[data-model-state='ready'] .ws-canvas {
  opacity: 1;
}
.workstation-scan:has([data-static-poster]) .ws-loading,
.workstation-scan:has([data-static-poster]) .ws-toolbar,
.workstation-scan:has([data-static-poster]) .ws-status-row {
  display: none;
}
.ws-canvas canvas {
  touch-action: pan-y;
}
.ws-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ws-scan-labels {
  position: absolute;
  top: 24px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font:
    8px 'DM Mono',
    monospace;
  letter-spacing: 0.12em;
  color: #7d94ae;
}
.ws-scan-labels span:last-child {
  color: #89cbd4;
  text-align: right;
}
.ws-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(24px, var(--ws-reveal), calc(100% - 24px));
  width: 1px;
  background: linear-gradient(transparent, #a8f2ff 22%, #e4fbff 50%, #a8f2ff 78%, transparent);
  box-shadow:
    0 0 14px #91e6ff70,
    0 0 36px #91e6ff20;
}
.ws-scan-line::before {
  content: '';
  position: absolute;
  inset: 0 1px 0 -20px;
  background: linear-gradient(90deg, transparent, #9beaff0c);
}
.ws-curtain {
  position: absolute;
  top: 65px;
  bottom: 65px;
  left: clamp(24px, var(--ws-reveal), calc(100% - 24px));
  width: 48px;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
  outline: none;
}
.ws-scan-handle {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 58px;
  transform: translateY(-50%);
  border: 1px solid #b9edff85;
  border-radius: 25px;
  background: linear-gradient(130deg, #233e4aef, #0a1821f5);
  box-shadow:
    0 0 24px #66d1f126,
    inset 0 1px #d9f6ff22;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #e3faff;
  font: 22px/1 sans-serif;
}
.ws-scan-handle i {
  width: 1px;
  height: 17px;
  background: #a7d8e666;
}
.ws-scan-prompt {
  position: absolute;
  top: calc(50% + 43px);
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #abd6e021;
  padding: 7px 10px;
  border-radius: 20px;
  background: #0a141be8;
  color: #acdce5;
  white-space: nowrap;
  font:
    7px 'DM Mono',
    monospace;
  letter-spacing: 0.12em;
}
.ws-curtain:hover .ws-scan-handle,
.ws-curtain:focus-visible .ws-scan-handle,
[data-scanning='true'] .ws-scan-handle {
  border-color: #d5faff;
  box-shadow:
    0 0 28px #74ddff50,
    0 0 0 4px #b3edff14;
}
.ws-curtain:focus-visible .ws-scan-handle {
  outline: 2px solid #bff1ff;
  outline-offset: 4px;
}
.ws-viewport[data-closed='true'] .ws-scan-prompt {
  left: auto;
  right: 39px;
  top: calc(50% - 12px);
  transform: none;
}
.ws-viewport[data-open='true'] .ws-scan-prompt {
  left: 39px;
  top: calc(50% - 12px);
  transform: none;
}
.ws-viewport[data-closed='true'] .ws-scan-labels span:last-child,
.ws-viewport[data-closed='true'] .ws-scan-readout,
.ws-viewport[data-open='true'] .ws-scan-labels span:first-child {
  opacity: 0;
}
.ws-scan-readout {
  position: absolute;
  right: 22px;
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7ca7b5;
  font:
    8px 'DM Mono',
    monospace;
  letter-spacing: 0.1em;
}
.ws-scan-readout strong {
  font-size: 13px;
  font-weight: 400;
  color: #c4edf2;
}
.ws-stage-bottom {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  font:
    8px 'DM Mono',
    monospace;
  letter-spacing: 0.08em;
  color: #849cb3;
}
.ws-stage-bottom span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b1d0f7;
  box-shadow: 0 0 12px #99c5ff;
}
.ws-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid #a9d3e52b;
  border-radius: 30px;
  background: #061018e8;
  color: #c7d7eb;
  font:
    10px 'DM Mono',
    monospace;
  white-space: nowrap;
}
.ws-loading span {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b5d5ff, transparent);
}
.ws-toolbar {
  border-top: 1px solid #b8d7f017;
  background: #0c1119;
  flex-wrap: wrap;
}
body.page-home main .ws-toolbar p,
body.page-home main .ws-status-row p,
body.page-home main .ws-static-note,
body.page-inner main .ws-toolbar p,
body.page-inner main .ws-status-row p,
body.page-inner main .ws-static-note {
  font-size: 11px;
  line-height: 1.7;
  color: #94a8bd;
  margin: 0;
}
.ws-toolbar p {
  flex: 1 1 200px;
}
.ws-actions {
  display: flex;
  gap: 6px;
}
.workstation-scan button {
  appearance: none;
  border: 1px solid #b7d5ed2b;
  border-radius: 30px;
  padding: 10px 13px;
  background: #152330;
  color: #c9dfed;
  cursor: pointer;
  font:
    10px 'DM Mono',
    monospace;
  white-space: nowrap;
}
.workstation-scan button:hover {
  border-color: #a8dbee80;
  background: #1b3040;
}
.workstation-scan button:focus-visible {
  outline: 2px solid #bff1ff;
  outline-offset: 3px;
}
.workstation-scan button:disabled {
  opacity: 0.45;
  cursor: default;
}
.ws-status-row {
  border-top: 1px solid #b8d7f012;
  padding-block: 14px;
}
.ws-static-note {
  padding: 0 22px 20px;
}
.workstation-scan [hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .ws-canvas {
    transition: none;
  }
}
@media (min-width: 1001px) {
  .matrix-design-hero {
    grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .workstation-scan {
    border-radius: 14px;
  }
  .ws-viewport {
    height: 420px;
  }
  .workstation-scan .ws-poster {
    object-fit: cover;
  }
  .ws-heading,
  .ws-toolbar,
  .ws-status-row {
    padding: 16px;
  }
  .ws-heading {
    font-size: 7px;
    gap: 10px;
  }
  .ws-heading span:last-child {
    font-size: 6px;
    letter-spacing: 0.03em;
  }
  .ws-scan-labels,
  .ws-stage-bottom {
    left: 16px;
    right: 16px;
    font-size: 7px;
    letter-spacing: 0.02em;
  }
  .ws-scan-readout {
    right: 16px;
    font-size: 7px;
  }
  .ws-toolbar {
    justify-content: center;
  }
  .ws-toolbar p {
    flex-basis: 100%;
    text-align: center;
  }
  .ws-status-row {
    flex-wrap: wrap;
  }
}
