:root{font:13px/1.4 'Segoe UI',Arial,sans-serif;color:#334b5d;background:#eef2f4;--line:#d7dfe5;--muted:#72818d;--blue:#e7f1f8;--accent:#5d88aa;--idea:#f3eef8}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{background:white;border:1px solid #c9d7e1;border-radius:5px;padding:6px 9px;cursor:pointer}button:hover:not(:disabled){background:#f0f6fa}button:disabled{opacity:.5;cursor:default}input,select,textarea{background:white;border:1px solid #c9d7e1;border-radius:5px;padding:6px;min-width:0}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #2877ab;outline-offset:2px}[hidden]{display:none!important}.muted,small{color:var(--muted)}.primary{background:#eaf3fa;border-color:#9fbed4;color:#315e80}h2{font-size:11px;font-weight:700;margin:0 0 5px}#workspace{height:100dvh;display:grid;grid-template-columns:200px minmax(0,1fr) 238px;gap:7px;padding:7px}#left,#right,#center{min-height:0;min-width:0;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden}#left{display:flex;flex-direction:column}.brand{font-size:20px;letter-spacing:.07em;padding:17px 12px;font-weight:700;border-bottom:1px solid var(--line)}.brand span{display:block;font-size:10px;letter-spacing:.2em;font-weight:400}#left>h2{padding:12px;margin:0}.catalog{border:0;border-radius:0;text-align:left;padding:12px;width:100%;display:grid;gap:5px}.active{background:#eaf3f9!important;box-shadow:inset 3px 0 #5d88aa}.left-bottom{margin-top:auto;padding:9px;display:grid;gap:10px}.left-bottom button{font-size:11px;white-space:nowrap}.left-bottom small{font-size:10px}#right{display:flex;flex-direction:column}#right>header{padding:12px 10px;border-bottom:1px solid var(--line)}#right h1{font-size:14px;margin:0 0 10px}.r-tools{display:flex;gap:4px;margin-bottom:6px}.r-tools input{width:100%;font-size:12px}.r-tools button{padding:5px;min-width:28px}#collections{overflow:auto;flex:1;min-height:0}.collection{display:flex;align-items:center;gap:5px;width:100%;border:0;border-bottom:1px solid #edf0f2;border-radius:0;text-align:left;padding:10px;font-size:13px}.collection span{flex:1}.collection small{font-size:10px;white-space:nowrap}.r-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px;border-top:1px solid var(--line)}.r-actions button{font-size:10px;padding:8px 3px}.r-actions #request{grid-column:1/-1}.r-actions #help{grid-column:2;width:25px;justify-self:end}#badge{padding:1px 4px;border-radius:8px;background:#d2e5f2}.expanded #center{grid-column:1/-1;grid-row:1}.expanded #left,.expanded #right{display:none}dialog{width:min(590px,90vw);max-height:85vh;overflow:auto;border:1px solid #9fb5c6;border-radius:8px;color:inherit;padding:18px}dialog::backdrop{background:#1b304455}dialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}dialog h2{font-size:17px}dialog label{display:grid;gap:4px;margin:10px 0}dialog fieldset{border:1px solid var(--line);margin:8px 0}dialog fieldset label{display:flex;gap:7px;margin:6px}dialog textarea{min-height:100px}#dialog-close{border:0;font-size:20px}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#29465c;color:white;z-index:100;padding:10px 15px;border-radius:7px;display:none}#toast.show{display:block}#toast button{margin-left:10px}#action-popover{position:fixed;inset:auto 18px 145px auto;padding:12px;border:1px solid #bdcdd9;border-radius:7px;box-shadow:0 5px 20px #20394b22;color:inherit}#action-popover label{display:block;padding:5px}#action-popover button{display:block;width:100%;margin-top:6px}.dragging,.dragging *{user-select:none!important}#print-root{display:none}@media(max-width:1200px){#workspace{grid-template-columns:170px minmax(0,1fr) 200px;gap:4px;padding:4px}}

/* Mission v0.4 and accepted addendum: two-line L row and shared calm selection. */
#workspace{grid-template-columns:270px minmax(0,1fr) 296px;gap:0;padding:0}#left,#center,#right{border-radius:0}
.catalog-line{display:flex;justify-content:space-between;align-items:center;gap:5px;white-space:nowrap}.catalog-line b{font-weight:600}.catalog-line small{font-size:9px}.catalog-status{flex-shrink:0}.catalog{font-size:12px;padding:10px 8px;gap:6px}
.catalog.active,.collection.active,.catalog.active:hover,.collection.active:hover,.catalog.active:focus,.collection.active:focus{background:#f1f6f9!important;box-shadow:inset 2px 0 #7997ac;font-weight:400}
#filter{position:relative}#filter.active{box-shadow:none;background:white!important}.filter-count{position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;border:2px solid white;border-radius:50%;background:#5d88aa;color:white;font-size:9px;display:grid;place-items:center;padding:0 2px}
#action-popover{width:252px;max-width:calc(100vw - 8px);max-height:calc(100vh - 8px);overflow:auto;margin:0;inset:auto;padding:8px}.context-menu button{display:flex!important;justify-content:space-between;gap:12px;border:0;text-align:left;margin:0!important;padding:7px}.context-menu small{font-size:11px;color:#77838e}.context-menu hr{border:0;border-top:1px solid var(--line);margin:4px 0}.context-menu .remove{color:#a0473b}
.idea-dialog{width:min(850px,90vw)}.idea-dialog textarea{width:100%;min-height:230px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}

/* OWNER RETEST: scoped to L/C. R is frozen. */
#left .catalog-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 9px;background:#f7f9fa}#left .catalog-heading h2{margin:0}#catalog-count{font-size:10px;color:var(--muted)}
#left .catalog-tools{display:flex;gap:5px;padding:8px}#catalog-search{width:100%;font-size:12px}#left .catalog-tools button{display:grid;place-items:center;flex-shrink:0;width:29px;padding:4px}#catalog-empty{padding:8px}#catalog-filter[aria-pressed=true]{background:#f1f6f9;border-color:#7997ac}
#viewer-shell .cat-view-tools{gap:10px;padding:6px;flex-wrap:wrap;align-content:start;min-height:42px}
#viewer-shell .cat-search{flex:0 1 280px;min-width:220px;max-width:280px;width:280px}
#viewer-shell .cat-search input{width:100%;height:28px;font-size:11px}
#viewer-shell .cat-tool-group{gap:2px;flex-shrink:0}#viewer-shell .cat-search-group{gap:4px;display:flex;align-items:center;flex:0 1 auto;min-width:220px}
#viewer-shell .cat-view-tools button{min-width:24px;width:24px;height:28px;padding:2px}#viewer-shell .cat-view-tools button svg{width:18px;height:18px}
#viewer-shell .cat-view-tools input[data-page],#viewer-shell .cat-view-tools input[data-v-page]{width:32px;text-align:center;padding:3px 0;height:28px;appearance:textfield}
#viewer-shell input::-webkit-inner-spin-button{appearance:none}
#viewer-shell .cat-zoom-field input,#viewer-shell input[data-v-zoom]{width:48px;text-align:center;padding:4px;height:28px}
#viewer-shell .cat-zoom-field span{position:static;font-size:10px;margin-left:2px}
#viewer-shell .cat-page-label{font-size:9px;white-space:nowrap}#viewer-shell .cat-page-total{white-space:nowrap;min-width:22px}
#viewer-shell .cat-modes [aria-pressed=true]{background:#eaf1f5;border-color:#69879c;box-shadow:inset 0 0 0 1px #9ab0be}
#viewer-shell .cat-results [role=status]{min-width:30px;text-align:center;white-space:nowrap}
#viewer-shell .cat-modes{gap:3px}#viewer-shell .cat-fits{gap:3px}
@media(min-width:1500px){#viewer-shell .cat-view-tools{gap:14px}}
@media(max-width:1399px){#viewer-shell .cat-search{flex-basis:220px;width:220px;max-width:220px}#viewer-shell .cat-view-tools{gap:6px}}

/* L FINALIZATION: all additions are scoped; C/R layout and PDF toolbar are frozen. */
#left .brand{display:flex;align-items:center;gap:7px;flex-shrink:0;height:42px;padding:0 12px;white-space:nowrap;font-size:20px;letter-spacing:.01em;font-weight:400}
#left .brand strong{font-weight:600;color:#334b5d}#left .brand span{display:inline;font:inherit;letter-spacing:inherit;color:#8795a0}
#left .catalog-heading,#left .catalog-tools,#left .left-bottom{flex-shrink:0}
#left .global-search-field{position:relative;min-width:0;flex:1}#left #catalog-search{height:32px;padding-right:28px;font-size:11px}
#left #catalog-mic{position:absolute;right:1px;top:1px;width:24px;height:30px;border:0;background:transparent;opacity:.65;pointer-events:auto}
#left #catalog-filter,#left #catalog-sort{position:relative;width:30px;height:32px;padding:4px}
#left #catalog-sort{font-size:17px;letter-spacing:-2px}#catalog-filter .global-filter-count{position:absolute;right:-5px;top:-6px;min-width:16px;height:16px;border:1px solid white;border-radius:50%;background:#6388a2;color:white;font-size:10px;display:grid;place-items:center}
#catalog-list{overflow:auto;flex:1;min-height:0}#catalog-list .catalog-line{gap:3px}#catalog-list .catalog-line>span{min-width:0}#catalog-list .catalog-line>small{flex-shrink:0;font-size:8px}
#catalog-list .catalog-line:first-child>span{font-size:11px}#catalog-list .catalog-line:first-child>span small{font-size:8px}#catalog-list .global-catalog-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#catalog-list .catalog{gap:5px}#catalog-list .global-result{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;border:0;border-bottom:1px solid #edf0f2;border-radius:0;padding:9px;font-size:12px}
#catalog-list .global-result>span{font-weight:500}#catalog-list .global-result small{font-size:10px}#catalog-list .global-result.active{background:#f1f6f9!important;box-shadow:inset 2px 0 #7997ac}
#catalog-list .global-result-summary,#catalog-list .global-no-results{padding:8px 9px;font-size:11px;color:var(--muted)}#global-navigation-note{margin:0;padding:6px 9px;font-size:10px;color:var(--muted);border-bottom:1px solid var(--line)}
#left .left-bottom{padding:9px;border-top:1px solid var(--line)}#left .left-bottom button{width:100%}
.global-filter-dialog{width:min(460px,90vw)}.global-filter-dialog details{border-bottom:1px solid var(--line);padding:8px 0}.global-filter-dialog summary{cursor:pointer;font-weight:500;padding:4px 0}.global-filter-dialog summary span{font-size:11px;font-weight:400;color:var(--muted);margin-left:8px}
.global-filter-dialog .global-facet-search{width:100%;margin:8px 0}.global-filter-dialog .global-facet-values{max-height:215px;overflow:auto;padding:2px 4px}.global-filter-dialog .global-facet-values label{display:flex;align-items:center;gap:8px;margin:0;padding:6px 0}.global-filter-dialog label span{flex:1}.global-filter-dialog label small{padding-right:6px}.global-filter-dialog input[type=checkbox]{accent-color:#6688a1}
.global-contact{display:grid;gap:12px}.global-contact a{display:flex;justify-content:space-between;gap:15px;padding:12px;border:1px solid var(--line);border-radius:5px;color:inherit;text-decoration:none}.global-contact a:hover{background:#f1f6f9}
#global-shell-tools{position:fixed;right:7px;top:9px;z-index:3;display:flex;gap:3px;align-items:center;background:white}#global-shell-tools button{padding:1px 2px;border:0;font-size:10px;height:18px}#global-shell-tools #global-help{width:15px;font-size:12px}#global-shell-tools #global-locale{opacity:.65}
body:has(#workspace.expanded) #global-shell-tools,body:has(#viewer-shell.presentation) #global-shell-tools{display:none}
@media print{#global-shell-tools{display:none}}

/* DEC-CATALOGS-083: isolated DWK mode, no change to ordinary Viewer layout. */
#dwk-list{flex:1;min-height:0;overflow:auto;padding:10px}#dwk-list h2{margin:5px 0 12px}.dwk-choice{display:flex;align-items:center;gap:8px;padding:10px 2px;border-bottom:1px solid var(--line)}.dwk-choice input{accent-color:#6388a2}.dwk-choice span{min-width:0}.dwk-choice small{display:block;font-size:10px}#dwk-entry[aria-pressed=true]{background:#f1f6f9;box-shadow:inset 2px 0 #7997ac}#dwk-pane{height:100%;overflow:auto;padding:22px}#dwk-pane header h1{font-size:20px;font-weight:500}#dwk-pane header button{float:right}.dwk-rights{padding:12px;background:#faf5e9;border:1px solid #e5d8bd}.dwk-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}#dwk-progress{width:100%;height:12px}#dwk-status{overflow-wrap:anywhere;min-height:22px}#dwk-summary{line-height:1.8}.dwk-preview-images{display:flex;flex-wrap:wrap;gap:12px}.dwk-preview-images figure{margin:0;width:140px}.dwk-preview-images img{width:130px;height:120px;object-fit:contain}.dwk-preview-images figcaption{font-size:11px}#dwk-preview-content article{border-top:1px solid var(--line);padding:15px 0}

/* CL explanation stays inside L; central Viewer geometry is unchanged. */
.search-explanation,.search-clarification{margin:8px;padding:8px 10px;border:1px solid #dce4eb;border-radius:5px;background:#f5f8fb;color:#435b70;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.search-clarification p{margin:0 0 6px}.search-clarification button{display:block;max-width:100%;margin:5px 0;padding:5px 7px;white-space:normal;text-align:left;font-size:11px}
.global-result .search-match-reason{color:#58748b;font-size:11px;white-space:normal}.search-clarification button:focus-visible{outline:2px solid #597e9d;outline-offset:2px}

/* Search Assistance 1: stays inside L; no central toolbar height change. */
.search-assistance,.search-current-action,.search-job{margin:6px 0;padding:8px;border:1px solid var(--line,#d7e0e7);border-radius:5px;background:#f7f9fc;color:var(--ink,#24415b);font-size:12px}.search-assistance p{margin:0 0 6px}.search-assistance button,.search-current-action button,.search-job button{display:block;width:100%;text-align:left;white-space:normal;height:auto;padding:7px;margin:4px 0;font-size:11px}.search-assistance summary{cursor:pointer;padding:3px}.search-assistance fieldset{border:0;margin:6px 0;padding:0}.search-assistance legend{font-weight:600}.search-assistance fieldset p{font-size:11px}.search-constraints{font-size:11px;color:#526b80;padding:4px 0}.search-assistance button:focus-visible,.search-current-action button:focus-visible{outline:2px solid #4b7ea6;outline-offset:1px}

/* PDF TOOLBAR 1 · OWNER final order; PAN is middle-button drag only. */
#viewer-shell .pdf-toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;padding:6px;min-height:46px;font-size:11px}
#viewer-shell .cat-document-row,#viewer-shell .cat-view-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0}
#viewer-shell .cat-document-row{flex:1 1 auto}#viewer-shell .cat-view-row{flex:0 0 auto;border-left:1px solid #c9d7e1;padding-left:12px}
#viewer-shell .pdf-toolbar .cat-tool-group{gap:4px;flex-shrink:0}
#viewer-shell .pdf-toolbar .cat-document-row{gap:10px;flex-shrink:1}
#viewer-shell .pdf-toolbar .cat-view-row{gap:10px}
#viewer-shell .pdf-toolbar button{width:32px;min-width:32px;height:32px;padding:5px;border-radius:5px}
#viewer-shell .pdf-toolbar button svg{width:20px;height:20px}
#viewer-shell .pdf-toolbar button[aria-pressed=true]{background:#e2edf5;border-color:#6388a5;color:#244b69;box-shadow:inset 0 0 0 1px #8aa6bc}
#viewer-shell .pdf-toolbar .cat-search-group{flex:1 1 auto;min-width:180px;gap:6px}
#viewer-shell .pdf-toolbar .cat-search{position:relative;display:flex;flex:1 1 auto;min-width:120px;max-width:none;width:auto}
#viewer-shell .pdf-toolbar .cat-search input{height:32px;width:100%;padding:5px 62px 5px 7px;font-size:12px}
#viewer-shell .pdf-toolbar .cat-search button{position:absolute;right:1px;top:1px;height:30px;width:28px;min-width:28px;padding:4px;border:0;background:transparent}
#viewer-shell .pdf-toolbar .cat-search [data-clear-search]{right:29px}
#viewer-shell .pdf-toolbar output{display:inline-block;min-width:25px;line-height:32px;text-align:center;border:0;background:transparent;font-size:12px;white-space:nowrap}
#viewer-shell .pdf-toolbar [data-zoom]{min-width:32px}#viewer-shell .pdf-toolbar .cat-zoom-field{margin:0}
#viewer-shell .pdf-toolbar .cat-pages label{margin:0}#viewer-shell .pdf-toolbar .cat-page-total{min-width:28px;font-size:12px}
#viewer-shell .pdf-toolbar .cat-results{gap:3px}#viewer-shell .pdf-toolbar [data-result-count]{min-width:35px;text-align:center;white-space:nowrap}
#viewer-shell .pdf-toolbar [data-lens]{width:54px;display:flex;gap:2px}#viewer-shell .pdf-toolbar [data-lens-badge]{font-size:11px;white-space:nowrap}
#viewer-shell .pdf-toolbar [data-result-context]{display:none}
#viewer-shell .pdf-scope-notice{flex-shrink:0;padding:4px 8px;background:#f2f6f9;font-size:11px}#viewer-shell .pdf-scope-notice button{font-size:10px;padding:4px 6px;margin-left:4px}
.dictation-note{position:absolute;z-index:12;top:100%;left:0;max-width:320px;min-width:180px;white-space:normal;padding:6px;background:#f1f5f8;border:1px solid #b9cad7;color:#334b5d;font-size:11px}
button[data-voice=listening]{background:#deecf6!important;outline:2px solid #6389a5;animation:voice-pulse 1.3s ease-in-out infinite}
@keyframes voice-pulse{50%{outline-color:#aebfcc}}@media(prefers-reduced-motion:reduce){button[data-voice=listening]{animation:none}}
#viewer-shell .cat-lens{pointer-events:none}#viewer-shell .cat-viewport,#viewer-shell .continuous-viewport{touch-action:auto}
#right .r-actions{margin-top:auto}#right .r-actions #help{display:none}
@media(max-width:1399px){#viewer-shell .pdf-toolbar{flex-direction:column;align-items:stretch;gap:6px}#viewer-shell .cat-document-row{flex:none;width:100%}#viewer-shell .cat-view-row{border-left:0;border-top:1px solid #d7dfe5;padding:6px 0 0;flex:none;width:100%}}

#global-locale{width:64px;background:transparent;color:inherit;border:1px solid #cbd7df;border-radius:5px;padding:5px;font:inherit} .proforma-form{display:grid;gap:12px}.proforma-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.proforma-form label{display:grid;gap:5px}.proforma-actions{display:flex;gap:8px;flex-wrap:wrap}.proforma-table{width:100%;border-collapse:collapse;font-size:12px}.proforma-table th,.proforma-table td{border-bottom:1px solid #dbe2e7;padding:6px;text-align:left}.proforma-form textarea{min-height:110px}.proforma-preview iframe{width:100%;height:440px;border:1px solid #dbe2e7}.proforma-form .muted{font-size:12px}#dialog:has(.proforma-form){width:min(960px,94vw);max-width:960px}
