:root {
  color-scheme: dark;
  --bg: #070b19;
  --bg-elevated: #0b1124;
  --panel: #10182e;
  --panel-soft: #131d36;
  --panel-strong: #172241;
  --line: #263352;
  --line-soft: rgba(148, 163, 184, .16);
  --text: #f7f9ff;
  --muted: #a8b2c8;
  --muted-strong: #c9d0df;
  --primary: #7967ff;
  --primary-strong: #5d7bff;
  --blue: #55a8ff;
  --success: #45d7a0;
  --warning: #f2bd64;
  --danger: #ff7a8b;
  --radius: 18px;
  --radius-small: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 5%, rgba(81, 97, 211, .11), transparent 29rem),
    linear-gradient(180deg, #080d1c 0%, var(--bg) 58%, #080c18 100%);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  box-shadow: 0 0 0 3px rgba(121, 103, 255, .36);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 11, 25, .9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(157, 146, 255, .58);
  border-radius: 13px;
  background: linear-gradient(145deg, #7561ff, #385fd2);
  box-shadow: 0 8px 24px rgba(72, 79, 201, .28);
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: .01em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.topnav a,
.topnav button {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.topnav button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.topnav a:hover,
.topnav__active {
  background: rgba(121, 103, 255, .12) !important;
  color: var(--text) !important;
}

.topbar__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.ui-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 5px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted-strong);
}

.ui-language:focus-within {
  border-color: rgba(147, 133, 255, .78);
  box-shadow: 0 0 0 3px rgba(111, 91, 255, .13);
}

.ui-language__icon {
  color: #b7adff;
  font-size: 15px;
  line-height: 1;
}

.ui-language select {
  width: 108px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 7px 0 2px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ui-language select:focus {
  box-shadow: none;
}

.ui-language option {
  background: #0a1022;
  color: var(--text);
}

.service-pill,
.status-dot,
.language-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted-strong);
  font-size: 12px;
  white-space: nowrap;
}

.service-pill::before,
.status-dot::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--warning);
  content: "";
}

.service-pill.is-ready::before,
.status-dot.is-ready::before {
  background: var(--success);
}

.service-pill.is-error::before,
.status-dot.is-error::before {
  background: var(--danger);
}

.page-shell {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 54px;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.intro h1 {
  max-width: 770px;
  margin: 4px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.intro p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 5px;
  color: #a99cff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 490px;
}

.intro__facts span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
}

.notice {
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(85, 168, 255, .3);
  border-radius: 12px;
  background: rgba(85, 168, 255, .08);
  color: #d9ebff;
}

.notice.is-error {
  border-color: rgba(255, 122, 139, .35);
  background: rgba(255, 122, 139, .08);
  color: #ffd8dd;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(500px, .96fr);
  grid-template-areas:
    "input language voice"
    "final settings voice"
    "preview preview voice"
    "result result result";
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 29, 54, .94), rgba(14, 22, 42, .94));
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel--input { grid-area: input; }
.panel--language { grid-area: language; }
.panel--voice {
  grid-area: voice;
  position: sticky;
  top: 90px;
}
.panel--final { grid-area: final; }
.panel--settings { grid-area: settings; }
.panel--preview { grid-area: preview; }
.panel--result { grid-area: result; }

.panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.panel--voice .panel__heading > div:first-child,
.pricing-card > div:first-child,
.video-panel__head > div:first-child {
  display: block;
}

.panel h2,
.panel h3 {
  margin: 0;
  line-height: 1.25;
}

.panel h2 {
  font-size: 18px;
}

.panel h3 {
  font-size: 16px;
}

.step {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(140, 128, 255, .42);
  border-radius: 10px;
  background: rgba(121, 103, 255, .12);
  color: #c5bdff;
  font-weight: 800;
}

.panel__actions,
.result-actions,
.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 9px 15px;
  font-weight: 720;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.button--primary {
  border-color: rgba(152, 143, 255, .35);
  background: linear-gradient(100deg, #7763f4, #477be7);
  box-shadow: 0 12px 28px rgba(62, 82, 196, .23);
  color: white;
}

.button--secondary {
  border-color: rgba(121, 103, 255, .34);
  background: rgba(121, 103, 255, .12);
  color: #e5e1ff;
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--muted-strong);
}

