:root{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#202825;background:#f5f7f6;font-synthesis:none;line-height:1.65;letter-spacing:0}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;letter-spacing:0}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}[hidden]{display:none!important}:focus-visible{outline:3px solid #248276;outline-offset:4px}
.topbar{min-height:72px;border-bottom:1px solid #dce3df;display:flex;align-items:center;justify-content:space-between;padding:16px max(24px,calc((100% - 960px)/2));gap:20px;background:#fff}.brand{font-size:22px;font-weight:750;white-space:nowrap}.brand span{font-size:12px;color:#66746e;margin-left:12px;font-weight:400}.topbar>a:last-child{font-size:14px;white-space:nowrap;min-height:44px;display:flex;align-items:center}
.topbar nav{display:flex;align-items:center;gap:16px;white-space:nowrap}.topbar nav a:first-child{color:#086c59;font-weight:700}
.text-video-entry{display:flex;align-items:center;gap:14px;margin:20px 0;padding:16px 18px;border:1px solid #9fc7b9;border-radius:8px;background:#f0f8f4;color:#154f43}.text-video-entry strong{font-size:18px}.text-video-entry span{font-size:14px;color:#49645b;flex:1}.text-video-entry b{font-size:14px;white-space:nowrap}
.background-options{border-top:1px solid #dce3df;margin-top:20px;padding-top:16px}.background-options h3{font-size:15px;margin:0 0 10px}.background-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.background-card{border:1px solid #c5d0c9;border-radius:8px;background:#fff;padding:12px;min-width:0}.background-card.active{border-color:#14705f;background:#f0f8f4}.background-card strong,.background-card span,.background-card em{display:block}.background-card strong{font-size:14px;margin-bottom:5px}.background-card span{font-size:12px;color:#5b6962;line-height:1.5}.background-card em{font-style:normal;font-size:12px;color:#653f75;margin-top:8px;font-weight:650}
main{max-width:840px;margin:auto;padding:32px 24px 48px;min-height:calc(100vh - 144px)}.intro h1{font-size:26px;margin:0 0 4px;line-height:1.4}.intro p{color:#5b6962;margin:0;font-size:15px}.progress{list-style:none;display:flex;padding:0;margin:28px 0 30px;border-bottom:1px solid #dce3df;gap:24px}.progress li{padding:0 4px 12px;color:#68756f;font-size:14px;flex:1}.progress [aria-current]{color:#086c59;border-bottom:3px solid #086c59;font-weight:700}h2{font-size:20px;line-height:1.5;margin:0 0 20px}h2:focus{outline:none}.choices,.uploads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.choice{display:flex;align-items:flex-start;gap:12px;padding:22px;border:1px solid #c5d0c9;background:#fff;border-radius:8px;cursor:pointer}.choice:has(input:checked){border:2px solid #14705f;padding:21px;background:#f0f8f4}.choice input{margin:7px 0 0;flex-shrink:0;accent-color:#14705f;width:18px;height:18px}.choice-body{display:flex;flex-direction:column;gap:8px;min-width:0}.choice strong{font-size:19px}.choice-body>span{font-size:14px}.choice-body .detail{color:#5b6962;min-height:70px}.choice-body .price{font-weight:650;font-size:17px;margin-top:10px;color:#653f75}.price small{font-size:12px;font-weight:400;color:#68756f}.subtle{font-size:13px;color:#5b6962;margin:14px 0}.example,.extras{border-top:1px solid #dce3df;margin-top:24px;padding-top:10px}summary{min-height:44px;padding:10px 0;font-size:14px}.example img{display:block;width:100%;height:auto;max-height:350px;object-fit:contain;background:#e9eeeb;margin-top:12px}.actions{display:flex;gap:12px;justify-content:flex-end;margin-top:28px}.actions button{min-height:48px;border:1px solid #c5d0c9;border-radius:6px;padding:10px 22px;background:#fff;color:#202825}.actions .primary{background:#116e5c;color:#fff;border-color:#116e5c;font-weight:600}.actions button:hover{filter:brightness(.95)}.actions button:disabled{opacity:.55;cursor:default}.upload{border-top:2px solid #dce3df;padding:18px 0;min-width:0}.upload>label{display:block;font-weight:650;margin-bottom:12px}.upload input{max-width:100%;width:100%;font-size:13px}.upload input::file-selector-button{font:inherit;border:1px solid #b5c4ba;background:#fff;border-radius:4px;padding:10px;margin-right:8px;cursor:pointer;min-height:44px}.filename{font-size:13px;overflow-wrap:anywhere;color:#42524a}.upload img{width:100%;height:180px;object-fit:contain;background:#e5ece7;margin-top:12px}.upload audio{width:100%;height:48px;margin-top:12px}.consent{display:flex;gap:12px;font-size:14px;align-items:flex-start;padding:12px 0}.consent input{flex-shrink:0;width:18px;height:18px;margin:4px 0;accent-color:#14705f}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;min-width:0}.field label{font-size:14px;font-weight:600}.field input,.field select,.field textarea{width:100%;max-width:100%;border:1px solid #bac7bf;border-radius:5px;background:#fff;color:#202825;padding:12px;font-size:16px;min-height:48px}.field textarea{resize:vertical}.field p{margin:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.extras .field-grid{margin-top:16px}#formStatus,#copyStatus{font-size:14px;color:#8a3326;overflow-wrap:anywhere}#formStatus:empty,#copyStatus:empty{display:none}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;padding:20px 0;border-block:1px solid #dce3df}.result{padding-top:8px}footer{text-align:center;color:#68756f;font-size:12px;padding:24px 16px calc(24px + env(safe-area-inset-bottom))}
@media(max-width:600px){.topbar{padding:12px 16px;min-height:64px}.brand{font-size:20px}.brand span{display:none}.topbar nav{gap:10px;font-size:13px}.text-video-entry{align-items:flex-start;flex-wrap:wrap;gap:5px 10px;margin:16px 0;padding:14px}.text-video-entry strong{width:100%;font-size:17px}.text-video-entry span{font-size:13px}.text-video-entry b{margin-left:auto}main{padding:24px 20px 32px}.intro h1{font-size:23px}.intro p{font-size:14px}.progress{gap:8px;margin:22px 0 24px}.progress li{font-size:13px;padding-left:0}.choices,.uploads{grid-template-columns:1fr;gap:12px}.choice{padding:18px}.choice:has(input:checked){padding:17px}.choice strong{font-size:18px}.choice-body{gap:5px}.choice-body .detail{min-height:0}.choice-body .price{margin-top:6px}.actions{margin-top:24px}.actions .primary{flex:1}.actions button{padding:10px 14px}h2{font-size:18px;margin-bottom:16px}.field-grid{gap:12px}.upload{padding:14px 0}.example{margin-top:18px}}
@media(max-width:600px){.background-grid{grid-template-columns:1fr;gap:10px}.background-options{margin-top:14px;padding-top:12px}.background-card{padding:10px 12px}}
.history{margin-top:40px;border-top:1px solid #dce3df;padding-top:24px}.history button,#edit{font:inherit;font-size:14px;border:1px solid #c5d0c9;background:white;border-radius:5px;padding:10px 14px;min-height:44px;cursor:pointer}.history h2{font-size:16px}.history button{display:block;margin:8px 0;max-width:100%;text-align:left;overflow-wrap:anywhere}.result audio{width:100%;margin:12px 0}.download{display:inline-flex;align-items:center;background:#116e5c;color:white;border-radius:5px;padding:10px 18px}.result .actions{justify-content:flex-start;flex-wrap:wrap}#jobError{color:#8a3326;font-size:14px}#jobId{overflow-wrap:anywhere}
.job-progress{height:12px;background:#dce8e2;border-radius:999px;overflow:hidden;margin:12px 0 6px}.job-progress div{height:100%;width:0;background:linear-gradient(90deg,#0b7a5e,#47e01f);border-radius:inherit;transition:width .45s ease}
.result video{display:block;width:100%;max-width:540px;max-height:65vh;aspect-ratio:9/16;object-fit:contain;background:#111;margin:16px 0;border-radius:6px}.result video[hidden]{display:none}#downloadLinkArea{margin-top:16px}#downloadLinkArea label{display:block;font-size:13px;color:#5b6962;margin-bottom:8px}#downloadLink{box-sizing:border-box;width:100%;min-height:44px;padding:10px;border:1px solid #c5d0c9;border-radius:5px;font:inherit;font-size:14px}
.upload video{display:block;width:100%;height:160px;object-fit:contain;background:#111;margin-top:12px;border-radius:6px}
.scroll-cue{display:none}
@media(max-width:600px){.upload video{height:132px}}
@media(max-width:600px){.scroll-cue{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px 0 2px;color:#086c59;font-size:13px;font-weight:650}.scroll-cue span{width:18px;height:18px;border-left:3px solid #086c59;border-top:3px solid #086c59;transform:rotate(45deg);animation:cue-up 1.15s ease-in-out infinite}@keyframes cue-up{0%,100%{transform:translateY(4px) rotate(45deg);opacity:.55}50%{transform:translateY(-3px) rotate(45deg);opacity:1}}}
@media(max-width:600px){body{padding-bottom:86px}main{padding-top:18px}.topbar{min-height:56px}.intro h1{font-size:21px;line-height:1.32}.intro p{font-size:13px}.progress{margin:16px 0 18px}.stage[data-step="0"] h2{margin-bottom:10px}.stage[data-step="0"] .choice{padding:12px}.stage[data-step="0"] .choice:has(input:checked){padding:11px}.stage[data-step="0"] .choice input{margin-top:5px}.stage[data-step="0"] .choice strong{font-size:18px}.stage[data-step="0"] .choice-body>span{font-size:13px}.stage[data-step="0"] .choice-body .detail{font-size:13px;line-height:1.55}.stage[data-step="0"] .choice-body .price{font-size:19px;margin-top:2px}.stage[data-step="0"] .subtle{margin:10px 0}.stage[data-step="0"] .example{margin-top:10px;padding-top:4px}.stage[data-step="0"] summary{min-height:38px;padding:6px 0}.actions{position:sticky;bottom:0;z-index:20;margin:22px -20px -32px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:rgba(245,247,246,.96);border-top:1px solid #dce3df;box-shadow:0 -8px 24px rgba(21,45,39,.08)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
