.jw-tools-bar{display:none}
body.jw-navigation .sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain}
html:has(.jw-tools-dialog[open]),body:has(.jw-tools-dialog[open]){overflow:hidden;overscroll-behavior:none}
.jw-tools-dialog{box-sizing:border-box;position:fixed;inset:auto 0 0 auto;margin:0;color:#f2f4f6;background:#10212e;border:1px solid #536071;border-radius:12px 0 0 0;padding:0;width:min(420px,100%);max-width:100%;max-height:calc(100dvh - 12px);overflow:hidden;font-family:"DM Sans",sans-serif}
.jw-tools-dialog[open]{display:flex;flex-direction:column}
.jw-tools-dialog::backdrop{background:#0009}
.jw-tools-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #3a4d5e;flex-shrink:0}
.jw-tools-dialog h2{font-family:"Libre Caslon Display",serif;font-weight:400;font-size:28px;line-height:1.2;margin:0;min-width:0}
.jw-tools-dialog button,.jw-tools-dialog a,.jw-tools-bar button{box-sizing:border-box;font:inherit;min-height:44px;padding:10px 14px;border:1px solid #4b5c69;border-radius:4px;background:#142736;color:#e7be73;text-decoration:none;cursor:pointer}
.jw-tools-dialog button{flex-shrink:0;font-size:14px}
.jw-tools-list{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-height:0;padding:12px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.jw-tools-dialog a{display:flex;align-items:center;min-height:48px;line-height:1.4;overflow-wrap:anywhere}
.jw-tools-dialog a[aria-current="page"]{border-color:#d8aa55;background:#253b48;color:#fff}
.jw-tools-dialog :focus-visible,.jw-tools-bar :focus-visible{outline:2px solid #d8aa55;outline-offset:2px}
@media(max-width:860px),(orientation:landscape) and (max-height:600px){
 body.jw-navigation{min-width:0}
 body.jw-navigation .app-shell{grid-template-columns:1fr;padding-bottom:0}
 body.jw-navigation .sidebar{display:none!important}
 body.jw-navigation main{margin-left:0;padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;min-width:0}
 body.jw-navigation .international-bar{flex-wrap:wrap}
 body.jw-navigation .j-tools{display:none}
 .jw-tools-bar{box-sizing:border-box;display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;padding:4px 12px calc(4px + env(safe-area-inset-bottom));border-top:1px solid #3a4d5e;background:#0b1925fa}
 .jw-tools-bar button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;font-size:14px;line-height:1.2;min-height:44px;padding:8px 14px}
 .jw-tools-bar button:before{content:'☰';font-size:18px;line-height:1}
}
@media print{.jw-tools-bar,.jw-tools-dialog,body.jw-navigation .sidebar{display:none!important}body.jw-navigation main{padding-bottom:0!important}}