.button--text {
  border-color: transparent;
  background: transparent;
  color: #b9b0ff;
}

.button--small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.button--large {
  min-height: 52px;
  font-size: 16px;
}

.button--block {
  width: 100%;
}

.button-help,
.settings-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.text-editor {
  width: 100%;
  min-height: 178px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #0a1022;
  color: var(--text);
  padding: 14px;
  line-height: 1.65;
}

.text-editor--large {
  min-height: 226px;
}

.text-editor::placeholder {
  color: #73809a;
}

.text-editor:focus,
select:focus {
  border-color: rgba(121, 103, 255, .7);
}

.editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.save-state {
  margin-left: auto;
  color: #9fadd0;
}

.save-state.is-saved {
  color: var(--success);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label,
.choice-group legend {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 11px;
}

select {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1022;
  color: var(--text);
  padding: 0 12px;
}

select:disabled {
  opacity: .5;
}

.choice-group {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted-strong);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: rgba(121, 103, 255, .5);
  background: rgba(121, 103, 255, .09);
  color: var(--text);
}

.choice input {
  accent-color: var(--primary);
}

.voice-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 15px;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0b1124;
}

.voice-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.voice-tabs button[aria-selected="true"] {
  background: var(--panel-strong);
  color: var(--text);
}

.voice-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.voice-search input {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #0a1125;
  color: var(--text);
  padding: 8px 11px;
}

.voice-search input:focus {
  border-color: rgba(121, 103, 255, .72);
  box-shadow: 0 0 0 3px rgba(121, 103, 255, .12);
}

.carousel-wrap {
  position: relative;
  padding: 0;
}

.voice-carousel {
  display: grid;
  grid-auto-columns: 96px;
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  scroll-snap-type: inline mandatory;
  touch-action: pan-x;
  -ms-overflow-style: none;
}

.voice-carousel::-webkit-scrollbar {
  display: none;
}

.voice-card {
  position: relative;
  display: grid;
  min-height: 168px;
  align-content: start;
  justify-items: center;
  gap: 7px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .026);
  padding: 11px 8px 9px;
  color: var(--text);
  cursor: pointer;
}

.voice-card:hover,
.voice-card[aria-selected="true"] {
  border-color: rgba(121, 103, 255, .7);
  background: rgba(121, 103, 255, .09);
}

.voice-card[aria-selected="true"]::after {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #06150f;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}

.avatar {
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(143, 153, 195, .32);
  border-radius: 50%;
  background: linear-gradient(145deg, #26365c, #17213f);
  object-fit: cover;
}

.voice-identity-inline[hidden] {
  display: none;
}

.selected-voice .avatar {
  width: 48px;
  height: 48px;
}

.voice-empty {
  width: min(360px, calc(100vw - 110px));
  margin: 0;
  padding: 30px 12px;
  color: var(--muted);
  text-align: center;
}

.voice-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.voice-card small {
  color: var(--muted);
  font-size: 10px;
}

.voice-card__listen {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1429;
  color: #cbd4ea;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 62px;
  display: grid;
  width: 28px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111a31;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 23px;
}

.carousel-arrow--left { left: -2px; }
.carousel-arrow--right { right: -2px; }

.selected-voice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1125;
}

.selected-voice__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.selected-voice__copy small,
.selected-voice__copy span {
  color: var(--muted);
  font-size: 11px;
}

.selected-voice__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-play {
  display: grid;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(121, 103, 255, .44);
  border-radius: 50%;
  background: rgba(121, 103, 255, .12);
  color: #ddd9ff;
  cursor: pointer;
}

.icon-play:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.mini-wave {
  display: flex;
  height: 45px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 12px;
}

.mini-wave i {
  width: 3px;
  height: 12px;
  border-radius: 99px;
  background: #526287;
}

.mini-wave i:nth-child(3n) { height: 27px; }
.mini-wave i:nth-child(4n) { height: 19px; }
.mini-wave i:nth-child(5n) { height: 34px; }

.pricing-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 9, 23, .52);
  padding: 15px;
}

.pricing-card > p {
  margin: 10px 0 12px;
  color: var(--muted-strong);
  font-size: 13px;
}

