/* Doomersion API live demo - phone + terminal, synced word-level playback.
   Shared by /studio (Developer API card) and /api (hero demo). Prefix: sad- */

.sad {
  --sad-cyan: #0891b2;
  --sad-cyan-bright: #22d3ee;
  --sad-blue: #2563eb;
  --sad-orange: #ff7a2f;
  --sad-ink: #0a0a0b;
  --sad-line: rgba(10, 10, 11, 0.12);
  --sad-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sad-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--sad-sans);
  color: var(--sad-ink);
  max-width: 100%;
  min-width: 0;
}

.sad,
.sad * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sad.is-fading .sad-code-body,
.sad.is-fading .sad-captions,
.sad.is-fading .sad-chips {
  opacity: 0.25;
  transition: opacity 0.6s ease;
}

.sad-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.sad-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.04);
  border: 1px solid var(--sad-line);
}

.sad-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(10, 10, 11, 0.55);
  font-family: var(--sad-sans);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sad-tab:hover {
  color: var(--sad-ink);
  background: rgba(255, 255, 255, 0.7);
}

.sad-tab.is-active {
  background: #ffffff;
  color: var(--sad-ink);
  box-shadow: 0 1px 3px rgba(10, 10, 11, 0.08);
}

.sad-focus {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.sad-focus-label {
  font-family: var(--sad-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sad-cyan);
}

.sad-focus-title {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.sad-focus-hint {
  font-size: 12.5px;
  color: rgba(10, 10, 11, 0.45);
}

.sad-stage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.sad-metric {
  margin-left: auto;
  font-family: var(--sad-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 11, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 11, 0.08);
  background: rgba(10, 10, 11, 0.03);
  white-space: nowrap;
}

/* ---- Phone ---- */
.sad-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sad-phone {
  width: 258px;
  max-width: 100%;
  aspect-ratio: 9 / 18.6;
  border-radius: 42px;
  background: linear-gradient(160deg, #1a1b20, #0a0a0b 60%);
  padding: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 18px 40px rgba(10, 10, 11, 0.16),
    0 4px 12px rgba(10, 10, 11, 0.1);
  position: relative;
}

.sad-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0b0d13;
  isolation: isolate;
}

.sad-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 20px;
  border-radius: 999px;
  background: #08090c;
  z-index: 6;
}

/* Real muted short + blob fallback if the file fails to load */
.sad-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b0d13;
}

.sad-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 1;
  z-index: 1;
  background: #0b0d13;
  pointer-events: none;
}

.sad-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.85;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

.sad.has-video .sad-blob {
  opacity: 0;
  animation: none;
  visibility: hidden;
}

.sad-blob--a {
  width: 220px;
  height: 220px;
  left: -60px;
  top: 6%;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.75), transparent 68%);
  animation: sad-blob-a 11s ease-in-out infinite alternate;
}

.sad-blob--b {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 30%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.7), transparent 66%);
  animation: sad-blob-b 13s ease-in-out infinite alternate;
}

.sad-blob--c {
  width: 240px;
  height: 240px;
  left: 10%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.65), transparent 70%);
  animation: sad-blob-c 15s ease-in-out infinite alternate;
}

@keyframes sad-blob-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, 60px) scale(1.18); }
}

@keyframes sad-blob-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-52px, -44px) scale(0.92); }
}

@keyframes sad-blob-c {
  from { transform: translate(0, 0) scale(0.95); }
  to { transform: translate(38px, -50px) scale(1.15); }
}

.sad-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.45), transparent 22%, transparent 48%, rgba(5, 6, 10, 0.78) 88%);
}

.sad-screen.is-playing .sad-video::after {
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.42), transparent 20%, transparent 50%, rgba(5, 6, 10, 0.78) 86%);
}

