/* 合同付款台 · 演示版样式
   手机端照 ui-style-mobile（EP 客户空间 / Cash 账本），电脑端照 ui-style-admin（EP 紧凑档 + Cash 按钮） */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif;color:#243044;-webkit-font-smoothing:antialiased}
body[data-mode="m"]{background:#eef4fc}
body[data-mode="d"]{background:#f5f7fb;font-size:13px;line-height:1.45;color:#202d40}
@media (min-width:600px){body[data-mode="m"]{background:#d9e1ec}}
a{color:inherit;text-decoration:none}
button{font:inherit}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:1px}
.dot.red{background:#e5483d}.dot.amb{background:#e0a92a}.dot.grn{background:#2c9c84}.dot.blu{background:#2584db}
.red{color:#c0392b}.amb{color:#9a6a00}.grn{color:#287b59}
.num{font-variant-numeric:tabular-nums}
.hidden{display:none!important}
.clk{cursor:pointer}

/* ===== 手机壳 ===== */
.m-shell{width:100%;max-width:520px;margin:0 auto;min-height:100vh;background:#eef4fc;position:relative;font-size:14px;line-height:1.5;color:#243044;padding-bottom:calc(96px + env(safe-area-inset-bottom))}
@media (min-width:600px){.m-shell{box-shadow:0 0 0 1px #dfe6f0,0 20px 60px rgba(24,44,76,.14)}}
.nav{height:calc(56px + env(safe-area-inset-top));display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 18px 0;background:#eef4fc;position:sticky;top:0;z-index:6}
.avatar{width:30px;height:30px;border-radius:50%;background:#2584db;color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.nt{font-size:16px;font-weight:700;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd{font-size:12px;color:#64768b;white-space:nowrap}
.back{width:30px;height:30px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;color:#243044;font-size:18px;box-shadow:0 2px 8px rgba(61,98,145,.06);flex-shrink:0;cursor:pointer}
.pills{display:flex;gap:8px;padding:8px 18px 6px;background:#eef4fc;overflow-x:auto;position:sticky;top:calc(56px + env(safe-area-inset-top));z-index:5;scrollbar-width:none}
.pills::-webkit-scrollbar{display:none}
.pill{background:#fff;border-radius:18px;padding:7px 14px;font-size:13px;color:#64768b;box-shadow:0 2px 8px rgba(61,98,145,.06);white-space:nowrap;cursor:pointer;flex-shrink:0}
.pill.on{background:#2584db;color:#fff;font-weight:600}
.content{padding:0 18px}
.ptitle{font-size:22px;font-weight:700;letter-spacing:-.5px;margin:21px 2px 14px}
.stitle{font-size:16px;font-weight:600;margin:22px 2px 12px;display:flex;justify-content:space-between;align-items:center}
.stitle small{font-size:12px;color:#98a4b4;font-weight:400}
.card{background:#fff;border-radius:22px;padding:18px;margin-bottom:12px;box-shadow:0 5px 17px rgba(61,98,145,.06)}
.card.sum{padding:20px}
.card.list{padding:0 14px}
.lbl{font-size:11px;color:#64768b}
.big{font-size:36px;font-weight:700;color:#2a82cc;letter-spacing:-.5px;margin:4px 0 12px;font-variant-numeric:tabular-nums;line-height:1.15}
.big small{font-size:15px;font-weight:600;margin-left:3px;letter-spacing:0}
.cols{display:flex;border-top:1px solid #edf2f8;padding-top:12px;gap:8px}
.col{flex:1;min-width:0}
.col .v{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.col .k{font-size:11px;color:#98a4b4;white-space:nowrap}
.row{display:flex;align-items:center;gap:12px;padding:14px 0;position:relative}
.row:not(:last-child)::after{content:'';position:absolute;bottom:0;left:48px;right:0;height:1px;background:#edf2f8}
.row.link{cursor:pointer}
.row.link:active{opacity:.7}
.row.done{opacity:.45}
.row.done .t{text-decoration:line-through}
.ico{width:36px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex-shrink:0;background:#e1efff;color:#3887d4}
.ico.red{background:#fde3e1;color:#c0392b}.ico.amb{background:#fff1c7;color:#9a6a00}.ico.grn{background:#e3f6ec;color:#287b59}.ico.org{background:#fff2de;color:#d5a14d}.ico.pur{background:#efeafa;color:#9381c8}
.copy{flex:1;min-width:0}
.t{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s{font-size:11px;color:#64768b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.amt{font-weight:600;font-size:15px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.amt .c{display:block;font-size:10px;color:#98a4b4;font-weight:400;line-height:1.3}
.tag{display:inline-block;padding:1px 7px;border-radius:6px;font-size:11px;background:#edf3ff;color:#3461ad;white-space:nowrap;line-height:1.5;vertical-align:middle}
.tag.warn{background:#fff1c7;color:#9a6a00}.tag.bad{background:#fde3e1;color:#c0392b}.tag.org{background:#ffead5;color:#b54708}.tag.ok{background:#e3f6ec;color:#287b59}.tag.gray{background:#eef0f3;color:#667085}.tag.you{background:#efeafa;color:#6b5aa8}
.tag.cny{background:#fdece6;color:#c4472f}.tag.usd{background:#e3effd;color:#2584d9}
.note{border-radius:12px;padding:10px 12px;font-size:12px;line-height:1.5;margin-bottom:12px}
.note.warn{background:#fff6e5;color:#86551a}
.note.hot{background:#fff0ec;color:#ae362b;border:1px solid #f2c3ba}
.note.ok{background:#e3f6ec;color:#287b59}
.note b{font-weight:600}
.btn{height:46px;border-radius:14px;background:#2584db;color:#fff;font-weight:600;font-size:15px;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 12px rgba(37,132,219,.13);cursor:pointer;border:0;width:100%;padding:0 12px;text-align:center}
.btn:active{transform:translateY(1px)}
.btn.soft{background:#e0edfc;color:#3388d1;box-shadow:none}
.btn.ghost{background:#fff;color:#64768b;box-shadow:0 2px 8px rgba(61,98,145,.06)}
.btn.ghost.red{color:#c0392b}
.btn.dim{background:#b9cde3;box-shadow:none}
.btnrow{display:flex;gap:10px;margin-top:10px}
.btnrow .btn{flex:1;height:42px;font-size:14px}
.seg{display:flex;background:#e1e9f4;padding:3px;border-radius:11px;margin:12px 0}
.seg div{flex:1;text-align:center;border-radius:8px;padding:5px 0;font-size:13px;color:#64768b;cursor:pointer}
.seg .on{background:#fff;color:#3385ce;font-weight:600;box-shadow:0 2px 8px rgba(61,98,145,.06)}
.info{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf2f8;font-size:12px;align-items:flex-start}
.info:last-child{border:0}
.info .k{color:#64768b;flex-shrink:0;white-space:nowrap}
.info .v{text-align:right;max-width:72%;overflow-wrap:anywhere;font-weight:500;line-height:1.45}
.info.blk{display:block}
.info.blk .hd{display:flex;justify-content:space-between;gap:12px}
.bar{height:8px;border-radius:4px;background:#edf2f8;position:relative;overflow:hidden;display:flex;gap:2px}
.bar i{display:block;height:100%}
.bar.lg{height:10px}
.bar.open{overflow:visible}
.hb{display:grid;grid-template-columns:92px 1fr 78px;gap:8px;align-items:center;font-size:12px;margin:9px 0}
.hb .k{color:#64768b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb .b{height:10px;border-radius:4px;background:#2584db}
.hb .v{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.hb .v small{color:#98a4b4;font-size:10px;margin-left:3px}
.lamps{display:flex;gap:5px;margin-top:6px}
.lamp{flex:1;border-radius:10px;padding:5px 2px;text-align:center;font-size:10px;background:#f1f5fb;color:#64768b;line-height:1.3}
.lamp b{display:block;font-size:13px;font-weight:700}
.lamp.ok{background:#e3f6ec;color:#287b59}.lamp.no{background:#fde3e1;color:#c0392b}.lamp.na{background:#eef0f3;color:#98a4b4}.lamp.wait{background:#fff1c7;color:#9a6a00}
.foot{font-size:11px;color:#98a4b4;margin-top:8px;line-height:1.4}
.tabbar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:520px;display:flex;background:rgba(255,255,255,.98);border-top:1px solid #e3eaf3;padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -2px 12px rgba(61,98,145,.06);z-index:10}
.tab{flex:1;text-align:center;font-size:10px;color:#9aa6b6;padding:4px 0 2px;position:relative;cursor:pointer}
.tab i{display:block;width:22px;height:22px;margin:0 auto 2px;border-radius:7px;border:2px solid currentColor;opacity:.55}
.tab.on{color:#2584db;font-weight:600}.tab.on i{opacity:1;background:#2584db;border-color:#2584db}
.tab .bd{position:absolute;top:0;left:calc(50% + 6px);min-width:17px;height:17px;border-radius:9px;background:#e5483d;color:#fff;font-size:10px;line-height:17px;border:1.5px solid #fff;padding:0 3px;font-weight:600}
.fab{position:fixed;right:max(22px,calc(50% - 238px));bottom:calc(76px + env(safe-area-inset-bottom));width:50px;height:50px;border-radius:50%;background:#2584db;color:#fff;font-size:34px;line-height:47px;text-align:center;box-shadow:0 5px 16px rgba(37,132,219,.25);z-index:11;cursor:pointer}
.stick{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(74px + env(safe-area-inset-bottom));width:calc(100% - 36px);max-width:484px;z-index:9}
.actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(238,244,252,0),#eef4fc 25%);padding:8px 0 calc(12px + env(safe-area-inset-bottom));margin-top:4px}
.hero-tag{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap}
.kv{display:flex;gap:10px}
.kv>div{flex:1;background:#f1f5fb;border-radius:12px;padding:10px 10px;min-width:0}
.kv .k{font-size:11px;color:#64768b}.kv .v{font-size:16px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;color:#243044;margin-top:2px}
.kv .v small{font-size:11px;font-weight:500;color:#98a4b4;margin-left:2px}
.mark{position:absolute;top:-3px;bottom:-3px;width:2px;background:#243044}
.legend{display:flex;gap:12px;font-size:11px;color:#64768b;flex-wrap:wrap;margin-top:8px}
.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:4px;vertical-align:-1px}
.field{background:#f1f5fb;border:1px solid #e5ecf5;border-radius:12px;padding:12px;min-height:44px;font-size:14px;width:100%;outline:none;color:#243044}
.field:focus{border-color:#9dc4fd}
.empty{text-align:center;padding:36px 16px;color:#98a4b4;font-size:13px}
.m-only{display:block}

/* ===== 电脑壳（EP 紧凑档） ===== */
.desk{min-height:100vh;position:relative}
.side{position:fixed;left:0;top:0;bottom:0;width:168px;background:#fff;border-right:1px solid #e6ebf2;padding:16px 8px;z-index:15}
.brand{font-size:17px;font-weight:750;padding:0 8px 16px;color:#245ccc;letter-spacing:-.2px}
.brand small{display:block;font-size:11px;color:#94a3b8;font-weight:500;margin-top:2px}
.ni{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;margin:2px 0;font-size:13px;color:#64748b;border-radius:7px;cursor:pointer}
.ni:hover{background:#f3f6fb}
.ni.on{color:#225ed7;background:#edf3ff;font-weight:650}
.ni .cnt{min-width:16px;padding:0 5px;border-radius:9px;background:#e5484d;color:#fff;font-size:11px;line-height:16px;text-align:center;font-weight:600}
.tz{position:absolute;bottom:14px;left:18px;font-size:11px;color:#94a3b8}
.top{margin-left:168px;height:58px;padding:10px 20px;background:#fff;border-bottom:1px solid #e6ebf2;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:12;gap:12px}
.top h1{font-size:17px;margin:0;font-weight:650;display:flex;align-items:center;white-space:nowrap}
.top .mut{font-size:12px;color:#6f7d8f;margin-left:10px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.main{margin-left:168px;padding:16px 18px;max-width:1420px}
.ph{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:12px;gap:12px;flex-wrap:wrap}
.ph h2{font-size:19px;margin:0;font-weight:650}
.ph p{margin:2px 0 0;font-size:12px;color:#6f7d8f}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}
.stat{background:#fff;border:1px solid #e6ebf2;border-radius:14px;padding:14px 16px;box-shadow:0 2px 4px rgba(24,44,76,.01);cursor:pointer}
.stat:hover{border-color:#c9dbf5}
.stat .k{font-size:12px;color:#6f7d8f}
.stat .n{font-size:24px;font-weight:700;margin:4px 0 2px;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.stat .n small{font-size:13px;font-weight:600;margin-left:2px}
.stat .n.amber{color:#a26a07}.stat .n.red{color:#c54235}
.stat .d{font-size:12px;color:#94a3b8}
.grid{display:grid;gap:12px;margin-bottom:12px}
.g21{grid-template-columns:2fr 1fr}.g12{grid-template-columns:1fr 2fr}.g11{grid-template-columns:1fr 1fr}.g31{grid-template-columns:420px 1fr}
.acard{background:#fff;border:1px solid #e6ebf2;border-radius:14px;padding:14px 16px;box-shadow:0 2px 4px rgba(24,44,76,.01);min-width:0;margin-bottom:12px}
.acard h3{font-size:15px;margin:0 0 10px;font-weight:650;display:flex;justify-content:space-between;align-items:center;gap:10px}
.acard h3 small{font-size:12px;color:#6f7d8f;font-weight:400}
.acard .desc{font-size:12px;color:#6f7d8f;margin:-6px 0 10px}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.dt{font-size:12.5px;width:100%;border-collapse:collapse}
.dt th{background:#f8fafc;color:#64748b;font-weight:500;white-space:nowrap;text-align:left;padding:7px 10px;border-bottom:1px solid #e8edf5}
.dt td{padding:7px 10px;border-bottom:1px solid #e8edf5;white-space:nowrap;vertical-align:top}
.dt tr:last-child td{border-bottom:0}
.dt tr.link{cursor:pointer}
.dt tr.link:hover td{background:#f8fbff}
.dt td .sub{display:block;font-size:11px;color:#6f7d8f;font-weight:400}
.dt td.n{text-align:right;font-variant-numeric:tabular-nums}
.dt td.w{white-space:normal;max-width:320px;line-height:1.4}
.dt td b{font-weight:600}
.badge{display:inline-block;background:#edf3ff;color:#3461ad;border-radius:6px;padding:2px 6px;font-size:11.5px;white-space:nowrap;line-height:1.4}
.badge.red{background:#fff0ee;color:#c54235}.badge.green{background:#eaf8f1;color:#287b59}.badge.amber{background:#fff6e0;color:#a26a07}.badge.orange{background:#ffead5;color:#b54708}.badge.gray{background:#eef0f3;color:#667085}.badge.solid{background:#d92d20;color:#fff;font-weight:600}.badge.you{background:#efeafa;color:#6b5aa8}
td.c-warn{background:#fff4cc}td.c-bad{background:#ffe3e0;color:#b42318;font-weight:600}td.c-alert{background:#fff1f0}
.urg{border-left:3px solid #df6258;padding:11px 14px;background:#fff5f3;margin:8px 0;border-radius:7px;display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer}
.urg.amber{border-color:#e0a92a;background:#fffaf0}
.urg .m{font-size:12px;color:#6f7d8f;margin-top:2px}
.abtn{display:inline-block;border:1px solid #d5e1ed;border-radius:7px;background:#fff;color:#334b65;padding:7px 9px;font-size:12px;white-space:nowrap;margin-right:6px;line-height:1.3;cursor:pointer}
.abtn:hover{background:#eaf3ff}
.abtn.pri{background:#2878ef;border-color:#2878ef;color:#fff}
.abtn.pri:hover{background:#1f66d6}
.abtn.dng{color:#c44046}
.abtn.sm{padding:4px 8px;font-size:12px}
.chips{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.chip{border:1px solid #d4deed;background:#fafcff;border-radius:7px;padding:5px 9px;font-size:12px;color:#334b65;white-space:nowrap;cursor:pointer}
.chip.on{background:#edf3ff;color:#225ed7;border-color:#c9dbf5;font-weight:600}
.dtop{background:#eef4ff;border-radius:14px;padding:12px 16px;margin-bottom:12px}
.dtop .bk{font-size:12px;color:#2474c8;cursor:pointer}
.dtop h2{font-size:19px;margin:4px 0 8px;font-weight:650;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dtabs{display:flex;gap:6px;flex-wrap:wrap}
.dtabs span{background:#fff;color:#526a88;border:1px solid #d4deed;border-radius:7px;padding:5px 10px;font-size:12px;cursor:pointer}
.dtabs span.on{background:#2563eb;color:#fff;border-color:#2563eb}
.dtabs .tc{display:inline-block;min-width:16px;padding:0 5px;margin-left:5px;border-radius:9px;background:#e5484d;color:#fff;font-size:11px;line-height:16px;text-align:center}
.warning{background:#fff2ef;color:#a02c24;border-radius:10px;padding:10px 14px;font-size:12.5px;margin:10px 0}
.warning b{font-weight:650}
.verdict{display:flex;gap:16px;align-items:flex-start}
.verdict .vb{flex-shrink:0;border-radius:10px;padding:10px 14px;background:#fff6e0;color:#a26a07;font-weight:650;font-size:14px;line-height:1.3;min-width:150px}
.verdict .vb.bad{background:#fff0ee;color:#c54235}
.verdict .vb.good{background:#eaf8f1;color:#287b59}
.verdict .vb small{display:block;font-size:11.5px;font-weight:500;margin-top:2px;opacity:.85}
.verdict .vt{font-size:12.5px;color:#334b65;line-height:1.55}
.alegend{display:flex;gap:14px;font-size:12px;color:#6f7d8f;flex-wrap:wrap;margin-bottom:10px}
.alegend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.bars{display:flex;align-items:flex-end;gap:12px;height:220px;padding:22px 6px 0;border-bottom:1px solid #e8edf5;margin-bottom:30px}
.bars .m{flex:1;display:flex;flex-direction:column-reverse;gap:2px;position:relative;cursor:pointer}
.bars .m i{display:block;width:100%;min-height:2px}
.bars .m i:last-child{border-radius:4px 4px 0 0}
.bars .m .x{position:absolute;top:100%;margin-top:6px;font-size:11px;color:#94a3b8;left:0;right:0;text-align:center;white-space:nowrap}
.bars .m .tot{position:absolute;bottom:100%;margin-bottom:4px;font-size:11px;color:#202d40;text-align:center;left:0;right:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.bars .m.cur .x{color:#202d40;font-weight:600}
.bars.short{height:200px;gap:18px;padding:22px 10px 0;margin-bottom:34px}
.ahb{display:grid;grid-template-columns:92px 1fr 86px;gap:8px;align-items:center;font-size:12px;margin:8px 0}
.ahb .k{color:#6f7d8f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahb .b{height:10px;border-radius:4px;background:#2563eb}
.ahb .v{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ahb .v small{color:#94a3b8;font-size:11px;margin-left:3px}
.clause{background:#fafcff;border:1px solid #e6ebf2;border-radius:10px;padding:10px 12px;font-size:12.5px;line-height:1.7;color:#334b65}
.clause mark{background:#fff4cc;color:#202d40;padding:0 2px}
.clause .cn{font-size:11px;color:#94a3b8;margin-bottom:4px}
.tl{position:relative;padding-left:34px;margin-top:4px}
.tl::before{content:'';position:absolute;left:11px;top:6px;bottom:14px;width:1px;background:#e5edf7}
.tl .e{position:relative;padding:0 0 16px;font-size:12.5px}
.tl .e .n{position:absolute;left:-34px;top:-1px;width:23px;height:23px;border-radius:50%;background:#e8f5ef;color:#57a88c;font-size:12px;display:flex;align-items:center;justify-content:center;font-weight:700}
.tl .e.cur .n{background:#328bd8;color:#fff;box-shadow:0 0 0 4px #edf5ff}
.tl .e.todo .n{background:#eef0f3;color:#98a4b4}
.tl .e .d{font-size:11px;color:#94a3b8}
.tl .e.todo{color:#94a3b8}
.cb{display:inline-block;width:14px;height:14px;border:1.5px solid #c3cedc;border-radius:3px;vertical-align:-2px;background:#fff;cursor:pointer;position:relative}
.cb.on{background:#2563eb;border-color:#2563eb}
.cb.on::after{content:'';position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.plan td,.plan th{padding:5px 8px}
.mini{display:flex;gap:10px;margin:6px 0 10px}
.mini>div{flex:1;background:#f8fafc;border-radius:10px;padding:8px 10px}
.mini .k{font-size:11px;color:#6f7d8f}.mini .v{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.mini .v small{font-size:11px;font-weight:500;color:#94a3b8}
.ab{height:12px;border-radius:4px;background:#eef0f3;display:flex;gap:2px;overflow:hidden;margin:8px 0 6px}
.ab i{display:block;height:100%}
.rank .it{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #e8edf5;font-size:12.5px;align-items:flex-start}
.rank .it:last-child{border:0}
.rank .it .no{width:20px;height:20px;border-radius:50%;background:#edf3ff;color:#3461ad;font-size:11px;display:flex;align-items:center;justify-content:center;font-weight:650;flex-shrink:0}
.rank .it .m{font-size:11.5px;color:#6f7d8f;margin-top:2px;line-height:1.45}
.rank .it .a{margin-left:auto;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.ainput{border:1px solid #d4deed;background:#fafcff;border-radius:7px;padding:7px 9px;font-size:12.5px;color:#334b65;width:100%;outline:none}
.ainput:focus{border-color:#9dc4fd}
.aform{display:flex;gap:6px}
.d-only{display:block}

@media (max-width:1000px){
  .side{position:static;width:100%;padding:10px 12px;display:flex;gap:4px;flex-wrap:wrap;border-right:0;border-bottom:1px solid #e6ebf2}
  .brand{width:100%;padding:0 4px 8px}
  .tz{display:none}
  .top,.main{margin-left:0}
  .stats{grid-template-columns:repeat(2,1fr)}
  .g21,.g12,.g11,.g31{grid-template-columns:1fr}
}

/* ===== 反馈层 ===== */
.toast{position:fixed;left:50%;bottom:calc(104px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#243a53;color:#fff;padding:10px 16px;border-radius:10px;font-size:13px;z-index:60;box-shadow:0 8px 24px rgba(24,44,76,.2);max-width:88vw;text-align:center;line-height:1.5;animation:up .18s ease-out}
body[data-mode="d"] .toast{bottom:40px}
@keyframes up{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
.overlay{position:fixed;inset:0;background:rgba(27,46,72,.28);z-index:40;display:flex;align-items:flex-end;justify-content:center}
body[data-mode="d"] .overlay{align-items:center;background:rgba(20,38,64,.44)}
.sheet{width:100%;max-width:520px;background:#fff;border-radius:26px 26px 0 0;padding:10px 22px calc(24px + env(safe-area-inset-bottom));max-height:90vh;overflow-y:auto;position:relative;animation:slide .22s ease-out}
.sheet::before{content:'';display:block;width:30px;height:4px;background:#dbe4ef;border-radius:4px;margin:0 auto 12px}
body[data-mode="d"] .sheet{border-radius:18px;max-width:680px;width:calc(100% - 40px);padding:18px 22px 22px;box-shadow:0 20px 70px rgba(22,45,82,.25);max-height:85vh}
body[data-mode="d"] .sheet::before{display:none}
@keyframes slide{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.sheet h4{margin:0 0 10px;font-size:16px;font-weight:700;display:flex;justify-content:space-between;align-items:center}
.sheet .x{width:28px;height:28px;border-radius:50%;background:#f1f5fb;display:flex;align-items:center;justify-content:center;color:#64768b;cursor:pointer;font-size:16px}
.sheet p{font-size:13px;line-height:1.7;color:#334b65;margin:0 0 10px;white-space:pre-wrap}
.typing::after{content:'▍';color:#2584db;animation:blink .9s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.letter{background:#fafcff;border:1px solid #e6ebf2;border-radius:10px;padding:14px 16px;font-size:13px;line-height:1.8;white-space:pre-wrap;color:#243044}
