:root{color-scheme:light;--bg:#f4f6f9;--panel:#fff;--text:#172033;--muted:#667085;--line:#e5e9f0;--brand:#5b45e0;--danger:#b42318;--success:#027a48;--info:#0f766e;--info-bg:#f0fdfa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}.topbar{min-height:64px;padding:0 28px;background:#111827;color:#fff;display:flex;align-items:center;gap:28px}.brand{color:#fff;text-decoration:none;font-weight:750}.topbar nav{display:flex;flex-wrap:wrap;gap:18px;flex:1}.topbar nav a,.link-button{color:#d7dcec;text-decoration:none}.container{max-width:1240px;margin:0 auto;padding:30px 24px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}h1,h2{margin-top:0}h1{font-size:28px}h2{font-size:18px}.muted{color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:22px}.metrics article,.panel,.auth-card,.admin-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.04)}.metrics article{padding:20px;display:flex;flex-direction:column;gap:9px}.metrics span{color:var(--muted)}.metrics strong{font-size:23px}.panel{padding:20px;margin:18px 0}.auth-card{max-width:430px;margin:70px auto;padding:30px}.stack-form,.row-form{display:flex;gap:16px}.stack-form{flex-direction:column}.row-form{align-items:end;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:7px;font-size:14px}label small,.field-help{color:var(--muted);font-size:12px;line-height:1.5}input,select,textarea{min-height:40px;padding:8px 10px;border:1px solid #cbd2dc;border-radius:7px;background:#fff;color:var(--text)}button,.button{min-height:40px;padding:8px 15px;border:0;border-radius:7px;background:var(--brand);color:#fff;cursor:pointer;text-decoration:none}.secondary{background:#e9e7ff;color:#382bb4}.danger{background:var(--danger)}.link-button{background:transparent;padding:0;min-height:0}.inline-form{display:inline}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:12px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:top}th{color:var(--muted);font-weight:650}.empty{text-align:center;color:var(--muted);padding:35px}.notice,.error,.secret-once{padding:14px 17px;border-radius:9px;margin-bottom:18px}.notice{background:#ecfdf3;color:var(--success)}.error{background:#fef3f2;color:var(--danger)}.secret-once{background:#fffaeb;border:1px solid #fedf89}.secret-once code{display:block;padding:12px;margin-top:10px;background:#fff;border:1px dashed #e0a500;overflow:auto}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.admin-card{padding:20px;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:8px}.admin-card span{color:var(--muted)}.action-panel>summary,.actions-cell summary{cursor:pointer;font-weight:700}.admin-form-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;margin-top:18px}.admin-form-grid .wide{grid-column:1/-1}.check-label{flex-direction:row;align-items:center;align-self:end}.check-label input{min-height:auto}.compact-form{display:grid;gap:8px;min-width:230px;margin:10px 0}.compact-form textarea{min-width:320px}.actions-cell{min-width:260px;white-space:normal}.actions-cell details{min-width:250px}code{font-family:"SFMono-Regular",Consolas,monospace}.guide-panel h2{margin-bottom:10px}.help-list{margin:0;padding-left:20px;color:var(--text);line-height:1.7}.help-list li+li{margin-top:4px}.guide-list{display:grid;gap:12px}.guide-row{border-top:1px solid var(--line);padding-top:12px}.guide-row:first-child{border-top:0;padding-top:0}.guide-row strong{display:block;margin-bottom:5px}.guide-row p{margin:0;color:var(--muted);line-height:1.65;white-space:normal}.preset-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #99f6e4;border-radius:8px;background:var(--info-bg)}.mini-help{display:grid;gap:4px;padding:10px 12px;border-left:3px solid var(--info);background:var(--info-bg);color:var(--text);font-size:13px;line-height:1.5}.mini-help span{color:var(--muted)}@media(max-width:900px){.admin-form-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.topbar{padding:14px 18px;align-items:flex-start;flex-direction:column;gap:12px}.container{padding:20px 14px}.row-form,.admin-form-grid{align-items:stretch;display:flex;flex-direction:column}.compact-form textarea{min-width:220px}.preset-bar{align-items:stretch;flex-direction:column}.preset-bar button{width:100%}}
.table-wrap td{white-space:normal}.table-wrap code,.table-wrap .task-id-link,.table-wrap .badge{white-space:nowrap}.detail-summary dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:0}.detail-summary div{padding:10px 0;border-bottom:1px solid var(--line)}.detail-summary dt{color:var(--muted);font-size:12px}.detail-summary dd{margin:4px 0 0;overflow-wrap:anywhere}.detail-section pre{max-width:520px;max-height:220px;margin:0;overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.5}
.task-filter-grid{grid-template-columns:repeat(4,minmax(170px,1fr))}.task-table-wrap{margin:-4px -2px}.task-table td{vertical-align:middle}.task-id-link{color:#1d70f5;text-decoration:none;font-weight:650}.task-id-link:hover{text-decoration:underline}.badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 9px;border-radius:999px;border:1px solid var(--line);background:#f8fafc;color:#344054;font-size:12px;font-weight:700;white-space:nowrap}.badge.success,.progress-bar.success{background:#ecfdf3;color:#027a48;border-color:#abefc6}.badge.danger,.progress-bar.danger{background:#fef3f2;color:#b42318;border-color:#fecdca}.badge.warning,.progress-bar.warning{background:#fffaeb;color:#b54708;border-color:#fedf89}.badge.info,.progress-bar.info{background:#eff8ff;color:#175cd3;border-color:#b2ddff}.badge.neutral,.progress-bar.neutral{background:#f2f4f7;color:#475467;border-color:#eaecf0}.progress-cell{display:flex;align-items:center;gap:10px;min-width:180px}.progress-track{display:block;position:relative;overflow:hidden;width:118px;height:8px;border-radius:999px;background:#eef1f5;flex:0 0 118px}.progress-bar{display:block;height:100%;border-radius:999px;background:#5b45e0}.progress-bar.success{background:#31b84a}.progress-bar.danger{background:#f04438}.progress-bar.warning{background:#f79009}.progress-bar.info{background:#2388ff}.progress-bar.neutral{background:#98a2b3}.clip-cell{display:block;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.failure-cell{color:var(--danger)}.result-thumb{display:block;width:58px;height:58px;object-fit:cover;border-radius:7px;border:1px solid var(--line);background:#f8fafc}.media-thumb-wrap{position:relative;display:inline-block;width:58px;height:58px}.media-kind-badge{position:absolute;right:4px;bottom:4px;display:inline-flex;align-items:center;min-height:17px;padding:1px 5px;border-radius:4px;background:rgba(17,24,39,.86);color:#fff;font-size:10px;font-weight:800;line-height:1;letter-spacing:0}.video-thumb-placeholder{position:relative;display:inline-flex;width:88px;height:58px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:7px;background:#f8fafc;color:#475467;font-size:12px;font-weight:650}.video-thumb-placeholder .media-kind-badge{position:static;background:#111827}.task-hero{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:22px;align-items:start}.task-hero-main{display:grid;gap:14px;min-width:0}.task-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.task-title-row strong{font-size:18px}.detail-progress{max-width:520px}.task-description{margin:0;line-height:1.7;overflow-wrap:anywhere}.task-result-panel{display:flex;justify-content:flex-end}.result-preview{width:220px;max-height:280px;object-fit:cover;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.result-placeholder{width:220px;min-height:150px;border:1px dashed #cbd5e1;border-radius:8px;color:var(--muted);display:flex;align-items:center;justify-content:center;background:#f8fafc}.video-preview-panel h2{margin-bottom:14px}.video-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.video-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}.video-player{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#111827}.video-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;font-size:13px}.video-card-footer strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-card-footer a{color:#1d70f5;text-decoration:none;white-space:nowrap}.video-card-footer a:hover{text-decoration:underline}.detail-section td{white-space:normal}.detail-section td pre{white-space:pre-wrap}.table-wrap table{min-width:900px}@media(max-width:1100px){.video-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:900px){.task-filter-grid{grid-template-columns:1fr 1fr}.task-hero{grid-template-columns:1fr}.task-result-panel{justify-content:flex-start}.result-preview,.result-placeholder{width:180px}}@media(max-width:760px){.task-filter-grid{display:flex;flex-direction:column}.progress-cell{min-width:220px}.clip-cell{max-width:260px}.table-wrap table{min-width:820px}.video-grid{grid-template-columns:1fr}.video-card-footer{align-items:flex-start;flex-direction:column}}
