/* Admin profile selector/viewer opened from the existing Settings workspace hero. */
html.admin-profile-view-open{overflow:hidden!important}
.settings-hero{cursor:pointer;-webkit-tap-highlight-color:transparent}
.settings-hero:focus-visible{outline:3px solid rgba(45,125,244,.42);outline-offset:4px}
.admin-profile-overlay{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(13,28,52,.58);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px);animation:admin-profile-fade .18s ease both}
.admin-profile-sheet{width:min(760px,100%);max-height:min(90dvh,900px);overflow:auto;overscroll-behavior:contain;border:1px solid rgba(215,225,239,.95);border-radius:30px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);color:#152544;box-shadow:0 34px 100px rgba(15,37,72,.30);animation:admin-profile-rise .28s cubic-bezier(.2,.8,.2,1) both}
.admin-profile-sheet::-webkit-scrollbar{width:6px}.admin-profile-sheet::-webkit-scrollbar-thumb{border-radius:99px;background:#c9d5e5}
.admin-profile-close{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;padding:0;border:1px solid #dfe7f2;border-radius:14px;background:rgba(255,255,255,.92);color:#38506f;box-shadow:0 6px 18px rgba(28,59,102,.08)}
.admin-profile-close svg,.admin-profile-choice-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.admin-profile-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 25px 20px;border-bottom:1px solid #e3eaf3;background:linear-gradient(135deg,#f7faff 0%,#eff7ff 55%,#effbf7 100%)}
.admin-profile-picker-head>div{min-width:0}.admin-profile-picker-head span,.admin-profile-identity>span,.admin-profile-card-head span{display:block;color:#6883a8;font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.admin-profile-picker-head h2{margin:5px 0 5px;font-size:26px;line-height:1.06;letter-spacing:-.04em;color:#13284a}.admin-profile-picker-head p{margin:0;color:#75879f;font-size:12px;line-height:1.5}
.admin-profile-choice-list{display:grid;gap:10px;padding:18px 20px 22px}.admin-profile-choice{display:grid;grid-template-columns:54px minmax(0,1fr) 34px;align-items:center;gap:13px;width:100%;min-height:76px;padding:11px 13px;border:1px solid #dfe7f1;border-radius:19px;background:linear-gradient(180deg,#fff,#fbfdff);color:#17294a;text-align:left;box-shadow:0 7px 20px rgba(29,58,101,.055);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.admin-profile-choice:active{transform:scale(.99)}.admin-profile-choice:hover{border-color:#bdd3f3;box-shadow:0 10px 26px rgba(29,76,143,.10)}
.admin-profile-choice-avatar,.admin-profile-avatar{display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#e2ecff,#e2f9ef);color:#1f67d5;font-weight:900}.admin-profile-choice-avatar{width:54px;height:54px;border-radius:17px}.admin-profile-choice-avatar img,.admin-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}.admin-profile-choice-avatar>span{font-size:16px}.admin-profile-choice-copy{min-width:0}.admin-profile-choice-copy b,.admin-profile-choice-copy small{display:block}.admin-profile-choice-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.admin-profile-choice-copy small{margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7b8ba1;font-size:10px}.admin-profile-choice-arrow{display:grid;place-items:center;color:#6e89ad}
.admin-profile-hero{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:25px;background:linear-gradient(135deg,#174fc4 0%,#177edc 58%,#1ba58b 130%);color:#fff}.admin-profile-avatar{width:92px;height:92px;border:1px solid rgba(255,255,255,.38);border-radius:28px;background:rgba(255,255,255,.18);color:#fff;box-shadow:0 14px 34px rgba(6,39,94,.25)}.admin-profile-avatar>span{font-size:28px}.admin-profile-identity{min-width:0}.admin-profile-identity>span{color:#d8e8ff;opacity:.82}.admin-profile-identity h2{margin:5px 0 4px;font-size:30px;line-height:1.06;letter-spacing:-.045em;color:#fff}.admin-profile-identity p{margin:0;color:rgba(255,255,255,.78);font-size:12px}.admin-profile-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.admin-profile-badges b{padding:6px 9px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.13);font-size:10px}.admin-profile-close-on-hero{align-self:start;border-color:rgba(255,255,255,.25);background:rgba(9,37,83,.24);color:#fff;box-shadow:none}
.admin-profile-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px 0}.admin-profile-toolbar button{padding:8px 11px;border:1px solid #dce6f2;border-radius:12px;background:#f5f8fd;color:#315078;font-size:11px;font-weight:800}.admin-profile-toolbar small{color:#8291a5;font-size:10px}
.admin-profile-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 20px 0}.admin-profile-stat-grid article{min-width:0;padding:15px;border:1px solid #dfe8f3;border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(27,58,102,.055)}.admin-profile-stat-grid span,.admin-profile-stat-grid small,.admin-profile-stat-grid strong{display:block}.admin-profile-stat-grid span{color:#74859c;font-size:10px}.admin-profile-stat-grid strong{margin:6px 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#142a4e;font-size:20px;letter-spacing:-.035em}.admin-profile-stat-grid small{color:#91a0b3;font-size:9px}.admin-profile-stat-grid .is-positive strong{color:#0b8b65}.admin-profile-stat-grid .is-negative strong{color:#d34d5d}
.admin-profile-card{margin:14px 20px 0;padding:17px;border:1px solid #dfe7f1;border-radius:20px;background:#fff;box-shadow:0 9px 26px rgba(28,57,99,.055)}.admin-profile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.admin-profile-card-head h3{margin:3px 0 0;color:#172b4e;font-size:17px}.admin-profile-card-head>b{padding:7px 9px;border-radius:10px;background:#edf4ff;color:#2a6bcd;font-size:10px}
.admin-profile-money-grid,.admin-profile-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.admin-profile-money-grid>div,.admin-profile-detail-grid>div{min-width:0;padding:13px;border-radius:15px;background:#f4f7fb}.admin-profile-money-grid span,.admin-profile-money-grid strong,.admin-profile-detail-grid span,.admin-profile-detail-grid b{display:block}.admin-profile-money-grid span,.admin-profile-detail-grid span{color:#7a8a9f;font-size:9px}.admin-profile-money-grid strong,.admin-profile-detail-grid b{margin-top:5px;overflow-wrap:anywhere;color:#1a3155;font-size:14px}.admin-profile-detail-grid b{font-size:11px}
.admin-profile-split{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 20px 22px}.admin-profile-split .admin-profile-card{margin-left:0;margin-right:0}.admin-profile-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e6edf5}.admin-profile-list>div:last-child{border-bottom:0}.admin-profile-list b,.admin-profile-list small{display:block}.admin-profile-list b{font-size:11px}.admin-profile-list small,.admin-profile-list p{margin-top:3px;color:#8392a5;font-size:9px}.admin-profile-list strong{color:#234b83;font-size:12px}
html[data-theme="dark"] .admin-profile-overlay{background:rgba(0,6,13,.72)}html[data-theme="dark"] .admin-profile-sheet{border-color:#29425b;background:linear-gradient(180deg,#0e1f31,#0a1828);color:#edf5ff;box-shadow:0 36px 110px rgba(0,0,0,.58)}html[data-theme="dark"] .admin-profile-picker-head{border-color:#294159;background:linear-gradient(135deg,#11263b,#0e2133)}html[data-theme="dark"] .admin-profile-picker-head h2,html[data-theme="dark"] .admin-profile-card-head h3{color:#edf5ff}html[data-theme="dark"] .admin-profile-picker-head p,html[data-theme="dark"] .admin-profile-choice-copy small,html[data-theme="dark"] .admin-profile-toolbar small{color:#91a5bd}html[data-theme="dark"] .admin-profile-close{border-color:#35506b;background:#162c42;color:#d9e8f8;box-shadow:none}html[data-theme="dark"] .admin-profile-choice{border-color:#29455f;background:linear-gradient(180deg,#12283d,#0f2234);color:#edf5ff;box-shadow:0 8px 24px rgba(0,0,0,.18)}html[data-theme="dark"] .admin-profile-choice:hover{border-color:#456b90}html[data-theme="dark"] .admin-profile-choice-arrow{color:#77a8df}html[data-theme="dark"] .admin-profile-toolbar button{border-color:#314a62;background:#13283d;color:#bcd2e8}html[data-theme="dark"] .admin-profile-stat-grid article,html[data-theme="dark"] .admin-profile-card{border-color:#29445e;background:#102438;box-shadow:0 10px 28px rgba(0,0,0,.22)}html[data-theme="dark"] .admin-profile-stat-grid strong,html[data-theme="dark"] .admin-profile-money-grid strong,html[data-theme="dark"] .admin-profile-detail-grid b{color:#edf5ff}html[data-theme="dark"] .admin-profile-stat-grid span,html[data-theme="dark"] .admin-profile-stat-grid small,html[data-theme="dark"] .admin-profile-money-grid span,html[data-theme="dark"] .admin-profile-detail-grid span{color:#93a8bf}html[data-theme="dark"] .admin-profile-money-grid>div,html[data-theme="dark"] .admin-profile-detail-grid>div{background:#142b41}html[data-theme="dark"] .admin-profile-card-head>b{background:#173554;color:#8fbcf3}html[data-theme="dark"] .admin-profile-list>div{border-color:#294158}html[data-theme="dark"] .admin-profile-list b,html[data-theme="dark"] .admin-profile-list strong{color:#e8f2ff}html[data-theme="dark"] .admin-profile-list small,html[data-theme="dark"] .admin-profile-list p{color:#91a5bd}
@media(max-width:700px){.admin-profile-overlay{align-items:flex-end;padding:0}.admin-profile-sheet{width:100%;max-height:92dvh;border-width:1px 0 0;border-radius:28px 28px 0 0;padding-bottom:calc(10px + env(safe-area-inset-bottom));animation-name:admin-profile-sheet-up}.admin-profile-picker-head{padding:21px 18px 17px;border-radius:28px 28px 0 0}.admin-profile-picker-head h2{font-size:23px}.admin-profile-choice-list{padding:15px 15px 18px}.admin-profile-hero{grid-template-columns:74px minmax(0,1fr) auto;gap:13px;padding:20px 16px;border-radius:28px 28px 0 0}.admin-profile-avatar{width:74px;height:74px;border-radius:22px}.admin-profile-avatar>span{font-size:23px}.admin-profile-identity h2{font-size:23px}.admin-profile-close-on-hero{width:38px;height:38px;flex-basis:38px;border-radius:13px}.admin-profile-toolbar{padding:11px 15px 0}.admin-profile-stat-grid{grid-template-columns:1fr 1fr;padding:13px 15px 0}.admin-profile-card{margin:12px 15px 0;padding:15px}.admin-profile-money-grid{grid-template-columns:1fr 1fr}.admin-profile-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.admin-profile-detail-grid>div:first-child{grid-column:1/-1;padding:13px 14px}.admin-profile-detail-grid>div:first-child span{white-space:nowrap}.admin-profile-detail-grid>div:first-child b{font-size:12px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}.admin-profile-detail-grid>div:not(:first-child){padding:11px 10px}.admin-profile-detail-grid>div:not(:first-child) span{font-size:8.5px}.admin-profile-detail-grid>div:not(:first-child) b{font-size:10.5px;line-height:1.3;overflow-wrap:normal;word-break:normal}.admin-profile-split{grid-template-columns:1fr;gap:0;margin:0 15px 12px}.admin-profile-split .admin-profile-card{margin-top:12px}.admin-profile-stat-grid strong{font-size:18px}}
@media(max-width:420px){.admin-profile-choice{grid-template-columns:48px minmax(0,1fr) 28px;min-height:68px;padding:9px 11px;border-radius:17px}.admin-profile-choice-avatar{width:48px;height:48px;border-radius:15px}.admin-profile-choice-copy b{font-size:14px}.admin-profile-hero{grid-template-columns:66px minmax(0,1fr) auto}.admin-profile-avatar{width:66px;height:66px;border-radius:20px}.admin-profile-identity h2{font-size:21px}.admin-profile-identity p{font-size:10px}.admin-profile-badges{margin-top:9px}.admin-profile-stat-grid{gap:8px}.admin-profile-stat-grid article{padding:12px}.admin-profile-card{border-radius:18px}.admin-profile-money-grid>div{padding:11px}.admin-profile-detail-grid{gap:7px}.admin-profile-detail-grid>div:first-child{padding:12px}.admin-profile-detail-grid>div:not(:first-child){padding:10px 8px}.admin-profile-detail-grid>div:not(:first-child) b{font-size:10px}}
@keyframes admin-profile-fade{from{opacity:0}to{opacity:1}}@keyframes admin-profile-rise{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}@keyframes admin-profile-sheet-up{from{opacity:0;transform:translateY(38px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.admin-profile-overlay,.admin-profile-sheet{animation:none}}
