:root {
  color-scheme: light;
  --bg: #f4f4f5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #fff;
  --ink: #161617;
  --muted: #727277;
  --soft: rgba(22, 22, 23, 0.06);
  --line: rgba(22, 22, 23, 0.12);
  --line-strong: rgba(22, 22, 23, 0.2);
  --accent: #ff0000;
  --accent-dark: #cc0000;
  --ok: #12804a;
  --bad: #b42318;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  --small-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, #fbfbfc 0%, var(--bg) 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.topbar {
  display: block;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin-bottom: 14px;
}

.pet-runway {
  position: relative;
  width: 100%;
  height: 66px;
  min-width: 300px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.pet-station {
  position: absolute;
  top: 4px;
  z-index: 2;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  user-select: none;
}

.pet-station--youtube {
  left: 0;
  width: 74px;
  height: 47px;
  color: var(--accent-dark);
}

.pet-station--computer {
  right: 0;
  color: #252529;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.pet-station.is-receiving {
  animation: computerReceive 220ms steps(2, end) 2;
}

.ascii-computer {
  margin: 0;
}

.youtube-cat-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 47px;
  border-radius: 13px;
  background: #ff0000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 8px rgba(93, 0, 0, 0.12);
}

.youtube-download-mark {
  color: #fff;
  flex-shrink: 0;
}

.youtube-download-mark--stage {
  width: 32px;
  height: 32px;
}

.clip-pet {
  position: absolute;
  left: 0;
  top: 9px;
  width: 45px;
  height: 42px;
  color: #19191b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transform: translate3d(0, 0, 0);
  transition: filter 120ms ease;
  will-change: transform;
  z-index: 3;
}

