:root{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;font-size:14px;color:#263648;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.46;cursor:not-allowed}h1,h2,h3,p{margin:0}h1{font-size:23px;font-weight:750;letter-spacing:-.5px}h2{font-size:21px;font-weight:720;letter-spacing:-.3px}.app-header{background:#fff;border-bottom:1px solid #e0e5ea;padding:18px max(24px,calc((100vw - 1420px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:14px}.brand-logo{width:44px;height:44px;background:#173a55;border-radius:12px;color:#fff;display:grid;place-items:center;font-size:25px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.5px;color:#54778c}.subtitle{color:#8494a1;margin-top:3px;font-size:12px}.version{color:#637887;border:1px solid #d8e1e7;border-radius:999px;padding:6px 12px;background:#f8fafb;font-size:12px}.container{max-width:1472px;margin:auto;padding:27px 24px 40px}.intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.intro p{color:#768796;margin-top:6px}.privacy{border-radius:99px;background:#eaf5f0;color:#197048;padding:8px 12px;font-weight:600;white-space:nowrap;font-size:12px}.privacy-dot{width:7px;height:7px;background:#2c9b68;display:inline-block;border-radius:50%;margin-right:7px}.upload{border:1.5px dashed #aebfc9;min-height:135px;border-radius:14px;background:#fff;display:flex;align-items:center;gap:18px;padding:20px 26px;transition:background .15s,border-color .15s}.upload.dragover{border-color:#18658e;background:#eaf4f9}.upload-icon{width:58px;height:58px;border-radius:12px;background:#eff5f8;color:#356c8e;display:grid;place-items:center;font-size:28px}.upload strong{font-size:16px}.upload p{margin-top:5px;color:#82919c;font-size:13px}.upload .button{margin-left:auto}.button{border:1px solid #bdcbd5;background:#fff;color:#314657;padding:9px 13px;border-radius:8px;white-space:nowrap;font-weight:650;font-size:12px;display:inline-flex;align-items:center;justify-content:center;min-height:36px}.button:hover:enabled{background:#f3f7fa}.button.primary{border-color:#214965;background:#214965;color:white}.button.primary:hover:enabled{background:#143750}.button.ghost{background:#fff}.library-status{font-size:12px;color:#768896;margin:10px 3px 18px}.library-status.error{color:#a63e33}.library-status.ready{color:#257450}.progress-wrap{background:white;border:1px solid #dae4e9;border-radius:11px;padding:12px 14px;margin:12px 0}.progress-line{display:flex;justify-content:space-between;font-size:12px;color:#536776;margin-bottom:8px}.progress-track{height:7px;background:#eaf0f4;overflow:hidden;border-radius:10px}.progress-track div{height:100%;width:0;background:#22668b;transition:width .15s}.small-quiet{margin-top:7px;background:none;border:0;color:#536d7c;font-size:12px;text-decoration:underline}.filename{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:26px;margin-bottom:15px}.filename>div{display:flex;gap:11px;align-items:center;min-width:0}.filename strong{font-size:16px;max-width:600px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.file-icon{border-radius:5px;font-size:11px;color:#9e352c;background:#ffeae5;padding:7px;font-weight:750}.file-meta{color:#81919c;font-size:12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 13px}.metric{background:white;border:1px solid #e2e8ec;border-radius:11px;padding:17px 18px;display:flex;gap:8px;flex-direction:column}.metric span{font-size:12px;color:#80919c}.metric strong{font-size:27px;font-weight:730;color:#1a3b53;font-variant-numeric:tabular-nums}.status-panel{border:1px solid #d9e4eb;background:#eff6fa;color:#315a76;padding:12px 14px;border-radius:10px;font-size:13px;margin-bottom:11px;line-height:1.55}.status-panel.warn{border-color:#ead7ba;background:#fff8ee;color:#8a5a1c}.status-panel.good{border-color:#c9e8d7;background:#f0f9f3;color:#28734e}.warning-list{border:1px solid #efd9c6;background:#fffbf5;border-radius:9px;color:#81532a;padding:12px 17px;margin:10px 0;font-size:12px}.warning-list ul{margin:3px 0;padding-left:18px}.toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin:19px 0 12px}.toolbar-left,.toolbar-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar input,.toolbar select{border:1px solid #d0dce3;background:#fff;border-radius:7px;padding:10px 12px;color:#3b5060;height:36px}.toolbar .search{width:285px;max-width:85vw}.main-grid{display:grid;grid-template-columns:minmax(335px,42%) minmax(0,58%);gap:13px;align-items:start}.records,.inspection{border:1px solid #dfe7ed;background:#fff;border-radius:12px;overflow:hidden;min-width:0}.panel-header{padding:15px 17px;display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #e7edf1;min-height:55px}.panel-header strong{font-size:14px}.panel-header>span,.inline-meta{font-size:11px;color:#82949f}.inline-meta{margin-left:12px}.record-list{max-height:870px;overflow-y:auto;min-height:210px}.record{display:block;border:0;border-bottom:1px solid #ebeff2;width:100%;background:#fff;text-align:left;padding:13px 16px;cursor:pointer}.record:hover,.record.active{background:#f3f8fb}.record.active{box-shadow:inset 3px 0 0 #296b91}.record-top{display:flex;gap:10px;align-items:center;justify-content:space-between}.record-id{font-weight:750;color:#254c65}.record-num{font-size:12px;color:#8595a1}.record-location{font-size:12px;color:#647d8d;margin:8px 0 5px;line-height:1.35}.record-text{font-size:12px;line-height:1.45;color:#475965;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pill{border-radius:99px;padding:3px 8px;font-size:10px;font-weight:650;background:#edf2f5;color:#6b7d88;white-space:nowrap}.pill.issue{background:#fff0dc;color:#a26a21}.pill.done{background:#e7f6ee;color:#2f8559}.list-pagination{display:flex;gap:12px;align-items:center;justify-content:center;padding:11px;border-top:1px solid #e7edf1}.list-pagination span{font-size:12px;color:#6e8190}.empty-list{padding:35px 20px;color:#8395a2;text-align:center}.empty-selection{text-align:center;padding:110px 30px}.empty-art{font-size:40px;color:#89a4b3}.empty-selection h3{margin:15px 0 6px}.empty-selection p{color:#81939f;line-height:1.55;max-width:380px;margin:auto}.source-label{font-size:11px;color:#4c738a}.detail-body{padding:15px}.detail-fields label{font-weight:600;font-size:12px;color:#526a7b;display:block;margin-bottom:11px}.detail-fields label>input:not([type=checkbox]),.detail-fields textarea{display:block;width:100%;margin-top:6px;border:1px solid #cedbe2;border-radius:7px;padding:10px;color:#243848;background:#fff;outline:none;line-height:1.45;font-size:13px}.detail-fields textarea{resize:vertical;min-height:57px}.detail-fields label>input:focus,.detail-fields textarea:focus{border-color:#3384a7;box-shadow:0 0 0 2px #d9ebf3}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.record-warnings{background:#fff9ed;border:1px solid #efdfc2;color:#815d29;font-size:12px;padding:10px 12px;border-radius:8px;margin:5px 0 12px}.record-warnings ul{margin:0 0 0 15px;padding:0}.review-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 19px;padding:12px;border:1px solid #e1e9ed;background:#f9fbfc;border-radius:8px}.review-actions label.check{margin:0;display:flex;align-items:center;gap:8px;cursor:pointer;color:#30495a;font-size:12px}.check input{accent-color:#24688e;width:17px;height:17px}.pdf-viewer{border:1px solid #e0e8ed;border-radius:10px;background:#eef2f5;overflow:hidden}.viewer-top{padding:10px 13px;background:#fff;border-bottom:1px solid #dfe7ed;display:flex;justify-content:space-between;align-items:center;gap:10px}.viewer-top strong{font-size:12px}.viewer-controls{display:flex;align-items:center;gap:4px}.viewer-controls input{border:1px solid #d4dee4;border-radius:5px;width:47px;text-align:center;height:28px;padding:3px;font-size:12px}.viewer-controls select{font-size:11px;border:1px solid #d4dee4;border-radius:5px;padding:4px;height:28px;background:white}.viewer-controls span{font-size:11px;color:#81909b}.viewer-btn{border:1px solid #d4dee4;background:#fff;border-radius:5px;width:27px;height:28px;font-size:18px;line-height:20px}.canvas-container{text-align:center;overflow:auto;max-height:520px;padding:16px;background:#e9eef1}.canvas-container canvas{max-width:none;box-shadow:0 4px 16px #23364524;background:white;vertical-align:middle}.page-hint{padding:9px 12px;font-size:11px;color:#6c8291;background:#fff;border-top:1px solid #e0e9ed}.footer-note{font-size:12px;color:#647885;background:white;border:1px solid #dee6eb;padding:15px 17px;border-radius:10px;margin-top:16px;line-height:1.6}.site-footer{text-align:center;padding:20px 16px 30px;font-size:11px;color:#97a4ad;max-width:1000px;margin:auto;line-height:1.6}#fileInput{display:none}[hidden]{display:none!important}@media(min-width:1180px){.detail-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;align-items:start}.canvas-container{max-height:675px}}@media(max-width:950px){.main-grid{grid-template-columns:1fr}.record-list{max-height:460px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.intro{align-items:start}.upload{flex-wrap:wrap}.upload .button{margin-left:0}}@media(max-width:580px){.container{padding:20px 12px}.app-header{padding:13px}.version{display:none}.brand-logo{width:37px;height:37px}.intro{display:block}.privacy{display:inline-block;margin-top:12px}.upload{padding:14px;gap:12px}.upload-icon{display:none}.filename{align-items:flex-start;flex-direction:column}.metrics{gap:8px}.metric{padding:12px}.metric strong{font-size:22px}.detail-body{padding:10px}.toolbar .search{width:100%}.toolbar-left{width:100%}.viewer-top{flex-wrap:wrap}}

.metric-edit{color:#547a91;font-size:10px;background:transparent;border:0;padding:1px 0;text-align:left;text-decoration:underline;align-self:flex-start}.metric-edit:hover{color:#235473}

/* Laboratoire V0.2 */
.ocr-panel{border:1px solid #d5e2ec;border-radius:11px;background:#f4f8fb;padding:15px 17px;margin:12px 0 15px;color:#294e65}
.ocr-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.ocr-heading>strong{font-size:14px}.ocr-heading>span{font-size:11px;color:#a06416;background:#fff7e7;border-radius:15px;padding:4px 8px}
.ocr-panel p{font-size:12px;line-height:1.55;color:#5a7080}.ocr-tools{display:flex;align-items:end;flex-wrap:wrap;gap:11px;margin-top:10px}.ocr-tools label{display:flex;flex-direction:column;gap:5px;font-size:11px}.ocr-tools input{width:106px;border:1px solid #c7d5df;padding:8px;border-radius:6px;background:white}.ocr-tools>span{font-size:11px;color:#597588}
.detail-fields select{display:block;width:100%;margin-top:6px;border:1px solid #cedbe2;border-radius:7px;padding:9px;color:#243848;background:#fff;font-size:13px}
.source-text-panel{padding:10px;background:#fff;border:1px solid #e0e8ed;border-radius:10px;margin-top:12px}.source-text-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.source-text-heading strong{font-size:12px}.source-text-panel textarea{width:100%;min-height:120px;resize:vertical;border:1px solid #d3dfe5;border-radius:6px;padding:9px;background:#f8fafb;color:#344e61;font-size:12px;line-height:1.5}.source-text-panel p{font-size:11px;color:#748695;margin-top:7px}
/* V0.2.2 — transparent OCR diagnostic, accessible even on restricted Edge */
.ocr-debug{margin-top:12px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#f9fbfe}
.ocr-debug summary{cursor:pointer;font-weight:700;color:#263d5f}
.ocr-debug p{font-size:13px;line-height:1.45;color:#475569;margin:9px 0}
.ocr-diagnostic-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#ocrDebugCanvas{display:block;max-width:100%;width:auto;height:auto;max-height:510px;margin:8px auto;border:1px solid #a7b4c7;background:white;object-fit:contain}
#ocrDiagText{max-height:230px;overflow:auto;font-size:12px;line-height:1.5;white-space:pre-wrap;background:#fff;padding:10px;border:1px solid #cbd5e1;border-radius:7px}
.ocr-panel select{max-width:320px;padding:9px;border-radius:7px;border:1px solid #b5c4d5;background:white}
