:root {
  color-scheme: dark;
  --bg: #090b0a;
  --surface: rgba(18, 21, 19, 0.88);
  --surface-solid: #121512;
  --surface-raised: #181c19;
  --line: rgba(236, 246, 239, 0.11);
  --line-strong: rgba(236, 246, 239, 0.2);
  --text: #f2f6f2;
  --muted: #919b94;
  --accent: #c8ff3d;
  --accent-strong: #a9e900;
  --accent-ink: #101500;
  --danger: #ff766d;
  --warning: #f6c35b;
  --success: #8ce45e;
  --radius: 18px;
  --radius-small: 11px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 52px 52px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
label,
summary,
select,
input[type="checkbox"] {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.72;
}

.ambient--one {
  top: -310px;
  right: -170px;
  background: radial-gradient(circle, rgba(177, 255, 0, 0.12), transparent 68%);
}

.ambient--two {
  bottom: -380px;
  left: -240px;
  background: radial-gradient(circle, rgba(82, 153, 105, 0.1), transparent 69%);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 36px;
  margin-bottom: 68px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  align-items: end;
  gap: 3px;
  width: 17px;
  height: 17px;
  padding: 2px;
  color: var(--accent);
}

.brand__mark i {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: currentColor;
  animation: signal 1.8s ease-in-out infinite alternate;
}

.brand__mark i:nth-child(1) {
  height: 45%;
}

.brand__mark i:nth-child(2) {
  height: 100%;
  animation-delay: -0.7s;
}

.brand__mark i:nth-child(3) {
  height: 68%;
  animation-delay: -1.2s;
}

.brand__tag {
  margin-left: 3px;
  padding-left: 13px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.center-card {
  width: min(540px, 100%);
  margin: 10vh auto 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise-in 0.45s ease-out both;
}

#boot-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  color: var(--muted);
}

#boot-view p {
  margin: 0;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login h1,
.intro h1 {
  margin: 0;
  font-weight: 590;
  letter-spacing: -0.045em;
}

.login h1 {
  max-width: 380px;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.02;
}

.lede {
  margin: 16px 0 32px;
  color: var(--muted);
  line-height: 1.55;
}

.login__form > label,
.field > span {
  display: block;
  margin: 0 0 8px;
  color: #c7cec9;
  font-size: 12px;
  font-weight: 650;
}

.login__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input[type="password"],
input[type="number"],
input[type="text"],
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: #0d100e;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="password"],
input[type="text"] {
  padding: 0 14px;
}

input[type="number"],
select {
  padding: 0 13px;
}

select {
  cursor: pointer;
}

input[type="password"]:hover,
input[type="number"]:hover,
input[type="text"]:hover,
select:hover {
  border-color: rgba(236, 246, 239, 0.32);
}

input[type="password"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  border-color: rgba(200, 255, 61, 0.7);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.08);
  background: #101410;
  outline: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius-small);
  padding: 0 20px;
  cursor: pointer;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button--primary {
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(183, 255, 21, 0.12);
  color: var(--accent-ink);
}

.button--primary:hover:not(:disabled) {
  background: #d2ff60;
  box-shadow: 0 14px 34px rgba(183, 255, 21, 0.18);
}

.message {
  margin: 12px 0 0;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.message--error {
  border: 1px solid rgba(255, 118, 109, 0.2);
  background: rgba(255, 118, 109, 0.07);
  color: #ffada7;
}

.dashboard {
  animation: rise-in 0.5s ease-out both;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.68fr);
  gap: 80px;
  align-items: end;
  margin: 0 0 48px;
}

.intro h1 {
  max-width: 760px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
}

.intro h1 span {
  color: var(--accent);
}

.intro > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(440px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(15px);
}

.panel--source,
.panel--settings {
  padding: 26px;
}

.panel__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 25px;
}