.pet-shadow {
  position: absolute;
  left: 11px;
  right: 9px;
  bottom: -2px;
  height: 4px;
  border-radius: 50%;
  background: rgba(22, 22, 23, 0.13);
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

.pet-ears,
.pet-head,
.pet-middle,
.pet-feet {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.pet-ears {
  gap: 10px;
  height: 7px;
  color: var(--accent-dark);
  transform-origin: 50% 100%;
}

.pet-head {
  width: 29px;
  height: 17px;
  margin: -1px auto 0;
  align-items: center;
  border: 1px solid rgba(22, 22, 23, 0.24);
  border-radius: 6px 6px 5px 5px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.pet-face {
  display: block;
  transform: translateY(-1px);
}

.pet-middle {
  align-items: center;
  height: 13px;
  margin-top: -1px;
}

.pet-body {
  display: grid;
  place-items: center;
  width: 25px;
  height: 13px;
  border: 1px solid rgba(22, 22, 23, 0.18);
  border-radius: 5px;
  background: #fff7f7;
  color: var(--accent-dark);
  box-shadow: inset 0 -1px 0 rgba(255, 0, 0, 0.09);
}

.pet-arm {
  position: relative;
  top: -1px;
  display: inline-block;
  width: 8px;
  color: #2a2a2d;
  transform-origin: 50% 0;
}

.pet-arm--left {
  text-align: right;
}

.pet-arm--right {
  text-align: left;
}

.pet-carry {
  position: absolute;
  left: 50%;
  top: -1px;
  display: grid;
  width: 38px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(255, 0, 0, 0.42);
  border-radius: 4px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 8px;
  opacity: 0;
  transform: translate(-50%, -7px) scale(0.86);
  box-shadow: 0 5px 12px rgba(255, 0, 0, 0.12);
  transition: opacity 130ms ease, transform 130ms ease;
}

.clip-pet.is-carrying .pet-carry {
  opacity: 1;
  transform: translate(-50%, -11px) scale(1);
}

.clip-pet.is-carrying .pet-arm--left {
  transform: rotate(-20deg) translateY(-3px);
}

.clip-pet.is-carrying .pet-arm--right {
  transform: rotate(20deg) translateY(-3px);
}

.clip-pet.is-grabbing {
  filter: drop-shadow(0 0 7px rgba(255, 0, 0, 0.18));
}

.clip-pet.is-grabbing .pet-head {
  transform: translateY(1px) scaleY(0.93);
}

.clip-pet.is-tripping {
  filter: drop-shadow(0 0 7px rgba(180, 35, 24, 0.16));
}

.clip-pet.is-tripping .pet-head,
.clip-pet.is-tripping .pet-middle,
.clip-pet.is-tripping .pet-feet {
  animation: petTrip 360ms steps(2, end) 1;
}

.clip-pet.is-tripping .pet-shadow {
  animation: petShadowTrip 360ms steps(2, end) 1;
}

.clip-pet.is-upset .pet-head {
  border-color: rgba(180, 35, 24, 0.38);
  background: #fff4f4;
}

.clip-pet.is-upset .pet-body {
  color: var(--bad);
  background: #fff;
}

.clip-pet.is-upset .pet-ears {
  transform: translateY(1px) rotate(-6deg);
}

.clip-pet.is-upset .pet-arm--left {
  transform: rotate(18deg) translateY(1px);
}

.clip-pet.is-upset .pet-arm--right {
  transform: rotate(-18deg) translateY(1px);
}

.pet-feet {
  gap: 8px;
  height: 8px;
  color: #2a2a2d;
  z-index: 2;
}

.pet-foot {
  display: inline-block;
  transform-origin: 50% 0;
  min-width: 6px;
  text-align: center;
}

.pet-file {
  position: absolute;
  display: grid;
  width: 42px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(22, 22, 23, 0.15);
  border-radius: 5px 5px 4px 4px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(22, 22, 23, 0.7);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 2;
}

.pet-file::before {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 7px;
  height: 7px;
  border-left: 1px solid rgba(22, 22, 23, 0.12);
  border-bottom: 1px solid rgba(22, 22, 23, 0.12);
  border-radius: 0 4px 0 2px;
  background: rgba(255, 0, 0, 0.12);
}

.pet-file--spawn {
  left: 52px;
  top: 29px;
  opacity: 0;
  transform: translate(-8px, -2px) scale(0.78);
}

.pet-file.is-ready {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.pet-file.is-held {
  opacity: 0;
  transform: translateY(-5px) scale(0.8);
}

.clip-pet.is-walking .pet-head,
.clip-pet.is-walking .pet-ears {
  animation: petBob 420ms steps(2, end) infinite;
}

.clip-pet.is-walking .pet-shadow {
  animation: petShadowBob 420ms steps(2, end) infinite;
}

.clip-pet.is-walking .pet-foot--left {
  animation: petStepLeft 260ms steps(2, end) infinite;
}

.clip-pet.is-walking .pet-foot--right {
  animation: petStepRight 260ms steps(2, end) infinite;
}

@keyframes petBob {
  50% {
    transform: translateY(1px);
  }
}

@keyframes petShadowBob {
  50% {
    transform: scaleX(0.88);
  }
}

@keyframes petStepLeft {
  50% {
    transform: translateX(3px);
  }
}

@keyframes petStepRight {
  50% {
    transform: translateX(-3px);
  }
}

@keyframes petTrip {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(18deg) translate(3px, 5px);
  }

  100% {
    transform: rotate(-8deg) translate(1px, 2px);
  }
}

@keyframes petShadowTrip {
  50% {
    transform: translate(3px, 2px) scaleX(0.82);
  }

  100% {
    transform: translate(1px, 1px) scaleX(0.94);
  }
}

@keyframes computerReceive {
  50% {
    color: var(--accent-dark);
    transform: translateY(-1px);
  }
}

.url-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.url-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.url-field {
  min-width: 0;
}

input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  letter-spacing: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus {
  border-color: rgba(255, 0, 0, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 140ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button.liquid-tilt {
  transform-style: preserve-3d;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button.liquid-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    130% 130% at var(--tilt-glint-x, 50%) var(--tilt-glint-y, 50%),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0) 58%
  );
  mix-blend-mode: soft-light;
  transition: opacity 220ms ease;
}

.button.liquid-tilt:hover::after {
  opacity: 1;
}

.button.liquid-tilt > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:active):not(.liquid-tilt) {
    transform: translateY(-1px);
  }
}

.button:active:not([disabled]) {
  transform: translateY(0) scale(0.985);
  transition-duration: 0ms;
}

.button:focus-visible,
.handle:focus-visible,
.time-anchor-input:focus-visible,
.quality-option:has(input:focus-visible) {
  outline: 4px solid rgba(255, 0, 0, 0.18);
  outline-offset: 2px;
}

.button-secondary {
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid rgba(255, 0, 0, 0.45);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.1);
}

.button-secondary:hover {
  background: rgba(255, 0, 0, 0.06);
  border-color: var(--accent);
}

.button-secondary:active:not([disabled]) {
  background: rgba(255, 0, 0, 0.12);
  border-color: var(--accent-dark);
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.12);
}

.button-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #ff1a1a, var(--accent));
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.28);
}

