body.scc-sv-lock {
  overflow: hidden !important;
}

.scc-sv-modal[hidden],
.scc-sv-processing[hidden] {
  display: none !important;
}

.scc-sv-widget {
  width: 100%;
  margin: 16px 0 0;
  position: relative;
}

.scc-sv-widget,
.scc-sv-widget * {
  box-sizing: border-box;
}

.scc-sv-open-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  align-items: end;
}

.scc-sv-open-row.is-solo {
  grid-template-columns: minmax(0, 1fr);
}

.scc-sv-launcher-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scc-sv-widget .scc-sv-launcher-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 18px;
  margin: 0;
  padding: 0 4px;
  text-align: center;
  color: rgba(255, 179, 71, 0.86);
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  line-height: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scc-sv-widget .scc-sv-open,
.scc-sv-widget .scc-sv-open-official {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(78, 139, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(7, 18, 44, 0.96), rgba(3, 9, 24, 0.98)),
    rgba(5, 12, 28, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(21, 94, 239, 0.12);
  color: #f6fbff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.scc-sv-widget .scc-sv-open::before,
.scc-sv-widget .scc-sv-open-official::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.scc-sv-widget .scc-sv-open {
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 14px;
}

.scc-sv-widget .scc-sv-open.is-verified {
  border-color: rgba(114, 247, 176, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(51, 224, 138, 0.14);
}

.scc-sv-widget .scc-sv-open.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.scc-sv-widget .scc-sv-open-copy,
.scc-sv-widget .scc-sv-open-official .scc-sv-open-copy {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: #f6fbff;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.scc-sv-widget .scc-sv-open-logo-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scc-sv-widget .scc-sv-open-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.36));
}

.scc-sv-widget .scc-sv-open-official .scc-sv-open-copy {
  text-align: center;
}

.scc-sv-widget .scc-sv-open .scc-sv-open-copy {
  padding-right: 2px;
}

.scc-sv-modal,
.scc-sv-modal * {
  box-sizing: border-box;
}

.scc-sv-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.scc-sv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 13, 0.82);
  backdrop-filter: blur(9px);
}

.scc-sv-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  padding: 12px;
}