.pricing-card dl,
.result-meta,
.metrics {
  margin: 0;
}

.pricing-card dl div,
.result-meta div,
.metrics div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.sliders {
  display: grid;
  gap: 13px;
}

.slider-field {
  display: grid;
  gap: 7px;
}

.slider-field > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.slider-field output {
  color: #bdb5ff;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
}

.toggle-field span {
  display: grid;
}

.toggle-field strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.toggle-field small {
  color: var(--muted);
  font-size: 11px;
}

.toggle-field input {
  width: 38px;
  height: 21px;
  accent-color: var(--primary);
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  gap: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metrics div {
  display: grid;
  align-content: center;
  justify-content: start;
  min-height: 74px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  padding: 10px;
}

.metrics dd {
  margin-top: 4px;
  text-align: left;
}

.preview-player {
  display: grid;
  align-content: center;
  gap: 9px;
}

.voice-identity-inline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.voice-identity-inline > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.voice-identity-inline small {
  color: var(--muted);
  font-size: 10px;
}

.voice-identity-inline strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-player audio,
.result-ready audio {
  width: 100%;
}

.preview-player small {
  color: var(--muted);
  font-size: 11px;
}

.result-audio {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.result-empty {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px dashed #33415f;
  border-radius: 14px;
  color: var(--muted);
  text-align: left;
}

.result-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(121, 103, 255, .1);
  color: #bcb4ff;
  font-size: 24px;
}

.result-empty strong {
  color: var(--muted-strong);
}

.result-empty p {
  max-width: 620px;
  margin: 3px 0 0;
}

.result-ready {
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) minmax(420px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.video-panel {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.video-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.video-fields {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(280px, 1.2fr) minmax(220px, .8fr) minmax(220px, .8fr);
  gap: 15px;
}

.file-drop {
  display: grid;
  min-height: 110px;
  place-content: center;
  border: 1px dashed #435273;
  border-radius: 13px;
  background: rgba(255, 255, 255, .02);
  padding: 12px;
  color: var(--muted-strong);
  cursor: pointer;
  text-align: center;
}

.file-drop input {
  max-width: 100%;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.file-drop small {
  color: var(--muted);
}

.mix-controls {
  display: grid;
  gap: 12px;
}

#videoStatus {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100vw - 1540px) / 2));
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1240px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) minmax(450px, .9fr);
    grid-template-areas:
      "input voice"
      "language voice"
      "final voice"
      "settings preview"
      "result result";
  }

  .panel--voice {
    top: 86px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .result-ready {
    grid-template-columns: 1fr 1fr;
  }

  .result-actions {
    grid-column: 1 / -1;
  }

  .video-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro__facts {
    justify-content: flex-start;
  }

  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "input"
      "language"
      "final"
      "voice"
      "settings"
      "preview"
      "result";
  }

  .panel--voice {
    position: static;
  }

  .voice-carousel {
    grid-auto-columns: 118px;
  }

  .result-ready {
    grid-template-columns: 1fr;
  }

  .result-actions {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .topbar {
    gap: 11px;
    padding: 10px 14px;
  }

  .service-pill {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar__tools {
    gap: 6px;
  }

  .ui-language {
    padding-left: 7px;
  }

  .ui-language select {
    width: 86px;
    padding-right: 2px;
  }

  .topnav a,
  .topnav button {
    padding: 7px 9px;
    font-size: 12px;
  }

  .page-shell {
    width: min(100% - 20px, 1540px);
    padding-top: 28px;
  }

  .intro h1 {
    font-size: 33px;
  }

  .panel {
    border-radius: 15px;
    padding: 16px;
  }

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

  .panel__actions {
    width: 100%;
  }

  .panel__actions .button {
    flex: 1;
  }

  .save-state {
    width: 100%;
    margin-left: 0;
  }

  .metrics,
  .result-meta,
  .video-fields {
    grid-template-columns: 1fr;
  }

  .result-empty {
    align-items: flex-start;
    padding: 18px;
  }

  .video-panel__head {
    flex-direction: column;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 16px;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }
}

@media (max-width: 380px) {
  .service-pill {
    display: none;
  }
}

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