/* One navigation rhythm: equal controls, the existing My account text size. */
html body>.auth-header{display:flex;align-items:center;flex-wrap:nowrap;justify-content:flex-start;gap:8px;padding:8px 16px;min-height:54px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#a2b6af #173540}
html body>.auth-header>.site-links,html body>.auth-header>.auth-links{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:8px;width:auto;min-width:0;margin:0}
html body>.auth-header>.site-links{margin-right:auto}
html body>.auth-header>.site-links a,html body>.auth-header>.auth-links a,html body>.auth-header>.auth-links button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 134px;width:134px;min-width:134px;height:38px;min-height:38px;padding:6px 8px;border:1px solid #a88c56;border-radius:11px;background:#173c50;color:#fff1cc;font:600 14px/1.3 system-ui,sans-serif;white-space:nowrap;text-align:center;text-decoration:none;margin:0}
html body>.auth-header>.auth-language{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin:0}
html body>.auth-header>.auth-language select{box-sizing:border-box;height:38px;min-height:38px;padding:6px 8px;font:600 14px/1.3 system-ui,sans-serif;max-width:190px}
html body>.auth-header a:hover,html body>.auth-header button:hover{background:#285367;border-color:#e7c787}
html body>.auth-header :is(a,button,select):focus-visible{outline:3px solid #f2d792;outline-offset:2px}
/* The NR map is a scrollable content page, not a full-screen artwork hotspot. */
body:has(.nrj-page) .lms-shell-ui .side-dock{width:54px!important;max-width:54px;padding:4px;top:50%;transform:translateY(-50%)}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button{width:46px;min-width:46px;min-height:48px;padding:8px;justify-content:center;border-radius:16px;background:#28515a;border-color:#92b5ad;box-shadow:0 3px 0 #163940}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button span{display:none}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button svg{width:27px;height:27px;flex:none;stroke:#f7e2ab}
body:has(.nrj-page) .side-dock-left{left:8px}
body:has(.nrj-page) .side-dock-right{right:16px}
@media(max-width:700px){html body>.auth-header{padding:8px;gap:8px}body:has(.nrj-page) .lms-shell-ui .side-dock{top:auto;bottom:max(6px,env(safe-area-inset-bottom));transform:none;display:flex;flex-direction:row;gap:4px;width:auto!important;max-width:none;padding:4px;border-radius:18px;background:#163b43eF}body:has(.nrj-page) .side-dock-left{left:6px}body:has(.nrj-page) .side-dock-right{right:6px}body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button{width:40px;min-width:40px;min-height:42px;padding:7px}}
/* Content-sized navigation removes the unnecessary desktop scroll rail. */
html body>.auth-header{background:#122b3d;gap:7px;box-shadow:0 5px 18px #07162744}
html body>.auth-header>.site-links,html body>.auth-header>.auth-links{gap:7px}
html body>.auth-header>.site-links a,html body>.auth-header>.auth-links a,html body>.auth-header>.auth-links button{width:auto;min-width:65px;flex:0 0 auto;padding:7px 12px;min-height:38px;height:38px;font-size:14px;border:1px solid #526f80;border-radius:9px;background:#1d3a4e;color:#e7eef6}
html body>.auth-header>.site-links a[aria-current]{border-color:#caa767;background:#2d4654;color:#ffe1a9}
html body>.auth-header>.auth-language select{max-width:154px;background:#1d3a4e;color:#e7eef6;border-color:#526f80}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button{background:#263f56;border-color:#617b8c;box-shadow:0 3px 10px #04142866}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button:empty:before{content:'✓';font-size:21px;color:#f7e2ab}
body:has(.nrj-page) .side-dock .dock-button:has(.homework-count):before{content:'✓';font-size:21px;color:#f7e2ab}
@media(max-width:700px){html body>.auth-header>.site-links a,html body>.auth-header>.auth-links a,html body>.auth-header>.auth-links button{padding:7px 10px}body:has(.nrj-page) .lms-shell-ui .side-dock{background:#152d42f0}}
body:has(.nrj-page) .side-dock .dock-button:not(:has(svg)):before{content:'';display:block;width:24px;height:24px;background:#f7e2ab;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5H5v16h14V5h-3M9 3h6v4H9zM8 13l3 3 5-6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}

/* Centre icon-only dock buttons, including legacy inline widths and reversed rows. */
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button{
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 grid-template-columns:1fr!important;grid-template-rows:1fr!important;
 width:46px!important;height:48px!important;min-width:46px!important;min-height:48px!important;
 padding:0!important;gap:0!important;line-height:1!important;text-align:center!important;
}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button>svg{
 display:block!important;grid-area:1/1!important;place-self:center!important;
 width:28px!important;height:28px!important;margin:0!important;padding:0!important;
 position:static!important;transform:none!important;
}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button>span{display:none!important}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button:has(svg):before{display:none!important;content:none!important}
body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button:not(:has(svg)):before{grid-area:1/1;place-self:center;margin:0!important}
@media(max-width:700px){body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button{width:40px!important;min-width:40px!important;height:42px!important;min-height:42px!important}}

/* Homework: a centred HW monogram, with the due count kept separate. */
html body .lms-shell-ui .side-dock .dock-button[data-panel-view="homework"]{position:relative}
html body .lms-shell-ui .side-dock .dock-button[data-panel-view="homework"]::before,
html body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button[data-panel-view="homework"]::before{
 content:'HW'!important;display:grid!important;place-items:center!important;
 position:absolute!important;inset:0!important;width:auto!important;height:auto!important;
 margin:0!important;padding:0!important;background:none!important;
 mask:none!important;-webkit-mask:none!important;transform:none!important;
 color:#f7e2ab;font:800 18px/1 'Segoe UI',system-ui,sans-serif!important;
 letter-spacing:.025em;text-indent:0;pointer-events:none;
}
html body .lms-shell-ui .side-dock .dock-button[data-panel-view="homework"]>svg,
html body .lms-shell-ui .side-dock .dock-button[data-panel-view="homework"]>span,
html body:has(.nrj-page) .lms-shell-ui .side-dock .dock-button[data-panel-view="homework"]>svg{display:none!important}
html body .lms-shell-ui .side-dock .dock-button[data-panel-view="homework"]>.homework-badge{
 position:absolute!important;inset:2px 2px auto auto!important;
 margin:0!important;min-width:16px;height:15px;padding:0 4px;
 display:grid;place-items:center;font:700 10px/1 system-ui,sans-serif;
 border-radius:8px;z-index:1;pointer-events:none;
}