.scc-sv-panel {
  position: relative;
  width: min(1480px, 100%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(84, 146, 255, 0.18);
  background:
    radial-gradient(circle at top center, rgba(17, 61, 148, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(3, 10, 25, 0.98), rgba(2, 7, 17, 0.99));
  color: #eef6ff;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  isolation: isolate;
}

.scc-sv-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(74, 209, 146, 0.06) 0, rgba(74, 209, 146, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
  opacity: 0.34;
  pointer-events: none;
}

.scc-sv-topbar,
.scc-sv-challenge-box,
.scc-sv-modal-controls,
.scc-sv-stepbar,
.scc-sv-content-grid,
.scc-sv-footer {
  position: relative;
  z-index: 1;
}

.scc-sv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.scc-sv-topbar-copy {
  min-width: 0;
}

.scc-sv-topbar-kicker {
  margin: 0;
  color: #9df1c4;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.scc-sv-topbar-text {
  margin: 6px 0 0;
  color: rgba(224, 237, 255, 0.78);
  font-size: 13px;
  line-height: 1.42;
}

.scc-sv-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.scc-sv-brand-logo,
.scc-sv-processing-logo {
  width: 78px;
  height: auto;
  object-fit: contain;
  display: block;
}

.scc-sv-close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #f6fbff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.scc-sv-approved-box {
  margin: 10px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(112, 246, 176, 0.18);
  background: linear-gradient(90deg, rgba(47, 165, 104, 0.11), rgba(13, 32, 20, 0.16));
}

.scc-sv-approved-box strong,
.scc-sv-approved-box span {
  color: #cef9df;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.scc-sv-approved-box span {
  font-weight: 600;
  opacity: 0.9;
}

.scc-sv-challenge-box {
  margin: 12px 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(97, 151, 255, 0.16);
  background: linear-gradient(180deg, rgba(9, 22, 48, 0.92), rgba(7, 15, 31, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scc-sv-challenge-copy {
  min-width: 0;
}

.scc-sv-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(169, 191, 229, 0.84);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.scc-sv-code {
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.05;
  white-space: nowrap;
}

.scc-sv-challenge-box small {
  display: block;
  margin-top: 8px;
  color: rgba(220, 233, 255, 0.74);
  font-size: 12px;
  line-height: 1.2;
}

.scc-sv-refresh,
.scc-sv-action,
.scc-sv-submit,
.scc-sv-upload span {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid rgba(97, 151, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 22, 45, 0.96), rgba(4, 10, 24, 0.98));
  color: #f4fbff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scc-sv-refresh,
.scc-sv-submit {
  border-color: rgba(85, 231, 148, 0.24);
  color: #d3ffe7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px rgba(57, 214, 129, 0.08);
}

.scc-sv-action,
.scc-sv-refresh,
.scc-sv-submit,
.scc-sv-upload span {
  cursor: pointer;
}

.scc-sv-action.is-muted {
  color: rgba(222, 232, 248, 0.8);
}

.scc-sv-action:disabled,
.scc-sv-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.scc-sv-upload span.is-current,
.scc-sv-action.is-current,
.scc-sv-submit.is-current {
  border-color: rgba(255, 216, 96, 0.52) !important;
  background: linear-gradient(180deg, rgba(79, 56, 6, 0.96), rgba(39, 26, 4, 0.98)) !important;
  color: #fff4c2 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 206, 84, 0.14),
    0 0 22px rgba(255, 206, 84, 0.12);
}

.scc-sv-action.is-current:disabled,
.scc-sv-submit.is-current:disabled {
  opacity: 1;
}

.scc-sv-upload input {
  display: none;
}

.scc-sv-modal-controls {
  margin: 12px 18px 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1.6fr) minmax(180px, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.scc-sv-inline-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scc-sv-modal.is-official-mode .scc-sv-inline-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scc-sv-stepbar {
  margin: 12px 18px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scc-sv-stepbar span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(97, 151, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(190, 208, 237, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.scc-sv-stepbar span.is-active {
  border-color: rgba(84, 234, 150, 0.28);
  background: linear-gradient(180deg, rgba(38, 121, 79, 0.18), rgba(12, 39, 26, 0.24));
  color: #e3fff0;
}

.scc-sv-stepbar span.is-done {
  border-color: rgba(84, 234, 150, 0.2);
  background: rgba(44, 137, 88, 0.12);
  color: rgba(206, 249, 222, 0.92);
}

.scc-sv-content-grid {
  flex: 1;
  min-height: 0;
  padding: 14px 18px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 16px;
  overflow: hidden;
}

.scc-sv-stage-wrap,
.scc-sv-previews > div,
.scc-sv-footer {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.scc-sv-stage-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
}

.scc-sv-stage-hint {
  margin-bottom: 12px;
  color: rgba(231, 240, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
}

.scc-sv-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
    #050d19;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.scc-sv-stage-image {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
}

.scc-sv-crop-box {
  position: absolute;
  border: 2px solid #71efba;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  cursor: move;
  background: rgba(113, 239, 186, 0.08);
}

.scc-sv-crop-box .handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #71efba;
  border: 2px solid #fff;
}

.scc-sv-crop-box .nw { left: -8px; top: -8px; cursor: nwse-resize; }
.scc-sv-crop-box .ne { right: -8px; top: -8px; cursor: nesw-resize; }
.scc-sv-crop-box .sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.scc-sv-crop-box .se { right: -8px; bottom: -8px; cursor: nwse-resize; }

.scc-sv-crop-box.scc-sv-force-hidden,
.scc-sv-crop-box.scc-sv-force-hidden * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
}

.scc-sv-quad-layer { position: absolute; inset: 0; }
.scc-sv-quad-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scc-sv-quad-fill {
  fill: rgba(113, 239, 186, 0.12);
  stroke: #71efba;
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(113, 239, 186, 0.18));
}

.scc-sv-quad-point,
.scc-sv-quad-edge {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: auto;
}

.scc-sv-quad-point {
  width: 16px;
  height: 16px;
  background: #71efba;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  cursor: grab;
}

.scc-sv-quad-edge {
  width: 12px;
  height: 12px;
  background: #d6ffe8;
  border: 2px solid #0d1628;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  cursor: move;
}

.scc-sv-side-stack {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scc-sv-previews {
  display: grid;
  gap: 12px;
}

.scc-sv-previews > div {
  padding: 14px;
}

.scc-sv-previews strong {
  display: block;
  margin-bottom: 10px;
  color: #f5fbff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.scc-sv-mini-preview {
  min-height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scc-sv-mini-preview img {
  display: block;
  max-width: 100%;
  max-height: 240px;
}

.scc-sv-footer {
  padding: 14px;
  min-height: 90px;
}

.scc-sv-status {
  color: rgba(227, 237, 253, 0.92);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.scc-sv-status.is-error {
  color: #ffc4c9;
}

.scc-sv-status.is-success {
  color: #c9ffe1;
}

.scc-sv-processing {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 7, 16, 0.82);
  backdrop-filter: blur(8px);
}

.scc-sv-processing-card {
  width: min(440px, 100%);
  padding: 20px 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(97, 151, 255, 0.18);
  background: linear-gradient(180deg, rgba(8, 19, 40, 0.98), rgba(3, 8, 18, 0.99));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.scc-sv-processing-title {
  margin: 12px 0 0;
  color: #f6fbff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.scc-sv-processing-bar {
  margin-top: 14px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scc-sv-processing-bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #53f09e 0%, #7fcbff 100%);
  box-shadow: 0 0 18px rgba(83, 240, 158, 0.28);
  transition: width 0.35s ease;
}

.scc-sv-processing-text {
  margin-top: 12px;
  color: rgba(220, 234, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
  min-height: 1.45em;
}

@media (max-width: 1140px) {
  .scc-sv-modal-controls {
    grid-template-columns: 1fr;
  }

  .scc-sv-content-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .scc-sv-stage {
    min-height: min(58svh, 620px);
  }

  .scc-sv-side-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .scc-sv-footer {
    min-height: 0;
  }
}

@media (max-width: 782px) {
  .scc-sv-open-row {
    gap: 12px;
  }

  .scc-sv-widget .scc-sv-open,
  .scc-sv-widget .scc-sv-open-official {
    min-height: 70px;
    padding-inline: 14px;
  }

  .scc-sv-widget .scc-sv-open-logo-wrap {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .scc-sv-widget .scc-sv-open-logo {
    width: 38px;
    height: 38px;
  }

  .scc-sv-shell {
    padding: 0;
  }

  .scc-sv-panel {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .scc-sv-topbar {
    padding: 12px 14px 10px;
    gap: 12px;
  }

  .scc-sv-topbar-kicker {
    font-size: 14px;
  }

  .scc-sv-topbar-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .scc-sv-brand-logo,
  .scc-sv-processing-logo {
    width: 68px;
  }

  .scc-sv-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .scc-sv-approved-box,
  .scc-sv-challenge-box,
  .scc-sv-modal-controls,
  .scc-sv-stepbar,
  .scc-sv-content-grid {
    margin-left: 14px;
    margin-right: 14px;
  }

  .scc-sv-approved-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
  }

  .scc-sv-challenge-box {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .scc-sv-code {
    font-size: 24px;
    letter-spacing: 0.12em;
  }

  .scc-sv-refresh,
  .scc-sv-action,
  .scc-sv-submit,
  .scc-sv-upload span {
    min-height: 48px;
    font-size: 14px;
  }

  .scc-sv-inline-actions {
    gap: 10px;
  }

  .scc-sv-stepbar {
    grid-template-columns: 1fr;
  }

  .scc-sv-content-grid {
    padding: 12px 0 14px;
  }

  .scc-sv-stage-wrap {
    padding: 12px;
  }

  .scc-sv-stage-hint {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .scc-sv-stage {
    min-height: min(62svh, 700px);
  }

  .scc-sv-side-stack {
    grid-template-columns: 1fr;
  }

  .scc-sv-previews {
    grid-template-columns: 1fr 1fr;
  }

  .scc-sv-previews > div,
  .scc-sv-footer {
    padding: 12px;
  }

  .scc-sv-mini-preview {
    min-height: 100px;
  }

  .scc-sv-processing {
    padding: 16px;
  }

  .scc-sv-processing-card {
    padding: 18px 16px 16px;
  }

  .scc-sv-processing-title {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .scc-sv-open-row {
    gap: 10px;
  }

  .scc-sv-widget .scc-sv-launcher-label {
    font-size: 13px !important;
  }

  .scc-sv-widget .scc-sv-open-copy,
  .scc-sv-widget .scc-sv-open-official .scc-sv-open-copy {
    font-size: 13px !important;
  }

  .scc-sv-widget .scc-sv-open-logo-wrap {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .scc-sv-widget .scc-sv-open-logo {
    width: 44px;
    height: 44px;
  }

  .scc-sv-modal-controls,
  .scc-sv-inline-actions {
    gap: 10px;
  }

  .scc-sv-inline-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scc-sv-modal.is-official-mode .scc-sv-inline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scc-sv-action,
  .scc-sv-submit,
  .scc-sv-upload span {
    padding-inline: 10px;
    font-size: 13px;
  }

  .scc-sv-previews {
    grid-template-columns: 1fr;
  }

  .scc-sv-stage {
    min-height: min(56svh, 620px);
  }
}

/* --- v7.1 desk polish: launcher + meta row + logo spillover --- */
.scc-sv-widget .scc-sv-launcher-card {
  gap: 10px;
}

.scc-sv-widget .scc-sv-open,
.scc-sv-widget .scc-sv-open-official {
  min-height: 78px !important;
  height: 78px;
  padding: 12px 20px !important;
}

.scc-sv-widget .scc-sv-open {
  justify-content: space-between;
  gap: 12px;
  padding-inline: 20px 16px !important;
}

.scc-sv-widget .scc-sv-open-copy,
.scc-sv-widget .scc-sv-open-official .scc-sv-open-copy {
  font-size: 15px !important;
  line-height: 1.08 !important;
}

.scc-sv-widget .scc-sv-open-logo-wrap {
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 58px !important;
}

.scc-sv-widget .scc-sv-open-logo {
  width: 74px !important;
  height: 56px !important;
}

.scc-sv-stepbar {
  display: none !important;
}

.scc-sv-meta-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin: 10px 18px 0;
  align-items: stretch;
}

.scc-sv-meta-row .scc-sv-challenge-box,
.scc-sv-meta-row .scc-sv-approved-box {
  margin: 0 !important;
  min-height: 108px;
}

.scc-sv-challenge-box {
  padding: 16px 18px;
}

.scc-sv-approved-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
}

.scc-sv-approved-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.scc-sv-approved-box strong {
  display: block;
  margin: 0;
  color: #d5ffe6;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.scc-sv-approved-box span {
  display: block;
  margin: 0;
  color: rgba(213, 255, 230, 0.92);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.scc-sv-approved-box.is-pending {
  border-color: rgba(97, 151, 255, 0.14);
  background: linear-gradient(180deg, rgba(9, 22, 48, 0.78), rgba(7, 15, 31, 0.92));
}

.scc-sv-approved-box.is-pending strong,
.scc-sv-approved-box.is-pending span {
  color: rgba(224, 237, 255, 0.88);
}

.scc-sv-topbar {
  position: relative;
  overflow: visible;
  min-height: 92px;
  padding-right: 220px;
}

.scc-sv-topbar-actions {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 190px;
  min-width: 44px;
  justify-content: flex-end;
}

.scc-sv-brand-logo {
  position: absolute;
  top: 10px;
  right: 74px;
  width: 132px;
  transform: translateY(28px);
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.scc-sv-close {
  position: relative;
  z-index: 3;
}

@media (max-width: 1080px) {
  .scc-sv-meta-row {
    grid-template-columns: 1fr;
  }

  .scc-sv-topbar {
    padding-right: 180px;
  }

  .scc-sv-brand-logo {
    width: 110px;
    right: 70px;
    transform: translateY(20px);
  }
}

@media (max-width: 782px) {
  .scc-sv-meta-row {
    grid-template-columns: 1fr;
    margin: 10px 14px 0;
  }

  .scc-sv-topbar {
    min-height: 0;
    padding-right: 14px !important;
  }

  .scc-sv-topbar-actions {
    position: static;
  }

  .scc-sv-brand-logo {
    position: static;
    width: 70px !important;
    transform: none;
    filter: none;
  }

  .scc-sv-meta-row .scc-sv-challenge-box,
  .scc-sv-meta-row .scc-sv-approved-box {
    min-height: 0;
  }

  .scc-sv-widget .scc-sv-open,
  .scc-sv-widget .scc-sv-open-official {
    min-height: 70px !important;
    height: 70px;
  }

  .scc-sv-widget .scc-sv-open-logo-wrap {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 38px !important;
  }

  .scc-sv-widget .scc-sv-open-logo {
    width: 44px !important;
    height: 34px !important;
  }
}


/* --- v7.2 visual integration + logs + outcome --- */
.scc-sv-widget .scc-sv-open-row {
  align-items: start;
}

.scc-sv-widget .scc-sv-launcher-card {
  min-height: 108px;
}

.scc-sv-widget .scc-sv-open,
.scc-sv-widget .scc-sv-open-official {
  min-height: 80px !important;
  height: 80px !important;
}

.scc-sv-widget .scc-sv-open {
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 8px 10px 8px !important;
}

.scc-sv-widget .scc-sv-open .scc-sv-open-copy {
  flex: 0 1 auto;
  margin-right: auto;
  padding-right: 0;
  text-align: left;
  font-size: 16px !important;
}

.scc-sv-widget .scc-sv-open-logo-wrap {
  flex: 0 0 132px !important;
  width: 132px !important;
  height: 76px !important;
  justify-content: flex-end;
  overflow: visible;
}

.scc-sv-widget .scc-sv-open-logo {
  width: 128px !important;
  height: 76px !important;
  object-fit: contain;
  object-position: right center;
}

.scc-sv-widget .scc-sv-open-official .scc-sv-open-copy {
  font-size: 15px !important;
}

.scc-sv-topbar {
  min-height: 100px;
  padding-right: 260px;
}

.scc-sv-topbar-actions {
  width: 226px;
}

.scc-sv-brand-logo {
  right: 76px;
  top: 6px;
  width: 176px;
  transform: translateY(38px);
}

.scc-sv-meta-row {
  max-width: calc(100% - 176px);
}

.scc-sv-stage-hint {
  align-self: center;
  max-width: min(880px, calc(100% - 24px));
  margin: 0 auto 12px;
  padding: 10px 18px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(116, 236, 178, 0.22);
  background: linear-gradient(180deg, rgba(9, 24, 53, 0.98), rgba(5, 13, 28, 0.98));
  box-shadow: 0 0 0 1px rgba(70, 210, 139, 0.08), 0 0 24px rgba(70, 210, 139, 0.08);
  animation: sccSvPulse 2.4s ease-in-out infinite;
}

@keyframes sccSvPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(70, 210, 139, 0.06), 0 0 14px rgba(70, 210, 139, 0.05); }
  50% { box-shadow: 0 0 0 1px rgba(70, 210, 139, 0.16), 0 0 30px rgba(70, 210, 139, 0.16); }
}

.scc-sv-logbox {
  margin-top: 12px;
}

.scc-sv-log-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #9dd6ff;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.scc-sv-log-panel {
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(97, 151, 255, 0.16);
  background: rgba(5, 12, 28, 0.92);
}

.scc-sv-log-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.scc-sv-log-copy {
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(97, 151, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 22, 45, 0.96), rgba(4, 10, 24, 0.98));
  color: #eef6ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.scc-sv-log-pre {
  margin: 0;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(225, 238, 255, 0.88);
}

.scc-sv-processing-card {
  position: relative;
  overflow: hidden;
}

.scc-sv-processing-outcome {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scc-sv-processing-stamp {
  width: min(340px, 72vw);
  max-width: 84%;
  opacity: 0;
  transform: scale(0.52) rotate(-10deg);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.34));
}

.scc-sv-processing-stamp.is-show {
  animation: sccSvStamp 0.82s cubic-bezier(.2,.9,.15,1.15) forwards;
}

@keyframes sccSvStamp {
  0% { opacity: 0; transform: scale(0.48) rotate(-12deg); }
  48% { opacity: 1; transform: scale(1.08) rotate(-2deg); }
  70% { opacity: 1; transform: scale(0.94) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.scc-sv-processing-fail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 108, 120, 0.28);
  background: linear-gradient(180deg, rgba(59, 10, 17, 0.96), rgba(27, 6, 10, 0.98));
  color: #ffd9dd;
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  box-shadow: 0 18px 36px rgba(0,0,0,.34), 0 0 20px rgba(255,108,120,.16);
}

.scc-sv-processing-fail.is-show {
  animation: sccSvFail 0.42s ease-out forwards;
}

.scc-sv-processing-fail-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: #ff8c98;
  font-size: 18px;
  line-height: 1;
}

@keyframes sccSvFail {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1080px) {
  .scc-sv-meta-row {
    max-width: 100%;
  }
}

@media (max-width: 782px) {
  .scc-sv-topbar {
    padding-right: 14px;
  }

  .scc-sv-brand-logo {
    width: 72px !important;
    transform: none;
  }

  .scc-sv-widget .scc-sv-open {
    padding-inline: 10px !important;
  }

  .scc-sv-widget .scc-sv-open-logo-wrap {
    flex-basis: 54px !important;
    width: 54px !important;
    height: 38px !important;
  }

  .scc-sv-widget .scc-sv-open-logo {
    width: 54px !important;
    height: 36px !important;
  }
}


/* --- v7.3 fail-closed + logo/layout polish --- */
@media (min-width: 783px) {
  .scc-sv-widget .scc-sv-open,
  .scc-sv-widget .scc-sv-open-official {
    min-height: 80px !important;
    height: 80px !important;
  }

  .scc-sv-widget .scc-sv-open {
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 4px 10px 12px !important;
  }

  .scc-sv-widget .scc-sv-open .scc-sv-open-copy {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
    padding-right: 0;
    text-align: left;
    font-size: 15px !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .scc-sv-widget .scc-sv-open-logo-wrap {
    flex: 0 0 118px !important;
    width: 118px !important;
    height: 72px !important;
    margin-left: 4px;
    justify-content: flex-end;
    overflow: visible;
  }

  .scc-sv-widget .scc-sv-open-logo {
    width: auto !important;
    max-width: 118px !important;
    height: 72px !important;
    object-fit: contain;
    object-position: right center;
    transform: translateX(2px);
  }

  .scc-sv-widget .scc-sv-open-official .scc-sv-open-copy {
    font-size: 14px !important;
    white-space: nowrap;
  }

  .scc-sv-topbar {
    min-height: 118px;
    padding-right: 300px;
  }

  .scc-sv-topbar-actions {
    width: 274px;
  }

  .scc-sv-brand-logo {
    right: 82px;
    top: 2px;
    width: 214px;
    transform: translateY(26px);
    z-index: 2;
    pointer-events: none;
  }

  .scc-sv-meta-row {
    max-width: calc(100% - 286px);
  }

  .scc-sv-approved-box,
  .scc-sv-challenge-box {
    overflow: hidden;
  }
}

.scc-sv-processing {
  cursor: default;
}

.scc-sv-processing.is-dismissible {
  cursor: pointer;
}

.scc-sv-processing-card.is-outcome {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scc-sv-processing-card.is-outcome .scc-sv-processing-logo,
.scc-sv-processing-card.is-outcome .scc-sv-processing-title,
.scc-sv-processing-card.is-outcome .scc-sv-processing-bar,
.scc-sv-processing-card.is-outcome .scc-sv-processing-text {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.scc-sv-processing-outcome {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

.scc-sv-processing-stamp {
  width: min(560px, 82vw);
  max-width: 92%;
  opacity: 0;
  transform: scale(0.34) rotate(-12deg);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
}

.scc-sv-processing-stamp.is-show {
  animation: sccSvStampLong 1.7s cubic-bezier(.18,.92,.16,1.18) forwards;
}

@keyframes sccSvStampLong {
  0% { opacity: 0; transform: scale(0.30) rotate(-14deg) translateY(-18px); }
  26% { opacity: 1; transform: scale(1.24) rotate(-5deg) translateY(0); }
  46% { opacity: 1; transform: scale(0.88) rotate(0deg) translateY(6px); }
  64% { opacity: 1; transform: scale(1.06) rotate(-1deg) translateY(-2px); }
  82% { opacity: 1; transform: scale(0.98) rotate(0deg) translateY(0); }
  100% { opacity: 1; transform: scale(1) rotate(0deg) translateY(0); }
}

.scc-sv-processing-fail {
  z-index: 5;
}

.scc-sv-processing-fail.is-show {
  animation: sccSvFailLong 0.88s cubic-bezier(.2,.9,.15,1.06) forwards;
}

@keyframes sccSvFailLong {
  0% { opacity: 0; transform: translateY(16px) scale(0.84); }
  55% { opacity: 1; transform: translateY(-4px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- v7.3 desk logo/layout/outcome polish --- */
.scc-sv-widget .scc-sv-open {
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 10px 10px !important;
}

.scc-sv-widget .scc-sv-open .scc-sv-open-copy {
  flex: 1 1 auto;
  margin-right: 0;
  padding-left: 2px;
  max-width: calc(100% - 108px);
  text-align: left;
  font-size: 14px !important;
  line-height: 0.98 !important;
  letter-spacing: -0.03em !important;
  white-space: normal !important;
  text-wrap: balance;
}

.scc-sv-widget .scc-sv-open-logo-wrap {
  flex: 0 0 108px !important;
  width: 108px !important;
  height: 72px !important;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.scc-sv-widget .scc-sv-open-logo {
  width: auto !important;
  max-width: 108px !important;
  height: 68px !important;
  object-fit: contain;
  object-position: right center;
  transform: translateX(4px);
}

.scc-sv-topbar {
  min-height: 118px;
  padding-right: 360px !important;
}

.scc-sv-topbar-copy {
  max-width: calc(100% - 340px);
}

.scc-sv-topbar-actions {
  width: 320px !important;
}

.scc-sv-brand-logo {
  right: 58px !important;
  top: 0 !important;
  width: 198px !important;
  transform: translateY(24px) !important;
}

.scc-sv-meta-row {
  max-width: calc(100% - 370px) !important;
}

.scc-sv-approved-box,
.scc-sv-challenge-box {
  overflow: hidden;
}

.scc-sv-upload span.is-current,
.scc-sv-action.is-current,
.scc-sv-submit.is-current {
  animation: sccSvCurrentPulse 1.15s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes sccSvCurrentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.scc-sv-status.is-success {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(103, 241, 166, 0.28);
  background: linear-gradient(180deg, rgba(25, 81, 55, 0.22), rgba(6, 23, 16, 0.38));
  box-shadow: 0 0 24px rgba(73, 232, 146, 0.16);
  animation: sccSvResultFloat 2.4s ease-in-out infinite;
}

@keyframes sccSvResultFloat {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 18px rgba(73, 232, 146, 0.12); }
  50% { transform: translateY(-2px) scale(1.015); box-shadow: 0 0 26px rgba(73, 232, 146, 0.22); }
}

.scc-sv-card-preview-wrap {
  position: relative;
}

.scc-sv-card-preview-wrap .scc-sv-mini-preview {
  position: relative;
}

.scc-sv-mini-badge {
  position: absolute;
  top: 42px;
  right: 10px;
  width: 25%;
  min-width: 72px;
  max-width: 120px;
  opacity: 0;
  transform: scale(0.76) rotate(8deg);
  transform-origin: top right;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.34));
  pointer-events: none;
  z-index: 4;
}

.scc-sv-card-preview-wrap.is-validated .scc-sv-mini-badge {
  opacity: 1;
  transform: scale(1) rotate(7deg);
  animation: sccSvCornerStamp 2.3s ease-in-out infinite;
}

@keyframes sccSvCornerStamp {
  0%, 100% { transform: scale(1) rotate(7deg) translateY(0); }
  50% { transform: scale(1.04) rotate(6deg) translateY(-3px); }
}

.scc-sv-processing-card.is-outcome {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.scc-sv-processing-card.is-outcome .scc-sv-processing-outcome {
  position: fixed;
  inset: 0;
  z-index: 6;
}

.scc-sv-processing-stamp {
  width: min(720px, 86vw);
  max-width: 86vw;
  opacity: 0;
  transform: scale(0.28) rotate(-10deg);
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.44));
}

.scc-sv-processing-stamp.is-show {
  animation: sccSvStampPersist 2.25s cubic-bezier(.18,.92,.16,1.18) forwards;
}

@keyframes sccSvStampPersist {
  0% { opacity: 0; transform: scale(0.24) rotate(-12deg) translateY(-30px); }
  20% { opacity: 1; transform: scale(1.28) rotate(-4deg) translateY(0); }
  40% { opacity: 1; transform: scale(0.90) rotate(1deg) translateY(8px); }
  58% { opacity: 1; transform: scale(1.10) rotate(-1deg) translateY(-2px); }
  76% { opacity: 1; transform: scale(0.98) rotate(0deg) translateY(1px); }
  100% { opacity: 1; transform: scale(1) rotate(0deg) translateY(0); }
}

@media (max-width: 782px) {
  .scc-sv-widget .scc-sv-open .scc-sv-open-copy {
    max-width: calc(100% - 94px);
    font-size: 13px !important;
  }

  .scc-sv-widget .scc-sv-open-logo-wrap {
    flex-basis: 92px !important;
    width: 92px !important;
    height: 60px !important;
  }

  .scc-sv-widget .scc-sv-open-logo {
    max-width: 92px !important;
    height: 56px !important;
  }
}


/* --- v7.4 final desk fixes: launcher text, logo spacing, outcome stamp --- */
.scc-sv-widget .scc-sv-open {
  gap: 2px;
  padding: 10px 8px 10px 10px !important;
}

.scc-sv-widget .scc-sv-open .scc-sv-open-copy {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  max-width: calc(100% - 98px);
  min-width: 0;
  padding-left: 0;
  font-size: 12px !important;
  line-height: 0.96 !important;
  letter-spacing: -0.04em !important;
  white-space: normal !important;
  text-wrap: pretty;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.scc-sv-widget .scc-sv-open .scc-sv-open-copy > span {
  display: block;
  white-space: nowrap;
}

.scc-sv-widget .scc-sv-open-logo-wrap {
  flex: 0 0 96px !important;
  width: 96px !important;
  height: 70px !important;
  margin-left: auto;
  justify-content: flex-end;
}

.scc-sv-widget .scc-sv-open-logo {
  max-width: 100px !important;
  height: 64px !important;
  transform: translateX(6px);
}

.scc-sv-topbar {
  padding-right: 420px !important;
}

.scc-sv-topbar-copy {
  max-width: calc(100% - 400px);
}

.scc-sv-topbar-actions {
  width: 360px !important;
}

.scc-sv-brand-logo {
  right: 48px !important;
  width: 210px !important;
  transform: translateY(18px) !important;
}

.scc-sv-meta-row {
  max-width: calc(100% - 500px) !important;
}

.scc-sv-approved-box {
  padding-right: 28px;
}

.scc-sv-processing,
.scc-sv-processing-card,
.scc-sv-processing-card.is-outcome,
.scc-sv-processing-outcome {
  overflow: visible !important;
}

.scc-sv-processing-stamp {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(520px, 72vw);
  max-width: 72vw;
  max-height: 72vh;
  height: auto !important;
  z-index: 9;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.24) rotate(-12deg);
  transform-origin: center center;
  pointer-events: none;
}

.scc-sv-processing-stamp.is-show {
  animation: sccSvStampPersistFixed 2.5s cubic-bezier(.18,.92,.16,1.18) forwards;
}

@keyframes sccSvStampPersistFixed {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.22) rotate(-13deg) translateY(-28px); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.34) rotate(-4deg) translateY(0); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(0.88) rotate(1deg) translateY(8px); }
  56% { opacity: 1; transform: translate(-50%, -50%) scale(1.11) rotate(-1deg) translateY(-2px); }
  74% { opacity: 1; transform: translate(-50%, -50%) scale(0.98) rotate(0deg) translateY(1px); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg) translateY(0); }
}

/* --- v7.5 mobile-first rescue: overlay, meta row, action sequence --- */
@media (max-width: 782px) {
  .scc-sv-shell {
    height: 100dvh;
    padding: 0 !important;
  }

  .scc-sv-panel {
    height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .scc-sv-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 14px 14px 12px !important;
  }

  .scc-sv-topbar-copy {
    max-width: none !important;
    min-width: 0 !important;
  }

  .scc-sv-topbar-kicker {
    font-size: 14px !important;
    line-height: 1.08 !important;
  }

  .scc-sv-topbar-text {
    margin-top: 6px !important;
    font-size: 12.5px !important;
    line-height: 1.38 !important;
  }

  .scc-sv-topbar-actions {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .scc-sv-brand-logo {
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 112px !important;
    transform: none !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.30)) !important;
    pointer-events: none;
  }

  .scc-sv-close {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    flex: 0 0 42px !important;
  }

  .scc-sv-meta-row {
    grid-template-columns: 1fr !important;
    max-width: none !important;
    gap: 10px !important;
    margin: 10px 14px 0 !important;
  }

  .scc-sv-meta-row .scc-sv-challenge-box,
  .scc-sv-meta-row .scc-sv-approved-box {
    min-height: 0 !important;
  }

  .scc-sv-challenge-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 12px !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  .scc-sv-challenge-copy {
    width: 100% !important;
    min-width: 0 !important;
  }

  .scc-sv-label {
    margin-bottom: 7px !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
  }

  .scc-sv-code {
    font-size: clamp(22px, 7.2vw, 28px) !important;
    letter-spacing: 0.10em !important;
    line-height: 1.02 !important;
    white-space: nowrap !important;
  }

  .scc-sv-challenge-box small {
    margin-top: 7px !important;
    font-size: 11.5px !important;
    line-height: 1.28 !important;
  }

  .scc-sv-refresh {
    min-height: 46px !important;
    font-size: 14px !important;
    align-self: stretch !important;
  }

  .scc-sv-approved-box {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 12px !important;
  }

  .scc-sv-approved-copy {
    gap: 6px !important;
  }

  .scc-sv-approved-box strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .scc-sv-approved-box span {
    font-size: 12px !important;
    line-height: 1.32 !important;
  }

  .scc-sv-modal-controls {
    margin: 10px 14px 0 !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .scc-sv-inline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .scc-sv-inline-actions .scc-sv-action[data-action="reset"] {
    grid-column: 1 / -1;
  }

  .scc-sv-modal.is-official-mode .scc-sv-inline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .scc-sv-refresh,
  .scc-sv-action,
  .scc-sv-submit,
  .scc-sv-upload span {
    min-height: 52px !important;
    padding: 0 12px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    line-height: 1.14 !important;
    text-align: center !important;
    white-space: normal !important;
    text-wrap: balance;
  }

  .scc-sv-upload span,
  .scc-sv-submit {
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .scc-sv-submit {
    min-height: 54px !important;
  }

  .scc-sv-upload span.is-current,
  .scc-sv-action.is-current,
  .scc-sv-submit.is-current {
    animation: sccSvCurrentPulseMobile 1.25s ease-in-out infinite !important;
    transform-origin: center center;
  }

  .scc-sv-content-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px 14px 16px !important;
    overflow: visible !important;
  }

  .scc-sv-stage-wrap,
  .scc-sv-previews > div,
  .scc-sv-footer {
    border-radius: 18px !important;
  }

  .scc-sv-stage-wrap {
    order: 1;
    padding: 12px !important;
  }

  .scc-sv-stage-hint {
    align-self: stretch !important;
    max-width: none !important;
    margin: 0 0 10px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
    text-align: left !important;
    animation: none !important;
    box-shadow: 0 0 0 1px rgba(70, 210, 139, 0.08), 0 0 18px rgba(70, 210, 139, 0.08) !important;
  }

  .scc-sv-stage {
    min-height: clamp(320px, 52dvh, 500px) !important;
  }

  .scc-sv-crop-box .handle {
    width: 18px;
    height: 18px;
  }

  .scc-sv-quad-point {
    width: 18px;
    height: 18px;
  }

  .scc-sv-quad-edge {
    width: 14px;
    height: 14px;
  }

  .scc-sv-side-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .scc-sv-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .scc-sv-previews > div,
  .scc-sv-footer {
    padding: 12px !important;
  }

  .scc-sv-previews strong {
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }

  .scc-sv-mini-preview {
    min-height: 96px !important;
  }

  .scc-sv-mini-preview img {
    max-height: 180px !important;
  }

  .scc-sv-mini-badge {
    top: 10px !important;
    right: 10px !important;
    width: 40% !important;
    min-width: 56px !important;
    max-width: 84px !important;
  }

  .scc-sv-footer {
    min-height: 0 !important;
  }

  .scc-sv-status {
    font-size: 12.5px !important;
    line-height: 1.42 !important;
  }

  .scc-sv-log-actions {
    justify-content: flex-start !important;
  }

  .scc-sv-processing {
    padding: 14px !important;
  }

  .scc-sv-processing-card {
    width: min(100%, 360px) !important;
    padding: 18px 14px 14px !important;
  }

  .scc-sv-processing-title {
    font-size: 18px !important;
  }

  .scc-sv-processing-text {
    font-size: 12.5px !important;
  }

  .scc-sv-processing-stamp {
    width: min(74vw, 300px) !important;
    max-width: 80vw !important;
  }

  .scc-sv-processing-fail {
    gap: 10px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 560px) {
  .scc-sv-topbar {
    gap: 10px !important;
  }

  .scc-sv-brand-logo {
    width: 96px !important;
  }

  .scc-sv-close {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }

  .scc-sv-inline-actions {
    grid-template-columns: 1fr !important;
  }

  .scc-sv-inline-actions .scc-sv-action[data-action="reset"] {
    grid-column: auto;
  }

  .scc-sv-stage {
    min-height: clamp(300px, 48dvh, 440px) !important;
  }

  .scc-sv-previews {
    grid-template-columns: 1fr !important;
  }
}

@keyframes sccSvCurrentPulseMobile {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(255, 206, 84, 0.14),
      0 0 18px rgba(255, 206, 84, 0.10);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(255, 206, 84, 0.18),
      0 0 26px rgba(255, 206, 84, 0.16);
  }
}


/* --- v7.5.1 desktop safety: keep footer/log reachable on shorter screens --- */
@media (min-width: 783px) and (max-height: 920px) {
  .scc-sv-content-grid {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-items: start !important;
    scrollbar-gutter: stable;
  }

  .scc-sv-stage {
    min-height: min(46vh, 520px) !important;
  }

  .scc-sv-side-stack {
    min-height: 0 !important;
    padding-bottom: 4px;
  }

  .scc-sv-previews {
    gap: 10px !important;
  }

  .scc-sv-previews > div,
  .scc-sv-footer {
    padding: 12px !important;
  }

  .scc-sv-mini-preview img {
    max-height: min(24vh, 190px) !important;
  }

  .scc-sv-footer {
    min-height: 0 !important;
  }

  .scc-sv-log-panel {
    max-width: 100%;
  }

  .scc-sv-log-pre {
    max-height: min(22vh, 200px) !important;
  }
}

/* --- v7.5.2 mobile-only compact layout: meta rows, control rows, crop overview --- */
@media (max-width: 782px) {
  .scc-sv-meta-row {
    gap: 8px !important;
  }

  .scc-sv-challenge-box {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 12px !important;
  }

  .scc-sv-challenge-copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .scc-sv-refresh {
    width: auto !important;
    min-width: 128px !important;
    align-self: center !important;
    padding-inline: 16px !important;
    white-space: nowrap !important;
  }

  .scc-sv-approved-box {
    align-items: center !important;
    padding: 12px 12px !important;
  }

  .scc-sv-approved-copy {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 12px !important;
  }

  .scc-sv-approved-box strong {
    font-size: 13px !important;
    line-height: 1.18 !important;
    min-width: 0 !important;
  }

  .scc-sv-approved-box span {
    font-size: 11px !important;
    line-height: 1.18 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .scc-sv-modal-controls {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .scc-sv-upload {
    grid-column: 1 / span 2 !important;
    min-width: 0 !important;
  }

  .scc-sv-inline-actions {
    display: contents !important;
  }

  .scc-sv-action[data-action="confirm-card"] {
    grid-column: 3 / span 2 !important;
    min-width: 0 !important;
  }

  .scc-sv-action[data-action="confirm-note"] {
    grid-column: 5 / span 2 !important;
    min-width: 0 !important;
  }

  .scc-sv-action[data-action="reset"] {
    grid-column: 1 / span 2 !important;
    min-width: 0 !important;
  }

  .scc-sv-submit {
    grid-column: 3 / span 4 !important;
    min-width: 0 !important;
  }

  .scc-sv-refresh,
  .scc-sv-action,
  .scc-sv-submit,
  .scc-sv-upload span {
    min-height: 50px !important;
    padding: 8px 10px !important;
    border-radius: 15px !important;
    font-size: 12.5px !important;
    line-height: 1.16 !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  .scc-sv-upload span,
  .scc-sv-submit {
    font-size: 13px !important;
  }

  .scc-sv-content-grid {
    gap: 10px !important;
    padding-top: 10px !important;
  }

  .scc-sv-stage-wrap {
    padding: 10px !important;
  }

  .scc-sv-stage-hint {
    margin-bottom: 8px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.32 !important;
  }

  .scc-sv-stage {
    min-height: clamp(280px, 42dvh, 360px) !important;
  }

  .scc-sv-side-stack {
    position: static !important;
    overflow: visible !important;
  }

  .scc-sv-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .scc-sv-previews > div {
    position: relative !important;
    overflow: hidden !important;
  }

  .scc-sv-previews strong {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .scc-sv-mini-preview {
    min-height: 82px !important;
    max-height: 112px !important;
  }

  .scc-sv-mini-preview img {
    max-height: 104px !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  .scc-sv-mini-badge {
    top: 8px !important;
    right: 8px !important;
    width: 34% !important;
    min-width: 50px !important;
    max-width: 70px !important;
  }
}

@media (max-width: 560px) {
  .scc-sv-challenge-box {
    gap: 10px !important;
  }

  .scc-sv-refresh {
    min-width: 118px !important;
    font-size: 12px !important;
  }

  .scc-sv-approved-box strong {
    font-size: 12.5px !important;
  }

  .scc-sv-approved-box span {
    font-size: 10.5px !important;
  }

  .scc-sv-stage {
    min-height: clamp(260px, 38dvh, 330px) !important;
  }
}


/* --- v7.5.3 mobile refinement: clearer disabled buttons, crop stage before previews --- */
@media (max-width: 782px) {
  .scc-sv-topbar-text {
    font-size: 11.6px !important;
    line-height: 1.32 !important;
  }

  .scc-sv-action:disabled:not(.is-current),
  .scc-sv-submit:disabled:not(.is-current) {
    opacity: 0.9 !important;
    color: rgba(226, 236, 250, 0.72) !important;
    border-color: rgba(121, 164, 255, 0.28) !important;
    background: linear-gradient(180deg, rgba(10, 21, 44, 0.98), rgba(5, 11, 25, 0.99)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 1px rgba(86, 132, 235, 0.10) !important;
  }

  .scc-sv-stage-wrap {
    order: 1 !important;
    margin-top: 0 !important;
  }

  .scc-sv-side-stack {
    order: 2 !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }

  .scc-sv-stage-hint {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 8px !important;
  }

  .scc-sv-stage {
    min-height: clamp(250px, 36dvh, 320px) !important;
  }

  .scc-sv-previews {
    order: 2 !important;
    margin-top: 0 !important;
    gap: 8px !important;
  }

  .scc-sv-previews > div {
    padding: 10px !important;
  }

  .scc-sv-mini-preview {
    min-height: 74px !important;
    max-height: 96px !important;
  }

  .scc-sv-mini-preview img {
    max-height: 88px !important;
  }

  .scc-sv-footer {
    order: 3 !important;
    padding: 10px !important;
  }
}

@media (max-width: 560px) {
  .scc-sv-topbar-text {
    font-size: 11.2px !important;
    line-height: 1.28 !important;
  }

  .scc-sv-stage {
    min-height: clamp(236px, 34dvh, 296px) !important;
  }

  .scc-sv-mini-preview {
    min-height: 68px !important;
    max-height: 90px !important;
  }

  .scc-sv-mini-preview img {
    max-height: 82px !important;
  }
}


/* --- v7.5.4 safety fixes: force-hide crop box when inactive, clearer admin log --- */
.scc-sv-crop-box[hidden],
.scc-sv-quad-layer[hidden] {
  display: none !important;
}

.scc-sv-logbox:not([hidden]) {
  display: block;
}

.scc-sv-log-toggle {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(97, 151, 255, 0.20);
  background: linear-gradient(180deg, rgba(10, 22, 45, 0.96), rgba(4, 10, 24, 0.98));
  color: #eef6ff;
  text-decoration: none;
}

@media (max-width: 782px) {
  .scc-sv-logbox {
    margin-top: 10px !important;
  }

  .scc-sv-log-toggle {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  .scc-sv-log-panel {
    margin-top: 10px !important;
  }
}


/* --- v7.5.5 mobile safety: stage always above previews, larger crop area, opaque preview cards --- */
@media (max-width: 782px) {
  .scc-sv-content-grid {
    gap: 14px !important;
  }

  .scc-sv-stage-wrap {
    position: relative !important;
    z-index: 4 !important;
    margin-bottom: 2px !important;
  }

  .scc-sv-stage {
    min-height: clamp(430px, 64dvh, 620px) !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .scc-sv-stage-image,
  .scc-sv-quad-layer,
  .scc-sv-crop-box {
    z-index: 2 !important;
  }

  .scc-sv-side-stack,
  .scc-sv-previews,
  .scc-sv-previews > div,
  .scc-sv-footer {
    position: relative !important;
    z-index: 1 !important;
  }

  .scc-sv-side-stack {
    margin-top: 0 !important;
    gap: 12px !important;
  }

  .scc-sv-previews {
    margin-top: 0 !important;
  }

  .scc-sv-previews > div,
  .scc-sv-footer {
    background: linear-gradient(180deg, rgba(7, 15, 31, 0.96), rgba(5, 11, 23, 0.985)) !important;
    backdrop-filter: none !important;
  }

  .scc-sv-previews strong {
    position: relative !important;
    z-index: 2 !important;
  }

  .scc-sv-mini-preview {
    background: rgba(255, 255, 255, 0.035) !important;
  }
}

@media (max-width: 560px) {
  .scc-sv-stage {
    min-height: clamp(400px, 60dvh, 560px) !important;
  }
}


/* --- v7.5.6 mobile hard-stop: no overlay between crop stage and previews --- */
@media (max-width: 782px) {
  .scc-sv-content-grid {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 10px 14px 16px !important;
  }

  .scc-sv-stage-wrap,
  .scc-sv-side-stack,
  .scc-sv-previews,
  .scc-sv-previews > div,
  .scc-sv-footer {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    transform: none !important;
  }

  .scc-sv-stage-wrap {
    display: block !important;
    margin: 0 0 14px !important;
    padding: 10px !important;
  }

  .scc-sv-stage {
    min-height: clamp(520px, 70dvh, 760px) !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }

  .scc-sv-stage-image,
  .scc-sv-quad-layer,
  .scc-sv-crop-box {
    z-index: 2 !important;
  }

  .scc-sv-side-stack {
    display: block !important;
    margin: 0 !important;
    clear: both !important;
  }

  .scc-sv-previews {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .scc-sv-previews > div {
    overflow: hidden !important;
    background: linear-gradient(180deg, rgba(7, 15, 31, 0.985), rgba(5, 11, 23, 0.995)) !important;
  }

  .scc-sv-footer {
    margin-top: 12px !important;
    background: linear-gradient(180deg, rgba(7, 15, 31, 0.985), rgba(5, 11, 23, 0.995)) !important;
  }

  .scc-sv-panel[data-step="card"] .scc-sv-crop-box,
  .scc-sv-panel[data-step="card"] .scc-sv-crop-box[style],
  .scc-sv-panel[data-step="verify"] .scc-sv-crop-box {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 560px) {
  .scc-sv-stage {
    min-height: clamp(500px, 68dvh, 700px) !important;
  }

  .scc-sv-previews {
    grid-template-columns: 1fr !important;
  }
}


/* --- v7.5.7 mobile final: whole modal scrolls, previews stay below stage, no ghost code box --- */
@media (max-width: 782px) {
  .scc-sv-shell {
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .scc-sv-panel {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  .scc-sv-content-grid {
    display: block !important;
    overflow: visible !important;
    min-height: 0 !important;
  }

  .scc-sv-stage-wrap {
    display: block !important;
    margin: 0 0 14px !important;
    position: static !important;
    z-index: auto !important;
  }

  .scc-sv-stage {
    min-height: clamp(520px, 72vh, 760px) !important;
    overflow: hidden !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .scc-sv-stage-image {
    pointer-events: none !important;
  }

  .scc-sv-side-stack,
  .scc-sv-previews,
  .scc-sv-previews > div,
  .scc-sv-footer {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
  }

  .scc-sv-side-stack {
    display: block !important;
    clear: both !important;
    margin: 0 !important;
  }

  .scc-sv-previews {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .scc-sv-previews > div,
  .scc-sv-footer {
    background: linear-gradient(180deg, rgba(7, 15, 31, 0.985), rgba(5, 11, 23, 0.995)) !important;
  }

  .scc-sv-footer {
    margin-top: 12px !important;
  }

  .scc-sv-crop-box,
  .scc-sv-quad-layer {
    z-index: 3 !important;
  }

  .scc-sv-panel[data-step="card"] .scc-sv-crop-box,
  .scc-sv-panel[data-step="verify"] .scc-sv-crop-box,
  .scc-sv-crop-box[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}

@media (max-width: 560px) {
  .scc-sv-stage {
    min-height: clamp(500px, 70vh, 720px) !important;
  }

  .scc-sv-previews {
    grid-template-columns: 1fr !important;
  }
}


/* --- v42 boostv2 surgical fixes: crosses, mobile no green geometry, stamp on stage --- */
.scc-sv-quad-point {
  width: 22px;
  height: 22px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.scc-sv-quad-point::before,
.scc-sv-quad-point::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #71efba;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(9, 15, 28, 0.82), 0 0 12px rgba(113, 239, 186, 0.28);
  transform: translate(-50%, -50%);
}

.scc-sv-quad-point::before {
  width: 18px;
  height: 3px;
}

.scc-sv-quad-point::after {
  width: 3px;
  height: 18px;
}

.scc-sv-processing-outcome {
  overflow: hidden;
}

.scc-sv-processing-stamp {
  position: absolute;
}

@media (max-width: 782px) {
  .scc-sv-quad-fill,
  .scc-sv-quad-edge {
    display: none !important;
  }

  .scc-sv-quad-layer {
    z-index: 4 !important;
  }

  .scc-sv-quad-svg {
    pointer-events: none !important;
  }
}

/* --- v42 final polish: challenge copy, stage stamp, centered progress/outcome --- */
.scc-sv-challenge-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.scc-sv-challenge-copy {
  min-width: 0;
  align-items: flex-start;
}

.scc-sv-challenge-copy .scc-sv-label {
  display: block;
}

.scc-sv-code-line {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.scc-sv-code-dot {
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: 1;
}

.scc-sv-challenge-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}

.scc-sv-challenge-side small {
  margin: 0;
  text-align: right;
}

.scc-sv-stage {
  position: relative;
}

.scc-sv-stage-stamp {
  position: absolute;
  z-index: 6;
  width: 112px;
  max-width: 28%;
  opacity: 0;
  transform: scale(0.82) rotate(7deg);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.scc-sv-stage-stamp.is-show {
  opacity: 1;
}

.scc-sv-processing {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.scc-sv-processing-card {
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  text-align: center;
}

.scc-sv-processing-card.is-outcome {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.scc-sv-processing-outcome {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
}

.scc-sv-processing-stamp {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  width: min(520px, 72vw) !important;
  max-width: 72vw !important;
  max-height: 72vh !important;
  height: auto !important;
  transform: translate(-50%, -50%) scale(0.24) rotate(-12deg) !important;
  transform-origin: center center !important;
}

.scc-sv-processing-stamp.is-show {
  animation: sccSvStampPersistFixed 2.2s cubic-bezier(.18,.92,.16,1.18) forwards !important;
}

@media (max-width: 782px) {
  .scc-sv-stage-stamp {
    max-width: 33%;
  }

  .scc-sv-card-preview-wrap.is-validated .scc-sv-mini-badge {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}


.scc-sv-processing-logo.is-hidden-hard,
.scc-sv-processing-title.is-hidden-hard,
.scc-sv-processing-bar.is-hidden-hard,
.scc-sv-processing-text.is-hidden-hard {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.scc-sv-quad-point,
.scc-sv-quad-edge {
  border-radius: 0 !important;
}

.scc-sv-quad-point {
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.scc-sv-quad-point::before,
.scc-sv-quad-point::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #71efba;
  box-shadow: 0 0 0 2px rgba(7, 13, 25, 0.72), 0 0 12px rgba(113, 239, 186, 0.18);
  border-radius: 999px;
}

.scc-sv-quad-point::before {
  width: 3px;
  height: 28px;
  transform: translate(-50%, -50%);
}

.scc-sv-quad-point::after {
  width: 28px;
  height: 3px;
  transform: translate(-50%, -50%);
}

.scc-sv-quad-edge {
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
}


/* --- v43 surgical fix: outcome badge stamp animation only, no crop changes --- */
@keyframes sccSvStampEntryFinalV43 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.20) rotate(-12deg) translateY(-34px); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.44) rotate(-4deg) translateY(0); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(0.88) rotate(1deg) translateY(10px); }
  58% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(-1deg) translateY(-2px); }
  76% { opacity: 1; transform: translate(-50%, -50%) scale(0.98) rotate(0deg) translateY(1px); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg) translateY(0); }
}

@keyframes sccSvStampBounceLoopV43 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%, -50%) scale(1.06) rotate(-1deg); }
}

.scc-sv-processing-stamp {
  width: min(640px, 82vw) !important;
  max-width: 82vw !important;
  max-height: 78vh !important;
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.20) rotate(-12deg) !important;
  transform-origin: center center !important;
  will-change: transform, opacity !important;
}

.scc-sv-processing-stamp.is-show {
  opacity: 1 !important;
  animation:
    sccSvStampEntryFinalV43 820ms cubic-bezier(.16,.94,.14,1.14) both,
    sccSvStampBounceLoopV43 1.28s ease-in-out 860ms infinite !important;
}

@media (max-width: 782px) {
  .scc-sv-processing-stamp {
    width: min(440px, 88vw) !important;
    max-width: 88vw !important;
    max-height: 68vh !important;
  }
}


/* --- v44 surgical fix: success stamp on dedicated top-most layer, no crop changes --- */
.scc-sv-success-stamp-layer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  overflow: visible !important;
}

.scc-sv-success-stamp {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  width: min(640px, 82vw) !important;
  max-width: 82vw !important;
  max-height: 78vh !important;
  height: auto !important;
  opacity: 0 !important;
  transform: translate3d(-50%, -50%, 0) scale(0.18) rotate(-12deg) !important;
  transform-origin: center center !important;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42)) !important;
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes sccSvSuccessStampEntryV44 {
  0% { opacity: 0; transform: translate3d(-50%, calc(-50% - 28px), 0) scale(0.18) rotate(-12deg); }
  22% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.42) rotate(-4deg); }
  42% { opacity: 1; transform: translate3d(-50%, calc(-50% + 8px), 0) scale(0.88) rotate(1deg); }
  60% { opacity: 1; transform: translate3d(-50%, calc(-50% - 2px), 0) scale(1.10) rotate(-1deg); }
  78% { opacity: 1; transform: translate3d(-50%, calc(-50% + 1px), 0) scale(0.98) rotate(0deg); }
  100% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
}

@keyframes sccSvSuccessStampBounceV44 {
  0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-50%, -50%, 0) scale(1.055) rotate(-1deg); }
}

.scc-sv-success-stamp.is-show {
  opacity: 1 !important;
  animation:
    sccSvSuccessStampEntryV44 820ms cubic-bezier(.16,.94,.14,1.14) both,
    sccSvSuccessStampBounceV44 1.28s ease-in-out 860ms infinite !important;
}

@media (max-width: 782px) {
  .scc-sv-success-stamp {
    width: min(440px, 88vw) !important;
    max-width: 88vw !important;
    max-height: 68vh !important;
  }
}

/* --- v45 surgical fix: success stamp rendered in body portal with JS animation --- */
.scc-sv-success-stamp-portal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483645 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  overflow: visible !important;
}

.scc-sv-success-stamp-portal[hidden] {
  display: none !important;
}

.scc-sv-success-stamp-portal__img {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  width: min(680px, 84vw) !important;
  max-width: 84vw !important;
  max-height: 80vh !important;
  height: auto !important;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% - 30px), 0) scale(0.18) rotate(-12deg);
  transform-origin: center center;
  will-change: transform, opacity;
  pointer-events: none !important;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.46)) !important;
  backface-visibility: hidden !important;
}

@keyframes sccSvSuccessStampBouncePortalV45 {
  0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-50%, -50%, 0) scale(1.06) rotate(-1deg); }
}

.scc-sv-success-stamp-portal__img.is-fallback-loop {
  opacity: 1 !important;
  animation: sccSvSuccessStampBouncePortalV45 1.28s ease-in-out infinite !important;
}

@media (max-width: 782px) {
  .scc-sv-success-stamp-portal__img {
    width: min(470px, 90vw) !important;
    max-width: 90vw !important;
    max-height: 72vh !important;
  }
}

/* --- v46 final stamp portal: single pipeline, above all, no legacy outcome stamp --- */
.scc-sv-success-stamp-layer,
.scc-sv-success-stamp {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.scc-sv-success-stamp-portal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  overflow: visible !important;
}

.scc-sv-success-stamp-portal[hidden] {
  display: none !important;
}

.scc-sv-success-stamp-portal__img {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  width: min(700px, 86vw) !important;
  max-width: 86vw !important;
  max-height: 82vh !important;
  height: auto !important;
  opacity: 0 !important;
  transform: translate3d(-50%, calc(-50% - 30px), 0) scale(0.18) rotate(-12deg) !important;
  transform-origin: center center !important;
  will-change: transform, opacity !important;
  pointer-events: none !important;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.48)) !important;
  backface-visibility: hidden !important;
}

@keyframes sccSvSuccessStampPortalEntryV46 {
  0% { opacity: 0; transform: translate3d(-50%, calc(-50% - 34px), 0) scale(0.14) rotate(-14deg); }
  22% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.54) rotate(-4deg); }
  44% { opacity: 1; transform: translate3d(-50%, calc(-50% + 10px), 0) scale(0.86) rotate(1deg); }
  66% { opacity: 1; transform: translate3d(-50%, calc(-50% - 2px), 0) scale(1.10) rotate(-1deg); }
  100% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
}

@keyframes sccSvSuccessStampPortalLoopV46 {
  0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-50%, -50%, 0) scale(1.065) rotate(-1deg); }
}

