/* Server administration inherits the established CRM shell, never a second dashboard. */
.integrated-server-settings{min-width:0;width:100%;margin-top:22px}.server-settings>h2{font-size:21px;letter-spacing:-.4px;margin:0 0 18px;color:#345b79}.server-settings .access-table-scroll{max-width:100%;overflow:auto;max-height:58vh;border:1px solid #d8e6f1;border-radius:15px;background:#f8fcffb8;margin:16px 0 25px}.server-settings .access-table{width:100%;border-collapse:collapse;min-width:700px}.server-settings .access-table th,.server-settings .access-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #dbe7f1;font-size:11px}.server-settings .access-table thead th{position:sticky;top:0;z-index:1;background:#eaf3fa;color:#6989a2;font-weight:600}.server-settings .access-table td>button{font-size:10px;min-height:30px;height:auto;padding:7px 10px;margin:3px}.server-settings .access-table select{width:100%;min-width:140px;max-width:220px;font-size:11px;height:35px;padding:6px 9px;border:1px solid #d5e4f0;border-radius:9px;color:#557b99;background:#fcfeff}.server-settings #user-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:860px;padding:22px;border:1px solid #fff;border-radius:18px;background:#f8fcffb8}.server-settings #user-form label{display:grid;gap:8px;margin:0;font-size:11px;color:#6486a0;min-width:0}.server-settings #user-form input,.server-settings #user-form select{width:100%;min-width:0;height:39px;padding:9px 11px;border:1px solid #d4e3ef;border-radius:10px;background:#fcfeff;color:#456c8b;font:inherit}.server-settings #user-form>p{grid-column:1/-1;margin:0;font-size:10px;color:#8097aa;line-height:1.6}.server-settings #user-form>button{justify-self:start;align-self:end;min-height:37px}.server-settings .access-note{font-size:11px;line-height:1.7;color:#7892a7}.server-settings .server-login-link{display:inline-flex;align-items:center;min-height:36px;padding:8px 13px;border:1px solid #c8ddeb;background:#edf5fc;border-radius:10px;color:#427599;font-size:12px;text-decoration:none}.server-settings button:focus-visible,.server-settings a:focus-visible{outline:2px solid #719fc2;outline-offset:3px}.config-tabs{max-width:100%;flex-wrap:wrap;gap:4px}.server-settings.flows-view>header{margin-bottom:14px}@media(max-width:650px){.server-settings #user-form{grid-template-columns:minmax(0,1fr);padding:16px}.server-settings #user-form>p{grid-column:auto}.server-settings .access-table th,.server-settings .access-table td{padding:10px}.integrated-server-settings{margin-top:16px}}
/* Small integration refinements: preserve the existing GBC glass surfaces. */
.live-import-note{margin:14px 0 20px;display:flex;align-items:center;flex-wrap:wrap;gap:9px 16px}.live-import-note>strong{font-size:12px}.live-import-note>p{flex:1 1 300px;margin:0;line-height:1.6;font-size:11px}.live-import-note>button{flex-shrink:0}.select-chevron svg{display:block;width:13px;height:13px}.adminmain .card{min-width:0}.adminmain .card:has(>table){overflow-x:auto}.adminmain .card>table{min-width:700px}.adminmain .card>table th{white-space:nowrap}button[aria-busy=true]{cursor:progress}button[aria-busy=true]:after{content:'';display:inline-block;flex-shrink:0;width:11px;height:11px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:gbc-save-spin .7s linear infinite}.composer textarea:disabled{opacity:.75}html[data-server-busy=true] .composer{opacity:.85}.server-settings .flow-legacy-import{margin:15px 0}.monitor-panel{min-width:0}.messages .attachment-image{max-width:min(260px,100%);height:auto}.messages audio{max-width:100%}@keyframes gbc-save-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){button[aria-busy=true]:after{animation:none;border-style:dotted}}

