:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --glass: rgba(25, 28, 32, 0.72);
  --glass-strong: rgba(19, 22, 26, 0.88);
  --line: rgba(235, 241, 246, 0.11);
  --line-strong: rgba(242, 247, 250, 0.2);
  --text: #f5f7f8;
  --muted: rgba(232, 237, 241, 0.58);
  --soft: rgba(226, 232, 237, 0.35);
  --cyan: #d6e0e7;
  --cyan-bright: #ffffff;
  --cyan-deep: #9aa8b4;
  --amber: #d7c397;
  --green: #bed7c7;
  --danger: #d9b09b;
  --radius: 22px;
  --caption-font: "Arial", "PingFang SC", "Microsoft Yahei", sans-serif;
  --caption-font-zh: "PingFang SC", "Microsoft Yahei", sans-serif;
  --caption-font-en: Inter, "Helvetica Neue", Arial, sans-serif;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 105%, rgba(154, 168, 180, .1), transparent 38%),
    linear-gradient(135deg, #07090b 0%, #111419 48%, #090b0e 100%);
  color: var(--text);
  font-size: 13px;
  letter-spacing: .01em;
}
button, textarea, input { font: inherit; }
button { cursor: pointer; }
svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ambient { position: fixed; border-radius: 999px; filter: blur(18px); opacity: .62; pointer-events: none; }
.ambient-a { width: 390px; height: 280px; top: -130px; right: 10%; background: rgba(218, 227, 234, .08); }
.ambient-b { width: 360px; height: 420px; bottom: -250px; left: 23%; background: rgba(161, 174, 186, .07); }
.ambient-c { width: 220px; height: 200px; top: 35%; left: -80px; background: rgba(218, 224, 230, .045); }
.glass {
  background: linear-gradient(145deg, rgba(39, 43, 48, .72), rgba(16, 19, 23, .8));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 16px 44px rgba(0, 0, 0, .18);
  backdrop-filter: blur(28px) saturate(108%);
  -webkit-backdrop-filter: blur(28px) saturate(108%);
}
.panel { border-radius: var(--radius); }