.scc-sv-success-stamp-portal__img.is-enter {
  opacity: 1 !important;
  animation: sccSvSuccessStampPortalEntryV46 900ms cubic-bezier(.12,.96,.12,1.16) both !important;
}

.scc-sv-success-stamp-portal__img.is-loop {
  opacity: 1 !important;
  transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg) !important;
  animation: sccSvSuccessStampPortalLoopV46 1280ms ease-in-out infinite !important;
}

@media (max-width: 782px) {
  .scc-sv-success-stamp-portal__img {
    width: min(500px, 92vw) !important;
    max-width: 92vw !important;
    max-height: 74vh !important;
  }
}

/* --- v47 definitive fix: single success stamp pipeline on processing-stamp only --- */
.scc-sv-success-stamp-layer,
.scc-sv-success-stamp,
.scc-sv-success-stamp-portal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.scc-sv-processing-card.is-outcome {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.scc-sv-processing-outcome {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2147483646 !important;
  pointer-events: none !important;
}

.scc-sv-processing-stamp,
.scc-sv-processing-stamp[hidden] {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  width: min(660px, 86vw) !important;
  max-width: 86vw !important;
  max-height: 80vh !important;
  height: auto !important;
  transform-origin: center center !important;
  will-change: transform, opacity !important;
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.52)) !important;
  backface-visibility: hidden !important;
  pointer-events: none !important;
}

