.crm-access{--access-accent:var(--kc-section-action,var(--crm-primary,#0aada9));max-width:1600px;color:var(--crm-text,#172033)}
.crm-access-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--crm-border,#dce3eb);padding-bottom:22px;margin-bottom:22px}
.crm-access h1{font-size:25px;margin:0 0 10px}.crm-access p{color:var(--crm-muted,#718096);line-height:1.7;font-size:13px;margin:6px 0}
.crm-access-badge,.crm-role-badge{display:inline-flex;align-items:center;border:1px solid var(--crm-border,#dce3eb);background:var(--crm-surface,#fff);border-radius:99px;padding:7px 12px;font-size:11px;white-space:nowrap}
.crm-access-banner{display:flex;gap:16px;padding:20px 24px;border:1px solid color-mix(in srgb,var(--access-accent) 25%,#fff);border-radius:20px;background:color-mix(in srgb,var(--access-accent) 6%,var(--crm-surface,#fff));margin:22px 0;color:var(--access-accent)}
.crm-access-banner>span{font-size:26px}.crm-access-banner p{margin-bottom:0}
.crm-access-card{padding:24px;border:1px solid var(--crm-border,#dce3eb);border-radius:24px;background:var(--crm-surface,#fff);box-shadow:0 8px 28px #17203306;min-width:0}
.crm-access-tabs{display:flex;gap:5px;background:var(--crm-background,#f4f6f7);border-radius:20px;padding:5px;overflow-x:auto}
.crm-access-tabs button{flex:1;min-width:140px;min-height:48px;padding:12px 16px;border-radius:17px;color:var(--crm-muted,#64748b);white-space:nowrap;background:transparent;border:0}
.crm-access-tabs button[aria-selected=true]{background:var(--crm-surface,#fff);box-shadow:0 3px 10px #17203316;color:var(--crm-text,#172033)}
.crm-access-panel{padding:28px 8px 8px;min-width:0}.crm-access-panel[hidden]{display:none!important}.crm-access-panel .crm-settings{max-width:none}.crm-access-panel .crm-intro h1{font-size:21px}
.crm-access-panel h2{font-size:20px;margin:0 0 7px}.crm-access-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 22px}
.crm-access .crm-access-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crm-access .crm-access-toolbar button{border:1px solid var(--crm-border,#cbd5e1);border-radius:16px;padding:11px 16px;background:var(--crm-surface,#fff);min-height:44px}
.crm-access-kicker{font-size:11px;letter-spacing:.08em;color:var(--crm-muted,#718096);margin-bottom:8px}
.crm-role-picker{display:flex;align-items:center;gap:12px;margin:12px 0}.crm-role-picker select{min-height:42px;border:1px solid var(--crm-border,#dce3eb);border-radius:12px;padding:8px 14px;background:var(--crm-surface,#fff);max-width:100%}
.crm-role-cards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(175px,1fr);overflow-x:auto;gap:12px;border-block:1px solid var(--crm-border,#e2e8f0);padding:18px 0;margin:16px 0 24px}
.crm-access .crm-role-card{display:flex;flex-direction:column;text-align:left;gap:16px;padding:20px 16px;min-height:128px;border-radius:20px;border:1px solid var(--crm-border,#d8e1ea);background:var(--crm-surface,#fff);color:inherit}
.crm-access .crm-role-card[aria-pressed=true]{border-color:var(--access-accent);background:color-mix(in srgb,var(--access-accent) 8%,var(--crm-surface,#fff))}
.crm-role-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.crm-role-card small{font-size:11px;line-height:1.7;color:var(--crm-muted,#718096)}.crm-role-badge{padding:3px 9px;font-size:10px}
.crm-permission-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.crm-permission-caption h3{font-size:16px;margin:0}
.crm-access .crm-table-scroll{border:1px solid var(--crm-border,#dce3eb);border-radius:20px;overflow:auto}
.crm-access .crm-master-table{min-width:850px}.crm-access .crm-master-table th{background:var(--crm-background,#f5f7f8);font-size:12px;white-space:nowrap;color:var(--crm-muted,#64748b);padding:18px 14px}
.crm-access .crm-master-table td{padding:17px 14px;border-bottom:1px solid var(--crm-border,#e2e8f0);font-size:13px}.crm-access .crm-master-table tr:last-child td{border-bottom:0}
.crm-access .crm-permission-table{min-width:1080px}.crm-access .crm-permission-table th:not(:first-child),.crm-access .crm-permission-table td:not(:first-child){text-align:center}.crm-access .crm-permission-table th:first-child{min-width:170px}
.crm-access .crm-toggle{appearance:none!important;display:inline-block;position:relative;vertical-align:middle;width:38px!important;min-width:38px;height:22px!important;min-height:22px!important;padding:0!important;border:0!important;border-radius:99px!important;background:#cbd5e1;cursor:pointer;transition:background .15s}
.crm-access .crm-toggle:before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #17203322;transition:transform .15s}.crm-access .crm-toggle:checked{background:var(--access-accent)}.crm-access .crm-toggle:checked:before{transform:translateX(16px)}.crm-access .crm-toggle:disabled{opacity:.5;cursor:not-allowed}
.crm-access .crm-actions .crm-save{background:var(--access-accent);border-color:var(--access-accent);color:#fff}.crm-access-role-editor{margin-bottom:28px;padding:20px;border:1px solid var(--crm-border,#dce3eb);border-radius:18px;background:var(--crm-background,#f8fafc)}
.crm-access-role-editor .crm-intro,.crm-access-role-editor .crm-table-scroll,.crm-access-role-editor .crm-settings>.crm-actions{display:none}.crm-access-role-editor .crm-master-form{margin:0}
.crm-access .crm-dashboard-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.crm-dashboard-options .crm-field{gap:16px;padding:20px;border-radius:18px}.crm-dashboard-options label{display:flex;align-items:center;gap:10px}.crm-dashboard-options input[type=radio]{width:18px;min-height:18px;accent-color:var(--access-accent)}
.crm-access .crm-access-readonly{font-size:12px;color:var(--crm-muted,#718096)}
@media(max-width:640px){.crm-access-card{padding:12px;border-radius:18px}.crm-access-panel{padding:22px 0 0}.crm-access-heading,.crm-access-section-head{align-items:flex-start;flex-direction:column}.crm-access-badge{display:none}.crm-role-cards{grid-auto-columns:160px;gap:8px}.crm-access .crm-role-card{padding:14px 10px;min-height:140px}.crm-role-card-top{align-items:flex-start;flex-direction:column}.crm-access-banner{padding:16px}.crm-permission-caption{align-items:flex-start;flex-direction:column}.crm-access-role-editor{padding:8px}.crm-access .crm-master-table th,.crm-access .crm-master-table td{padding:14px 12px}.crm-role-picker{flex-direction:column;align-items:stretch}}
@media(prefers-reduced-motion:reduce){.crm-access .crm-toggle,.crm-access .crm-toggle:before{transition:none}}
