:root {
  color-scheme: dark;
  --bg: #0f1014;
  --card: #171922;
  --card-2: #1d1f2a;
  --line: #2a2e3d;
  --text: #f5f7fb;
  --muted: #9aa3b7;
  --accent: #ff004f;
  --accent-2: #ff2f68;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #0d0e13 0%, #12141b 100%);
  color: var(--text);
  font-family: "Outfit", sans-serif;
}

body {
  padding: 24px;
}

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

.app-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
}

.app-shell-narrow {
  width: min(760px, 100%);
}

.page-nav {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.page-link-primary {
  width: 100%;
}

.roblox-page-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.roblox-page-panel {
  margin-top: 8px;
}

.roblox-assets-panel {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.roblox-assets-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}

.roblox-assets-table {
  width: 100%;
  border-collapse: collapse;
}

.roblox-assets-table th,
.roblox-assets-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}

.roblox-assets-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roblox-assets-table tbody tr:last-child td {
  border-bottom: 0;
}

.roblox-assets-table td:nth-child(1) {
  width: 160px;
  color: #cfd5e6;
  font-variant-numeric: tabular-nums;
}

.roblox-assets-table td:nth-child(2) {
  min-width: 280px;
  color: #e7eaf3;
  line-height: 1.45;
  word-break: break-word;
}

.roblox-assets-table td:nth-child(3) {
  width: 140px;
  white-space: nowrap;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  min-width: 96px;
  justify-content: center;
}

.roblox-assets-empty {
  color: var(--muted);
}

.roblox-assets-panel .editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roblox-assets-panel .editor-head h2 {
  margin: 0;
  font-size: 1rem;
}

.roblox-assets-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.roblox-assets-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

.roblox-assets-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.roblox-assets-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.012);
}

.roblox-assets-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

.roblox-assets-table td[colspan="3"] {
  padding: 18px 14px;
}

