:root {
  --bg: #080a10;
  --card: #10131c;
  --card2: #151a26;
  --line: #272e3e;
  --muted: #929aad;
  --text: #eef2f8;
  --gold: #e7bb6e;
  --cyan: #6fd7e3;
  --violet: #806dff;
  --red: #ff6f78;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(
    circle at 50% -20%,
    #20263b 0,
    #0b0e16 36%,
    var(--bg) 70%
  );
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.13;
  pointer-events: none;
}
.ambient-a {
  width: 420px;
  height: 420px;
  background: var(--violet);
  top: 18%;
  left: -220px;
}
.ambient-b {
  width: 360px;
  height: 360px;
  background: var(--gold);
  right: -180px;
  top: 50%;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid #ffffff10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
  background: #080a10d9;
  backdrop-filter: blur(18px);
}
.project-switcher {
  position: relative;
  min-width: 0;
}
.project-switcher-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(460px, 50vw);
  height: 44px;
  padding: 6px 12px;
  border: 1px solid #e7bb6e70;
  border-radius: 11px;
  color: var(--text);
  background: linear-gradient(110deg, #e7bb6e12, #806dff0d);
  cursor: pointer;
  text-align: left;
}
.project-switcher-trigger:hover,
.project-switcher-trigger[aria-expanded="true"] {
  border-color: var(--gold);
  background: linear-gradient(110deg, #e7bb6e22, #806dff18);
}
.project-switcher-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.current-project-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-switcher-chevron {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.project-switcher-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(650px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid #ffffff1c;
  border-radius: 16px;
  background: #111620f5;
  box-shadow: 0 22px 70px #000b;
  backdrop-filter: blur(22px);
}
.project-switcher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.project-switcher-head h3 {
  margin: 3px 0 0;
  font-size: 19px;
}
.project-switcher-list {
  display: grid;
  gap: 8px;
  max-height: min(620px, 70vh);
  overflow-y: auto;
}
.project-switcher-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #ffffff04;
}
.project-switcher-option:hover,
.project-switcher-option.current {
  border-color: #e7bb6e55;
}
.project-switcher-option.current {
  background: #e7bb6e0b;
}
.project-switcher-select {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 4px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.project-switcher-select span {
  min-width: 0;
}
.project-switcher-select b,
.project-switcher-select small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-switcher-select b {
  font-size: 14px;
}
.project-switcher-select small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.project-switcher-select em {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
}
.project-rename {
  width: 34px;
  height: 34px;
  align-self: center;
  border: 1px solid #ffffff1c;
  border-radius: 9px;
  color: var(--muted);
  background: #ffffff06;
  cursor: pointer;
  font-size: 15px;
}
.project-rename:hover {
  color: var(--gold);
  border-color: #e7bb6e66;
}
.project-rename-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  padding-top: 2px;
}
.project-name-input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e7bb6e66;
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: #080b12;
}
.project-name-save,
.project-name-cancel {
  padding: 0 12px;
  border: 1px solid #ffffff1c;
  border-radius: 9px;
  color: var(--text);
  background: #ffffff08;
  cursor: pointer;
}
.project-name-save {
  border-color: #e7bb6e80;
  color: #16110a;
  background: var(--gold);
}
.project-switcher-empty {
  padding: 28px 14px;
  color: var(--muted);
  text-align: center;
}
.single {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.single i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #51e0aa;
  box-shadow: 0 0 12px #51e0aa;
  margin-right: 8px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.comparison-entry {
  border: 1px solid #e7bb6e70;
  border-radius: 10px;
  padding: 9px 16px;
  color: #f4d396;
  background: linear-gradient(110deg, #e7bb6e16, #806dff12);
  font: 600 12px/1 Inter, "PingFang SC", sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
  transition: .2s;
}
.comparison-entry:hover {
  border-color: var(--gold);
  background: linear-gradient(110deg, #e7bb6e28, #806dff20);
  transform: translateY(-1px);
}
body.comparison-open {
  overflow: hidden;
}
.comparison-showcase {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 16px;
  background: radial-gradient(circle at 50% -20%, #242c46 0, #0a0d15 42%, #05070b 100%);
}
.comparison-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comparison-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}
.comparison-picker-head h3 {
  margin: 3px 0;
  font-weight: 600;
}
.comparison-header-actions,
.comparison-picker-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.comparison-close {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  color: var(--text);
  background: #ffffff08;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.comparison-close:hover {
  background: #ffffff14;
}
.comparison-empty {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  border: 1px dashed #ffffff22;
  border-radius: 18px;
  background: #ffffff03;
}
.comparison-empty b {
  font-size: 18px;
}
.comparison-empty p {
  max-width: 530px;
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}
.comparison-grid {
  --comparison-columns: 2;
  --comparison-rows: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--comparison-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--comparison-rows), minmax(0, 1fr));
  gap: 10px;
}
.comparison-tile {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 18px 48px #0006;
  transition: border-color .2s, opacity .2s, transform .2s;
}
.comparison-tile[draggable="true"] {
  cursor: grab;
}
.comparison-tile.dragging {
  opacity: .45;
  transform: scale(.985);
}
.comparison-tile.drag-target {
  border-color: var(--gold);
}
.comparison-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.comparison-tile-name {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 78px);
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid #ffffff20;
  border-radius: 7px;
  color: #fff;
  background: #090b11b5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.comparison-tile-actions {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comparison-tile-action {
  height: 30px;
  min-width: 30px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  padding: 0 8px;
  color: #fff;
  background: #090b11c9;
  cursor: pointer;
}
.comparison-tile-action.active {
  color: #151108;
  border-color: var(--gold);
  background: var(--gold);
}
.comparison-single-viewer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: #000;
}
.comparison-single-viewer video,
.comparison-single-viewer video:fullscreen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.comparison-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.comparison-control,
.comparison-play {
  height: 38px;
  border: 1px solid #ffffff22;
  border-radius: 9px;
  color: var(--text);
  background: #ffffff08;
  cursor: pointer;
}
.comparison-control {
  width: 40px;
  font-size: 20px;
}
.comparison-play {
  min-width: 118px;
  padding: 0 16px;
  border-color: #e7bb6e60;
  color: #f7d99e;
}
.comparison-controls input[type="range"] {
  flex: 1;
  min-width: 100px;
  accent-color: var(--gold);
}
.comparison-controls > span {
  min-width: 100px;
  color: #cbd1dc;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.comparison-controls > small {
  color: var(--muted);
  font-size: 10px;
}
.comparison-picker {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #020306c7;
  backdrop-filter: blur(8px);
}
.comparison-picker-card {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #ffffff1d;
  border-radius: 18px;
  background: #111620;
  box-shadow: 0 30px 100px #000b;
}
.comparison-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.comparison-project-list {
  min-height: 120px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
}
.comparison-project-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  background: #ffffff04;
  cursor: pointer;
}
.comparison-project-option:hover {
  border-color: #e7bb6e55;
}
.comparison-project-option.disabled {
  opacity: .48;
  cursor: not-allowed;
}
.comparison-project-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}
.comparison-project-copy {
  min-width: 0;
}
.comparison-project-copy b,
.comparison-project-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.comparison-project-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.comparison-project-status {
  color: #51e0aa;
  font-size: 10px;
}
.comparison-project-status.stale {
  color: #ffc276;
}
.comparison-picker-actions {
  justify-content: flex-end;
}
.comparison-showcase:fullscreen {
  padding: 12px;
}
.comparison-showcase.hidden,
.comparison-picker.hidden,
.comparison-grid.hidden,
.comparison-empty.hidden,
.comparison-controls.hidden {
  display: none;
}
main {
  width: min(1220px, calc(100% - 40px));
  margin: auto;
  padding-bottom: 100px;
}
.hero {
  text-align: center;
  padding: 72px 0 45px;
}
.eyebrow,
.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
}
.hero h1 {
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
  margin: 15px 0;
}
.hero em {
  font-style: normal;
  background: linear-gradient(105deg, #fff1c7, #d0a85f 45%, #a89cff);
  -webkit-background-clip: text;
  color: transparent;
}
.hero > p:last-child {
  color: var(--muted);
  font-size: 15px;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 850px;
  margin: 0 auto 32px;
  position: relative;
}
.stepper:before {
  content: "";
  height: 1px;
  background: var(--line);
  position: absolute;
  left: 12%;
  right: 12%;
  top: 16px;
}
.step {
  position: relative;
  text-align: center;
  color: #636b7e;
  font-size: 12px;
}
.step i {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  background: var(--bg);
  font-style: normal;
}
.step.active {
  color: var(--text);
}
.step.active i {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 5px #e7bb6e12;
}
.step.done i {
  background: var(--gold);
  color: #161109;
  border-color: var(--gold);
}
.panel {
  background: linear-gradient(145deg, #121620ee, #0d1018ee);
  border: 1px solid #ffffff12;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 24px 80px #0004;
}
.clone-project-row {
  display: flex;
  justify-content: flex-end;
  margin: -2px 4px 20px;
}
.clone-project-row .button {
  border-color: #e7bb6e66;
  color: #f3ce8c;
  background: linear-gradient(110deg, #e7bb6e0d, #806dff0d);
}
.upload-panel {
  padding: 10px;
}
.dropzone {
  border: 1px dashed #3b4357;
  border-radius: 16px;
  text-align: center;
  padding: 56px 20px;
  transition: 0.2s;
  background: linear-gradient(180deg, #ffffff03, #ffffff00);
}
.dropzone.drag {
  border-color: var(--gold);
  background: #e7bb6e08;
}
.upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  background: #e7bb6e12;
  color: var(--gold);
  font-size: 26px;
}
.dropzone h2 {
  font-size: 22px;
  margin: 18px 0 7px;
}
.dropzone p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
}
.button {
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.primary {
  background: linear-gradient(110deg, #d5a85b, #f0cf8b);
  color: #19130b;
  box-shadow: 0 8px 28px #d8ab6030;
}
.ghost {
  border: 1px solid var(--line);
  background: #ffffff08;
}
.hidden {
  display: none !important;
}
.uploading {
  padding: 25px;
}
.between {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.grow {
  flex: 1;
}
.bar {
  height: 5px;
  border-radius: 10px;
  background: #252b3a;
  overflow: hidden;
  margin-top: 11px;
}
.bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold));
  transition: width 0.5s;
  border-radius: inherit;
}
.source-card {
  display: grid;
  grid-template-columns: 1fr 330px;
  align-items: center;
  gap: 30px;
}
.source-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}
.source-card p {
  color: var(--muted);
}
.source-card video {
  width: 100%;
  max-height: 190px;
  border-radius: 12px;
  background: #000;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
}
.kicker {
  margin: 0;
}
.badge {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.running {
  border-color: #6fd7e366;
  color: var(--cyan);
}
.badge.completed {
  border-color: #51e0aa66;
  color: #51e0aa;
}
.badge.failed {
  border-color: #ff6f7866;
  color: var(--red);
}
.locked {
  opacity: 0.48;
  pointer-events: none;
}
.progress-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: #090c13;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.radar {
  position: relative;
  width: 50px;
  height: 50px;
  border: 1px solid #6fd7e344;
  border-radius: 50%;
  flex: none;
}
.radar:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #6fd7e322;
  border-radius: 50%;
}
.radar i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 1.7s infinite;
}
.radar i:nth-child(1) {
  left: 12px;
  top: 14px;
}
.radar i:nth-child(2) {
  right: 9px;
  top: 25px;
  animation-delay: 0.6s;
}
.radar i:nth-child(3) {
  left: 25px;
  bottom: 8px;
  animation-delay: 1.1s;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 12px 5px #6fd7e344;
    transform: scale(1.7);
  }
}
.resource-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.resource-columns h3,
.mapping-grid + h3 {
  font-size: 14px;
}
.resource-list {
  display: grid;
  gap: 8px;
}
.resource {
  border: 1px solid var(--line);
  background: #ffffff03;
  padding: 12px;
  border-radius: 11px;
}
.resource b {
  font-size: 13px;
  color: #f1d293;
}
.resource p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.55;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}
.tab {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 11px 13px;
  cursor: pointer;
}
.tab.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.timeline {
  white-space: pre-wrap;
  overflow: auto;
  background: #080a10;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  color: #cbd2df;
  font:
    12px/1.75 "SFMono-Regular",
    Consolas,
    monospace;
  max-height: 560px;
}
.direction-row {
  display: flex;
  gap: 12px;
}
.direction-row textarea,
.compare textarea {
  background: #090c13;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  outline: none;
  resize: vertical;
}
.direction-row textarea {
  flex: 1;
  min-height: 72px;
}
.dialogue-language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #6fd7e333;
  border-radius: 12px;
  background: #6fd7e308;
}
.dialogue-language-row b,
.dialogue-language-row small {
  display: block;
}
.dialogue-language-row b {
  font-size: 12px;
}
.dialogue-language-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.dialogue-language-control {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dialogue-language-control input {
  width: 180px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #090c13;
  color: var(--text);
}
.dialogue-language-control input:focus {
  border-color: #6fd7e388;
}
.motion {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  background: linear-gradient(100deg, #17142b, #0d1720);
  border: 1px solid #7768d844;
  border-radius: 14px;
  padding: 18px;
}
.orbit {
  width: 58px;
  height: 58px;
  border: 1px solid #8b7fff;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  color: #b7adff;
}
.orbit i {
  position: absolute;
  inset: -7px;
  border-top: 1px solid var(--cyan);
  border-radius: 50%;
  animation: spin 1.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.motion-copy {
  flex: 1;
}
.motion-copy p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
}
.summary {
  margin: 24px 0;
  padding: 17px;
  border: 1px solid #e7bb6e30;
  background: #e7bb6e08;
  border-radius: 12px;
}
.summary span {
  font-size: 11px;
  color: var(--gold);
}
.summary p {
  margin: 6px 0 0;
}
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.mapping {
  border: 1px solid var(--line);
  background: #0a0d14;
  border-radius: 12px;
  padding: 13px;
}
.mapping .route {
  display: grid;
  grid-template-columns: 1fr 25px 1fr;
  align-items: center;
  gap: 7px;
}
.mapping input,
.mapping textarea {
  width: 100%;
  border: 1px solid transparent;
  background: #ffffff08;
  color: var(--text);
  border-radius: 7px;
  padding: 8px;
  font: inherit;
}
.mapping textarea {
  min-height: 85px;
  margin-top: 9px;
  resize: vertical;
  font-size: 11px;
  color: #b8c0ce;
}
.mapping .arrow {
  text-align: center;
  color: var(--gold);
}
.mapping > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}
.asset-workflow {
  margin: 22px 0 26px;
  padding: 16px;
  border: 1px solid #e7bb6e30;
  background: #e7bb6e06;
  border-radius: 12px;
}
.asset-workflow .section-head {
  align-items: center;
  margin-bottom: 8px;
}
.asset-workflow h3 {
  margin: 4px 0 0;
}
.asset-workflow-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 13px;
}
.asset-workflow-actions span {
  color: var(--muted);
  font-size: 11px;
}
.mapping-asset {
  overflow: hidden;
  margin: 14px -13px -13px;
  border-top: 1px solid var(--line);
  background: #070910;
  border-radius: 0 0 12px 12px;
}
.mapping-asset > img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #050609;
}
.mapping-asset-meta,
.mapping-asset-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
}
.mapping-asset-meta > span,
.mapping-asset-empty > span {
  color: var(--muted);
  font-size: 11px;
}
.mapping-asset-empty {
  min-height: 58px;
  background: linear-gradient(90deg, #ffffff02, #ffffff06);
}
.source-id {
  font-size: 12px;
  color: var(--muted);
}
.compare-head,
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compare-head h3 {
  margin-bottom: 2px;
}
.compare-head small {
  color: var(--muted);
}
.compare .timeline,
.compare textarea {
  height: 560px;
  max-height: none;
  margin: 8px 0 0;
}
.compare textarea {
  font:
    12px/1.75 "SFMono-Regular",
    Consolas,
    monospace;
}
.compare.streaming textarea {
  border-color: #6fd7e366;
  box-shadow: inset 0 0 28px #6fd7e308;
}
#localizedTimelineStatus {
  color: var(--cyan);
  transition: color 0.2s;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 16px;
}
.actions span {
  font-size: 12px;
  color: var(--muted);
}
.progress-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.asset {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #090b11;
}
.asset img {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: cover;
  background: #050609;
}
.asset .asset-meta {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.asset-title {
  min-width: 0;
}
.asset b {
  font-size: 13px;
}
.asset small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.asset-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  flex: none;
}
.asset-controls label {
  font-size: 10px;
  color: var(--muted);
}
.asset-controls select {
  margin-top: 3px;
  padding: 7px 26px 7px 9px;
}
.button.small {
  padding: 8px 11px;
  font-size: 11px;
}
.generate-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.generate-row label {
  font-size: 12px;
  color: var(--muted);
}
.generate-options {
  display: flex;
  align-items: end;
  gap: 26px;
}
.subtitle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding-bottom: 3px;
}
.subtitle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.subtitle-switch > i {
  position: relative;
  width: 42px;
  height: 23px;
  border-radius: 20px;
  background: #252b38;
  border: 1px solid #3a4355;
  transition: 0.2s;
}
.subtitle-switch > i::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #a8b0c0;
  transition: 0.2s;
}
.subtitle-switch input:checked + i {
  background: #51e0aa33;
  border-color: #51e0aaaa;
}
.subtitle-switch input:checked + i::after {
  transform: translateX(19px);
  background: #51e0aa;
}
.subtitle-switch span {
  display: grid;
  gap: 2px;
}
.subtitle-switch b {
  color: var(--text);
  font-size: 12px;
}
.subtitle-switch small {
  color: var(--muted);
  font-size: 10px;
}
.subtitle-state {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.subtitle-state strong {
  color: var(--cyan);
}
select {
  display: block;
  margin-top: 6px;
  background: #090c13;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 30px 10px 10px;
}
.segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.segment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #090b11;
  min-width: 0;
}
.segment-card.failed {
  border-color: #ff6f7855;
}
.segment-card video,
.segment-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16/9;
  background: #050609;
  color: var(--muted);
  font-size: 12px;
  object-fit: contain;
}
.segment-card video::cue {
  color: #fff;
  background-color: transparent;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 9px;
  line-height: 1.22;
  text-shadow: 0 1px 2px #000, 0 0 4px #000, 0 0 7px #000;
}
.segment-card video::cue(.zh) {
  background-color: transparent;
  font-size: 10px;
  font-weight: 700;
}
.segment-card video::cue(.foreign) {
  background-color: transparent;
  font-size: 8.5px;
  font-weight: 500;
}
.segment-card video:fullscreen::cue {
  font-size: clamp(22px, 1.55vw, 32px);
  line-height: 1.22;
  background-color: transparent;
  text-shadow: 0 2px 3px #000, 0 0 6px #000, 0 0 10px #000;
}
.segment-card video:fullscreen::cue(.zh) {
  font-size: clamp(26px, 1.8vw, 38px);
  background-color: transparent;
}
.segment-card video:fullscreen::cue(.foreign) {
  font-size: clamp(21px, 1.45vw, 30px);
  background-color: transparent;
}
.segment-card-body {
  padding: 12px;
}
.segment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.segment-card-head b {
  font-size: 13px;
}
.segment-status {
  font-size: 10px;
  color: #51e0aa;
  border: 1px solid #51e0aa55;
  border-radius: 20px;
  padding: 3px 7px;
}
.segment-card.failed .segment-status {
  color: var(--red);
  border-color: #ff6f7855;
}
.segment-card.planned .segment-status {
  color: var(--muted);
  border-color: var(--line);
}
.segment-card-body > p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.segment-error {
  color: #ff9ca3 !important;
}
.segment-regenerate {
  flex: 1;
  min-width: 0;
}
.segment-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
}
.segment-controls label {
  color: var(--muted);
  font-size: 10px;
}
.segment-controls select {
  margin-top: 3px;
  min-width: 76px;
  padding: 7px 26px 7px 9px;
}
.segment-controls > select {
  align-self: stretch;
  margin-top: 0;
}
.final-film {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.final-film video {
  display: block;
  width: min(850px, 100%);
  max-height: 600px;
  background: #000;
  border-radius: 14px;
  margin: 10px 0 16px;
}
.final-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.button.disabled {
  opacity: 0.48;
  pointer-events: none;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 430px;
  padding: 13px 16px;
  background: #1b202c;
  border: 1px solid #ffffff22;
  border-radius: 10px;
  box-shadow: 0 10px 50px #0009;
  transform: translateY(100px);
  opacity: 0;
  transition: 0.25s;
  z-index: 50;
  font-size: 13px;
}
.toast.show {
  transform: none;
  opacity: 1;
}
.toast.error {
  border-color: #ff6f7866;
  color: #ffabb1;
}
@media (max-width: 800px) {
  main {
    width: min(100% - 22px, 1220px);
  }
  .topbar {
    padding: 0 14px;
  }
  .project-switcher-trigger {
    width: min(58vw, 390px);
  }
  .project-switcher-label {
    display: none;
  }
  .single {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
  .comparison-entry {
    padding: 8px 10px;
    font-size: 11px;
  }
  .comparison-showcase {
    padding: 8px;
  }
  .comparison-header {
    align-items: center;
    flex-wrap: wrap;
  }
  .comparison-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: none;
    overflow: auto;
  }
  .comparison-tile {
    min-height: 220px;
  }
  .comparison-controls {
    order: 2;
    flex-basis: 100%;
  }
  .comparison-controls input[type="range"] {
    min-width: 70px;
  }
  .hero {
    padding: 45px 0 30px;
  }
  .hero h1 {
    font-size: 41px;
  }
  .stepper {
    font-size: 10px;
  }
  .panel {
    padding: 18px;
  }
  .source-card,
  .resource-columns,
  .mapping-grid,
  .compare,
  .compare-head {
    grid-template-columns: 1fr;
  }
  .source-card video {
    max-height: 260px;
  }
  .direction-row,
  .generate-row {
    align-items: stretch;
    flex-direction: column;
  }
  .dialogue-language-row {
    align-items: stretch;
    flex-direction: column;
  }
  .dialogue-language-control input {
    flex: 1;
    width: auto;
  }
  .generate-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .direction-row .button {
    align-self: flex-end;
  }
  .compare-head {
    display: none;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .asset .asset-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .asset-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .motion {
    align-items: flex-start;
  }
  .segments {
    grid-template-columns: 1fr;
  }
}