.panel__heading h2,
.result h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.panel__heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.step {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.file-picker {
  display: flex;
  min-height: 272px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px dashed rgba(236, 246, 239, 0.22);
  border-radius: 14px;
  padding: 28px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.file-picker:hover,
.file-picker:focus-within {
  border-color: rgba(200, 255, 61, 0.58);
  background: rgba(200, 255, 61, 0.035);
  transform: translateY(-1px);
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-picker__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, 0.22);
  border-radius: 50%;
  background: rgba(200, 255, 61, 0.07);
  color: var(--accent);
}

.file-picker__copy {
  display: grid;
  gap: 7px;
  max-width: 280px;
}

.file-picker__copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker__copy small,
.field small,
.switch small,
.techniques summary small,
.downloads small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.field small {
  margin-top: 6px;
}


.audio-layer {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background:
    linear-gradient(135deg, rgba(200, 255, 61, 0.045), transparent 52%),
    rgba(255, 255, 255, 0.014);
}

.audio-layer__heading {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.audio-layer__heading strong,
.audio-picker strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.audio-layer__heading small,
.audio-picker small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.audio-layer__badge {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.audio-layer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 14px;
  padding: 14px;
}

.audio-picker {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.audio-picker:hover,
.audio-picker:focus-within,
.audio-picker.has-file {
  border-color: rgba(200, 255, 61, 0.48);
  background: rgba(200, 255, 61, 0.035);
}

.audio-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.audio-picker__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, 0.25);
  border-radius: 50%;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
}

.audio-picker.has-file .audio-picker__icon {
  background: var(--accent);
  color: var(--accent-ink);
}

.audio-picker strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-level {
  grid-column: 1 / -1;
}

.audio-level > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.audio-level output {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.audio-level input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 4px 0 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.audio-level input[type="range"]:disabled,
.audio-layer select:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.delogo {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background:
    linear-gradient(135deg, rgba(255, 174, 61, 0.04), transparent 52%),
    rgba(255, 255, 255, 0.014);
}

.delogo__heading {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.delogo__heading strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.delogo__heading small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.button--compact {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 11px;
  border-color: rgba(200, 255, 61, 0.24);
  background: rgba(200, 255, 61, 0.06);
  color: #dffc94;
  font-size: 10px;
}

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

.delogo-regions {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.delogo-regions__empty {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.delogo-region {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
}

.delogo-region__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.delogo-region__title {
  padding: 0;
  color: #c7cec9;
  font-size: 11px;
  font-weight: 650;
}

.delogo-region__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}

.delogo-region__remove:hover,
.delogo-region__remove:focus-visible {
  color: #ffb5a7;
}

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

.delogo-region .field > span {
  margin-bottom: 5px;
  font-size: 9px;
}

.delogo-region input {
  height: 38px;
  padding: 0 8px;
  font-size: 11px;
}
.switch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 23px 0 14px;
}

.switch {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 11px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.014);
  transition: border-color 160ms ease, background 160ms ease;
}

.switch:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.switch input,
.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.switch__track {
  position: relative;
  width: 36px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: #343a35;
  transition: background 170ms ease;
}

.switch__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #aeb5b0;
  content: "";
  transition: transform 170ms ease, background 170ms ease;
}

.switch input:checked + .switch__track {
  background: var(--accent);
}

.switch input:checked + .switch__track::after {
  background: var(--accent-ink);
  transform: translateX(15px);
}

.switch input:focus-visible + .switch__track,
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.switch strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.techniques {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.014);
}