.scc-sv-processing-stamp {
  opacity: 0 !important;
  transform: translate3d(-50%, calc(-50% - 28px), 0) scale(0.14) rotate(-14deg) !important;
}

.scc-sv-processing-stamp[hidden] {
  display: none !important;
}

@keyframes sccSvValidatedStampEntryV47 {
  0% { opacity: 0; transform: translate3d(-50%, calc(-50% - 32px), 0) scale(0.14) rotate(-14deg); }
  20% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.58) rotate(-5deg); }
  42% { opacity: 1; transform: translate3d(-50%, calc(-50% + 12px), 0) scale(0.84) rotate(2deg); }
  64% { opacity: 1; transform: translate3d(-50%, calc(-50% - 3px), 0) scale(1.09) rotate(-1deg); }
  100% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
}

@keyframes sccSvValidatedStampLoopV47 {
  0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-50%, -50%, 0) scale(1.07) rotate(-1deg); }
}

.scc-sv-processing-stamp.is-show,
.scc-sv-processing-stamp.is-enter {
  opacity: 1 !important;
  animation: sccSvValidatedStampEntryV47 900ms cubic-bezier(.12,.96,.12,1.16) both !important;
}

.scc-sv-processing-stamp.is-loop {
  opacity: 1 !important;
  transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg) !important;
  animation: sccSvValidatedStampLoopV47 1280ms ease-in-out infinite !important;
}

