:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#263246;background:#fff;font-size:14px;line-height:1.55}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid transparent;background:#2474ee;color:white;padding:9px 14px;border-radius:7px;cursor:pointer;white-space:nowrap}button:hover{filter:brightness(.97)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9dc2ff;outline-offset:2px}button:disabled{opacity:.5;cursor:wait}.quiet{background:#fff;color:#3265b1;border-color:#dce4ef}.text-button{background:transparent;color:#5c7393;border:0;padding:7px}.small{font-size:12px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}h1{font-size:27px;line-height:1.3;margin:0 0 9px}h2{font-size:19px;margin:0 0 15px}h3{font-size:14px;margin:10px 0}p{margin:8px 0}small,.muted{font-size:12px;color:#788496}strong{font-weight:600}input,select,textarea{width:100%;padding:9px 10px;border:1px solid #dde4ee;border-radius:6px;background:white;color:#263246}textarea{resize:vertical;min-height:92px}input[type=checkbox]{width:16px;height:16px;accent-color:#2474ee;flex-shrink:0;cursor:pointer}label{display:block;margin:12px 0;color:#405068}label>input,label>select,label>textarea{display:block;margin-top:6px}label>input[type=checkbox]{display:inline-block;margin-left:10px}a{color:#2474ee}button,input,select,textarea,a{-webkit-tap-highlight-color:transparent}.app-header{display:flex;align-items:center;gap:42px;height:64px;border-bottom:1px solid #e8edf4;padding:0 36px}.brand{font-size:22px;font-weight:700;text-decoration:none;color:#1f2c42}.app-header nav{display:flex;gap:25px;align-self:stretch}.app-header nav button{border-radius:0;padding:0 4px;border:0;border-bottom:3px solid transparent;background:none;color:#7c8797;font-weight:600}.app-header nav .active{color:#2474ee;border-bottom-color:#2474ee}.local-label{margin-left:auto;font-size:12px;color:#8390a2}main{max-width:1720px;margin:auto;padding:30px 36px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.page-heading p{color:#8390a2;font-size:13px}.flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:22px 28px;border:1px solid #e5ebf3;border-radius:8px;margin-bottom:20px;gap:45px}.flow-step{display:flex;align-items:center;gap:14px;position:relative}.flow-step:not(:last-child):after{content:'→';position:absolute;right:-28px;color:#b9c4d3;font-size:25px}.flow-step small{display:block;margin-top:4px}.step-number{display:flex;justify-content:center;align-items:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:#e7ebf0;color:#647287;font-size:17px}.is-current .step-number{background:#2474ee;color:#fff}.activity{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-height:30px;margin:-6px 0 6px;color:#6e7d92;font-size:12px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,36%);gap:18px;align-items:start}.content-list,.review-panel{border:1px solid #e5ebf3;border-radius:8px;overflow:hidden}.list-toolbar{padding:14px;display:flex;gap:10px;flex-wrap:wrap;background:#fcfdff;border-bottom:1px solid #e9eef4}.list-toolbar>input{flex:1 1 180px;width:auto;min-width:120px}.filter-tabs{display:flex;gap:5px;flex-wrap:wrap}.filter-tabs button{font-size:12px;padding:8px 9px}.filter-tabs .selected{background:#dfebff;color:#2474ee}.list-toolbar>select{width:112px;font-size:12px}.bulkbar{display:flex;align-items:center;gap:14px;padding:12px 16px;background:#f6f9fd;border-bottom:1px solid #e8edf4}.bulkbar[hidden]{display:none}.content-row{display:grid;grid-template-columns:18px minmax(150px,1fr) 95px auto;gap:13px;align-items:center;padding:17px 15px;border-bottom:1px solid #e9eef4;cursor:pointer;min-width:0}.content-row:last-child{border-bottom:0}.content-row.is-active{background:#eef5ff}.video-info{display:flex;gap:12px;align-items:center;min-width:0}.video-info img{width:76px;height:50px;object-fit:cover;border-radius:5px;background:#e9eef4}.image-failed{color:transparent}.video-copy{min-width:0}.content-title{display:block;background:none;border:0;padding:0;color:#263246;text-align:left;white-space:normal;font-weight:600;line-height:1.4}.video-copy small{display:block;margin-top:6px}.status-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.pill{display:inline-block;font-size:11px;padding:4px 9px;border-radius:20px;background:#edf0f4;color:#6c788b;white-space:nowrap}.pill.ready{background:#fff0d7;color:#b57821}.pill.processing{background:#e1edff;color:#2474ee}.pill.published{background:#e0f3e6;color:#2a8b4e}.pill.failed,.pill.interrupted{background:#fce9e7;color:#b15345}.row-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.row-actions button{font-size:12px;padding:8px 9px}progress{border:0;width:100%;height:5px;accent-color:#2474ee;background:#e6ebf1;border-radius:3px;overflow:hidden}progress::-webkit-progress-bar{background:#e6ebf1}progress::-webkit-progress-value{background:#2474ee}.review-panel{padding:20px}.review-panel iframe{display:block;border:0;border-radius:6px;width:100%;aspect-ratio:16/9;min-height:200px;background:#172338}.review-panel h2{line-height:1.4}.panel-progress{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;font-size:12px}.ready-text{color:#2d8c56}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid label{min-width:0}.captions{margin-top:16px;border-top:1px solid #edf0f5}.caption-row{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #eef1f5}.caption-row p{margin:0 0 5px;overflow-wrap:anywhere}.caption-zh{color:#768498;font-size:12px}.timestamp{align-self:flex-start;padding:2px 5px;background:none;color:#7b8aa2;font-size:11px}.panel-actions{display:flex;gap:10px;margin:18px 0 7px}.panel-actions button{flex:1}.empty{padding:54px 20px;text-align:center;color:#8692a4}.empty strong{font-size:16px;color:#53647c}.empty p{margin:12px 0 20px}.mobile-back{display:none}details{margin:14px 0}summary{cursor:pointer;color:#6680a4;font-size:12px}pre{font-size:12px;white-space:pre-wrap;word-break:break-word;background:#f3f6fa;padding:12px;border-radius:5px;max-height:380px;overflow:auto}.error{color:#b14e49}#notice:not(:empty){padding:11px 14px;background:#edf4ff;border-radius:6px;margin-bottom:15px;font-size:13px}#notice.error{background:#fff1ef}.settings-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:28px;align-items:start}.settings-section{border:1px solid #e5ebf3;border-radius:8px;padding:25px}.settings-section textarea{min-height:200px}.settings-section>button{margin-top:12px}dialog{width:min(780px,94vw);max-height:90vh;overflow:auto;border:1px solid #dfe7f1;border-radius:10px;padding:24px;color:#263246;background:#fff;box-shadow:0 18px 80px #182e4d26}dialog::backdrop{background:#182e4d55}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.dialog-header h2{margin:0}.dialog-notice:not(:empty){padding:10px;background:#edf4ff;border-radius:5px}.dialog-actions{margin:20px 0}.source-row{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid #e9eef4}.source-row small{display:block;margin-top:4px}.grow{flex:1;min-width:0}.source-form{padding-top:10px}.history-row,.batch-preview{padding:15px 0;border-bottom:1px solid #e9eef4}.history-row small{display:block;margin:5px 0 10px}.history-row p{font-size:12px}.batch-preview p{font-size:13px}
@media(min-width:1500px){.video-info img{width:96px;height:62px}.content-row{grid-template-columns:18px minmax(220px,1fr) 115px auto}}
@media(max-width:1100px){main{padding:24px 22px}.content-layout{grid-template-columns:minmax(0,1fr) 340px}.content-row{grid-template-columns:18px minmax(0,1fr) 85px;gap:10px}.row-actions{grid-column:2/4;justify-content:flex-start}.video-info img{width:64px;height:45px}.flow{gap:25px;padding:20px}.flow-step{gap:10px}.flow-step:not(:last-child):after{right:-20px}.flow-step small{font-size:11px}}
@media(max-width:800px){.app-header{padding:0 18px;gap:24px}.local-label{display:none}main{padding:22px 15px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px}h1{font-size:24px}.flow{gap:16px;padding:15px 12px}.flow-step{align-items:flex-start;gap:7px}.flow-step strong{font-size:12px}.flow-step small{display:none}.step-number{width:25px;height:25px;font-size:12px}.flow-step:not(:last-child):after{right:-13px;font-size:18px}.content-layout{display:block}.review-panel{display:none}.show-detail .content-list{display:none}.show-detail .review-panel{display:block}.mobile-back{display:inline-block;margin-bottom:15px}.settings-layout{grid-template-columns:1fr}.review-panel iframe{max-height:420px}.content-row{grid-template-columns:18px minmax(0,1fr) 90px}.list-toolbar>input{flex-basis:100%}.content-title{font-size:13px}.settings-section{padding:18px}dialog{padding:18px}.source-row{flex-wrap:wrap}}

