.member-benefit-card,.member-features,.member-test{box-sizing:border-box;padding:16px;border:1px solid var(--border-color,#514363);border-radius:12px;background:var(--bg-card,#191624);margin-bottom:16px;color:var(--text-primary,#f6f1ff)}
.member-benefit-card strong{font-size:18px}.member-benefit-card p,.member-note{color:var(--text-secondary,#c5bdd1);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.member-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(820px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 32px);padding:0;border:1px solid #514363;border-radius:18px;background:#11101c;color:#f6f1ff;overflow:auto;box-shadow:0 24px 80px #0009}
.member-dialog::backdrop{background:#05030ccc;backdrop-filter:blur(5px)}
.member-dialog>header{position:sticky;top:0;z-index:1}.member-dialog>footer{position:sticky;bottom:0;background:#191624}
.member-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px;border-bottom:1px solid #514363;background:#191624}.member-kicker{font-size:11px;letter-spacing:1.5px;color:#c49bff}.member-dialog h2{margin:6px 0 0;font-size:24px}.member-dialog-body{padding:20px}.member-dialog footer{padding:16px 20px;border-top:1px solid #514363}.member-dialog h3{font-size:16px;margin:0 0 12px}
.member-dialog button,.member-benefit-card button,.member-preview-banner button{min-height:44px;border:1px solid #8b63b9;border-radius:8px;padding:10px 14px;font:inherit;color:#f6f1ff;background:#302642;cursor:pointer;white-space:normal}
.member-dialog header>button{width:44px;font-size:24px;background:transparent}.member-dialog footer button{width:100%}.member-dialog button:disabled{opacity:.5;cursor:not-allowed}
.member-dialog :is(button,select):focus-visible,.member-benefit-card button:focus-visible,.member-preview-banner button:focus-visible{outline:2px solid #c49bff;outline-offset:3px}
.member-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.member-plans article{padding:18px;background:#191624;border:1px solid #514363;border-radius:12px;min-width:0}.member-plans strong{font-size:26px;font-variant-numeric:tabular-nums}.member-plans p{font-size:13px;line-height:1.7;color:#c5bdd1}.member-plans button{width:100%;background:#6d28d9;border-color:#a879f0}
.member-quota{display:flex;flex-wrap:wrap;gap:10px;font-size:14px}.member-quota span{padding:8px 10px;background:#231b34;border-radius:6px}.member-test label{display:flex;flex-direction:column;gap:8px}.member-test select{min-height:44px;width:100%;border:1px solid #8b63b9;border-radius:8px;padding:8px;background:#11101c;color:#f6f1ff;font:inherit}
.member-tag{display:inline-block;vertical-align:middle;font-size:10px;line-height:1.5;font-weight:600;border:1px solid #8b63b9;border-radius:4px;padding:1px 5px;margin-left:6px;color:#e4ceff;background:#302642;pointer-events:none}
.member-preview-banner{display:flex;align-items:center;gap:12px;margin:10px 0;padding:12px 14px;background:#302642;border:1px solid #8b63b9;border-radius:10px;color:#f6f1ff;font-size:13px;line-height:1.65}.member-preview-banner span{flex:1}.member-preview-banner[hidden],.member-benefit-card[hidden],.member-test[hidden]{display:none!important}
@media(max-width:540px){.member-dialog-body,.member-dialog header{padding:16px}.member-plans{grid-template-columns:1fr}.member-preview-banner{flex-direction:column;align-items:stretch}.member-dialog select{font-size:16px}}
.member-orders{margin-block:20px;padding:16px;border:1px solid var(--border-color,#514363);border-radius:12px;background:var(--bg-card,#191624)}
.member-orders[hidden]{display:none!important}.member-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.member-orders-heading h3{margin:0}
.member-orders article{padding-block:16px;border-top:1px solid var(--border-color,#514363);overflow-wrap:anywhere}.member-orders h4{font-size:16px;margin:0 0 8px}.member-order-progress{font-weight:600;color:var(--text-primary,#f6f1ff)}
.member-orders details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--text-primary,#f6f1ff)}.member-orders label{display:block;margin:8px 0;font-size:14px}
.member-orders textarea{display:block;width:100%;box-sizing:border-box;min-height:88px;padding:12px;border:1px solid var(--border-color,#8b63b9);border-radius:8px;resize:vertical;background:var(--bg-input,#11101c);color:var(--text-primary,#f6f1ff);font:inherit}
.member-orders :is(summary,textarea):focus-visible{outline:2px solid #c49bff;outline-offset:3px}
.member-entry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid #8b63b9;border-radius:9px;background:#302642;color:#f6f1ff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;flex-shrink:0;transition:background 180ms,border-color 180ms}
.member-entry svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.member-entry:hover{background:#43305e;border-color:#c49bff}.member-entry:focus-visible{outline:2px solid #c49bff;outline-offset:3px}
.member-intro{margin-bottom:20px}.member-intro h3{font-size:22px;line-height:1.45;margin:0 0 8px}.member-intro>p{color:#c5bdd1;font-size:14px;line-height:1.7;margin:0 0 12px}.member-renew-note{display:inline-block;font-size:13px;color:#e4ceff;padding:5px 9px;border:1px solid #8b63b9;border-radius:6px;background:#231b34}
.member-dialog [data-member-status]{font-size:15px;line-height:1.6;margin:0 0 12px}.member-plan-month{border-color:#c49bff!important;box-shadow:inset 0 3px #a879f0}.member-plans .member-plan h3{font-size:18px}.member-plans .member-plan strong{display:block;font-size:38px;line-height:1.2}.member-plan-term{display:block;font-size:13px;color:#e4ceff;margin-top:8px}.member-plan{display:flex;flex-direction:column}.member-plan>p{flex:1}.member-plan>button{min-height:46px;font-weight:600}
.member-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.member-feature-grid strong{font-size:14px}.member-feature-grid p,.member-basics p{font-size:14px;line-height:1.75;color:#c5bdd1;margin:8px 0 0}.member-basics{padding:16px;border:1px solid #514363;border-radius:12px;background:#191624}.member-availability{font-size:14px;line-height:1.6;color:#e4ceff;margin:0 0 20px}.member-dialog [hidden]{display:none!important}.member-quota:empty{display:none}
@media(max-width:540px){.member-feature-grid{grid-template-columns:1fr;gap:12px}.member-intro h3{font-size:20px}.member-entry{padding:8px 10px}.site-shell-actions{flex-wrap:wrap;justify-content:flex-end}.member-dialog{max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){.member-entry{transition:none}}
.member-control-locked{border-color:#8b63b9!important;background-color:#292139!important;cursor:pointer!important}
.member-field-locked{border-left:3px solid #a879f0;padding-left:9px}.member-field-locked::after{content:'专业会员专享';color:#e4ceff;font-size:12px;line-height:1.6}
.member-project-locked #content-overlay{visibility:hidden!important}
.member-project-locked .screen-live-preview canvas{background:#171423}
.member-history-locked{position:relative}.member-history-locked>img{visibility:hidden!important}
.member-history-locked>.history-img-placeholder{visibility:hidden!important}
.member-history-locked::before{content:'专业方案 · 开通会员后查看';display:flex;align-items:center;justify-content:center;position:absolute;inset:0;z-index:2;background:#231b34;color:#e4ceff;border:1px solid #8b63b9;border-radius:10px;pointer-events:none;font-size:14px;padding:56px 20px 70px;text-align:center;box-sizing:border-box}
.member-result-locked #result-stage{visibility:hidden!important}

/* Cloud snapshots: same theme, read-only controls. */
.cloud-viewer-dialog{width:min(1040px,calc(100vw - 24px))}
.cloud-viewer-dialog [data-cloud-status]{font-size:14px;line-height:1.7;min-height:24px;overflow-wrap:anywhere;color:var(--text-secondary,#c5bdd1)}
.cloud-viewer-layout{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);gap:16px;align-items:start}
.cloud-viewer-layout nav{display:flex;flex-direction:column;gap:8px;max-height:480px;overflow:auto;min-width:0}
.cloud-viewer-layout nav button{text-align:left;overflow-wrap:anywhere;background:#191624;border-color:#514363}
.cloud-viewer-layout nav button[aria-pressed=true]{background:#302642;border-color:#c49bff;box-shadow:inset 3px 0 #c49bff}
.cloud-viewer-preview{box-sizing:border-box;min-width:0;min-height:260px;padding:16px;border:1px solid #514363;border-radius:12px;background:#0c0b14}
.cloud-viewer-preview h3{overflow-wrap:anywhere}
.cloud-viewer-preview p{font-size:14px;line-height:1.7;color:#c5bdd1}
.cloud-viewer-preview img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;user-select:none;-webkit-user-drag:none}
@media(max-width:640px){.cloud-viewer-layout{grid-template-columns:1fr}.cloud-viewer-layout nav{max-height:180px}.cloud-viewer-preview{min-height:180px}}

/* Account-only transparency; retain the existing violet editor theme. */
.benefit-card-note{margin:0 0 12px;color:#bdb5cd;font-size:12px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-line}
.benefit-card-note:last-child{margin-bottom:0}
.benefit-sync-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;color:#c5bdd1;font-size:12px;line-height:1.7}
.benefit-sync-bar button{min-height:44px;flex-shrink:0}.benefit-sync-bar [data-state=error]{color:#ffd77a}
.benefit-sync-bar button:disabled{opacity:.5;cursor:wait}
.benefit-acquire-actions{display:flex;justify-content:space-between;gap:12px}
.benefit-progress{margin:8px 0}.benefit-invite-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.benefit-invite-states>div{display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:8px;background:#231b34;font-size:12px;line-height:1.6;min-width:0}
.benefit-invite-states strong{color:#f6f1ff;font-variant-numeric:tabular-nums}
.benefit-primary-bar{position:sticky;bottom:-26px;margin:16px 0 -26px;padding:10px 0 26px;background:#141221;z-index:1}
#benefits-modal .benefits-modal-body{scroll-padding-bottom:100px}
@media(min-width:768px){.benefit-primary-bar{bottom:-40px;margin-bottom:-40px;padding-bottom:40px}}
.benefit-primary-bar .commerce-primary{margin-top:0}.benefit-primary-bar button:disabled{opacity:.6;cursor:wait}
.benefit-card-actions button.is-secondary{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.15);color:#c5bdd1}
.pay-product-detail{font-size:12px;line-height:1.7;color:#e4ceff;overflow-wrap:anywhere}
.pay-product-validity{font-size:11px;line-height:1.6;color:#bdb5cd}
@media(max-width:540px){#benefits-modal .benefit-card{padding:12px;margin-bottom:8px}#benefits-modal .benefit-card-row{margin-bottom:8px}#benefits-modal .benefit-card-note{line-height:1.65}#benefits-modal .benefit-section-title{margin-top:16px}.benefit-detail-entry{margin-bottom:8px}}
.member-benefit-card button{margin:8px 8px 0 0}
#benefits-modal .benefit-card-value{flex-shrink:0}
#benefits-modal .benefit-list>div{gap:16px;padding-block:10px;line-height:1.7}
#benefits-modal .benefit-list>div>span{flex-shrink:0}
#benefits-modal .benefit-list strong{text-align:right;overflow-wrap:anywhere}
.benefit-detail-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#bdb5cd;font-size:12px;line-height:1.6;margin:4px 0 16px}
.benefit-detail-entry button,#benefits-modal .linklike-btn{min-height:44px}
.benefit-rules{margin:12px 0;border:1px solid #514363;border-radius:10px;padding:0 12px;color:#c5bdd1;font-size:12px;line-height:1.8}
.benefit-rules summary{display:list-item;min-height:44px;align-content:center;color:#e4ceff;cursor:pointer}
.benefit-rules p{margin:0 0 12px}
.benefit-rules summary:focus-visible,.benefit-detail-entry button:focus-visible{outline:2px solid #c49bff;outline-offset:3px}
@media(max-width:420px){#benefits-modal .benefit-card-row{align-items:flex-start;flex-wrap:wrap}#benefits-modal .benefit-card-label{font-size:12px}#benefits-modal .benefit-card-actions button{min-height:44px}}
.ent-entry{margin-top:10px}.entitlement-dialog{width:min(900px,calc(100vw - 24px))}
.ent-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.ent-balances article{padding:16px;border:1px solid #514363;border-radius:12px;background:#191624;min-width:0}
.ent-balances h3{padding-bottom:10px;border-bottom:1px solid #514363;color:#e4ceff}
.ent-balance-row{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:14px}.ent-balance-row span{color:#c5bdd1}.ent-balance-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.ent-toolbar,.ent-toolbar>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ent-toolbar{justify-content:space-between;margin-top:24px}
.ent-toolbar button[aria-pressed=true]{background:#6d28d9;border-color:#c49bff}
.ent-record{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-top:1px solid #514363;overflow-wrap:anywhere}.ent-record>div{min-width:0}.ent-record-heading{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.ent-record-heading h3{margin:0}.ent-record-status{font-size:12px;color:#e4ceff}.ent-record p,.ent-record small{color:#c5bdd1;line-height:1.7}.ent-record p{font-size:13px;margin:8px 0}.ent-record small{font-size:12px}.ent-record-amount{align-self:center;text-align:right;font-size:14px;max-width:190px;font-variant-numeric:tabular-nums}.entitlement-dialog [data-ent-more]{width:100%;margin-top:12px}
.member-expiry-notice{box-sizing:border-box;display:flex;align-items:center;gap:12px;max-width:1544px;margin:12px auto;padding:14px 18px;background:#241c31;color:#f6f1ff;border:1px solid #9c77b9;border-left:4px solid #c49bff;border-radius:10px}.member-expiry-notice[hidden]{display:none!important}.member-expiry-notice>div{flex:1;min-width:0}.member-expiry-notice strong{font-size:15px}.member-expiry-notice p{margin:5px 0 0;font-size:13px;line-height:1.65;color:#d2c6df}.member-expiry-notice button{min-height:44px;padding:8px 12px;flex-shrink:0;border:1px solid #8b63b9;border-radius:8px;color:#f6f1ff;background:#302642;font:inherit;cursor:pointer}.member-expiry-notice button:focus-visible{outline:2px solid #c49bff;outline-offset:3px}
@media(max-width:640px){.ent-balances{grid-template-columns:1fr}.ent-record{flex-direction:column;gap:8px}.ent-record-amount{align-self:flex-start;text-align:left;max-width:none}.member-expiry-notice{flex-wrap:wrap;margin:10px 12px}.member-expiry-notice>div{flex-basis:100%}}
