/* 报数页样式 */
.report{max-width:480px;margin:0 auto}
.rp-periods{display:flex;gap:8px;margin:4px 0 10px}
.rp-pill{flex:1;text-align:center;padding:10px 0;border-radius:12px;background:#e6ece8;color:#6a766f;font-size:13.5px;font-weight:600;text-decoration:none;position:relative}
.rp-pill.on{background:linear-gradient(135deg,#0a6b4f,#12a877);color:#fff;box-shadow:0 3px 10px rgba(10,107,79,.3)}
.rp-pill.done:not(.on){background:#e1f2ea;color:#0a6b4f}
.rp-status{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rp-st{font-size:11px;padding:3px 9px;border-radius:99px;background:#eef1ef;color:#8a978f}
.rp-st.ok{background:#e1f2ea;color:#0a6b4f;font-weight:600}

.rp-form{padding-top:8px}
.rp-group{font-size:12px;font-weight:700;color:#0a6b4f;background:#e9f3ed;border-radius:8px;padding:5px 10px;margin:12px 0 4px}
.rp-field{margin:8px 0}
.rp-field span{display:block;font-size:12.5px;color:#44534b;margin-bottom:3px}
.rp-field input,.rp-field textarea{display:block;width:100%;padding:10px 12px;border:1px solid #d5ddd8;border-radius:10px;font-size:16px;background:#fff;box-sizing:border-box}
.rp-field input:focus,.rp-field textarea:focus{outline:2px solid #12a877;border-color:transparent}
.rp-auto input{background:#f2f5f3;color:#44534b}
.rp-auto em{font-style:normal;font-size:10px;background:#e8eee9;border-radius:4px;padding:1px 5px}

.msg-card{background:#f6fbf8;border:1px solid #cfe7db}
.msg-card pre{white-space:pre-wrap;font-family:inherit;font-size:14px;line-height:1.75;color:#16211c;margin:0 0 10px;padding:12px;background:#fff;border-radius:10px;border:1px solid #dcebe2}
.msg-card .btn-primary{width:100%}
.report .foot{padding:14px 6px 6px;text-align:center;font-size:10px;color:#a3aeaa}

/* 实时派生预览条 */
.live-bar{background:linear-gradient(135deg,#e9f3ed,#f2fbf6);border:1px solid #bfe3d2;border-radius:12px;padding:10px 14px;margin:12px 0;font-size:13px;color:#0d5c3d}
.live-bar b{color:#0a6b4f}
.rp-st{text-decoration:none}
a.rp-st:hover{background:#dcebe2}

/* 自动预填提示 */
.autofill-note{background:#e8f1fb;border:1px solid #b9d4f2;color:#1c4d8f;border-radius:12px;padding:10px 14px;font-size:12.5px;margin-bottom:10px}
.autofill-note.in-win{background:#e9f3ed;border-color:#bfe3d2;color:#0d5c3d}

/* 报数历史 */
.hist-card{padding:10px 12px}
.hist-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.hist-head b{color:#0a6b4f}
.hist-msg{white-space:pre-wrap;font-family:inherit;font-size:12.5px;line-height:1.7;background:#f6fbf8;border-radius:8px;padding:8px 10px;margin:0;color:#33403a}
.hist-card.voided{opacity:.55}
.hist-card.voided .hist-msg{text-decoration:line-through}

/* 预填格子绿底标识 */
.rp-prefill input{background:#e9f7ef;border-color:#bfe3d2}
.rp-prefill span em{background:#e1f2ea;color:#0a6b4f;border-radius:4px;padding:1px 6px;font-style:normal}

/* 实时群消息预览（sticky 底部） */
.rp-live-msg{position:sticky;bottom:calc(var(--tab-h,56px) + env(safe-area-inset-bottom,0px) + 6px);z-index:30;background:#fff;border:2px solid #0a6b4f;border-radius:14px;padding:10px 12px;box-shadow:0 -4px 20px rgba(10,107,79,.25)}
.rp-live-msg h4{font-size:12px;color:#0a6b4f;margin:0 0 6px;display:flex;justify-content:space-between}
.rp-live-msg pre{white-space:pre-wrap;font-size:12px;line-height:1.6;margin:0;color:#16211c;max-height:120px;overflow:auto}
.rp-live-msg .hint{font-size:10px;color:#8a978f;margin-top:4px}

/* 校验红框 */
.rp-field input[style*="rgb(212, 69, 58)"],.rp-field input[style*="#d4453a"]{background:#fdf2f0}