.roblox-assets-table-wrap {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.roblox-assets-empty {
  text-align: center;
}

.roblox-assets-table td:nth-child(2) {
  font-weight: 500;
}

.roblox-assets-table td:nth-child(1) {
  width: 1%;
}

.roblox-assets-table td:nth-child(3) {
  width: 1%;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  white-space: nowrap;
}

.roblox-assets-table td:nth-child(1) {
  white-space: nowrap;
}

.roblox-assets-table {
  table-layout: auto;
}

.roblox-assets-table tbody td {
  max-width: 0;
}

.roblox-assets-table tbody td:nth-child(2) {
  max-width: 480px;
}

.roblox-assets-table td:nth-child(2) {
  overflow-wrap: anywhere;
}

.roblox-assets-panel .editor-head {
  padding-right: 2px;
}

.roblox-assets-table-wrap {
  margin-bottom: 2px;
}

.roblox-assets-panel {
  margin-bottom: 2px;
}

.roblox-assets-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.roblox-assets-table-wrap {
  max-width: 100%;
}

.roblox-assets-table td:nth-child(2),
.roblox-assets-table th:nth-child(2) {
  width: auto;
}

.roblox-assets-table th:nth-child(2) {
  min-width: 240px;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  background: rgba(255,255,255,0.08);
}

.roblox-assets-table td:nth-child(3) .source-badge {
  border: 1px solid rgba(255,255,255,0.08);
}

.roblox-assets-table td:nth-child(3) .source-badge {
  color: var(--text);
}

.roblox-assets-panel .editor-head {
  min-width: 0;
}

.roblox-assets-panel .editor-head h2 {
  min-width: 0;
}

.roblox-assets-panel .editor-head .source-badge {
  flex-shrink: 0;
}

.roblox-assets-table td:nth-child(2) {
  min-width: 0;
}

.roblox-assets-table-wrap {
  min-width: 0;
}

.roblox-assets-table td:nth-child(2) {
  white-space: normal;
}

.roblox-assets-table td:nth-child(1) {
  white-space: normal;
}

.roblox-assets-table td:nth-child(1) {
  overflow-wrap: anywhere;
}

.roblox-assets-table td:nth-child(1) {
  max-width: 160px;
}

.roblox-assets-table th:nth-child(1) {
  max-width: 160px;
}

.roblox-assets-table th:nth-child(3) {
  text-align: left;
}

.roblox-assets-table td:nth-child(3) {
  text-align: left;
}

.roblox-assets-table td:nth-child(3) {
  white-space: nowrap;
}

.roblox-assets-table tbody tr td {
  transition: background-color 120ms ease;
}

.roblox-assets-panel {
  width: 100%;
}

.roblox-assets-table-wrap {
  width: 100%;
}

.roblox-assets-table {
  width: 100%;
}

.roblox-assets-table td:nth-child(2) {
  width: 100%;
}

.roblox-assets-table td:nth-child(1),
.roblox-assets-table td:nth-child(3) {
  width: auto;
}

.roblox-assets-empty {
  font-size: 0.94rem;
}

.roblox-assets-table th,
.roblox-assets-table td {
  font-size: 0.92rem;
}

.roblox-assets-table th {
  font-size: 0.76rem;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  font-size: 0.72rem;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  padding-inline: 10px;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  min-height: 28px;
}

.roblox-assets-panel {
  min-width: 0;
}

.roblox-assets-table-wrap {
  min-height: 0;
}

.roblox-assets-table tbody td {
  min-width: 0;
}

.roblox-assets-table td:nth-child(2) {
  word-break: break-word;
}

.roblox-assets-table td:nth-child(1) {
  word-break: break-word;
}

.roblox-assets-table td:nth-child(3) {
  word-break: normal;
}

.roblox-assets-table td:nth-child(3) {
  overflow-wrap: normal;
}

.roblox-assets-table tbody td {
  border-color: rgba(255,255,255,0.06);
}

.roblox-assets-table thead th {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.roblox-assets-panel {
  background: transparent;
}

.roblox-assets-table-wrap {
  background: rgba(255,255,255,0.02);
}

.roblox-assets-panel {
  border-radius: 0;
}

.roblox-assets-table-wrap {
  border-radius: 18px;
}

.roblox-assets-panel {
  box-shadow: none;
}

.roblox-assets-table td:nth-child(2) {
  letter-spacing: 0.01em;
}

.roblox-assets-table th:nth-child(2) {
  letter-spacing: 0.08em;
}

.roblox-assets-panel {
  position: relative;
}

.roblox-assets-table-wrap {
  position: relative;
}

.roblox-assets-panel {
  isolation: isolate;
}

.roblox-assets-table-wrap {
  isolation: isolate;
}

.roblox-assets-table thead th {
  background: rgba(255,255,255,0.03);
}

.roblox-assets-table td:nth-child(3) .source-badge {
  background: rgba(255,255,255,0.06);
}

.roblox-assets-table td:nth-child(3) .source-badge {
  border-radius: 999px;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  padding-block: 4px;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  display: inline-flex;
  align-items: center;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  justify-content: center;
}

.roblox-assets-table-wrap {
  border-color: rgba(255,255,255,0.07);
}

.roblox-assets-panel {
  gap: 10px;
}

.roblox-assets-empty {
  padding-block: 18px;
}

.roblox-assets-table td:nth-child(2) {
  color: var(--text);
}

.roblox-assets-table td:nth-child(1) {
  color: var(--muted);
}

.roblox-assets-table td:nth-child(3) {
  color: var(--text);
}

.roblox-assets-table tbody td {
  background-color: transparent;
}

.roblox-assets-table tbody tr:nth-child(even) td {
  background-color: rgba(255,255,255,0.012);
}

.roblox-assets-table tbody tr:hover td {
  background-color: rgba(255,255,255,0.028);
}

.roblox-assets-panel {
  margin-top: 18px;
}

.roblox-assets-panel .editor-head {
  margin-bottom: 2px;
}

.roblox-assets-table-wrap {
  border-radius: 20px;
}

.roblox-assets-empty {
  opacity: 0.9;
}

.roblox-assets-table td:nth-child(1) {
  font-weight: 700;
}

.roblox-assets-table td:nth-child(2) {
  font-weight: 500;
}

.roblox-assets-table td:nth-child(3) {
  font-weight: 600;
}

.roblox-assets-table {
  border-spacing: 0;
}

.roblox-assets-table td,
.roblox-assets-table th {
  line-height: 1.4;
}

.roblox-assets-panel {
  margin-bottom: 6px;
}

.roblox-assets-table-wrap {
  margin-top: 2px;
}

.roblox-assets-panel {
  min-height: 0;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  min-width: 96px;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  text-transform: uppercase;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  letter-spacing: 0.06em;
}

.roblox-assets-table td:nth-child(2) {
  max-width: none;
}

.roblox-assets-table-wrap {
  overflow-y: hidden;
}

.roblox-assets-panel {
  overflow: visible;
}

.roblox-assets-table thead th:first-child {
  border-top-left-radius: 18px;
}

.roblox-assets-table thead th:last-child {
  border-top-right-radius: 18px;
}

.roblox-assets-table thead th {
  background-clip: padding-box;
}

.roblox-assets-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 18px;
}

.roblox-assets-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 18px;
}

.roblox-assets-table tbody tr:last-child td {
  border-bottom: 0;
}

.roblox-assets-table td:nth-child(2) {
  min-width: 220px;
}

.roblox-assets-table td:nth-child(1) {
  min-width: 120px;
}

.roblox-assets-table td:nth-child(3) {
  min-width: 120px;
}

.roblox-assets-panel {
  padding-bottom: 2px;
}

.roblox-assets-table-wrap {
  padding: 0;
}

.roblox-assets-table {
  background: transparent;
}

.roblox-assets-panel .editor-head {
  align-items: flex-end;
}

.roblox-assets-panel .editor-head .source-badge {
  margin-bottom: 2px;
}

.roblox-assets-empty {
  width: 100%;
}

.roblox-assets-table td[colspan="3"] {
  width: 100%;
}

.roblox-assets-table th:nth-child(1),
.roblox-assets-table th:nth-child(3) {
  white-space: nowrap;
}

.roblox-assets-table th:nth-child(2) {
  white-space: nowrap;
}

.roblox-assets-panel {
  border-top: none;
}

.roblox-assets-table-wrap {
  border: 1px solid rgba(255,255,255,0.08);
}

.roblox-assets-panel {
  padding-top: 0;
}

.roblox-assets-table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.roblox-assets-table th {
  padding-top: 11px;
  padding-bottom: 11px;
}

.roblox-assets-panel {
  scroll-margin-top: 24px;
}

.roblox-assets-table tbody tr td:nth-child(2) {
  max-width: unset;
}

