/* 0.9.3 — Academic Master reading workspace. No theme-page selectors. */
#aml-reader{--ar-bg:#f2f0ea;--ar-chrome:#fff;--ar-text:#000;--ar-muted:#000;--ar-border:#dedfdc;--reader-top:142px;--reader-bottom:68px;color:var(--ar-text);font:14px/1.55 Arial,Helvetica,sans-serif}
#aml-reader[data-theme=sepia]{--ar-bg:#eee5d1;--ar-chrome:#fff8e9;--ar-text:#000;--ar-muted:#000;--ar-border:#dbcfb5}
#aml-reader[data-theme=night]{--ar-bg:#171c21;--ar-chrome:#252c32;--ar-text:#f7f3e9;--ar-muted:#f7f3e9;--ar-border:#485057}
#aml-reader .ar-top{position:relative;min-height:82px;padding:17px 26px 14px;gap:22px;border-top:0;background:var(--ar-chrome)}
#aml-reader .ar-top:before,#aml-reader #ar-sidebar:before,#aml-reader .as-dialog:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#bb922e 0 24%,#8bb5dc 24% 48%,#b09cd1 48% 76%,#8bb99b 76%)}
#aml-reader .ar-brand{display:flex;align-items:center;gap:11px;flex-shrink:0;color:var(--ar-text)}
#aml-reader .ar-brand svg{width:40px;height:40px;color:#a27c20}
#aml-reader .ar-brand>span{font:700 15px/1.1 Georgia,serif;letter-spacing:1.7px}
#aml-reader .ar-brand small{display:block;font:9px/1.5 Arial,sans-serif;letter-spacing:3px;margin-top:4px}
#aml-reader .ar-breadcrumb{display:flex;gap:11px;align-items:center;border:1px solid var(--ar-border);border-radius:24px;background:var(--ar-bg);padding:8px 14px;white-space:nowrap;font-size:12px}
#aml-reader .ar-back{color:var(--ar-text)!important}
#aml-reader .ar-breadcrumb a:hover{text-decoration:underline;text-underline-offset:4px}
#aml-reader .ar-title{flex:1;padding:0 12px}
#aml-reader .ar-title strong{font:700 18px/1.3 Georgia,serif;max-width:none;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden}
#aml-reader .ar-title small{font:12px/1.5 Arial,sans-serif;letter-spacing:0;margin-top:3px;display:block;max-height:18px;overflow:hidden;color:var(--ar-text)}
#aml-reader button,#aml-reader select{border-radius:9px;transition:background .2s,border-color .2s,box-shadow .2s;min-height:38px;font-size:13px;color:var(--ar-text)}
#aml-reader button:hover:not(:disabled){background:#fff0bf;border-color:#b58d2e;color:#000;box-shadow:0 3px 10px #8f6a1510}
#aml-reader #ar-focus{flex-shrink:0;border-color:#b99238;background:var(--ar-chrome);font-weight:600;padding:10px 15px}
#aml-reader .ar-tools{gap:12px;padding:10px 26px;justify-content:flex-start;min-height:59px;background:var(--ar-chrome);overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:thin}
#aml-reader .ar-tools button,#aml-reader .ar-tools label{flex-shrink:0}
#aml-reader .ar-tools button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;font-size:13px;white-space:nowrap;padding:8px 11px}
#aml-reader .ar-tools svg{width:19px;height:19px;color:#9c7924;flex-shrink:0}
#aml-reader .ar-tools #ar-menu{margin-right:auto}
#aml-reader .ar-zoom-group{display:flex;align-items:center;border:1px solid var(--ar-border);border-radius:9px;padding:0 2px}
#aml-reader .ar-zoom-group button{font-size:19px;width:29px;padding:3px;border:0}
#aml-reader .ar-zoom-group select{border:0;padding:6px 19px 6px 6px;min-height:35px;font-size:12px;max-width:115px}
#aml-reader .ar-appearance{display:flex;align-items:center;gap:4px}
#aml-reader .ar-appearance select{border:0;min-width:80px;font-size:13px;padding:7px}
#aml-reader #ar-bookmark[aria-pressed=true]{background:#fff0c5;color:#000;border-color:#d3b260}
#aml-reader .ar-workspace{padding-right:0;min-height:0}
#aml-reader.ar-study-open .ar-workspace{padding-right:320px}
#aml-reader #ar-sidebar{position:relative;width:270px;flex:0 0 270px;padding:23px 18px;background:var(--ar-chrome);border-right:1px solid var(--ar-border);overflow:auto;scrollbar-width:thin;box-shadow:none}
#aml-reader .ar-side-heading h2{font:700 23px/1.3 Georgia,serif!important;margin:0!important}
#aml-reader .ar-side-heading .ar-eyebrow{display:none}
#aml-reader #ar-close-side{padding:3px 8px;min-height:30px;border:0;background:none;font-size:21px}
#aml-reader .ar-tabs{gap:0;margin:18px 0 20px;padding:0;border-bottom:1px solid var(--ar-border)}
#aml-reader .ar-tabs button{font-size:12px;border-radius:0;min-width:0;background:none;padding:10px 4px}
#aml-reader .ar-tabs button[aria-selected=true]{box-shadow:inset 0 -3px #b28a2b;background:none}
#aml-reader .ar-outline-item{position:relative;border:1px solid transparent;background:none;padding:13px 11px!important;line-height:1.6;font-size:13px;text-align:left;margin:5px 0}
#aml-reader .ar-outline-item:before{content:'▤';margin-right:8px;color:#a27c20}
#aml-reader .ar-outline-item:hover,#aml-reader .ar-outline-item:focus-visible{border-color:#e2c882;background:#fff6de;color:#000}
#aml-reader #ar-outline>p,#aml-reader #ar-outline{font-size:13px;line-height:1.7}
#aml-reader .ar-resume-card{display:flex;align-items:flex-start;gap:12px;margin-top:40px;padding:16px 13px;border:1px solid #bdcfbd;border-radius:11px;background:#f2f7ef;color:#000}
#aml-reader .ar-resume-card svg{width:23px;height:23px;flex-shrink:0;color:#53754e}
#aml-reader .ar-resume-card strong{font:700 15px/1.3 Georgia,serif}
#aml-reader .ar-resume-card p{font:12px/1.6 Arial,sans-serif;margin:6px 0 0}
#aml-reader .ar-note{color:var(--ar-text)!important;font-size:12px}
#aml-reader #ar-page-list{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
#aml-reader #ar-page-list button{padding:7px 2px}
#aml-reader #ar-page-list [aria-current=page]{background:#ffe7a0;border-color:#c19c3e;color:#000}
#aml-reader #ar-more-pages{margin-top:14px;width:100%}
#aml-reader #ar-status{padding:12px 28px 8px;text-align:left;text-transform:uppercase;letter-spacing:1.3px;font-size:10px;color:var(--ar-text);background:var(--ar-bg)}
#aml-reader #ar-scroll{padding:14px 0 0;scrollbar-width:thin;scrollbar-color:#bda76e transparent}
#aml-reader .ar-page{box-shadow:0 6px 25px #392d1b12,0 0 0 1px #392d1b07;border-radius:1px;margin-bottom:30px}
#aml-reader .ar-bottom{min-height:66px;padding:12px 26px;border-top:1px solid #b58c2b;gap:18px;background:var(--ar-chrome);box-shadow:0 -4px 20px #142c3f06}
#aml-reader #ar-page-form{order:0;flex-shrink:0;margin-right:auto;font-size:13px}
#aml-reader #ar-prev{order:1;min-width:106px;border-radius:25px}
#aml-reader #ar-next{order:3;min-width:106px;border-radius:25px}
#aml-reader #ar-percent{order:4;min-width:45px;text-align:right;font-size:12px;margin-left:auto;color:var(--ar-text)}
#aml-reader #ar-shortcuts{order:5;border:0;background:none;font-size:23px;padding:3px 8px}
#aml-reader .ar-progress{height:2px;top:0;bottom:auto;opacity:.25;pointer-events:none}
#aml-reader .as-dialog{position:absolute;inset:var(--reader-top) 0 var(--reader-bottom) auto;width:320px;height:auto;max-width:none;max-height:none;margin:0;padding:24px 19px;border:0;border-left:1px solid var(--ar-border);border-radius:0;box-shadow:none;background:var(--ar-chrome);color:var(--ar-text);font:13px/1.6 Arial,sans-serif;overflow:auto;scrollbar-width:thin;z-index:20}
#aml-reader .as-dialog header{position:absolute;right:12px;top:13px;z-index:1}
#aml-reader .as-dialog header .as-eyebrow{display:none}
#aml-reader .as-dialog header button{font-size:12px;border:0;padding:4px 7px;margin:0}
#aml-reader .as-dialog h2{font:700 23px/1.3 Georgia,serif;color:var(--ar-text);margin:0 35px 17px 0}
#aml-reader .as-dialog .as-message{font:11px/1.6 Arial,sans-serif;color:var(--ar-text);margin:10px 0 15px;padding:9px 0;border-bottom:1px solid var(--ar-border)}
#aml-reader .as-nav{gap:5px;overflow:visible;align-items:center;padding:0 0 10px}
#aml-reader .as-dialog button{font:12px/1.5 Arial,sans-serif;color:var(--ar-text);background:var(--ar-chrome);padding:7px 9px;border-color:var(--ar-border);margin:3px 0}
#aml-reader #as-dialog button:hover:not(:disabled),#aml-reader #as-dialog .as-nav button[aria-current=true]{background:#fff1ca;color:#000;border-color:#bd9a42}
#aml-reader .as-nav select{font-size:11px;width:94px;min-width:0;margin-left:auto;padding:7px 3px;border:0;background:none}
#aml-reader .as-body{padding:0;color:var(--ar-text)}
#aml-reader .as-body label{font:600 12px/1.5 Arial,sans-serif;color:var(--ar-text);margin:12px 0}
#aml-reader .as-body input,#aml-reader .as-body textarea,#aml-reader .as-body select{font:13px/1.6 Arial,sans-serif;background:var(--ar-chrome);color:var(--ar-text);padding:9px}
#aml-reader .as-card{border:1px solid #d8bb71;border-top:3px solid #c7a14c;border-radius:12px;background:linear-gradient(135deg,#fffaf0,#fffdf8);color:#000;padding:15px;margin-top:15px}
#aml-reader .as-card blockquote{font:16px/1.7 Georgia,serif;margin:9px 0 14px;color:#000}
#aml-reader .as-card p{font-size:13px;border-top:1px solid #eadbb8;padding-top:12px;color:#000}
#aml-reader .as-card small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px}
#aml-reader .as-card button{background:#fffaf0;color:#000;border-color:#e7d7b4}
#aml-reader .as-empty{background:var(--ar-bg);border:1px dashed #cfba81;padding:20px 14px;font:15px/1.7 Georgia,serif;color:var(--ar-text)}
#aml-reader #as-dialog details{border:1px solid var(--ar-border);border-radius:9px;padding:10px 12px;margin:10px 0}
#aml-reader #as-dialog summary{font-size:12px;color:var(--ar-text)}
#aml-reader #as-dialog .as-compose{border-color:#c2a052;background:var(--ar-chrome)}
#aml-reader #as-dialog .as-compose summary{font-weight:700}
#aml-reader .as-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
#aml-reader .as-text-view{padding:12px;font-size:18px;color:#000}
#aml-reader .as-selection{border-radius:12px;border-color:#c0a050;bottom:calc(var(--reader-bottom) + 12px);box-shadow:0 6px 20px #142c3f22}
#aml-reader .as-selection button{color:#000;background:#fffaf0;font-size:11px;min-height:32px}
#aml-reader .ae-pages{color:var(--ar-text);background:var(--ar-chrome);max-width:760px;margin:0 auto 28px;padding:55px 65px;line-height:inherit}
#aml-reader .ae-pages p{font-family:inherit;font-size:inherit;line-height:inherit}
#aml-reader .ae-pages h1,#aml-reader .ae-pages h2{font-family:Georgia,serif;text-transform:none;letter-spacing:-.5px;font-size:1.6em}
#aml-reader.ar-focus #ar-sidebar,#aml-reader.ar-focus .ar-tools,#aml-reader.ar-focus .ar-brand,#aml-reader.ar-focus .ar-breadcrumb{display:none!important}
#aml-reader.ar-focus .ar-top{min-height:55px;padding:10px 24px}
#aml-reader.ar-focus .ar-title small{display:none}
#aml-reader.ar-focus .ar-workspace{padding-right:0}
#ar-shortcut-dialog{background:#fffdf7;border:1px solid #bc9b45;border-radius:14px;color:#000;padding:25px;max-width:calc(100vw - 32px);font:14px/1.7 Arial,sans-serif}
#ar-shortcut-dialog::backdrop{background:#142c3f66}
#ar-shortcut-dialog button{padding:8px 18px;border:1px solid #caa542;background:#ffe9a7;border-radius:8px;cursor:pointer}
@media(max-width:1250px){#aml-reader .ar-brand>span{font-size:12px}#aml-reader .ar-brand svg{width:30px}#aml-reader .ar-top{gap:14px;padding:15px 18px}#aml-reader .ar-breadcrumb{font-size:11px;padding:7px 10px}#aml-reader .ar-title strong{font-size:16px}#aml-reader .ar-tools{padding:9px 14px;gap:7px}#aml-reader #ar-sidebar{width:235px;flex-basis:235px;padding:22px 15px}#aml-reader.ar-study-open .ar-workspace{padding-right:290px}#aml-reader .as-dialog{width:290px;padding:22px 16px}#aml-reader .ar-bottom{gap:12px}}
@media(max-width:1099px){#aml-reader .ar-brand>span{display:none}#aml-reader .ar-tools #ar-menu{margin-right:0}#aml-reader .ar-tools{justify-content:center}#aml-reader #ar-sidebar{position:absolute;inset:0 auto 0 0;width:min(320px,90vw);z-index:21;box-shadow:15px 0 40px #162d3c20}#aml-reader.ar-study-open .ar-workspace{padding-right:0}#aml-reader .as-dialog{width:min(350px,92vw);box-shadow:-15px 0 40px #162d3c20}#aml-reader .ar-title strong{font-size:16px}#aml-reader .ar-breadcrumb{gap:7px}#aml-reader .ae-pages{margin-left:22px;margin-right:22px}}
@media(max-width:760px){#aml-reader .ar-top{min-height:72px;padding:12px;gap:9px}#aml-reader .ar-brand{display:none}#aml-reader .ar-breadcrumb{font-size:10px;padding:6px 8px;gap:6px}#aml-reader .ar-breadcrumb .ar-back{display:none}#aml-reader .ar-breadcrumb>span{display:none}#aml-reader .ar-title{padding:0 3px;text-align:left}#aml-reader .ar-title strong{font-size:13px;max-width:none;-webkit-line-clamp:2}#aml-reader .ar-title small{font-size:10px}#aml-reader #ar-focus{font-size:11px;min-height:34px;padding:6px 8px}#aml-reader .ar-tools{justify-content:flex-start;padding:7px 9px;gap:5px;min-height:53px}#aml-reader .ar-tools button{font-size:12px;padding:7px 9px}#aml-reader .ar-tools #ar-menu span,#aml-reader .ar-tools #ar-find span{display:inline}#aml-reader #ar-find{font-size:12px!important}#aml-reader .ar-tools select{font-size:12px}#aml-reader .ar-tools #ar-fullscreen{font-size:11px}#aml-reader .ar-bottom{flex-wrap:wrap;padding:7px 12px 11px;gap:6px 12px;min-height:82px}#aml-reader #ar-page-form{font-size:11px;gap:5px}#aml-reader #ar-page-input{width:44px;min-height:32px}#aml-reader #ar-prev,#aml-reader #ar-next{min-width:36px;min-height:34px;padding:6px 10px}#aml-reader .ar-scrub-label{order:6;flex:1 0 100%;height:18px;max-width:none}#aml-reader #ar-scrubber{min-height:18px;height:18px}#aml-reader #ar-percent{font-size:10px;min-width:30px;margin-left:0}#aml-reader #ar-shortcuts{font-size:20px;padding:0 3px;min-height:30px}#aml-reader .ae-pages{padding:25px 22px;margin:0 12px 20px}#aml-reader #ar-status{font-size:9px;padding:9px 14px 3px}#aml-reader .as-dialog{padding-top:22px}#aml-reader .as-selection{gap:2px;padding:6px;width:calc(100vw - 20px)}#aml-reader .as-selection button{font-size:10px;padding:5px;margin:1px}#aml-reader.ar-focus .ar-top{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){#aml-reader *,#aml-reader *:before,#aml-reader *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#aml-reader #ar-focus{display:inline-flex;align-items:center;gap:7px}
#aml-reader #ar-focus svg{width:18px;height:18px;flex-shrink:0}
#aml-reader .ar-side-heading h2{font-size:21px!important}
#aml-reader .ar-tabs button{font-size:11px;padding-left:2px;padding-right:2px}
#aml-reader #ar-tab-contents{order:0}#aml-reader #ar-tab-pages{order:1}#aml-reader #ar-tab-saved{order:2}#aml-reader #ar-tab-search{order:3}
#aml-reader .ar-side-heading h2{font-size:20px!important;white-space:nowrap}
#aml-reader .ar-side-heading{gap:6px}
#aml-reader #ar-close-side{flex-shrink:0;padding:3px 5px}/* 0.9.4: a quieter, more polished reading room. */
body.aml-reader-body iframe[src*="tawk.to"],body.aml-reader-body iframe[title*="chat widget" i],body.aml-reader-body [id^="tawk"],body.aml-reader-body [class*="tawk-"]{display:none!important;visibility:hidden!important;pointer-events:none!important}
#aml-reader .ar-brand img{display:block;width:156px;height:auto;max-width:none;background:#fff;border-radius:7px}
#aml-reader .ar-top{box-shadow:0 3px 16px #372a1110;z-index:3}
#aml-reader .ar-breadcrumb{background:linear-gradient(120deg,#fffaf0,#f1f6fa);border-color:#dbc99e;color:#000;box-shadow:inset 0 1px #fff}
#aml-reader .ar-breadcrumb a{color:#000}
#aml-reader .ar-tools{border-bottom:1px solid var(--ar-border)}
#aml-reader button{transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}
#aml-reader button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #9c792421}
#aml-reader button:active:not(:disabled){transform:translateY(0) scale(.97)}
#aml-reader button:focus-visible,#aml-reader a:focus-visible{outline:2px solid #b39035;outline-offset:3px}
#aml-reader #ar-scroll{background:radial-gradient(ellipse at top,#d5bd8420,transparent 65%),var(--ar-bg)}
#aml-reader .ar-page{box-shadow:0 12px 35px #392d1b16,0 0 0 1px #392d1b08}
#aml-reader .ar-resume-card{border-top:3px solid #93b59a;box-shadow:0 5px 16px #53754e0a;margin-top:25px}
#aml-reader #ar-page-form{border:1px solid var(--ar-border);border-radius:25px;padding:4px 12px;background:var(--ar-bg)}
#aml-reader .ar-bottom{min-height:62px;padding:8px 22px;gap:12px}
#aml-reader #ar-prev,#aml-reader #ar-next{background:var(--ar-chrome);border-color:#d8c797}
#aml-reader #ar-percent{margin-left:8px}
#aml-reader .ar-progress{display:none}
#aml-reader .ar-focus-controls{display:none}
#aml-reader.ar-focus{position:fixed;inset:0;width:100%;height:100dvh;z-index:2147483647}
#aml-reader.ar-focus .ar-top,#aml-reader.ar-focus .ar-bottom,#aml-reader.ar-focus #ar-status,#aml-reader.ar-focus .as-selection,#aml-reader.ar-focus .as-dialog{display:none!important}
#aml-reader.ar-focus .ar-workspace{flex:1;min-height:0}
#aml-reader.ar-focus .ar-focus-controls{display:flex;position:absolute;right:18px;top:14px;z-index:30;gap:4px;padding:5px;border:1px solid #c8ad68;border-radius:30px;background:var(--ar-chrome);box-shadow:0 4px 20px #00000012;opacity:.22;transition:opacity .2s}
#aml-reader.ar-focus .ar-focus-controls:hover,#aml-reader.ar-focus .ar-focus-controls:focus-within{opacity:1}
#aml-reader .ar-focus-controls button{border:0;border-radius:24px;background:transparent;min-height:34px}
#aml-reader.ar-focus #ar-scroll{padding-top:24px}
@media(max-width:760px){#aml-reader .ar-brand{display:flex}#aml-reader .ar-brand img{width:94px}#aml-reader .ar-breadcrumb{display:none}#aml-reader .ar-bottom{min-height:60px;padding:7px 8px;gap:5px;flex-wrap:nowrap}#aml-reader #ar-page-form{padding:3px 6px}#aml-reader #ar-percent{margin-left:0}#aml-reader #ar-shortcuts{display:none}#aml-reader #ar-prev span,#aml-reader #ar-next span{display:none}#aml-reader .ar-title small{display:none}#aml-reader.ar-focus .ar-focus-controls{right:8px;top:8px}}
@media(hover:none){#aml-reader.ar-focus .ar-focus-controls{opacity:.8}}
@media(prefers-reduced-motion:no-preference){#aml-reader .ar-resume-card{animation:ar-room-enter .45s ease-out both}@keyframes ar-room-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
/* 0.9.5: readable contents, adjustable desk and compact navigation. */
#aml-reader .ar-top{align-items:center;min-height:76px;padding-top:10px;padding-bottom:10px}
#aml-reader .ar-brand,#aml-reader .ar-breadcrumb{align-self:center;margin-top:0;margin-bottom:0}
#aml-reader .ar-brand img{width:144px;height:56px;object-fit:contain}
#aml-reader .ar-appearance{border:1px solid transparent;border-radius:9px;padding:0 5px;transition:background .2s,border-color .2s,box-shadow .2s}
#aml-reader .ar-appearance:hover,#aml-reader .ar-appearance:focus-within{background:#fff0bf;border-color:#b58d2e;box-shadow:0 3px 10px #8f6a1518;color:#000}
#aml-reader .ar-appearance select{background:transparent;cursor:pointer;color:inherit}
#aml-reader #ar-sidebar{width:var(--contents-width,300px);flex-basis:var(--contents-width,300px);padding:18px 14px;overflow-x:hidden}
#aml-reader #ar-widen-side{display:block;font-size:11px;min-height:30px;padding:4px 10px;margin-top:12px;width:100%;border-style:dashed;border-color:#c4ad72;background:var(--ar-bg)}
#aml-reader .ar-tabs{margin:10px 0 14px}
#aml-reader #ar-outline{display:block;width:100%;min-width:0}
#aml-reader #ar-outline .ar-outline-item{display:block;width:100%;max-width:100%;min-height:36px;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-overflow:clip;text-align:left;font-size:12px;line-height:1.55;margin:2px 0;padding:9px 10px!important;border-radius:7px;transform:none}
#aml-reader .ar-outline-item:before{display:none}
#aml-reader .ar-outline-item[aria-current=location]{background:#fff0bf;border-color:#bd9a42;color:#000;box-shadow:inset 3px 0 #b58d2e}
#aml-reader .ar-outline-group{margin:5px 0;border-bottom:1px solid var(--ar-border);padding-bottom:5px}
#aml-reader .ar-outline-group>summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.5;padding:10px 6px;white-space:normal;overflow-wrap:anywhere;border-radius:7px;color:var(--ar-text)}
#aml-reader .ar-outline-group>summary:hover{background:#fff0bf;color:#000}
#aml-reader .ar-outline-group>summary:focus-visible{outline:2px solid #b39035;outline-offset:1px}
#aml-reader .ar-outline-children{margin-left:8px;padding-left:8px;border-left:1px solid #d8c797}
#aml-reader #ar-side-resizer{width:7px;flex:0 0 7px;cursor:col-resize;touch-action:none;background:var(--ar-chrome);border-right:1px solid var(--ar-border);position:relative}
#aml-reader #ar-side-resizer:after{content:'';position:absolute;top:45%;left:1px;width:3px;height:38px;border-radius:4px;background:#c6b47e}
#aml-reader #ar-side-resizer:hover,#aml-reader #ar-side-resizer:focus-visible{background:#fff0bf;outline:2px solid #b39035;outline-offset:-2px}
#aml-reader.ar-resizing{user-select:none;cursor:col-resize}
#aml-reader.ar-focus #ar-side-resizer{display:none!important}
#aml-reader .ar-bottom{min-height:46px;height:46px;flex:0 0 46px;padding:4px 18px;gap:10px;box-shadow:0 -2px 8px #142c3f05}
#aml-reader #ar-page-form{padding:0 8px;border-radius:8px;font-size:12px;gap:6px;min-height:32px}
#aml-reader #ar-page-input{width:52px;min-height:28px;height:28px;padding:2px 6px;border-radius:5px}
#aml-reader #ar-prev,#aml-reader #ar-next{min-height:32px;height:32px;min-width:88px;padding:4px 12px;font-size:12px}
#aml-reader #ar-shortcuts{min-height:30px;height:30px;font-size:19px;padding:0 5px}
#aml-reader #ar-percent{font-size:11px}
@media(max-width:1099px){#aml-reader #ar-sidebar{width:min(var(--contents-width,300px),92vw);flex-basis:auto}#aml-reader #ar-side-resizer{display:none}}
@media(max-width:760px){#aml-reader .ar-brand img{width:94px;height:38px}#aml-reader .ar-top{min-height:62px;padding:8px 10px}#aml-reader .ar-bottom{height:48px;min-height:48px;flex-basis:48px;padding:3px 8px;gap:5px}#aml-reader #ar-prev,#aml-reader #ar-next{min-width:34px;padding:4px 8px}#aml-reader #ar-page-form{font-size:11px;padding:0 5px}#aml-reader #ar-page-input{width:43px}#aml-reader #ar-percent{min-width:26px}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){#aml-reader .ar-page{transition:box-shadow .25s}#aml-reader .ar-page:hover{box-shadow:0 14px 38px #392d1b20,0 0 0 1px #c4a14c45}}
/* 0.9.6: student learning tools. */
#aml-reader #ar-return{order:-1;min-height:30px;height:30px;width:30px;padding:0;border-radius:50%;border-color:#c6ab61;background:#fff4d2;color:#000;font-size:20px;flex-shrink:0}
#aml-reader .al-storage{font-size:11px;border-left:3px solid #a9b9d4;padding:8px;background:var(--ar-bg)}
#aml-reader .al-editor{border:1px solid #c9b271;border-top:3px solid #c9b271;border-radius:9px;padding:12px;margin:14px 0;background:var(--ar-bg)}
#aml-reader .al-editor textarea{min-height:85px;resize:vertical}
#aml-reader .al-flashcard h4{font:600 17px/1.5 Georgia,serif;color:#000;overflow-wrap:anywhere;margin:10px 0}
#aml-reader .al-flashcard .al-answer{white-space:pre-wrap;border-top:1px solid #d3bb7c;overflow-wrap:anywhere;padding-top:12px}
#aml-reader .al-actions{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
#aml-reader .al-count{font-weight:600;padding:8px 0}
#aml-reader .as-body progress{width:100%;height:9px;accent-color:#ac8830}
#aml-reader .as-body input[type=checkbox]{width:18px;height:18px;min-height:18px;display:inline-block;vertical-align:middle;accent-color:#ac8830;margin-right:5px}
#aml-reader .as-body input[type=range]{width:100%;accent-color:#ac8830}
#aml-reader .al-ruler{position:absolute;inset:0;overflow:hidden;z-index:6;pointer-events:none}
#aml-reader .al-ruler>div{position:absolute;left:0;right:0;transform:translateY(-50%);border-top:1px solid #bd9a4270;border-bottom:1px solid #bd9a4270;box-shadow:0 0 0 10000px #17212b47;pointer-events:none}
#aml-reader .as-body select{max-width:100%}
@media(max-width:760px){#aml-reader #ar-return{width:27px;min-width:27px;font-size:18px}#aml-reader .ar-bottom{gap:4px}}
/* 0.9.7: centered page navigation with balanced side controls. */
#aml-reader .ar-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
#aml-reader .ar-page-navigation{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0}
#aml-reader .ar-bottom-start{display:flex;justify-content:flex-start;min-width:0}
#aml-reader .ar-bottom-end{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
#aml-reader #ar-prev{order:0}#aml-reader #ar-page-form{order:1;margin:0}#aml-reader #ar-next{order:2}
#aml-reader #ar-return{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:32px;height:32px;padding:4px 10px;border-radius:8px;border:1px solid #d4c6a1;background:var(--ar-chrome);color:var(--ar-text);font:12px Arial,sans-serif;box-shadow:none}
#aml-reader #ar-return svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#aml-reader #ar-return:hover{background:#fff0bf;color:#000;border-color:#b58d2e}
#aml-reader #ar-percent{margin:0;min-width:30px}
@media(max-width:760px){#aml-reader .ar-bottom{gap:5px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}#aml-reader .ar-page-navigation{gap:5px}#aml-reader #ar-return{width:30px;min-width:30px;padding:4px}#aml-reader #ar-return span{display:none}#aml-reader .ar-bottom-end{gap:0}#aml-reader #ar-page-form{gap:4px}#aml-reader #ar-percent{min-width:24px;font-size:10px}}
/* 0.9.8: a calmer, clearer study panel. */
#aml-reader .as-dialog{background:linear-gradient(180deg,#fffcf4 0, var(--ar-chrome) 155px);padding-top:25px}
#aml-reader .as-dialog h2{font-size:22px;margin:0 0 16px;padding-right:46px;line-height:1.25;letter-spacing:-.4px}
#aml-reader .as-dialog header{right:12px;top:19px}
#aml-reader .as-dialog header button{border:1px solid var(--ar-border);border-radius:8px;min-height:28px;background:var(--ar-chrome);font-size:11px}
#aml-reader .as-dialog .as-message{padding:10px 12px;border:1px solid #cddccd;border-left:3px solid #96b699;border-radius:8px;background:#f3f8f2;color:#000;font-size:11px;margin:0 0 17px;line-height:1.6}
#aml-reader .as-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px;border:0;margin:0 0 15px;padding:0}
#aml-reader #as-dialog .as-nav>button{width:100%;padding:9px 10px;min-height:38px;background:var(--ar-bg);border:1px solid var(--ar-border);border-radius:9px;font-weight:600;margin:0}
#aml-reader #as-dialog .as-nav>button[aria-current=true]{background:#fff0c1;border-color:#c1a050;box-shadow:inset 0 -2px #c4a149}
#aml-reader #as-dialog .as-tools-menu{grid-column:1/-1;border:1px solid #c8b683;border-radius:10px;padding:0;margin:3px 0 0;background:var(--ar-chrome);overflow:hidden}
#aml-reader #as-dialog .as-tools-menu>summary{display:flex;align-items:center;gap:9px;padding:11px 12px;list-style:none;cursor:pointer;font:600 12px Arial,sans-serif;background:linear-gradient(110deg,#fff5db,#f0f5fb);color:#000}
#aml-reader #as-dialog .as-tools-menu>summary::-webkit-details-marker{display:none}
#aml-reader #as-dialog .as-tools-menu>summary:after{content:'⌄';margin-left:auto;font-size:17px;transition:transform .2s}
#aml-reader #as-dialog .as-tools-menu[open]>summary:after{transform:rotate(180deg)}
#aml-reader #as-dialog .as-tools-menu>summary:hover{background:#ffeeb8}
#aml-reader #as-dialog .as-tools-menu>summary:focus-visible{outline:2px solid #ac842c;outline-offset:-3px}
#aml-reader .as-tools-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#aml-reader .as-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px;max-height:360px;overflow:auto;scrollbar-width:thin}
#aml-reader #as-dialog .as-tools-grid button{display:flex;align-items:flex-start;flex-direction:column;text-align:left;gap:5px;white-space:normal;min-width:0;margin:0;padding:10px 8px;border:1px solid #e3ddcb;border-radius:8px;background:#fffdf8;color:#000;line-height:1.35}
#aml-reader .as-tool-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#f8eac4;color:#70591b}
#aml-reader .as-tools-grid button:nth-child(3n+2) .as-tool-icon{background:#e7eff9;color:#33546f}
#aml-reader .as-tools-grid button:nth-child(3n) .as-tool-icon{background:#ebe7f6;color:#615478}
#aml-reader .as-tools-grid strong{font-size:12px;color:#000}
#aml-reader .as-tools-grid small{font-size:10px;line-height:1.45;color:#000;font-weight:400}
#aml-reader #as-dialog .as-tools-grid button:hover,#aml-reader #as-dialog .as-tools-grid button[aria-current=true]{border-color:#b59037;background:#fff2ce}
#aml-reader #as-dialog .as-compose{border:1px solid #d1bd84;border-top:3px solid #bd9a40;background:var(--ar-chrome);border-radius:11px;padding:12px;box-shadow:0 4px 12px #62481508}
#aml-reader #as-dialog .as-compose summary{font-size:14px;font-weight:700;padding:2px 0 7px}
#aml-reader .as-body label{font-size:12px;display:block;margin:14px 0 8px;line-height:1.6}
#aml-reader .as-body input:not([type=checkbox]):not([type=range]),#aml-reader .as-body textarea{display:block;width:100%;margin-top:6px;border:1px solid #ccd2ce;border-radius:8px;padding:10px 11px;box-shadow:inset 0 1px 3px #18334e04;font-size:12px;transition:border-color .2s,box-shadow .2s}
#aml-reader .as-body textarea{min-height:105px;resize:vertical}
#aml-reader .as-body input:focus,#aml-reader .as-body textarea:focus{outline:none;border-color:#ba953e;box-shadow:0 0 0 3px #c9a5441a}
#aml-reader .as-body input::placeholder,#aml-reader .as-body textarea::placeholder{color:#000;opacity:.6}
#aml-reader #as-dialog .as-compose>button{width:100%;min-height:38px;border-color:#c2a24a;background:linear-gradient(110deg,#ffe9a0,#fff2cb);color:#000;font-weight:600;margin-top:10px}
#aml-reader #as-dialog .as-advanced{background:var(--ar-bg);border-color:var(--ar-border);padding:11px 12px}
#aml-reader #as-dialog .as-empty{border-radius:10px;font-size:14px;padding:20px 14px;line-height:1.7;background:linear-gradient(140deg,#fff9e9,#f2f6f8);color:#000}
#aml-reader[data-theme=night] .as-dialog{background:var(--ar-chrome)}