.server-settings #user-form [data-staff-identifiers]{display:contents}.server-settings #user-form [hidden]{display:none!important}.server-settings #user-form [data-staff-identifiers]>p{grid-column:1/-1;margin:0}
/* Profile-first account administration. Deliberately scoped to the server view. */
.server-settings .profile-directory-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.server-settings .profile-directory-header h2{margin:5px 0 6px;font-size:23px;letter-spacing:-.7px;color:var(--text,#345b79)}.server-settings .profile-directory-header p{margin:0;max-width:560px;font-size:12px;line-height:1.6;color:var(--muted,#7892a7)}.server-settings .profile-eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;color:var(--muted,#7892a7)}.server-settings svg{width:18px;height:18px;flex-shrink:0}.server-settings .profile-directory-header button{display:flex;align-items:center;gap:7px;white-space:nowrap}.server-settings .profile-workspace{display:grid;grid-template-columns:minmax(265px,.8fr) minmax(0,1.3fr);border:1px solid var(--border,#d6e4ee);border-radius:18px;overflow:hidden;background:var(--panel,#f9fcffb3);min-height:390px}.server-settings .profile-directory{min-width:0;border-right:1px solid var(--border,#d6e4ee);background:var(--surface,#edf5fb66)}.server-settings .profile-filters{padding:16px 14px 10px;display:grid;gap:9px}.server-settings .profile-filters>div{display:grid;grid-template-columns:1.15fr 1fr;gap:7px}.server-settings .profile-search{display:flex;align-items:center;gap:7px;border:1px solid var(--border,#d5e4f0);border-radius:11px;padding-left:11px;background:var(--panel,#fff9)}.server-settings .profile-search input{border:0!important;background:transparent!important;padding-left:0!important}.server-settings .profile-workspace input,.server-settings .profile-workspace select,.server-settings .profile-role-editor select{height:44px;min-width:0;max-width:100%;width:100%;border:1px solid var(--border,#d5e4f0);border-radius:9px;background:var(--panel,#fcfeff);color:var(--text,#456c8b);font:inherit;font-size:11px;padding:8px 10px}.server-settings .profile-list-caption{display:flex;justify-content:space-between;padding:4px 16px 10px;font-size:10px;font-weight:600;color:var(--muted,#7892a7)}.server-settings .profile-list-caption span{font-weight:400}.server-settings .profile-user-list{padding:0 7px;max-height:590px;overflow-y:auto}.server-settings .profile-user{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:70px;height:auto;padding:11px 9px;border:1px solid transparent;border-radius:11px;background:transparent;box-shadow:none;margin:2px 0;color:var(--text,#345b79)}.server-settings .profile-user:hover{background:#dcecf64d}.server-settings .profile-user.is-selected{border-color:var(--border,#c6dce9);background:var(--panel,#fff);box-shadow:0 3px 12px #274f7010}.server-settings .profile-avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;flex-shrink:0;font-size:11px;font-weight:700;letter-spacing:.3px;color:#508bb0;background:linear-gradient(145deg,#cde9f3aa,#e7e0fa99)}.server-settings .profile-user-copy{display:grid;gap:5px;min-width:0;flex:1}.server-settings .profile-user-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.server-settings .profile-user-copy small{font-size:10px;line-height:1.3;color:var(--muted,#7892a7)}.server-settings .profile-status{font-size:9px;white-space:nowrap;color:var(--muted,#7892a7);display:inline-flex;align-items:center;gap:4px}.server-settings .profile-status:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.server-settings .profile-status.is-active{color:#378776}.server-settings .profile-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 12px;border-top:1px solid var(--border,#dbe7f1);margin-top:10px;font-size:10px;color:var(--muted,#7892a7)}.server-settings .profile-pagination button{padding:8px;font-size:10px;min-height:44px}.server-settings .profile-detail{min-width:0;padding:22px;max-height:800px;overflow:auto}.server-settings .profile-detail-head{display:flex;gap:12px;align-items:center;margin-bottom:20px}.server-settings .profile-detail-head .profile-avatar{width:46px;height:46px;font-size:14px}.server-settings .profile-detail-head h3{font-size:18px;letter-spacing:-.4px;margin:0 0 7px;overflow-wrap:anywhere}.server-settings .profile-detail-head p{margin:0;display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted,#7892a7)}.server-settings .profile-account-controls{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.server-settings .profile-account-controls label{display:grid;gap:6px;flex:1 1 180px;font-size:10px;color:var(--muted,#7892a7)}.server-settings .profile-account-controls button{font-size:10px;min-height:44px;padding:9px}.server-settings .profile-section-title{display:flex;align-items:center;gap:7px;margin-top:23px}.server-settings h4{font-size:12px;font-weight:700;margin:0}.server-settings .profile-permissions>.access-note{margin:8px 0 14px}.server-settings .profile-permission-group{border-top:1px solid var(--border,#dbe7f1)}.server-settings .profile-permission-group summary,.server-settings .profile-shared-editor>summary,.server-settings .profile-create>summary{min-height:48px;cursor:pointer;align-content:center;font-size:11px;font-weight:650;color:var(--text,#456c8b)}.server-settings .profile-permission-group summary::marker{color:#83a1b7}.server-settings .profile-group-count{float:right;font-size:9px;font-weight:400;color:var(--muted,#7892a7);margin-top:2px}.server-settings .profile-permission-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #8eacc515;font-size:11px;min-height:49px}.server-settings .profile-permission-row>span:first-child{min-width:0;line-height:1.5}.server-settings .profile-permission-row small{display:block;font-size:9px;color:var(--muted,#7892a7);line-height:1.5;margin-top:2px}.server-settings .profile-access-state{white-space:nowrap;font-size:9px;color:var(--muted,#7892a7)}.server-settings .profile-access-state.is-allowed{color:#378776}.server-settings .profile-permission-row select{width:145px;flex-shrink:0}.server-settings .profile-shared-editor{margin-top:14px;border-top:1px dashed var(--border,#c9dce9)}.server-settings .profile-shared-warning{display:flex;gap:9px;padding:12px;margin:0 0 12px;background:#c2a15c12;border:1px solid #bf9b562d;border-radius:10px;color:var(--text,#79633b);font-size:11px;line-height:1.6}.server-settings .profile-shared-warning p{margin:0}.server-settings .profile-individual{border-top:1px solid var(--border,#dbe7f1);padding-top:18px;margin-top:20px;font-size:11px}.server-settings .profile-authority{display:flex;align-items:center;gap:10px;min-height:44px;line-height:1.5}.server-settings .profile-authority input{width:20px;height:20px;flex-shrink:0}.server-settings .profile-empty{min-height:330px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--muted,#7892a7)}.server-settings .profile-empty>svg{width:32px;height:32px;margin-bottom:8px;opacity:.55}.server-settings .profile-empty h3{font-size:15px;margin:10px 0}.server-settings .profile-empty p{font-size:11px;line-height:1.8;max-width:250px;margin:0}.server-settings .profile-back{display:none}.server-settings .profile-no-results,.server-settings .profile-policy-unavailable{font-size:11px;line-height:1.7;padding:15px;color:var(--muted,#7892a7)}.server-settings .profile-create{margin-top:18px;border-top:1px solid var(--border,#dbe7f1)}.server-settings .profile-create>summary{font-size:12px}.server-settings #user-form{max-width:none;padding:16px;gap:12px}.server-settings #user-form input,.server-settings #user-form select,.server-settings #user-form>button{min-height:44px;height:auto}.server-settings .profile-role-editor{max-width:760px}.server-settings .profile-role-editor>label{display:grid;gap:8px;font-size:11px;margin-bottom:16px;max-width:310px}.server-settings .profile-workspace button:disabled{opacity:.45;cursor:not-allowed}.server-settings .profile-workspace :focus-visible{outline:2px solid #719fc2;outline-offset:2px}
@media(max-width:900px){.server-settings .profile-workspace{grid-template-columns:minmax(240px,.85fr) minmax(0,1fr)}.server-settings .profile-detail{padding:16px}.server-settings .profile-user{gap:7px}.server-settings .profile-user>.profile-status{font-size:8px}}
@media(max-width:700px){.server-settings .profile-directory-header{align-items:start;gap:10px}.server-settings .profile-directory-header h2{font-size:20px}.server-settings .profile-directory-header p{font-size:11px}.server-settings .profile-directory-header>button{font-size:0;padding:10px;min-height:44px;min-width:44px;gap:0}.server-settings .profile-directory-header>button svg{width:21px;height:21px}.server-settings .profile-workspace{display:block;min-height:0}.server-settings .profile-directory{border:0}.server-settings .profile-workspace:not(.has-selection) .profile-detail{display:none}.server-settings .profile-workspace.has-selection .profile-directory{display:none}.server-settings .profile-detail{max-height:none;overflow:visible;padding:14px}.server-settings .profile-back{display:flex;align-items:center;gap:4px;background:transparent;border:0;box-shadow:none;margin:0 0 14px -7px;font-size:11px;min-height:44px}.server-settings .profile-user-list{max-height:none}.server-settings .profile-user{min-height:71px}.server-settings .profile-user>.profile-status{font-size:9px}.server-settings .profile-group-count{font-size:8px}.server-settings .profile-permission-row select{width:119px;font-size:10px}.server-settings .profile-permission-row{gap:8px}.server-settings .profile-detail-head h3{font-size:16px}.server-settings .profile-permission-group summary{font-size:10px}.server-settings .profile-eyebrow{font-size:8px;letter-spacing:1.1px}.server-settings .profile-create #user-form{padding:12px}.server-settings .profile-shared-warning{padding:10px;font-size:10px}}
.server-settings{--text:var(--panel-ink,#253447);--border:var(--panel-line,#d5dce2);--panel:var(--panel-surface,#fffffdd1);--surface:var(--panel-well,#e9edef)}.server-settings .select-trigger{min-height:44px;height:auto}.server-settings .profile-permission-row>.select-menu{width:145px;flex-shrink:0;min-width:0}.server-settings .profile-permission-row .select-trigger{font-size:10px}.server-settings .profile-filters .select-menu{min-width:0;max-width:100%}.server-settings .profile-filters .select-trigger{width:100%;font-size:10px}.server-settings .profile-filters .select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-settings .profile-directory-header>button{min-height:44px}@media(max-width:700px){.server-settings .profile-permission-row>.select-menu{width:119px}}
.server-settings .profile-permission-row>.select-trigger{width:145px;flex-shrink:0;font-size:10px}.server-settings .profile-filters>div>.select-trigger{min-width:0;width:100%;font-size:10px}.server-settings .profile-account-controls label>.select-trigger{width:100%}.server-settings .profile-role-editor>label>.select-trigger{width:100%}@media(max-width:700px){.server-settings .profile-permission-row>.select-trigger{width:119px}}
@media(max-width:700px){.config-tabs:has(+.integrated-server-settings){display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:5px;gap:5px;scrollbar-width:thin}.config-tabs:has(+.integrated-server-settings)>button{flex:0 0 auto;min-height:44px;white-space:nowrap;font-size:11px;padding:9px 12px}}
/* Disclosure and small-text accessibility polish. */
.server-settings .profile-permission-group>summary,.server-settings .profile-shared-editor>summary,.server-settings .profile-create>summary{display:flex;align-items:center;gap:8px;list-style:none;font-size:12px;line-height:1.5;color:var(--panel-ink,#253447)}.server-settings .profile-permission-group>summary::-webkit-details-marker,.server-settings .profile-shared-editor>summary::-webkit-details-marker,.server-settings .profile-create>summary::-webkit-details-marker{display:none}.server-settings .profile-permission-group>summary::marker,.server-settings .profile-shared-editor>summary::marker,.server-settings .profile-create>summary::marker{content:''}.server-settings .profile-permission-group>summary>span:first-child,.server-settings .profile-shared-editor>summary>span:first-child,.server-settings .profile-create>summary>span:first-child{flex:1;min-width:0}.server-settings .profile-group-count{float:none;flex-shrink:0;margin:0;font-size:11px;font-weight:500;color:#536477;white-space:nowrap;font-variant-numeric:tabular-nums}.server-settings svg.profile-disclosure-chevron{width:14px;height:14px;flex-shrink:0;color:#536477;transition:transform 150ms ease}.server-settings details[open]>summary>.profile-disclosure-chevron{transform:rotate(90deg)}.server-settings .access-note,.server-settings .profile-permission-row small,.server-settings .profile-account-controls label,.server-settings .profile-user-copy small,.server-settings .profile-list-caption,.server-settings .profile-pagination,.server-settings .profile-policy-unavailable{font-size:11px;color:#536477}.server-settings .profile-access-state{font-size:11px;color:#536477}.server-settings .profile-access-state.is-allowed,.server-settings .profile-status.is-active{color:#176b66}.server-settings .profile-status,.server-settings .profile-user>.profile-status{font-size:11px}.server-settings .profile-permission-row{font-size:12px}.server-settings .profile-permission-row small{font-size:11px}.server-settings .profile-shared-warning{font-size:11px;color:#536477}.server-settings .profile-user-copy small{line-height:1.5}.server-settings .profile-eyebrow{font-size:10px;color:#536477}.server-settings #user-form label{color:#536477}.server-settings .profile-directory-header h2{margin-bottom:0}@media(max-width:700px){.server-settings .profile-permission-group>summary{font-size:11px}.server-settings .profile-user{gap:7px}.server-settings .profile-user-copy strong{font-size:12px}.server-settings .profile-user>.profile-status{font-size:10px}.server-settings .profile-list-caption>span{font-size:10px}.server-settings .profile-group-count{font-size:11px}.server-settings .profile-shared-editor>summary{font-size:11px}.server-settings .profile-eyebrow{font-size:9px;letter-spacing:.8px}}@media(prefers-reduced-motion:reduce){.server-settings svg.profile-disclosure-chevron{transition:none}}
/* Account actions share the select's control row, never its label baseline. */
.server-settings .profile-account-controls{display:block}.server-settings .profile-account-controls>label{display:block;margin:0 0 8px;line-height:16px;font-size:11px}.server-settings .profile-account-actions{display:flex;align-items:center;gap:8px;min-width:0}.server-settings .profile-role-field{flex:1;min-width:0}.server-settings .profile-role-field>select,.server-settings .profile-role-field>.select-trigger,.server-settings .profile-account-actions>.profile-action-button{box-sizing:border-box;height:44px;min-height:44px;max-height:44px;margin:0;line-height:1.3;border-radius:10px}.server-settings .profile-role-field>.select-trigger{width:100%;min-width:0;padding:0 12px;display:flex;align-items:center}.server-settings .profile-account-actions>.profile-action-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:0 13px;font-size:11px;white-space:nowrap;border:1px solid #235da5;background:#235da5;color:#fff;box-shadow:0 2px 5px #183b6418,inset 0 1px 0 #ffffff1a}.server-settings .profile-account-actions>.profile-action-caution{background:#3d5879;border-color:#3d5879}.server-settings .profile-directory-header>[data-create-account],.server-settings #user-form>button,.server-settings .profile-pagination>button:not(:disabled){background:#235da5;border-color:#235da5;color:#fff;box-shadow:0 2px 5px #183b6418,inset 0 1px 0 #ffffff1a}.server-settings .profile-back{color:#235da5;background:#e5edf7;border:1px solid #ccdaed;border-radius:9px;margin-left:0;padding:0 10px}.server-settings .profile-action-button:hover:not(:disabled),.server-settings .profile-directory-header>[data-create-account]:hover,.server-settings #user-form>button:hover:not(:disabled),.server-settings .profile-pagination>button:hover:not(:disabled){background:#194b88;border-color:#194b88}.server-settings .profile-account-actions>.profile-action-caution:hover:not(:disabled){background:#2b425e;border-color:#2b425e}.server-settings .profile-back:hover{background:#d8e5f5}.server-settings .profile-action-button:focus-visible,.server-settings [data-create-account]:focus-visible,.server-settings .profile-back:focus-visible,.server-settings .profile-pagination>button:focus-visible,.server-settings #user-form>button:focus-visible{outline:3px solid #73a6df;outline-offset:3px}.server-settings .profile-account-actions>.profile-action-button:disabled,.server-settings #user-form>button:disabled,.server-settings .profile-pagination>button:disabled{background:#e2e7ed;border-color:#d2dbe5;color:#69798b;box-shadow:none;opacity:1;cursor:not-allowed}.server-settings .profile-role-field>.select-trigger:disabled{background:#edf0f3;color:#69798b;opacity:1}.server-settings .profile-directory-header>[data-create-account]{height:44px;min-height:44px}.server-settings .profile-user.is-selected{border-color:#98b8de;background:#eaf1fa;box-shadow:inset 3px 0 0 #235da5}
@media(max-width:1000px){.server-settings .profile-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.server-settings .profile-role-field{grid-column:1/-1}.server-settings .profile-account-actions>.profile-action-button{width:100%;padding:0 8px;min-width:0;font-size:11px}.server-settings .profile-account-actions>.profile-action-button:only-of-type{grid-column:1/-1}}
/* Exceptional delegation is separate from the role permission model. */
.server-settings .profile-section-title h4{min-width:0;line-height:1.5}.server-settings .profile-security{padding-top:0}.server-settings .profile-security>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:48px;font-size:12px;font-weight:650;line-height:1.5;cursor:pointer}.server-settings .profile-security>summary>span{flex:1;min-width:0}.server-settings .profile-security>summary::-webkit-details-marker{display:none}.server-settings .profile-security>summary::marker{content:''}.server-settings .profile-security>h4{margin-top:10px}.server-settings .profile-security[open]{padding-bottom:4px}
.server-settings .profile-open-role{display:flex;align-items:center;justify-content:center;min-height:44px;height:auto;width:100%;margin-top:16px;padding:10px 12px;border:1px solid #235da5;background:#235da5;color:#fff;border-radius:10px;font-size:11px;line-height:1.5;box-shadow:0 2px 5px #183b6418}.server-settings .profile-open-role:hover{background:#194b88;border-color:#194b88}.server-settings .profile-open-role:focus-visible{outline:3px solid #73a6df;outline-offset:3px}
