/* Scoped console layout: each task has a dedicated, deep-linkable section. */
html body.admin-body [hidden]{display:none!important}
html body.admin-body .console-navigation{display:flex;flex-direction:column;gap:4px;margin:8px 0 22px}
html body.admin-body .console-nav-group{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1.8px;color:#b0c8d4;margin:20px 12px 7px}
html body.admin-body .console-navigation .nav{min-height:46px;margin:0;gap:12px;border-radius:12px;padding:11px 13px;font-size:13px;border:1px solid transparent}
html body.admin-body .console-navigation .nav.active{background:#a4e9ff18;border-color:#a4e9ff55;color:#e7faff;box-shadow:inset 3px 0 #8de1fb}
.console-nav-dot{width:6px;height:6px;border:1px solid currentColor;border-radius:50%;flex:none;opacity:.8}
.console-navigation .active .console-nav-dot{background:currentColor}
html body.admin-body aside{overflow-y:auto}
html body.admin-body .brand-image{max-height:126px;margin-bottom:12px}
html body.admin-body .console-heading{padding:30px 0 24px;margin:0;align-items:center}
html body.admin-body .console-heading h1{font-size:clamp(28px,3vw,40px);letter-spacing:-1.2px;line-height:1.15;margin:9px 0 10px}
html body.admin-body .console-heading p{max-width:660px;color:#bcd1dc;line-height:1.6}
.console-badge{border:1px solid #b4e6f329;border-radius:99px;padding:9px 13px;color:#bfdbe6;font-size:12px;white-space:nowrap}
.console-view{min-width:0;padding-bottom:32px}
.console-view>.user-monitor,.console-view>.user-control{margin-top:0;padding-top:0;border-top:0}
html body.admin-body .console-view>.admin-section-heading:first-child{margin-top:0;padding-top:0}
html body.admin-body .console-view>.password-settings{margin-top:0;max-width:760px}
.console-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}
html body.admin-body .console-shortcut{position:relative;display:flex;flex-direction:column;gap:12px;padding:26px;text-decoration:none;min-height:158px;border:1px solid #bbebff29;transition:background .18s,border-color .18s}
.console-shortcut strong{font-size:19px;color:#effbff}
.console-shortcut>span:first-of-type{font-size:14px;line-height:1.6;color:#bdd0db;max-width:85%}
.console-shortcut>span:last-child{position:absolute;right:24px;top:24px;font-size:22px;color:#93e3fb}
html body.admin-body .console-shortcut:hover{background:#99dfff14;border-color:#b0eaff70}
.console-mobile-section{display:none}
html body.admin-body .console-view .provider-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}
html body.admin-body .console-view .provider-card{min-width:0;padding:24px}
html body.admin-body .console-view .provider-model,.console-view .provider-endpoint{overflow-wrap:anywhere}
html body.admin-body .console-view button,html body.admin-body .console-view summary{min-height:44px}
html body.admin-body .console-view .grant-form{max-width:900px}
html body.admin-body .console-view .table-scroll{max-width:100%;overflow-x:auto}
html body.admin-body .console-view .audit-panel{max-height:65vh;overflow:auto}
html body.admin-body :is(.console-navigation a,.console-shortcut,#console-section-select):focus-visible{outline:2px solid #a4ecff;outline-offset:4px}
@media(max-width:900px){
 html body.admin-body .brand-image{max-height:48px;margin:0}
 html body.admin-body .console-navigation{width:100%;margin:0}
 html body.admin-body .console-nav-group{margin-top:12px}
 html body.admin-body .console-heading{padding:24px 0 16px}
 .console-badge{display:none}
 .console-mobile-section{display:flex;flex-direction:column;gap:8px;padding:0 0 24px}
 .console-mobile-section label{font-size:12px;color:#bdd1de}
 html body.admin-body #console-section-select{width:100%;min-height:48px;font-size:16px}
 html body.admin-body .console-heading h1{font-size:30px}
 html body.admin-body .console-heading p{font-size:14px}
 html body.admin-body .console-view .admin-section-heading{flex-wrap:wrap;gap:16px}
 html body.admin-body .console-view .monitor-grid{grid-template-columns:1fr}
 html body.admin-body main>header{align-items:flex-start}
 html body.admin-body #admin-identity{overflow-wrap:anywhere;max-width:100%}
}
@media(max-width:560px){
 .console-shortcuts{grid-template-columns:1fr;gap:12px;margin-top:16px}
 html body.admin-body .console-shortcut{padding:22px;min-height:136px}
 html body.admin-body .console-view .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body.admin-body .console-view .stat-card{padding:16px;min-width:0}
 html body.admin-body .console-view .grant-form{display:flex;flex-direction:column;gap:16px;padding:20px}
 html body.admin-body .console-view #usage-filter{display:flex;flex-direction:column;align-items:stretch;width:100%}
 html body.admin-body .console-view .provider-actions{display:flex;flex-wrap:wrap;gap:8px}
}

/* Compact account list, with full-size touch actions. */
html body.admin-body:has([data-console-view="user-control"]:not([hidden])) .console-heading{padding:20px 0 12px}
html body.admin-body:has([data-console-view="user-control"]:not([hidden])) .console-heading h1{font-size:28px;margin:6px 0}
html body.admin-body #user-control .user-toolbar{display:flex;align-items:end;gap:14px;margin:0 0 12px}
html body.admin-body #user-control .user-toolbar label{max-width:340px;gap:5px}
html body.admin-body #user-control .user-toolbar input{min-height:44px;padding:9px 12px}
html body.admin-body #user-control .user-toolbar>span{margin-left:auto;padding-bottom:13px;white-space:nowrap}
html body.admin-body #user-control .user-toolbar #new-user{min-height:44px;padding:10px 16px;white-space:nowrap}
html body.admin-body #user-control .table-scroll{border-radius:14px}
html body.admin-body #user-control .user-table th{padding:10px 12px;font-size:11px}
html body.admin-body #user-control .user-table td{padding:5px 12px;font-size:12px;line-height:1.4}
html body.admin-body #user-control .user-table .user-actions{min-width:244px}
html body.admin-body #user-control .user-actions .secondary{min-height:44px;padding:7px 10px;font-size:11px;border-radius:9px;margin-right:6px}
html body.admin-body #user-control .status-pill{padding:3px 7px;font-size:10px}
@media(max-width:600px){
 html body.admin-body #user-control .user-toolbar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
 html body.admin-body #user-control .user-toolbar label{flex:1 1 100%;max-width:none}
 html body.admin-body #user-control .user-toolbar>span{margin-left:0;margin-right:auto;padding:0}
 html body.admin-body #user-control .user-toolbar #new-user{width:auto}
 html body.admin-body #user-control .user-table td{padding:4px 10px}
}

html body.admin-body #user-control .user-toolbar .deleted-users-toggle{display:flex;align-items:center;flex:none;gap:8px;font-size:12px;min-height:44px;cursor:pointer}
html body.admin-body #user-control .deleted-users-toggle input{min-height:auto;width:16px;height:16px}
html body.admin-body #user-control .user-table .user-actions{min-width:306px}
html body.admin-body #user-control .user-actions .danger{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 10px;font-size:11px;border-radius:9px}
#delete-user-dialog{max-width:480px}#delete-user-dialog p{line-height:1.65;margin:14px 0}
@media(max-width:1000px){html body.admin-body #user-control .user-toolbar{flex-wrap:wrap}html body.admin-body #user-control .user-toolbar .deleted-users-toggle{order:3;flex-basis:100%}}
