:root{font-family:"Microsoft YaHei","微软雅黑",Arial,sans-serif;color:#203b4d;background:#eaf1f6;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ec9a42;outline-offset:2px}a{color:#126b9b;text-decoration:none}a:hover{text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{min-height:94px;padding:18px 24px;background:#f8fbfd;border-bottom:1px solid #d3e0e8;display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:11px;color:#588199;letter-spacing:.09em;margin:0 0 4px}.topbar h1{font-size:25px;line-height:1.2;margin:0;color:#12374e}.top-subtitle{font-size:12px;color:#5b7789;margin:6px 0 0}.top-status{background:#e4f1f5;color:#27697d;border:1px solid #c7e4ec;border-radius:999px;padding:8px 13px;font-size:12px;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(270px,320px) minmax(360px,1fr) minmax(300px,370px);gap:12px;padding:12px;height:calc(100dvh - 94px);min-height:600px}.panel{background:#fff;border:1px solid #d6e3eb;border-radius:12px;box-shadow:0 2px 12px #254a5e09;min-width:0;min-height:0}.panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.panel-head h2{font-size:17px;margin:0;color:#163e55}.count,.muted{color:#6b8290;font-size:12px}.inventory-panel{padding:15px;display:flex;flex-direction:column;overflow:hidden}.inventory-panel>.panel-head{margin-bottom:14px}.segmented{display:inline-flex;align-items:center;gap:2px;padding:3px;background:#eaf2f7;border-radius:8px}.segmented button{border:0;background:transparent;color:#557486;padding:7px 11px;border-radius:6px;white-space:nowrap}.segmented button[aria-pressed="true"]{background:white;color:#14658b;font-weight:bold;box-shadow:0 1px 5px #22506622}.inventory-panel .segmented{margin-bottom:12px;align-self:flex-start}input,select{width:100%;border:1px solid #c8d9e4;border-radius:7px;background:#fff;color:#25475a;padding:9px 10px;margin:0 0 9px}input::placeholder{color:#8aa0ae}.inventory-list{overflow:auto;min-height:0;flex:1;padding-right:3px;scrollbar-color:#b4cbd9 transparent}.inventory-item{display:block;width:100%;text-align:left;background:#f5f8fa;border:1px solid #e0e9ef;border-radius:8px;padding:10px;margin:0 0 6px;color:#214050}.inventory-item:hover{background:#ecf5fa;border-color:#b1d2e3}.inventory-item.active{background:#e0f1f8;border-color:#328cb5;box-shadow:inset 3px 0 #1980ad}.item-main{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-weight:bold}.item-title{overflow-wrap:anywhere}.item-sub{font-size:12px;color:#607c8d;line-height:1.55;margin-top:3px;display:block;overflow-wrap:anywhere}.item-group{font-size:11px;color:#5c7f93;margin:12px 4px 7px;font-weight:bold}.badge{font-size:10px;font-weight:normal;line-height:1.4;padding:2px 6px;border-radius:99px;background:#e2edf4;color:#386c83;white-space:nowrap}.badge.candidate{background:#e1f2eb;color:#2c785c}.badge.conflict{background:#fde8df;color:#a34b37}.badge.unmapped,.badge.no_photo{background:#fff2d8;color:#906319}.badge.photo{background:#edf1f5;color:#6d7e8a}.inventory-foot{font-size:11px;color:#728a98;line-height:1.5;margin:9px 2px 0}.active-drawing{padding:9px;background:#edf6fa;border:1px solid #c9e4ed;border-radius:7px;margin-bottom:10px;font-size:12px}.active-drawing button{float:right;border:0;background:transparent;color:#126b9b;padding:0}.empty-list{padding:24px 8px;color:#78909f;text-align:center;line-height:1.7}.photo-panel{display:flex;flex-direction:column;overflow:hidden}.photo-head{padding:14px 16px 11px}.photo-head p{margin:5px 0 0}.photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;padding:0 12px 10px}.toolbar-actions{display:flex;gap:5px}.toolbar-actions button{background:#fff;border:1px solid #d0e0e9;border-radius:7px;color:#35647d;min-width:35px;padding:7px 9px}.toolbar-actions button:hover{background:#eef7fb}.toolbar-actions button[aria-pressed="false"]{color:#8b9ea7;background:#f3f6f8}.photo-canvas{position:relative;background:#d3dfe7;overflow:hidden;flex:1;min-height:250px}.photo-canvas svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}.photo-canvas .canvas-message{position:absolute;z-index:1;top:12px;left:12px;padding:8px 11px;background:#ffffffed;border-radius:6px;color:#517186;pointer-events:none;font-size:12px}.photo-canvas .canvas-message[hidden]{display:none}.hotspot{cursor:pointer;outline:none}.hotspot rect{stroke:#2a88bb;stroke-width:1.5;fill:transparent;vector-effect:non-scaling-stroke}.hotspot.photo-uncertain rect{stroke:#ce8b29;stroke-dasharray:5 3}.hotspot.matched rect{stroke:#188e86}.hotspot.in-drawing rect{stroke:#18a4ce;stroke-width:2.6;fill:#64c7e018}.hotspot.selected rect,.hotspot:hover rect,.hotspot:focus rect{stroke:#e4468e;stroke-width:3.5;fill:#ed5a9d28}.hotspot text{fill:#164462;stroke:#fff;stroke-width:4px;paint-order:stroke;stroke-linejoin:round;font-weight:bold;pointer-events:none}.photo-canvas.hide-marks .hotspot{display:none}.photo-caption{padding:9px 13px;display:flex;justify-content:space-between;gap:8px;color:#697f8d;font-size:11px}.photo-caption span:first-child{color:#315f79}.detail-panel{padding:15px;display:flex;flex-direction:column;overflow:hidden}.detail-panel>.panel-head{margin-bottom:12px}.detail-body{overflow:auto;min-height:0;flex:1;padding-right:3px}.detail-empty{padding:35px 15px;text-align:center;color:#8398a4;line-height:1.8}.detail-title{font-size:22px;color:#123e57;margin:0 0 4px;overflow-wrap:anywhere}.detail-name{color:#4c6f81;line-height:1.5;margin:0 0 12px}.detail-meta{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 15px}.detail-section{border-top:1px solid #e4edf2;padding-top:13px;margin-top:14px}.detail-section h3{font-size:13px;margin:0 0 9px;color:#496c7f}.kv{display:grid;grid-template-columns:65px 1fr;gap:5px 7px;margin:6px 0;font-size:12px;line-height:1.55}.kv dt{color:#78909e}.kv dd{margin:0;overflow-wrap:anywhere}.notice{font-size:12px;line-height:1.6;color:#80662e;background:#fff8e9;border:1px solid #f0dfb4;border-radius:7px;padding:8px 10px;margin:9px 0}.notice.conflict{color:#a34837;background:#fff1eb;border-color:#f1cdbf}.ref-card{border:1px solid #dce8ee;border-radius:8px;margin:0 0 7px;padding:9px 10px;background:#fafcfd;font-size:12px;line-height:1.55}.ref-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ref-head strong{color:#1b6688}.ref-card p{margin:5px 0 0;color:#557281}.text-button,.link-button{border:1px solid #c9dfe9;background:#f2f8fb;border-radius:6px;color:#146b97;padding:5px 8px;font-size:11px;white-space:nowrap}.link-button{display:inline-block;text-decoration:none}.text-button:hover,.link-button:hover{background:#e4f2f8;text-decoration:none}.image-preview{width:100%;height:auto;border:1px solid #d9e6ed;border-radius:7px;background:#f6f8fa;display:block;margin:8px 0}.source-line{font-size:11px;color:#7a909d;overflow-wrap:anywhere;line-height:1.6}.drawing-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.photo-locations{display:flex;gap:6px;flex-wrap:wrap}.photo-locations button{border:1px solid #bcd8e5;border-radius:7px;color:#166f98;background:#eff8fb;padding:6px 9px;font-size:12px}.region-box{font-size:11px;color:#778e9d}.mobile-tabs{display:none}
@media(max-width:1200px){.workspace{grid-template-columns:280px minmax(320px,1fr) 320px;gap:8px;padding:8px}.toolbar-actions button{padding:6px 7px}}
@media(max-width:980px){.workspace{grid-template-columns:270px minmax(300px,1fr);height:calc(100dvh - 94px)}.detail-panel{grid-column:1 / -1;max-height:340px}.workspace{grid-template-rows:minmax(430px,1fr) 320px;height:auto;min-height:calc(100dvh - 94px)}.inventory-panel,.photo-panel{min-height:430px}}
@media(max-width:650px){.topbar{min-height:86px;padding:12px 15px}.topbar h1{font-size:21px}.top-status{display:none}.mobile-tabs{display:flex;background:#f8fbfd;border-bottom:1px solid #d5e2ea;padding:6px 8px;gap:4px}.mobile-tabs button{flex:1;border:0;background:transparent;border-radius:7px;color:#587788;padding:8px 4px;font-size:12px}.mobile-tabs button[aria-current="page"]{background:#dceef6;color:#14678e;font-weight:bold}.workspace{display:block;height:calc(100dvh - 132px);min-height:420px;padding:8px}.workspace .panel{height:100%;min-height:0}.workspace .panel[hidden]{display:none}.inventory-panel{padding:12px}.photo-head{padding:12px}.photo-toolbar{padding:0 9px 8px}.photo-toolbar .segmented button{padding:7px 6px;font-size:11px}.toolbar-actions{gap:2px}.toolbar-actions button{font-size:11px;min-width:28px;padding:6px}.photo-caption{font-size:10px}.detail-panel{padding:12px;max-height:none}}
/* Full drawing parse data: keep wide source tables scrollable in the detail pane. */
.parsed-table-wrap{overflow:auto;max-width:100%;margin:12px 0;border:1px solid #d5e4eb;border-radius:6px}
.parsed-table{border-collapse:collapse;font-size:12px;min-width:760px;background:#fff}
.parsed-table th,.parsed-table td{padding:7px 9px;border:1px solid #dce7ed;text-align:left;vertical-align:top;white-space:pre-wrap;min-width:68px}
.parsed-table th{background:#edf6fa;color:#22576e;position:sticky;top:0}
.parsing-block{margin:14px 0;min-width:0}
.parsing-block summary{cursor:pointer;color:#17617d;font-weight:600;padding:8px 0}
.record-search{width:100%;box-sizing:border-box;padding:10px;border:1px solid #bfd5e0;border-radius:6px;margin:8px 0}