@media (max-width: 782px) {
  .scc-sv-processing-stamp,
  .scc-sv-processing-stamp[hidden] {
    width: min(520px, 92vw) !important;
    max-width: 92vw !important;
    max-height: 74vh !important;
  }
}

.scc-sv-widget .scc-sv-lang-debug-pop {
  position: relative;
  z-index: 14;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
}

.scc-sv-widget .scc-sv-lang-debug-fab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(22, 26, 40, 0.96), rgba(10, 12, 20, 0.98));
  color: #fff;
  border-radius: 999px;
  min-width: 46px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
}

.scc-sv-widget .scc-sv-lang-debug-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
}

.scc-sv-widget .scc-sv-lang-debug-fab-code {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
}

.scc-sv-widget .scc-sv-lang-debug-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 178px;
  max-width: min(82vw, 220px);
  padding: 10px !important;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(14, 18, 29, 0.98), rgba(7, 9, 15, 0.99));
  box-shadow: 0 18px 42px rgba(0,0,0,0.38);
  backdrop-filter: blur(8px);
}

.scc-sv-widget .scc-sv-lang-debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.scc-sv-widget .scc-sv-lang-debug-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  line-height: 1.15 !important;
  text-transform: uppercase;
  opacity: .82;
}

.scc-sv-widget .scc-sv-lang-debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scc-sv-widget .scc-sv-lang-debug-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px !important;
  min-width: 52px !important;
  min-height: 30px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.scc-sv-widget .scc-sv-lang-debug-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
}

.scc-sv-widget .scc-sv-lang-debug-btn.is-active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}

@media (max-width: 782px) {
  .scc-sv-widget .scc-sv-lang-debug-pop {
    margin-top: 8px;
  }

  .scc-sv-widget .scc-sv-lang-debug-panel {
    min-width: 168px;
    max-width: min(86vw, 200px);
  }
}
