:root{--blue:#135f9f;--blue2:#0b4e87;--bg:#f3f6f9;--card:#fff;--text:#183149;--muted:#6c7d8e;--line:#dce5ed;--green:#16784b;--greenbg:#eaf7f0;--warning-bg:#fff7df;--warning:#805b00;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input{font:inherit}.topbar{position:sticky;top:0;z-index:9;display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border-bottom:1px solid var(--line);padding:18px 28px}.brand{font-size:20px;font-weight:800;color:var(--blue)}.subtitle{color:var(--muted);font-size:14px;margin-top:3px}.version{font-size:11px;background:#eef4f9;padding:3px 7px;border-radius:99px}.topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.readonly{font-size:12px;font-weight:750;color:var(--green);background:var(--greenbg);padding:8px 12px;border-radius:99px}.lock-icon{font-size:9px;vertical-align:2px}.test-label{font-size:11px;font-weight:800;color:var(--warning);background:var(--warning-bg);border:1px solid #eed99a;padding:7px 10px;border-radius:8px;letter-spacing:.035em}.shell{max-width:1180px;margin:0 auto;padding:26px}.area-nav{margin-bottom:16px}.area-tab{display:inline-flex;align-items:center;border-radius:10px;background:#173e58;color:#fff;border:1px solid #173e58;padding:11px 17px;font-size:14px;font-weight:700}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 18px rgba(30,61,86,.04)}.archive-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 24px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:850;color:#708496;margin:0 0 7px}.archive-header h1{font-size:27px;line-height:1.2;margin:0 0 8px;letter-spacing:-.025em}.archive-header p:not(.eyebrow){margin:0;color:var(--muted);font-size:14px;line-height:1.5}.header-tag{white-space:nowrap;font-size:12px;font-weight:700;color:#315f52;background:#ecf8f1;border:1px solid #d4ebdb;padding:10px 12px;border-radius:10px}.tag-dot{display:inline-block;width:7px;height:7px;background:#258452;border-radius:50%;margin-right:5px}.demo-notice{font-size:13px;line-height:1.5;background:var(--warning-bg);color:#745613;border:1px solid #ebd9aa;padding:13px 16px;border-radius:12px;margin:16px 0}.panel{padding:22px 24px;min-width:0}.search-panel{margin-bottom:16px}.section-title-row,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel h2{font-size:19px;margin:0 0 16px}.section-title-row h2{margin-bottom:14px}.search-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.search-fields label{display:grid;gap:7px;min-width:0;font-size:13px;font-weight:700}.search-fields input{width:100%;min-width:0;min-height:42px;border:1px solid #b9cbd7;border-radius:9px;padding:9px 11px;background:#fff;outline:none}.search-fields input:focus{border-color:#6da5cf;box-shadow:0 0 0 3px rgba(19,95,159,.10)}button:focus-visible,a:focus-visible{outline:3px solid #5b9dc7;outline-offset:3px}.reset-button{cursor:pointer;border:0;background:#eef4f8;color:#0b4e87;border-radius:8px;padding:8px 11px;font-weight:700;font-size:12px}.reset-button:hover{background:#dcecf7}.browser-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(360px,1.05fr);gap:14px;align-items:start}.browser-grid>.panel{min-height:480px}.preview-panel{position:sticky;top:92px}.panel-heading h2{margin:0}.counter{font-size:12px;background:#eff4f7;color:#48667b;border-radius:99px;padding:7px 9px;font-weight:700;white-space:nowrap}.subtle{color:var(--muted)}.small{font-size:12px}.documents-panel>.small{margin:10px 0 6px}.document-list{display:grid;gap:0;max-height:590px;overflow-y:auto;scrollbar-color:#c9d6df transparent}.document-card{width:100%;border:0;border-bottom:1px solid #e7edf1;background:transparent;padding:14px 10px 15px;text-align:left;cursor:pointer;display:flex;align-items:flex-start;gap:10px;border-radius:0;color:inherit}.document-card:hover{background:#f4f9fc}.document-card.selected{background:#edf6fc;box-shadow:inset 3px 0 0 #135f9f}.pdf-mark{flex:0 0 34px;height:38px;border-radius:8px;display:grid;place-items:center;background:#e8eff5;color:#155782;font-size:11px;font-weight:900}.document-info{min-width:0;flex:1}.document-title{font-weight:750;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.document-desc{margin-top:6px;color:#516d80;font-size:12px;line-height:1.45}.document-pills{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.pill{font-size:11px;background:#eff3f6;color:#556d7c;border-radius:99px;padding:3px 7px}.empty{padding:36px 14px;color:var(--muted);text-align:center}.hidden{display:none!important}.muted-tag{color:var(--muted);font-size:11px;font-weight:650;text-align:right}.preview-meta{font-size:12px;color:#567083;line-height:1.5;margin:12px 0;overflow-wrap:anywhere;min-height:37px}.preview-frame{width:100%;height:520px;min-height:300px;background:#f2f5f7;border:1px solid #dae4eb;border-radius:10px;overflow:hidden}.preview-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#728799;text-align:center;padding:20px}.preview-icon{font-size:48px;line-height:1;color:#8fa7b8}.preview-placeholder strong{font-size:15px;color:#3d6079}.preview-placeholder span{font-size:13px}.pdf-iframe{border:0;width:100%;height:100%;background:#fff;display:block}.preview-footer{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.open-link{display:inline-flex;align-items:center;text-decoration:none;font-weight:750;color:#fff;background:var(--blue);border-radius:9px;padding:11px 14px;font-size:13px}.open-link:hover{background:var(--blue2)}.preview-footer span{max-width:300px;text-align:right}.footer{text-align:center;color:#708192;font-size:11px;padding:25px 0 8px;line-height:1.5}@media(max-width:960px){.search-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.browser-grid{grid-template-columns:1fr}.preview-panel{position:static}.browser-grid>.panel{min-height:auto}.document-list{max-height:360px}.preview-frame{height:470px}}@media(max-width:570px){.shell{padding:13px}.topbar{padding:13px 16px;align-items:flex-start;flex-wrap:wrap}.archive-header{flex-direction:column;align-items:flex-start}.archive-header h1{font-size:22px}.search-fields{grid-template-columns:1fr}.panel{padding:17px}.preview-frame{height:400px}.header-tag{white-space:normal}.section-title-row{align-items:flex-start;flex-wrap:wrap}.preview-footer{align-items:flex-start}.preview-footer span{text-align:left}}

/* v0.2.0 – cloud link one-time test, no persistence */
.onedrive-test-panel{background:#fff;border:1px solid var(--line);border-radius:12px;margin:0 0 16px;box-shadow:0 4px 18px rgba(30,61,86,.04);font-size:13px}
.onedrive-test-panel summary{cursor:pointer;padding:14px 18px;font-weight:750;color:#19577c;list-style-position:inside}
.onedrive-test-panel[open] summary{border-bottom:1px solid var(--line)}
.onedrive-test-content{padding:12px 18px 16px}.onedrive-test-content>p{margin:0 0 12px;line-height:1.55}
.onedrive-test-content label{font-weight:700;display:block;margin-bottom:7px}
.onedrive-test-controls{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.onedrive-test-controls input{flex:1 1 320px;min-width:0;border:1px solid #b9cbd7;border-radius:8px;padding:10px;font:inherit}
.onedrive-test-controls button{min-height:42px}
.onedrive-test-controls input:focus{outline:2px solid #6da5cf;outline-offset:1px}
.primary-test{background:#135f9f;color:#fff}.primary-test:hover{background:#0b4e87}
.onedrive-test-content #onedriveTestSafety{margin-top:10px;color:#805b00}
.onedrive-status{padding:9px 11px;border-radius:8px;background:#eef4f8;color:#31566f;margin-bottom:0!important}
@media(max-width:570px){.onedrive-test-controls{flex-direction:column}.onedrive-test-controls input{flex:0 0 auto;width:100%}}

/* Ensure native hidden state wins over display:flex in .preview-footer. */
[hidden]{display:none!important}

#msStatus { overflow-wrap: anywhere; } #microsoftGraphPanel code { font-size: .92em; overflow-wrap: anywhere; }