.rail {
  position: fixed;
  top: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  width: 66px;
  align-items: center;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 24px;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(242, 247, 250, .38);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(238, 244, 248, .22), rgba(159, 172, 182, .06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px rgba(0, 0, 0, .18);
  color: var(--cyan-bright);
  font-size: 15px;
  font-weight: 700;
}
.rail-nav, .rail-bottom { display: flex; align-items: center; flex-direction: column; gap: 8px; }
.rail-nav { margin-top: 54px; }
.rail-bottom { margin-top: auto; }
.rail-btn, .mini-icon, .transport-btn, .style-btn {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  transition: .25s ease;
}
.rail-btn:hover, .rail-btn.active {
  background: rgba(225, 233, 239, .1);
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.rail-btn svg { width: 19px; height: 19px; }
.avatar {
  width: 38px;
  height: 38px;
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #d9efed, #80b5b3);
  color: #133039;
  font-size: 10px;
  font-weight: 800;
}

.app-shell { height: 100vh; margin-left: 92px; padding: 14px 14px 14px 0; }
.topbar {
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-radius: 24px;
}
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: var(--soft); }
.title-row { display: flex; align-items: center; gap: 13px; margin-top: 6px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 19px; font-weight: 620; letter-spacing: -.04em; }
h1 span { color: var(--muted); font-weight: 480; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
h3 { font-size: 13px; font-weight: 620; }
.status-chip, .auto-label, .pass-label {
  border: 1px solid rgba(158, 233, 186, .16);
  border-radius: 999px;
  color: var(--green);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
}
.status-chip { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: rgba(76, 151, 106, .08); }
.status-chip b, .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.cloud-state { display: flex; align-items: center; gap: 9px; margin-right: 8px; }
.cloud-state svg { width: 22px; height: 22px; color: var(--cyan); }
.cloud-state div { display: grid; gap: 2px; }
.cloud-state small { color: var(--soft); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.cloud-state strong { color: var(--muted); font-size: 10px; font-weight: 600; }
.button {
  display: inline-flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: .22s ease;
}
.button svg { width: 15px; height: 15px; }
.button.subtle { background: rgba(235, 240, 244, .04); }
.button.subtle:hover { background: rgba(235, 240, 244, .09); border-color: var(--line-strong); }
.button.primary {
  border-color: rgba(244, 247, 249, .32);
  background: linear-gradient(145deg, rgba(246, 249, 250, .96), rgba(195, 205, 213, .9));
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(0, 0, 0, .18);
  color: #171b1f;
}
.button.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgba(0, 0, 0, .26); }
.button:disabled { cursor: default; opacity: .62; transform: none !important; }
.full-width { width: 100%; }

.workspace {
  display: grid;
  height: calc(100vh - 86px);
  grid-template-columns: 246px minmax(600px, 1fr) 286px;
  gap: 10px;
  padding-top: 10px;
}
.asset-panel, .inspector { overflow: auto; }
.asset-panel { padding: 17px 15px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-heading h2 { margin-top: 5px; }
.panel-heading.compact h2 { font-size: 15px; }
.mini-icon {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 20px;
  transition: .2s;
}
.mini-icon svg { width: 14px; height: 14px; }
.mini-icon:hover { color: var(--cyan); background: rgba(225,233,239,.08); }
.upload-card {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  margin-top: 14px;
  padding: 17px 8px 15px;
  border: 1px dashed rgba(225, 233, 239, .16);
  border-radius: 16px;
  background: rgba(225, 233, 239, .025);
  color: var(--muted);
  transition: .22s ease;
}
.upload-card:hover { border-color: rgba(225, 233, 239, .34); background: rgba(225, 233, 239, .06); }
.upload-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 12px;
  background: rgba(225, 233, 239, .08);
  color: var(--cyan);
}
.upload-icon svg { width: 17px; height: 17px; }
.upload-card strong { color: var(--text); font-size: 11px; font-weight: 650; }
.upload-card small { margin-top: 4px; color: var(--soft); font-size: 9px; }
.source-card, .font-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(236, 254, 255, .025);
}
.source-card { margin-top: 9px; padding: 8px; }
.source-thumbnail {
  display: grid;
  width: 42px;
  height: 40px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(104, 116, 127, .58), rgba(27, 31, 36, .86));
  line-height: .8;
}
.source-thumbnail span { align-self: end; color: var(--cyan-bright); font-size: 15px; font-weight: 700; }
.source-thumbnail small { align-self: start; color: var(--muted); font-size: 7px; font-weight: 800; }
.source-info, .font-info { display: grid; min-width: 0; gap: 4px; }
.source-info strong, .font-info strong { overflow: hidden; color: rgba(246,251,252,.9); font-size: 10px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.source-info span, .font-info span { color: var(--soft); font-size: 9px; }
.verified-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-left: auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(158,233,186,.7); }
.divider { height: 1px; margin: 16px 0; background: var(--line); }
.subtitle-mode-group {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(235,241,246,.08);
}
.subtitle-mode-label {
  color: var(--soft);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
}
.subtitle-mode-switch, .language-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.mode-button, .language-button {
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
  transition: .18s ease;
}
.mode-button:hover, .language-button:hover { color: var(--muted); }
.mode-button.active, .language-button.active { background: rgba(225,233,239,.12); color: var(--cyan-bright); }
.language-option-group { display: grid; gap: 6px; margin-top: 9px; }
.language-option-group > span, .font-language { color: var(--soft); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.bilingual-options { display: grid; gap: 9px; }
.same-font-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.same-font-toggle span { display: grid; gap: 3px; }
.same-font-toggle strong { color: var(--muted); font-size: 9px; }
.same-font-toggle small { color: var(--soft); font-size: 8px; }
.same-font-toggle input { display: none; }
.same-font-toggle i { position: relative; width: 26px; height: 14px; flex: 0 0 26px; border-radius: 14px; background: rgba(255,255,255,.16); transition: .18s ease; }
.same-font-toggle i::after { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); content: ""; transition: .18s ease; }
.same-font-toggle input:checked + i { background: rgba(158,233,186,.46); }
.same-font-toggle input:checked + i::after { left: 14px; background: var(--cyan-bright); }
.font-upload-list { display: grid; gap: 7px; margin-top: 9px; }
.font-card { padding: 8px; color: var(--muted); text-align: left; }
.font-card:hover { border-color: var(--line-strong); background: rgba(236,254,255,.06); }
.font-preview {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(235, 240, 244, .18), rgba(149, 160, 170, .08));
  color: var(--cyan-bright);
  font-size: 17px;
  letter-spacing: -.08em;
}
.font-card svg { width: 14px; height: 14px; flex: 0 0 14px; margin-left: auto; }
.auto-label, .pass-label { padding: 4px 6px; background: rgba(76,151,106,.08); }
.ratio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; }
.ratio-button {
  display: flex;
  height: 49px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(220, 250, 252, .025);
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  transition: .2s ease;
}
.ratio-button:hover { background: rgba(220,250,252,.07); color: var(--muted); }
.ratio-button.active { border-color: rgba(225,233,239,.32); background: rgba(225,233,239,.11); color: var(--cyan-bright); }
.ratio-shape { display: block; border: 1px solid currentColor; border-radius: 2px; }
.ratio-shape.wide { width: 20px; height: 11px; }
.ratio-shape.tall { width: 8px; height: 15px; }
.ratio-shape.square { width: 14px; height: 14px; }
.ratio-shape.four-three { width: 18px; height: 13px; }
.ratio-shape.three-four { width: 11px; height: 14px; }
.ratio-shape.cinema { width: 21px; height: 10px; }
.ratio-shape.cinema-wide { width: 23px; height: 9px; }
.ratio-shape.three-two { width: 19px; height: 12px; }
.ratio-shape.two-three { width: 11px; height: 16px; }