.button-primary:hover {
  background: linear-gradient(180deg, #ff3333, var(--accent-dark));
}

.button-primary:active:not([disabled]) {
  background: linear-gradient(180deg, #e60000, #b30000);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.22);
}

.button-primary-action {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  min-width: 46px;
  padding: 0;
}

/* One icon at a time: [hidden] + display:block on .glyph breaks on SVG in some engines */
.button-primary-action .glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  transition: opacity 160ms ease;
}

.button-primary-action:not(.has-video) .glyph.glyph-load {
  display: block;
}

.button-primary-action.has-video .glyph.glyph-download {
  display: block;
}

.button-primary-action.is-busy .glyph {
  opacity: 0;
}

.button-primary-action.has-video {
  color: #fff;
  background: linear-gradient(180deg, #ff1a1a, var(--accent));
  border: 0;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.26);
}

.button-primary-action.has-video:hover {
  background: linear-gradient(180deg, #ff3333, var(--accent-dark));
}

.button-primary-action:active:not([disabled]):not(.is-busy) {
  background: linear-gradient(180deg, #e60000, #b30000);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.22);
}

.button-primary-action:not(.has-video):active:not([disabled]):not(.is-busy) {
  background: rgba(255, 0, 0, 0.1);
  border-color: var(--accent-dark);
}

.button-primary-action .action-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(22, 22, 23, 0.22);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.button-primary-action.has-video .action-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.button-primary-action.is-busy .action-spinner {
  display: block;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

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

.workspace {
  display: block;
}

.stage-panel {
  display: grid;
  gap: 12px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.video-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px 0;
}

.video-heading strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.video-heading span {
  font-size: 12px;
  color: var(--muted);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  border-radius: 16px;
  background:
    linear-gradient(150deg, #17171a, #26262b),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

iframe.is-ready {
  opacity: 1;
}

.empty-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  transition: opacity 180ms ease;
}

.empty-preview.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.empty-preview p {
  max-width: 250px;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.youtube-empty-badge {
  display: grid;
  place-items: center;
  width: 88px;
  height: 56px;
  border-radius: 16px;
  background: #ff0000;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 8px rgba(93, 0, 0, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.timeline-card {
  display: grid;
  gap: 9px;
  padding: 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.range-meta,
.timeline-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.range-meta span {
  color: rgba(22, 22, 23, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.range-meta strong {
  font-size: 13px;
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) minmax(4.5rem, auto);
  gap: 8px 10px;
  align-items: center;
}

.time-anchor {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.time-anchor--end {
  align-items: flex-end;
  text-align: right;
}

.time-anchor-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 22, 23, 0.52);
}

.time-anchor-input {
  width: 100%;
  max-width: 7.5rem;
  min-height: 28px;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--ink);
  cursor: text;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.time-anchor--start .time-anchor-input {
  text-align: left;
}

.time-anchor--end .time-anchor-input {
  text-align: right;
}

.time-anchor-input:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.time-anchor-input:focus {
  outline: none;
  border-color: rgba(255, 0, 0, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.timeline {
  --thumb: none;
  position: relative;
  height: 52px;
  border-radius: 13px;
  overflow: visible;
  touch-action: none;
  min-width: 0;
}

.timeline-track,
.timeline-selection {
  position: absolute;
  inset-block: 8px;
  border-radius: 13px;
}

.timeline-track {
  inset-inline: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
    var(--thumb) center / auto 100% repeat-x,
    linear-gradient(120deg, #d8d8dc, #f3f3f5);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.timeline-selection {
  left: 0;
  width: 12%;
  border: 2px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 0, 0, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.handle {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--small-shadow);
  cursor: grab;
  transform: translateX(-50%);
  touch-action: none;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.handle::before {
  content: "";
  position: absolute;
  inset: 14px 5px;
  border-left: 1px solid rgba(22, 22, 23, 0.32);
  border-right: 1px solid rgba(22, 22, 23, 0.32);
}

.handle:active {
  cursor: grabbing;
  background: rgba(255, 0, 0, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.35), var(--small-shadow);
  transition-duration: 0ms;
}

.timeline-labels {
  color: var(--muted);
  font-size: 11px;
}

.quality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.quality-option .quality-glyph--audio {
  padding: 0;
}

.quality-option .quality-glyph--audio svg {
  display: block;
}

.quality-option {
  position: relative;
  min-width: 0;
  transform-style: preserve-3d;
}

.quality-option.liquid-tilt {
  transition: none;
}

.quality-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quality-option .quality-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(22, 22, 23, 0.76);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.quality-option.liquid-tilt:not(:active) .quality-glyph {
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.quality-option input:checked + .quality-glyph {
  border-color: rgba(255, 0, 0, 0.35);
  background: rgba(255, 0, 0, 0.08);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 0, 0.12);
}

.quality-option:not(.is-disabled) .quality-glyph:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.quality-option:not(.is-disabled) input:checked + .quality-glyph:hover {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.45);
}

.quality-option:not(.is-disabled):active .quality-glyph {
  transform: scale(0.96);
  border-color: rgba(255, 0, 0, 0.45);
  background: rgba(255, 0, 0, 0.14);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 0, 0.18);
  transition-duration: 0ms;
}

.quality-option.is-disabled .quality-glyph {
  cursor: not-allowed;
  opacity: 0.36;
}

.status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  padding: 0 4px;
}

.status.success {
  color: var(--ok);
}

.status.error {
  color: var(--bad);
}

@media (max-width: 920px) {
  .app-shell {
    width: min(100% - 20px, 760px);
    padding-top: 14px;
  }

  .video-shell {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100% - 14px);
  }

  .topbar {
    min-height: 58px;
  }

  .pet-runway {
    width: 100%;
    min-width: 0;
  }

  .pet-station--computer {
    right: auto;
    left: 308px;
  }

  .pet-station {
    font-size: 9px;
  }

  .url-bar-row {
    grid-template-columns: 1fr;
  }

  .stage-panel {
    border-radius: 18px;
  }

  .video-shell {
    border-radius: 13px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .time-anchor--end {
    align-items: flex-start;
    text-align: left;
  }

  .time-anchor--end .time-anchor-input {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .pet-station--computer {
    left: 282px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
