:root{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#242c31;background:#f5f7f8;font-size:14px;letter-spacing:0;--green:#13745c;--line:#dbe1e5;--muted:#65727b}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit;letter-spacing:0}button,a,select{touch-action:manipulation}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid #cbd3d8;border-radius:5px;background:white;color:inherit;padding:7px 12px;cursor:pointer;white-space:nowrap}button:hover{background:#edf4f1;border-color:#529580}button:disabled{opacity:.5;cursor:wait}button svg{width:17px;height:17px;flex-shrink:0}button.primary{background:var(--green);color:white;border-color:var(--green)}select,input:not([type=checkbox]){min-height:36px;border:1px solid #cbd3d8;border-radius:4px;padding:7px 10px;max-width:100%;background:white;color:inherit}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}.workspace-nav{display:flex;gap:24px;padding:13px 28px;background:white;border-bottom:1px solid var(--line);flex-wrap:wrap}.workspace-nav a{color:var(--muted)}.workspace-nav [aria-current]{color:var(--green);font-weight:700}.workspace-nav a:last-child{margin-left:auto}header{display:flex;align-items:center;justify-content:space-between;padding:26px 28px 18px;gap:20px}h1{font-size:25px;margin:4px 0 0}h2{font-size:17px;margin:0;line-height:1.5}.eyebrow{font-size:11px;color:var(--muted);margin:0}.project-picker,.actions,.editor-toolbar,.editor-footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.project-picker select{max-width:330px}main{padding:0 28px 30px}.project-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0 20px}.muted{color:var(--muted);font-size:12px}.metrics{display:grid;grid-template-columns:repeat(6,1fr);background:white;border-block:1px solid var(--line);margin-bottom:22px}.metrics>div{padding:18px 20px;border-right:1px solid var(--line)}.metrics>div:last-child{border:0}.metrics span{display:block;color:var(--muted);font-size:12px}.metrics b{display:block;font-size:26px;margin-top:6px;font-variant-numeric:tabular-nums}.metrics>div:nth-child(3) b{color:var(--green)}.metrics>div:nth-child(6) b{color:#b65439}.layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:25px}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:0 0 13px}.video-list{max-height:calc(100vh - 315px);overflow-y:auto;border-top:1px solid var(--line)}.video-row{padding:12px 3px;border-bottom:1px solid var(--line)}.video-row .row-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.video-row strong{overflow-wrap:anywhere}.video-row p{margin:7px 0;font-size:12px;color:var(--muted)}progress{height:5px;width:100%;accent-color:var(--green)}.video-row button{font-size:12px;min-height:27px;padding:3px 7px}.status{font-size:11px;color:#52616c;white-space:nowrap}.status.running{color:#13745c}.status.error{color:#b23927}.filters{display:flex;align-items:center;gap:8px;margin-bottom:14px;flex-wrap:wrap}.filters h2{margin-right:auto}.filters select{max-width:160px;font-size:12px;min-height:32px}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.capture{background:white;border:1px solid var(--line);border-radius:6px;overflow:hidden;cursor:pointer;text-align:left;padding:0;display:block;min-width:0;white-space:normal}.capture .picture{position:relative;background:#202629;overflow:hidden;width:100%}.picture img{width:100%;height:100%;display:block;object-fit:contain}.picture svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.capture .meta{padding:11px 12px}.capture .meta-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px}.capture p{margin:7px 0;font-size:12px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.capture .source{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;gap:6px}.badge{border-radius:3px;padding:3px 6px;font-size:11px;background:#eef3f5;color:#5a6872}.badge.confirmed{background:#e0f3e9;color:#0c684a}.badge.rejected{background:#f8e8e3;color:#aa432f}.empty{padding:75px 20px;text-align:center;color:var(--muted);border-top:1px solid var(--line)}.message{padding:12px;background:#fff3d9;border:1px solid #dfc995;margin:0 0 16px;overflow-wrap:anywhere}.message[hidden],.empty[hidden]{display:none}dialog{border:1px solid var(--line);border-radius:8px;padding:22px;max-width:calc(100vw - 24px);width:570px;color:inherit}dialog::backdrop{background:#10191d99}#detail{width:1120px;max-height:95vh;overflow-y:auto}.dialog-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.close{width:34px;padding:7px;min-height:34px}#detailTitle{overflow-wrap:anywhere}.editor-toolbar{padding:0 0 12px}.modes{display:flex;gap:3px}.selected{background:#d8eee5;border-color:var(--green);color:var(--green)}.canvas-wrap{background:#141a1c;line-height:0;text-align:center;overflow:hidden}.canvas-wrap canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}#detailSummary{line-height:1.7;overflow-wrap:anywhere}.editor-footer{padding-top:16px;border-top:1px solid var(--line);margin-top:12px}.editor-footer a{margin-right:auto}#saveStatus{color:var(--green)}#uploadProgress{height:10px;margin-top:20px}#uploadStatus{overflow-wrap:anywhere}.check{display:flex;align-items:center;gap:8px;margin-top:20px}#projectForm label{display:flex;flex-direction:column;gap:8px}#files{width:100%}body:has(dialog[open]){overflow:hidden}@media(min-width:1700px){.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:240px minmax(0,1fr)}}@media(max-width:760px){header{align-items:flex-start;flex-direction:column;padding:20px 14px}.workspace-nav{padding:12px 14px;gap:15px}main{padding:0 14px 24px}.project-picker{width:100%}.project-picker select{flex:1;min-width:0}.project-bar{align-items:flex-start;flex-direction:column;gap:12px}.metrics{grid-template-columns:repeat(3,1fr)}.metrics>div{padding:12px;border-bottom:1px solid var(--line)}.metrics b{font-size:22px}.layout{display:flex;flex-direction:column;gap:22px}.video-list{max-height:225px}.filters h2{width:100%}.filters select{flex:1;min-width:0}.gallery{gap:10px}.capture .meta{padding:10px}.capture .meta-head{align-items:flex-start;flex-direction:column}.capture .source{flex-wrap:wrap}dialog{padding:14px}.editor-toolbar{gap:6px}.editor-footer{gap:8px}.editor-footer a{width:100%}}@media(max-width:390px){.gallery{grid-template-columns:1fr}}
.public-demo .workspace-nav,.public-demo #createProject,.public-demo #pause,.public-demo .editor-toolbar,.public-demo #decision,.public-demo #save,.public-demo #saveStatus,.public-demo .video-row button,.public-demo #uploadDialog .check{display:none!important}.public-demo .canvas-wrap canvas{cursor:default;touch-action:auto}
[hidden]{display:none!important}
.reference-table td:last-child button.reference-thumb{display:block;position:relative;width:132px;height:auto;padding:0;overflow:hidden;background:#202629}.reference-thumb img{display:block;width:100%;height:100%;object-fit:contain}.reference-thumb svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#plateDialog{width:1120px}#platePicture{position:relative}#platePicture img{display:block;width:100%;height:auto}#plateZoom{display:block;width:420px;max-width:100%;height:auto;margin:12px 0}#plateImageStatus,.plate-label{font-size:13px;color:var(--green)}.reference-table th:last-child{width:160px!important}.reference-table td:last-child button{width:auto;min-width:32px;margin:0 6px 6px 0}
.queue-status{margin:0 0 14px;color:var(--green);font-size:13px;line-height:1.6}.queue-status.warning{color:#a04f19}.analysis-note{font-size:11px;color:#a04f19;line-height:1.6;margin:4px 0 9px;overflow-wrap:anywhere}
.reference-section{margin:0 0 28px;border-block:1px solid var(--line);padding:15px 0}.reference-section .section-heading{flex-wrap:wrap;gap:8px;padding-bottom:0}.reference-scroll{max-height:440px;overflow:auto}.reference-table{width:100%;border-collapse:collapse;background:white;font-size:12px;text-align:left;table-layout:fixed}.reference-table th,.reference-table td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.reference-table th{position:sticky;top:0;background:#edf3f2;z-index:1}.reference-table th:nth-child(1){width:85px}.reference-table th:nth-child(2){width:105px}.reference-table th:nth-child(3),.reference-table th:nth-child(4){width:100px}.reference-table th:last-child{width:60px}.reference-table small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px}.reference-table a{font-weight:700;font-variant-numeric:tabular-nums}.reference-table button{width:32px;min-height:32px;padding:6px}#videoDialog{width:1120px}#sourceVideo{display:block;width:100%;max-height:70vh;background:#111}#videoPlaybackStatus{font-size:12px;color:var(--muted)}@media(max-width:760px){.reference-table{min-width:650px}.reference-scroll{max-height:380px}}

.clip-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.clip-toolbar a{margin-left:auto}#clipActions[hidden],#clipPlate[hidden]{display:none!important}.capture .picture::after,.reference-thumb::after{content:"▶";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#102820a6;color:#fff;font-size:17px;pointer-events:none}.reference-thumb::after{width:25px;height:25px;font-size:12px}@media(max-width:760px){.clip-toolbar a{margin-left:0}.clip-toolbar button{font-size:12px}}
#videoDialog:has(#clipActions:not([hidden])) #sourceVideo{max-height:55vh}
