.reader-menu{position:relative}.reader-menu summary{list-style:none;font-size:14px;cursor:pointer;min-width:64px;padding:0 10px}.reader-menu summary::-webkit-details-marker{display:none}.reader-options{position:absolute;right:0;top:46px;z-index:55;min-width:220px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 150px);overflow:auto;padding:6px;background:var(--navy-900);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #0004;display:grid;gap:4px}.reader-options .btn{justify-content:flex-start;border:0;background:transparent}.reader-options .btn:hover{background:var(--navy-700)}.reader-slider{flex-basis:100%;width:min(850px,100%);max-width:1000px;display:flex;align-items:center;gap:12px;margin:auto;font-size:11px;color:var(--muted-on-dark)}.reader-slider label{flex:none}.reader-slider input{flex:1;min-width:30px;height:20px;accent-color:var(--accent-strong);cursor:pointer}.reader-slider output{min-width:70px;text-align:right;white-space:nowrap}.toolbar{row-gap:4px;padding-top:4px}.toc-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}.toc-go{display:flex;justify-content:space-between;align-items:baseline;gap:16px;width:100%;padding:12px 10px;border:1px solid var(--line);border-radius:6px;background:var(--navy-800);color:var(--text-on-dark);font:inherit;font-size:13px;text-align:left;cursor:pointer}.toc-go:hover,.toc-go[aria-current]{background:var(--accent-soft);border-color:var(--accent-strong)}.toc-page{color:var(--muted-on-dark);flex:none}.tabs{min-width:0}.tab{padding-left:8px;padding-right:8px;font-size:12px;white-space:nowrap}.text-reader{position:absolute;inset:0;background:#f4f6f7;color:#172b39;z-index:8;display:flex;flex-direction:column;min-height:0;overflow:hidden}.text-reader-head{padding:12px 24px;border-bottom:1px solid #d4dedf;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;font-size:14px}.text-reader-head .btn{background:white;color:var(--accent);border-color:#b7d0ca}.text-reader-body{overflow:auto;padding:24px max(24px,calc((100% - 760px)/2));overscroll-behavior:contain;flex:1}.text-article{margin:0 0 32px}.text-article h2{font-size:13px;color:#5e747b;border-bottom:1px solid #d7e0e2;padding-bottom:12px}.text-article p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.95;user-select:text}.reader-dialog{position:fixed;max-height:85dvh;overflow:auto;background:#fff;color:#193440;border:1px solid #cad7d5;border-radius:12px;width:min(560px,92vw);padding:24px;box-shadow:0 16px 80px #0005}.reader-dialog::backdrop{background:#071322bb}.reader-dialog h2{font-size:20px;margin:0 65px 20px 0}.reader-dialog .dialog-close{position:absolute;right:16px;top:16px;min-height:32px;font-size:12px;background:white;color:#405e67;border-color:#cbd9d7}.help-list{font-size:14px;line-height:1.8}.help-list dt{font-weight:700;margin-top:16px;color:#16796f}.help-list dd{margin:4px 0 0}.print-form{display:grid;gap:10px}.print-form label{font-size:13px;font-weight:600}.print-form select,.print-form input{width:100%;padding:10px;border:1px solid #cbd9d7;border-radius:6px;font:inherit;background:white;color:#193440;min-height:42px}.print-form input:disabled{opacity:.5;background:#edf1ef}.print-note{font-size:12px;color:#617a81;margin:0;line-height:1.7}.print-status{font-size:13px;color:#ad4939;margin:4px 0;min-height:1.5em}.restore-controls{position:fixed;right:12px;top:12px;z-index:70;box-shadow:0 2px 12px #0003}.reader-clean{grid-template-rows:minmax(0,1fr)}.reader-clean>.topbar,.reader-clean>.toolbar{display:none}.print-area{display:none}@media(max-width:719px),(max-height:500px) and (orientation:landscape){.reader-slider{gap:7px;padding:0 5px}.reader-slider label{font-size:10px}.reader-slider output{font-size:10px;min-width:58px}.topbar-actions{gap:4px}.text-reader-head{padding:10px 14px}.text-reader-body{padding:14px 20px}.text-article p{font-size:16px}.reader-dialog{padding:20px}.reader-menu summary{min-width:64px;min-height:44px}.tabs .tab{font-size:11px;padding:0 6px}}@media print{@page{size:A4 portrait;margin:0}html,body{height:auto!important;overflow:visible!important;background:white!important;display:block!important}.topbar,.toolbar,.side-panel,.side-nav,.reader-menu,.restore-controls,.reader-dialog,.text-reader,.skip-link,.toast{display:none!important}.layout,.viewer,.stage,.sheet{position:static!important;display:block!important;width:auto!important;height:auto!important;overflow:visible!important;padding:0!important;margin:0!important}.sheet>.page{width:210mm!important;height:297mm!important;margin:0!important;padding:0!important;display:flex!important;align-items:center;justify-content:center;box-shadow:none!important;break-after:page;page-break-after:always}.sheet>.page:last-child{break-after:auto;page-break-after:auto}.sheet>.page>img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}.page-spinner,.ribbon,.sheet>.page::before,.sheet>.page::after{display:none!important}}
.text-reader-head .btn:hover:not(:disabled){background:#edf6f4;color:#126558}.reader-dialog .dialog-close:hover:not(:disabled){background:#edf6f4;color:#126558}

.notes-form{display:grid;gap:9px}.notes-form label{font-size:13px;font-weight:600}.notes-form select,.notes-form textarea{width:100%;padding:10px;border:1px solid #b7c8c7;border-radius:6px;background:white;color:#193440;font:inherit}.notes-form textarea{resize:vertical;min-height:100px}.notes-help{font-size:12px;line-height:1.7;color:#526b73;margin:8px 0}.notes-status{font-size:13px;min-height:1.5em;line-height:1.6;color:#9c3e2f}.notes-list{list-style:none;padding:0;display:grid;gap:12px}.note-item{padding:14px;border:1px solid #ccc;border-radius:6px;color:#193440}.note-yellow{background:#fff5bd}.note-red{background:#ffe0e0}.note-blue{background:#dfefff}.note-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.note-item .btn{background:white;color:#193440;border-color:#b7c8c7;margin-right:8px}.note-item .btn:hover{background:#edf3f2;color:#193440}#notesDialog h3{font-size:15px;margin-top:24px}

.mobile-notes{display:none}.reader-options .btn{min-height:44px}.topbar-actions .desktop-notes{max-width:130px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:719px),(max-height:500px) and (orientation:landscape){.topbar-actions>.desktop-notes{display:none}.reader-options .mobile-notes{display:flex}.reader-slider input{height:28px}.reader-dialog .dialog-close{min-height:44px;min-width:60px;top:10px;right:10px}.reader-dialog h2{margin-right:65px}.share-dialog .btn{min-height:44px}}

@media (min-width: 1100px) {
  .reader-slider {
    flex: 1 1 240px;
    width: auto;
    max-width: 420px;
    margin: 0;
  }
}
