/* Shared brand dialogs: precise, neutral reading surfaces with the homepage purple used for actions. */
.brand-dialog{--dialog-purple:#713cce;--dialog-purple-dark:#5e2eaf;--dialog-ink:#202027;--dialog-muted:#62616b;--dialog-line:#e8e6ed;font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:rgb(25 18 36 / 48%)!important;backdrop-filter:blur(8px);padding:24px;overflow-y:auto}
.brand-dialog .brand-dialog-card{position:relative;width:min(680px,100%);max-width:680px;max-height:calc(100dvh - 48px);margin:auto;padding:0;overflow:auto;background:#fff;color:var(--dialog-ink);border:1px solid #ebe8ef;border-radius:14px;box-shadow:0 24px 68px #1a112e40;font-family:inherit;animation:brand-dialog-in .24s ease-out both}
.brand-unbind-dialog .brand-dialog-card{width:min(540px,100%);max-width:540px}.brand-buy-dialog .brand-dialog-card{width:min(720px,100%);max-width:720px}.brand-payment-dialog .brand-dialog-card{width:min(620px,100%);max-width:620px}
.brand-dialog .brand-dialog-header{position:relative;display:flex;align-items:center;min-height:76px;padding:20px 26px;border-bottom:1px solid var(--dialog-line);overflow:hidden}
.brand-dialog .brand-dialog-title{position:relative;z-index:1;display:flex;align-items:center;gap:11px;margin:0;font-size:22px;font-weight:650;line-height:1.5;letter-spacing:-.3px;color:var(--dialog-ink)}
.brand-dialog .brand-dialog-title-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:#f1ebfa;color:var(--dialog-purple)}
.brand-dialog .brand-dialog-title-icon svg,.brand-dialog .brand-dialog-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.brand-dialog .brand-dialog-motif{position:absolute;right:68px;top:16px;width:92px;color:#8f60c6;opacity:.25;pointer-events:none}
.brand-dialog .brand-dialog-motif svg{width:100%;height:auto;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.brand-dialog .brand-dialog-close{position:relative;z-index:1;margin-left:auto;width:34px;height:34px;min-height:34px;border-radius:7px;color:#625b6b;background:transparent}
.brand-dialog .brand-dialog-close:hover{background:#f4f1f7;color:#4b255f}
.brand-dialog .brand-dialog-intro{padding:0 26px;margin:18px 0 0;color:var(--dialog-muted);font-size:14px;line-height:1.8}
.brand-dialog .brand-dialog-fields{display:grid;gap:16px;padding:18px 26px 0}
.brand-dialog .brand-dialog-field{display:grid;gap:7px;min-width:0}
.brand-dialog .dui-label,.brand-dialog .youfeng-label{padding:0;min-height:0;font-size:13px;font-weight:550;line-height:1.7;color:#514b59}
.brand-dialog :is(.dui-input,.dui-select,.dui-textarea,.youfeng-input,.youfeng-textarea){min-height:42px;font:400 14px/1.65 Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--dialog-ink);background:#fff;border:1px solid #dcd9e3;border-radius:8px;box-shadow:none}
.brand-dialog :is(.dui-input,.dui-select,.dui-textarea,.youfeng-input,.youfeng-textarea)::placeholder{color:#847e8b}
.brand-dialog :is(.dui-input,.dui-select,.dui-textarea,.youfeng-input,.youfeng-textarea):focus{border-color:#9d72d4;outline:2px solid #e6d8f6;outline-offset:1px;box-shadow:none}
.brand-dialog .brand-dialog-inline-row,.brand-dialog .youfeng-upgrade-query-row{display:flex;align-items:center;gap:8px;min-width:0}
.brand-dialog .brand-dialog-inline-row>input,.brand-dialog .youfeng-upgrade-query-row>input{flex:1;min-width:0}
.brand-dialog .dui-btn,.brand-dialog .youfeng-btn{min-height:42px;font:550 14px/1.65 Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;border-radius:8px;box-shadow:none;transition:background-color .18s,border-color .18s,color .18s}
.brand-dialog .dui-btn-outline,.brand-dialog .youfeng-btn-secondary{color:#514b59;border-color:#cbc6d2;background:#fff}
.brand-dialog .dui-btn-outline:hover,.brand-dialog .youfeng-btn-secondary:hover{color:#5e2eaf;border-color:#af8bd7;background:#f7f2fc}
.brand-dialog .dui-btn-primary,.brand-dialog .youfeng-btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;color:#fff;background:#713cce;border-color:#713cce}
.brand-dialog .dui-btn-primary:hover,.brand-dialog .youfeng-btn-primary:hover{background:#5e2eaf;border-color:#5e2eaf}
.brand-dialog .dui-btn-primary:disabled,.brand-dialog .youfeng-btn-primary:disabled{color:#706a77;background:#e7e4ea;border-color:#e7e4ea;opacity:1}
.brand-dialog .dui-btn-primary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.brand-dialog .brand-dialog-actions,.brand-dialog .youfeng-actions{display:flex;justify-content:flex-end;gap:10px;margin:22px 26px 0;padding-top:18px;border-top:1px solid var(--dialog-line)}
.brand-dialog .brand-dialog-actions-full{display:block}.brand-dialog .brand-dialog-actions-full .dui-btn{width:100%}
.brand-unbind-dialog .brand-dialog-actions{margin-bottom:26px}
.brand-dialog .brand-dialog-status{min-height:24px;margin:14px 26px 24px;padding-top:14px;border-top:1px solid var(--dialog-line);font-size:13px;line-height:1.8;color:#706977}
.brand-dialog .brand-dialog-results{display:grid;gap:12px;margin:0 26px 26px}
.brand-dialog .brand-dialog-results .dui-card{border-color:var(--dialog-line);border-radius:8px;background:#fafafa;box-shadow:none}
.brand-dialog .brand-unbind-flow{display:flex;align-items:center;gap:9px;margin:16px 26px 0;padding:10px 12px;color:#695779;background:#fafafa;border:1px solid var(--dialog-line);border-radius:8px;font-size:12px;line-height:1.6}
.brand-dialog .brand-unbind-flow span{display:flex;align-items:center;gap:6px;white-space:nowrap}.brand-dialog .brand-unbind-flow span:first-child{color:#6430b5;font-weight:550}.brand-dialog .brand-unbind-flow svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.brand-dialog .brand-unbind-flow i{width:16px;height:1px;flex:1;background:#d9d2e1}
/* Purchase-specific hierarchy: the notice and chosen plan are distinct from data entry. */
.brand-dialog .youfeng-license-notice{display:flex;align-items:flex-start;gap:10px;margin:18px 26px 0;padding:10px 13px;color:#5e2eaf;background:#f4effa;border:1px solid #e6d8f6;border-radius:8px;font-size:13px;line-height:1.8}
.brand-dialog .youfeng-license-notice:before{content:"";flex:0 0 17px;width:17px;height:17px;margin-top:2px;background:center/17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23713cce' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6l8-3Z'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E")}
.brand-dialog .youfeng-modal-body{padding:0 26px 26px}.brand-dialog .youfeng-plan-wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:20px 0 2px}.brand-dialog .youfeng-plan-title{font-size:16px;line-height:1.7;font-weight:550;color:var(--dialog-ink)}.brand-dialog .youfeng-plan-price{font-size:22px;font-weight:650;line-height:1.3;color:var(--dialog-purple);font-variant-numeric:tabular-nums}.brand-dialog .youfeng-plan-price__due{font-size:13px;color:var(--dialog-muted)}
.brand-dialog .youfeng-field{gap:7px;margin:17px 0}.brand-dialog .youfeng-helper,.brand-dialog .youfeng-subtle{font-size:13px;line-height:1.75;color:#706977}.brand-dialog .youfeng-purchase-modes,.brand-dialog .youfeng-payways{gap:10px}.brand-dialog .youfeng-purchase-mode,.brand-dialog .youfeng-payway-item{min-height:54px;padding:12px 14px;color:#403a47;background:#fff;border:1px solid #ddd9e4;border-radius:9px;font-size:14px;line-height:1.65;transition:border-color .18s,background-color .18s}.brand-dialog .youfeng-purchase-mode:has(input:checked),.brand-dialog .youfeng-payway-item:has(input:checked){background:#f1ebfa;border-color:#8c56dd;box-shadow:inset 0 0 0 1px #8c56dd}.brand-dialog .dui-radio{width:18px;height:18px;color:#713cce}.brand-dialog .youfeng-upgrade-note{margin:10px 0 12px}.brand-dialog .youfeng-upgrade-result{margin-top:8px}.brand-dialog .youfeng-actions{margin:22px 0 0;padding-top:18px}.brand-dialog .youfeng-panel{padding:18px;background:#fafafa;border-color:var(--dialog-line);border-radius:8px}.brand-dialog .youfeng-summary-grid{font-size:14px;line-height:1.8}.brand-dialog :is(button,a,input,textarea,select):focus-visible{outline:2px solid #8c56dd;outline-offset:3px}
@keyframes brand-dialog-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@media(max-width:600px){.brand-dialog{padding:12px}.brand-dialog .brand-dialog-card{max-height:calc(100dvh - 24px);border-radius:12px}.brand-dialog .brand-dialog-header{min-height:66px;padding:16px 18px}.brand-dialog .brand-dialog-title{font-size:20px}.brand-dialog .brand-dialog-motif{right:56px;top:12px;width:76px}.brand-dialog .brand-dialog-intro{padding:0 18px;margin-top:15px;font-size:14px}.brand-dialog .brand-unbind-flow{margin:14px 18px 0;gap:6px;padding:9px;font-size:11px}.brand-dialog .brand-unbind-flow svg{width:13px;height:13px}.brand-dialog .brand-unbind-flow i{width:8px}.brand-dialog .brand-dialog-fields{padding:16px 18px 0;gap:14px}.brand-dialog .brand-dialog-inline-row,.brand-dialog .youfeng-upgrade-query-row{align-items:stretch}.brand-dialog .brand-dialog-inline-row>.dui-btn,.brand-dialog .youfeng-upgrade-query-row>.dui-btn{padding-inline:10px;font-size:13px}.brand-dialog .brand-dialog-actions,.brand-dialog .youfeng-actions{margin:18px 18px 0;padding-top:16px}.brand-unbind-dialog .brand-dialog-actions{margin-bottom:20px}.brand-dialog .brand-dialog-status{margin:12px 18px 20px;padding-top:12px}.brand-dialog .brand-dialog-results{margin:0 18px 20px}.brand-dialog .youfeng-license-notice{margin:16px 18px 0;font-size:12px}.brand-dialog .youfeng-modal-body{padding:0 18px 20px}.brand-dialog .youfeng-plan-wrap{padding-top:18px}.brand-dialog .youfeng-plan-title{font-size:15px}.brand-dialog .youfeng-plan-price{font-size:20px}.brand-dialog .youfeng-purchase-modes,.brand-dialog .youfeng-payways{grid-template-columns:1fr;gap:8px}.brand-dialog .youfeng-purchase-mode,.brand-dialog .youfeng-payway-item{min-height:48px}.brand-dialog .youfeng-actions{flex-wrap:wrap}.brand-dialog .youfeng-actions .youfeng-btn-primary{flex:1}.brand-dialog .youfeng-summary-grid{grid-template-columns:1fr}.brand-dialog .youfeng-summary-grid>div[style]{grid-column:auto!important}}
@media(prefers-reduced-motion:reduce){.brand-dialog .brand-dialog-card{animation:none}}
.brand-dialog :is(.brand-unbind-status,.brand-order-status){align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #ddd6ea;border-radius:8px;background:#f7f5fb;color:#66557b;overflow-wrap:anywhere;text-align:left}
.brand-dialog :is(.brand-unbind-status,.brand-order-status)[data-state="success"]{background:#f0f9f4;border-color:#c8e7d3;color:#247348}
.brand-dialog :is(.brand-unbind-status,.brand-order-status)[data-state="error"]{background:#fff4f3;border-color:#f1ceca;color:#a63730}
.brand-dialog .brand-unbind-status-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;height:20px;margin-top:2px;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:600;line-height:1}
.brand-dialog :is(.brand-unbind-status,.brand-order-status)>span:last-child{min-width:0}