.editor-column { display: grid; min-width: 0; grid-template-rows: 42px minmax(320px, 1fr) 225px; gap: 10px; }
.monitor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-radius: 16px;
}
.toolbar-left, .toolbar-right, .monitor-tool { display: flex; align-items: center; }
.toolbar-left { gap: 8px; color: var(--soft); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.toolbar-left strong { color: var(--muted); }
.toolbar-separator { width: 1px; height: 13px; margin: 0 3px; background: var(--line); }
.canvas-sync-state {
  padding: 4px 6px;
  border: 1px solid rgba(158, 233, 186, .16);
  border-radius: 999px;
  background: rgba(76, 151, 106, .08);
  color: var(--green);
  font-size: 8px;
  letter-spacing: .08em;
}
.canvas-sync-state.manual {
  border-color: rgba(210, 192, 148, .18);
  background: rgba(210, 192, 148, .08);
  color: var(--amber);
}
.canvas-sync-state.audio {
  border-color: rgba(178, 196, 206, .16);
  background: rgba(178, 196, 206, .07);
  color: var(--muted);
}
.live-dot { width: 5px; height: 5px; }
.toolbar-right { gap: 2px; }
.monitor-tool {
  display: inline-flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.monitor-tool svg { width: 14px; height: 14px; }
.monitor-tool.active, .monitor-tool:hover { background: rgba(225,233,239,.07); color: var(--cyan); }
.monitor-tool.fit-tool {
  margin-left: 3px;
  border: 1px solid rgba(225,233,239,.16);
  background: rgba(225,233,239,.07);
  color: var(--cyan);
}
.monitor-tool:disabled { cursor: default; opacity: .58; }
.monitor-shell {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border-radius: 20px;
}
#monitorShell:fullscreen, #monitorShell:-webkit-full-screen, #monitorShell.focus-mode {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #080a0d;
}
#monitorShell.focus-mode { position: fixed; inset: 0; z-index: 50; }
#monitorShell:fullscreen .monitor-stage-wrap, #monitorShell:-webkit-full-screen .monitor-stage-wrap, #monitorShell.focus-mode .monitor-stage-wrap { padding: 28px; }
.monitor-stage-wrap {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.014) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.014) 75%),
    linear-gradient(45deg, rgba(255,255,255,.014) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.014) 75%),
    #101318;
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}
.monitor-stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(235, 255, 255, .16);
  background: #08131a;
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
  transition: none;
}
.poster-scene, #videoPreview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-scene {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4,18,25,.08), rgba(4,18,25,.78)),
    radial-gradient(circle at 59% 27%, rgba(225, 160, 87, .45), transparent 2%),
    radial-gradient(ellipse at 55% 36%, rgba(35, 141, 155, .62), transparent 44%),
    linear-gradient(135deg, #0c3140, #0b1c28 48%, #031019);
}
.poster-glow {
  position: absolute;
  width: 58%;
  height: 100%;
  right: -7%;
  background: radial-gradient(ellipse, rgba(60,173,170,.25), transparent 62%);
  transform: rotate(-13deg);
}
.poster-grid {
  position: absolute;
  inset: 50% -10% -20%;
  opacity: .22;
  background:
    linear-gradient(rgba(160,245,234,.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,245,234,.42) 1px, transparent 1px);
  background-size: 52px 42px;
  transform: perspective(230px) rotateX(58deg);
}
.poster-road {
  position: absolute;
  width: 31%;
  height: 110%;
  right: 19%;
  bottom: -55%;
  border-left: 1px solid rgba(179,250,241,.36);
  border-right: 1px solid rgba(179,250,241,.2);
  background: linear-gradient(90deg, transparent, rgba(179,250,241,.06), transparent);
  transform: perspective(400px) rotateX(50deg) rotateZ(-8deg);
}
.poster-copy { position: absolute; top: 13%; left: 9%; display: grid; }
.poster-copy span, .poster-copy small { color: rgba(199,244,240,.62); font-size: 7px; font-weight: 750; letter-spacing: .22em; }
.poster-copy strong { margin: 8px 0 10px; color: rgba(233,255,252,.88); font-size: clamp(24px, 5vw, 57px); font-weight: 220; letter-spacing: .06em; line-height: .88; }
.frame { position: absolute; pointer-events: none; }
.frame span {
  position: absolute;
  top: -14px;
  left: -1px;
  color: currentColor;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .13em;
  white-space: nowrap;
}
.safe-outer, .safe-inner { border: 1px solid rgba(245, 248, 250, .72); color: rgba(245, 248, 250, .72); }
.safe-outer { inset: 5%; }
.safe-inner { inset: 10%; border-color: rgba(245, 248, 250, .54); color: rgba(245, 248, 250, .58); }
.safe-inner span { top: auto; bottom: -14px; }
.subtitle-anchor {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 3;
  transition: none;
}
.subtitle-anchor.bottom { bottom: 5%; }
.subtitle-anchor.top { top: 11%; }
.subtitle-text {
  max-width: 100%;
  padding: 0 .18em;
  color: white;
  font-family: var(--caption-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0,0,0,.86), 0 0 14px rgba(0,0,0,.55);
}
.subtitle-text.language-zh { font-family: var(--caption-font-zh); }
.subtitle-text.language-en { font-family: var(--caption-font-en); }
.subtitle-text.secondary { opacity: .96; }
.monitor-badge {
  position: absolute;
  right: 7%;
  bottom: 5%;
  padding: 4px 6px;
  border: 1px solid rgba(225,233,239,.16);
  border-radius: 5px;
  background: rgba(6,20,27,.48);
  color: rgba(225,233,239,.66);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .16em;
}
.playback-bar { position: relative; display: flex; height: 45px; align-items: center; justify-content: space-between; padding: 0 14px; border-top: 1px solid var(--line); }
.timecode { color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .05em; }
.muted-time { color: var(--soft); }
.transport { position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); }
.playback-actions { display: flex; align-items: center; gap: 7px; }
.transport-btn { width: 26px; height: 26px; }
.transport-btn svg { width: 15px; height: 15px; }
.transport-btn:hover, .transport-btn.active { border-radius: 7px; background: rgba(225,233,239,.08); color: var(--cyan); }
.audio-toggle.muted .audio-wave { display: none; }
.volume-slider {
  width: 54px !important;
  height: 3px;
  margin: 0 !important;
}
.play-button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(225,233,239,.26);
  border-radius: 50%;
  background: rgba(225,233,239,.1);
  color: var(--cyan-bright);
}
.play-button svg { width: 16px; height: 16px; transform: translateX(.5px); }