.techniques summary {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.techniques summary::-webkit-details-marker {
  display: none;
}

.techniques summary strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.techniques__chevron {
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.techniques[open] .techniques__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.techniques__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0 12px 12px;
}

.chip span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 7px;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.chip input:checked + span {
  border-color: rgba(200, 255, 61, 0.25);
  background: rgba(200, 255, 61, 0.075);
  color: #dffc94;
}

.button--launch {
  width: 100%;
  margin-top: 18px;
  background: var(--text);
  color: #0b0d0c;
}

.button--launch:hover:not(:disabled) {
  background: var(--accent);
  box-shadow: 0 12px 34px rgba(183, 255, 21, 0.12);
}

.button--launch.is-busy svg {
  animation: drift 0.85s ease-in-out infinite alternate;
}

.result {
  margin-top: 18px;
  padding: 28px;
  scroll-margin-top: 22px;
  animation: rise-in 0.4s ease-out both;
}

.result__header,
.downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill--processing {
  border-color: rgba(246, 195, 91, 0.24);
  background: rgba(246, 195, 91, 0.06);
  color: var(--warning);
}

.status-pill--succeeded {
  border-color: rgba(140, 228, 94, 0.25);
  background: rgba(140, 228, 94, 0.07);
  color: var(--success);
}

.status-pill--failed,
.status-pill--cancelled {
  border-color: rgba(255, 118, 109, 0.25);
  background: rgba(255, 118, 109, 0.07);
  color: var(--danger);
}

.progress-block {
  margin: 28px 0 22px;
}

.progress-block__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.progress-block__meta strong {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 20px;
  background: #252a26;
}

.progress > span,
.copy-row__progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(200, 255, 61, 0.28);
  transition: width 500ms ease;
}

.copies {
  display: grid;
  gap: 7px;
}

.copy-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) minmax(100px, 0.6fr) 100px 30px;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.012);
}

.copy-row__index {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.copy-row__info {
  min-width: 0;
}

.copy-row__info strong,
.copy-row__info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-row__info strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.copy-row__info small {
  color: var(--muted);
  font-size: 9px;
}

.copy-row__progress {
  height: 3px;
  overflow: hidden;
  border-radius: 10px;
  background: #2b302c;
}

.copy-row__state {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.copy-row--processing .copy-row__state {
  color: var(--warning);
}

.copy-row--succeeded .copy-row__state {
  color: var(--success);
}

.copy-row--failed .copy-row__state {
  color: var(--danger);
}

.copy-row__download {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.copy-row__download:hover {
  border-color: rgba(200, 255, 61, 0.4);
  background: rgba(200, 255, 61, 0.07);
  color: var(--accent);
}

.copy-row:not(.copy-row--succeeded) {
  grid-template-columns: 34px minmax(150px, 1fr) minmax(100px, 0.6fr) 100px;
}

.downloads {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.downloads strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.downloads .button {
  min-height: 42px;
  font-size: 11px;
}

.file-picker {
  min-height: 210px;
}

.file-picker.is-dragging {
  border-color: var(--accent);
  background: rgba(200, 255, 61, 0.08);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 61, 0.18);
  transform: translateY(-2px) scale(1.005);
}

.file-selection {
  margin-top: 18px;
}

.file-selection__meta,
.rejected__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.file-selection__meta strong,
.rejected__heading strong {
  color: #c7cec9;
  font-size: 11px;
}

#file-count {
  font-family: "SFMono-Regular", Consolas, monospace;
}

#file-count.is-over-limit {
  color: var(--danger);
}

.file-list {
  display: grid;
  max-height: 330px;
  gap: 7px;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.file-list__empty,
.copies__empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.selected-file {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px 7px 11px;
  background: rgba(255, 255, 255, 0.014);
}

.selected-file__index,
.job-card__index {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.selected-file__info {
  min-width: 0;
}

.selected-file__info strong,
.selected-file__info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file__info strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.selected-file__info small {
  color: var(--muted);
  font-size: 9px;
}

.selected-file__remove {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 9px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  transition: background 150ms ease, color 150ms ease;
}

.selected-file__remove:hover {
  background: rgba(255, 118, 109, 0.08);
  color: #ffada7;
}

.rejected {
  margin: 0 0 22px;
  border: 1px solid rgba(255, 118, 109, 0.18);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 118, 109, 0.045);
}

.rejected__heading {
  margin-bottom: 8px;
}

#rejected-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 118, 109, 0.12);
  color: #ffada7;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.rejected__list {
  display: grid;
  gap: 6px;
}

.rejected__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(160px, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 118, 109, 0.12);
  padding-top: 7px;
  font-size: 10px;
}

