.lw-dialog { box-sizing:border-box; width:min(440px,calc(100% - 28px)); max-height:90dvh; overflow:auto; overscroll-behavior:contain; margin:auto; border:1px solid #5c5452; border-radius:12px; background:#211f21; color:#f2eee2; padding:0; font:14px/1.5 "Segoe UI","Microsoft YaHei",sans-serif; box-shadow:0 24px 90px #0009; }
.lw-dialog::backdrop { background:#100f12c9; }
body[data-lw-page]:has(dialog[open]) {overflow:hidden}
.lw-dialog * {box-sizing:border-box;}
.lw-dialog .card, .lw-help { padding:30px; }
.lw-dialog h2 { margin:0 34px 4px 0; font-size:29px; font-weight:600; }
.lw-dialog p,.lw-dialog .hint,.lw-dialog .switch-tip { color:#c7c1bb; }
.lw-dialog .desc { margin:0 0 16px; }
.lw-dialog button { cursor:pointer; color:inherit; background:none; font:inherit; }
.lw-dialog :where(input,button):focus-visible {outline:2px solid #d5c398;outline-offset:2px}
.lw-dialog .close {position:absolute;top:13px;right:13px;width:34px;height:34px;border:1px solid #766c65;border-radius:5px;font-size:21px;line-height:1}
.lw-dialog .tabs {display:flex;gap:15px;border-bottom:1px solid #484344;margin-bottom:17px;}
.lw-dialog .tabs button,.lw-dialog .switch-tip button {border:0;padding:5px 1px;color:#c9bfb6}
.lw-dialog .tabs button {min-width:48px;min-height:35px}.lw-dialog .tabs button.on {color:#f2e9d7;border-bottom:2px solid #e6c695}
.lw-dialog .field {margin:12px 0}.lw-dialog label {display:block;color:#ececdf;margin-bottom:4px}.lw-dialog input {width:100%;min-width:0;color:#f5f2e7;background:#191719;border:1px solid #645b55;border-radius:5px;padding:8px 10px;min-height:40px;font:inherit}
.lw-dialog .hint {display:flex;justify-content:space-between;gap:6px;font-size:12px;margin:3px 0 0}
.lw-dialog .req,.lw-dialog .bad,.lw-dialog .err {color:#f7b0a1}.lw-dialog .good,.lw-dialog .ok {color:#c0e6d0}
.lw-dialog .code-row {display:flex;gap:7px}.lw-dialog .code-row button {flex:none;border:1px solid #786c60;border-radius:5px}
.lw-dialog .submit {min-height:43px;width:100%;border:0;border-radius:5px;background:#e6c695;color:#282018;font-weight:700;margin-top:8px}
.lw-dialog button:disabled{opacity:.6;cursor:wait}
.lw-dialog .switch-tip {margin-top:12px;font-size:13px}.lw-dialog .switch-tip button {color:#ead1af;text-decoration:underline}
.lw-dialog .demo-box {display:none;border:1px solid #817351;border-radius:5px;padding:9px;color:#ead3a4}.lw-dialog .demo-box.show{display:block}
.lw-dialog .msg:not(:empty) {margin-top:8px}
.lw-help {width:min(350px,calc(100% - 28px));text-align:center}.lw-help h2 {margin:0 10px}.lw-help img {display:block;max-width:100%;height:auto;margin:18px auto;border-radius:5px}
@media(max-width:460px){.lw-dialog .card,.lw-help{padding:22px 17px}}