/* Top row: handle + running ms clock */
.sad-screen-top {
  position: absolute;
  top: 38px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sad-handle {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.sad-clock {
  font-family: var(--sad-mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(8, 9, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sad-clock.is-word-locked {
  color: #fff;
  background: linear-gradient(180deg, #ff6b6b 0%, #ef4444 100%);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
  transform: scale(1.06);
}

/* Live talker nameplate (Speakers scenario) */
.sad-speaker-tag {
  position: absolute;
  top: 52%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 72%;
  padding: 8px 12px 8px 10px;
  border-radius: 14px;
  background: rgba(8, 9, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(5, 6, 10, 0.35);
  animation: sad-speaker-tag-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.sad-speaker-tag[hidden] {
  display: none;
}

.sad-speaker-tag.is-sp0 {
  left: 12px;
  right: auto;
}

.sad-speaker-tag.is-sp1 {
  right: 12px;
  left: auto;
}

.sad-speaker-tag-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: sad-speaker-pulse 1.2s ease-out infinite;
}

.sad-speaker-tag.is-sp1 .sad-speaker-tag-pulse {
  background: #e11d48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55);
}

.sad-speaker-tag-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sad-speaker-tag-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sad-speaker-tag-name {
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  line-height: 1.15;
}

.sad-speaker-tag-role {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes sad-speaker-tag-in {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sad-speaker-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sad-status {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sad-mono);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.sad-status[hidden] {
  display: none;
}

.sad-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
  flex-shrink: 0;
}

.sad-status.is-processing .sad-status-dot {
  background: var(--sad-cyan-bright);
  animation: sad-pulse 1s ease-in-out infinite;
}

.sad-status.is-completed .sad-status-dot {
  background: #4ade80;
  animation: none;
}

@keyframes sad-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

/* Scan line while the job is processing */
.sad-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sad-screen.is-processing .sad-scan {
  opacity: 1;
}

.sad-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.14) 55%, rgba(34, 211, 238, 0.38));
  border-bottom: 1.5px solid rgba(34, 211, 238, 0.75);
  /* transform-based sweep: compositor-friendly, no per-frame layout */
  animation: sad-scan-sweep 1.6s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}

@keyframes sad-scan-sweep {
  from { transform: translateY(-106%); }
  to { transform: translateY(300%); }
}

/* Bottom stack: chips + live captions + progress */
.sad-screen-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sad-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sad-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sad-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 9, 12, 0.6);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  animation: sad-chip-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.sad-chip[hidden] {
  display: none;
}

.sad-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sad-chip--lang .sad-chip-dot {
  background: var(--sad-orange);
}

.sad-chip--speaker .sad-chip-dot {
  background: var(--sad-cyan-bright);
}

.sad-chip--speaker.is-sp0 .sad-chip-dot {
  background: #60a5fa;
}

.sad-chip--speaker.is-sp1 .sad-chip-dot {
  background: #f472b6;
}

.sad-chip--acc .sad-chip-dot {
  background: #4ade80;
}

@keyframes sad-chip-in {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Caption bar: frosted strip; active word = red Cluely-style bubble */
.sad-caption-bar {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 6px;
}

.sad[data-scenario="timestamps"] .sad-caption-bar {
  min-height: 88px;
  padding-top: 28px;
}

.sad-captions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 7px;
  align-content: flex-end;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(8, 9, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 100%;
  box-shadow: 0 10px 28px rgba(5, 6, 10, 0.28);
}

.sad-captions:empty {
  display: none;
}

/* Languages: localized English line under source captions */
.sad-lang-sub {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(8, 9, 12, 0.55);
  border: 1px solid rgba(251, 146, 60, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: sad-chip-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.sad-lang-sub[hidden] {
  display: none;
}

.sad-lang-sub-code {
  font-family: var(--sad-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fb923c;
}

.sad-lang-sub-text {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.sad-w {
  position: relative;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  padding: 3px 6px;
  border-radius: 999px;
  text-shadow: 0 1px 8px rgba(5, 6, 10, 0.45);
  animation: sad-word-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2),
    padding 0.18s ease;
}

.sad-w.is-active {
  background: linear-gradient(180deg, #ff6b6b 0%, #ef4444 55%, #dc2626 100%);
  color: #ffffff;
  text-shadow: none;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 10px 26px rgba(220, 38, 38, 0.48),
    0 0 0 1px rgba(220, 38, 38, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transform: translateY(-3px) scale(1.08);
  z-index: 2;
  animation: sad-bubble-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}

.sad-w.is-active::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  vertical-align: -1px;
  border-radius: 2px;
  background:
    linear-gradient(#fff, #fff) 0 20% / 2px 60% no-repeat,
    linear-gradient(#fff, #fff) 3.5px 0 / 2px 100% no-repeat,
    linear-gradient(#fff, #fff) 7px 30% / 2px 40% no-repeat;
  opacity: 0.95;
}

/* Timestamps: float the exact word start time above the active bubble */
.sad[data-scenario="timestamps"] .sad-w.is-active::after {
  content: attr(data-ms);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  font-family: var(--sad-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
  background: rgba(8, 9, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 8px 18px rgba(5, 6, 10, 0.35);
  pointer-events: none;
}

.sad[data-scenario="timestamps"] .sad-w.is-active::before {
  display: none;
}

.sad-w--sp0.is-active {
  background: linear-gradient(180deg, #ff7a7a 0%, #ef4444 60%, #dc2626 100%);
}

.sad-w--sp1.is-active {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 55%, #be123c 100%);
  box-shadow:
    0 10px 26px rgba(225, 29, 72, 0.48),
    0 0 0 1px rgba(225, 29, 72, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

@keyframes sad-word-in {
  from { opacity: 0; transform: translateY(8px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sad-bubble-pop {
  0% { transform: translateY(4px) scale(0.86); }
  70% { transform: translateY(-4px) scale(1.12); }
  100% { transform: translateY(-3px) scale(1.08); }
}

.sad-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.sad-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sad-cyan-bright), var(--sad-orange));
}

.sad-phone-caption {
  font-family: var(--sad-mono);
  font-size: 10.5px;
  color: rgba(10, 10, 11, 0.45);
  text-align: center;
  max-width: 250px;
  line-height: 1.5;
}

.sad-phone-caption code {
  font-family: inherit;
  color: var(--sad-cyan);
  background: none;
  padding: 0;
}

/* ---- Terminal / code panel ---- */
.sad-code {
  border: 1px solid var(--sad-line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.05), 0 18px 48px rgba(10, 10, 11, 0.07);
  min-width: 0;
}

.sad-code-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(10, 10, 11, 0.08);
  background: #fafafa;
}

.sad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.12);
}

.sad-code-title {
  margin-left: 8px;
  font-family: var(--sad-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(10, 10, 11, 0.55);
}

.sad-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sad-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sad-cyan);
}

.sad-live[hidden] {
  display: none;
}

.sad-metric + .sad-live {
  margin-left: 0;
}

.sad-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sad-cyan);
  animation: sad-pulse 1.4s ease-in-out infinite;
}

.sad-code-body {
  height: 478px;
  overflow-y: auto;
  padding: 16px 20px 18px;
  font-family: var(--sad-mono);
  font-size: 12px;
  line-height: 1.72;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.sad-code-body::-webkit-scrollbar {
  display: none;
}

.sad-line {
  white-space: pre;
  color: rgba(10, 10, 11, 0.78);
  animation: sad-line-in 0.22s ease both;
  min-height: 1.2em;
}

@keyframes sad-line-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.sad-line--cmd {
  color: var(--sad-ink);
  font-weight: 600;
}

.sad-line--resp {
  color: rgba(10, 10, 11, 0.62);
}

.sad-line--word {
  border-left: 2px solid transparent;
  padding-left: 6px;
  margin-left: -8px;
  border-radius: 0 6px 6px 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sad-line--word.is-hot,
.sad-line--word.is-exec {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.sad-line--word.is-exec {
  position: relative;
  padding-right: 86px;
}

.sad-line--word.is-exec::after {
  content: "◀ executing";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  opacity: 0.85;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .sad-line--word.is-exec {
    padding-right: 6px;
  }

  .sad-line--word.is-exec::after {
    display: none;
  }
}

.sad-p {
  color: var(--sad-cyan);
  font-weight: 700;
}

.sad-k { color: #cf222e; }
.sad-s { color: #0a3069; }
.sad-n { color: #0550ae; }
.sad-c { color: #6e7781; }
.sad-ok { color: #15803d; font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .sad-stage {
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center;
  }

  .sad-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sad-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .sad-tab {
    flex: 1;
    text-align: center;
  }

  .sad-focus {
    justify-content: center;
    text-align: center;
  }

  .sad-phone {
    width: 232px;
  }

  .sad-code {
    width: 100%;
  }

  .sad-code-body {
    height: 330px;
    font-size: 11px;
    padding: 14px 14px 16px;
  }

  .sad-line {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .sad-metric {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sad-blob,
  .sad-scan::before,
  .sad-live::before,
  .sad-status.is-processing .sad-status-dot {
    animation: none;
  }

  .sad-line,
  .sad-w,
  .sad-chip {
    animation: none;
  }
}