.thumbnail-fallback{display:flex;width:76px;height:50px;flex-shrink:0;align-items:center;justify-content:center;border-radius:5px;background:#edf2fa;color:#b3c2d8;font-size:17px}@media(min-width:1500px){.thumbnail-fallback{width:96px;height:62px}}@media(max-width:1100px){.thumbnail-fallback{width:64px;height:45px}}
.selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 15px;border-bottom:1px solid #e9eef4;background:#fcfdff}.selection-toolbar .select-all{display:flex;align-items:center;gap:10px;margin:0;font-size:12px;cursor:pointer}.select-all>input[type=checkbox]{margin:0}.selection-toolbar small{font-size:11px}.bulkbar{flex-wrap:wrap}.bulkbar>span{white-space:nowrap}
.tag-editor{border:0;padding:0;margin:12px 0;min-width:0}.tag-editor legend{padding:0;color:#405068}.tag-list{display:flex;flex-wrap:wrap;gap:7px;margin:6px 0 9px}.tag-chip{display:inline-flex;align-items:flex-start;gap:5px;max-width:100%;padding:4px 5px 4px 10px;border:1px solid #dce8fb;border-radius:16px;background:#edf4ff;color:#3265b1;font-size:12px}.tag-chip>span{min-width:0;overflow-wrap:anywhere}.tag-remove{flex-shrink:0;padding:0 5px;min-width:24px;min-height:24px;line-height:22px;background:transparent;color:#6680a4;border-radius:50%;font-size:17px}.tag-remove:hover{background:#dbe8fc}.tag-add{display:flex;gap:8px}.tag-add input{flex:1;min-width:0}.tag-add button{flex-shrink:0}.captions>summary{padding:12px 0;color:#405068;font-size:13px;font-weight:600}
.panel-progress>details{width:100%;margin:0}
.diagnostic-actions{display:flex;gap:8px;flex-wrap:wrap;width:100%;margin:8px 0}.diagnostic-actions button{font-size:12px}.history-diagnostic{padding:5px 0}.log-tabs{margin:18px 0 8px}.log-tabs .selected{background:#dfebff;color:#2474ee}.raw-log{min-height:180px;max-height:420px;line-height:1.7;background:#152033;color:#dce8fb}textarea[aria-label="可复制的诊断信息"]{min-height:240px}
.sidebar-shell{padding-left:208px;background:#f5f7fb}.app-sidebar{position:fixed;inset:0 auto 0 0;width:208px;height:100vh;z-index:20;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:30px 18px;background:#172840;border:0;color:#fff}.app-sidebar .brand{display:flex;align-items:center;gap:9px;color:#fff;font-size:21px;white-space:nowrap}.brand-mark{display:grid;place-content:center;width:32px;height:32px;flex-shrink:0;border-radius:10px;background:#4e8ff6;color:#fff;font-size:18px}.sidebar-section{margin:45px 12px 12px;color:#7e93af;font-size:11px}.app-sidebar nav{display:flex;flex-direction:column;gap:8px;align-self:stretch}.app-sidebar nav button{display:flex;align-items:center;gap:12px;padding:13px 15px;border:0;border-radius:9px;color:#a6b7cd;background:none;text-align:left;font-weight:550;white-space:normal}.app-sidebar nav button:hover{background:#243c59;filter:none}.app-sidebar nav .active,.app-sidebar nav .active:hover{background:#2a75ec;color:#fff}.nav-icon{font-size:22px;line-height:24px;flex-shrink:0;width:22px;text-align:center}.sidebar-footer{margin-top:auto;border-top:1px solid #2a3a51;padding:20px 9px 0;color:#94a8c2;font-size:12px}.app-sidebar .local-label{display:inline;margin:0;color:inherit;font-size:12px}.service-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#64bc93;margin-right:7px}.sidebar-footer small{display:block;margin-top:8px;color:#7d94af;font-size:10px}.sidebar-shell .flow{background:#fff}.sidebar-shell .content-list,.sidebar-shell .review-panel,.sidebar-shell .settings-section{background:#fff}
@media(max-width:1200px){.sidebar-shell{padding-left:88px}.app-sidebar{width:88px;padding:24px 9px}.app-sidebar .brand{justify-content:center}.app-sidebar .brand-text,.sidebar-section,.sidebar-footer small,.footer-detail{display:none}.app-sidebar nav{margin-top:32px;gap:14px}.app-sidebar nav button{flex-direction:column;gap:8px;padding:14px 4px;font-size:11px}.brand-mark{width:38px;height:38px;font-size:21px}.sidebar-footer{padding:18px 0 0;text-align:center}.app-sidebar .local-label{font-size:10px}.service-dot{margin-right:4px}}
@media(max-width:900px){.sidebar-shell .content-layout{display:block}.sidebar-shell .review-panel{display:none}.sidebar-shell .show-detail .content-list{display:none}.sidebar-shell .show-detail .review-panel{display:block}.sidebar-shell .mobile-back{display:inline-block;margin-bottom:15px}.sidebar-shell .settings-layout{grid-template-columns:1fr}}
@media(max-width:600px){.sidebar-shell{padding-left:72px}.app-sidebar{width:72px;padding:20px 7px}.brand-mark{width:34px;height:34px}.app-sidebar nav button{font-size:10px;padding:13px 1px}.sidebar-shell main{padding:22px 12px}.sidebar-shell .content-row{grid-template-columns:18px minmax(0,1fr)}.sidebar-shell .status-cell{grid-column:2;flex-direction:row;flex-wrap:wrap}.sidebar-shell .row-actions{grid-column:2}.sidebar-shell .video-info img,.sidebar-shell .thumbnail-fallback{width:52px;height:38px}.sidebar-shell .video-info{gap:9px}.sidebar-shell .flow{padding:13px 9px;gap:14px}.sidebar-shell .flow-step strong{font-size:11px}.sidebar-shell .review-panel{padding:15px}}
.error-log-toolbar{display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:#fff;border:1px solid #e5ebf3;border-radius:8px}.error-log-toolbar input{flex:1;min-width:180px}.error-log-toolbar select{width:160px}.error-log-list{display:grid;gap:14px}.error-log-card{padding:20px;background:#fff;border:1px solid #e5ebf3;border-radius:8px;min-width:0}.error-log-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}.error-log-heading h2{font-size:16px;margin:0 0 6px;overflow-wrap:anywhere}.error-log-message{overflow-wrap:anywhere;margin:12px 0}.error-task-id{display:block;overflow-wrap:anywhere;margin-bottom:10px}.error-log-pages{display:flex;justify-content:center;align-items:center;gap:15px;margin:22px 0}.error-log-card .diagnostic-actions{margin:12px 0 0}.error-log-card button:disabled{cursor:not-allowed}@media(max-width:1200px){.app-sidebar .nav-label{max-width:4em;line-height:1.5}}@media(max-width:600px){.error-log-card{padding:15px}.error-log-heading{flex-direction:column}.error-log-toolbar select{width:100%}}

/* Product wordmark: keep both official names within the wide sidebar. */
.brand-text small{display:block;margin-top:1px;color:#a6b7cd;font-size:10px;line-height:1.4;font-weight:500;letter-spacing:.4px}

.admin-login{min-height:100vh;display:grid;place-items:center;background:#f5f7fb;padding:20px}
.admin-login-card{width:min(100%,400px);margin:0;padding:32px;background:#fff;border:1px solid #e5ebf3;border-radius:12px;box-shadow:0 14px 38px #17284012}
.admin-login-brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:700}
.admin-login-brand small{margin-left:4px;color:#65758b;font-weight:500}
.admin-login-card h1{font-size:24px;margin:24px 0 18px}
.admin-login-card form{display:grid;gap:14px}
.admin-login-card label{display:grid;gap:6px;margin:0}
.admin-login-card button{margin-top:4px}
.admin-login-card .error{margin:0}
.admin-signout{margin-top:10px}
.admin-signout button{width:100%;padding:7px 3px;background:#243c59;color:#e2ebfa;font-size:11px}
