/* Customer scan: motion represents a pending request, never measured progress. */
.wcs {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto 24px;
  padding: 24px 30px;
  background: #f0f2ed;
  color: #243432;
  border: 1px solid #d8dfd7;
  border-radius: 16px;
  font-family: Inter, system-ui, sans-serif;
}
.wcs * {
  box-sizing: border-box;
}
.wcs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.wcs h2 {
  overflow-wrap: anywhere;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.wcs p {
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0;
  color: #4c6059;
}
.wcs button,
.wcs input,
.wcs select {
  font: inherit;
  font-size: 13px;
  min-height: 44px;
  border: 1px solid #c7d2c8;
  border-radius: 6px;
  background: #fff;
  color: #263d35;
  padding: 10px 12px;
  max-width: 100%;
}
.wcs button {
  cursor: pointer;
  font-weight: 600;
  white-space: normal;
}
.wcs button:disabled {
  opacity: 0.55;
  cursor: default;
}
.wcs button:focus-visible,
.wcs input:focus-visible,
.wcs select:focus-visible,
.wcs summary:focus-visible {
  outline: 3px solid #216255;
  outline-offset: 3px;
}
.wcs label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
.wcs-content {
  padding-top: 24px;
}
.wcs-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}
.wcs-inputs small {
  grid-column: 1/-1;
  font-size: 12px;
  line-height: 1.5;
  color: #4c6059;
}
.wcs-manual {
  grid-column: 1/-1;
  border-top: 1px solid #d2dbd1;
  padding-top: 14px;
}
.wcs summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.wcs-manual label {
  margin-top: 14px;
}
.wcs-manual button {
  margin-top: 14px;
}
.wcs-live {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 24px;
  align-items: center;
}
.wcs-view {
  --wcs-height: 280px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid #c9d2c8;
  border-radius: 9px;
}
.wcs-view > img {
  display: block;
  width: 100%;
  height: var(--wcs-height);
  object-fit: cover;
  object-position: top;
}
.wcs-wire {
  height: var(--wcs-height);
  padding: 24px;
  background: #fafaf6;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 15px;
  align-content: start;
}
.wcs-wire-nav {
  grid-column: 1/-1;
  height: 14px;
  background: #c6d2c5;
  width: 75%;
  margin-bottom: 15px;
}
.wcs-wire-title {
  height: 60px;
  background: #d6ded2;
  align-self: center;
}
.wcs-wire-image {
  grid-column: 2;
  grid-row: 2/5;
  height: 142px;
  background: #e5eadd;
  border: 1px solid #d0d9c9;
}
.wcs-wire-line {
  height: 12px;
  background: #dfe5d9;
  width: 85%;
}
.wcs-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #246555;
  box-shadow: 0 -14px 24px 7px #24655520;
  animation: wcs-sweep 2.8s linear infinite;
  pointer-events: none;
}
.wcs-image-caption {
  position: relative;
  margin: 0 !important;
  padding: 10px 14px;
  font-size: 11px !important;
  background: #e6ebe2;
  border-top: 1px solid #cdd6c9;
  color: #405a4d !important;
}
.wcs-phases {
  min-width: 0;
}
.wcs-phases ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.wcs-phases li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #ccd6ca;
  font-size: 13px;
}
.wcs-phases strong {
  flex-shrink: 0;
  font-size: 12px;
  color: #40594c;
}
.wcs-phases [data-phase="running"] strong {
  color: #195747;
}
.wcs-phases [data-phase="running"] strong::before {
  content: "● ";
  animation: wcs-pulse 1.6s ease-in-out infinite;
}
.wcs-phases [data-phase="unavailable"] strong,
.wcs-phases [data-phase="invalid"] strong,
.wcs-phases [data-phase="failed"] strong {
  color: #7a3e24;
}
.wcs-results {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #ccd6ca;
}
.wcs-results h3 {
  font-size: 23px;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.wcs-results h4 {
  font-size: 14px;
  margin: 20px 0 6px;
}
.wcs-results dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  gap: 10px 20px;
  font-size: 13px;
  line-height: 1.5;
}
.wcs-results dt {
  color: #4d6357;
}
.wcs-results dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.wcs-results ul {
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.65;
}
.wcs-results li {
  margin-bottom: 7px;
}
.wcs-results button {
  margin: 10px 12px 0 0;
}
.wcs .ws-primary {
  background: #234c47;
  color: #fff;
  border-color: #234c47;
}
.wcs [role="status"] {
  min-height: 44px;
  overflow-wrap: anywhere;
}
@keyframes wcs-sweep {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(var(--wcs-height));
  }
}
@keyframes wcs-pulse {
  50% {
    opacity: 0.45;
  }
}
@media (max-width: 760px) {
  .wcs {
    padding: 20px;
    border-radius: 10px;
  }
  .wcs-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .wcs h2 {
    font-size: 24px;
  }
  .wcs-inputs,
  .wcs-live {
    grid-template-columns: 1fr;
  }
  .wcs-live {
    gap: 14px;
  }
  .wcs-results dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .wcs-results dd {
    margin-bottom: 10px;
  }
  .wcs-phases li {
    gap: 10px;
  }
  .wcs-view {
    --wcs-height: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wcs-beam,
  .wcs-phases [data-phase="running"] strong::before {
    animation: none !important;
  }
  .wcs-beam {
    top: 45%;
    box-shadow: none;
  }
}

/* Provenance is an explicit choice, never a lead-to-customer conversion. */
.wcs-source{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.wcs-source button[aria-pressed="true"]{background:#234c47;border-color:#234c47;color:#fff}
.vw-schicht .wcs{width:100%;max-width:none;margin:0}
.vw-schicht .wcs-view{--wcs-height:360px}
@media(max-width:760px){.vw-schicht .wcs-view{--wcs-height:230px}}

/* The scan can be taller than the stage. Its scroll must never cover AURA's
   close bar, even when a result arrives after the shorter pending view. */
.vw-schicht[data-content="website-scan"]{overflow:hidden}
.vw-schicht[data-content="website-scan"] .vw-leiste{position:relative;z-index:1}
.vw-schicht[data-content="website-scan"] .vw-buehne{grid-template-columns:minmax(0,1fr);align-content:start;align-items:start;overflow-y:auto;min-width:0}
.vw-schicht[data-content="website-scan"] .vw-anker{display:none}
@media(min-width:1280px){
 .vw-schicht[data-content="website-scan"] .vw-buehne{grid-template-columns:140px minmax(0,1fr)}
 .vw-schicht[data-content="website-scan"] .vw-anker{display:block;position:sticky;top:24px;left:auto;transform:none;width:140px}
}
.vw-schicht[data-content="website-scan"][data-nur="true"] :is(.wcs-source,.wcs-inputs,.wcs-results){display:none}
