.atc-portal-access{box-sizing:border-box;margin:12px 0;padding:15px 18px;border:1px solid #d5e2e6;border-radius:8px;background:#fff;color:#173b4a;font:14px/1.45 Arial,sans-serif;text-align:left}.atc-portal-access[hidden]{display:none}.atc-portal-access h2{margin:0 0 4px;font-size:16px}.atc-portal-access p{margin:4px 0 9px}.atc-portal-access summary,.atc-portal-access button{cursor:pointer}.atc-portal-access summary{font-weight:600}.atc-portal-access button{border:1px solid #126c61;background:#fff;color:#09594f;border-radius:5px;padding:7px 12px;font:inherit}.atc-portal-access>button{background:#07665a;color:white}.atc-portal-access details{margin-top:10px}.atc-portal-form{max-width:36rem;display:grid;gap:10px;margin-top:10px}.atc-portal-form label{display:grid;gap:3px}.atc-portal-form input:not([type=checkbox]){color:#16333c;background:white;border:1px solid #9facb5;border-radius:4px;padding:8px;max-width:100%;min-width:0}.atc-portal-form .atc-portal-check{display:flex;align-items:center;gap:6px}.atc-portal-form fieldset{min-width:0;border:1px solid #c5d3d7;padding:8px}.atc-portal-access button:disabled{opacity:.65;cursor:wait}.atc-portal-form fieldset button{margin:4px}.atc-portal-access :focus-visible{outline:2px solid #05689d;outline-offset:2px}
.atc-portal-access{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:18px 0 4px;border:0;border-radius:0;background:transparent;box-shadow:none}
.atc-portal-access[hidden],.atc-open-dashboard[hidden],.atc-portal-selected>#contact-detail-panel,.atc-portal-selected>[data-native-panel]{display:none!important}
.atc-portal-access>.manage-heading,.atc-portal-access>.manage-block:last-child,.atc-portal-access>[role=status]{grid-column:1/-1}.atc-portal-access>[role=status]:empty{display:none}.atc-portal-access h2{font-size:19px}.atc-portal-access .atc-portal-form{display:grid;max-width:100%}
.atc-open-dashboard,.atc-record-tab>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 14px;color:#056163;background:#fff;border:1px solid #a9c8c9;border-radius:5px;font:600 13px/1.5 "Segoe UI",Arial,sans-serif;cursor:pointer}
.atc-open-dashboard{margin-inline-end:8px}.atc-open-dashboard:before{content:"↗";font:700 17px/1 Arial}.atc-record-tab.active>button{border-bottom:3px solid #007e7f;background:#e2f3f1}.atc-portal-selected .record-tab:not(.atc-record-tab)>button{background:#fff;color:#31555b;box-shadow:none}.atc-open-dashboard:focus-visible,.atc-record-tab>button:focus-visible{outline:3px solid #0d7c80;outline-offset:2px}
@media(max-width:840px){.atc-portal-access{grid-template-columns:1fr}.atc-open-dashboard{padding:6px 10px}.commercial-record-toolbar .commercial-top-actions{flex-wrap:wrap}}

.atc-portal-access { gap: 14px; padding: 14px clamp(12px,1.4vw,24px) 22px; background: #f5f8f8; border: 1px solid #dce6e7; border-radius: 10px; margin: 14px clamp(10px,1vw,18px) 16px; align-items: start; font-family: inherit }
.atc-portal-heading { border-bottom: 1px solid #cfdddd; padding: 2px 0 11px }
.atc-portal-heading h2 { font-size: 20px; font-weight: 650; color: #173844 }
.atc-portal-access .manage-block { align-self: stretch }
.atc-portal-access .primary-management { border-top: 3px solid #167c74 }
.atc-portal-access .access-state { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1.3 "Segoe UI",Arial,sans-serif; padding: 4px 8px; border-radius: 12px; margin-left: auto; white-space: nowrap; color: #485d66; background: #edf1f2 }
.atc-portal-access .access-state::before { content: ""; height: 6px; width: 6px; border-radius: 50%; background: currentColor }
.atc-portal-access .access-state.enabled { color: #126651; background: #e2f2e9 }
.atc-portal-access .portal-identity { margin: 18px 0 10px; display: block }
.atc-portal-access .portal-identity dt { font-size: 12px; color: #4d6672 }
.atc-portal-access .portal-identity dd { margin: 2px 0; color: #1a3846; font: 600 18px/1.3 ui-monospace,Consolas,monospace; overflow-wrap: anywhere }
.atc-portal-access details { border-top: 1px solid #dae6e6; padding-top: 9px }
.atc-portal-access details summary { color: #0b6b66; width: fit-content }
.atc-portal-access .atc-portal-form { background: #f6f9f9; padding: 14px; border-radius: 7px }
.atc-portal-access .atc-portal-form>button { justify-self: start; background: #086b65; color: #fff }
.atc-portal-access>[role=status] { color: #095c54; margin: 0 }
@media (max-width:1020px) { .atc-portal-access { grid-template-columns: 1fr } }

.atc-portal-heading [role=status] { color: #0c6558; margin: 0; font-size: 12px; font-weight: 600 }
.atc-portal-heading [role=status]:empty { display: none }
