/* Midnight portal backdrop with soft electric-blue depth. */
html[data-theme] body:is(.staff-portal-route,.login-page){background:radial-gradient(1100px 700px at 78% 38%,rgba(26,110,245,.42),transparent 60%),radial-gradient(900px 600px at 12% 75%,rgba(0,43,107,.55),transparent 62%),linear-gradient(160deg,#00060f 0%,#001027 45%,#000814 100%)!important;color:#edf4ff!important;animation:none!important;color-scheme:dark}
html[data-theme] body.staff-portal-route .shell{background:transparent!important}
html[data-theme] body.staff-portal-route :is(.content-card,.portal-login-card,.portal-workspace,.portal-callout,.portal-shift-card,.portal-stat-grid article,.book-shell,.book-sidebar,.portal-record,#season-form){color:#edf4ff!important;background:#071527e8!important;border-color:#6ab7ff38!important;box-shadow:0 14px 42px #0007}
html[data-theme] body.staff-portal-route :is(.page-title p,.content-card p,.content-card li,.portal-login-card p,.portal-section-head p,.portal-record p,.portal-tag){color:#b7cbe3!important}
html[data-theme] body.staff-portal-route :is(h1,h2,h3,h4,label,.brand,.brand span,.portal-user-name){color:#edf4ff!important}
html[data-theme] body.staff-portal-route :is(input,textarea,select){background:#061426!important;color:#edf4ff!important;border-color:#47769d!important}
html[data-theme] body.staff-portal-route .pill{background:#0d2843!important;border-color:#5db9f35c!important;color:#e9f7ff!important}
html[data-theme] body.staff-portal-route .pill.primary{background:#38aef4!important;border-color:#38aef4!important;color:#00111f!important}
html[data-theme] body.staff-portal-route :is(.shell>header>nav,.main-nav.is-open,.more-pages){background:#061324e8!important;color:#edf4ff!important;border-color:#6ab7ff38!important;box-shadow:0 12px 35px #0007}
html[data-theme] body.staff-portal-route :is(.shell>header>nav a,.shell>header>nav button,.theme-toggle-label){color:#edf4ff!important}
html[data-theme] body.staff-portal-route footer{background:#061324e8!important;color:#b7cbe3!important;border-color:#6ab7ff38!important}
html[data-theme] body.staff-portal-route :is(button,a,input,textarea,select):focus-visible{outline:3px solid #2674f7;outline-offset:4px}
/* Astryx-inspired internal workspace: information is grouped, quiet and easy
   to scan, while retaining the existing protected routes and semantics. */
html[data-theme] body.staff-portal-route .page-title{max-width:1180px;margin:0 auto;padding:clamp(118px,13vw,168px) clamp(24px,4vw,60px) 36px!important;border-bottom:1px solid #6ab7ff2b}
html[data-theme] body.staff-portal-route .page-title h1{max-width:18ch;font-size:clamp(42px,6vw,76px)!important;letter-spacing:-.055em!important;line-height:1.02!important}
html[data-theme] body.staff-portal-route .page-title p{max-width:62ch;margin-top:18px;font-size:17px!important;line-height:1.58!important}
html[data-theme] body.staff-portal-route .page-grid,html[data-theme] body.staff-portal-route .portal-stat-grid{max-width:1180px;margin:0 auto;padding-inline:clamp(24px,4vw,60px);gap:18px!important}
html[data-theme] body.staff-portal-route .page-grid>.content-card,html[data-theme] body.staff-portal-route :is(.portal-login-card,.portal-workspace,.portal-callout,.portal-shift-card,.portal-stat-grid article,.book-shell,.book-sidebar,#season-form){border:1px solid #6ab7ff30!important;border-radius:14px!important;background:linear-gradient(145deg,#0b1d33f7,#071426f7)!important;box-shadow:0 10px 30px #0004!important}
html[data-theme] body.staff-portal-route .page-grid>.content-card{padding:26px!important;border-top:1px solid #6ab7ff30!important}
html[data-theme] body.staff-portal-route :is(.admin-form input,.admin-form textarea,.admin-form select,.portal-form input,.portal-form textarea,.portal-form select){min-height:46px!important;border-radius:9px!important;background:#071326!important;border-color:#4d73944f!important;box-shadow:inset 0 1px 0 #ffffff08!important}
html[data-theme] body.staff-portal-route :is(.pill,.admin-tabs button,.rule-tabs button){min-height:42px!important;border-radius:9px!important;font-weight:650!important;letter-spacing:-.01em!important;transition:background-color 150ms ease,border-color 150ms ease,transform 150ms ease}
html[data-theme] body.staff-portal-route .pill.primary{background:#56b9ff!important;border-color:#56b9ff!important;color:#031323!important;box-shadow:none!important}
html[data-theme] body.staff-portal-route .admin-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:8px;border:1px solid #6ab7ff27;border-radius:12px;background:#061426c9}
html[data-theme] body.staff-portal-route .admin-tabs [aria-selected=true]{background:#1b476c!important;border-color:#62c3ff77!important;color:#eff9ff!important}
html[data-theme] body.staff-portal-route :is(.portal-record,.review-card){border:1px solid #6ab7ff24!important;border-radius:10px!important;background:#09192cf2!important;box-shadow:none!important}
@media(max-width:700px){html[data-theme] body.staff-portal-route .page-title{padding-top:110px!important}html[data-theme] body.staff-portal-route .page-grid,html[data-theme] body.staff-portal-route .portal-stat-grid{padding-inline:20px}html[data-theme] body.staff-portal-route .page-grid>.content-card{padding:21px!important}}
html[data-theme] body.login-page .login-card{background:#fffffff7!important;border:1px solid #ffffff!important;box-shadow:0 24px 80px #0008!important;color:#0d1e38!important}
html[data-theme] body.login-page :is(.login-card h1,.login-brand,.login-brand>span){color:#0d1e38!important}
html[data-theme] body.login-page .login-brand img{background:#102b4c!important;border:1px solid #62bdf6;border-radius:10px;filter:none!important}
html[data-theme] body.login-page .login-tabs{background:#edf2f9!important}
html[data-theme] body.login-page .login-tabs button{color:#5b7190!important}
html[data-theme] body.login-page .login-tabs button[aria-selected=true]{background:#fff!important;color:#172b48!important;box-shadow:0 1px 5px #17324b1c!important}
html[data-theme] body.login-page :is(.login-description,.preview-note,.privacy-copy,.back-link,.login-footer){color:#98adc8!important}
html[data-theme] body.login-page .discord-button{background:#2476f3!important;color:#fff!important;border-color:#2476f3!important;box-shadow:0 4px 22px #1a6ef533}
html[data-theme] body.login-page .discord-button:hover{background:#1463df!important;border-color:#1463df!important}
html[data-theme] body.login-page :is(a,button):focus-visible{outline:3px solid #2674f7;outline-offset:4px}