.roblox-assets-table-wrap {
  overscroll-behavior-x: contain;
}

.roblox-assets-table td:nth-child(1),
.roblox-assets-table td:nth-child(2),
.roblox-assets-table td:nth-child(3) {
  font-feature-settings: "ss01" on;
}

.roblox-assets-panel {
  border: 0;
}

.roblox-assets-panel {
  padding-left: 0;
  padding-right: 0;
}

.roblox-assets-table-wrap {
  width: 100%;
}

.roblox-assets-panel {
  display: grid;
  gap: 12px;
}

.roblox-assets-empty {
  border-bottom: 0;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  background-color: rgba(255,255,255,0.08);
}

.roblox-assets-table td:nth-child(3) .source-badge {
  border-color: rgba(255,255,255,0.08);
}

.roblox-assets-table td:nth-child(3) .source-badge {
  box-shadow: none;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  color: #f5f7fb;
}

.roblox-assets-table td:nth-child(3) {
  padding-right: 14px;
}

.roblox-assets-table td:nth-child(1),
.roblox-assets-table td:nth-child(2) {
  padding-right: 10px;
}

.roblox-assets-table thead th:nth-child(3) {
  padding-right: 14px;
}

.roblox-assets-table thead th:nth-child(1),
.roblox-assets-table thead th:nth-child(2) {
  padding-right: 10px;
}

.roblox-assets-table-wrap {
  backdrop-filter: blur(12px);
}

.roblox-assets-table thead th {
  backdrop-filter: blur(12px);
}

.roblox-assets-empty {
  background: transparent;
}

.roblox-assets-table td[colspan="3"] {
  background: transparent;
}

.roblox-assets-panel .editor-head.compact-head {
  align-items: center;
}

.roblox-assets-panel .editor-head.compact-head .source-badge {
  margin-bottom: 0;
}

.roblox-assets-panel .editor-head h2 {
  font-weight: 700;
}

.roblox-assets-panel {
  margin-inline: 0;
}

.roblox-assets-table td:nth-child(2) {
  max-width: 560px;
}

.roblox-assets-table td:nth-child(1) {
  max-width: 180px;
}

.roblox-assets-table {
  border-radius: 18px;
}

.roblox-assets-table td {
  background: transparent;
}

.roblox-assets-table th {
  background: rgba(255,255,255,0.03);
}

.roblox-assets-table tbody tr:last-child td {
  border-bottom: 0;
}

.roblox-assets-panel {
  margin-top: 16px;
}

.roblox-assets-table td:nth-child(2) {
  line-height: 1.5;
}

.roblox-assets-panel {
  max-width: 100%;
}

.roblox-assets-table-wrap {
  max-width: 100%;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  font-size: 0.7rem;
}

.roblox-assets-table td:nth-child(1),
.roblox-assets-table td:nth-child(2),
.roblox-assets-table td:nth-child(3) {
  vertical-align: middle;
}

.roblox-assets-table th:nth-child(1),
.roblox-assets-table td:nth-child(1) {
  width: 160px;
}

.roblox-assets-table th:nth-child(3),
.roblox-assets-table td:nth-child(3) {
  width: 140px;
}

.jobs-panel-hidden {
  display: none;
}

.roblox-assets-table th:nth-child(2),
.roblox-assets-table td:nth-child(2) {
  width: auto;
}

.roblox-assets-table tbody tr td:nth-child(2) {
  white-space: normal;
}

.roblox-assets-empty {
  text-align: left;
}

.roblox-assets-table td[colspan="3"] {
  color: var(--muted);
}

.roblox-assets-panel {
  position: static;
}

.roblox-assets-table-wrap {
  position: static;
}

.roblox-assets-table thead th {
  position: static;
}

