dialog.customer-role-dialog{box-sizing:border-box;width:min(880px,calc(100vw - 40px));max-width:880px;height:fit-content;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #ffffffc9;border-radius:22px;background:#fff;color:#25364b;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 32px 100px #12223e40,0 0 0 1px #172f4712;overflow:hidden}
.customer-role-dialog::backdrop{background:#14223866;backdrop-filter:blur(5px)}
.customer-role-dialog *{box-sizing:border-box}
.customer-role-dialog form[data-customer-role-form]{display:flex;flex-direction:column;width:100%;max-width:none;max-height:calc(100dvh - 50px);gap:0;margin:0;padding:0;background:transparent;border:0;box-shadow:none}
.customer-role-dialog .role-panel-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:20px;padding:24px 30px;border-bottom:1px solid #eaf0f5;background:#fff}
.customer-role-dialog .role-heading{display:flex;align-items:center;gap:14px;min-width:0}.customer-role-dialog .role-symbol{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #dce6ff;border-radius:14px;background:linear-gradient(145deg,#f5f8ff,#e9efff);color:#5165d8}.customer-role-dialog .role-symbol svg{width:24px;height:24px}
.customer-role-dialog .role-eyebrow{display:block;color:#8390a5;font-size:10px;letter-spacing:1.5px;font-weight:600}.customer-role-dialog h2#customer-role-title{margin:4px 0 0;padding:0;font-size:22px;line-height:1.3;font-weight:650;color:#1c2d46;letter-spacing:-.4px;word-break:normal}
.customer-role-dialog button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;min-height:40px;margin:0;padding:10px 18px;border:1px solid transparent;border-radius:10px;font:600 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;cursor:pointer;transition:background .15s,box-shadow .15s;letter-spacing:0}
.customer-role-dialog button.role-close{gap:10px;min-height:34px;padding:6px 10px;background:transparent;color:#8591a3;border:0;box-shadow:none;font-size:12px;font-weight:400}.customer-role-dialog .role-close span:last-child{font-size:23px;line-height:1}.customer-role-dialog button.role-close:hover{background:#f1f4f8;color:#233750}
.customer-role-dialog .role-panel-body{min-height:0;overflow:auto;padding:26px 30px 22px;background:linear-gradient(180deg,#f8fafdf0,#fff 200px)}
.customer-role-dialog .role-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.customer-role-dialog .role-intro h3{margin:0 0 7px;font-size:16px;font-weight:600;color:#34445b;line-height:1.5}.customer-role-dialog .role-intro p{margin:0;color:#8590a1;font-size:12px;line-height:1.7}.customer-role-dialog .role-scope{flex:none;margin-top:3px;padding:4px 9px;border:1px solid #dcebe6;border-radius:6px;color:#408372;background:#f4faf7;font-size:10px;white-space:nowrap}
.customer-role-dialog .role-tags{display:flex;gap:8px;margin:18px 0}.customer-role-dialog .role-tags span{padding:4px 10px;border-radius:6px;background:#edf1f8;color:#6c7890;font-size:11px}
.customer-role-dialog .role-editor{overflow:hidden;border:1px solid #dce3ee;border-radius:12px;box-shadow:0 2px 6px #1d345505;background:#fff;transition:border-color .15s,box-shadow .15s}.customer-role-dialog .role-editor:focus-within{border-color:#9baee8;box-shadow:0 0 0 3px #667bd80c}
.customer-role-dialog .role-editor-bar{display:flex;align-items:center;justify-content:space-between;padding:11px 17px;background:#fafbfd;border-bottom:1px solid #edf0f5}.customer-role-dialog .role-editor-bar label{display:block;margin:0;padding:0;color:#52627b;font-size:12px;font-weight:600}.customer-role-dialog .role-count{color:#99a3b2;font:11px/1.5 ui-monospace,monospace;font-variant-numeric:tabular-nums}
.customer-role-dialog textarea#customer-role-rules{display:block;width:100%;height:clamp(200px,35dvh,340px);min-height:180px;max-height:none;margin:0;padding:18px 20px;border:0;border-radius:0;background:#fff;color:#45536a;box-shadow:none;outline:0;resize:none;font:13px/1.95 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.1px;scrollbar-width:thin;scrollbar-color:#d6deeb transparent}
.customer-role-dialog .customer-role-help{display:flex;gap:7px;margin:12px 0 0;color:#939dad;font-size:11px;line-height:1.7}.customer-role-dialog .customer-role-help>span:first-child{flex:none}
.customer-role-dialog .role-panel-footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;padding:18px 30px;background:#fff;border-top:1px solid #eaf0f5}.customer-role-dialog .role-footer-note{font-size:11px;color:#9aa4b3}.customer-role-dialog .role-footer-actions{display:flex;gap:10px}.customer-role-dialog button.role-reset{background:#fff;border-color:#e3e8f0;box-shadow:none;color:#6e7b90;font-weight:500}.customer-role-dialog button.role-reset:hover{background:#f7f9fc;border-color:#ced8e7}.customer-role-dialog button[data-save-customer-role]{background:#5368d8;color:#fff;box-shadow:0 4px 10px #5368d824;min-width:110px}.customer-role-dialog button[data-save-customer-role]:hover{background:#4357c4}.customer-role-dialog button:focus-visible{outline:2px solid #6b7bd0;outline-offset:3px}.customer-role-dialog button:disabled{opacity:.5;cursor:not-allowed}
.customer-role-dialog [data-role-status]{margin:4px 0 0;font-size:11px;color:#408372;line-height:1.5}.customer-role-dialog [data-role-status]:empty{display:none}.customer-role-dialog .customer-role-error{color:#b94d57;font-size:12px}
@media(max-width:600px){dialog.customer-role-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:18px}.customer-role-dialog form[data-customer-role-form]{max-height:calc(100dvh - 26px)}.customer-role-dialog .role-panel-head{padding:18px;gap:8px}.customer-role-dialog .role-symbol{width:36px;height:36px;border-radius:11px}.customer-role-dialog .role-heading{gap:10px}.customer-role-dialog h2#customer-role-title{font-size:18px}.customer-role-dialog .role-eyebrow{font-size:8px;letter-spacing:1px}.customer-role-dialog .role-panel-body{padding:20px 18px}.customer-role-dialog .role-intro{display:block}.customer-role-dialog .role-scope{display:none}.customer-role-dialog .role-intro h3{font-size:14px}.customer-role-dialog .role-tags{gap:6px;margin:14px 0}.customer-role-dialog .role-tags span{font-size:10px;padding:4px 7px}.customer-role-dialog textarea#customer-role-rules{height:32dvh;padding:14px;font-size:16px;line-height:1.75}.customer-role-dialog .role-panel-footer{padding:14px 18px;flex-wrap:wrap;gap:10px}.customer-role-dialog .role-footer-actions{width:100%}.customer-role-dialog .role-footer-actions button{flex:1;padding:10px 12px}.customer-role-dialog .role-footer-note{font-size:10px}}
