/* 应用内「确认 / 输入」弹窗：替掉浏览器原生 confirm / prompt。
   原生弹窗由浏览器画在窗口顶部（不居中、不可控样式），用户 2026-09-18 反馈
   「为什么确认弹窗都那么高，而不是出现在屏幕中心」「需要输入的地方都在屏幕最上方」。
   刻意不依赖 cc-ui.css —— review.html 不加载它，也避免 .tab 等同名选择器串味。 */
.dlg-mask{position:fixed;inset:0;z-index:900;background:rgba(20,16,12,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.dlg-box{width:min(420px,100%);max-height:88vh;overflow:auto;box-sizing:border-box;background:#fff;border-radius:14px;padding:22px 22px 16px;box-shadow:0 12px 40px rgba(0,0,0,.25);font-size:14px;line-height:1.65;color:#222}
.dlg-title{font-size:17px;font-weight:600;margin-bottom:6px}
.dlg-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#3a352f}
.dlg-input{display:block;width:100%;box-sizing:border-box;margin-top:12px;padding:9px 12px;border:1px solid #d6cfc8;border-radius:8px;font:inherit;color:#222;background:#fff}
.dlg-input:focus{outline:2px solid #f0b4ad;outline-offset:1px;border-color:#d9553f}
.dlg-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.dlg-btn{padding:8px 18px;border:0;border-radius:8px;background:#b63225;color:#fff;font:inherit;font-weight:500;cursor:pointer}
.dlg-btn.ghost{border:1px solid #d6cfc8;background:#fff;color:#333}
.dlg-btn:disabled{background:#d9dce0;cursor:default}
.dlg-btn:focus-visible{outline:2px solid #b63225;outline-offset:2px}
@media (max-width:520px){.dlg-box{padding:18px 16px 12px}.dlg-actions{gap:8px}.dlg-btn{flex:1}}