.roblox-assets-panel {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.roblox-assets-panel {
  margin-top: 22px;
}

.roblox-assets-table-wrap {
  margin-top: 0;
}

.roblox-assets-table td:nth-child(2) {
  padding-right: 14px;
}

.roblox-assets-table td:nth-child(1) {
  padding-right: 14px;
}

.roblox-assets-table th:nth-child(1),
.roblox-assets-table th:nth-child(2) {
  padding-right: 14px;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  min-width: 100px;
}

.roblox-assets-empty {
  padding-left: 14px;
}

.roblox-assets-table th,
.roblox-assets-table td {
  border-color: rgba(255,255,255,0.07);
}

.roblox-assets-table thead th {
  color: #b8bfd1;
}

.roblox-assets-table td:nth-child(1) {
  color: #d5daea;
}

.roblox-assets-table td:nth-child(2) {
  color: #f3f5fb;
}

.roblox-assets-table td:nth-child(3) {
  color: #eef1f8;
}

.roblox-assets-panel {
  align-content: start;
}

.roblox-assets-table-wrap {
  align-self: stretch;
}

.roblox-assets-table td:nth-child(2) {
  min-width: 260px;
}

.roblox-assets-table td:nth-child(1) {
  min-width: 140px;
}

.roblox-assets-table td:nth-child(3) {
  min-width: 130px;
}

.roblox-assets-panel {
  contain: content;
}

.roblox-assets-table-wrap {
  contain: content;
}

.roblox-assets-panel {
  overflow: hidden;
}

.roblox-assets-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.roblox-assets-table td[colspan="3"] {
  text-align: left;
}

.roblox-assets-table-wrap {
  border-radius: 16px;
}

.roblox-assets-panel {
  border-top: 0;
  padding-top: 8px;
  margin-top: 16px;
}

.roblox-assets-table td:nth-child(3) {
  white-space: nowrap;
}

.roblox-assets-table td:nth-child(1),
.roblox-assets-table td:nth-child(2) {
  white-space: normal;
}

.roblox-assets-table td:nth-child(2) {
  overflow-wrap: anywhere;
}

.roblox-assets-table td:nth-child(1) {
  overflow-wrap: anywhere;
}

.roblox-assets-empty {
  font-style: normal;
}

.roblox-assets-panel {
  gap: 10px;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  font-weight: 800;
}

.roblox-assets-table td:nth-child(1) {
  font-weight: 700;
}

.roblox-assets-table td:nth-child(2) {
  font-weight: 500;
}

.roblox-assets-table td:nth-child(3) {
  font-weight: 700;
}

.roblox-assets-table td:nth-child(3) .source-badge {
  min-width: 104px;
}

.roblox-assets-panel {
  contain: none;
}

.roblox-assets-table-wrap {
  contain: none;
}

.converter-card {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sidebar,
.workspace {
  min-width: 0;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.workspace {
  display: grid;
  align-content: start;
  gap: 16px;
}

.brand {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-hero {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(255, 0, 79, 0.22), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 44px rgba(0,0,0,0.24);
}

.brand-kicker,
.panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy {
  margin: 0;
  color: #d5d9e6;
  line-height: 1.5;
}

.brand.is-secondary {
  font-size: 1rem;
  opacity: 0.78;
}

.upload-dropzone {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(255, 0, 79, 0.45);
  box-shadow: 0 16px 30px rgba(255, 0, 79, 0.12);
}

.upload-dropzone.is-busy,
.upload-dropzone.is-pulsing {
  border-color: rgba(255, 0, 79, 0.55);
  box-shadow: 0 18px 34px rgba(255, 0, 79, 0.18);
}

.quick-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-stat-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.quick-stat-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.quick-stat-card strong {
  font-size: 1rem;
}

.preset-sections {
  display: grid;
  gap: 14px;
}

.preset-panel {
  margin-top: 18px;
}

.preset-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
}

.preset-group-head {
  display: grid;
  gap: 2px;
}

.preset-group-head h3 {
  margin: 0;
  font-size: 0.94rem;
}

.preset-group .panel-label {
  color: #ff9bb4;
  font-size: 0.72rem;
}

.preset-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip-row-single {
  display: flex;
}

.preset-chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
}

.preset-chip:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.preset-chip.is-selected {
  background: linear-gradient(180deg, rgba(255, 47, 104, 0.98), rgba(255, 0, 79, 0.92));
  border-color: transparent;
  color: white;
  box-shadow: 0 12px 24px rgba(255, 0, 79, 0.22);
}

@media (max-width: 720px) {
  .preset-group {
    padding: 10px;
  }

  .preset-chip {
    width: 100%;
    justify-content: center;
  }
}

.preset-panel .export-panel-head {
  margin-bottom: 2px;
}

.preset-panel .export-summary {
  font-size: 0.74rem;
  padding: 7px 10px;
}

.preset-panel .export-panel-head h3 {
  font-size: 1rem;
}


.history-panel-premium {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.history-panel-premium.is-highlighted {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

body[data-export-format="ogg"] .export-panel {
  border-color: rgba(96, 203, 255, 0.26);
}

body[data-export-format="wav"] .export-panel {
  border-color: rgba(255, 214, 102, 0.26);
}

body[data-job-state="running"] .brand-hero {
  box-shadow: 0 22px 46px rgba(255, 0, 79, 0.18);
}

body[data-job-state="completed"] .brand-hero,
body[data-job-state="exported"] .brand-hero {
  box-shadow: 0 22px 46px rgba(87, 255, 159, 0.12);
}

.history-panel::before {
  content: attr(data-label);
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes subtlePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.upload-dropzone.is-pulsing {
  animation: subtlePulse 0.7s ease;
}

@media (max-width: 720px) {
  .quick-stat-grid,
  .preset-card-row,
  .editor-meta-premium {
    grid-template-columns: 1fr;
  }
}

.converter-form,
.progress-block,
.info-grid,
.log-output,
.actions-row,
.editor-panel,
.history-panel {
  margin-top: 0;
}

.url-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.url-row input,
.fixed-format {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
}

.fixed-format {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.url-row input:focus {
  border-color: rgba(255, 0, 79, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 0, 79, 0.12);
}

.controls-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.download-button,
.ghost-button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

.download-button {
  padding: 0 22px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(255, 0, 79, 0.24);
}

.ghost-button {
  padding: 0 16px;
  background: #232633;
  color: var(--text);
  border: 1px solid var(--line);
}

.download-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.download-button:disabled,
.ghost-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.actions-row-simple {
  grid-template-columns: 1fr;
}

.status-line-hero {
  font-size: 0.95rem;
  line-height: 1.5;
}

.progress-block-public {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.info-grid-public {
  grid-template-columns: 1fr;
}

.jobs-panel-hidden {
  display: none !important;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.log-output.is-hidden {
  display: none;
}

.log-toggle-active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: white;
  border-color: transparent;
}

.status-line {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
}

.launch-notice {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 0, 79, 0.08);
  border: 1px solid rgba(255, 0, 79, 0.28);
  border-radius: 16px;
}

.launch-notice.is-hidden {
  display: none;
}

.source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-badges-inline {
  margin-top: -4px;
}

.source-badges-iconic .source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.source-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.source-dot-youtube {
  background: #ff3b57;
}

.source-dot-tiktok {
  background: linear-gradient(135deg, #00f2ea, #ff0050);
}

.source-dot-soundcloud {
  background: #ff8c3a;
}

.source-dot-upload {
  background: #8dff9e;
}

.job-item-empty,
.history-empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px dashed rgba(255,255,255,0.14);
}

.history-empty-state span,
.job-item-empty span {
  color: var(--muted);
}

.source-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #10131b;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-step {
  text-align: center;
  font-weight: 700;
}

.workflow-step.is-active {
  border-color: rgba(255, 0, 79, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 0, 79, 0.12);
}

.jobs-panel {
  display: grid;
  gap: 12px;
}

.roblox-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.roblox-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.roblox-account-grid {
  gap: 10px;
}

.roblox-credentials-form {
  display: grid;
  gap: 12px;
}

.roblox-actions {
  gap: 10px;
}

.history-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-upload-meta {
  margin-top: 8px;
  color: #d8dfef;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}

.history-upload-meta a {
  color: #8bc6ff;
  text-decoration: none;
}

.history-upload-meta a:hover {
  text-decoration: underline;
}

.roblox-upload-button.is-busy {
  opacity: 0.72;
}

@media (max-width: 720px) {
  .roblox-actions {
    grid-template-columns: 1fr;
  }
}

.history-item-actions .download-link,
.history-item-actions .ghost-button,
.history-item-actions .download-button {
  min-height: 42px;
}

.history-item-actions .download-button {
  padding: 0 16px;
}

.history-item-actions .ghost-button {
  padding: 0 14px;
}

.history-item-actions .download-link {
  min-width: 82px;
}

.history-item-actions .roblox-upload-button {
  min-width: 148px;
}

.history-item-actions .roblox-upload-button:disabled {
  opacity: 0.5;
}

.history-item-actions .roblox-upload-button:not(:disabled) {
  box-shadow: 0 12px 26px rgba(255, 0, 79, 0.18);
}

.history-upload-success {
  color: #a6f0bf;
}

.history-upload-pending {
  color: #ffd782;
}

.history-upload-error {
  color: #ff9aa9;
}

.history-upload-empty {
  color: var(--muted);
}

.history-upload-neutral {
  color: #d8dfef;
}

.history-upload-meta strong {
  color: white;
}

.history-upload-meta .source-badge {
  margin-right: 6px;
}

.history-upload-meta .source-badge:last-child {
  margin-right: 0;
}

.history-upload-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-upload-meta-row + .history-upload-meta-row {
  margin-top: 8px;
}

.history-upload-link {
  color: #8bc6ff;
}

.history-upload-link:hover {
  text-decoration: underline;
}

.history-upload-meta-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-upload-stack {
  display: grid;
  gap: 4px;
}

.history-upload-stack .source-badge,
.history-upload-stack a {
  width: fit-content;
}

.history-upload-stack .source-badge {
  align-self: start;
}

.history-upload-stack .history-upload-link {
  font-size: 0.82rem;
}

.history-upload-stack .history-upload-meta-label {
  font-size: 0.72rem;
}

.history-upload-stack .history-upload-meta-value {
  font-size: 0.82rem;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .history-upload-meta-value {
  word-break: break-word;
}

.history-upload-stack .history-upload-meta-value {
  color: inherit;
}

.history-upload-stack .history-upload-link:hover {
  text-decoration: underline;
}

.history-upload-stack .source-badge {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.history-upload-stack .source-badge.history-upload-success {
  color: #a6f0bf;
  border-color: rgba(166,240,191,0.25);
}

.history-upload-stack .source-badge.history-upload-pending {
  color: #ffd782;
  border-color: rgba(255,215,130,0.25);
}

.history-upload-stack .source-badge.history-upload-error {
  color: #ff9aa9;
  border-color: rgba(255,154,169,0.25);
}

.history-upload-stack .source-badge.history-upload-neutral {
  color: #d8dfef;
}

.history-upload-stack .source-badge.history-upload-empty {
  color: var(--muted);
}

.history-upload-stack .history-upload-link.history-upload-success {
  color: #a6f0bf;
}

.history-upload-stack .history-upload-link.history-upload-pending {
  color: #ffd782;
}

.history-upload-stack .history-upload-link.history-upload-error {
  color: #ff9aa9;
}

.history-upload-stack .history-upload-link.history-upload-empty {
  color: var(--muted);
}

.history-upload-stack .history-upload-link.history-upload-neutral {
  color: #8bc6ff;
}

.history-upload-stack .history-upload-meta-value {
  display: grid;
  gap: 6px;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  justify-self: start;
}

.history-upload-stack .history-upload-meta-value .source-badge {
  padding: 5px 9px;
}

.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value .source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.history-upload-stack .history-upload-meta-value .history-upload-link:hover {
  text-decoration: underline;
}

.history-upload-stack .history-upload-meta-value > * {
  min-width: 0;
}

.history-upload-stack .history-upload-meta-label,
.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  max-width: 100%;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge,
.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-meta-label {
  overflow-wrap: anywhere;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  white-space: normal;
}

.history-upload-stack .history-upload-link {
  text-underline-offset: 2px;
}

.history-upload-stack .source-badge:hover,
.history-upload-stack .history-upload-link:hover {
  transform: none;
}

.history-upload-stack .source-badge,
.history-upload-stack .history-upload-link {
  transition: none;
}

.history-upload-stack .history-upload-meta-value strong,
.history-upload-stack .history-upload-meta-value span,
.history-upload-stack .history-upload-meta-value a {
  font-size: inherit;
}

.history-upload-stack .history-upload-meta-value .source-badge strong,
.history-upload-stack .history-upload-meta-value .source-badge span,
.history-upload-stack .history-upload-meta-value .source-badge a {
  color: inherit;
  font-size: inherit;
}

.history-upload-stack .history-upload-meta-value .source-badge + .source-badge,
.history-upload-stack .history-upload-meta-value .history-upload-link + .source-badge,
.history-upload-stack .history-upload-meta-value .source-badge + .history-upload-link,
.history-upload-stack .history-upload-meta-value .history-upload-link + .history-upload-link {
  margin-top: 0;
}

.history-upload-stack .history-upload-meta-value .source-badge,
.history-upload-stack .history-upload-meta-value .history-upload-link {
  box-shadow: none;
}

.history-upload-stack .history-upload-meta-value .source-badge {
  border-radius: 999px;
}

.history-upload-stack .history-upload-meta-value .history-upload-link {
  border-radius: 0;
}

.history-upload-stack > * {
  align-self: start;
}

.history-upload-stack .history-upload-meta-value {
  align-content: start;
}

.history-upload-stack .history-upload-meta-value > * {
  align-self: start;
}

.history-upload-stack .history-upload-meta-label {
  font-weight: 600;
}

.history-upload-stack .history-upload-meta-value {
  font-weight: 500;
}

.history-upload-stack .history-upload-link {
  font-weight: 500;
}

.history-upload-stack .source-badge {
  font-weight: 600;
}

.history-upload-stack .history-upload-meta-label {
  opacity: 0.92;
}

.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  opacity: 1;
}

.history-upload-stack .history-upload-meta-label,
.history-upload-stack .history-upload-meta-value {
  text-wrap: pretty;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  text-wrap: pretty;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge,
.history-upload-stack .history-upload-meta-label,
.history-upload-stack .history-upload-meta-value {
  line-height: 1.4;
}

.history-upload-stack .history-upload-meta-value .source-badge {
  font-size: 0.76rem;
}

.history-upload-stack .history-upload-meta-value .history-upload-link {
  width: fit-content;
}

.history-upload-stack .history-upload-meta-value .source-badge {
  width: fit-content;
}

.history-upload-stack .history-upload-meta-value {
  justify-items: start;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  justify-items: start;
}

.history-upload-stack .history-upload-meta-label {
  text-transform: uppercase;
}

.history-upload-stack .history-upload-meta-value {
  min-width: 0;
}

.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  min-width: 0;
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-neutral {
  border-color: rgba(216,223,239,0.18);
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-empty {
  border-color: rgba(154,163,183,0.18);
}

.history-upload-stack .history-upload-meta-value .history-upload-link.history-upload-neutral {
  color: #8bc6ff;
}

.history-upload-stack .history-upload-meta-value .history-upload-link.history-upload-empty {
  color: var(--muted);
}

.history-upload-stack .history-upload-meta-value .history-upload-link.history-upload-success {
  color: #a6f0bf;
}

.history-upload-stack .history-upload-meta-value .history-upload-link.history-upload-pending {
  color: #ffd782;
}

.history-upload-stack .history-upload-meta-value .history-upload-link.history-upload-error {
  color: #ff9aa9;
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-neutral {
  color: #d8dfef;
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-empty {
  color: var(--muted);
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-success {
  color: #a6f0bf;
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-pending {
  color: #ffd782;
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-error {
  color: #ff9aa9;
}

.history-upload-stack .history-upload-meta-value .source-badge.history-upload-success,
.history-upload-stack .history-upload-meta-value .source-badge.history-upload-pending,
.history-upload-stack .history-upload-meta-value .source-badge.history-upload-error,
.history-upload-stack .history-upload-meta-value .source-badge.history-upload-neutral,
.history-upload-stack .history-upload-meta-value .source-badge.history-upload-empty {
  background: rgba(255,255,255,0.06);
}

.history-upload-stack .history-upload-meta-value .history-upload-link {
  text-decoration: none;
}

.history-upload-stack .history-upload-meta-value .history-upload-link:hover {
  text-decoration: underline;
}

.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value .source-badge {
  justify-self: start;
}

.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-meta-label,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  white-space: normal;
}

.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  text-wrap: pretty;
}

.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge,
.history-upload-stack .history-upload-meta-label {
  max-width: 100%;
}

.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge,
.history-upload-stack .history-upload-meta-label {
  overflow-wrap: anywhere;
}

.history-upload-stack .history-upload-meta-value > *,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  min-width: 0;
}

.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value .source-badge {
  width: fit-content;
}

.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value .source-badge {
  align-self: start;
}

.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value .source-badge {
  justify-self: start;
}

.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value .source-badge {
  align-items: center;
}

.history-upload-stack .history-upload-meta-value .source-badge {
  line-height: 1.2;
}

.history-upload-stack .history-upload-meta-value .history-upload-link {
  line-height: 1.4;
}

.history-upload-stack .history-upload-meta-value .source-badge,
.history-upload-stack .history-upload-meta-value .history-upload-link {
  opacity: 1;
}

.history-upload-stack .history-upload-meta-value .source-badge:hover,
.history-upload-stack .history-upload-meta-value .history-upload-link:hover {
  opacity: 1;
}

.history-upload-stack .history-upload-meta-value .source-badge,
.history-upload-stack .history-upload-meta-value .history-upload-link {
  transition: none;
}

.history-upload-stack .history-upload-meta-value .source-badge:hover,
.history-upload-stack .history-upload-meta-value .history-upload-link:hover {
  transform: none;
}

.history-upload-stack .history-upload-meta-value .history-upload-link:hover {
  text-underline-offset: 2px;
}

.history-upload-stack .history-upload-meta-value .source-badge {
  box-shadow: none;
}

.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value .source-badge {
  border-radius: 999px;
}

.history-upload-stack .history-upload-meta-value .history-upload-link {
  border-radius: 0;
}

.history-upload-stack .history-upload-meta-value .source-badge {
  text-transform: none;
}

.history-upload-stack .history-upload-meta-value .history-upload-link {
  text-transform: none;
}

.history-upload-stack .history-upload-meta-value .source-badge strong,
.history-upload-stack .history-upload-meta-value .source-badge span,
.history-upload-stack .history-upload-meta-value .source-badge a,
.history-upload-stack .history-upload-meta-value .history-upload-link strong,
.history-upload-stack .history-upload-meta-value .history-upload-link span,
.history-upload-stack .history-upload-meta-value .history-upload-link a {
  line-height: inherit;
}

.history-upload-stack .history-upload-meta-value .source-badge strong,
.history-upload-stack .history-upload-meta-value .history-upload-link strong {
  font-weight: inherit;
}

.history-upload-stack .history-upload-meta-value .source-badge span,
.history-upload-stack .history-upload-meta-value .history-upload-link span {
  font-weight: inherit;
}

.history-upload-stack .history-upload-meta-value .source-badge a,
.history-upload-stack .history-upload-meta-value .history-upload-link a {
  font-weight: inherit;
}

.history-upload-stack .history-upload-meta-value .source-badge,
.history-upload-stack .history-upload-meta-value .history-upload-link,
.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-meta-label {
  align-content: start;
}

.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-meta-label {
  justify-content: start;
}

.history-upload-stack .history-upload-meta-value,
.history-upload-stack .history-upload-meta-label,
.history-upload-stack .history-upload-link,
.history-upload-stack .source-badge {
  justify-self: start;
}

.history-upload-stack .history-upload-meta-label {
  letter-spacing: 0.05em;
}

.history-upload-stack .history-upload-meta-value {
  gap: 6px;
}

.history-upload-stack {
  align-content: start;
}

.history-upload-stack .source-badge,
.history-upload-stack .history-upload-link {
  align-self: start;
}

.history-upload-stack .history-upload-meta-value {
  align-content: start;
}

.history-upload-stack .history-upload-meta-value > * {
  align-self: start;
}

.history-copy .history-upload-stack .history-upload-meta-value .history-upload-link {
  text-decoration: none;
}

.history-copy .history-upload-stack .history-upload-meta-value .history-upload-link:hover {
  text-decoration: underline;
}

.history-copy .history-upload-stack .history-upload-meta-value {
  min-width: 0;
}

.history-copy .history-upload-stack .history-upload-meta-value > * {
  min-width: 0;
}

.history-copy .history-upload-stack .history-upload-meta-label,
.history-copy .history-upload-stack .history-upload-meta-value {
  max-width: 100%;
}

.history-copy .history-upload-stack .history-upload-link,
.history-copy .history-upload-stack .source-badge {
  max-width: 100%;
}

.history-copy .history-upload-stack .source-badge {
  overflow-wrap: anywhere;
}

.history-copy .history-upload-stack .history-upload-link {
  overflow-wrap: anywhere;
}

.history-copy .history-upload-stack .history-upload-meta-value {
  overflow-wrap: anywhere;
}

.history-copy .history-upload-stack .history-upload-meta-label {
  overflow-wrap: anywhere;
}

.history-copy .history-upload-stack .history-upload-stack {
  gap: 6px;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label {
  color: var(--muted);
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  color: #d8dfef;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value strong {
  color: white;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value a {
  color: #8bc6ff;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value a:hover {
  text-decoration: underline;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge {
  background: rgba(255,255,255,0.06);
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge strong,
.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge span,
.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge a {
  color: inherit;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge.history-upload-success {
  color: #a6f0bf;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge.history-upload-pending {
  color: #ffd782;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge.history-upload-error {
  color: #ff9aa9;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge.history-upload-neutral {
  color: #d8dfef;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge.history-upload-empty {
  color: var(--muted);
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge {
  border-color: rgba(255,255,255,0.12);
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .history-upload-link {
  color: #8bc6ff;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .history-upload-link:hover {
  text-decoration: underline;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label,
.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  font-size: inherit;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge,
.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .history-upload-link {
  font-size: 0.8rem;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value .source-badge {
  padding: 5px 9px;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  gap: 6px;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label {
  letter-spacing: 0.05em;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  line-height: 1.4;
}

.history-copy .history-upload-stack .history-upload-stack {
  align-content: start;
}

.history-copy .history-upload-stack .history-upload-stack > * {
  align-self: start;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge,
.history-copy .history-upload-stack .history-upload-stack .history-upload-link {
  align-self: start;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  align-content: start;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value > * {
  align-self: start;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link,
.history-copy .history-upload-stack .history-upload-stack .source-badge {
  justify-self: start;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label {
  text-transform: uppercase;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value strong,
.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value span {
  line-height: inherit;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value a {
  line-height: inherit;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge {
  line-height: 1.2;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge {
  font-weight: 600;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link {
  font-weight: 500;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label {
  font-weight: 600;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  font-weight: 500;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link strong,
.history-copy .history-upload-stack .history-upload-stack .history-upload-link span {
  font-weight: inherit;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge strong,
.history-copy .history-upload-stack .history-upload-stack .source-badge span {
  font-weight: inherit;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link a,
.history-copy .history-upload-stack .history-upload-stack .source-badge a {
  font-weight: inherit;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  opacity: 1;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label {
  opacity: 0.92;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link,
.history-copy .history-upload-stack .history-upload-stack .source-badge {
  opacity: 1;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link:hover,
.history-copy .history-upload-stack .history-upload-stack .source-badge:hover {
  opacity: 1;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge:hover {
  transform: none;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link:hover {
  transform: none;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge,
.history-copy .history-upload-stack .history-upload-stack .history-upload-link {
  transition: none;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link {
  text-decoration-thickness: 1px;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link:hover {
  text-underline-offset: 2px;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge {
  box-shadow: none;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge,
.history-copy .history-upload-stack .history-upload-stack .history-upload-link,
.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label,
.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  white-space: normal;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge {
  border-radius: 999px;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link {
  border-radius: 0;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-value {
  text-wrap: pretty;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-meta-label {
  text-wrap: pretty;
}

.history-copy .history-upload-stack .history-upload-stack .history-upload-link {
  text-wrap: pretty;
}

.history-copy .history-upload-stack .history-upload-stack .source-badge {
  text-wrap: pretty;
}

.jobs-list {
  display: grid;
  gap: 10px;
}

.job-item {
  display: grid;
  gap: 12px;
}

.job-copy {
  display: grid;
  gap: 4px;
}

.job-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trim-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.progress-block,
.info-item,
.editor-panel,
.history-panel,
.converter-form,
.workflow-step,
.jobs-panel,
.job-item,
.trim-panel {
  padding: 16px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #10131b;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ff577f);
  transition: width 220ms ease;
}

.latest-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.info-item strong {
  display: block;
  word-break: break-word;
}

.editor-panel.is-hidden,
.history-panel.is-hidden {
  display: none;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.editor-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.media-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(255, 0, 79, 0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

.media-thumb {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.media-thumb.is-hidden {
  display: none;
}

.media-copy {
  display: grid;
  gap: 6px;
}

.media-copy strong {
  font-size: 1rem;
}

.media-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.editor-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.editor-meta-premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-meta div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #10131b;
  border: 1px solid var(--line);
}

.editor-meta-premium div {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.editor-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

.history-copy {
  display: grid;
  gap: 4px;
}

.history-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.trim-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.waveform {
  position: relative;
  min-height: 220px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0c121b, #111826);
  border: 1px solid #283242;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: crosshair;
  margin-top: 4px;
}

.waveform-premium {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 40px rgba(0,0,0,0.24);
}

.waveform::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%, transparent 70%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.waveform-svg {
  display: block;
  width: 100%;
  height: 220px;
}

.waveform-center-line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.waveform-rect {
  fill: #6db4ff;
}

.waveform-rect.is-active {
  fill: #ff87ab;
}

.waveform-selection {
  fill: rgba(255, 0, 79, 0.12);
}

.waveform-rect.is-in-trim {
  fill: #8bc6ff;
}

.waveform-playhead-line {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2;
}

.trim-handle {
  position: absolute;
  top: 0;
  width: 14px;
  height: 100%;
  margin-left: -7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.65));
  box-shadow: 0 0 0 1px rgba(12, 18, 27, 0.5), 0 8px 18px rgba(0, 0, 0, 0.28);
  cursor: ew-resize;
  z-index: 2;
}

.preview-player {
  width: 100%;
  margin-top: 14px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.preset-button.is-selected {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: white;
  border-color: transparent;
}

.export-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 0, 79, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 0, 79, 0.16);
}

.export-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.export-panel-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.export-eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.export-summary {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
}

.export-setting-group {
  display: grid;
  gap: 8px;
}

.export-setting-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.export-format-group,
.export-quality-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.export-format-button.is-selected,
.export-quality-button.is-selected {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: white;
  border-color: transparent;
}

.history-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.editor-control {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #10131b;
  border: 1px solid var(--line);
}

.editor-control span {
  color: var(--muted);
  font-size: 0.9rem;
}

.editor-control input[type="range"] {
  width: 100%;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text);
}

.editor-actions {
  margin-top: 16px;
}

.log-output {
  margin: 0;
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #0e1118;
  border: 1px solid var(--line);
  color: #d9e1f2;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .converter-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  .converter-card {
    padding: 16px;
  }

  .actions-row,
  .editor-grid,
  .media-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .waveform,
  .waveform-svg {
    min-height: 180px;
    height: 180px;
  }
}
