/* Both account and group entry points share the same scoped dialog layout. */
dialog:has(#waf-form){width:650px;max-width:calc(100vw - 40px);max-height:90vh;padding:0;border:0;border-radius:8px;color:#39424e;box-shadow:0 16px 64px #17202f33}
dialog:has(#waf-form) .modal-head,dialog:has(#waf-form)>header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:18px 24px;border-bottom:1px solid #e8eaee;font-size:16px;font-weight:600}
dialog:has(#waf-form) .modal-head h2{margin:0;font-size:16px;font-weight:600}
dialog:has(#waf-form) #wg-close{border:0;background:none;color:#9ba1aa;padding:0 2px;min-width:0;font-size:22px;line-height:1;font-weight:400}
dialog:has(#waf-form) #modal-body,dialog:has(#waf-form) .wg-content{padding:0 24px 20px;max-height:calc(90vh - 134px);overflow:auto;box-sizing:border-box}
dialog:has(#waf-form) .modal-footer,dialog:has(#waf-form)>footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:15px 24px;border-top:1px solid #e8eaee;background:#fdfdfe}
#waf-form{font-size:13px;color:#535e6c}
#waf-form [hidden]{display:none!important}
#waf-form .waf-tabs{display:flex;gap:28px;border-bottom:1px solid #e8eaee;margin:0 0 22px;height:57px;box-sizing:border-box;align-items:stretch}
#waf-form .waf-tabs button{position:relative;min-width:56px;border:0;border-radius:0;background:none;padding:0 2px;color:#7b8490;font:inherit;cursor:pointer;box-shadow:none}
#waf-form .waf-tabs button[aria-selected=true]{color:#ed8b00;font-weight:500}
#waf-form .waf-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#ff9600;border-radius:2px}
#waf-form .waf-tabs button:hover{color:#ed8b00}
#waf-form .waf-tabs button:focus-visible{outline:2px solid #ffbc63;outline-offset:-3px}
#waf-form .waf-fields{min-height:344px;display:flex;flex-direction:column;gap:18px}
#waf-form .waf-field>label{display:flex;align-items:center;margin:0 0 8px;line-height:20px;text-align:left;color:#39424e;font-weight:500}
#waf-form em{font-style:normal;color:#e65c54;margin-left:4px}
#waf-form .waf-optional{color:#969eaa;font-weight:400;margin-left:2px;font-size:12px}
#waf-form .waf-label-hint{margin-left:auto;color:#929aa6;font-size:12px;font-weight:400}
#waf-form input,#waf-form textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #dce1e7;border-radius:4px;padding:9px 12px;color:#535e6c;background:#fff;font:inherit;line-height:20px;height:40px;transition:border-color .15s,box-shadow .15s}
#waf-form textarea{resize:none;height:86px}
#waf-form #waf-phone-batch{height:130px;font-variant-numeric:tabular-nums;line-height:24px}
#waf-form input:hover,#waf-form textarea:hover{border-color:#b7bfca}
#waf-form input:focus,#waf-form textarea:focus{outline:none;border-color:#ffad38;box-shadow:0 0 0 2px #ff960012}
#waf-form input::placeholder,#waf-form textarea::placeholder{color:#a3aab5}
#waf-form .waf-meta{display:flex;justify-content:space-between;align-items:start;gap:12px;color:#929aa6;font-size:12px;line-height:18px;margin-top:6px;font-variant-numeric:tabular-nums}
#waf-form .waf-meta-end{justify-content:flex-end}
#waf-number-count{white-space:nowrap}
#waf-form .waf-over-limit{color:#d84b46}
#waf-error{color:#d84b46;white-space:pre-wrap;margin:12px 0 0;line-height:1.7}
#waf-submit,#waf-cancel{box-sizing:border-box;min-width:85px;height:36px;border-radius:4px;padding:0 16px;font-size:13px;line-height:34px;cursor:pointer}
#waf-submit{background:#ff9600;border:1px solid #ff9600;color:white}
#waf-submit:hover{background:#f28e00;border-color:#f28e00}
#waf-submit:disabled{opacity:.6;cursor:wait}
#waf-cancel{background:white;border:1px solid #dce1e7;color:#535e6c}
#waf-cancel:hover{border-color:#ffad38;color:#ed8b00}
@media(max-width:520px){dialog:has(#waf-form){max-width:calc(100vw - 24px)}#waf-form .waf-meta{flex-wrap:wrap}#waf-form .waf-label-hint{font-size:11px}#waf-form .waf-fields{min-height:344px}}
