/* Index-aligned shared brand/navigation; existing content and tools retain their behavior. */
html[data-sf554]{--sf554-ink:#10223d;--sf554-blue:#0071e3;--sf554-width:1240px;scroll-padding-top:100px;background:#f5faff}
html[data-sf554] body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:var(--sf554-ink);background:linear-gradient(180deg,#f0f8ff 0,#fff 480px)!important;margin-top:0!important}
html[data-sf554] #sf153-header,html[data-sf554] #sf-global-header,html[data-sf554] #sf53-top,html[data-sf554] #sf53-nav,html[data-sf554] body>.topbar,html[data-sf554] body>header.top,html[data-sf554] .sf513-fallback{display:none!important}
html[data-sf554] body>#sf554-site-header{display:block!important;position:sticky!important;inset-block-start:0!important;z-index:600!important;width:100%!important;margin:0!important;padding:0!important;background:#ffffffed!important;backdrop-filter:blur(18px);border-bottom:1px solid #e2ebf4!important;box-shadow:0 2px 12px #1c4e7610!important;color:#10223d!important}
#sf554-site-header .sf554-bar{max-width:1240px;margin:0 auto!important;min-height:64px;padding:10px 18px!important;display:flex!important;align-items:center!important;gap:22px!important;box-sizing:border-box!important}
#sf554-site-header .sf554-brand{display:flex!important;align-items:center!important;gap:7px!important;flex-shrink:0!important;font:800 20px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;letter-spacing:-.8px!important;color:#0b1d38!important;text-decoration:none!important;white-space:nowrap!important;background:none!important;padding:0!important;border:0!important}
#sf554-site-header .sf554-brand img{display:block!important;width:43px!important;height:32px!important;object-fit:contain!important;margin:0!important}#sf554-site-header .sf554-brand b{color:#006ce0!important}#sf554-site-header .sf554-brand sup{font-size:8px;vertical-align:super}
#sf554-site-header .sf554-navigation{display:flex!important;align-items:center!important;gap:14px!important;flex:1!important;min-width:0;flex-wrap:wrap!important;padding:0!important;margin:0!important;background:none!important;border:0!important}
#sf554-site-header .sf554-link,#sf554-site-header summary{display:inline-flex!important;align-items:center!important;gap:5px!important;border:0!important;background:transparent!important;color:#132641!important;text-decoration:none!important;font:500 11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;padding:7px 0!important;white-space:nowrap!important;border-radius:5px!important;cursor:pointer!important;margin:0!important}
#sf554-site-header .sf554-link:hover,#sf554-site-header summary:hover{color:#006ce0!important}#sf554-site-header svg{width:14px!important;height:14px!important;fill:none!important;stroke:#0071e3!important;stroke-width:1.6!important;flex-shrink:0!important}
#sf554-site-header .sf554-library-menu{display:flex;gap:4px;align-items:center}#sf554-site-header .sf554-dropdown{position:relative!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}#sf554-site-header summary{list-style:none!important}#sf554-site-header summary::-webkit-details-marker{display:none}
#sf554-site-header .sf554-panel{display:flex!important;flex-direction:column!important;position:absolute!important;inset-block-start:100%!important;inset-inline-end:0!important;min-width:210px!important;max-width:calc(100vw - 32px);padding:10px 14px!important;border:1px solid #d3e2f0!important;border-radius:13px!important;background:white!important;box-shadow:0 14px 30px #173d6922!important;z-index:610!important;gap:2px!important}#sf554-site-header details:not([open])>.sf554-panel{display:none!important}#sf554-site-header .sf554-panel a{padding:10px 5px!important;font-size:13px!important}
#sf554-site-header #sf554-language{flex-shrink:0}#sf554-site-header #sf-language-control{display:inline-flex!important;padding:0!important;margin:0!important;background:none!important;gap:3px!important;width:auto!important;max-width:130px!important;font-size:11px!important}#sf554-site-header #sf-language-select{max-width:100px!important;border:1px solid #e2eaf3!important;border-radius:8px!important;padding:7px 5px!important;font-size:11px!important}
html[data-sf554] body>main{max-width:1240px!important;margin-inline:auto!important;box-sizing:border-box!important}html[data-sf554] body>main#library-app{padding:28px 20px!important}
html[data-sf554] #sf554-library-nav{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;padding:13px 18px;background:#f4f9ff;border-bottom:1px solid #e2ebf4;font-size:13px}#sf554-library-nav a{color:#1b426b;text-decoration:none}
html[data-sf554] body>main>.hero{border-radius:0;background:transparent}html[data-sf554] .book-cover img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#f2f5fa}html[data-sf554] .book-cover{background:#edf3fa}html[data-sf554] .book-cover img[hidden]{display:none!important}
#sf554-admin-library{display:flex!important;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0;padding:18px!important;background:#f0f7ff!important;border:1px solid #cddff2!important;border-radius:15px!important}#sf554-admin-library h2{font-size:17px!important;margin:0 15px 0 0!important}#sf554-admin-library a{padding:10px 13px!important;background:#fff!important;border:1px solid #d6e5f3!important;border-radius:9px!important;color:#075fb6!important;font-size:12px!important;text-decoration:none!important}html[data-sf554] .sidebar{top:65px!important;height:calc(100dvh - 65px)!important}html[data-sf554] .sidebar a[data-sf554-bot]{color:#005bb8!important;background:#e6f2ff!important;font-weight:700!important}
html[data-sf554] body footer{background:transparent!important;color:#667c94!important;border-color:#e2ebf4!important}#sf554-footer{display:flex!important;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;padding:24px 20px!important;background:#f6faff!important;border-top:1px solid #e0ebf5;color:#536d87;font:12px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;margin-top:30px}#sf554-footer a{color:#27669f;text-decoration:none}#sf554-mobile-nav{display:none!important}
html[data-sf554] .sf554-library-card{background:linear-gradient(135deg,#eef7ff,#f7f5ff)!important}html[data-sf554] body #sf554-site-header :focus-visible{outline:3px solid #0071e3!important;outline-offset:4px!important}
html[data-sf554] .sf554-admin-page input,html[data-sf554] .sf554-admin-page select,html[data-sf554] .sf554-admin-page textarea{font:inherit;padding:11px;border:1px solid #c5d9ed;border-radius:9px;background:white;color:#173554;max-width:100%}html[data-sf554] .sf554-admin-page label{display:grid;gap:6px;font-size:13px}html[data-sf554] .sf554-admin-page button{border:1px solid #bfd5eb;border-radius:10px;padding:11px 16px;background:#fff;color:#0c559d;font:inherit;cursor:pointer}
@media(max-width:1120px){#sf554-site-header .sf554-bar{flex-wrap:wrap;gap:8px 16px!important}#sf554-site-header .sf554-navigation{order:3;flex-basis:100%!important;justify-content:center!important;gap:12px!important}#sf554-site-header #sf554-language{margin-inline-start:auto}}
@media(max-width:767px){html[data-sf554] body{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}#sf554-site-header .sf554-brand{font-size:19px!important}#sf554-site-header .sf554-navigation{display:none!important}#sf554-site-header .sf554-bar{min-height:58px!important;padding:10px 16px!important}#sf554-site-header .sf554-brand img{width:36px!important;height:29px!important}#sf554-site-header #sf554-language{max-width:110px!important}html[data-sf554] body>#sf554-mobile-nav{display:flex!important;align-items:center!important;justify-content:space-around!important;position:fixed!important;inset-inline:0;bottom:0!important;z-index:650!important;padding:9px 5px calc(9px + env(safe-area-inset-bottom))!important;border-top:1px solid #d9e7f5!important;background:#ffffffef!important;backdrop-filter:blur(15px);box-shadow:0 -4px 20px #173d6910!important}#sf554-mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:#536f90;text-decoration:none;font:11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}#sf554-mobile-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}#sf554-mobile-nav a[aria-current]{color:#0071e3}html[data-sf554] #sf554-library-nav{justify-content:start;gap:18px;flex-wrap:nowrap;overflow:auto;white-space:nowrap;font-size:12px}html[data-sf554] .sidebar{height:auto!important;top:58px!important}#sf554-footer{padding-bottom:25px!important}.sf554-panel{max-height:70dvh;overflow:auto}}
@media(prefers-reduced-motion:reduce){html[data-sf554]{scroll-behavior:auto}}

/* Constrain intrinsic grid widths so mobile shelves scroll within the page. */
html[data-sf554] .collection,html[data-sf554] .collection>#shelves,html[data-sf554] .layout>main{min-width:0!important}
#sf554-site-header .sf554-bar{gap:14px!important}#sf554-site-header .sf554-navigation{gap:8px!important}#sf554-site-header .sf554-link,#sf554-site-header summary{font-size:10.5px!important}
@media(max-width:850px){html[data-sf554] main>.layout{grid-template-columns:minmax(0,1fr)!important}html[data-sf554] main>.layout>.collection{width:100%!important;max-width:100%!important}html[data-sf554] .shelf-row{max-width:100%!important;min-width:0!important}html[data-sf554] .scroll{overflow:auto!important;max-width:100%!important}}

html[data-sf554] body.sf554-admin-page #sf495-shared-hero{display:none!important}

html[data-sf554] .sidebar{top:var(--sf554-header-height,65px)!important;height:calc(100dvh - var(--sf554-header-height,65px))!important}
@media(max-width:767px){html[data-sf554] .sidebar{height:auto!important}}
/* Generated directory/school documents previously constrained the body itself. */
html[data-sf554] body{max-width:none!important;width:100%!important;margin-inline:0!important;padding-inline:0!important;padding-top:0!important;box-sizing:border-box!important}
