/* Source workflow has its own tokens; playback and HUD styles stay independent. */
.source-scene{--source-bg:#101516;--source-panel:#181e20;--source-border:#303b3e;--source-ink:#f0f4f2;--source-muted:#98aaa7;--source-accent:#adedd2;position:fixed;inset:0;z-index:200;display:block;overflow:auto;padding:0;background:var(--source-bg);color:var(--source-ink);font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color-scheme:dark}
.source-shell{width:100%;max-width:1180px;min-height:100%;margin:auto;display:flex;flex-direction:column;padding:0 40px}
.source-header{min-height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--source-border);gap:20px}
.source-brand{display:flex;align-items:center;gap:16px}.source-brand b{font-size:28px;letter-spacing:-2px;color:var(--source-accent)}.source-brand>span{font-size:11px;letter-spacing:2.4px;font-weight:600}.source-header-note{color:var(--source-muted);font-size:12px}
.source-workspace{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:64px;align-items:center;flex:1;padding:36px 0}
.source-intro{min-width:0}.source-eyebrow{font-size:10px;font-weight:600;letter-spacing:2.6px;color:var(--source-muted);margin-bottom:24px}.source-intro h1{font-size:clamp(44px,4.8vw,66px);font-weight:650;line-height:1.18;letter-spacing:-2px;margin:0 0 24px}.source-intro h1>span{color:var(--source-accent)}.source-description{font-size:15px;line-height:1.9;color:#bcc9c6}
.source-lanes{position:relative;height:106px;max-width:296px;margin:32px 0;border-bottom:2px solid var(--source-accent);display:grid;grid-template-columns:repeat(4,1fr);gap:6px;overflow:hidden}.source-lanes i{position:relative;border-left:1px solid #3e5550;border-right:1px solid #3e5550;background:#b8f1d706}.source-lanes i:after{content:'';position:absolute;left:5px;right:5px;height:7px;background:var(--source-accent);top:54%}.source-lanes i:nth-child(2):after{top:24%}.source-lanes i:nth-child(3):after{top:71%}.source-lanes i:nth-child(4):after{top:40%}.source-lanes>span{position:absolute;bottom:8px;left:0;right:0;height:1px;background:#7d9a8f55}
.source-summary{border-left:2px solid #4c7162;padding:2px 0 2px 16px;display:flex;flex-direction:column;gap:8px;max-width:350px}.source-summary-label{font-size:11px;color:var(--source-muted)}.source-summary strong{font-size:16px;font-weight:500}.source-summary #sourceSummaryDetail{font-size:12px;color:var(--source-muted);overflow-wrap:anywhere;line-height:1.6}.source-footnote{margin-top:28px;font-size:11px;color:var(--source-muted)}
.source-form,.source-loading{min-width:0;background:var(--source-panel);border:1px solid var(--source-border);border-radius:16px;padding:28px}.source-section-number{display:block;font-size:10px;letter-spacing:1.8px;color:var(--source-accent);font-weight:600}.source-form-heading{margin-bottom:22px}.source-form h2,.source-loading h2{font-size:23px;font-weight:600;letter-spacing:-.4px;margin:8px 0 0}
.source-field{font-size:12px;font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--source-ink)}.source-optional{font-size:10px;color:var(--source-muted);font-weight:400}.source-id-field{display:flex;align-items:center;margin-top:9px;border:1px solid #42514e;background:#101718;border-radius:7px;padding-left:14px}.source-id-field>span{color:#708a81;font-size:19px}.source-id-field input{min-width:0;width:100%;font:500 17px/1.3 inherit;font-family:inherit;font-size:17px;padding:12px;background:none;border:0;color:var(--source-ink);border-radius:7px;outline-offset:0}.source-id-field:focus-within{border-color:var(--source-accent)}
.source-help{font-size:11px!important;color:var(--source-muted)!important;line-height:1.7!important;margin:8px 0 0!important}.source-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.source-file-section{min-width:0}.source-file-heading{height:25px;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px}.source-scene .source-clear{font-size:10px;font-weight:400;border:0;background:none;padding:3px 0;color:var(--source-accent);border-radius:2px;min-height:24px;text-decoration:underline;text-underline-offset:3px}
.source-drop{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;min-height:160px;padding:15px;background:#141a1c;border:1px dashed #51615d;border-radius:8px;cursor:pointer;transition:border-color 160ms ease,background 160ms ease;overflow:hidden}.source-drop>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.source-drop svg{width:28px;height:28px;fill:none;stroke:var(--source-accent);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}.source-drop strong{display:block;width:100%;font-size:12px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.source-drop>span{font-size:10px;color:var(--source-muted)}.source-drop .source-file-action{margin-top:auto;color:var(--source-accent);padding-top:7px}.source-file-action>span{padding-left:4px}.source-drop.has-file{border-style:solid;border-color:#5a8c77;background:#adedd207}.source-drop.is-dragging{border:2px solid var(--source-accent);padding:14px;background:#adedd219}.source-file-error{font-size:11px;color:#f3b4a1;line-height:1.6;margin-top:8px}.source-pair-hint{margin-top:10px!important}.source-pair-hint.needs-package{color:#f3d6a1!important}.source-choice{display:flex;flex-direction:column;align-items:stretch;margin-top:16px}.source-skin-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding-top:18px;margin-top:20px;border-top:1px solid var(--source-border)}
.source-form select{width:100%;min-width:0;background:#111719;border:1px solid #42514e;color:var(--source-ink);border-radius:6px;padding:10px;font:12px inherit;font-family:inherit;font-size:12px}.source-skin-row select{width:68%}.source-form select:disabled{color:var(--source-muted);opacity:.7;cursor:not-allowed}
.source-scene .source-error{font-size:12px;color:#f5baa8!important;background:#5b332829;border:1px solid #815342;border-radius:6px;line-height:1.7;padding:10px 12px;margin:16px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.source-error.is-notice{color:var(--source-accent)!important;background:#4c716229;border-color:#4c7162}
.source-actions{display:flex;gap:12px;align-items:center;margin-top:20px}.source-scene .source-actions button{font-family:inherit;font-size:13px;padding:12px 18px;border-radius:6px;min-height:46px}.source-actions #btnLoad{display:flex;justify-content:space-between;align-items:center;flex:1;background:var(--source-accent);color:#15382d}.source-actions #btnLoad:active{transform:scale(.985)}.source-actions #btnBackViewer{border:1px solid #4c5d56;background:transparent;color:var(--source-ink)}.source-bottom-note{font-size:10px!important;color:var(--source-muted)!important;line-height:1.6!important;margin:12px 0 0!important}
.source-loading{padding:34px 28px;min-height:470px;display:flex;flex-direction:column;justify-content:center}.source-loading h2{font-size:25px;margin-top:28px}.source-loading #loadingDetail{color:#becfc7;font-size:12px;line-height:1.8;min-height:44px;margin-top:12px;overflow-wrap:anywhere}.source-loading-track{position:relative;height:82px;max-width:200px;margin-top:28px;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;border-bottom:2px solid var(--source-accent);overflow:hidden}.source-loading-track i{position:relative;background:#adedd208;border-left:1px solid #496156;border-right:1px solid #496156}.source-loading-track i:after{content:'';position:absolute;left:4px;right:4px;height:5px;top:0;background:var(--source-accent);animation:source-note-pass 1600ms cubic-bezier(.45,0,.65,1) infinite}.source-loading-track i:nth-child(2):after{animation-delay:-400ms}.source-loading-track i:nth-child(3):after{animation-delay:-900ms}.source-loading-track i:nth-child(4):after{animation-delay:-1250ms}.source-loading-track>span{position:absolute;bottom:4px;left:0;right:0;height:1px;background:#6c928366}
.source-loading-steps{list-style:none;margin:24px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.source-loading-steps li{display:flex;gap:8px;align-items:center;color:#83998f;font-size:11px;line-height:1.7}.source-loading-steps li>span{font-size:10px;color:#83998f;border:1px solid #43574c;border-radius:4px;padding:2px 5px;font-variant-numeric:tabular-nums}.source-loading-steps li[aria-current]{color:var(--source-accent);font-weight:600}.source-loading-steps li[aria-current]>span{color:#143c2d;background:var(--source-accent);border-color:var(--source-accent)}.source-loading-steps li.is-done{color:#c3d6cb}.source-loading-steps li.is-done>span{border-color:#718e7d;color:#c3d6cb}.source-loading-note{font-size:11px;color:var(--source-muted);line-height:1.8;margin-top:24px;padding-top:16px;border-top:1px solid var(--source-border)}
.source-footer{padding:18px 0;border-top:1px solid var(--source-border);display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--source-muted)}.source-footer>span:last-child{letter-spacing:1.2px}
.source-scene :where(button,input,select,[role=button]):focus-visible{outline:2px solid var(--source-accent);outline-offset:3px}.source-scene button:disabled{cursor:not-allowed}
@keyframes source-note-pass{from{transform:translateY(-8px)}to{transform:translateY(84px)}}
@media(hover:hover) and (pointer:fine){.source-drop:hover{border-color:var(--source-accent);background:#adedd20a}.source-actions #btnLoad:hover{background:#c4f6df}.source-clear:hover{color:#e3ffed}.source-actions #btnBackViewer:hover{border-color:var(--source-accent)}}
@media(max-width:900px){.source-shell{padding:0 24px}.source-workspace{gap:30px;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}.source-intro h1{font-size:46px}.source-description{font-size:13px}.source-form,.source-loading{padding:24px}.source-lanes{max-width:220px}}
@media(max-width:680px){.source-shell{padding:0 20px}.source-header{min-height:64px}.source-brand>span{font-size:9px;letter-spacing:1.5px}.source-header-note{display:none}.source-workspace{grid-template-columns:minmax(0,1fr);gap:24px;padding:28px 0}.source-eyebrow{margin-bottom:12px}.source-intro h1{font-size:38px;line-height:1.2;margin-bottom:14px}.source-intro h1 br{display:none}.source-description{font-size:12px}.source-description br{display:none}.source-lanes,.source-footnote{display:none}.source-summary{margin-top:20px;max-width:none;gap:5px}.source-form,.source-loading{padding:22px}.source-form h2{font-size:21px}.source-file-grid{gap:10px}.source-drop{padding:12px;min-height:150px}.source-drop.is-dragging{padding:11px}.source-drop strong{font-size:11px}.source-loading{min-height:440px}.source-footer{font-size:9px}.source-footer>span:last-child{letter-spacing:.4px}}
@media(prefers-reduced-motion:reduce){.source-drop{transition:none}.source-actions #btnLoad:active{transform:none}.source-loading-track i:after{animation:none;top:45%}.source-loading-track i:nth-child(2):after{top:20%}.source-loading-track i:nth-child(3):after{top:65%}.source-loading-track i:nth-child(4):after{top:35%}}
