:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #142724;
  background: #f1f5f3;
  --ink: #142724;
  --muted: #526963;
  --line: #dce7e1;
  --mint: #b9f670;
  --dark: #102823;
  --accent: #245940;
  --card: #fff;
  --radius: 17px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a[href] { touch-action: manipulation; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #26734f; outline-offset: 3px; }
a { color: inherit; }
.shell { width: min(100%, 1120px); margin-inline: auto; padding-inline: 17px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { height: 61px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 780; letter-spacing: -.055em; }
.brand-tail { font-weight: 620; }
.brand-icon { display: inline-flex; width: 32px; height: 32px; flex: none; gap: 3px; justify-content: center; align-items: center; border-radius: 10px; background: var(--dark); }
.brand-icon i { width: 3px; height: 9px; background: var(--mint); border-radius: 3px; transform: rotate(20deg); }
.brand-icon i:nth-child(2) { height: 17px; }
.brand-icon i:nth-child(3) { height: 12px; }
main { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.startup { padding: 30px 0; color: var(--muted); }
.startup button { margin-left: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.hero {
  position: relative; isolation: isolate; display: grid; align-content: center; overflow: hidden;
  min-height: 157px; margin-block: 16px; padding: 23px 19px; border-radius: 20px; color: #f5fff8;
  background: radial-gradient(ellipse at 100% 65%, #294636 0, transparent 66%), #112b25;
}
.hero-content { z-index: 1; }
.hero h1 { font-size: clamp(29px, 7vw, 48px); font-weight: 760; letter-spacing: -.047em; line-height: 1.11; }
.hero p { margin-top: 10px; color: #d0e4da; font-size: 13px; line-height: 1.55; }
.hero-wave { display: flex; position: absolute; right: -21px; top: 50%; transform: translateY(-50%) rotate(-13deg); align-items: center; gap: 5px; opacity: .22; }
.hero-wave i { display: block; width: 5px; height: 24px; border-radius: 3px; background: #c1f78c; }
.hero-wave i:nth-child(4n) { height: 37px; }
.hero-wave i:nth-child(2n + 2) { height: 54px; }
.hero-wave i:nth-child(3n + 3) { height: 83px; }
.hero-wave i:nth-child(7n + 6) { height: 99px; }
.workspace-grid > * { min-width: 0; }
.upload-card { padding: 15px; }
.upload-card.is-dragging { outline: 3px solid #70a940; outline-offset: -3px; background: #f3fbeb; }
.upload-copy { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.upload-copy h2, .section-heading h2 { font-weight: 750; font-size: 17px; }
.upload-copy p, .captions-header p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.upload-icon { display: grid; place-items: center; width: 41px; height: 41px; flex: none; border-radius: 12px; color: #225336; background: #e8f4df; font-size: 27px; line-height: 1; font-weight: 530; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 690; text-decoration: none; white-space: nowrap; }
.primary { color: #142a1d; background: var(--mint); border-color: #a9e660; }
.secondary { color: #214536; background: #f3f7f4; border-color: #d8e5dc; }
.button:disabled { opacity: .5; }
.text-button, .close-button { border: 0; min-height: 44px; padding: 5px 8px; background: transparent; color: var(--accent); font-size: 13px; font-weight: 670; }
.upload-card > .button { width: 100%; }
.jobs-region { margin-top: 23px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 9px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 5px; border-radius: 7px; color: var(--muted); background: #e5ede8; font-size: 11px; font-variant-numeric: tabular-nums; }
.job-list, .upload-items { list-style: none; padding: 0; margin: 0; }
.job-list { display: grid; gap: 7px; }
.jobs-empty { padding: 18px 13px; color: var(--muted); font-size: 13px; }
.job-button { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; min-height: 58px; padding: 8px 10px; text-align: left; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); }
.job-button[aria-current="true"] { border-color: #719c83; background: #f7fcf7; }
.job-icon { display: grid; place-items: center; border-radius: 9px; width: 30px; height: 30px; background: #edf3ef; color: #365e4e; font-size: 12px; }
.job-name { overflow: hidden; display: block; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 650; }
.status { width: fit-content; max-width: 100%; padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 680; background: #eaf1ed; color: #496158; white-space: nowrap; }
.status[data-status="ready"] { background: #e4f4d9; color: #2c5723; }
.status[data-status="failed"] { background: #fae9e6; color: #963627; }
.status[data-status="analyzing"], .status[data-status="rendering"], .status[data-status="uploading"] { background: #e3f1ed; color: #285a49; }
.upload-items { margin-top: 13px; display: grid; gap: 9px; }
.upload-item { gap: 4px; display: grid; border-top: 1px solid var(--line); padding-top: 9px; }
.upload-item p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.upload-item .button { justify-self: start; }
.upload-item progress { height: 8px; width: 100%; accent-color: #397751; }
.message { color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.message.error { color: #8e3127; }
.upload-card > .message, .jobs-region > .message { margin-top: 9px; }
.detail { margin-top: 18px; }
.detail-header { padding: 10px 14px 13px; }
.back { margin: -3px 0 0 -7px; }
.back span { font-size: 21px; line-height: 1; vertical-align: -1px; }
.detail-heading { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.detail-heading h2 { font-size: 17px; overflow-wrap: anywhere; }
.detail-meta { margin-top: 6px; color: var(--muted); font-size: 12px; }
.detail-state, .detail-message { padding: 0 14px 15px; color: var(--muted); font-size: 13px; }
.detail-state .button { margin-top: 9px; }
.preview { margin: 0 13px 15px; }
.video-stage { --preview-height: 540px; position: relative; display: grid; place-items: center; container-type: inline-size; overflow: hidden; border-radius: 13px 13px 7px 7px; background: #14231f; }
.video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.caption-overlay { position: absolute; bottom: 10%; inset-inline: 5%; text-align: center; white-space: pre-wrap; color: #fff; font-size: clamp(15px, 4cqi, 30px); font-weight: 850; line-height: 1.12; letter-spacing: .02em; pointer-events: none; overflow-wrap: anywhere; paint-order: stroke fill; -webkit-text-stroke: .14em #121212; text-shadow: 0 1px 3px #141414; }
.caption-overlay mark { color: #ffeb40; font-size: 1.19em; background: none; }
.player-controls { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.player-toggle { padding-inline: 8px; }
.player-time { min-width: 29px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.player-controls input { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: #397751; }
.preview-note { margin-top: 2px; font-size: 11px; color: var(--muted); }
.delivery { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 13px 14px; padding: 11px; border-radius: 11px; background: #edf5e9; }
.delivery strong { font-size: 14px; }
.delivery p { margin-top: 4px; font-size: 11px; color: var(--muted); }
.captions { border-top: 1px solid var(--line); }
.captions-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 13px; }
.captions-header h3 { font-size: 16px; }
.edit-feedback { margin: 0 13px 10px; background: #f5f8f6; border-radius: 8px; padding: 7px 9px; }
.edit-feedback .text-button { margin-left: -8px; }
.caption-list { display: grid; gap: 8px; padding: 0 13px 13px; }
.cue { display: grid; grid-template-columns: 1fr; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.cue.is-active { background: #f3f8f2; border-color: #99b59d; }
.cue-seek { justify-self: start; padding-inline: 0; font-variant-numeric: tabular-nums; }
.cue-field { min-width: 0; }
.cue-field label, .login-form label { display: block; font-size: 12px; font-weight: 660; color: #35564a; margin-bottom: 3px; }
.cue-field + .cue-field { margin-top: 7px; }
.cue-field textarea, .login-form input { display: block; width: 100%; padding: 8px; border: 1px solid #cdded2; border-radius: 8px; font-size: 16px; line-height: 1.45; color: var(--ink); background: white; }
.cue-field textarea { min-height: 54px; resize: vertical; }
.login-panel { overflow: hidden; max-width: 430px; margin: clamp(23px, 9vh, 84px) auto 0; }
.login-band { display: flex; align-items: center; min-height: 85px; padding: 16px 21px; background: radial-gradient(ellipse at 100% 55%, #2e483a 0, transparent 76%), #112b25; }
.login-band .brand-icon { width: 44px; height: 44px; background: #244735; }
.login-form { padding: 21px; }
.login-form h1 { font-size: 26px; letter-spacing: -.03em; }
.login-form > p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.login-form label { margin-top: 18px; }
.login-form .button { justify-content: space-between; margin-top: 14px; width: 100%; }
.share-dialog { width: min(calc(100% - 24px), 420px); max-height: calc(100% - 30px); max-height: calc(100dvh - 30px); padding: 0; margin: auto auto max(12px, env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 8px 42px #0a211f2a; }
.share-dialog::backdrop { background: #1028237d; }
.dialog-body { padding: 12px 16px 17px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; }
.dialog-heading h2 { font-size: 18px; }
.close-button { width: 44px; margin-right: -6px; font-size: 26px; font-weight: 490; }
.dialog-file { margin-bottom: 9px; font-size: 14px; overflow-wrap: anywhere; }
.dialog-body > .button, .download .button { width: 100%; }
.dialog-body > .message { margin: 5px 0 10px; }
.download { margin-top: 10px; }
.download p { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 779px) {
  #workspace.is-detail .sidebar { display: none; }
  #workspace.is-detail .hero { display: none; }
  .preview { position: sticky; top: 0; z-index: 2; padding-block: 6px; background: var(--card); }
  .video-stage { --preview-height: 295px; }
  .detail:has(.cue-field textarea:focus) .preview { position: relative; }
}
@media (min-width: 500px) {
  .shell { padding-inline: 23px; }
  .hero { padding-inline: 25px; }
  .hero-wave { right: 10px; opacity: .38; }
  .cue { grid-template-columns: 70px minmax(0, 1fr) minmax(0, .65fr); align-items: start; gap: 8px; }
  .cue-field + .cue-field { margin-top: 0; }
  .share-dialog { margin: auto; }
}
@media (min-width: 780px) {
  .shell { padding-inline: 28px; }
  .header-inner { height: 67px; }
  .hero { margin-block: 23px; min-height: 192px; padding: 30px 33px; }
  .hero p { font-size: 15px; }
  .hero-wave { right: 39px; transform: translateY(-50%) rotate(-13deg) scale(1.28); }
  .workspace-grid { display: grid; gap: 20px; grid-template-columns: minmax(255px, .36fr) minmax(0, .64fr); align-items: start; }
  .detail { margin-top: 0; }
  .back { display: none; }
  .detail-header { padding: 16px 18px 13px; }
  .preview, .delivery { margin-inline: 17px; }
  .captions-header, .caption-list { padding-inline: 17px; }
}
@media (hover: hover) {
  .primary:not(:disabled):hover { background: #abe95f; }
  .secondary:not(:disabled):hover, .job-button:hover { background: #eaf3ec; }
  .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
}
