.admin-header{display:block;position:sticky;top:0;z-index:50;padding:0;background:#173a2c;color:#fff;border-bottom:3px solid #bf9451;box-shadow:0 4px 18px #10291f12;font-family:Arial,sans-serif}
.admin-header-inner{max-width:1280px;margin:0 auto;padding:0 24px}.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0}
.admin-header .admin-brand{display:flex;align-items:center;gap:16px;color:#fff;text-decoration:none;min-width:0}.admin-brand img{display:block;flex:0 0 56px;object-fit:contain}.admin-header .admin-brand strong{display:block;font:700 21px/1.25 Georgia,serif;color:#fff}.admin-header .admin-brand small{display:block;margin-top:5px;font:11px/1.5 Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#e0be7e}
.admin-account{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.admin-header .admin-session{font-size:12px;color:#d8e4d7}.admin-session[data-authenticated=true]::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#b7d5a6;margin-right:7px}
.admin-header .admin-website,.admin-header .admin-logout,.admin-header .admin-signin{padding:9px 13px;border:1px solid #92a796;border-radius:4px;font:600 12px/1.5 Arial,sans-serif;color:#fff;background:transparent;text-decoration:none;cursor:pointer;white-space:nowrap}.admin-header .admin-website:hover,.admin-header .admin-logout:hover,.admin-header .admin-signin:hover{background:#2b5140}
.admin-header .admin-navigation{display:flex;gap:4px;flex-wrap:wrap;margin:0;padding:0;border-top:1px solid #587260}.admin-header .admin-navigation a{display:block;padding:14px 20px;color:#ecf1e9;text-decoration:none;font:600 14px/1.5 Arial,sans-serif;border-bottom:3px solid transparent;margin-bottom:-3px}.admin-header .admin-navigation a:hover{background:#244b39}.admin-header .admin-navigation a[aria-current=page]{color:#f0d49b;border-bottom-color:#f0d49b;background:#234735}
.admin-header a:focus-visible,.admin-header button:focus-visible{outline:3px solid #f0d49b;outline-offset:3px}.admin-header [hidden]{display:none!important}.admin-header .admin-menu-toggle{display:none}.skip{position:absolute;top:-100px;left:16px;z-index:100;background:#fff;color:#173a2c;padding:12px}.skip:focus{top:8px}
@media(max-width:760px){.admin-header-inner{padding:0 16px}.admin-topbar{gap:12px;flex-wrap:wrap;padding:14px 0}.admin-header .admin-brand{flex:1;gap:10px}.admin-brand img{width:44px;height:44px;flex-basis:44px}.admin-header .admin-brand strong{font-size:17px}.admin-header .admin-brand small{font-size:10px}.admin-account{order:3;width:100%;justify-content:flex-start;gap:10px}.admin-header .admin-session{flex:1}.admin-header .admin-menu-toggle{display:flex;align-items:center;gap:10px;background:transparent;color:#fff;border:1px solid #92a796;border-radius:4px;padding:9px 12px;font:600 13px/1.5 Arial,sans-serif;cursor:pointer}.admin-header[data-menu-ready] .admin-navigation{display:none}.admin-header[data-menu-open] .admin-navigation{display:grid;grid-template-columns:1fr 1fr;padding:10px 0;gap:4px}.admin-header .admin-navigation a{padding:12px;margin:0;border-bottom:0;border-radius:4px}.admin-header .admin-navigation a[aria-current=page]{box-shadow:inset 3px 0 #f0d49b}}
@media(max-width:400px){.admin-header .admin-brand strong{font-size:15px}.admin-header .admin-menu-toggle{padding:8px}.admin-header .admin-website,.admin-header .admin-logout,.admin-header .admin-signin{font-size:11px;padding:8px}}
/* The navigation is revealed only after the MFA-protected session check. */
html:not(.admin-authenticated) .admin-header{display:none!important}
html:not(.admin-authenticated) body:not(.admin-gateway)>main{visibility:hidden}
.admin-auth-intro{display:none}
html:not(.admin-authenticated) body.admin-gateway{background:#10291f;color:#fffefb;min-height:100dvh}
html:not(.admin-authenticated) .admin-gateway>.wrap{max-width:1260px;min-height:100dvh;padding:clamp(28px,6vw,88px) clamp(22px,5vw,72px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,480px);align-items:center;gap:clamp(40px,7vw,110px);margin:auto}
html:not(.admin-authenticated) .admin-gateway::before{content:'';position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 10% 10%,#365d3f66,transparent 60%),radial-gradient(ellipse at 100% 90%,#a58a3b22,transparent 55%)}
html:not(.admin-authenticated) .admin-gateway #app{display:none!important}
html:not(.admin-authenticated) .admin-auth-intro{display:block;position:relative}
.admin-auth-brand{display:flex;gap:18px;align-items:center;font:700 22px/1.2 Georgia,serif;color:#fffefb;margin-bottom:64px}
.admin-auth-brand img{object-fit:contain}
.admin-auth-kicker{font:700 11px/1.5 Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#e0be7e}
.admin-auth-intro h2{font:400 clamp(34px,4vw,58px)/1.13 Georgia,serif;letter-spacing:-.02em;color:#fffefb;margin:18px 0 24px}
.admin-auth-intro>p:not(.admin-auth-kicker){font:16px/1.8 Arial,sans-serif;color:#d5e0d1;max-width:34ch}
.admin-auth-security{display:flex;gap:12px;align-items:center;margin-top:44px;font:12px/1.6 Arial,sans-serif;color:#d4dfcd}
.admin-auth-security span{color:#e0be7e;font-size:22px}
html:not(.admin-authenticated) .admin-gateway #login{position:relative;max-width:none;width:100%;margin:0;background:#fffefb;color:#173a2c;border:1px solid #d7dfce;border-top:4px solid #bf9451;border-radius:12px;box-shadow:0 24px 70px #0003;padding:clamp(24px,3vw,40px)}
.admin-gateway #login .eyebrow{color:#68734e}
.admin-gateway #login h1{font:400 34px/1.2 Georgia,serif;margin:12px 0 16px;color:#173a2c}
.admin-gateway #login>p,.admin-gateway #mfa-setup p,.admin-gateway #mfa-recovery p{color:#596757;line-height:1.7}
.admin-gateway #login label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.admin-gateway #login input:not([type=checkbox]){display:block;width:100%;min-height:48px;padding:12px 14px;border:1px solid #bac8b2;border-radius:5px;background:#fff;color:#173a2c;font-size:16px;margin:8px 0 18px}
.admin-gateway #login button{min-height:46px;border-radius:5px;padding:12px 18px;font-size:14px;cursor:pointer}
.admin-gateway #login button:disabled{opacity:.55;cursor:wait}
.admin-gateway #login :is(button,input,a,summary):focus-visible{outline:3px solid #bf9451;outline-offset:3px}
.admin-gateway #login .message{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.admin-gateway #mfa-heading{font:400 25px/1.25 Georgia,serif;color:#173a2c}
.admin-gateway #mfa-qr{margin-inline:auto!important}
.admin-gateway #mfa-recovery-codes{padding:16px;background:#edf1e5;color:#173a2c;font-size:14px;line-height:1.8;border-radius:5px}
html.admin-authenticated .admin-auth-intro{display:none}
@media(max-width:800px){html:not(.admin-authenticated) .admin-gateway>.wrap{grid-template-columns:minmax(0,1fr);max-width:540px;gap:28px;align-content:center;padding:28px 20px}.admin-auth-brand{margin-bottom:24px;font-size:19px}.admin-auth-brand img{width:56px;height:56px}.admin-auth-intro h2{font-size:34px;margin-block:10px 16px}.admin-auth-intro>p:not(.admin-auth-kicker),.admin-auth-security{display:none}.admin-auth-kicker{margin-bottom:0}html:not(.admin-authenticated) .admin-gateway #login{padding:24px}.admin-gateway #login h1{font-size:29px}}
