/* Account and administration views */
#authGate{padding:clamp(12px,3vw,36px);background:radial-gradient(ellipse at 18% 5%,#d9eee3 0,transparent 48%),#f2f7f4;align-items:safe center}
.authCard{width:min(480px,100%);border:1px solid #dbe7df;border-radius:24px;padding:clamp(22px,3vw,36px);box-shadow:0 24px 80px #113a2520;color:#193d2d;line-height:1.6;max-height:none}
#authGate[data-view=authAdmin] .authCard{width:min(1000px,100%)}
#authGate[data-view=authProfile] .authCard{width:min(780px,100%)}
.authBrand{display:flex;align-items:center;gap:12px;padding-bottom:24px;border-bottom:1px solid #e8eeea;margin-bottom:24px}
.brandMark{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#0b6346;color:#fff;font-weight:800;font-size:24px;flex:none}
.authBrand strong{display:block;font-size:16px;color:#164733;line-height:1.35}.authBrand div>span{font-size:12px;color:#7a8e83;letter-spacing:1.1px}
.environmentTag{margin-left:auto;font-size:11px;color:#52735e;background:#edf5ef;border:1px solid #dce9df;padding:4px 9px;border-radius:20px;white-space:nowrap}
.authHeading{margin-bottom:24px}.authHeading h2{font-size:clamp(22px,2.4vw,28px);line-height:1.35;letter-spacing:-.5px}.authHeading p{margin:7px 0 0;font-size:14px;color:#708279}
.authCard h3{font-size:17px;line-height:1.45;margin:0 0 6px}.authCard p{font-size:14px;line-height:1.65}.authCard label{display:block;font-size:13px;color:#375a46;margin:0 0 6px;font-weight:650}
.authCard input,.authCard select{min-height:46px;margin:0 0 18px;padding:11px 13px;border:1px solid #d4e1d9;border-radius:11px;background:#fbfdfb;color:#1e3e2c;font:15px system-ui;transition:border-color .15s,box-shadow .15s;max-width:100%}
.authCard input:focus,.authCard select:focus{outline:0;border-color:#17875e;box-shadow:0 0 0 3px #14835c18;background:#fff}
.authCard button{min-height:42px;font-size:14px;font-weight:650;margin:0;padding:11px 18px;border-radius:10px;background:#087c52;box-shadow:none;transition:background .15s,box-shadow .15s;white-space:normal;line-height:1.45}
.authCard button:hover{background:#066443}.authCard button:focus-visible,#portalAccount button:focus-visible{outline:3px solid #8ac7ac;outline-offset:3px}.authCard button.secondary{background:#edf4ef;color:#286447;border:1px solid #dce8df}.authCard button.secondary:hover{background:#e0eee5}
.authCard button.textButton{background:transparent;color:#426b54;padding:10px 4px}.authCard button.dangerButton{background:#fff0ef;color:#a3483a;border:1px solid #f2d6d1}.authCard button.dangerButton:hover{background:#fbe1de}
.authCard .hide{display:none!important}.loginActions{display:grid;gap:15px;margin-top:8px}.loginActions>#authSignIn{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px}.secondaryActions{display:flex;align-items:center;justify-content:space-between;gap:12px}.secondaryActions>*{flex:1}.secondaryActions .textButton{flex:0 0 auto}
.authCard #authMessage{margin:18px 0 0;padding:12px 15px;background:#eaf5ef;color:#236343;border:1px solid #d2e8dc;border-radius:10px;font-size:13px;overflow-wrap:anywhere}.authCard #authMessage:empty{display:none}.authCard #authMessage.error{background:#fff3ef;color:#a24735;border-color:#f2d9d1}
.profileIdentity{display:flex;gap:14px;align-items:center;padding:16px 18px;background:#f3f8f4;border:1px solid #e1ece5;border-radius:14px;margin-bottom:22px;min-width:0}.profileIdentity>div{min-width:0}.profileIdentity p{margin:0;overflow-wrap:anywhere}.profileAvatar{width:44px;height:44px;background:#deeee3;border-radius:50%;display:grid;place-items:center;flex:none;color:#307251;font-size:25px}.roleBadge{display:inline-block!important;background:#dfede4;border-radius:20px;padding:2px 9px!important;font-size:11px!important;margin-top:5px!important;color:#416650!important}
.segmented{display:flex;gap:5px;padding:5px;background:#f1f5f2;border-radius:12px;margin-bottom:24px;border:1px solid #e6ece8}.authCard .segmented button{flex:1;min-width:0;min-height:40px;padding:9px 12px;background:transparent;color:#6a7e71;box-shadow:none}.authCard .segmented button[aria-selected=true]{background:white;color:#176441;box-shadow:0 2px 6px #173e2b10;border:1px solid #e2ebe5}.countBadge{display:inline-block;margin-left:5px;background:#e3ede6;color:#477156;padding:0 7px;border-radius:12px;font-size:11px;line-height:20px}
.sectionHeading{margin:0 0 20px}.sectionHeading p{margin:5px 0 0;color:#7b8b81;font-size:13px}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.actionRow{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.dialogFooter{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:20px;margin-top:26px;border-top:1px solid #e6ece8}.dialogFooter>span{font-size:12px;color:#8a9a90}.listToolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.compactButton{min-height:36px!important;padding:8px 12px!important;white-space:nowrap!important}
.infoNotice{padding:12px 15px;border:1px solid #dce9e0;background:#f1f7f3;border-radius:10px;color:#61796a!important;font-size:12px!important;margin:0 0 20px}.authCard #resetStatusFilter{width:210px;min-height:40px;font-size:13px;margin-bottom:18px}.filterLabel{font-size:12px!important}
.requestList{display:grid;gap:12px}.requestCard,.authCard .userRow{padding:18px;border:1px solid #dfe8e1;border-radius:13px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0}.requestCard{display:block}.requestTop{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.requestName{font-size:15px;font-weight:700;color:#244f36;overflow-wrap:anywhere}.requestEmail{font-size:13px;color:#798d80;margin:3px 0 10px;overflow-wrap:anywhere}.requestMeta{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:#8b9a8f}.requestReference{font-family:ui-monospace,monospace;font-size:11px;color:#8b9a8f;overflow-wrap:anywhere;padding-top:7px}.requestActions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:14px;margin-top:13px;border-top:1px solid #edf1ee}.requestActions select{width:auto!important;min-width:130px;min-height:40px;margin:0!important;font-size:13px}.requestActions button{font-size:13px;min-height:40px;padding:9px 14px}.statusPill{border-radius:20px;padding:4px 10px;background:#f0f3f1;color:#718076;font-size:11px;white-space:nowrap;font-weight:650}.statusPill[data-status=pending]{background:#fff5da;color:#9b771e}.statusPill[data-status=approved]{background:#e3f3e9;color:#2e7a4a}.statusPill[data-status=rejected],.statusPill[data-status=failed]{background:#f9e9e5;color:#a56859}
.emptyState{display:grid;justify-items:center;gap:7px;padding:38px 20px;border:1px dashed #d8e5dc;background:#f8fbf9;border-radius:13px;text-align:center}.emptyState strong{font-size:14px;color:#506e5a}.emptyState span{font-size:12px;color:#8a9d90}.emptyIcon{width:38px;height:38px;background:#eaf3ed;color:#59916c;border-radius:50%;display:grid;place-items:center;font-size:18px;margin-bottom:4px}.temporaryResult{background:#edf8ef;border:1px solid #bcdfc6;border-radius:14px;padding:20px;margin-top:22px}.copyRow{display:flex;align-items:flex-start;gap:10px}.copyRow input{font-family:ui-monospace,monospace;min-width:0;margin-bottom:0}.temporaryResult p{font-size:12px;margin-bottom:0}
/* Compact main navigation: first row on desktop, wraps naturally on small displays. */
body>header{grid-template-columns:minmax(0,1fr) auto;gap:14px 24px;padding:20px clamp(18px,3.5vw,55px)}
#portalAccount{grid-column:2;grid-row:1;gap:6px;background:#ffffff0a;border-color:#ffffff26;color:#dcf1e4;border-radius:12px;padding:5px;box-shadow:none;font-size:13px}
#portalAccount #accountLabel{color:#b9e8cb;padding:0 9px;font-size:12px}
#portalAccount button{border:0;color:#e2f3e9;background:transparent;font-size:13px;font-weight:550;padding:9px 12px;border-radius:8px;transition:none;transform:none;box-shadow:none;min-height:38px;white-space:nowrap}
#portalAccount button:hover{background:#ffffff13}#portalAccount #accountLogout{border-left:1px solid #ffffff1c;border-radius:0 8px 8px 0;color:#b4d5c0}
body>header .header-actions{grid-column:1/-1;grid-row:2;justify-self:end;margin:0;gap:8px}
body>header h1{font-size:clamp(18px,1.5vw,23px)}
@media(max-width:760px){body>header{grid-template-columns:minmax(0,1fr)}#portalAccount{grid-column:1;grid-row:2;justify-self:stretch;justify-content:flex-start}body>header .header-actions{grid-row:3;width:100%!important}.formGrid{grid-template-columns:1fr;gap:0}}
@media(max-width:520px){.authBrand{gap:9px;padding-bottom:19px;margin-bottom:20px}.authBrand strong{font-size:14px}.environmentTag{font-size:10px;padding:3px 7px}.brandMark{width:38px;height:38px;font-size:21px}.authCard{border-radius:18px;padding:21px 18px}.adminTabs{flex-wrap:wrap}.adminTabs button{flex:1 1 40%!important;font-size:12px}.requestCard,.authCard .userRow{padding:14px}.requestTop{gap:8px}.requestActions button{flex:1}.dialogFooter{flex-wrap:wrap}.dialogFooter button{margin-left:auto}.secondaryActions{flex-wrap:wrap}.listToolbar{gap:8px}.copyRow{flex-wrap:wrap}.copyRow button{width:100%}#portalAccount{gap:3px}#portalAccount button{flex:1 1 auto;padding:8px;font-size:12px}#portalAccount #accountLabel{padding:0 5px}.authCard #resetStatusFilter{width:100%}}
/* User account disclosure */
#portalAccount{position:relative;display:inline-flex;justify-self:end;max-width:min(340px,100%);padding:0;border:0;background:transparent;gap:0;z-index:50}
#portalAccount #accountToggle{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:7px 11px 7px 7px;border:1px solid #ffffff2b;border-radius:30px;background:#ffffff09;color:#f0f8f3;min-height:46px}
#portalAccount #accountToggle:hover,#portalAccount #accountToggle[aria-expanded=true]{background:#ffffff16;border-color:#ffffff48}
.accountIcon{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:50%;background:#e0eee5;color:#216b47}.accountIcon svg{width:22px;height:22px}
#accountDisplayName{font-size:13px;font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.accountChevron{width:17px;height:17px;flex:none;transition:transform .15s}#accountToggle[aria-expanded=true] .accountChevron{transform:rotate(180deg)}
#accountMenu{position:absolute;top:calc(100% + 10px);right:0;display:grid;width:min(280px,calc(100vw - 32px));padding:7px;background:#fff;color:#244a35;border:1px solid #dce7df;border-radius:15px;box-shadow:0 16px 48px #082c2830;gap:3px;z-index:60}
#accountMenu[hidden],#accountMenu button[hidden]{display:none!important}.accountMenuHeading{display:grid;gap:4px;padding:11px 12px 14px;margin-bottom:3px;border-bottom:1px solid #edf1ee;min-width:0}.accountMenuHeading strong{font-size:14px;overflow-wrap:anywhere}#portalAccount #accountLabel{color:#7e9385;font-size:12px;padding:0;margin:0}
#portalAccount #accountMenu button{display:flex;align-items:center;gap:12px;width:100%;min-height:43px;text-align:left;justify-content:flex-start;background:transparent;border:0;border-radius:9px;color:#365d45;padding:10px 12px;font-weight:500;white-space:normal}
#portalAccount #accountMenu button:hover{background:#edf6f0}#accountMenu button>span{display:grid;place-items:center;width:20px;color:#6e907a;flex:none}#portalAccount #accountMenu #accountLogout{border:0;border-top:1px solid #edf1ee;border-radius:0 0 8px 8px;margin-top:3px;padding-top:13px;color:#a85a4e}#portalAccount #accountMenu #accountLogout:hover{background:#fff2ee}
@media(max-width:760px){#portalAccount{grid-column:1;grid-row:2;justify-self:end;width:auto}#accountDisplayName{max-width:200px}}
@media(prefers-reduced-motion:reduce){.accountChevron{transition:none}}
