[hidden]{display:none!important}
.v2-rate-help{margin:0;padding:10px 12px;color:#455d68;font-size:12px;line-height:1.5;border:1px solid #d4e1e4;border-top:0}
.v2-candidate-rank{display:block;margin-bottom:5px;color:#455d68;font-size:11px}
.v2-candidate-rate{font-size:14px;font-variant-numeric:tabular-nums}
.v2-event-list tr[data-preview="true"] td{background:#e2f1f1}
#reportV2 .v2-event-list button[aria-current="true"]{border-color:#0b8583;color:#086d6b;font-weight:700}
.v2-event-list footer:has(#v2ReportPage){position:sticky;bottom:0;flex-wrap:wrap;gap:6px;background:#fff;border-top:1px solid #d4e1e4;z-index:1}
.v2-event-list footer label{display:flex;gap:4px;align-items:center}
#v2ReportPage{min-height:30px;border:1px solid #cbd9dd;border-radius:4px;background:#fff;color:#24424c}
.v2-event-list input:not(:disabled){cursor:pointer}.v2-event-list tbody tr:has(input:checked){background:#edf8f7}
.occurrence-filters{display:grid;gap:9px;margin:10px 0}.occurrence-filters label{display:grid;gap:4px;font-size:12px}.occurrence-filters input,.occurrence-filters select,.v2-category-bar select,.v2-paper-settings select{width:100%;min-height:30px;border:1px solid #cbd9dd;border-radius:4px;background:#fff;color:#24424c}.occurrence-filters small{color:#61737d;font-size:11px}.edit-class-content>#editClassSwitcher{display:flex;flex-wrap:wrap;margin:8px 0}.edit-class-lists{max-height:180px;overflow:auto}.occurrence-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:4px 0 10px}.occurrence-actions input{width:70px}.occurrence-actions button,#reportV2 button{cursor:pointer;border:1px solid #c8d7dc;border-radius:4px;background:#f6fafb;color:#254650;padding:6px 10px}.occurrence-actions button:hover,#reportV2 button:hover{background:#e2f1f1}.occurrence-viewport{display:block!important;overflow-x:scroll!important;overflow-y:hidden!important;position:relative;height:243px;min-height:243px;scrollbar-gutter:auto;scrollbar-width:auto;overscroll-behavior:contain;padding:0!important;grid-template-columns:none!important}.occurrence-viewport::-webkit-scrollbar{height:14px}.occurrence-viewport::-webkit-scrollbar-thumb{background:#839eaa;border:3px solid #eff4f5;border-radius:6px}.occurrence-lane{height:224px;position:relative}.occurrence-tile{position:absolute;box-sizing:border-box;height:106px;border:1px solid #c6d7dc;border-radius:4px;background:#fff;padding:4px;overflow:hidden}.occurrence-tile:has(input:checked){border:2px solid #0b8884;background:#effafa}.occurrence-open{display:block;width:100%;border:0;background:none;padding:0;color:#24424c;text-align:left}.occurrence-open strong{font:11px monospace}.occurrence-wave{display:block;height:45px;font-size:10px}.occurrence-wave svg{width:100%;height:100%}.occurrence-tile label,.occurrence-tile small{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.occurrence-tile input{accent-color:#0b8884}.occurrence-tile input:focus-visible,button:focus-visible,select:focus-visible{outline:2px solid #0b8884;outline-offset:2px}.edit-gallery-panel{min-width:0}.edit-main-stack{min-width:0}#reportV2{min-width:0}#reportV2Nav{display:grid;grid-template-columns:repeat(12,minmax(68px,1fr));gap:4px;overflow-x:auto;padding:3px 0 12px}#reportV2Nav button{font-size:12px;padding:10px 4px}#reportV2Nav button.active{background:#0b8583;color:#fff;border-color:#0b8583}#reportV2Nav small{display:block;margin-top:4px}#reportV2Notice{color:#536f78;font-size:12px}.v2-category-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:#f2f7f8;padding:12px;border:1px solid #d4e1e4}.v2-category-bar label{display:flex;align-items:center;gap:8px;font-size:12px}.v2-category-bar select{width:auto}.v2-category-bar button{margin-left:auto}.v2-event-layout{display:grid;grid-template-columns:minmax(280px,30%) minmax(0,1fr);border:1px solid #d4e1e4;border-top:0}.v2-event-list{border-right:1px solid #d4e1e4;max-height:670px;overflow:auto}.v2-event-list table,.v2-stats{border-collapse:collapse;width:100%;font-size:12px}.v2-event-list td,.v2-event-list th,.v2-stats td,.v2-stats th{padding:8px;text-align:left;border-bottom:1px solid #e0eaed}.v2-event-list th,.v2-stats th{background:#edf5f6;position:sticky;top:0}.v2-event-list small{display:block;color:#6c8189;font-size:10px}.v2-event-list input{width:17px;height:17px;accent-color:#0b8884}.v2-event-list footer{display:flex;align-items:center;justify-content:space-between;padding:10px;font-size:11px}.v2-event-detail{padding:12px;min-width:0}.v2-event-detail svg{width:100%;display:block;background:#fff}.v2-distribution{display:flex;gap:12px;flex-wrap:wrap;min-height:55px;background:#f4f8f9;padding:10px;font-size:12px}.v2-distribution small{width:100%;color:#637e87}#v2Time{width:100%;accent-color:#0b8884;margin:12px 0}#v2WaveLabel{font-size:11px;color:#617680}.v2-strip-list{display:grid;gap:14px}.v2-strip{padding:14px}.v2-strip header{display:flex;justify-content:space-between;gap:10px}.v2-strip label{display:flex;gap:10px;margin:8px 0}.v2-strip input{flex:1;min-width:0;padding:6px;border:1px solid #c6d7dc}.v2-strip svg{width:100%;display:block}.v2-strip small{color:#637984}.v2-text-block{display:block;font-size:12px;margin:10px 0}.v2-text-block textarea{display:block;width:100%;resize:vertical;padding:8px;box-sizing:border-box;border:1px solid #c6d7dc}.v2-stats{background:#fff;margin:16px 0}.v2-stats caption{text-align:left;padding:10px 0;font-weight:600}.v2-paper-settings{display:flex;gap:20px;align-items:center;margin:10px 0}.v2-paper-settings label{display:flex;gap:8px}.v2-paper-settings span{font-size:12px;color:#617780}.v2-hrv-trend{display:block;width:100%;height:130px;background:#f6fafa}#hrvWindowPanel{padding:18px;margin-bottom:16px;overflow:auto}#v2PrintFrame{position:fixed;width:1px;height:1px;left:-10000px;border:0}.report-conclusion-dock{margin-top:16px}.v2-event-detail .empty-state{min-height:250px}#reportV2 button:disabled{opacity:.48;cursor:default}#v2TimeDistribution{display:flex;gap:2px;align-items:end;height:55px;margin:12px 0}#v2TimeDistribution span{flex:1;background:#69a7b4;min-width:1px;position:relative}#v2TimeDistribution span:hover{background:#0b8583}@media(max-width:1400px){#reportV2Nav{grid-template-columns:repeat(6,minmax(90px,1fr))}.v2-event-layout{grid-template-columns:285px minmax(0,1fr)}.occurrence-actions{font-size:11px}.v2-event-list td{padding:6px}.v2-event-detail{padding:8px}}
/* Template workstation: scatter and morphology left; waveforms and timeline right. */
body:has(#page-edit.active){overflow-y:auto;overflow-x:hidden}
#mainContent #page-edit.active{height:auto;min-height:calc(100dvh - var(--topbar) - 140px);display:grid;grid-template-rows:auto auto;overflow:visible;padding:8px 12px 20px;gap:10px}
#page-edit .edit-page-heading{min-height:36px;height:auto;margin:0;gap:12px;flex-wrap:wrap}
#page-edit .edit-scope-note,#page-edit .edit-nav-hint{display:none}
#editWorkbench.edit-workbench{height:auto;min-height:0;grid-template-columns:clamp(300px,25vw,420px) minmax(0,1fr);gap:10px;align-items:stretch}
#editWorkbench .edit-left-stack{display:grid;height:auto;grid-template-rows:minmax(280px,1fr) 294px auto;gap:8px;min-height:0}
#editWorkbench .edit-main-stack{grid-template-rows:100px auto auto;gap:8px;min-height:0}
#editWorkbench .edit-class-panel{overflow:hidden;min-height:280px}
#editWorkbench .edit-class-content{display:flex;flex:1;min-height:0;padding:0}
#editWorkbench .edit-class-content>#editScatterCanvas{width:100%;height:100%;min-height:240px;flex:1}
#editWorkbench .edit-class-lists{display:none}
#editWorkbench .edit-overview-panel{grid-template-columns:minmax(0,3fr) minmax(180px,1fr);min-height:0}
#editWorkbench .edit-gallery-panel{padding:0 8px 6px;overflow:visible;display:flex;flex-direction:column;min-height:0}
#editWorkbench .edit-gallery-panel .edit-panel-heading{min-height:38px;padding:6px 2px;align-items:center}
#editWorkbench .edit-gallery-panel .edit-panel-heading p{display:none}
#page-edit .occurrence-actions{flex-wrap:wrap;gap:6px;padding:6px 0 8px;font-size:12px;line-height:1.3}
#page-edit .occurrence-actions label{display:flex;align-items:center;gap:5px}
#page-edit .occurrence-actions input{width:60px;height:28px;font:inherit;padding:3px 5px;border:1px solid #c6d7dc;border-radius:4px}
#page-edit .occurrence-actions button{min-height:28px;padding:4px 8px;font:inherit}
#page-edit .occurrence-viewport{height:var(--occ-height,284px);min-height:var(--occ-height,284px);flex:0 0 var(--occ-height,284px);overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-x:contain;overscroll-behavior-y:auto}
#page-edit .occurrence-lane{height:252px}
#page-edit .occurrence-tile{height:136px;padding:4px;border:2px solid #bacbd2;background:#fff;border-radius:2px}
#page-edit .occurrence-open strong{font-size:11px;line-height:15px}
#page-edit .occurrence-wave{height:90px;min-height:90px;color:#334750;font-size:12px}
#page-edit .occurrence-open{height:100%;display:grid;grid-template-rows:20px 90px 14px;color:#172126;cursor:pointer}
#page-edit .occurrence-card-heading{display:flex;align-items:center;gap:5px;line-height:18px}
#page-edit .occurrence-open .occurrence-code{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 3px;border:1px solid #344951;background:#fff;color:#162831;font:700 13px/1 ui-monospace,monospace}
#page-edit .occurrence-group-count{font-size:11px;color:#455c66}
#page-edit .occurrence-card-footer{display:flex;align-items:center;justify-content:space-between;gap:4px;font:11px/14px ui-monospace,monospace;color:#1451a0;white-space:nowrap}
#page-edit .occurrence-tile[data-selected="true"],#page-edit .occurrence-tile[data-selected="mixed"]{border-color:#1760c2;background:#fff}
#page-edit .occurrence-tile[data-selected="mixed"]{border-style:dashed}
#page-edit .occurrence-viewport .occurrence-tile:focus-within{outline:2px solid #a56517;outline-offset:1px}
#page-edit .occurrence-tile .occurrence-open:focus-visible{outline:none}
.occurrence-view-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:5px 8px;border-bottom:1px solid #d6e0e5;font-size:11px;color:#455c66}
.occurrence-view-controls label{display:flex;align-items:center;gap:6px}
.occurrence-view-controls select{font:inherit;min-height:28px;border:1px solid #bacbd2;background:white;color:#24424c}
#page-edit .occurrence-tile label,#page-edit .occurrence-tile small{font-size:10px;line-height:16px;color:#344f5a}
#page-edit .occurrence-tile input{width:13px;height:13px;vertical-align:middle;margin:0 4px 0 0}
#editWorkbench .edit-waveform-panel{min-height:348px;overflow:visible}
#editWorkbench .edit-wave-canvas-wrap{height:264px;min-height:264px;flex:0 0 264px}
#editWorkbench .edit-wave-canvas-wrap>canvas{height:232px!important;min-height:232px;flex:1}
#editWorkbench .edit-wave-foot{height:auto;min-height:24px;white-space:normal;line-height:1.4;padding:5px 8px}
#v2EditTime{width:calc(100% - 16px);height:20px;margin:2px 8px;accent-color:#0b8884;flex:0 0 20px}
#editWorkbench .edit-density-panel{height:294px;min-height:294px;overflow:visible}
#editWorkbench .edit-morphology-stage{grid-template-rows:minmax(132px,1fr) 78px;gap:6px;min-height:0}
#editWorkbench .edit-morphology-foot{position:relative;min-height:28px}
#editWorkbench .edit-keyboard-range[open]{position:absolute;z-index:10;bottom:0;left:0;width:100%;background:#102631;padding:8px;border:1px solid #41616b}
#page-edit .occurrence-filters{display:flex;flex-direction:column;margin:0;padding:10px 8px 0;gap:8px;background:#fff;border:1px solid #d8e3e7;border-radius:6px;min-width:0}
.occurrence-template-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
#page-edit .occurrence-template-tools label{display:grid;min-width:0;gap:4px;font-size:11px;color:#526c78}
#page-edit .occurrence-template-tools input,#page-edit .occurrence-template-tools select{min-width:0;width:100%;font-size:12px;height:30px;padding:4px 6px}
.occurrence-current-filter{display:flex;align-items:center;gap:8px;min-height:20px;font-size:11px;color:#637b86}
.occurrence-current-filter strong{font-size:12px;color:#254650;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edit-type-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 -8px;border-top:1px solid #cbdadf;border-radius:0 0 6px 6px;background:#f5f9fa}
.edit-type-dock button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;height:38px;border:0;border-right:1px solid #d8e3e7;background:transparent;color:#425f6c;padding:0 4px;font:inherit;cursor:pointer}
.edit-type-dock button:last-child{border-right:0}
.edit-type-dock strong{font-size:14px;line-height:1}
.edit-type-dock span{font-size:11px}
.edit-type-dock svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
.edit-type-dock button[aria-pressed="true"],.edit-type-dock button[aria-expanded="true"]{background:#dff2f0;color:#086d6b}
.edit-type-dock button:hover{background:#eaf3f4}
.edit-type-menu{position:fixed;inset:auto;margin:0;width:240px;max-width:calc(100vw - 16px);padding:5px;border:1px solid #b9ccd3;border-radius:6px;background:#fff;color:#243e49;overflow-y:auto;box-shadow:0 8px 24px #102b3826;z-index:120}
.edit-type-menu-title{font-size:11px;color:#5c7480;padding:7px 10px;border-bottom:1px solid #e2eaed;margin-bottom:4px}
.edit-type-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;border:0;border-radius:3px;background:transparent;color:inherit;text-align:left;padding:6px 10px;font:13px/1.4 system-ui,-apple-system,"PingFang SC",sans-serif;cursor:pointer}
.edit-type-menu button:hover,.edit-type-menu button:focus-visible{background:#e9f4f3;outline:0}
.edit-type-menu button[aria-checked="true"]{color:#086d6b;background:#e3f2f0;font-weight:600}
.edit-menu-check{display:block;width:12px;height:12px;flex:0 0 12px}
.edit-type-menu [aria-checked="true"] .edit-menu-check:after{content:"";display:block;width:8px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(1px) rotate(-45deg)}
#editLibraryWorkbench{height:auto;min-height:800px;overflow:visible;grid-template-rows:auto auto auto}
.edit-library-matrix-panel:has(.v2-library-gallery){min-height:520px;overflow:visible}
.v2-library-gallery{display:flex;flex-direction:column;min-height:450px}
#page-edit .v2-library-gallery #occurrenceFilters{margin:8px;max-width:540px}
@media(max-width:1200px){#editWorkbench.edit-workbench{grid-template-columns:280px minmax(0,1fr)}.edit-type-dock span{display:none}#editWorkbench .edit-overview-panel{grid-template-columns:minmax(0,2fr) minmax(150px,1fr)}}
@media(max-width:960px){#editWorkbench.edit-workbench{grid-template-columns:260px minmax(0,1fr)}#editWorkbench .edit-overview-panel{grid-template-columns:minmax(0,1fr)}#editWorkbench .edit-hist-card{display:none}#page-edit .occurrence-template-tools{grid-template-columns:minmax(0,1fr)}}

/* The final report is composed as literal paper sheets; waveform pages are 3 × 2. */
.v2-report-pages,.v2-strip-pages{display:grid;justify-items:center;gap:28px;padding:16px 12px 28px;background:#edf2f3}
.v2-report-pages>.v2-strip-pages,.v2-report-pages>.v2-paper-contents{display:contents}
.v2-paper-sheet{box-sizing:border-box;width:min(100%,210mm);aspect-ratio:210/297;padding:9mm 10mm;background:#fff;border:1px solid #bdcbd0;box-shadow:0 14px 34px #1836401c;display:grid;grid-template-rows:28px minmax(0,1fr);gap:8px;overflow:hidden}
.v2-paper-sheet[data-paper-size="A3"]{width:min(100%,297mm);aspect-ratio:297/420}
.v2-paper-sheet[data-orientation="landscape"]{width:min(100%,297mm);aspect-ratio:297/210}
.v2-paper-sheet[data-paper-size="A3"][data-orientation="landscape"]{width:min(100%,420mm);aspect-ratio:420/297}
.v2-paper-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #aebfc5;color:#334f59;font-size:10px;line-height:1}
.v2-paper-heading strong{font-size:12px;color:#173841}.v2-paper-heading span{white-space:nowrap;color:#627a84}.v2-paper-body{min-height:0;overflow:hidden}
.v2-report-title{text-align:center;margin:18px 0 24px}.v2-report-title h2{margin:0 0 7px;font-size:22px;color:#173841}.v2-report-title p{margin:0;color:#627a84;font-size:11px}
.v2-report-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border:1px solid #ccd9dd}.v2-report-meta div{display:grid;grid-template-columns:76px minmax(0,1fr);border-bottom:1px solid #e0e8ea}.v2-report-meta dt,.v2-report-meta dd{margin:0;padding:8px}.v2-report-meta dt{background:#edf5f6;color:#4f6974}.v2-report-meta dd{overflow-wrap:anywhere}
.v2-paper-section{margin-top:22px}.v2-paper-section h3{margin:0 0 8px;font-size:13px;color:#173841}.v2-conclusion-preview{min-height:62px;margin:0;padding:10px;border:1px solid #d5e0e3;background:#f8fbfb;line-height:1.65}
.v2-summary-paper .v2-text-block{margin:7px 0;font-size:10px}.v2-summary-paper .v2-text-block textarea{min-height:48px;max-height:78px;resize:none;background:#fff}.v2-stats-paper .v2-stats,.v2-hrv-paper .v2-stats{margin:0}.v2-stats-paper .v2-source-summary{margin-top:16px}
.v2-hrv-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:10px}.v2-hrv-intro p{margin:0}.v2-hrv-intro label{display:flex;align-items:center;gap:8px;white-space:nowrap}.v2-hrv-intro select{min-height:28px;border:1px solid #cbd9dd;background:#fff;color:#24424c}.v2-hrv-paper .v2-hrv-trend{height:130px;margin:8px 0}.v2-hrv-paper .v2-hrv-table{font-size:9px}.v2-hrv-paper .v2-hrv-table th,.v2-hrv-paper .v2-hrv-table td{padding:5px 4px}
.v2-strip-page-grid{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}
.v2-strip-page .v2-strip{min-width:0;min-height:0;margin:0;padding:7px 8px;border-radius:4px;box-shadow:none;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:4px;overflow:hidden}
.v2-strip-page .v2-strip>header{min-width:0;align-items:center;gap:8px}
.v2-strip-page .v2-strip>header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.v2-strip-page .v2-strip>header div{display:flex;flex:0 0 auto;gap:3px}
.v2-strip-page .v2-strip>header button{min-height:23px;padding:2px 6px;font-size:10px}
.v2-strip-page .v2-strip label{min-width:0;margin:0;align-items:center;gap:6px;font-size:10px}
.v2-strip-page .v2-strip label input{height:25px;padding:3px 6px;font-size:10px}
.v2-strip-page [data-selected-wave]{min-height:0;overflow:hidden}
.v2-strip-page [data-selected-wave] svg{width:100%;height:100%}
.v2-strip-page .v2-strip>small{font-size:9px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.v2-report-pages,.v2-strip-pages{padding:10px 4px;gap:16px}.v2-paper-sheet{padding:5mm;grid-template-rows:22px minmax(0,1fr);gap:5px}.v2-strip-page-grid{gap:5px}.v2-strip-page .v2-strip{padding:4px}.v2-strip-page .v2-strip>header div,.v2-strip-page .v2-strip label{display:none}.v2-report-title{margin:8px 0 12px}.v2-report-meta dt,.v2-report-meta dd{padding:4px}.v2-paper-section{margin-top:10px}}

.source-group-evidence{margin-top:12px;padding:10px;border:1px solid #c6d7dc;background:#fff;font-size:12px}.source-group-evidence summary{font-weight:650;cursor:pointer}.source-group-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.source-group-controls input{width:85px}.source-group-controls button{min-height:32px}.source-group-evidence svg{display:block;width:100%;height:auto}.source-group-evidence [data-sg-status]{overflow-wrap:anywhere}
