.mhr-shell{--r-bg:#081a2e;--r-text:#eef4fd;--r-muted:#99adc6;--r-line:#223850;--r-blue:#72b8ff;color:var(--r-text);max-width:1250px;margin:0 auto;padding:22px 20px 70px;font-family:Inter,system-ui,sans-serif}.mhr-shell *{box-sizing:border-box}.mhr-topline,.mhr-actions,.mhr-result-meta,.mhr-results-header{display:flex;align-items:center;gap:18px}.mhr-topline{justify-content:space-between;margin-bottom:52px}.mhr-browse .mhr-topline{margin-bottom:24px}.mhr-eyebrow{font-size:10px!important;letter-spacing:.15em;font-weight:700;color:var(--r-blue,#72b8ff);text-decoration:none}.mhr-actions{flex-wrap:wrap;font-size:13px}.mhr-shell h1{font-family:Georgia,serif;font-size:clamp(34px,4vw,60px);font-weight:400;line-height:1.1;letter-spacing:-.03em;margin:14px 0 20px}.mhr-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:20px}.mhr-hero h1{margin:0 0 12px}.mhr-hero .mhr-lead{margin:0}.mhr-hero h1 span{color:#ff626b}.mhr-lead{color:var(--r-muted);font-size:17px;line-height:1.7;max-width:780px}.mhr-library-count{border-left:1px solid var(--r-line);padding-left:35px;min-width:160px;display:grid}.mhr-library-count strong{font-size:42px;font-weight:400}.mhr-library-count span{font-size:12px;color:var(--r-muted)}.mhr-button,.mhr-shell a.mhr-button{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:13px 22px;background:#327fda;border:1px solid #438fe9;border-radius:7px;color:white;text-decoration:none;font-size:13px;font-weight:650;cursor:pointer;white-space:nowrap}.mhr-button:hover{background:#256dc1}.mhr-button-small{padding:9px 14px}.mhr-button:disabled{opacity:.55;cursor:wait}.mhr-search-form{background:#0b1d32;border:1px solid var(--r-line);border-radius:10px;padding:6px 16px}.mhr-search-label{display:flex;align-items:center;gap:13px}.mhr-search-label>span{font-size:26px;line-height:1;color:var(--r-blue)}.mhr-shell input:not([type=checkbox]):not([type=file]),.mhr-shell select,.mhr-shell textarea{background:#071525;color:#eef4fd;border:1px solid #30465f;border-radius:5px;padding:11px 12px;font:inherit;max-width:100%}.mhr-shell .mhr-search-label input[type=search]{min-width:0;width:100%;padding:8px;line-height:1.5;border:0!important;background:transparent!important;font-size:16px!important}.mhr-shell input::placeholder{color:#9aabc0}.mhr-text-button{background:transparent;color:#83beff;border:0;cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:4px;padding:8px}.mhr-chips{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 32px}.mhr-chips a{padding:8px 12px;border:1px solid var(--r-line);border-radius:20px;color:var(--r-muted);font-size:12px;text-decoration:none}.mhr-chips a[aria-current=true],.mhr-chips a:hover{background:#143354;border-color:#467bb1;color:#c7e2ff}.mhr-results-header{justify-content:space-between;border-bottom:1px solid var(--r-line);padding-bottom:16px;font-size:12px}.mhr-results-header span{color:var(--r-muted)}.mhr-result{padding:26px 0 23px;border-bottom:1px solid var(--r-line)}.mhr-result-meta{font-size:11px;gap:15px;color:var(--r-muted);flex-wrap:wrap}.mhr-category{color:#9bcbff;text-transform:uppercase;font-size:10px;letter-spacing:.08em;font-weight:650}.mhr-result h2{font:400 25px/1.35 Georgia,serif;margin:10px 0}.mhr-result h2 a{display:flex;justify-content:space-between;gap:24px;color:#edf5ff;text-decoration:none}.mhr-result h2 a:hover{color:#87c3ff}.mhr-result h2 span{font-family:system-ui;font-size:20px;color:#6a91bc}.mhr-result>p{font-size:14px;line-height:1.7;color:var(--r-muted);max-width:950px;margin:8px 0 12px}.mhr-topics{display:flex;gap:16px;flex-wrap:wrap}.mhr-topics a{color:#92aac4;font-size:11px;text-decoration:none}.mhr-topics a:before{content:'#';color:#4e7399}.mhr-pagination{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.mhr-pagination>*{padding:8px 12px;border:1px solid var(--r-line);border-radius:5px}.mhr-pagination .current{background:#245e9b}.mhr-empty{padding:40px 0;color:var(--r-muted)}.mhr-empty h2{color:var(--r-text)}.mhr-upload{max-width:850px;display:grid;gap:18px;margin-top:28px}.mhr-drop{padding:35px;border:1px dashed #527ba9;border-radius:10px;background:#0b2038}.mhr-drop.is-dragging{border-color:#9bccff;background:#173e68}.mhr-drop h2{font:400 30px Georgia,serif;margin:14px 0}.mhr-drop p{color:#9fb2ca;font-size:14px}.mhr-drop input{margin-top:15px;max-width:100%;color:#b4c9e2}.mhr-upload>label{display:grid;gap:10px;font-size:13px}.mhr-check{display:flex!important;align-items:start;gap:10px!important;line-height:1.6}.mhr-check input{margin-top:5px;flex:none}.mhr-upload>.mhr-button{justify-self:start}.mhr-muted{color:var(--r-muted,#96aac3);font-size:13px;line-height:1.7}.mhr-import-item{padding:18px;border:1px solid #355575;border-radius:8px;margin-bottom:10px}.mhr-import-item a{color:#8ac5ff}.mhr-error{border-color:#d56a6a}.mhr-review-panel{border:1px solid #3a5879;background:#0c223a;padding:26px;border-radius:10px;margin-bottom:45px}.mhr-review-panel details{margin:15px 0;font-size:13px}.mhr-review-panel summary{cursor:pointer;color:#a8cfff}.mhr-review-panel li{margin:7px 0}.mhr-edit-form{display:grid;gap:16px;margin-top:20px}.mhr-edit-form>label{display:grid;gap:8px;font-size:13px}.mhr-edit-form textarea{width:100%;min-height:95px}.mhr-report-header{max-width:950px;margin:20px 0 36px}.mhr-report-header>.mhr-result-meta{margin-top:30px}.mhr-report-header h1{font-size:clamp(30px,3.6vw,48px);line-height:1.2}.mhr-reading-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:40px}.mhr-contents{font-size:12px}.mhr-contents details{position:sticky;top:24px;border-top:2px solid #468bcf;padding-top:14px}.mhr-contents summary{font-weight:700;cursor:pointer;margin-bottom:16px}.mhr-contents a{display:block;color:#9db1ca;text-decoration:none;margin:0 0 12px;line-height:1.5}.mhr-contents a:hover{color:#9dd1ff}.mhr-contents .mhr-level-3{padding-left:12px;font-size:11px}.mhr-prose{min-width:0;line-height:1.85;font-size:16px;overflow-wrap:anywhere;color:#d2deec}.mhr-prose p{margin:0 0 1.2em}.mhr-prose h2,.mhr-prose h3,.mhr-prose h4{color:#f1f6ff;line-height:1.4;scroll-margin-top:35px}.mhr-prose h2{font:400 29px/1.35 Georgia,serif;margin:36px 0 18px}.mhr-prose h3{font-size:20px;margin-top:28px}.mhr-prose h4{font-size:17px}.mhr-prose a{color:#86bdff;text-decoration:underline;text-underline-offset:3px}.mhr-prose img{display:inline-block;height:auto;max-width:100%;vertical-align:middle}.mhr-prose ul,.mhr-prose ol{padding-left:24px}.mhr-prose li{margin-bottom:10px}.mhr-table-scroll{overflow-x:auto;max-width:100%;margin:24px 0;border:1px solid #38516e;border-radius:7px;overscroll-behavior-inline:contain}.mhr-prose table{border-collapse:collapse;font-size:13px;line-height:1.6;min-width:600px;width:100%;color:#d9e5f3}.mhr-prose td,.mhr-prose th{border:1px solid #304963;padding:13px 15px;text-align:left;vertical-align:top;min-width:105px}.mhr-prose th{background:#183754;color:#fff}.mhr-prose tr:nth-child(even){background:#0d2137}.mhr-prose td p,.mhr-prose th p{margin:0 0 8px}.mhr-prose td p:last-child,.mhr-prose th p:last-child{margin:0}.mhr-diagram{font:13px/1.5 Consolas,'Liberation Mono',monospace!important;white-space:pre!important;overflow-x:auto;max-width:100%;color:#18304b!important;background:#edf4fc!important;border:1px solid #bacfe5;padding:20px;border-radius:7px;tab-size:4;overflow-wrap:normal}.mhr-related{margin-top:60px;border-top:1px solid var(--r-line);padding-top:20px}.mhr-shell :focus-visible{outline:2px solid #93ceff;outline-offset:4px}.mhr-admin{max-width:1100px}.mhr-admin .mhr-upload{background:#081a2e;color:#eef4fd;padding:25px;border-radius:10px}.mhr-admin .mhr-button{color:white}.mhr-admin .mhr-muted{color:#adbed3}
@media(max-width:1000px){.mhr-reading-layout{grid-template-columns:1fr}.mhr-contents details{position:static}.mhr-contents nav{max-height:230px;overflow-y:auto}.mhr-library-count{display:none}.mhr-topline{gap:20px;flex-wrap:wrap;margin-bottom:30px}.mhr-browse .mhr-topline{margin-bottom:20px}}
@media(max-width:600px){.mhr-shell{padding:15px 0 40px}.mhr-search-form{padding-inline:12px}.mhr-results-header span{display:none}.mhr-result h2{font-size:23px}.mhr-result-meta{gap:10px}.mhr-chips{gap:7px}.mhr-topline .mhr-actions{width:100%;justify-content:space-between}.mhr-drop{padding:20px}.mhr-review-panel{padding:18px}.mhr-prose{font-size:15px}.mhr-report-header h1{font-size:32px}.mhr-reading-layout{gap:24px}.mhr-edit-form .mhr-actions{align-items:stretch;flex-direction:column}}
/* Word exports often use transparent PNGs with black equation glyphs. */
.mhr-prose img{background:#f5f8fc;border-radius:2px}

/* Native, keyboard-accessible file picker styled to match the theme. */
.mhr-drop input[type=file]{display:block;width:100%;font:13px/1.5 Inter,system-ui,sans-serif;color:#b4c9e2}
.mhr-drop input[type=file]::file-selector-button{font:600 13px/1.5 Inter,system-ui,sans-serif;margin-right:14px;padding:10px 17px;border:1px solid #438fe9;border-radius:7px;background:#327fda;color:#fff;cursor:pointer;transition:background .15s,border-color .15s}
.mhr-drop input[type=file]::file-selector-button:hover{background:#256dc1;border-color:#72b8ff}
.mhr-drop input[type=file]:focus-visible{outline:2px solid #93ceff;outline-offset:5px}
.mhr-drop input[type=file]:disabled::file-selector-button{opacity:.55;cursor:wait}
.mhr-drop .mhr-upload-limit{color:#a8cfff;font-size:12px;margin:12px 0}

.mhr-search-form:focus-within{background:#142b45}
.mhr-search-label input:focus{outline:none;box-shadow:none}

.mhr-submission-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.mhr-submission-row h2{min-width:0;overflow-wrap:anywhere}
.mhr-submission-delete{flex-shrink:0;margin:0}
.mhr-submission-delete button{padding:8px 12px;background:transparent;border:1px solid #674252;border-radius:7px;color:#ffabb1;font:600 13px/1.4 Inter,system-ui,sans-serif;cursor:pointer}
.mhr-submission-delete button:hover,.mhr-submission-delete button:focus-visible{background:#352333;border-color:#d87f88}

/* The dialog reuses the Quick Notes confirmation card and buttons. */
.mhr-delete-dialog{max-width:calc(100% - 32px);overflow-wrap:anywhere}
.mhr-delete-dialog::backdrop{background:rgba(2,9,17,.72);backdrop-filter:blur(8px)}
