  .app,
  .app *,
  .app *::before,
  .app *::after {
    box-sizing: border-box;
  }

  .app {
    --bg: var(--bg);
    --surface: var(--bg-card-2);
    --border: var(--line);
    --text: var(--text);
    --muted: var(--text-soft);
    --accent: var(--purple-2);
    --accent-dim: var(--purple);
    --danger: #ff9ab5;
    --ok: var(--success);
    --warn: #fbbf24;
    --radius: var(--radius-md);
    font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
    max-width: 560px;
    margin: 0 auto;
    padding: 1.25rem clamp(1rem, 4vw, 1.75rem) 3rem;
  }
  
  .header .face-scan-context {
    margin: 0.35rem 0 0;
    max-width: 34rem;
  }

  .step-label {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
  }
  
  .muted.block {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .panel {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    background:
      linear-gradient(145deg, var(--bg-card-2), rgba(129, 74, 200, 0.1)),
      radial-gradient(
        ellipse 120% 80% at 100% 0%,
        rgba(223, 122, 254, 0.12),
        transparent 58%
      );
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  }
  
  .instructions ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
  }

  /* Override global typography for the "Before you start" heading. */
  .panel.instructions h2,
  .instructions h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
  }

  /* Scoped typography for the "Before you start" panel body text. */
  .panel.instructions ul {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .panel.instructions li + li {
    margin-top: 0.2rem;
  }

  .consent-box {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
  }

  .consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
  }

  .consent-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    margin: 0;
    margin-top: 0.1rem;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .consent-check input[type="checkbox"]:checked {
    border-color: var(--purple, #814ac8);
    background-color: var(--purple, #814ac8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  .consent-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--purple-2, #df7afe);
    outline-offset: 2px;
  }

  .consent-note {
    margin-top: 0.45rem;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
      transform 160ms ease,
      border-color 160ms ease,
      box-shadow 160ms ease,
      background-color 160ms ease;
  }
  
  .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(223, 122, 254, 0.35);
    background: rgba(255, 255, 255, 0.08);
  }
  
  .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  
  .btn.primary {
    background: linear-gradient(
      135deg,
      rgba(129, 74, 200, 0.95),
      rgba(223, 122, 254, 0.95)
    );
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 10px 28px rgba(129, 74, 200, 0.35);
  }
  
  .btn.primary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.22);
    filter: none;
  }
  
  .hint {
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
  }
  
  .instructions #models-status.hint {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--muted);
  }
  
  .instructions #models-status.ready {
    color: var(--ok);
  }
  
  .instructions #models-status.failed {
    color: #f5a8a8;
  }
  
  .hidden {
    display: none !important;
  }
  
  .video-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    aspect-ratio: 4 / 5;
    max-height: min(70dvh, 520px);
    margin: 0 auto;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  }
  
  .scan-intro {
    margin-bottom: 1rem;
    display: grid;
    gap: 0.65rem;
  }

  .scan-intro-instructions.hidden {
    display: none !important;
  }

  .scan-intro--with-valence {
    gap: 0;
  }

  .scan-intro .valence-card--in-scan-intro {
    margin: 0;
    padding: 0.15rem 0 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  #scan-intro.hidden {
    display: none !important;
  }
  
  .scan-intro-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
  }
  
  .scan-intro-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.88rem;
  }
  
  .scan-intro-list li + li {
    margin-top: 0.25rem;
  }
  
  .card-inset {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  .scan-overlay {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    background:
      radial-gradient(
        ellipse 120% 85% at 100% 0%,
        rgba(223, 122, 254, 0.14),
        transparent 58%
      ),
      rgba(8, 10, 14, 0.82);
    text-align: center;
    pointer-events: auto;
    backdrop-filter: blur(4px);
  }
  
  .scan-overlay.overlay-error {
    background: rgba(24, 12, 12, 0.88);
  }
  
  .scan-overlay.hidden {
    display: none !important;
  }
  
  .scan-overlay-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .scan-overlay-body {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(232, 236, 241, 0.88);
    max-width: 22rem;
    line-height: 1.45;
  }

  .scan-overlay-progress {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 0.75rem;
  }

  .scan-overlay-progress span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(223, 122, 254, 0.9);
    animation: scan-overlay-dot 1.15s ease-in-out infinite;
  }

  .scan-overlay-progress span:nth-child(2) {
    animation-delay: 0.15s;
  }

  .scan-overlay-progress span:nth-child(3) {
    animation-delay: 0.3s;
  }

  .scan-overlay-tip {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: rgba(219, 223, 238, 0.78);
    max-width: 26rem;
  }

  .scan-overlay-stages {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .scan-stage {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(11, 15, 28, 0.62);
    color: rgba(226, 232, 248, 0.78);
    padding: 0.22rem 0.58rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    transition: all 180ms ease;
  }

  .scan-stage.is-active {
    border-color: rgba(223, 122, 254, 0.55);
    color: #f0e6ff;
    box-shadow: 0 0 0 2px rgba(223, 122, 254, 0.16);
  }

  .scan-stage.is-done {
    border-color: rgba(116, 247, 181, 0.42);
    color: rgba(159, 252, 206, 0.9);
  }
  
  .scan-overlay-spinner {
    margin-top: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    animation: spin 0.85s linear infinite;
  }

  @keyframes scan-overlay-dot {
    0%,
    100% {
      opacity: 0.35;
      transform: translateY(0);
    }
    50% {
      opacity: 1;
      transform: translateY(-2px);
    }
  }
  
  .scan-overlay-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
  }
  
  .chrome-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 4;
  }

  .scan-hud { display: none !important; }
  
  .placement-status {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(10, 10, 16, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    box-sizing: border-box;
    max-width: calc(100% - 28px);
    width: fit-content;
    min-width: 0;
    z-index: 18;
    opacity: 1;
    pointer-events: none;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.28;
    box-shadow:
      0 10px 22px rgba(4, 6, 14, 0.45),
      0 0 12px rgba(115, 170, 255, 0.14);
    transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
  }

  /* Wide pill + slightly smaller type so status stays ~2 lines inside the frame. */
  @media (max-width: 540px) {
    .fps-skip-banner {
      bottom: calc(10px + 4.1rem);
      width: calc(100% - 24px);
      max-width: calc(100% - 24px);
    }

    .placement-status {
      width: calc(100% - 24px);
      max-width: calc(100% - 24px);
      font-size: 0.8rem;
      font-weight: 500;
      padding: 0.42rem 0.75rem;
      line-height: 1.22;
    }
  }
  
  .placement-status.state-wait {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
  }
  
  .placement-status.state-good {
    color: var(--ok);
    border-color: rgba(90, 205, 140, 0.55);
  }
  
  .placement-status.state-bad {
    color: var(--warn);
    border-color: rgba(255, 184, 76, 0.64);
    background: rgba(26, 14, 4, 0.82);
  }

  .video-wrap.is-recovery::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 14;
    pointer-events: none;
    background:
      radial-gradient(
        ellipse 90% 70% at 50% 38%,
        rgba(76, 227, 255, 0.14),
        transparent 70%
      ),
      linear-gradient(
        180deg,
        rgba(8, 10, 18, 0.2) 0%,
        rgba(8, 10, 18, 0.46) 55%,
        rgba(8, 10, 18, 0.6) 100%
      );
  }

  .video-wrap.is-recovery .placement-status {
    display: none;
  }

  .scan-recovery {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 22;
    width: min(calc(100% - 2rem), 17.5rem);
    margin: 0;
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
      radial-gradient(
        ellipse 110% 85% at 50% -10%,
        rgba(76, 227, 255, 0.1),
        transparent 58%
      ),
      linear-gradient(
        165deg,
        rgba(24, 28, 40, 0.94) 0%,
        rgba(12, 14, 24, 0.96) 100%
      );
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.07) inset,
      0 0 36px rgba(76, 227, 255, 0.1);
    animation: scan-recovery-in 280ms ease-out both;
  }

  @keyframes scan-recovery-in {
    from {
      opacity: 0;
      transform: translate(-50%, -46%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  .scan-recovery-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.65rem;
    border-radius: 50%;
    color: var(--cyan);
    background: rgba(76, 227, 255, 0.1);
    border: 1px solid rgba(76, 227, 255, 0.32);
    box-shadow: 0 0 20px rgba(76, 227, 255, 0.14);
  }

  .scan-recovery-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
  }

  .scan-recovery-title {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.72);
  }

  .scan-recovery-message {
    margin: 0.1rem 0 0.5rem;
    padding: 0.62rem 0.78rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: #fff;
    border-radius: 10px;
    background:
      linear-gradient(
        135deg,
        rgba(76, 227, 255, 0.16),
        rgba(223, 122, 254, 0.08)
      );
    border: 1px solid rgba(76, 227, 255, 0.34);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.07) inset,
      0 8px 22px rgba(76, 227, 255, 0.12);
  }

  .scan-recovery-message:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .scan-recovery-checklist {
    margin: 0;
    padding: 0.72rem 0.82rem;
    list-style: none;
    text-align: left;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    gap: 0.42rem;
  }

  .scan-recovery-checklist li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.9);
  }

  .scan-recovery-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    box-shadow: 0 0 8px rgba(76, 227, 255, 0.35);
  }
  
  .overlay.fullscreen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    font-size: clamp(3rem, 12vw, 4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
  }
  
  .recording-pill {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 10, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
  }
  
  .recording-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    animation: pulse 1.2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.4;
    }
  }
  
  .scan .actions,
  .scan-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
  }

  .scan-actions--recovery {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1.1rem;
    padding-top: 0.15rem;
  }

  .scan-actions--recovery .btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .scan-actions--recovery .btn-restart {
    order: -1;
    padding: 0.72rem 1.15rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }

  .scan-actions--recovery .btn-cancel-scan {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    box-shadow: none;
  }

  .scan-actions--recovery .btn-cancel-scan:hover:not(:disabled) {
    transform: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
  }
  
  .success {
    margin: 0 0 1rem;
    font-weight: 500;
  }
  
  .result-actions {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .result-actions .btn:not(.hidden) {
    flex: 1 1 auto;
    min-width: 10rem;
  }

  .upload-preview-card {
    margin-top: 0.95rem;
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
      radial-gradient(
        ellipse 120% 90% at 50% 0%,
        rgba(76, 227, 255, 0.08),
        transparent 62%
      ),
      rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 0.85rem;
  }

  .upload-processor {
    display: grid;
    place-items: center;
    min-height: 11.5rem;
    padding: 0.35rem 0 0.15rem;
  }

  .upload-processor__stage {
    position: relative;
    width: 8.75rem;
    height: 8.75rem;
  }

  .upload-processor__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0.95;
  }

  .upload-processor__ring--outer {
    border-top-color: var(--cyan);
    border-right-color: rgba(76, 227, 255, 0.22);
    filter: drop-shadow(0 0 10px rgba(76, 227, 255, 0.35));
    animation: upload-ring-spin 2.6s linear infinite;
  }

  .upload-processor__ring--mid {
    inset: 13%;
    border-bottom-color: var(--accent);
    border-left-color: rgba(223, 122, 254, 0.24);
    filter: drop-shadow(0 0 8px rgba(223, 122, 254, 0.28));
    animation: upload-ring-spin 1.9s linear infinite reverse;
  }

  .upload-processor__ring--inner {
    inset: 26%;
    border-top-color: rgba(255, 255, 255, 0.55);
    border-right-color: rgba(255, 255, 255, 0.08);
    animation: upload-ring-spin 1.35s linear infinite;
  }

  .upload-processor__core {
    position: absolute;
    inset: 34%;
    border-radius: 50%;
    background:
      radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, 0.22),
        rgba(76, 227, 255, 0.14) 42%,
        rgba(129, 74, 200, 0.18) 100%
      );
    box-shadow:
      inset 0 0 18px rgba(76, 227, 255, 0.18),
      0 0 28px rgba(76, 227, 255, 0.16);
    display: grid;
    place-items: center;
  }

  .upload-processor__pulse {
    width: 58%;
    height: 58%;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--cyan), var(--accent));
    box-shadow:
      0 0 22px rgba(76, 227, 255, 0.5),
      0 0 36px rgba(223, 122, 254, 0.28);
    animation: upload-core-pulse 1.55s ease-in-out infinite;
  }

  .upload-processor__orbit {
    position: absolute;
    inset: 0;
    animation: upload-orbit-spin 4.2s linear infinite;
  }

  .upload-processor__orbit span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.42rem;
    height: 0.42rem;
    margin: -0.21rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(76, 227, 255, 0.85);
  }

  .upload-processor__orbit span:nth-child(1) {
    transform: rotate(0deg) translateY(-4.15rem);
  }

  .upload-processor__orbit span:nth-child(2) {
    transform: rotate(120deg) translateY(-4.15rem);
    opacity: 0.82;
    box-shadow: 0 0 10px rgba(223, 122, 254, 0.75);
  }

  .upload-processor__orbit span:nth-child(3) {
    transform: rotate(240deg) translateY(-4.15rem);
    opacity: 0.68;
  }

  .upload-processor.is-success .upload-processor__ring,
  .upload-processor.is-success .upload-processor__orbit {
    animation-play-state: paused;
    opacity: 0.35;
  }

  .upload-processor.is-success .upload-processor__pulse {
    background: linear-gradient(145deg, var(--ok), #3dd68c);
    box-shadow: 0 0 28px rgba(118, 240, 191, 0.55);
    animation: upload-success-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .upload-processor.is-error .upload-processor__ring,
  .upload-processor.is-error .upload-processor__orbit {
    animation-play-state: paused;
    opacity: 0.28;
  }

  .upload-processor.is-error .upload-processor__pulse {
    background: linear-gradient(145deg, #ff9ab5, #e86a8a);
    box-shadow: 0 0 20px rgba(255, 154, 181, 0.4);
    animation: none;
    transform: scale(0.92);
  }

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

  @keyframes upload-core-pulse {
    0%,
    100% {
      transform: scale(0.88);
      opacity: 0.88;
    }
    50% {
      transform: scale(1);
      opacity: 1;
    }
  }

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

  @keyframes upload-success-pop {
    0% {
      transform: scale(0.7);
      opacity: 0.5;
    }
    60% {
      transform: scale(1.08);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .upload-processor__ring,
    .upload-processor__orbit,
    .upload-processor__pulse {
      animation: none !important;
    }

    .upload-processor__pulse {
      transform: scale(1);
      opacity: 1;
    }
  }

  .recorded-preview {
    display: none !important;
  }

  .upload-status-card {
    display: grid;
    gap: 0.45rem;
  }

  .upload-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 1.2rem;
  }

  .upload-status-label {
    font-size: 0.84rem;
    color: var(--muted);
  }

  .upload-progress-track {
    --upload-fill: 0%;
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .upload-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--upload-fill);
    background: linear-gradient(
      90deg,
      rgba(129, 74, 200, 0.95),
      rgba(223, 122, 254, 0.95)
    );
    border-radius: inherit;
    transition: width 240ms ease;
  }

  .upload-progress-dot {
    position: absolute;
    top: 50%;
    left: var(--upload-fill);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2px solid rgba(129, 74, 200, 0.95);
    box-shadow: 0 0 0 3px rgba(223, 122, 254, 0.24);
    transition: left 240ms ease;
  }

  .upload-status-card.is-uploading .upload-progress-track::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 100%
    );
    animation: upload-sweep 1.3s linear infinite;
  }

  .upload-status-card.is-uploading .upload-status-label {
    color: #ded2ff;
  }

  .upload-status-card.is-success .upload-status-label {
    color: var(--ok);
  }

  .upload-status-card.is-error .upload-status-label {
    color: var(--danger);
  }

  @keyframes upload-sweep {
    from {
      transform: translateX(-120%);
    }
    to {
      transform: translateX(120%);
    }
  }
  
  .error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 126, 234, 0.11);
    border: 1px solid rgba(255, 154, 181, 0.42);
    color: #ffc2de;
    font-size: 0.9rem;
  }

  .fps-skip-banner {
    position: absolute;
    left: 50%;
    bottom: calc(10px + 3.6rem);
    transform: translateX(-50%);
    z-index: 19;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    justify-content: center;
    pointer-events: none;
    max-width: calc(100% - 28px);
    width: calc(100% - 28px);
  }

  .btn-fps-skip {
    pointer-events: auto;
    font-size: 0.82rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    background: rgba(26, 14, 4, 0.88);
    border: 1px solid rgba(255, 195, 80, 0.55);
    color: rgba(255, 220, 120, 0.98);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(4, 6, 14, 0.45);
  }

  .btn-fps-skip:hover {
    background: rgba(255, 195, 80, 0.22);
  }
  