/* Violence detection UI — customer-facing demo styling */

.appShell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */

.topBar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--app-spacing-unit) * 2);
  padding: 14px calc(var(--app-spacing-unit) * 4);
  background: var(--app-color-surface-app-bar);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--app-color-surface-card-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brandLogo {
  height: 26px;
  width: auto;
  display: block;
}

.brandDivider {
  width: 1px;
  height: 22px;
  background: var(--app-color-surface-card-border);
}

.brandProduct {
  font-size: 14px;
  font-weight: 600;
  color: var(--app-color-text-primary);
  letter-spacing: -0.01em;
}

.topBarRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.systemPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--app-color-status-safe-bg);
  color: var(--app-color-status-safe);
  font-size: var(--app-typography-caption-font-size);
  font-weight: 600;
}

.systemPill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulseDot 2s infinite;
}

/* ---------- Hero ---------- */

.pageContent {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 40px calc(var(--app-spacing-unit) * 4) 56px;
}

.hero {
  margin-bottom: 28px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6, 162, 191, 0.1);
  color: var(--app-color-brand-primary-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heroTitle {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--app-color-brand-ink);
}

.heroTitle span {
  background: linear-gradient(90deg, var(--app-color-brand-primary), var(--app-color-brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroSubtitle {
  margin: 0;
  color: var(--app-color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.demoNote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--app-border-radius-medium);
  border: 1px solid rgba(75, 140, 216, 0.22);
  background: rgba(75, 140, 216, 0.07);
  color: var(--app-color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.demoNote svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--app-color-status-info);
}

.demoNote strong {
  color: var(--app-color-text-primary);
  font-weight: 600;
}

.demoNote.warn {
  margin-top: 0;
  border-color: rgba(227, 162, 58, 0.3);
  background: rgba(227, 162, 58, 0.08);
}

.demoNote.warn svg {
  color: var(--app-color-status-warning);
}

/* ---------- Tabs ---------- */

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(6, 42, 61, 0.06);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--app-color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.tab:hover {
  color: var(--app-color-text-primary);
}

.tab.active {
  background: #fff;
  color: var(--app-color-brand-ink);
  box-shadow: 0 1px 2px rgba(6, 42, 61, 0.08), 0 4px 12px -6px rgba(6, 42, 61, 0.25);
}

.tabLiveDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-color-status-danger);
  color: var(--app-color-status-danger);
  animation: pulseDot 1.8s infinite;
}

/* ---------- Workspace ---------- */

.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--app-color-surface-card);
  border: 1px solid var(--app-color-surface-card-border);
  border-radius: var(--app-border-radius-large);
  box-shadow: var(--app-elevation-card);
}

.sourceCard {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 84px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sourceCard.dragover {
  border-color: var(--app-color-brand-primary);
  box-shadow: var(--app-elevation-raised);
}

.cardHeading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--app-typography-h6-font-size);
  font-weight: var(--app-typography-h6-font-weight);
  color: var(--app-color-text-primary);
}

.stepNum {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--app-color-brand-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.dropInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 150px;
  padding: 20px;
  border: 1.5px dashed rgba(6, 42, 61, 0.16);
  border-radius: var(--app-border-radius-medium);
  background: var(--app-color-surface-card-accent);
  color: var(--app-color-text-secondary);
  font-size: var(--app-typography-caption-font-size);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.dropInner:hover,
.sourceCard.dragover .dropInner {
  border-color: var(--app-color-brand-primary);
  background: rgba(6, 162, 191, 0.06);
}

.dropIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #fff;
  color: var(--app-color-brand-primary);
  box-shadow: 0 6px 16px -8px rgba(6, 42, 61, 0.35);
}

.dropInner strong {
  color: var(--app-color-text-primary);
  font-size: var(--app-typography-body-font-size);
  font-weight: 600;
}

.orDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--app-color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orDivider::before,
.orDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--app-color-surface-card-border);
}

.samplePicker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fieldLabel {
  font-size: var(--app-typography-label-font-size);
  font-weight: 500;
  color: var(--app-color-text-primary);
}

.selectRow {
  display: flex;
  gap: 8px;
}