.rejected__row strong {
  overflow: hidden;
  color: #ffd1ce;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rejected__row span {
  color: #d89a96;
}

.batch-jobs {
  display: grid;
  gap: 11px;
}

.job-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.012);
}

.job-card--processing {
  border-color: rgba(246, 195, 91, 0.16);
}

.job-card--succeeded {
  border-color: rgba(140, 228, 94, 0.16);
}

.job-card--failed,
.job-card--cancelled {
  border-color: rgba(255, 118, 109, 0.16);
}

.job-card__header,
.job-card__heading,
.job-card__progress-meta,
.job-card__download {
  display: flex;
  align-items: center;
}

.job-card__header,
.job-card__progress-meta,
.job-card__download {
  justify-content: space-between;
  gap: 16px;
}

.job-card__heading {
  min-width: 0;
  gap: 12px;
}

.job-card__heading > div {
  min-width: 0;
}

.job-card h3 {
  margin: 0 0 3px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card__heading small,
.job-card__download span {
  color: var(--muted);
  font-size: 9px;
}

.job-card__progress-block {
  margin: 15px 0;
}

.job-card__progress-meta {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.job-card__progress-meta strong {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.job-card__progress-block .progress {
  height: 4px;
}

.job-card__error {
  margin: -2px 0 13px;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 118, 109, 0.07);
  color: #ffada7;
  font-size: 10px;
  line-height: 1.45;
}

.job-card .copies {
  gap: 5px;
}

.job-card .copy-row {
  min-height: 51px;
  background: rgba(0, 0, 0, 0.08);
}

.job-card__download {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.job-card__download .button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 10px;
}

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

@keyframes signal {
  to { height: 32%; }
}

@keyframes drift {
  to { transform: translateX(4px); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .brand {
    margin-bottom: 48px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .intro > p {
    max-width: 540px;
  }

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

  .file-picker {
    min-height: 210px;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 24px, 1160px);
    padding-top: 19px;
  }

  .brand {
    margin-bottom: 38px;
  }

  .brand__tag {
    display: none;
  }

  .center-card {
    margin-top: 8vh;
    padding: 27px 21px;
  }

  .login__row,
  .control-grid,
  .switch-row {
    grid-template-columns: 1fr;
  }

  .login__row .button {
    width: 100%;
  }

  .intro {
    margin-bottom: 32px;
  }

  .intro h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .panel--source,
  .panel--settings,
  .result {
    padding: 20px;
  }

  .switch-row {
    gap: 8px;
  }

  .audio-layer__grid {
    grid-template-columns: 1fr;
  }

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

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

  .delogo-region__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audio-level {
    grid-column: auto;
  }

  .techniques__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result__header,
  .downloads {
    align-items: flex-start;
  }

  .downloads {
    flex-direction: column;
  }

  .downloads .button {
    width: 100%;
  }

  .copy-row,
  .copy-row:not(.copy-row--succeeded) {
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .copy-row__progress {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .copy-row__state {
    grid-column: 3;
    grid-row: 1;
  }

  .copy-row__download {
    grid-column: 3;
    grid-row: 1;
  }

  .copy-row--succeeded .copy-row__state {
    display: none;
  }

  .file-picker {
    min-height: 180px;
    padding: 22px 16px;
  }

  .selected-file__remove {
    width: 32px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .selected-file__remove::after {
    color: var(--muted);
    content: "×";
    font-size: 18px;
  }

  .rejected__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .job-card {
    padding: 15px;
  }

  .job-card__header {
    align-items: flex-start;
  }

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

  .job-card__download .button {
    width: 100%;
  }
}

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