:root{font-family:Inter,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif;font-size:15px;color:#203c33;background:#f5f6f1;font-synthesis:none;--green:#245b48;--muted:#68786e;--line:#dbe2d7}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea,select{font:inherit}button,a,label[role=button],summary{touch-action:manipulation}a{color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8ab992;outline-offset:4px}header{padding:22px 5%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fafbf7}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:650}.brand-mark{display:grid;place-items:center;width:36px;height:36px;background:var(--green);color:white;border-radius:10px;font-size:20px}.demo{font-size:9px;letter-spacing:1.2px;border:1px solid #d2debf;border-radius:20px;padding:5px 7px;color:#6f7e59}nav{display:flex;align-items:center;gap:24px}nav>a{font-size:12px;text-decoration:none;color:var(--muted)}.locale,.filters{display:flex;padding:3px;background:#e9eee2;border-radius:8px;gap:3px}.locale button,.filters button{border:0;background:transparent;color:var(--muted);font-size:12px;border-radius:5px;padding:8px 12px}.locale button[aria-pressed=true],.filters button[aria-pressed=true]{background:white;color:var(--green);box-shadow:0 1px 3px #1931230c}main{width:min(940px,90%);margin:44px auto 50px}.intro{margin-bottom:30px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);font-weight:650;margin:0 0 14px}h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.8px;margin:0 0 12px;line-height:1.2;font-weight:600}.intro>p:last-child{color:var(--muted);line-height:1.8;font-size:14px;margin:0}h2{font-size:24px;line-height:1.4;margin:0 0 8px}.card{border:1px solid var(--line);border-radius:14px;padding:26px;background:white}#dropzone{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:1px dashed #b8cab0;border-radius:10px;background:#f8faf4;min-height:220px;padding:24px;cursor:pointer;gap:10px}#dropzone.drag{background:#e8f1db;border-color:var(--green)}.upload-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#e5edd8;color:var(--green);font-size:30px;margin-bottom:8px}#file-name{font-size:18px;overflow-wrap:anywhere;max-width:100%}#dropzone>span:not(.upload-icon){font-size:13px;color:var(--muted)}#dropzone small{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.8}.glossary{margin:19px 0}.glossary summary{cursor:pointer;color:var(--green);font-size:13px}.glossary label{display:block;font-size:12px;margin:16px 0 8px}textarea,select{border:1px solid var(--line);color:#233e33;border-radius:7px;background:white;padding:10px;max-width:100%;width:100%}textarea{resize:vertical;line-height:1.8;min-height:80px}textarea::placeholder{color:#899487;font-size:13px}.start-row,.progress-label{display:flex;align-items:center;justify-content:space-between;gap:20px}.primary,.secondary{border:1px solid var(--line);border-radius:8px;padding:12px 20px;font-size:14px;font-weight:550;white-space:normal}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover:not(:disabled){background:#184532}.secondary{background:white;color:var(--green)}.small{font-size:12px;color:var(--muted);line-height:1.8}.subtle{font-size:13px;color:var(--muted);line-height:1.8}.flow{display:flex;justify-content:space-between;padding:0;list-style:none;counter-reset:step;margin:24px 0 32px;color:#74826e;font-size:12px;gap:14px}.flow li{counter-increment:step;line-height:1.8}.flow li::before{content:"0" counter(step);margin-right:9px;color:#9ba88e;font-size:10px}#progress-panel{margin-bottom:26px}.progress-label strong{font-size:14px}.progress-label span{font-family:Consolas,monospace;color:var(--muted);font-size:12px}progress{display:block;width:100%;height:7px;border:0;accent-color:var(--green);margin:18px 0}#resume{margin-top:12px}.check{display:flex;align-items:flex-start;gap:10px;line-height:1.8;font-size:13px}.check input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0;margin-top:4px}#notice{border:1px solid #dfd0ae;background:#f9f1e2;padding:14px 18px;border-radius:9px;margin-bottom:22px;font-size:13px;line-height:1.8}#notice p{margin:0}#error-details{font-size:12px;margin-top:8px;overflow-wrap:anywhere}#error-details summary{cursor:pointer}#error-text{white-space:pre-wrap}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 22px}.result-heading p{margin:0}#preview{padding:0;overflow:hidden;margin-bottom:20px}video{display:block;width:100%;max-height:480px;aspect-ratio:16/9;background:#18392e}#caption{background:#1d3d30;color:white;min-height:58px;padding:14px 20px;text-align:center;font-size:17px;line-height:1.5;white-space:pre-line}#result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.cue{border:1px solid var(--line);border-radius:10px;background:white;margin-bottom:12px;padding:20px}.cue-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.cue-head button{font-family:Consolas,monospace;border:1px solid #ceddca;background:#f4f8ef;color:var(--green);font-size:12px;padding:7px 10px;border-radius:5px}.cue-id{font-size:11px;color:#7c8876;margin-left:auto}.cue label{display:block;font-size:11px;font-weight:600;color:var(--muted);margin:10px 0 7px}.cue textarea{font-size:14px;background:#fdfefb;min-height:84px}.cue details{margin-top:12px}.cue summary{font-size:12px;color:var(--green);cursor:pointer}.cue p,.cue li{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.cue ul{padding-left:20px}.source-text{color:var(--muted);white-space:pre-wrap}.frame-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.frame-list a{width:160px;max-width:100%}.frame-list img{display:block;width:100%;border-radius:6px}.changes{font-family:inherit;color:#496444;font-size:12px}.badge{font-size:10px;background:#f8efdc;color:#976e34;padding:5px 8px;border-radius:4px}.warning{border-left:3px solid #d2b67e;padding-left:12px;color:#79623c}#source-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}.text-button{border:0;background:transparent;padding:10px 0;color:var(--green);text-decoration:underline;font-size:13px}.history{display:flex;align-items:center;gap:20px;margin-top:32px;border-top:1px solid var(--line);padding-top:24px}.history label{font-size:12px;color:var(--muted);flex-shrink:0}.history select{font-size:12px;max-width:440px;background:#fafbf7}footer{border-top:1px solid var(--line);padding:20px 5%;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#8a9483}#new-video{margin-bottom:10px}
@media(max-width:650px){header{padding:16px 5%;align-items:flex-start}.brand{font-size:13px;gap:7px}.brand-mark{width:30px;height:30px;font-size:17px}.demo{display:none}nav{flex-direction:column-reverse;gap:10px;align-items:flex-end}nav>a{font-size:10px}.locale button{font-size:11px;padding:7px 9px}main{margin-top:32px}.intro{margin-bottom:24px}.intro>p:last-child{font-size:13px}.card{padding:18px}#dropzone{min-height:210px;padding:20px 14px}#file-name{font-size:16px}.start-row{flex-direction:column;gap:12px;align-items:stretch}.start-row .subtle{font-size:11px}.flow{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;font-size:11px}.result-heading{align-items:flex-start;flex-direction:column;margin-top:28px}.result-heading .primary{width:100%}h2{font-size:21px}#result-toolbar{flex-wrap:wrap}.filters button{font-size:11px;padding:8px 10px}.secondary{font-size:12px;padding:10px 12px}.cue{padding:16px}.cue-head{flex-wrap:wrap}.cue-head button{font-size:11px}.cue-id{font-size:10px}#source-actions{flex-direction:column;align-items:stretch}.history{align-items:flex-start;flex-direction:column;gap:10px}.history select{max-width:100%}footer{font-size:10px}.frame-list a{width:125px}#caption{font-size:15px}.small{font-size:11px}}
