/* Shared visual language; SVG icons retain definition at any display density. */
.portal-shell{--ui-border:#e3eaf0;--ui-ink:#203843;--ui-muted:#657b89;background:#f4f7fb;color:var(--ui-ink);font-family:Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.portal-shell .card{border:1px solid var(--ui-border);border-radius:22px;background:#fff;box-shadow:0 6px 24px #1f405405;padding:24px}
.portal-shell .page-head{align-items:center;gap:20px;margin-bottom:24px}.portal-shell h1{font-size:clamp(24px,2vw,32px);letter-spacing:-.7px}.portal-shell h2{letter-spacing:-.3px}
.portal-shell input:not([type=checkbox]):not([type=radio]):not([type=file]),.portal-shell select,.portal-shell textarea{border:1px solid var(--ui-border);border-radius:12px;background:#f9fbfd;color:var(--ui-ink);padding:11px 13px;box-sizing:border-box}
.portal-shell input:focus-visible,.portal-shell textarea:focus-visible,.portal-shell select:focus-visible{outline:2px solid #00acc6;outline-offset:2px;background:white}
.portal-shell button,.portal-shell .button-link{min-height:38px;border-radius:12px;font-weight:600;transition:background .15s,box-shadow .15s}
.portal-shell button:focus-visible,.portal-shell a:focus-visible{outline:2px solid #00acc6;outline-offset:3px}
.portal-shell .secondary-button,.portal-shell .button-link.secondary{background:#eef5f8;color:#175976;border:1px solid #dcebf0}
.portal-shell table{border-collapse:collapse}.portal-shell th{background:#f7f9fc;color:#617886;font-size:13px;font-weight:600}.portal-shell td,.portal-shell th{padding:14px 16px;border-bottom:1px solid #edf2f6}.portal-shell tbody tr:hover{background:#f8fbfd}
.portal-shell .user-row{display:grid!important;grid-template-columns:44px minmax(180px,1fr) auto auto auto 44px;align-items:center;gap:18px;padding:20px 8px;border-bottom:1px solid var(--ui-border)}
.portal-shell .user-row>form{margin:0;display:flex;justify-content:center}.portal-shell .user-main{min-width:0}.portal-shell .user-main strong,.portal-shell .user-main span{display:block}.portal-shell .user-main span{overflow-wrap:anywhere;color:var(--ui-muted);margin-top:4px}.portal-shell .user-avatar{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:#e8f4f7;color:#00647c;font-weight:700}.portal-shell .role-chip{border-radius:999px;padding:6px 14px}.portal-shell .user-row>.muted{font-size:11px;text-align:center}
.portal-shell .delete-icon-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:10px!important;flex:none;border:1px solid transparent!important;border-radius:50%!important;background:transparent!important;color:#b43d43!important;box-shadow:none!important;font-size:0!important}
.portal-shell .delete-icon-button:hover{background:#fcebed!important;border-color:#f7d8dc!important}.portal-shell .delete-icon-button:disabled{opacity:.35}.delete-icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){.portal-shell .user-row{grid-template-columns:44px minmax(120px,1fr) auto;gap:12px}.portal-shell .user-row>.role-chip{grid-column:2}.portal-shell .card{padding:18px}}
.vector-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;min-width:36px!important;min-height:36px!important;padding:8px!important;vertical-align:middle;flex-shrink:0}.vector-action svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.vector-action:focus-visible{outline:2px solid #00a5bf;outline-offset:3px}

.mail-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-bottom:24px}.mail-settings-card{display:flex;align-items:center;gap:18px;padding:24px;border:1px solid #dfe8ee;border-radius:16px;background:white;color:#244552;text-decoration:none}.mail-settings-card:hover{background:#f0f8fb;border-color:#80bbc9}.mail-settings-card>svg{width:28px;height:28px;flex:none;color:#00809b}.mail-settings-card>div{flex:1}.mail-settings-card h2{font-size:18px;margin:0 0 8px}.mail-settings-card p{font-size:14px;line-height:1.5;color:#617683;margin:0}

.section-back{display:inline-flex;align-items:center;gap:9px;margin:0 0 14px;padding:7px 10px;color:#075c76;text-decoration:none;font-size:14px;flex:0 0 auto;align-self:flex-start;border-radius:8px}.section-back:hover{background:#e5f1f6}.section-back svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