.timeline { min-width: 0; overflow: hidden; }
.timeline-header { display: flex; height: 45px; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); }
.timeline-tabs, .timeline-actions { display: flex; align-items: center; gap: 6px; }
.timeline-tab {
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
}
.timeline-tab.active { color: var(--cyan); background: rgba(225,233,239,.07); }
.small-button {
  display: flex;
  height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(225,233,239,.15);
  border-radius: 8px;
  background: rgba(225,233,239,.06);
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
}
.small-button svg { width: 13px; height: 13px; }
.small-button:disabled { cursor: default; opacity: .78; }
.small-button.completed { border-color: rgba(158,233,186,.18); background: rgba(158,233,186,.07); color: var(--green); }
.timeline-tool {
  display: flex;
  height: 27px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.timeline-tool svg { width: 13px; height: 13px; }
.timeline-tool:hover, .timeline-tool.active { border-color: rgba(225,233,239,.26); background: rgba(225,233,239,.1); color: var(--cyan); }
.timeline-tool.active { box-shadow: inset 0 0 0 1px rgba(225,233,239,.08); }
.punctuation-toggle {
  display: inline-flex;
  height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--soft);
  font-size: 8px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}
.punctuation-toggle input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--cyan);
}
.punctuation-toggle:has(input:checked) {
  border-color: rgba(132, 230, 236, .34);
  background: rgba(80, 190, 198, .12);
  color: var(--cyan-bright);
}
.timeline-zoom-control {
  display: inline-flex;
  height: 27px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}
.timeline-zoom-control button {
  display: inline-grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(225,233,239,.12);
  border-radius: 5px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}