.fieldSelect {
  flex: 1;
  min-width: 0;
  min-height: var(--app-sizing-form-field-medium);
  padding: 0 36px 0 14px;
  border: 1px solid var(--app-color-surface-card-border);
  border-radius: var(--app-border-radius-small);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7885' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
      no-repeat right 14px center,
    #fff;
  appearance: none;
  -webkit-appearance: none;
  color: var(--app-color-text-primary);
  font-size: var(--app-typography-body-font-size);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fieldSelect:hover {
  border-color: rgba(6, 42, 61, 0.2);
}

.fieldSelect:focus {
  outline: none;
  border-color: var(--app-color-brand-primary);
  box-shadow: 0 0 0 4px rgba(6, 162, 191, 0.14);
}

.fileChip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--app-border-radius-small);
  background: var(--app-color-surface-card-accent);
  color: var(--app-color-text-secondary);
  font-size: var(--app-typography-caption-font-size);
}

.fileChip svg {
  flex-shrink: 0;
  color: var(--app-color-brand-primary);
}

.fileName {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--app-color-text-primary);
  font-weight: 500;
}

.fieldHint {
  margin: -6px 0 0;
  color: var(--app-color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.liveStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.liveStats div {
  padding: 10px 12px;
  border-radius: var(--app-border-radius-small);
  background: var(--app-color-surface-card-accent);
}

.liveStats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-color-text-muted);
}

.liveStats dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-color-text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.primaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: var(--app-border-radius-medium);
  background: linear-gradient(135deg, var(--app-color-brand-primary), var(--app-color-brand-secondary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--app-elevation-raised);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.primaryButton:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.primaryButton:active:not(:disabled) {
  transform: translateY(0);
}

.primaryButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.primaryButton.danger {
  background: linear-gradient(135deg, #d95c66, #e4848b);
  box-shadow: 0 18px 40px -18px rgba(217, 92, 102, 0.6);
}

.primaryButton[data-busy="1"] {
  opacity: 0.85;
}

.primaryButton[data-busy="1"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.secondaryButton,
.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--app-color-surface-card-border);
  border-radius: var(--app-border-radius-small);
  background: #fff;
  color: var(--app-color-text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.iconButton {
  width: var(--app-sizing-form-field-medium);
  min-height: var(--app-sizing-form-field-medium);
  padding: 0;
  color: var(--app-color-text-secondary);
}

.secondaryButton:hover:not(:disabled),
.iconButton:hover:not(:disabled) {
  border-color: var(--app-color-brand-primary);
  color: var(--app-color-brand-primary);
}

.secondaryButton:disabled,
.iconButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Stage ---------- */

.stageCard {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--app-border-radius-medium);
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(6, 162, 191, 0.22), transparent 70%),
    var(--app-color-surface-stage);
}

.previewVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.stageEmpty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-align: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.stageEmpty strong {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.stageEmptyIcon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--app-color-brand-primary);
}

.liveBadge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 20, 29, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.liveBadge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-color-status-safe);
  transition: background 0.2s;
}

.liveBadge.danger::before {
  background: var(--app-color-status-danger);
  animation: pulseDot 1.2s infinite;
}

.previewVideo.mirrored {
  transform: scaleX(-1);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.3s;
}

.stage.alerting::after {
  animation: alertGlow 1.2s ease-in-out infinite;
}

.liveTag {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--app-color-status-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.liveTag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: breathe 1.2s ease-in-out infinite;
}

.alertBanner {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(217, 92, 102, 0.95);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(217, 92, 102, 0.8);
  animation: riseIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Analysis overlay ---------- */

.analysisOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(5, 14, 21, 0.72);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  color: #fff;
  text-align: center;
  animation: fadeIn 0.35s ease;
}

