:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #fff;
  --text: #25324a;
  --muted: #63718a;
  --border: #e1e7f0;
  --accent: #3568d4;
  --accent-soft: #eef4ff;
  --error: #b33437;
  --success: #24724f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8daff3;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.app-shell {
  width: min(100%, 920px);
  margin: auto;
  padding: 0 28px 40px;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 25px;
  font-weight: 500;
}
#languageSelect {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 30px 8px 11px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
}
main {
  display: grid;
  gap: 22px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 15px #25324a03;
}
.composer {
  padding: 27px 30px 19px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.composer > .section-heading {
  justify-content: space-between;
  gap: 16px;
}
h1,
h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 17px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--success);
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.connection.offline {
  color: var(--muted);
}
form {
  margin-top: 25px;
}
label,
legend {
  font-size: 13px;
  font-weight: 600;
}
.url-field {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  border: 1px solid #cbd5e5;
  border-radius: 9px;
  background: #fcfdff;
  padding: 6px;
}
.url-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #3568d414;
}
.url-field input {
  width: 100%;
  min-width: 0;
  padding: 8px 7px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.url-field input:focus-visible {
  outline: none;
}
.url-field input::placeholder {
  color: #7b879c;
}
.secondary-button,
.job-button {
  border: 1px solid var(--border);
  background: #f8faff;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 15px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
}
.secondary-button:hover,
.job-button:hover {
  background: #edf2fa;
}
.text-button {
  background: none;
  border: 0;
  padding: 7px 0;
  color: var(--accent);
  font-size: 12px;
  min-height: 32px;
}
.text-button:hover:not(:disabled) {
  text-decoration: underline;
}
.preview-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.preview {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f5f8fd;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0 20px;
}
.preview img {
  width: 90px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 5px;
}
.preview > div {
  min-width: 0;
}
.preview strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.preview p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 13px 0 23px;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 10px;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.quality {
  position: relative;
  cursor: pointer;
}
.quality input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.quality > span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 43px;
  padding: 9px 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition: background 0.15s;
}
.quality input:checked + span {
  background: var(--accent-soft);
  border-color: #79a0f0;
  color: #2655b2;
  box-shadow: 0 0 0 1px #79a0f0;
}
.quality:hover > span {
  background: #f3f6fc;
}
.quality input:focus-visible + span {
  outline: 3px solid #8daff3;
  outline-offset: 3px;
}
.primary-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.primary-button:hover:not(:disabled) {
  background: #2d5bbd;
}
.primary-button > span:first-child {
  font-size: 20px;
  line-height: 1;
}
.limits-note {
  margin: 13px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  min-height: 18px;
}
.queue-panel {
  overflow: hidden;
}
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 28px 10px;
}
.count {
  font-size: 11px;
  background: #edf1f7;
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.tabs {
  display: flex;
  gap: 23px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
}
.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  padding: 9px 0 12px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.tab > span:last-child {
  font-size: 10px;
  background: #f0f3f8;
  border-radius: 4px;
  padding: 0 5px;
}
.tab.active {
  color: var(--accent);
  border-color: var(--accent);
}
.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.empty-state > span {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #f0f4fa;
  border-radius: 11px;
  margin: auto;
  color: #7b93bb;
  font-size: 25px;
}
.empty-state p {
  font-size: 13px;
  margin: 11px 0 0;
}
.form-message,
.queue-message {
  color: var(--error);
  background: #fff4f3;
  border: 1px solid #f1d6d2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.form-message {
  margin: 0 0 16px;
}
.queue-message {
  margin: 15px 28px;
}
.job {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.job:last-child {
  border-bottom: 0;
}
.job-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 43px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  border-radius: 8px;
}
.job-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.format-badge {
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  color: #51617b;
}
.job-status {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.job.completed .job-status {
  color: var(--success);
}
.job.failed .job-status {
  color: var(--error);
}
.job progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 4px;
  margin-top: 10px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #e6ecf6;
}
.job progress::-webkit-progress-bar {
  background: #e6ecf6;
}
.job progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 5px;
}
.job progress::-moz-progress-bar {
  background: var(--accent);
}
.job-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.job-button.save {
  background: var(--accent-soft);
  border-color: #c8d8f8;
  color: #2759bb;
}
.job-button.save:hover {
  background: #e0ebff;
}
.delete-button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 20px;
}
.delete-button:hover {
  background: #fff1f0;
  color: var(--error);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  background: white;
  color: var(--text);
  box-shadow: 0 8px 28px #25324a1a;
  font-size: 13px;
  z-index: 10;
}
.toast.error {
  color: var(--error);
  border-color: #efd5d0;
}
.busy {
  cursor: progress;
}
@media (max-width: 600px) {
  .app-shell {
    padding: 0 14px 24px;
  }
  .topbar {
    height: 74px;
  }
  .brand {
    font-size: 20px;
  }
  .composer {
    padding: 21px 18px 15px;
  }
  h1 {
    font-size: 18px;
  }
  .connection {
    font-size: 11px;
  }
  .composer > .section-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  form {
    margin-top: 21px;
  }
  .url-field input {
    font-size: 16px;
  }
  .quality-grid {
    gap: 6px;
  }
  .quality > span {
    font-size: 12px;
  }
  .queue-header {
    padding: 18px 18px 8px;
  }
  .tabs {
    padding: 0 18px;
    gap: 20px;
  }
  .job {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    padding: 17px 18px;
  }
  .job-icon {
    width: 32px;
    height: 39px;
  }
  .job-actions {
    grid-column: 2;
  }
  .job-button {
    min-height: 40px;
  }
  .job-title {
    font-size: 13px;
  }
  .queue-message {
    margin: 12px 18px;
  }
  .limits-note {
    font-size: 10px;
  }
  .tab {
    font-size: 11px;
  }
  .queue-header h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.app-shell {
  width: min(100%, 1200px);
  padding: 0 36px 40px;
}
.topbar {
  border-bottom: 1px solid var(--border);
  height: 90px;
}
.brand-icon {
  font-size: 23px;
  letter-spacing: -4px;
  padding-right: 3px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 232px;
  padding: 28px 15px 24px 2px;
}
.hero h1 {
  font-size: clamp(30px, 3.7vw, 44px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -1.6px;
}
.hero-accent {
  color: var(--accent);
}
.hero-art {
  width: 290px;
  height: 192px;
  position: relative;
  flex-shrink: 0;
  margin-right: 20px;
}
.orbit {
  position: absolute;
  width: 270px;
  height: 155px;
  border: 1px solid #d6e2f4;
  border-radius: 50%;
  top: 23px;
  left: 5px;
  transform: rotate(-25deg);
}
.orbit-two {
  transform: rotate(35deg);
  width: 205px;
  left: 50px;
}
.media-card {
  position: absolute;
  border: 1px solid #a3bce8;
  border-radius: 12px;
  box-shadow: 0 12px 26px #345a9e16;
}
.card-back {
  width: 130px;
  height: 148px;
  top: 15px;
  left: 25px;
  transform: rotate(-17deg);
  background: #e5e6fb;
  padding: 19px;
  color: #7877bb;
}
.card-back > span {
  font-size: 35px;
}
.wave {
  font-size: 16px;
  letter-spacing: 2px;
  margin-top: 10px;
}
.card-front {
  width: 166px;
  height: 153px;
  top: 35px;
  left: 104px;
  transform: rotate(10deg);
  padding: 8px;
  background: #f9fbff;
  color: #5576a9;
}
.art-landscape {
  position: relative;
  height: 107px;
  overflow: hidden;
  border-radius: 6px;
  background: #b8d1f2;
}
.sun {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 17px;
  right: 22px;
  border-radius: 50%;
  background: #fff3c7;
}
.mountain {
  position: absolute;
  width: 170px;
  height: 100px;
  background: #7097c9;
  transform: rotate(35deg);
  top: 62px;
  left: -5px;
  border-radius: 20px;
}
.mountain:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 100px;
  background: #94b7df;
  transform: rotate(25deg);
  left: 80px;
  top: -56px;
  border-radius: 18px;
}
.play {
  position: absolute;
  width: 35px;
  height: 35px;
  top: 36px;
  left: 59px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffffe0;
  color: #3868a9;
  font-size: 13px;
  padding-left: 2px;
}
.art-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 3px 0;
  font-size: 16px;
}
.art-line {
  width: 65px;
  height: 4px;
  background: #d4e0f2;
  border-radius: 5px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.panel {
  border-radius: 18px;
  box-shadow: 0 6px 24px #304d7a04;
}
.composer {
  padding: 25px 25px 18px;
}
.step {
  font-size: 10px;
  font-weight: 500;
  border: 1px solid #d5e0f3;
  border-radius: 6px;
  background: #f2f6ff;
  color: #5272a6;
  padding: 3px 6px;
}
.connection {
  font-size: 11px;
}
.queue-header {
  padding: 21px 23px 10px;
}
.tabs {
  padding: 0 23px;
  gap: 22px;
}
.job {
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 18px 23px;
  gap: 11px;
}
.job-icon {
  width: 34px;
}
.job-actions {
  grid-column: 2;
}
.queue-panel {
  min-height: 380px;
}
.empty-state {
  padding: 75px 20px;
}
.limits-note {
  font-size: 10px;
}
.section-heading h2 {
  font-size: 16px;
}
.queue-message {
  margin: 12px 23px;
}
@media (max-width: 900px) {
  .app-shell {
    padding: 0 24px 32px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .composer {
    padding: 25px;
  }
  .queue-panel {
    min-height: 0;
  }
  .empty-state {
    padding: 30px;
  }
  .hero-art {
    transform: scale(0.85);
    transform-origin: right center;
    margin-right: 0;
    width: 260px;
  }
  .hero {
    min-height: 210px;
  }
  .job {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
  .job-actions {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .app-shell {
    padding: 0 16px 26px;
  }
  .topbar {
    height: 74px;
  }
  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 25px 0 10px;
    position: relative;
    overflow: visible;
  }
  .hero h1 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .hero-art {
    display: block;
    width: min(290px, 100%);
    height: 192px;
    position: relative;
    align-self: center;
    margin: -10px 0 -16px;
    transform: scale(0.76);
    transform-origin: center;
    pointer-events: none;
  }
  .hero h1 {
    position: relative;
    z-index: 1;
  }
  .hero h1 > span {
    display: inline-block;
    max-width: 300px;
  }
  .workspace {
    gap: 19px;
  }
  .composer {
    padding: 22px 18px 16px;
  }
  .composer > .section-heading {
    flex-wrap: wrap;
  }
  .connection {
    font-size: 10px;
  }
  .queue-header {
    padding: 17px 18px 8px;
  }
  .tabs {
    padding: 0 18px;
    gap: 20px;
  }
  .job {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 17px 18px;
  }
  .job-actions {
    grid-column: 2;
  }
  .queue-message {
    margin: 12px 18px;
  }
}
:root {
  --accent: #4265df;
  --accent-soft: #f0f3ff;
  --border: #e4e8f3;
  --text: #273249;
  --muted: #64718a;
}
body {
  background:
    radial-gradient(ellipse at 85% 0%, #e9ecff80, transparent 40%),
    radial-gradient(ellipse at 5% 50%, #edf5ff70, transparent 45%), #f7f9fd;
}
.icon {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}
.brand {
  gap: 11px;
}
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 7px #4565c325);
  transition: transform 0.2s;
}
.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-4deg);
}
.brand-word {
  display: flex;
  align-items: baseline;
  position: relative;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand-word > span {
  font-weight: 550;
  color: #4b5f89;
}
.brand-word > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5870be;
  margin-left: 4px;
}
.topbar {
  position: relative;
  z-index: 5;
  border-bottom-color: #e0e6f0;
  height: 94px;
}
.language-picker {
  position: relative;
}
.language-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  background: #ffffffc9;
  color: #40516d;
  box-shadow: 0 2px 4px #34436f03;
  font-size: 12px;
  font-weight: 550;
  min-height: 42px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.language-trigger > [data-icon]:first-child {
  color: #7d8eaa;
}
.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  background: #fff;
  border-color: #acbdec;
  box-shadow: 0 3px 12px #4565c310;
}
.language-chevron {
  margin-left: 7px;
  color: #7d8eaa;
  transition: transform 0.2s;
}
.language-chevron .icon {
  width: 15px;
  height: 15px;
}
.language-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 218px;
  padding: 7px;
  background: #fff;
  border: 1px solid #e1e7f2;
  border-radius: 15px;
  box-shadow:
    0 15px 45px #233b7320,
    0 3px 8px #233b7306;
  z-index: 20;
  animation: menu-in 0.16s ease-out;
  transform-origin: top right;
}
.menu-label {
  margin: 5px 9px 8px;
  color: #8090ab;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}
.language-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #47546d;
  padding: 8px;
  border-radius: 9px;
  font-size: 12px;
  margin-top: 2px;
}
.language-menu button:hover,
.language-menu button:focus-visible {
  background: #f1f5ff;
  outline: none;
  box-shadow: inset 0 0 0 1px #d4dff8;
}
.language-menu button[aria-checked="true"] {
  color: #355bc5;
  background: #f1f4ff;
  font-weight: 600;
}
.language-code {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #edf1f8;
  border: 1px solid #e1e7f1;
  border-radius: 7px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #697b9d;
}
.language-menu button[aria-checked="true"] .language-code {
  background: #e4ebff;
  color: #5271c8;
  border-color: #d8e1ff;
}
.option-check {
  margin-left: auto;
  color: var(--accent);
  visibility: hidden;
}
.option-check .icon {
  width: 16px;
  height: 16px;
}
.language-menu button[aria-checked="true"] .option-check {
  visibility: visible;
}
.hero {
  padding-top: 33px;
  padding-bottom: 29px;
}
.hero h1 {
  font-weight: 620;
  letter-spacing: -1.7px;
}
.hero-accent {
  background: linear-gradient(105deg, #416bd6, #7274d3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-art {
  isolation: isolate;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 15px 0 -8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #d9e4ff7a, transparent 70%);
  z-index: -1;
}
.card-front {
  box-shadow:
    0 18px 34px #577ab021,
    0 3px 5px #ffffff inset;
  transform: rotate(9deg);
  transition: transform 0.25s;
}
.hero-art:hover .card-front {
  transform: translateY(-4px) rotate(6deg);
}
.hero-art:hover .card-back {
  transform: rotate(-20deg) translateX(-3px);
}
.card-back {
  transition: transform 0.25s;
  background: linear-gradient(135deg, #ededff, #dce1fa);
  border-color: #c1c7ee;
}
.art-music .icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.4;
}
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  margin-top: 14px;
}
.wave i {
  width: 5px;
  background: #a2a3d4;
  border-radius: 3px;
  height: 10px;
}
.wave i:nth-child(2n) {
  height: 23px;
}
.wave i:nth-child(3n) {
  height: 16px;
}
.wave i:nth-child(4) {
  height: 30px;
  background: #8388c1;
}
.play {
  padding: 0;
  box-shadow: 0 3px 10px #345c9920;
}
.play .icon {
  width: 21px;
  height: 21px;
}
.art-caption .icon {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
}
.panel {
  border: 1px solid #e4e9f4;
  border-radius: 20px;
  box-shadow:
    0 8px 28px #334e7f05,
    0 1px 3px #334e7f03;
}
.composer {
  padding: 24px 25px 19px;
}
.section-icon {
  width: 31px;
  height: 31px;
  border: 1px solid #dfe7ff;
  border-radius: 10px;
  background: linear-gradient(145deg, #f4f7ff, #edf1ff);
  color: #6885d8;
}
.section-icon .icon {
  width: 17px;
  height: 17px;
}
.section-icon.lavender {
  background: linear-gradient(145deg, #faf7ff, #f1ecff);
  border-color: #e8e0fb;
  color: #9a80c8;
}
.connection {
  padding: 4px 8px;
  background: #f1f8f5;
  border: 1px solid #e4f0e9;
  border-radius: 100px;
  font-size: 10px;
}
.connection.offline {
  background: #f5f6fa;
  border-color: #e7eaf1;
}
.dot {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 3px #24724f09;
}
.connection.offline .dot {
  box-shadow: none;
}
.url-field {
  padding: 7px;
  background: #fbfcff;
  border-color: #dfe5f0;
  border-radius: 12px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.url-field:focus-within {
  border-color: #8da3ed;
  box-shadow: 0 0 0 4px #5577df0c;
}
.url-icon {
  margin-left: 6px;
  color: #9aabc6;
}
.url-icon .icon {
  width: 18px;
  height: 18px;
}
.url-field input {
  font-size: 13px;
  padding-left: 1px;
}
.secondary-button {
  background: white;
  box-shadow: 0 2px 3px #29416f04;
  border-radius: 8px;
  padding: 7px 10px;
}
.secondary-button,
.text-button,
.job-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.secondary-button .icon {
  width: 14px;
  height: 14px;
  color: #7a8fae;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.preview-controls {
  margin-top: 5px;
}
.text-button {
  font-size: 11px;
  color: #6b7d9e;
  transition: color 0.15s;
}
.text-button:hover:not(:disabled) {
  color: var(--accent);
  text-decoration: none;
}
.preview-controls .text-button {
  color: #6380bb;
}
.quality-grid {
  gap: 8px;
}
.quality > span {
  flex-direction: column;
  gap: 7px;
  min-height: 67px;
  padding: 10px 4px;
  border-radius: 11px;
  background: #fcfdff;
  font-size: 12px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.quality .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.5;
  color: #93a1bd;
}
.quality input:checked + span {
  border-color: #93aaf0;
  background: linear-gradient(145deg, #f5f7ff, #edf2ff);
  box-shadow:
    0 0 0 1px #93aaf028,
    0 3px 7px #4565c306;
  color: #3b5cbb;
}
.quality input:checked + span .icon {
  color: #6081d3;
}
.quality:hover > span {
  background: #f7f9ff;
  border-color: #becded;
}
.quality input:focus-visible + span {
  outline-width: 2px;
}
.primary-button {
  min-height: 48px;
  border-radius: 11px;
  border: 1px solid #4769d7;
  background: linear-gradient(115deg, #4c77df, #5468d8);
  box-shadow:
    0 5px 12px #4666d52b,
    inset 0 1px 0 #ffffff25;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.primary-button:hover:not(:disabled) {
  background: linear-gradient(115deg, #416bd1, #4e60cc);
  box-shadow: 0 7px 16px #4666d538;
  transform: translateY(-1px);
}
.primary-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px #4666d52b;
}
.primary-button .icon {
  width: 18px;
  height: 18px;
}
.primary-button:disabled {
  box-shadow: none;
}
.limits-note {
  color: #8190a8;
  font-size: 10px;
  margin-top: 16px;
}
.queue-header {
  padding-top: 23px;
  padding-bottom: 13px;
}
.tabs {
  border-bottom: 0;
  background: #f5f7fc;
  margin: 0 23px 4px;
  padding: 4px;
  gap: 3px;
  border: 1px solid #e9edf5;
  border-radius: 10px;
}
.tab {
  border: 0;
  border-radius: 7px;
  justify-content: center;
  flex: 1;
  gap: 6px;
  min-height: 33px;
  padding: 6px 7px;
  font-size: 11px;
  transition:
    color 0.15s,
    background 0.15s;
}
.tab.active {
  background: #fff;
  color: #4263b6;
  box-shadow: 0 1px 5px #2f436c10;
}
.tab:hover:not(.active) {
  background: #edf1f9;
}
.tab > span:last-child {
  font-size: 9px;
  background: #e9edf6;
  color: #7385a5;
  padding: 0 4px;
}
.tab.active > span:last-child {
  background: #edf2ff;
  color: #5879c9;
}
.count {
  background: #f1f3f9;
  color: #8b97af;
  font-size: 10px;
}
.job {
  padding-top: 19px;
  padding-bottom: 19px;
  border-color: #eef1f7;
}
.job-icon {
  width: 36px;
  height: 42px;
  border: 1px solid #e0e8fa;
  background: linear-gradient(150deg, #f5f8ff, #ebf1ff);
  border-radius: 11px;
  color: #7996d7;
}
.job-icon.audio {
  background: linear-gradient(150deg, #fbf7ff, #f1ebfc);
  border-color: #eae2f6;
  color: #a082c7;
}
.job-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}
.job-meta {
  font-size: 10px;
}
.format-badge {
  background: #f8faff;
  border-color: #e5eaf3;
  color: #7184a6;
  border-radius: 4px;
}
.job-status {
  font-size: 11px;
}
.job-button {
  font-size: 11px;
  border-radius: 8px;
  padding: 7px 11px;
  min-height: 35px;
}
.job-button .icon {
  width: 15px;
  height: 15px;
}
.job-button.save {
  background: #eff4ff;
  border-color: #e0e9ff;
  color: #5173c4;
}
.delete-button {
  width: 34px;
  min-height: 34px;
  border-radius: 8px;
  color: #94a0b5;
}
.delete-button .icon {
  width: 15px;
  height: 15px;
}
.empty-state > span {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5f8ff, #ebeff9);
  border: 1px solid #e6ebf7;
  box-shadow: 0 5px 12px #4666d508;
}
.empty-state .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.4;
}
.empty-state p {
  font-size: 12px;
  color: #8b97ac;
}
.busy .icon {
  animation: spin 0.8s linear infinite;
}
.primary-button.busy {
  transform: none;
}
.toast {
  border-radius: 12px;
  box-shadow: 0 10px 35px #29477518;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 79px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-word {
    font-size: 21px;
  }
  .brand {
    gap: 8px;
  }
  .language-trigger {
    gap: 6px;
    padding: 9px 10px;
    font-size: 11px;
    min-height: 40px;
    border-radius: 10px;
  }
  .language-trigger .icon {
    width: 16px;
    height: 16px;
  }
  .language-chevron {
    margin-left: 2px;
  }
  .language-menu {
    width: 205px;
  }
  .language-menu button {
    min-height: 46px;
  }
  .hero {
    padding-top: 25px;
    padding-bottom: 15px;
  }
  .composer {
    padding: 20px 17px 17px;
  }
  .section-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .connection {
    font-size: 9px;
    padding: 4px 7px;
  }
  .url-field {
    gap: 5px;
  }
  .url-field input {
    font-size: 16px;
  }
  .secondary-button {
    padding: 7px 9px;
    font-size: 12px;
  }
  .secondary-button .icon {
    display: none;
  }
  .quality-grid {
    gap: 6px;
  }
  .quality > span {
    font-size: 11px;
    min-height: 64px;
  }
  .tabs {
    margin: 0 17px 4px;
    padding: 4px;
    gap: 2px;
  }
  .tab {
    padding: 6px 3px;
    gap: 4px;
    font-size: 10px;
    min-height: 36px;
  }
  .queue-header {
    padding: 20px 17px 12px;
  }
  .queue-header > .text-button {
    font-size: 10px;
  }
  .queue-header > .text-button .icon {
    width: 13px;
    height: 13px;
  }
  .job-button {
    min-height: 40px;
  }
  .delete-button {
    min-height: 40px;
    width: 40px;
  }
  .brand-word > i {
    width: 4px;
    height: 4px;
  }
  .job {
    padding-left: 17px;
    padding-right: 17px;
    gap: 12px;
  }
  .job-icon {
    width: 33px;
  }
  .limits-note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  filter: none;
  transition: opacity 0.18s;
}
.brand-mark img {
  position: absolute;
  width: 179.142857%;
  height: 179.142857%;
  max-width: none;
  left: -42.285714%;
  top: -24.857143%;
}
.brand:hover .brand-mark {
  transform: none;
  opacity: 0.83;
}
.brand-word {
  font-size: 22px;
  letter-spacing: -0.95px;
  font-weight: 650;
  color: #344366;
}
.brand-word > span {
  font-weight: 450;
  color: #647293;
}
.brand {
  gap: 8px;
}
.clear-url {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b99b2;
  transition:
    background 0.15s,
    color 0.15s;
}
.clear-url .icon {
  width: 14px;
  height: 14px;
}
.clear-url:hover {
  background: #eef2fa;
  color: #465c89;
}
.url-field:has(input[aria-invalid="true"]) {
  border-color: #d79a99;
  box-shadow: 0 0 0 3px #c8545408;
}
.quality input:checked + span:after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6c89ce;
}
.job {
  transition: background 0.15s;
}
.job:hover {
  background: #fafbff;
}
.job-title {
  letter-spacing: -0.15px;
}
.job-meta {
  color: #71809a;
}
.job-button:focus-visible,
.delete-button:focus-visible,
.clear-url:focus-visible {
  outline: 2px solid #829bdf;
  outline-offset: 3px;
}
.job-actions {
  gap: 9px;
}
.delete-button {
  opacity: 0.75;
}
.delete-button:hover,
.delete-button:focus-visible {
  opacity: 1;
}
.hero-accent {
  background: none;
  color: #5870be;
}
.hero-copy {
  min-width: 0;
}
.supported-platforms {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: #667491;
}
.platforms-label {
  color: #536481;
  font-weight: 600;
}
.supported-platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.supported-platforms li {
  white-space: nowrap;
}
.primary-button {
  background: linear-gradient(110deg, #5276cf, #5b6ec8);
  border-color: #5370c5;
  box-shadow: 0 4px 9px #4666d520;
}
.primary-button:hover:not(:disabled) {
  background: linear-gradient(110deg, #486cc2, #5163bb);
}
@media (max-width: 600px) {
  .supported-platforms {
    margin-top: 15px;
    gap: 5px 10px;
    font-size: 11px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .brand-word {
    font-size: 21px;
  }
  .clear-url {
    width: 28px;
  }
  .job-actions {
    gap: 8px;
  }
}