.timeline-zoom-control button:hover { color: var(--cyan); background: rgba(225,233,239,.08); }
.timeline-zoom-control #timelineZoomRange {
  display: inline-flex;
  flex: 0 0 58px;
  width: 58px;
  min-width: 0;
  height: 18px;
  margin: 0;
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--cyan-deep) 0%, rgba(255,255,255,.12) 0%) center / 100% 3px no-repeat;
  cursor: pointer;
}
.timeline-zoom-control #timelineZoomRange::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
}
.timeline-zoom-control #timelineZoomRange::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  margin-top: -3.5px;
  border: 1px solid rgba(225,233,239,.74);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(208,247,255,.32);
}
.timeline-zoom-control #timelineZoomRange::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}
.timeline-zoom-control #timelineZoomRange::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(225,233,239,.74);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(208,247,255,.32);
}
.timeline-zoom-control span {
  display: inline-flex;
  min-width: 34px;
  height: 18px;
  align-items: center;
  justify-content: flex-end;
  color: var(--soft);
  font-size: 8px;
  font-weight: 750;
  text-align: right;
  line-height: 1;
}
.recognition-state { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 8px; font-weight: 750; letter-spacing: .05em; white-space: nowrap; }
.recognition-state i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(158,233,186,.65); }
.recognition-state.analyzing { color: var(--amber); }
.recognition-state.analyzing i { background: var(--amber); box-shadow: 0 0 8px rgba(234,203,135,.62); animation: breathe .8s ease-in-out infinite alternate; }
.timeline-ruler { height: 23px; margin-left: 69px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.timeline-ruler-inner { display: flex; min-width: 100%; height: 100%; align-items: center; justify-content: space-between; padding: 0 12px; }
.timeline-body { display: grid; height: 155px; grid-template-columns: 69px 1fr; }
.timeline-labels { display: grid; grid-template-rows: 68px 1fr; padding: 5px 8px; border-right: 1px solid var(--line); color: var(--soft); font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.timeline-labels span { padding-top: 8px; }
.tracks { position: relative; overflow-x: auto; overflow-y: hidden; cursor: text; scrollbar-color: rgba(225,233,239,.24) transparent; scrollbar-width: thin; touch-action: none; }
.tracks::-webkit-scrollbar { height: 6px; }
.tracks::-webkit-scrollbar-track { background: rgba(255,255,255,.025); }
.tracks::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(225,233,239,.2); }
.timeline-content { position: relative; min-width: 100%; height: 100%; }
.playhead { position: absolute; top: 0; bottom: 0; left: 42%; z-index: 5; width: 1px; background: var(--cyan); box-shadow: 0 0 9px rgba(210,222,230,.42); cursor: ew-resize; touch-action: none; }
.playhead::before { position: absolute; top: 0; bottom: 0; left: -7px; width: 15px; content: ""; }
.playhead i { position: absolute; top: 0; left: -5px; width: 11px; height: 8px; border-radius: 1px 1px 5px 5px; background: var(--cyan); }
.subtitle-track { position: relative; height: 68px; padding-top: 9px; border-bottom: 1px solid var(--line); }
.cue { position: absolute; height: 41px; overflow: hidden; padding: 5px 10px; border: 1px solid rgba(225, 233, 239, .14); border-radius: 6px; background: rgba(172, 184, 194, .11); color: rgba(240,244,247,.74); cursor: grab; text-align: left; touch-action: none; transition: border-color .18s, background .18s; }
.cue:active, .cue.dragging { cursor: grabbing; }
.cue b { display: block; color: rgba(213,223,230,.56); font-size: 7px; letter-spacing: .12em; }
.cue span { display: block; overflow: hidden; margin-top: 4px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cue:hover, .cue.active { border-color: rgba(225,233,239,.55); background: rgba(172, 184, 194, .22); }
.cue.linked { border-color: rgba(225,233,239,.28); }
.cue.warning { border-color: rgba(234, 203, 135, .42); background: rgba(205, 164, 83, .12); }
.cue-handle { position: absolute; top: 0; bottom: 0; z-index: 2; width: 8px; background: rgba(240,244,247,.12); cursor: ew-resize; opacity: 0; transition: opacity .16s, background .16s; }
.cue-handle.left { left: 0; border-right: 1px solid rgba(240,244,247,.38); }
.cue-handle.right { right: 0; border-left: 1px solid rgba(240,244,247,.38); }
.cue:hover .cue-handle, .cue.active .cue-handle, .cue.dragging .cue-handle { opacity: 1; }
.cue-handle:hover { background: rgba(240,244,247,.34); }
body.razor-active .tracks, body.razor-active .cue { cursor: crosshair; }
body.razor-active .cue-handle { pointer-events: none; opacity: 0; }
body.timeline-dragging { cursor: ew-resize; user-select: none; }
.waveform {
  position: relative;
  display: flex;
  height: 86px;
  align-items: center;
  gap: 2px;
  padding: 0 5px;
  opacity: .76;
}
.waveform::after {
  content: attr(data-state-label);
  position: absolute;
  right: 10px;
  bottom: 8px;
  max-width: 56%;
  overflow: hidden;
  color: rgba(229, 240, 244, .7);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.waveform.loading::after, .waveform.failed::after { opacity: 1; }
.waveform i {
  display: block;
  width: 2px;
  min-height: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(212,247,255,.72), rgba(139,162,178,.38));
  box-shadow: 0 0 10px rgba(197, 242, 255, .08);
}
.waveform.loading i { opacity: .42; }
.waveform.failed i { background: rgba(185,197,207,.26); box-shadow: none; }
body.bilingual-mode .timeline-labels { grid-template-rows: 48px 48px 1fr; }
body.bilingual-mode .subtitle-track { height: 48px; padding-top: 5px; }
body.bilingual-mode .cue { height: 36px; padding-top: 4px; }
body.bilingual-mode .cue span { margin-top: 2px; }
body.bilingual-mode .waveform { height: 59px; }

.inspector { padding: 0 14px 16px; }
.inspector-tabs { display: flex; height: 49px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.inspector-tab { height: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--soft); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.inspector-tab.active { border-color: var(--cyan); color: var(--cyan); }
.inspector-tab span { padding: 2px 5px; border-radius: 10px; background: rgba(234,203,135,.12); color: var(--amber); font-size: 8px; }
.inspector-content { display: none; }
.inspector-content.active { display: block; }
.inspector-section { padding: 15px 0; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.confidence { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.confidence i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
textarea {
  width: 100%;
  height: 65px;
  margin-top: 10px;
  padding: 9px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: var(--caption-font);
  font-size: 12px;
  line-height: 1.5;
}
textarea:focus { border-color: rgba(225,233,239,.46); box-shadow: 0 0 0 3px rgba(225,233,239,.06); }
.cue-metadata { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: var(--soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.cue-metadata i { width: 3px; height: 3px; border-radius: 50%; background: var(--soft); }
.text-button { border: 0; background: transparent; color: var(--cyan); font-size: 9px; font-weight: 700; }
.select-field, .value-field { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.select-field { position: relative; margin-top: 10px; padding: 8px; }
.select-field span, .value-field span, .range-field span { color: var(--soft); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.select-field strong { font-size: 10px; font-weight: 600; }
.select-field svg { position: absolute; top: 14px; right: 8px; width: 13px; height: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 7px; }
.value-field { padding: 7px; }
.value-field strong { color: var(--muted); font-size: 11px; }
.value-field small { color: var(--soft); font-size: 8px; }
.secondary-size-note { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.secondary-size-note span { color: var(--soft); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.secondary-size-note strong { color: var(--muted); font-size: 9px; font-weight: 700; }
.detail-trigger { color: inherit; text-align: left; }
.detail-trigger:hover, .detail-trigger.open { border-color: rgba(225,233,239,.26); background: rgba(225,233,239,.1); }
.detail-trigger.open strong { color: var(--cyan); }
.detail-trigger.manual strong { color: var(--amber); }
.font-size-details, .letter-spacing-details { display: none; padding: 0 7px 2px; }
.font-size-details.open, .letter-spacing-details.open { display: block; }
.font-size-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}
.font-size-actions span { color: var(--soft); font-size: 8px; line-height: 1.35; }
.font-size-actions .text-button { flex: 0 0 auto; font-size: 8px; }
.style-buttons { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.style-buttons span { width: 1px; height: 19px; margin: 0 3px; background: var(--line); }
.style-btn { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); color: var(--muted); font-size: 10px; }
.style-btn svg { width: 14px; height: 14px; }
.style-btn:hover, .style-btn.active { border-color: rgba(225,233,239,.26); background: rgba(225,233,239,.1); color: var(--cyan); }
.position-toggle { display: grid; grid-template-columns: 1fr 1fr; margin-top: 11px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }
.position-toggle button { height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--soft); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.position-toggle button.active { background: rgba(171,255,251,.1); color: var(--cyan); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.auto-safe-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px;
  border: 1px solid rgba(225,233,239,.14);
  border-radius: 10px;
  background: rgba(225,233,239,.045);
}
.auto-safe-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; background: rgba(225,233,239,.08); color: var(--cyan); }
.auto-safe-icon svg { width: 16px; height: 16px; }
.auto-safe-card div { display: grid; gap: 4px; }
.auto-safe-card strong { color: rgba(239,255,254,.92); font-size: 10px; line-height: 1.3; }
.auto-safe-card span:not(.auto-safe-icon) { color: var(--soft); font-size: 8px; line-height: 1.35; }
.autofit-button {
  display: flex;
  width: 100%;
  height: 31px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
}
.autofit-button:hover { border-color: rgba(225,233,239,.25); background: rgba(225,233,239,.07); }
.autofit-button:disabled { cursor: default; color: var(--muted); opacity: .68; }
.autofit-button svg { width: 13px; height: 13px; }
.range-field { display: block; margin-top: 14px; }
.compact-range { margin-top: 11px; }
.range-field div, .switch-field { display: flex; align-items: center; justify-content: space-between; }
.range-field strong { color: var(--cyan); font-size: 10px; }
input[type="range"] { width: 100%; height: 3px; margin: 10px 0 0; appearance: none; border-radius: 9px; outline: none; background: linear-gradient(90deg, var(--cyan-deep) 24%, rgba(255,255,255,.12) 24%); }
input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; appearance: none; border: 2px solid #d7ffff; border-radius: 50%; background: var(--cyan-deep); box-shadow: 0 0 8px rgba(156,255,251,.35); }
.switch-field { position: relative; margin-top: 13px; }
.switch-field div { display: grid; gap: 4px; }
.switch-field strong { font-size: 10px; font-weight: 600; }
.switch-field span { color: var(--soft); font-size: 9px; }
.switch-field input { position: absolute; opacity: 0; }
.switch-field i { position: relative; width: 31px; height: 18px; border-radius: 30px; background: rgba(255,255,255,.1); transition: .2s; }
.switch-field i::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.7); content: ""; transition: .2s; }
.switch-field input:checked + i { background: rgba(164,176,186,.64); }
.switch-field input:checked + i::after { left: 16px; background: #e1ffff; }
.appearance-row { display: grid; grid-template-columns: 19px 1fr auto; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.appearance-row strong { color: var(--soft); font-size: 9px; font-weight: 500; }
.appearance-trigger { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.appearance-trigger:hover, .appearance-trigger.open { color: var(--cyan); }
.appearance-trigger.open strong { color: var(--cyan); }
.color-well { width: 18px; height: 18px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; }
.color-well.white { background: white; }
.color-well.black { background: #111820; }
.fill-color-details {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.fill-color-details.open { display: block; }
.color-picker-main { display: flex; align-items: center; gap: 12px; }
.color-wheel {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 5px 18px rgba(0,0,0,.2);
}
.color-wheel::after {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #161a1f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  content: "";
}
.color-wheel i {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 2px 7px rgba(0,0,0,.45);
  transform: translate(-50%, -50%);
}
.color-wheel b {
  position: absolute;
  inset: 26px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: white;
}
.hex-color-field { display: grid; min-width: 0; gap: 6px; }
.hex-color-field span { color: var(--soft); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.hex-color-field input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}
.hex-color-field input:focus { border-color: rgba(225,233,239,.38); }
.hex-color-field input.invalid { border-color: rgba(217,176,155,.7); color: var(--danger); }
.shadow-detail-toggle {
  display: flex;
  width: 100%;
  height: 30px;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.shadow-detail-toggle:hover, .shadow-detail-toggle.open { border-color: rgba(225,233,239,.25); background: rgba(225,233,239,.07); color: var(--cyan); }
.shadow-detail-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.shadow-detail-toggle.open svg { transform: rotate(180deg); }
.shadow-details { display: none; padding: 0 7px 5px; }
.shadow-details.open { display: block; }
.qc-summary { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.qc-orbit { display: grid; width: 70px; height: 70px; flex: 0 0 70px; place-items: center; border: 1px solid rgba(158,233,186,.45); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(158,233,186,.05); line-height: .8; }
.qc-orbit strong { align-self: end; color: var(--green); font-size: 22px; font-weight: 520; }
.qc-orbit span { align-self: start; color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .1em; }
.qc-summary p { font-size: 13px; font-weight: 650; }
.qc-summary span { display: block; margin-top: 5px; color: var(--soft); font-size: 9px; }
.qc-list { display: grid; gap: 6px; margin: 12px 0; }
.qc-item { display: grid; grid-template-columns: 7px 1fr auto; gap: 8px; padding: 9px 6px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; }
.qc-item:hover { border-color: var(--line); background: rgba(255,255,255,.025); }
.qc-item i { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; }
.qc-item.pass i { background: var(--green); }
.qc-item.warning i { background: var(--amber); }
.qc-item div { display: grid; gap: 4px; }
.qc-item strong { font-size: 10px; font-weight: 650; }
.qc-item span { color: var(--soft); font-size: 9px; line-height: 1.35; }
.qc-item b { font-size: 8px; letter-spacing: .08em; }
.qc-item.pass b { color: var(--green); }
.qc-item.warning b { color: var(--amber); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  background: rgba(0, 6, 10, .54);
  opacity: 0;
  backdrop-filter: blur(14px);
  transition: .25s ease;
}
.modal-backdrop.open { visibility: visible; opacity: 1; }
.export-modal, .settings-modal, .cost-modal {
  position: relative;
  width: min(680px, calc(100vw - 80px));
  max-height: calc(100vh - 52px);
  overflow: auto;
  padding: 22px;
  border-radius: 25px;
  transform: translateY(14px) scale(.98);
  transition: .25s ease;
}
.modal-backdrop.open .export-modal, .modal-backdrop.open .settings-modal, .modal-backdrop.open .cost-modal { transform: translateY(0) scale(1); }
.close-modal { position: absolute; top: 14px; right: 15px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0 0 2px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--muted); font-size: 18px; line-height: 1; }
.export-header { display: flex; gap: 13px; padding-right: 30px; }
.export-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border: 1px solid rgba(225,233,239,.28); border-radius: 14px; background: rgba(225,233,239,.1); color: var(--cyan); }
.export-header h2 { margin-top: 5px; font-size: 23px; }
.export-header p:last-child { margin-top: 7px; color: var(--muted); font-size: 11px; }
.export-specs { display: grid; grid-template-columns: 1.05fr 1.2fr 1fr; gap: 7px; margin-top: 18px; }
.export-specs div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.export-specs span { color: var(--soft); font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.export-specs strong { font-size: 12px; font-weight: 620; }
.export-specs small { color: var(--muted); font-size: 9px; }
.deliverables { margin-top: 17px; }
.deliverables h3 { margin-bottom: 8px; }
.deliverable-row { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); }
.deliverable-row i { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan); font-size: 9px; font-style: normal; font-weight: 750; }
.deliverable-row div { display: grid; gap: 3px; }
.deliverable-row strong { font-size: 11px; }
.deliverable-row span { color: var(--soft); font-size: 9px; }
.deliverable-row b { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.export-progress { display: none; margin-top: 14px; }
.export-progress.visible { display: block; }
.export-progress div { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.export-progress strong { color: var(--cyan); }
.export-progress > i { display: block; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.1); }
.export-progress b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #51c6c6, #c8fffb); transition: width .3s ease; }
.export-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.export-footer span { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: 9px; }
.export-footer span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.settings-modal { width: min(610px, calc(100vw - 80px)); }
.cost-modal { width: min(760px, calc(100vw - 80px)); }
.settings-header { display: flex; gap: 13px; padding-right: 30px; }
.settings-header h2 { margin-top: 5px; font-size: 23px; }
.settings-header p:last-child { margin-top: 7px; color: var(--muted); font-size: 11px; }
.settings-service-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.026);
}
.settings-service-switch button {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--soft);
  text-align: left;
}
.settings-service-switch button.active {
  background: rgba(225,233,239,.12);
  color: var(--cyan-bright);
  box-shadow: inset 0 0 0 1px rgba(225,233,239,.08);
}
.settings-service-switch strong { color: inherit; font-size: 12px; font-weight: 760; }
.settings-service-switch span { color: var(--soft); font-size: 8px; }
.settings-page { display: none; margin-top: 18px; }
.settings-page.active { display: block; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.translation-provider-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 11px; }
.provider-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  text-align: left;
}
.provider-card:hover, .provider-card.active { border-color: rgba(225,233,239,.3); background: rgba(225,233,239,.08); }
.provider-card i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(225,233,239,.1); color: var(--cyan); font-size: 9px; font-style: normal; font-weight: 800; }
.provider-card span { display: grid; gap: 4px; }
.provider-card strong { color: var(--text); font-size: 11px; }
.provider-card small { color: var(--soft); font-size: 8px; }
.provider-card b { grid-column: 2; color: var(--soft); font-size: 8px; font-weight: 700; }
.provider-card.active b { color: var(--green); }
.settings-form { display: grid; gap: 10px; margin-top: 15px; }
.settings-divider { height: 1px; margin: 17px 0 14px; background: var(--line); }
.settings-subheader { display: grid; gap: 5px; }
.settings-subheader h3 { font-size: 14px; }
.settings-subheader > span { color: var(--soft); font-size: 9px; line-height: 1.45; }
.settings-field { display: grid; gap: 6px; }
.settings-field > span { color: var(--soft); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.settings-field small { margin-left: 4px; color: var(--muted); font-size: 8px; letter-spacing: 0; }
.settings-field input, .settings-field select {
  width: 100%;
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font-size: 10px;
}
.settings-field input:focus, .settings-field select:focus { border-color: rgba(225,233,239,.4); }
.secret-input { display: flex; gap: 6px; }
.secret-input input { min-width: 0; flex: 1; }
.secret-input button { width: 54px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); color: var(--cyan); font-size: 9px; }
.tencent-secret-grid {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(225,233,239,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}
.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.auth-mode-switch button {
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
}
.auth-mode-switch button.active { background: rgba(225,233,239,.12); color: var(--cyan-bright); }
.auth-mode-switch button:disabled { cursor: default; opacity: .42; }
.settings-note { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--soft); font-size: 9px; }
.settings-note i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--amber); }
.settings-note.success i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.translation-note.success i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-footer div { display: flex; gap: 8px; }
.danger-text { color: var(--danger); }
.cost-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.cost-summary-grid div {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.028);
}
.cost-summary-grid span {
  color: var(--soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}
.cost-summary-grid strong {
  color: var(--cyan-bright);
  font-size: 20px;
  font-weight: 780;
}
.cost-summary-grid small { color: var(--muted); font-size: 9px; }
.cost-bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
}
.cost-bars div {
  display: grid;
  grid-template-columns: 72px 1fr 62px;
  align-items: center;
  gap: 10px;
}
.cost-bars span { color: var(--soft); font-size: 9px; }
.cost-bars i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.cost-bars b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #51c6c6, #c8fffb);
  transition: width .25s ease;
}
.cost-bars strong { color: var(--text); font-size: 10px; text-align: right; }
.cost-table-wrap {
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}
.cost-table th, .cost-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  text-align: left;
}
.cost-table th {
  color: var(--soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}
.cost-table td { color: var(--text); }
.cost-table tr:last-child td { border-bottom: 0; }

.analysis-toast, .mini-toast {
  position: fixed;
  right: 22px;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: .3s ease;
}
.analysis-toast.show, .mini-toast.show { visibility: visible; opacity: 1; transform: translateY(0); }
.analysis-toast {
  bottom: 22px;
  display: grid;
  width: 350px;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 16px;
}
.analysis-toast div:not(.analyze-spinner) { display: grid; gap: 4px; }
.analysis-toast strong { font-size: 11px; }
.analysis-toast span { color: var(--muted); font-size: 9px; }
.analysis-toast b { color: var(--cyan); font-size: 10px; }
.analysis-toast > i { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.1); }
.analysis-toast em { display: block; width: 12%; height: 100%; border-radius: inherit; background: var(--cyan); transition: width .28s; }
.analyze-spinner { width: 24px; height: 24px; border: 2px solid rgba(225,233,239,.14); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
.mini-toast {
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 10px;
}
.mini-toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { to { opacity: .28; } }

@media (max-width: 1280px) {
  .workspace { grid-template-columns: 224px minmax(540px, 1fr) 268px; }
  .asset-panel { padding-inline: 12px; }
  .inspector { padding-inline: 12px; }
}

@media (max-width: 1180px) {
  body { min-width: 980px; }
  .rail { top: 10px; bottom: 10px; left: 10px; width: 58px; }
  .app-shell { margin-left: 78px; padding: 10px 10px 10px 0; }
  .topbar { height: 68px; padding-inline: 17px 13px; }
  .workspace {
    height: calc(100vh - 78px);
    grid-template-columns: 190px minmax(430px, 1fr) 238px;
    gap: 8px;
    padding-top: 8px;
  }
  .asset-panel, .inspector { padding-inline: 10px; }
  .asset-panel { padding-top: 14px; }
  .cloud-state { display: none; }
  .ratio-grid { gap: 4px; }
  .ratio-button { height: 45px; }
  .source-info strong { max-width: 90px; }
  .monitor-stage-wrap { padding: 12px; }
  .editor-column { grid-template-rows: 42px minmax(300px, 1fr) 225px; gap: 8px; }
  .field-row { gap: 4px; }
  .value-field { padding: 6px 5px; }
}