.scanLine {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  top: -120px;
  background: linear-gradient(180deg, transparent, rgba(6, 162, 191, 0.18) 80%, rgba(6, 162, 191, 0.7));
  border-bottom: 1px solid rgba(66, 200, 236, 0.9);
  animation: scan 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

.orb {
  position: relative;
  width: 72px;
  height: 72px;
}

.orb span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.orb span:nth-child(1) {
  border-top-color: var(--app-color-brand-primary);
  border-right-color: var(--app-color-brand-primary);
  animation: spin 1.1s linear infinite;
}

.orb span:nth-child(2) {
  inset: 10px;
  border-bottom-color: var(--app-color-brand-secondary);
  border-left-color: var(--app-color-brand-secondary);
  animation: spin 1.6s linear infinite reverse;
}

.orb span:nth-child(3) {
  inset: 26px;
  background: radial-gradient(circle, #7fe3f5, var(--app-color-brand-primary));
  box-shadow: 0 0 24px 6px rgba(6, 162, 191, 0.55);
  animation: breathe 1.6s ease-in-out infinite;
}

.overlayMessage {
  min-height: 28px;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.overlayMessage.swap {
  opacity: 0;
  transform: translateY(6px);
}

.overlaySteps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.overlaySteps li {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.overlaySteps li + li::before {
  content: "";
  width: 22px;
  height: 1px;
  margin-right: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.overlaySteps li i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.overlaySteps li.active {
  color: #fff;
}

.overlaySteps li.active i {
  background: var(--app-color-brand-primary);
  box-shadow: 0 0 0 4px rgba(6, 162, 191, 0.25);
  animation: breathe 1.4s ease-in-out infinite;
}

.overlaySteps li.done {
  color: rgba(255, 255, 255, 0.75);
}

.overlaySteps li.done i {
  background: var(--app-color-status-safe);
}

.overlayElapsed {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.overlayNote {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Status / verdict ---------- */

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  font-size: 13px;
  color: var(--app-color-text-secondary);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-color-text-muted);
}

.status.processing {
  color: var(--app-color-brand-primary-strong);
}

.status.processing::before {
  background: var(--app-color-brand-primary);
  animation: pulseDot 1.4s infinite;
}

.status.done {
  color: var(--app-color-status-safe);
}

.status.done::before {
  background: var(--app-color-status-safe);
}

.status.err {
  color: var(--app-color-status-danger);
}

.status.err::before {
  background: var(--app-color-status-danger);
}

.verdict {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--app-border-radius-medium);
  border: 1px solid transparent;
  animation: riseIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.verdict.danger {
  background: linear-gradient(135deg, var(--app-color-status-danger-bg), #fff 70%);
  border-color: rgba(217, 92, 102, 0.25);
  --verdict-color: var(--app-color-status-danger);
}

.verdict.safe {
  background: linear-gradient(135deg, var(--app-color-status-safe-bg), #fff 70%);
  border-color: rgba(46, 155, 120, 0.25);
  --verdict-color: var(--app-color-status-safe);
}

.verdictIcon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--verdict-color);
  color: #fff;
  box-shadow: 0 10px 22px -10px var(--verdict-color);
}

.verdictBody {
  flex: 1;
  min-width: 0;
}

.verdictLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-color-text-muted);
}

.verdictTitle {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--verdict-color);
}

.verdictMeta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--app-color-text-secondary);
}

.verdictRing {
  --pct: 0;
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--verdict-color) calc(var(--pct) * 1%), rgba(6, 42, 61, 0.08) 0);
}

.verdictRing::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.verdictRing span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  font-size: 16px;
  font-weight: 700;
  color: var(--app-color-text-primary);
  font-variant-numeric: tabular-nums;
}

.verdictRing small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-color-text-muted);
}

/* ---------- Chart ---------- */

.chartWrap {
  display: none;
  padding: 16px 16px 8px;
  border-radius: var(--app-border-radius-medium);
  background: var(--app-color-surface-card-accent);
  animation: riseIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chartWrap.visible {
  display: block;
}

.chartHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.chartTitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-color-text-primary);
}

.chartHint {
  font-size: 12px;
  color: var(--app-color-text-muted);
}

.chartCanvas {
  position: relative;
  height: 300px;
}

input[type="file"] {
  display: none;
}

/* ---------- Footer ---------- */

.pageFooter {
  padding: 20px 32px 28px;
  text-align: center;
  color: var(--app-color-text-muted);
  font-size: 12px;
}

/* ---------- Animations ---------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes scan {
  0% {
    top: -120px;
  }
  100% {
    top: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alertGlow {
  0%,
  100% {
    box-shadow: inset 0 0 0 3px rgba(217, 92, 102, 0.9), inset 0 0 40px rgba(217, 92, 102, 0.35);
  }
  50% {
    box-shadow: inset 0 0 0 3px rgba(217, 92, 102, 0.5), inset 0 0 20px rgba(217, 92, 102, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .sourceCard {
    position: static;
  }

  .topBar {
    padding: 12px 16px;
  }

  .pageContent {
    padding: 28px 16px 40px;
  }

  .brandDivider,
  .brandProduct,
  .systemPill {
    display: none;
  }
}

@media (max-width: 520px) {
  .verdict {
    flex-wrap: wrap;
  }

  .overlaySteps li span {
    display: none;
  }
}
