:root{--ink:#23332e;--muted:#7d8983;--line:#e5eae5;--paper:#f5f7f4;--green:#246b55;--mint:#d5efdc;--nav:#172e29;--white:#fff;--radius:16px;font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;color:var(--ink);font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{color:inherit}a{color:inherit;text-decoration:none}button,input,textarea,select,a{outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #9bcbb6;outline-offset:1px}button:focus-visible,a:focus-visible{outline:2px solid #60a784}::selection{background:#ccead8}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}input[type=range]{accent-color:var(--green)}[hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:224px;flex:0 0 224px;background:var(--nav);color:#b8cac1;padding:33px 18px 20px;position:fixed;height:100vh;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;color:#f4f9f1;font-size:25px;font-weight:600;letter-spacing:3px;padding:0 10px}.brand-symbol{width:41px;height:44px;background:#d0ead5;color:#264e3d;border-radius:11px;font-family:serif;display:grid;place-items:center;font-weight:500;transform:rotate(-5deg);font-size:23px}.brand small{display:block;font-size:8px;letter-spacing:1.8px;font-weight:400;margin-top:4px;color:#90a89a}.space-label{font-size:11px;display:flex;gap:8px;align-items:center;margin:29px 10px 35px;color:#91ab9d}.online-dot{width:6px;height:6px;background:#78b58e;display:inline-block;border-radius:50%;flex-shrink:0}.nav-label{font-size:10px;color:#678a7a;letter-spacing:1px;margin:0 13px 12px}.second-label{margin-top:30px}.nav-item{border:0;background:transparent;width:100%;display:flex;align-items:center;gap:12px;padding:13px 14px;margin:4px 0;text-align:left;border-radius:9px;color:#b9cdc1;font-size:13px;transition:background .18s,color .18s}.nav-item:hover{background:#254039}.nav-item.active{background:#d4ead8;color:#1e4836;font-weight:600}.nav-icon{font-size:19px;width:21px;text-align:center;line-height:1}.nav-arrow{margin-left:auto;font-size:17px}.nav-item:not(.active) .nav-arrow{display:none}.count{margin-left:auto;font-size:10px;background:#355348;border-radius:5px;min-width:22px;text-align:center;padding:2px 4px;color:#c6dfd0}.sidebar-bottom{margin-top:auto;padding:30px 10px 0}.machine-mark{font-size:11px;color:#6f9580;letter-spacing:2px;display:flex;justify-content:space-between}.machine-mark span{border:1px solid #3c5a4b;border-radius:50%;width:22px;height:22px;font-size:9px;display:grid;place-items:center;letter-spacing:0}.sidebar-bottom>p{font-size:17px;line-height:1.8;color:#c4d5c6;letter-spacing:1px;margin:13px 0}.machine-caption{font-size:10px;color:#70907e;margin-bottom:28px}.owner{border-top:1px solid #30483d;display:flex;align-items:center;padding-top:19px;gap:9px;font-size:11px;color:#c3d1c6}.owner small{display:block;font-size:9px;color:#748f7e;margin-top:5px}.owner>.online-dot{margin-left:auto}.avatar{width:30px;height:30px;border-radius:50%;background:#3b5846;color:#c8d8c7;display:grid;place-items:center;font-size:11px}.main-shell{margin-left:224px;flex:1;min-width:0}.topbar{height:73px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;background:rgba(255,255,255,.5)}.breadcrumb{display:flex;gap:17px;font-size:12px;color:#8a938d}.breadcrumb b{color:#405149;font-weight:500}.topbar-right{display:flex;align-items:center;gap:22px}.local-pill{display:flex;align-items:center;gap:7px;font-size:11px;background:#eaf1e9;border:1px solid #e0e9dd;padding:6px 10px;border-radius:20px;color:#53755a}.edition{font-size:9px;letter-spacing:1px;color:#a0aaa1}main{max-width:1480px;margin:auto;padding:39px 44px 0}.page{display:none}.page.active{display:block;animation:enter .22s ease-out}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:16px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#76947c;margin-bottom:11px;font-weight:600}h1{font-size:31px;line-height:1.45;letter-spacing:-.8px;font-weight:650;margin:0}.accent-period{color:#77aa79;margin-left:3px}.page-heading p{color:#8a948a;font-size:12px;margin:11px 0 0;line-height:1.6}.scope-tag{border:1px solid #dce4db;border-radius:30px;padding:7px 12px;color:#8a9889;font-size:10px;white-space:nowrap}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:26px}.primary-column{min-width:0}.stepper{display:flex;align-items:center;gap:26px;background:#ecf1e9;border:1px solid #e3e9df;border-radius:10px;padding:14px 19px;margin-bottom:17px;color:#92a18f;font-size:11px}.stepper span{display:flex;gap:8px;align-items:center}.stepper span+span:before{content:"";width:20px;height:1px;background:#cad5c6;margin-right:2px}.stepper i{font-style:normal;font-size:9px;display:grid;place-items:center;width:20px;height:20px;background:#e1e8db;border-radius:50%;color:#92a18b}.stepper .current{color:#446c4f;font-weight:500}.stepper .current i{background:#527d5a;color:white}.panel{background:white;border:1px solid #e2e7df;border-radius:var(--radius);box-shadow:0 5px 18px #24392703}.form-panel{padding:28px}.panel-title{display:flex;gap:10px;align-items:center;margin-bottom:24px}.section-index{font-size:9px;letter-spacing:1px;color:#92a68d;padding-top:2px}h2{font-size:15px;font-weight:600;margin:0;letter-spacing:.2px}h3{font-size:13px;font-weight:600;margin:0}.field-label{display:block;font-size:11px;font-weight:500;color:#556750;margin-bottom:9px;margin-top:21px}.field-label:first-child{margin-top:0}.field-label span{font-weight:400;color:#a5afa1;margin-left:7px;font-size:10px}.platforms{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.platform{background:#fafbf9;border:1px solid #e7ebe2;padding:14px 4px 12px;border-radius:10px;display:flex;align-items:center;flex-direction:column;transition:all .15s}.platform:hover{border-color:#9fbaa0;background:#f4f8f0}.platform.selected{border-color:#83ae8b;background:#f0f7ec;box-shadow:0 0 0 1px #b8d3b0 inset}.platform-logo{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-size:21px;margin-bottom:8px}.dy{color:#fff;background:#25342b;font-family:serif}.xhs{color:#fff;background:#e56069;font-size:13px;font-weight:700}.ks{color:#fff;background:#e89b5b;font-weight:700}.wx{color:#fff;background:#7aaa80;font-size:20px}.platform strong{font-size:11px;font-weight:500}.platform small{font-size:9px;color:#a5afa0;margin-top:5px}.platform[data-platform=wx]{opacity:.7}input:not([type=checkbox]):not([type=file]):not([type=range]),select,textarea{display:block;width:100%;background:#fcfdfb;border:1px solid #dfe6da;border-radius:8px;color:#314431;padding:12px 13px;font-size:12px;line-height:1.6}textarea{resize:vertical;min-height:76px}input::placeholder,textarea::placeholder{color:#a4afa1}input[type=number]{font-variant-numeric:tabular-nums}select{cursor:pointer}input[type=file]{max-width:100%}.input-hint,.helper{font-size:10px;color:#96a38f;line-height:1.8;margin:9px 0}.helper{font-size:11px}.section-divider{height:1px;background:#edf0e9;margin:26px 0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:18px}.form-row>label{font-size:11px;color:#617258}.form-row>label>input{margin-top:9px}.form-row small{font-size:9px;color:#a5afa0;display:block;line-height:1.6;margin-top:7px}.check-line{display:flex;align-items:center;gap:8px;font-size:11px;color:#63715d;margin:17px 0;line-height:1.7}.check-line input{margin:0}.form-footer{border-top:1px solid #edf0e9;padding-top:22px;margin-top:25px;display:flex;align-items:center;justify-content:space-between;gap:12px}.button{border:1px solid transparent;border-radius:8px;font-size:11px;min-height:40px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:24px;font-weight:500;transition:all .15s;text-decoration:none}.button.primary{background:#286449;color:#fff;box-shadow:0 3px 7px #1748310e}.button.primary:hover:not(:disabled){background:#1b5139;transform:translateY(-1px)}.button.secondary{background:#fff;border-color:#dde6d7;color:#6b7d60}.button.secondary:hover{background:#f0f5eb}.button span{font-size:16px;line-height:1}.button.small{padding:8px 12px;font-size:10px;min-height:33px;gap:8px}.text-button{border:0;background:none;padding:2px 0;color:#728b66;font-size:10px;text-align:left;line-height:1.5}.text-button:hover{color:#245c39}.context-column{padding-top:0}.note-card{border-radius:var(--radius);background:#e6ecdf;padding:25px;position:relative;overflow:hidden;color:#496044}.note-label{font-size:8px;letter-spacing:1.5px;color:#819174;font-weight:500}.note-card h3{font-size:23px;letter-spacing:.2px;line-height:1.65;font-weight:500;margin-bottom:14px}.note-card p{font-size:11px;line-height:1.9;color:#8c9a7e;margin:0}.note-foot{border-top:1px solid #d9e1cd;margin-top:22px;padding-top:15px;font-size:9px;display:flex;align-items:center;gap:13px;color:#889674}.note-foot i{font-style:normal;color:#a3af91}.note-illustration{height:137px;position:relative}.paper{width:134px;height:85px;border-radius:7px;position:absolute;background:#fffef8;left:25px;top:35px;box-shadow:0 7px 13px #526b3520;border:1px solid #d7dec8}.paper-back{transform:rotate(-11deg);background:#d2ddbd;top:26px;left:18px}.paper-front{transform:rotate(5deg);padding:15px}.tiny-avatar{background:#c0d4a2;width:15px;height:15px;border-radius:50%;float:left;margin-right:7px}.tiny-line{background:#dbe3d0;width:70px;height:4px;margin:2px 0 5px;border-radius:3px;float:left}.tiny-line.short{width:42px}.tiny-line.long{margin-top:13px;width:86px;height:5px}.tiny-reply{font-size:17px;color:#a4b68e;position:absolute;right:15px;bottom:10px}.floating-star{font-size:40px;color:#8ca271;position:absolute;right:0;top:24px;transform:rotate(10deg)}.mini-panel{padding:24px 5px 9px}.mini-panel p{font-size:10px;color:#8e9b87;line-height:1.9;margin:11px 0}.mini-title{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:500;color:#718567}.muted{color:#a6afa1!important}.recent-panel{border-top:1px solid #e1e7dc;padding:19px 5px;margin-top:12px}.inline-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.recent-panel h3{font-size:11px;color:#78896f}.empty-small{font-size:10px;color:#a4ad9d;line-height:1.8;margin:15px 0}.page-footer{display:flex;justify-content:space-between;margin:36px 0 0;padding:18px 0;color:#b0b8a8;border-top:1px solid #e7ebe2;font-size:9px;gap:12px}.page-footer span:last-child{font-size:8px;letter-spacing:1px}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:174px;border:1px dashed #b6c9aa;background:#f7faf3;border-radius:12px;text-align:center;cursor:pointer;gap:9px;position:relative}.upload-zone input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload-zone.dragging{background:#dcefd5;border-color:#599363}.upload-symbol{font-size:30px;color:#8fab79}.upload-zone strong{font-size:13px;font-weight:500;color:#69805c}.upload-zone>span:last-child{font-size:10px;color:#a2af97}.file-info{font-size:11px;color:#7a8d6d;padding:12px 0 0;line-height:1.7;overflow-wrap:anywhere}.video-stage{position:relative;background:#131d18;border-radius:9px;overflow:hidden;max-width:100%;width:fit-content;margin:15px auto}.video-stage video{display:block;max-height:490px;max-width:100%;width:auto}.video-stage canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none}.video-controls{display:flex;align-items:center;gap:12px}.video-controls input{flex:1;min-width:40px}.video-controls span{font-size:10px;font-variant-numeric:tabular-nums}.region-list{font-size:10px;margin:12px 0 22px;color:#68865b;line-height:1.7}.large-glyph{font-size:78px;color:#a1b08b;margin:25px 0 10px;line-height:1}.quote-glyph{font-size:126px;font-family:Georgia,serif;color:#9cb18c;height:110px;line-height:1.2;margin-top:25px}.plain-note{min-height:300px}.input-action{display:flex;gap:8px}.input-action input{flex:1;min-width:0}.input-action button{flex-shrink:0;padding:10px 12px}.or-upload{display:flex;gap:8px;align-items:center;font-size:10px;color:#9daa94;margin:12px 0}.file-link{position:relative;overflow:hidden;cursor:pointer}.file-link input{position:absolute;inset:0;opacity:0;cursor:pointer;max-width:100%;width:100%;height:100%}.text-right{text-align:right}.presets{display:flex;gap:7px;margin-top:9px}.preset{padding:11px 13px;border:1px solid #e3e8dc;background:#f8faf5;border-radius:7px;font-size:12px;color:#8c9d81;min-width:42px}.preset.selected{background:#e4efdb;border-color:#b3c89e;color:#53753d}.form-row .field-label{margin-top:0}.model-notice{background:#f7f4e9;color:#9b916c;border:1px solid #eee8d3;border-radius:8px;font-size:10px;line-height:1.8;padding:12px 15px;margin-top:20px}.output-region:not(:empty){margin-top:20px}.result-panel{padding:22px;background:#fff;border:1px solid #e0e7d9;border-radius:13px;overflow:hidden}.result-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:12px}.result-heading h3{font-size:13px}.result-message{font-size:11px;color:#93a088;line-height:1.8;overflow-wrap:anywhere}.badge{font-size:9px;padding:4px 8px;border-radius:20px;background:#edf2e7;color:#7c8e70;white-space:nowrap}.badge.running,.badge.queued{background:#e2eee1;color:#52834d}.badge.failed,.badge.login_required,.badge.not_supported{background:#faeae2;color:#b57855}.badge.completed{background:#e7f3df;color:#66904a}.badge.partial{background:#fbf2d8;color:#a59445}.progress-track{height:3px;background:#edf1e8;border-radius:3px;overflow:hidden;margin:12px 0}.progress-track i{height:100%;background:#7aa466;display:block;transition:width .4s}.progress-track.indeterminate i{width:30%!important;animation:moving 1.7s infinite ease-in-out}.result-actions{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.result-actions .button{min-height:30px;padding:7px 10px;font-size:10px;gap:8px}.comment-list{max-height:510px;overflow:auto;border-top:1px solid #edf0e8}.comment-row{display:flex;gap:10px;border-bottom:1px solid #edf0e8;padding:15px 0}.comment-row .comment-index{font-size:9px;color:#b4c0a8;min-width:20px;padding-top:3px}.comment-row.reply{padding-left:25px}.comment-content{flex:1;min-width:0}.comment-meta{font-size:9px;color:#a4b098;display:flex;gap:10px;align-items:center}.comment-text{font-size:12px;color:#5a6d4e;line-height:1.85;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere}.comment-row input[type=checkbox]{width:13px;height:13px}.comment-row .text-button{align-self:start;font-size:9px}.result-video{max-width:100%;max-height:600px;display:block;margin:15px auto;background:#111;border-radius:8px}.history-filters{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.filter{border:1px solid transparent;background:none;color:#94a18a;font-size:11px;border-radius:20px;padding:8px 14px}.filter.active{color:#5e7f47;background:#e6efde;border-color:#d4e2c9}.history-list{display:grid;gap:10px}.history-card{display:flex;align-items:center;text-align:left;gap:20px;background:#fff;border:1px solid #e3e8dc;border-radius:12px;padding:20px;width:100%;transition:border-color .15s}.history-card:hover{border-color:#aec39a}.history-icon{width:39px;height:39px;background:#f0f5e9;display:grid;place-items:center;border-radius:10px;color:#94ad7d;font-size:21px}.history-description{flex:1;min-width:0}.history-description strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.history-description small{display:block;font-size:10px;color:#a3b095;margin-top:7px}.history-empty{padding:70px 20px;text-align:center;border:1px dashed #dce4d3;border-radius:16px;color:#a1ae91}.history-empty .large-glyph{font-size:45px;margin:0 0 15px}.history-empty h3{color:#839471;font-size:15px}.history-empty p{font-size:11px;line-height:1.8}.recent-job{display:block;border:0;width:100%;background:transparent;border-bottom:1px solid #e7ecdf;text-align:left;padding:12px 0}.recent-job strong{font-size:10px;font-weight:500;color:#7a8c6a;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-job small{font-size:9px;color:#a7b398;display:block;margin-top:5px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.settings-grid .form-panel>.button{margin-top:22px}.address-card{border:1px solid #e5eadd;border-radius:10px;padding:17px;background:#f9fbf5;display:grid;gap:7px;margin-top:21px}.address-card span{font-size:9px;color:#a2b08f}.address-card code{font-size:11px;color:#668050;overflow-wrap:anywhere}.address-card span:nth-of-type(2){margin-top:12px}.doc-links{display:flex;gap:18px;font-size:10px;color:#8f9f7e;margin-top:20px}.doc-links a:hover{text-decoration:underline}.settings-note{padding:22px 18px}.toast{position:fixed;bottom:28px;left:calc(50% + 100px);transform:translate(-50%,15px);background:#213e2b;color:#eff6e9;padding:14px 22px;border-radius:10px;box-shadow:0 8px 40px #243a3530;font-size:12px;max-width:min(600px,85vw);z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;line-height:1.7}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #dbe6d0;border-radius:18px;padding:35px;max-width:420px;width:90%;color:var(--ink)}dialog::backdrop{background:#172e2980;backdrop-filter:blur(5px)}dialog h2{font-size:23px;margin-top:10px}dialog p{font-size:12px;color:#97a388;line-height:1.7}dialog button{width:100%;margin-top:20px}.error-text{color:#b86d57}.result-warnings{font-size:10px;color:#a29677;line-height:1.8}.saved-note{font-size:10px;color:#8aa16c;margin:10px 0}.result-text{max-height:400px;overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.9;color:#5e7550;overflow-wrap:anywhere}.loading-label{color:#829a6b;font-size:11px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes enter{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes moving{from{transform:translateX(-100%)}to{transform:translateX(430%)}}@media(min-width:1600px){main{padding-top:49px}.workspace-grid{grid-template-columns:minmax(0,1fr) 305px;gap:32px}.form-panel{padding:34px}.note-card{padding:30px}.note-illustration{height:160px}.paper{left:38px;top:44px}.paper-back{left:30px;top:33px}.note-card h3{font-size:26px}}@media(max-width:1180px){.sidebar{width:196px;flex-basis:196px;padding-left:12px;padding-right:12px}.main-shell{margin-left:196px}main{padding:30px 26px 0}.topbar{padding:0 26px}.workspace-grid{grid-template-columns:minmax(0,1fr) 230px;gap:20px}.form-panel{padding:24px}.note-card{padding:22px}.stepper{gap:13px;padding:13px}.stepper span+span:before{width:10px;margin-right:0}.platforms{gap:6px}.page-heading h1{font-size:28px}.note-card h3{font-size:21px}.form-row{gap:12px}.presets{gap:4px}.preset{padding:11px 10px;min-width:36px}.topbar-right{gap:12px}.edition{display:none}}@media(max-width:980px){.context-column{display:none}.workspace-grid{grid-template-columns:minmax(0,1fr)}.settings-grid{grid-template-columns:1fr}.page-heading h1{font-size:28px}.scope-tag{font-size:9px}.toast{left:calc(50% + 90px)}}@media(max-width:700px){.sidebar{width:100%;height:64px;position:sticky;top:0;padding:0 14px;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.app-shell{display:block}.brand{font-size:18px;padding:0;gap:6px;letter-spacing:1px}.brand-symbol{width:28px;height:31px;font-size:17px;border-radius:7px}.brand small,.space-label,.nav-label,.sidebar-bottom,.nav-item .nav-icon,.nav-arrow,.nav-item .count{display:none}.sidebar nav{display:flex;gap:2px;align-items:center}.nav-item{padding:9px 7px;font-size:10px;width:auto;white-space:nowrap;margin:0;border-radius:6px;gap:0}.sidebar nav:last-of-type{border-left:1px solid #46604d;padding-left:7px}.main-shell{margin-left:0}.topbar{height:50px;padding:0 18px}.breadcrumb{font-size:10px;gap:10px}.local-pill{font-size:9px;padding:4px 8px}main{padding:27px 16px 0}.page-heading{margin-bottom:25px;align-items:flex-start;gap:8px}.page-heading h1{font-size:24px;letter-spacing:-.8px}.page-heading p{font-size:10px;max-width:270px}.scope-tag{display:none}.eyebrow{font-size:8px}.form-panel{padding:20px}.stepper{gap:12px;justify-content:space-between;font-size:10px}.stepper span+span:before{display:none}.stepper i{width:17px;height:17px}.panel-title{margin-bottom:21px}h2{font-size:13px}.platforms{gap:6px}.platform{padding:11px 3px}.platform small{font-size:8px}.platform strong{font-size:10px}.field-label{font-size:10px}.field-label span{display:inline;font-size:9px}.form-row{gap:12px}.form-footer{gap:8px}.button{padding:10px 12px;gap:16px;font-size:10px;min-height:37px}.form-footer .helper{max-width:50%;font-size:9px}.page-footer{font-size:8px;display:block;margin-top:25px}.page-footer span{display:block;margin:8px 0}.toast{left:50%;bottom:18px}.presets{gap:5px;flex-wrap:wrap}.preset{padding:10px;min-width:32px}.history-card{padding:15px;gap:10px}.history-description strong{font-size:11px}.history-card .badge{font-size:8px}.history-filters{gap:3px}.filter{padding:7px 9px;font-size:10px}.result-panel{padding:17px}.upload-zone>span:last-child{font-size:9px}.video-stage video{max-height:430px}.comment-text{font-size:11px}.input-action{display:block}.input-action button{margin-top:8px}.input-action input{width:100%}.model-notice{font-size:10px}.check-line{font-size:10px}.section-divider{margin:23px 0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Readable working typography and sufficient contrast on light surfaces. */
.nav-item{font-size:14px}.space-label{font-size:12px}.breadcrumb{font-size:13px}.page-heading p{font-size:14px;color:#768574}.field-label,.form-row>label{font-size:13px;color:#566b50}.field-label span{font-size:11px;color:#7c8f73}.platform strong{font-size:13px}.platform small{font-size:11px;color:#829276}.platform{padding-top:15px;padding-bottom:14px}.stepper{font-size:12px}.stepper span{white-space:nowrap}.input-hint,.helper{font-size:12px;color:#788e6d}.form-row small{font-size:11px;color:#849678}.check-line{font-size:13px}.button{font-size:13px}.text-button{font-size:12px}.note-card p{font-size:13px;color:#718362}.mini-panel p{font-size:12px;color:#77896b}.muted{color:#849679!important}.field-label+textarea,textarea,input:not([type=checkbox]):not([type=file]):not([type=range]),select{font-size:14px}.note-foot{font-size:11px;color:#788c69}.mini-title,.mini-panel h3,.recent-panel h3{font-size:13px}.empty-small{font-size:12px;color:#8b9b7f}.model-notice{font-size:12px}.comment-text,.result-text{font-size:14px}.comment-meta,.result-message{font-size:12px}.comment-row .text-button{font-size:11px}.result-warnings,.saved-note{font-size:12px}.scope-tag{font-size:11px}.history-description strong{font-size:14px}.history-description small{font-size:12px}.result-actions .button{font-size:12px}.badge{font-size:11px}.recent-job strong{font-size:12px}.recent-job small{font-size:11px}.form-panel>.panel-title h2{font-size:17px}.upload-zone strong{font-size:15px}.upload-zone>span:last-child{font-size:12px}.file-info,.region-list{font-size:12px}.address-card span{font-size:12px}.address-card code{font-size:13px}.doc-links{font-size:12px}.text-button.file-link{font-size:12px}.or-upload{font-size:12px}.form-footer .helper{font-size:12px}.page-footer{font-size:10px;color:#829375}.filter{font-size:13px}.history-empty p{font-size:13px}.local-pill{font-size:12px}.owner{font-size:12px}.owner small{font-size:10px}.scope-tag{color:#78886d}.input-hint{line-height:1.75}.edition{color:#7e9071}.form-panel{padding:26px}
@media(max-width:1180px){.stepper{font-size:11px;gap:10px}.stepper span+span:before{width:8px}.platform small{font-size:10px}.button{font-size:12px}}
@media(max-width:700px){.sidebar{height:auto;min-height:64px;padding:12px;flex-wrap:wrap;justify-content:flex-start;gap:9px}.brand{margin-right:auto}.sidebar nav{order:2;flex:1}.sidebar nav:last-of-type{order:3;flex:0}.nav-item{font-size:12px;padding:8px}.brand small{display:none}.nav-item .nav-icon{display:none}.stepper{font-size:11px}.page-heading p{font-size:13px}.form-panel{padding:20px}.field-label,.form-row>label{font-size:12px}.field-label span{font-size:10px}.platform strong{font-size:12px}.platform small{font-size:10px}.input-hint,.helper{font-size:12px}.form-row small{font-size:11px}.check-line{font-size:12px}.button{font-size:12px}.form-footer{flex-wrap:wrap}.form-footer .helper{max-width:none}.comment-text{font-size:13px}.presets{gap:4px}.preset{min-width:30px;padding:10px 8px}.history-filters{gap:3px}.filter{font-size:12px}.result-actions .button{font-size:11px}.scope-tag{display:none}}
.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0}.comparison-grid figure{margin:0;min-width:0}.comparison-grid figcaption{font-size:13px;font-weight:600;margin-bottom:9px;color:#395c48}.comparison-grid video{display:block;width:100%;max-height:580px;aspect-ratio:9/16;object-fit:contain;background:#111;border-radius:10px}.comparison-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.comparison-controls input{flex:1;min-width:100px}.comparison-controls span{font-size:12px;font-variant-numeric:tabular-nums}.video-comparison [data-save-status]{overflow-wrap:anywhere}.video-comparison .result-actions{flex-wrap:wrap;margin-top:16px}@media(max-width:600px){.comparison-grid{gap:8px}.comparison-grid video{max-height:400px}.comparison-grid figcaption{font-size:11px}.comparison-controls{gap:8px}.comparison-controls input{order:4;flex-basis:100%}}
.volume-control{display:flex;align-items:center;gap:8px}.volume-control .volume-slider{flex:0 0 86px;min-width:60px;width:86px;accent-color:#28624c}.volume-control [data-volume-value]{width:33px;text-align:right}.video-download-button{transition:background-color .2s,transform .2s;min-width:145px;justify-content:center}.video-download-button.downloading:before{content:"";width:14px;height:14px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:download-spin .7s linear infinite}.video-download-button.download-completed span{display:inline-block;animation:download-check .35s ease-out}.video-comparison [data-download-status]{overflow-wrap:anywhere}.download-dialog{position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);max-height:calc(100vh - 32px);overflow:auto;max-width:360px;width:min(360px,calc(100vw - 32px));padding:24px;border:1px solid #dbe6d6;border-radius:16px;background:#fff;color:#243d30;box-shadow:0 24px 80px #112c3033}.download-dialog::backdrop{background:#10282055;backdrop-filter:blur(3px)}.download-dialog[open]{animation:download-dialog-in .22s ease-out}.download-dialog .dialog-close{position:absolute;top:14px;right:16px;width:32px;height:32px;margin:0;padding:0;display:grid;place-items:center;border:0;background:transparent;font-size:25px;cursor:pointer;color:#698374}.download-success-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e7f3de;color:#2e684e;font-size:22px;margin:0 auto 10px}.download-dialog h2{font-size:20px;margin:0 0 5px;text-align:center}.download-dialog #download-size{text-align:center;margin:0}.download-location{background:#f4f7f1;border-radius:12px;padding:12px;margin:16px 0}.download-location>span{font-size:12px;color:#758771}.download-location p{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:7px 0 0}.download-dialog-actions{display:flex;gap:12px;flex-wrap:wrap}.download-dialog-actions .button{width:auto;flex:1;margin:0}.download-dialog .error-text:empty{display:none}@keyframes download-spin{to{transform:rotate(360deg)}}@keyframes download-check{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}@keyframes download-dialog-in{from{opacity:0;transform:translate(-50%,calc(-50% + 10px))}to{opacity:1;transform:translate(-50%,-50%)}}@media(max-width:600px){.comparison-controls>[data-compare-seek]{order:4;flex-basis:100%}.comparison-controls .volume-slider{order:0;flex-basis:80px}.download-dialog{padding:22px}.download-dialog-actions .button{flex:1}}@media(prefers-reduced-motion:reduce){.video-download-button.downloading:before,.video-download-button.download-completed span,.download-dialog[open]{animation:none}}

/* Module histories stay alongside the current tool, with recognisable sources. */
.module-toolbar{display:flex;justify-content:flex-end;margin-bottom:8px}.module-history-entry{white-space:nowrap}.module-history-dialog{position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);width:min(1040px,calc(100vw - 40px));max-width:1040px;max-height:calc(100dvh - 48px);padding:14px;background:#fff;color:#243d30;overflow:auto;box-shadow:0 24px 80px #112c3033}.module-history-dialog::backdrop{background:#10282055;backdrop-filter:blur(3px)}.module-history-dialog button{width:auto;margin:0}.module-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:8px}.module-history-heading h2{font-size:20px;line-height:1.35;margin:0}.module-history-heading p{margin:4px 0 0;font-size:11px;line-height:1.5;color:#758771}.module-history-heading .history-dialog-close{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;padding:0;border:0;background:transparent;font-size:28px;color:#698374}.module-history-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:0}.history-search{display:flex;align-items:center;gap:8px;flex:1;min-width:160px;background:#f8faf6;border:1px solid #dce6d9;border-radius:9px;padding:0 12px}.history-search>span{font-size:22px;color:#73906e}.history-search input{width:100%;min-width:0;border:0;background:transparent;padding:10px 0;outline:none;font-size:13px}.history-column-switch{display:flex;border:1px solid #dce6d9;border-radius:8px;overflow:hidden}.history-column-switch button{padding:9px 12px;border:0;background:#fff;color:#6b8264;font-size:12px}.history-column-switch .active{background:#28694f;color:#fff}.module-history-list{display:grid;gap:6px}.module-history-list:not(.three-columns)>.module-history-card{min-height:var(--history-card-min-height,0px);align-items:center}.module-history-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;border:1px solid #dfe7dc;border-radius:10px;padding:5px 10px;background:#fff;min-width:0}.history-media{position:relative;display:grid;place-items:center;background:#edf3e8;border-radius:8px;overflow:hidden;min-width:0;width:58px;height:76px;color:#729268;font-size:30px;flex-shrink:0}.history-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.history-media-spinner{position:absolute!important;right:8px;bottom:8px;width:20px;height:20px;border:3px solid #ffffffc9;border-top-color:#2c6f50;border-radius:50%;box-shadow:0 0 0 3px #ffffffb0;animation:download-spin .8s linear infinite}.history-record-content{min-width:0}.history-record-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.history-record-title h3{font-size:13px;line-height:1.4;margin:0;overflow-wrap:anywhere;min-width:0}.history-record-meta,.history-record-created,.history-expiry{font-size:11px;line-height:1.45!important;color:#7e8d76!important;margin:0!important}.history-record-meta{color:#526b4b!important;font-variant-numeric:tabular-nums}.history-processing-note{color:#36664d!important;font-size:12px!important;margin:9px 0 4px!important;line-height:1.6!important}.history-task-progress{display:flex;align-items:center;gap:10px}.history-task-progress .progress-track{flex:1;height:4px;margin:5px 0}.history-task-progress>span{font-size:11px;color:#718969;min-width:35px;text-align:right}.history-task-error{font-size:12px!important;color:#ad6352!important;overflow-wrap:anywhere}.history-record-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:3px}.history-record-actions .button{min-height:28px;padding:4px 10px;gap:6px;font-size:11px}.history-delete{color:#b36d59;background:#fff7f3;border:1px solid #efd8ce}.history-record-actions button:disabled{opacity:.45;cursor:not-allowed}.module-history-card.is-expired{background:#fafbf8}.badge.expired{background:#edf0eb;color:#8a9683}.module-history-empty{padding:50px 20px;text-align:center;border:1px dashed #dce6d9;border-radius:12px;grid-column:1/-1}.module-history-empty>span{font-size:45px;color:#9aad8e}.module-history-empty h3{font-size:16px;margin:12px 0 0;color:#718466}.module-history-empty p{font-size:13px}.module-history-preview{margin-bottom:18px}.module-history-preview>.text-button{margin-bottom:10px}.module-history-preview .comparison-grid video{max-height:360px}.module-history-preview .result-panel{border-color:#bdd3b9}.expired-result p{font-size:13px;color:#7a8d70}.module-history-list.three-columns{grid-template-columns:repeat(3,minmax(0,1fr))}.three-columns .module-history-card{grid-template-columns:1fr;gap:12px}.three-columns .history-media{width:100%;height:170px}.three-columns .history-media img{object-fit:contain;background:#14201a}.three-columns .history-record-title{min-height:42px}.three-columns .history-record-actions{gap:6px}.three-columns .history-record-actions .button{padding:6px 9px;font-size:11px}.module-history-dialog .history-filters[hidden]{display:none}.module-history-dialog [hidden]{display:none}.module-history-dialog .history-filters{margin:8px 0 0}.module-history-dialog .comparison-controls [data-compare-time]{color:#496842}

#module-history-dialog{--history-dialog-padding:14px;padding:var(--history-dialog-padding)}.module-history-header{position:sticky;top:calc(-1 * var(--history-dialog-padding));z-index:4;background:#fff;margin:calc(-1 * var(--history-dialog-padding)) calc(-1 * var(--history-dialog-padding)) 10px;padding:var(--history-dialog-padding) var(--history-dialog-padding) 10px;border-bottom:1px solid #e5eae5}.module-history-header .history-search input[type=search]{background:transparent;border:0;padding:7px 0;font-size:12px;line-height:1.5}.module-history-header #module-history-count{margin:0;white-space:nowrap}.history-record-timing{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 14px}.module-history-list:not(.three-columns) .history-record-title h3,.history-record-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.module-history-card .badge{flex-shrink:0;padding:3px 8px;font-size:10px}.module-history-dialog [data-history-card],.module-history-preview{scroll-margin-top:145px}
@media(max-width:800px){.module-history-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:14px}.module-history-list.three-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.module-history-tools{gap:8px}}@media(max-width:540px){#module-history-dialog{--history-dialog-padding:12px}.module-history-heading h2{font-size:18px}.module-history-heading p{font-size:11px}.module-history-card{grid-template-columns:56px minmax(0,1fr);padding:10px;gap:10px}.history-media{width:56px;height:84px}.module-history-list:not(.three-columns) .history-record-title h3{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.history-record-timing{gap:0 10px}.history-record-title{flex-wrap:wrap;gap:5px}.history-record-title h3{font-size:13px}.history-record-meta,.history-record-created,.history-expiry{font-size:11px}.history-record-actions{gap:6px}.history-record-actions .button{font-size:11px;padding:6px 9px}.module-history-list.three-columns{grid-template-columns:1fr}.three-columns .module-history-card{grid-template-columns:56px minmax(0,1fr)}.three-columns .history-media{width:56px;height:84px}.three-columns .history-record-title{min-height:0}.page-heading .module-history-entry{padding:8px 10px;font-size:11px;gap:8px}.module-history-tools .history-search{flex-basis:100%}}@media(prefers-reduced-motion:reduce){.history-media-spinner{animation:none}}
.global-history-media{width:60px;height:84px;font-size:25px}.history-card .history-description small{line-height:1.6}.history-card .global-history-media img{object-fit:cover}@media(max-width:540px){.global-history-media{width:48px;height:70px}.history-card{gap:10px}}

.subtitle-api-card{margin-top:24px}.subtitle-api-card>.panel-title{flex-wrap:wrap;margin-bottom:12px}.subtitle-api-model{margin-left:auto;border-radius:20px;background:#edf4e9;color:#5b7950;padding:5px 10px;font-size:11px;white-space:nowrap}.subtitle-api-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;margin-top:10px}.subtitle-api-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.subtitle-api-actions .button{gap:10px}.subtitle-api-trial{border-left:1px solid #e0e8dc;padding-left:28px}.subtitle-api-trial>.inline-heading{margin-bottom:8px}.subtitle-api-trial h3{font-size:16px}.subtitle-api-trial .input-action{align-items:stretch}.subtitle-api-source{display:grid;grid-template-columns:64px minmax(0,1fr);gap:13px;background:#f5f8f1;border:1px solid #dfe8d7;border-radius:10px;padding:12px;margin-top:14px;min-width:0}.subtitle-api-source[hidden]{display:none}.subtitle-api-source img{width:64px;height:92px;object-fit:cover;border-radius:6px;background:#e4eddc}.subtitle-api-source .subtitle-api-placeholder{width:64px;height:92px;display:grid;place-items:center;color:#8fa382;font-size:28px;background:#e8efdf;border-radius:6px}.subtitle-api-source strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere;color:#436337}.subtitle-api-source p{font-size:12px;color:#79906d;margin:7px 0;line-height:1.6}.subtitle-api-consent{margin-top:14px}.subtitle-api-consent .button{width:100%;justify-content:center;gap:12px;margin-top:4px}.subtitle-api-card .error-text:empty,.subtitle-api-card [role=status]:empty{display:none}.subtitle-api-card .input-hint{overflow-wrap:anywhere}.subtitle-api-card button:disabled{opacity:.5;cursor:not-allowed}.subtitle-api-card #subtitle-api-test[aria-busy=true]:before,.subtitle-api-card #subtitle-api-import[aria-busy=true]:before{content:"";width:13px;height:13px;border:2px solid #ffffff80;border-top-color:currentColor;border-radius:50%;animation:download-spin .8s linear infinite}.subtitle-api-card #subtitle-api-balance-result{color:#4c7042;font-variant-numeric:tabular-nums}.subtitle-api-card #subtitle-api-cost{color:#927f4e;background:#f8f5eb;border:1px solid #eee6d3;border-radius:8px;padding:10px 12px}@media(max-width:980px){.subtitle-api-grid{grid-template-columns:1fr;gap:24px}.subtitle-api-trial{border-left:0;border-top:1px solid #e0e8dc;padding-left:0;padding-top:20px}}@media(max-width:540px){.subtitle-api-model{margin-left:28px}.subtitle-api-actions .button{flex:1;justify-content:center;padding:9px 11px}.subtitle-api-source{grid-template-columns:55px minmax(0,1fr);gap:10px}.subtitle-api-source img,.subtitle-api-source .subtitle-api-placeholder{width:55px;height:78px}.subtitle-api-source strong{font-size:13px}}@media(prefers-reduced-motion:reduce){.subtitle-api-card #subtitle-api-test[aria-busy=true]:before,.subtitle-api-card #subtitle-api-import[aria-busy=true]:before{animation:none}}

.subtitle-api-thumbnail{position:relative;width:64px;height:92px;overflow:hidden;border-radius:6px}.subtitle-api-thumbnail .subtitle-api-placeholder{width:100%;height:100%;font-size:11px;text-align:center;padding:5px;color:#718367;box-sizing:border-box}.subtitle-api-source .subtitle-api-thumbnail img{position:absolute;inset:0;width:100%;height:100%}.subtitle-api-source .subtitle-api-thumbnail img[hidden]{display:none}@media(max-width:540px){.subtitle-api-thumbnail{width:55px;height:78px}}

/* Keep comment collection focused on its form and results. */
#page-collector .page-heading,#page-collector .workspace-grid{max-width:900px;margin-left:auto;margin-right:auto}
#page-collector .workspace-grid{display:block}
.module-history-entry{min-width:124px;min-height:44px;padding:12px 20px;font-size:13px;gap:14px;flex-shrink:0}
#page-video .module-toolbar,#page-studio .page-heading,#page-video .workspace-grid,#page-studio .workspace-grid{max-width:900px;margin-left:auto;margin-right:auto}
#page-video .workspace-grid,#page-studio .workspace-grid{display:block}
#page-collector .collector-quantity-grid{align-items:start}
#page-collector .collector-replies-switch{margin:0 0 12px;color:#49674f}
#page-collector .collector-reply-label{display:block;font-size:12px;color:#617258}
#page-collector .collector-reply-label>input{margin-top:9px}
#page-collector #reply-limit:disabled{background:#edf0ec;border-color:#e2e7df;color:#9ba59b;cursor:not-allowed}
#page-collector .collector-reply-settings:has(#collect-replies:not(:checked)) .collector-reply-label{color:#9aa599}
@media(max-width:600px){#page-collector .collector-quantity-grid{grid-template-columns:1fr;gap:20px}#page-collector .collector-replies-switch{margin-bottom:10px}#page-collector .module-history-entry{min-width:96px}}

.collector-result .result-message{font-size:15px;line-height:1.8;color:#52694f}
.collector-result .result-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.collector-result .result-actions>.button{min-height:48px;min-width:154px;padding:12px 20px;font-size:15px;gap:12px}
.collector-result .collector-reference-action{background:#f3f6ef;border-color:#e6ece0;color:#6c7c62}
.collector-result .collector-reference-action:hover{background:#eaf0e3}
.collector-link-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:21px 0 9px}
.collector-link-label>.field-label{margin:0}
.collector-link-label>.text-button{flex-shrink:0;align-self:center;min-height:32px;padding:4px 8px;font-size:12px;white-space:nowrap}
#collect-link-edit-hint{margin:8px 0 4px}
#collector-login-hint{margin:8px 0 0}
@media(max-width:540px){.collector-result .result-actions{display:grid;grid-template-columns:1fr;gap:10px}.collector-result .result-actions>.button{width:100%;min-width:0}.collector-result .result-message{font-size:14px}}
@media(max-width:600px){#page-collector .module-history-entry,#page-video .module-history-entry,#page-studio .module-history-entry{min-width:112px;min-height:44px;padding:10px 14px;font-size:13px;gap:10px}}
.speech-settings-card{margin-top:24px}
.speech-settings-card .doc-links{flex-wrap:wrap}
.speech-settings-card #speech-settings-status{margin-bottom:16px}
@media(max-width:700px){.speech-settings-card{margin-top:18px}}
.source-details{margin:18px 0;padding:18px 20px;background:#f7f9f4;border:1px solid #e3e8de;border-radius:12px;min-width:0}
.source-title{font-weight:600;margin:8px 0;overflow-wrap:anywhere}.source-link{display:inline-block;max-width:100%;overflow-wrap:anywhere;font-size:14px;line-height:1.7;color:#21523d}
.source-details .text-button{display:block;margin-top:6px}.generation-context{margin-top:24px;padding-top:16px;border-top:1px solid #e3e8de}.generation-context .result-text{white-space:pre-wrap}
.form-error{color:#9c3024;background:#fff0ed;padding:12px 16px;border-radius:10px}.history-record-meta,.history-description small{overflow-wrap:anywhere}

#page-studio .speech-panel-heading{justify-content:space-between;gap:20px;flex-wrap:wrap}
#page-studio .speech-panel-title{display:flex;align-items:center;gap:14px}
#page-studio .speech-upload-button{min-height:40px;padding:9px 16px;gap:6px;font-size:14px;font-weight:600;line-height:20px;cursor:pointer}
#page-studio .speech-upload-button:focus-within{outline:3px solid #b3c89e;outline-offset:3px}
#page-studio .speech-upload-button:has(input:disabled){opacity:.6;cursor:wait}
@media(max-width:600px){#page-studio .speech-panel-heading{gap:12px}#page-studio .speech-upload-button{margin-left:auto}}

#page-studio .speech-panel-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
#page-studio .brief-open-button{min-height:40px;padding:9px 16px;gap:6px;font-size:14px;font-weight:600;line-height:20px;white-space:nowrap}
#page-studio .speech-panel-actions .button-latin{font-size:12px;line-height:inherit}
#page-studio .brief-summary{display:block;max-width:100%;margin:0 0 18px;padding:9px 13px;border:1px solid #dce6d6;border-radius:8px;background:#f2f7ee;color:#42643d;font-size:12px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#page-studio .brief-summary:hover{background:#e8f1e1;border-color:#b4caa8}
.brief-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;max-height:90vh;max-height:90dvh;padding:28px;background:#fff;color:var(--ink);overflow:auto;box-shadow:0 24px 80px #112c3033}
.brief-dialog::backdrop{background:#10282055;backdrop-filter:blur(3px)}
.brief-dialog button{width:auto;margin-top:0}
.brief-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.brief-dialog-heading h2{margin:0;font-size:22px;line-height:1.4}
.brief-dialog-heading p{margin:8px 0 0;color:#788e6d;font-size:13px}
.brief-dialog .brief-dialog-close{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;font-size:28px;line-height:1;color:#698374}
.brief-dialog .brief-dialog-close:hover{background:#f1f5ed}
.brief-dialog .brief-file-actions{margin:24px 0 10px;gap:14px;align-items:center}
.brief-dialog .brief-file-actions .file-link{min-height:40px;padding:10px 16px;font-size:14px;line-height:20px;cursor:pointer}
.brief-dialog .brief-file-actions .file-link:focus-within{outline:2px solid #60a784;outline-offset:3px}
.brief-dialog #brief-status{margin:0 0 20px;overflow-wrap:anywhere}
.brief-dialog #brief-status:empty{display:none}
.brief-dialog #brief-format-help{margin:0 0 16px}
#page-studio #extract-link{background:#edf5ef;color:#24583f;border-color:#98b8a4;font-weight:500;box-shadow:none}
#page-studio #extract-link:hover:not(:disabled){background:#e2efe6;border-color:#789f89}
.brief-dialog .field-label{margin:0 0 9px}
.brief-dialog #brief-text{min-height:220px;max-height:45vh;background:#fcfdfb;line-height:1.8}
.brief-dialog #brief-text-count{margin:8px 0 0;color:#7d9073;font-size:12px}
.brief-dialog-footer{display:flex;justify-content:flex-end;margin-top:22px;padding-top:18px;border-top:1px solid #edf0e9}
.brief-dialog-footer .button{min-width:96px}
@media(max-width:600px){#page-studio .speech-panel-actions{gap:8px;margin-left:auto}.brief-dialog{width:calc(100vw - 24px);max-height:90dvh;padding:20px}.brief-dialog-heading{gap:12px}.brief-dialog-heading h2{font-size:20px}.brief-dialog #brief-text{min-height:180px}.brief-dialog .brief-file-actions{flex-wrap:wrap}}
#page-studio .studio-speech-result{padding:16px 18px;border-radius:12px}
#page-studio .speech-summary-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0;line-height:1.6}
#page-studio .speech-summary-row h3{flex:0 1 auto;min-width:0;margin:0;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
#page-studio .speech-summary-row .badge{flex:0 0 auto;margin:0;font-size:11px}
#page-studio .speech-summary-time{flex:0 0 auto;color:#7a8d70;font-size:12px;white-space:nowrap}
#page-studio .speech-summary-note{flex:0 1 auto;max-width:100%;color:#7a8d70;font-size:12px}
#page-studio .speech-summary-source{display:block;min-width:0;max-width:100%;margin:8px 0 0;color:#63765b;font-size:13px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){#page-studio .studio-speech-result{padding:14px 15px}#page-studio .speech-summary-row{gap:6px 10px}#page-studio .speech-summary-row h3{font-size:13px}#page-studio .speech-summary-source{margin-top:7px;font-size:12px}}
.generation-result .generation-numbered-list{max-height:none;overflow:visible;margin:12px 0;padding:0 0 0 2em;border:0;list-style:decimal outside;font-size:14px}
.generation-result .generation-comment{margin:2px 0;padding:0;border:0;background:none;color:#5a6d4e;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:normal;overflow-wrap:break-word}
.generation-result .generation-comment::marker{color:inherit;font-weight:400}

/* Keep video previews next to their task and preserve scroll position on polling. */
.module-history-list > .inline-history-preview{grid-column:1 / -1;margin:0 0 16px;padding:18px;border:1px solid var(--line,#dce5d5);border-radius:16px;background:#f8faf5;min-width:0}
.inline-history-preview .result-panel{margin:12px 0 0}
.module-history-dialog{overflow-anchor:none}
.video-queue-count{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.2);font-size:12px}
.video-queue-count[hidden]{display:none}

/* History details stay at the selected record across all modules. */
.history-list > .inline-history-preview{grid-column:1 / -1;margin:0 0 16px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#f8faf5;min-width:0}
.history-list{overflow-anchor:none}.history-scope-controls{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:18px}.history-scope-controls .history-filters{margin:0}.history-owner-field{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.history-owner-field select{width:auto;min-width:180px;max-width:100%}.history-description .history-owner{color:var(--green);font-weight:600}.module-history-dialog{height:min(800px,calc(100dvh - 48px))}
@media(max-width:540px){.history-scope-controls{align-items:stretch}.history-owner-field{flex:1 1 100%;flex-wrap:wrap}.history-owner-field select{flex:1}.history-list > .inline-history-preview,.module-history-list > .inline-history-preview{padding:12px}.module-history-dialog{height:calc(100dvh - 24px)}}
