/* AIG Mail + device panels v2.0; scoped to the new workspaces. */
.mail-admin-panel,.admin-devices-panel{min-width:0;width:100%}
.mail-admin-intro,.admin-devices-head{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;padding:16px;background:#fff;border:1px solid #dce5f1;border-radius:12px;margin-bottom:12px}
.mail-admin-intro strong{font-size:18px}.mail-admin-intro p,.admin-devices-head p{font-size:13px;color:#60738e;margin:4px 0}
#mailAdminFrame{display:block;width:100%;height:max(700px,calc(100dvh - 210px));border:1px solid #dce5f1;border-radius:12px;background:#fff}

/* Devices v18: scoped styles, shared Admin frame unchanged. */
#adminDevicesWorkspace{padding:clamp(14px,2vw,28px);background:#f5f8fc;color:#182c46;box-sizing:border-box}
#adminDevicesWorkspace .admin-devices-head{padding:22px;border-radius:16px;border-color:#dbe5ee;box-shadow:0 4px 18px #233d6010}
#adminDevicesWorkspace h2{margin:0;font-size:22px;letter-spacing:-.4px}
#adminDevicesStatus{padding:12px 16px;margin:18px 0;color:#315a67;background:#eaf4f5;border:1px solid #cce2e4;border-radius:10px;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.admin-devices-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px;margin:18px 0 24px;align-items:stretch}
#adminDevicesWorkspace .admin-device-card{position:relative;display:flex;flex-direction:column;gap:4px;padding:22px;border:1px solid #dbe5ee;border-top:4px solid #8195b1;border-radius:14px;background:#fff;min-width:0;box-shadow:0 3px 14px #233d6008}
#adminDevicesWorkspace .admin-device-card.is-current{border-color:#a9d5cf;border-top-color:#287d72;background:#fcfffe}
#adminDevicesWorkspace .admin-device-card h3{font-size:16px;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
.admin-device-badge{align-self:flex-start;padding:4px 9px;margin-bottom:10px;border-radius:6px;font-size:12px;font-weight:700;color:#176c60;background:#e0f3ed}
#adminDevicesWorkspace .admin-device-card p{display:grid;gap:4px;margin:5px 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:#445a72}
.admin-device-label{font-size:11px;font-weight:700;color:#687d93;text-transform:uppercase;letter-spacing:.6px}
#adminDevicesWorkspace button,.admin-session-dialog button{appearance:none;line-height:1.3;font-family:inherit;font-size:14px;font-weight:600;min-height:44px;padding:11px 16px;border:1px solid #cbd7e5;border-radius:9px;background:#fff;color:#253f5a;cursor:pointer;transition:background .15s,border-color .15s}
#adminDevicesWorkspace button:hover,.admin-session-dialog button:hover{background:#edf3f9;border-color:#8fa7bf}
#adminDevicesWorkspace button:focus-visible,.admin-session-dialog button:focus-visible{outline:3px solid #4683d6;outline-offset:3px}
#adminDevicesWorkspace button:disabled{opacity:.55;cursor:wait}
#adminDevicesWorkspace .admin-device-card button{align-self:flex-start;margin-top:16px;color:#a33535;border-color:#edcbcb;background:#fff8f8}
#adminDevicesLogoutOthers{color:#a33535!important;border-color:#edcbcb!important}
.admin-session-dialog{box-sizing:border-box;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid #dce5ef;border-radius:18px;box-shadow:0 24px 80px #071d4140;color:#182c46;background:#fff;font-family:inherit}
.admin-session-dialog::backdrop{background:rgb(13 29 49 / 48%)}
.admin-session-dialog h2{font-size:21px;line-height:1.35;margin:0 0 12px}
.admin-session-dialog p{font-size:15px;line-height:1.7;color:#536982;margin:0 0 24px}
.admin-session-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.admin-session-dialog button.is-danger{color:#fff;background:#a73535;border-color:#a73535}
.admin-session-dialog button.is-danger:hover{background:#892929}
@media(max-width:760px){#mailAdminFrame{height:85dvh;min-height:560px}.mail-admin-intro{padding:12px}.admin-devices-list{grid-template-columns:1fr}#adminDevicesWorkspace .admin-devices-head{padding:16px}#adminDevicesWorkspace .admin-device-card{padding:18px}}
@media(max-width:400px){.admin-session-dialog{padding:20px}.admin-session-dialog-actions{flex-direction:column-reverse}.admin-session-dialog-actions button{width:100%}}
