:root{font-family:system-ui,-apple-system,"Segoe UI","Microsoft JhengHei",sans-serif;color:#1e293b;background:#f8fafc;font-size:14px;line-height:1.6;--blue:#2563eb;--line:#e2e8f0;--muted:#64748b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:7px;padding:7px 12px;min-height:36px;line-height:1.4}button:hover{background:#f1f5f9}button:disabled{opacity:.5;cursor:default}.primary{background:var(--blue);color:white;border-color:var(--blue);font-weight:600}.primary:hover{background:#1d4ed8}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}h1,h2,h3,h4,p{margin:0}h1{font-size:21px}h2{font-size:17px}h3{font-size:17px}h4{font-size:14px;font-weight:650}a{color:#1d4ed8}select,textarea{background:#fff;border:1px solid #cbd5e1;border-radius:7px;padding:8px}textarea{width:100%;resize:vertical;max-height:160px;min-height:64px}input[type=radio]{accent-color:var(--blue);margin:0;flex-shrink:0;width:15px;height:15px}.muted{color:var(--muted);font-size:13px}.text-button{background:none;border:0;color:#1d4ed8;padding:4px 6px;min-height:30px}.skip-link{position:fixed;top:-60px;left:12px;z-index:999;background:white;padding:10px}.skip-link:focus{top:5px}.initial-state{padding:15vh 20px;text-align:center}.initial-state p{margin:14px}.app-shell{height:100svh;display:flex;flex-direction:column;min-height:0}.topbar{background:#fff;border-bottom:1px solid var(--line);padding:12px 24px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px}.brand strong{display:block;font-size:16px}.brand-sub{display:block;font-size:12px;color:var(--muted)}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;background:var(--blue);color:white;font-size:21px;border-radius:8px;font-weight:700}.top-actions{display:flex;gap:9px;align-items:center}.save-state{font-size:12px;color:var(--muted)}.save-state.error{color:#b91c1c}.navbar{background:white;display:flex;gap:22px;padding:0 24px;border-bottom:1px solid var(--line);flex-shrink:0;align-items:center;min-height:43px}.nav-tab{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:9px 1px;font-size:13px}.nav-tab.active{border-color:var(--blue);color:#1d4ed8;font-weight:600}.local-note{font-size:12px;color:var(--muted);margin-left:auto}.review-page{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:1520px;margin:0 auto}.task-toolbar{display:flex;align-items:center;gap:13px;padding:12px 24px;flex-shrink:0}.task-toolbar label{font-weight:600}.task-toolbar select{max-width:260px;padding:6px;min-height:35px}.task-toolbar>span{font-size:13px;white-space:nowrap}.task-toolbar>button{margin-left:auto}.progress-track{height:6px;width:130px;background:#e2e8f0;border-radius:5px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--blue);border-radius:5px}.workspace{display:grid;grid-template-columns:minmax(355px,.78fr) minmax(480px,1.22fr);gap:22px;padding:0 24px 16px;flex:1;min-height:0}.viewer-pane{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:auto;gap:8px}.photo-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-shrink:0}.chip{display:inline-block;border:1px solid #cbd5e1;background:#f1f5f9;color:#475569;font-size:12px;border-radius:6px;padding:3px 7px;white-space:nowrap;font-weight:500}.chip.green{color:#047857;border-color:#a7f3d0;background:#ecfdf5}.chip.warning{color:#92400e;background:#fffbeb;border-color:#fde68a}.photo-stage{display:flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;background:#e2e8f0;flex:1;min-height:175px;max-height:45vh;border-radius:10px;padding:8px;width:100%;cursor:zoom-in;overflow:hidden}.photo-stage img{display:block;width:100%;height:100%;object-fit:contain;min-height:0}.image-failure{background:#fff1f2;padding:9px;display:flex;justify-content:space-between;align-items:center;gap:8px}.viewer-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0}.viewer-tools .muted{font-size:12px}.score-card{background:white;border:1px solid var(--line);border-radius:10px;padding:14px 16px;flex-shrink:0}.score-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.score-heading h2{font-size:15px}.score-hint{font-size:12px;color:var(--muted);margin:3px 0 9px}.score-group{border:0;border-top:1px solid #f1f5f9;margin:0;padding:7px 0}.score-group legend{float:left;width:100%;font-size:13px;font-weight:600;padding:0 0 5px}.radio-row{display:flex;flex-wrap:wrap;gap:5px;clear:both}.rating-option{display:flex;gap:5px;align-items:center;border:1px solid #e2e8f0;border-radius:6px;padding:6px 7px;font-size:13px;min-height:32px;cursor:pointer;flex:1;justify-content:center;white-space:nowrap}.rating-option:has(input:checked){background:#eff6ff;border-color:#60a5fa;color:#1d4ed8}.rating-option:has(input[value=inappropriate]:checked){background:#fff1f2;border-color:#fda4af;color:#9f1239}.rating-option:has(input[value=partial]:checked),.rating-option:has(input[value=has_misses]:checked){background:#fffbeb;border-color:#fcd34d;color:#92400e}.score-group.has-error .rating-option{border-color:#fda4af}.note-label{display:block;font-size:13px;font-weight:600;margin:6px 0 5px}.note-label span{font-weight:400}.score-card textarea{font-size:13px;line-height:1.5;padding:7px 9px}.no-cases{font-size:13px;padding:10px 0;color:var(--muted)}#validation-errors{background:#fff1f2;border:1px solid #fecdd3;border-radius:6px;padding:7px;margin:8px 0}#validation-errors button{display:block;font-size:12px;color:#b91c1c;text-align:left}.report-pane{overflow:auto;min-height:0;min-width:0;padding-right:5px;scroll-behavior:smooth;scroll-padding-top:12px}.report-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.report-heading span{font-size:12px;color:var(--muted)}.hazard-nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.hazard-nav a{border:1px solid #dbeafe;background:#eff6ff;border-radius:6px;padding:4px 8px;text-decoration:none;font-size:12px}.hazard-nav a:hover{background:#dbeafe}.content-card,.hazard-card{background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:16px;overflow:hidden}.content-card{padding:18px 20px}.content-card h2{border-left:4px solid var(--blue);padding-left:9px;margin-bottom:10px;font-size:16px}.content-card p{line-height:1.8;overflow-wrap:anywhere}.source-note{background:#fffbeb;border-left:3px solid #fbbf24;border-radius:3px;color:#785522;font-size:12px;line-height:1.65;padding:9px 11px;margin-top:12px}.hazard-heading{padding:13px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fafc}.hazard-heading h3{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere}.hazard-num{background:#dbeafe;color:#1d4ed8;font-size:12px;border-radius:5px;min-width:24px;text-align:center;padding:1px 4px}.hazard-body{padding:17px 20px}.scene{background:#eff6ff;border:1px solid #dbeafe;border-radius:8px;padding:13px 15px;margin-bottom:13px}.scene h4{color:#1e40af;margin-bottom:7px}.scene-rationale{font-size:14px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap}.scene-features{display:grid;grid-template-columns:1fr 1fr;gap:7px 15px;border-top:1px solid #dbeafe;padding-top:10px;margin:11px 0 0;font-size:12px}.scene-features div{min-width:0;display:flex;gap:8px;align-items:flex-start}.scene-features dt{font-weight:600;color:#475569;white-space:nowrap}.scene-features dd{margin:0;color:#475569;overflow-wrap:anywhere}.report-section{margin-top:17px;padding-top:14px;border-top:1px solid var(--line)}.report-section>h4{margin-bottom:9px}.report-section p{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.original-law{font-size:13px;color:#475569;background:#f8fafc;padding:8px 10px;border-radius:5px;margin-bottom:10px}.law-entry{border-bottom:1px dashed var(--line);padding:10px 0}.law-entry:last-child{border-bottom:0}.reference-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;font-size:13px}.reference-heading strong{overflow-wrap:anywhere}.reference-heading a{font-size:12px;white-space:nowrap}.law-text{background:#f8fafc;padding:10px 12px;margin-top:8px;font-size:13px;color:#475569;border:1px solid #f1f5f9;border-radius:6px}.ai-label{display:block;color:#64748b;font-size:11px;margin-bottom:3px}.case-entry{padding:10px 13px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;margin-bottom:9px;font-size:13px}.case-index{display:block;font-size:11px;color:var(--muted);font-weight:600;margin-bottom:5px}.report-list{padding-left:20px;margin:0;font-size:13px;line-height:1.8;color:#475569}.report-list li+li{margin-top:5px}.ppe-heading{margin-top:12px}.review-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 24px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}.review-footer>div{display:flex;gap:8px}.review-footer>span{font-size:12px;color:var(--muted)}.review-footer .primary{min-width:132px}.content-page{flex:1;min-height:0;overflow:auto;padding:30px 24px}.welcome{max-width:720px;margin:5vh auto;padding:30px}.welcome h1{margin-bottom:12px}.welcome>p{margin:14px 0;color:var(--muted)}.welcome-facts{display:flex;gap:25px;padding:14px 0}.welcome-facts strong{color:#1d4ed8;font-size:21px}.expert-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin:20px 0}.expert-grid button{padding:12px 8px;font-weight:600}.expert-grid .selected{background:#eff6ff;border-color:#60a5fa;color:#1d4ed8}.welcome>.primary{width:100%;padding:12px}.page-head{max-width:1250px;margin:0 auto 22px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.page-head p{font-size:13px;color:var(--muted);margin-top:6px}.page-buttons{display:flex;gap:8px;flex-wrap:wrap}.page-content{max-width:1250px;margin:auto}.progress-overview{display:grid;grid-template-columns:repeat(3,1fr);background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:20px}.progress-overview>div{padding:20px;display:flex;flex-direction:column;gap:5px}.progress-overview>div+div{border-left:1px solid var(--line)}.metric-label{font-size:13px;color:var(--muted)}.metric-value{font-size:26px}.metric-note{font-size:12px;color:var(--muted)}.backup-note{background:#eff6ff;border-left:3px solid #60a5fa;padding:13px 16px;font-size:13px;margin-bottom:18px;line-height:1.8}.backup-note button{margin-left:8px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px;margin-bottom:14px;background:#fff}.data-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.data-table th,.data-table td{padding:11px 14px;white-space:nowrap;border-bottom:1px solid var(--line)}.data-table th{background:#f1f5f9;color:#475569;font-size:12px}.empty-panel{text-align:center;padding:40px;background:white;border:1px dashed #cbd5e1;border-radius:9px}.empty-panel button{margin-top:18px}#page-error{padding:9px 24px;background:#fff1f2;color:#9f1239;font-size:13px;display:flex;gap:14px;align-items:center}.toast{position:fixed;z-index:1000;bottom:22px;left:50%;transform:translateX(-50%);max-width:min(700px,calc(100vw - 30px));border-radius:8px;padding:11px 18px;background:#1e293b;color:white;font-size:13px;text-align:center}.toast.error{background:#9f1239}dialog{border:1px solid #cbd5e1;border-radius:12px;padding:0;max-width:calc(100vw - 30px);max-height:90svh;color:#1e293b}dialog::backdrop{background:rgb(15 23 42 / .6)}.dialog-head{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);background:#f8fafc}.dialog-head h2{font-size:17px}.dialog-body{padding:20px;max-height:75svh;overflow:auto;line-height:1.8}.dialog-body p{margin-bottom:14px}.dialog-body li+li{margin-top:7px}.detail-dialog,.import-dialog{width:640px}.dialog-actions{display:flex;gap:10px;margin:18px 0;flex-wrap:wrap}.photo-dialog{width:calc(100vw - 40px);height:calc(100svh - 40px);max-height:none;background:#0f172a}.photo-dialog[open]{display:flex;flex-direction:column}.photo-dialog .dialog-head{flex-shrink:0;background:#fff}.zoom-tools{display:flex;align-items:center;gap:7px}.zoom-tools output{min-width:42px;text-align:center}.zoom-stage{padding:14px;overflow:auto;flex:1;min-height:0;display:flex;align-items:flex-start;justify-content:flex-start;cursor:grab}.zoom-stage.dragging{cursor:grabbing}.zoom-stage img{display:block;margin:auto;object-fit:contain;flex-shrink:0;user-select:none}[hidden]{display:none!important}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(450px,.8fr) minmax(620px,1.2fr)}.score-card{padding:18px}.score-group{padding:9px 0}.photo-stage{min-height:220px}}
@media(max-width:1080px){.topbar{padding:10px 16px}.navbar{padding:0 16px;gap:18px}.local-note{display:none}.task-toolbar{padding:10px 16px}.workspace{padding:0 16px 12px;gap:14px;grid-template-columns:minmax(335px,.86fr) minmax(400px,1.14fr)}.score-card{padding:12px}.rating-option{font-size:12px;padding:6px 4px;gap:4px}.photo-heading h1{font-size:18px}.photo-heading .chip{font-size:11px}.scene-features{grid-template-columns:1fr}.hazard-heading{flex-wrap:wrap}.hazard-body,.content-card{padding:15px}.review-footer{padding:10px 16px}.save-state{font-size:11px}}
@media(max-width:780px){.app-shell{height:auto;min-height:100svh}.topbar{position:sticky;top:0;z-index:20;padding:9px 12px}.brand strong{font-size:14px}.brand-sub{font-size:11px}.brand-mark{width:29px;height:29px;font-size:18px}.top-actions{gap:5px}.top-actions button{font-size:12px;padding:6px 8px}.save-state{display:none}.navbar{padding:0 12px;gap:17px}.nav-tab{font-size:12px}.task-toolbar{flex-wrap:wrap;gap:8px;padding:10px 12px}.task-toolbar label{font-size:13px}.task-toolbar select{flex:1;max-width:none;min-width:140px}.task-toolbar>span{font-size:12px}.progress-track{display:none}.task-toolbar>button{font-size:12px}.workspace{display:flex;flex-direction:column;padding:0 12px 12px;gap:15px}.viewer-pane{display:contents}.photo-heading{order:0}.photo-stage{order:1;flex:none;min-height:0;height:330px;max-height:50vh}.image-failure{order:2}.viewer-tools{order:2}.report-pane{order:3;overflow:visible;padding:0}.score-card{order:4;padding:16px}.rating-option{font-size:13px;min-height:38px;gap:5px;padding:7px}.score-group{padding:10px 0}.score-group legend{font-size:14px}.report-heading h2{font-size:17px}.scene-features{grid-template-columns:1fr 1fr}.review-footer{position:sticky;bottom:0;z-index:15;padding:10px 12px;gap:8px}.review-footer>span{display:none}.review-footer button{font-size:12px;padding:8px 10px}.review-footer .primary{min-width:120px}.page-head{display:block}.page-buttons{margin-top:14px}.progress-overview>div{padding:14px 12px}.metric-value{font-size:23px}.metric-label,.metric-note{font-size:12px}.content-page{padding:22px 12px}.welcome{padding:24px;margin:24px auto}.expert-grid{grid-template-columns:repeat(4,1fr)}.welcome-facts{gap:18px}.photo-dialog .dialog-head{display:block;padding:10px}.zoom-tools{margin-top:8px;gap:5px}.zoom-tools button{font-size:12px;padding:6px 8px}.photo-dialog{width:calc(100vw - 16px);height:calc(100svh - 16px)}#page-error{display:block;padding:10px 12px}#page-error button{margin:7px 5px 0 0}}
@media(max-width:450px){.scene-features{grid-template-columns:1fr}.brand-sub{display:none}.top-actions button{font-size:11px}.navbar{gap:14px}.nav-tab{font-size:11px}.task-toolbar>button{margin-left:0}.rating-option{font-size:12px;padding:7px 5px}.reference-heading{flex-wrap:wrap}.welcome-facts{font-size:12px}.welcome-facts strong{font-size:19px}}
.problem-picker{clear:both;margin-top:9px;padding:10px;background:#fffbeb;border:1px solid #fde68a;border-radius:7px}.problem-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px;color:#92400e}.problem-picker-heading span{font-weight:400;white-space:nowrap}.problem-picker>.muted{font-size:12px;margin:3px 0 7px}.problem-options{max-height:320px;overflow:auto;overscroll-behavior:contain;padding-right:3px}.problem-option{display:flex;flex-wrap:wrap;gap:7px;align-items:flex-start;border-top:1px solid #fef3c7;padding:7px 0}.problem-option label{display:flex;gap:7px;align-items:flex-start;flex:1;min-width:0;cursor:pointer;font-size:12px;line-height:1.65}.problem-option input{accent-color:var(--blue);width:16px;height:16px;flex-shrink:0;margin:3px 0 0}.problem-option label span{overflow-wrap:anywhere}.problem-option .text-button{flex-shrink:0;font-size:12px;padding:3px 4px;min-height:28px}.problem-option:has(input:checked){color:#92400e;font-weight:500}.problem-option .problem-note{flex:1 0 100%;display:block;margin:1px 0 2px;font-size:12px;font-weight:400;color:#78350f;cursor:text}.problem-option .problem-note span{display:block;margin-bottom:3px;font-weight:600}.problem-note.is-required span{color:#9f1239}.score-group.has-error .problem-note textarea:placeholder-shown,.score-group.has-error .judgment-note textarea:placeholder-shown{border-color:#fb7185;background:#fff1f2}.judgment-note{display:block;clear:both;margin-top:8px;font-size:12px;font-weight:600;color:#9f1239}.judgment-note textarea{font-weight:400;color:#1e293b}.problem-picker textarea{min-height:48px;max-height:96px;font-size:13px;font-weight:400;background:#fff}.problem-focus{outline:3px solid #fbbf24;outline-offset:3px;scroll-margin-top:14px}@media(max-width:780px){.problem-option label{font-size:13px}.problem-option{padding:9px 0}.problem-options{max-height:360px}.problem-picker textarea{font-size:14px}}
.missed-editor{clear:both;margin-top:10px;padding:11px;background:#fffbeb;border:1px solid #fde68a;border-radius:7px}.missed-heading,.missed-item-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.missed-heading{color:#92400e}.missed-heading span{font-weight:400}.missed-editor>.muted{font-size:12px;margin:4px 0 9px}.missed-item{background:white;border:1px solid #e2e8f0;border-radius:7px;padding:10px;margin-bottom:9px}.missed-item-heading{margin-bottom:5px}.missed-item-heading .text-button{font-size:12px}.missed-item>label{display:block;font-size:12px;margin:7px 0 4px;font-weight:600}.missed-item>label .muted{font-weight:400;font-size:12px}.missed-item select{width:100%;font-size:13px;min-height:36px}.missed-editor>button{width:100%;font-size:13px;background:#fff}.missed-draft-note{clear:both;font-size:12px;color:#64748b;padding-top:9px}@media(max-width:780px){.missed-item>label{font-size:13px}.missed-item select,.missed-item textarea{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
