.portal-activity, .portal-toast, .portal-logout-dialog { box-sizing: border-box; }
.portal-activity { position: fixed; inset: 1rem 1rem auto auto; z-index: 1050; display: flex; align-items: center; gap: .65rem; max-width: calc(100vw - 2rem); padding: .8rem 1rem; border: 1px solid #d5dfe4; border-radius: .8rem; color: #26383e; background: #fff; box-shadow: 0 6px 24px #182c3520; font-size: .9rem; }
.portal-activity[hidden] { display: none; }
.portal-spinner { display: inline-block; flex: 0 0 auto; width: 1rem; height: 1rem; border: 2px solid #d8e2e5; border-top-color: #275762; border-radius: 50%; animation: portal-spin .8s linear infinite; }
.notice-loading { display: flex; align-items: center; gap: .65rem; }
.portal-toasts { position: fixed; z-index: 1100; right: 1rem; bottom: 1rem; display: grid; gap: .75rem; width: min(27rem, calc(100vw - 2rem)); pointer-events: none; }
.portal-toast { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid; border-radius: .9rem; background: #fff; box-shadow: 0 8px 32px #182c3529; pointer-events: auto; overflow-wrap: anywhere; }
.portal-toast-success { border-color: #8ebaa4; color: #174f37; }
.portal-toast-error { border-color: #db9c9b; color: #852c2b; }
.portal-toast p { margin: .25rem 0 0; font-size: .9rem; line-height: 1.5; }
.portal-toast-icon { display: grid; place-items: center; flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; background: #e8f3ed; font-weight: 800; }
.portal-toast-error .portal-toast-icon { background: #fbeceb; }
.portal-toast .portal-toast-close { flex: 0 0 auto; margin: -.4rem -.4rem 0 auto; min-width: 2.5rem; min-height: 2.5rem; padding: .25rem; border: 0; background: transparent; color: inherit; font-size: 1.5rem; box-shadow: none; }
.portal-logout { display: inline-flex; }
.portal-logout-dialog { width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 1.5rem; overflow-y: auto; border: 1px solid #d5dfe4; border-radius: 1rem; color: #26383e; background: #fff; box-shadow: 0 20px 80px #182c3540; }
.portal-logout-dialog::backdrop { background: #182c3566; }
.portal-logout-dialog form { margin: 0; }
.portal-logout-dialog h2 { margin: 0 0 .75rem; font-size: 1.35rem; }
.portal-logout-dialog p { margin: 0 0 1.5rem; line-height: 1.6; }
.portal-logout-dialog .button-row { justify-content: flex-end; gap: .75rem; }
.tenant-lookup-status { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #4c6269; }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .portal-spinner { animation: none; } }
@media (max-width: 480px) { .portal-logout-dialog .button-row { display: grid; } .portal-toast { padding: .85rem; } }
