.nw{max-width:760px;margin:0 auto;padding:16px max(16px,env(safe-area-inset-right)) 30px max(16px,env(safe-area-inset-left))}
.nw h1{font-size:clamp(28px,7.5vw,38px);margin:4px 0 8px}
.privnote{display:flex;gap:8px;align-items:center;background:#eef7f1;border:1px solid #cfe8d8;color:#14532d;border-radius:12px;padding:10px 14px;font-size:15.5px;font-weight:600;margin:10px 0 16px}
.total{position:sticky;top:61px;z-index:10;background:#0b1f3a;color:#fff;border-radius:14px;padding:14px 18px;margin:0 0 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;box-shadow:0 6px 20px rgba(11,31,58,.25)}
.total .l{font-size:14px;color:#b8c4d6;font-weight:600}.total .n{font-size:clamp(26px,7vw,34px);font-weight:800;line-height:1.1}
.total .ch{font-size:14px;font-weight:700}.up{color:#4ade80}.down{color:#fca5a5}
.sec{background:#fff;border:1px solid #e3e8ef;border-radius:14px;padding:16px;margin-bottom:14px}
.sec h2{font-size:20px;margin:0 0 4px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}.sec h2 span{font-size:17px;color:#284389}
.row{border-top:1px solid #eef1f5;padding:12px 0}.row:first-of-type{border-top:0}
.rl{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.rl label,.rl input.lab{font-weight:650;font-size:16px}
.rl input.lab{border:0;border-bottom:1.5px dashed #c7cfdb;border-radius:0;padding:4px 0;min-height:36px;font-size:16.5px;width:100%;background:transparent}
.del{flex:none;min-width:44px;min-height:44px;border:0;background:transparent;color:#8a93a3;font-size:22px;cursor:pointer;border-radius:10px}
.money{position:relative}.money::before{content:"$";position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#6b778c;font-size:17px;pointer-events:none}
.money input{padding-left:28px!important}
.nw input[type=text],.nw input[type=email]{width:100%;min-height:50px;padding:12px 14px;border:1.5px solid #c7cfdb;border-radius:12px;font-size:17px;background:#fff;color:#17202f;font-family:inherit}
.nw input:focus{outline:none;border-color:#1f4e8c;box-shadow:0 0 0 3px rgba(31,78,140,.18)}
.mo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.mo small{display:block;font-size:14px;color:#5b6679;margin-bottom:4px;font-weight:600}
.mo .money::before{font-size:15px}.mo input{min-height:46px!important;font-size:17px!important}
.morebtn{border:0;background:none;color:#1f4e8c;font-weight:600;font-size:15px;min-height:44px;padding:0;cursor:pointer}
.add{width:100%;min-height:48px;border:2px dashed #b9c6da;background:#f8fafc;color:#1f4e8c;font-weight:700;font-size:16px;border-radius:12px;cursor:pointer;margin-top:8px;font-family:inherit}
.kp{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 4px}
.k{background:#f1f5fb;border-radius:12px;padding:12px}.k .t{font-size:14px;color:#5b6679;font-weight:600;line-height:1.3}.k .v{font-size:22px;font-weight:800;margin-top:2px}.k .s{font-size:13.5px;color:#5b6679}
.ins{border-left:5px solid #284389;background:#fff;border-radius:12px;padding:14px 16px;margin:10px 0;border-top:1px solid #e3e8ef;border-right:1px solid #e3e8ef;border-bottom:1px solid #e3e8ef}
.ins h3{font-size:18px;margin:0 0 4px}.ins p{margin:6px 0 0;font-size:16px}.ins .tag{display:inline-block;font-size:12.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#284389;margin-bottom:2px}
.ins.good{border-left-color:#137a3a}.ins.warn{border-left-color:#b7791f}.ins.bad{border-left-color:#b42318}
.bar{height:14px;background:#e3e8ef;border-radius:8px;overflow:hidden;margin:8px 0 2px}.bar i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#137a3a);border-radius:8px;transition:width .3s}
.split{display:flex;height:16px;border-radius:8px;overflow:hidden;margin:8px 0 4px;background:#e3e8ef}.split i{display:block;height:100%}
.legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:14px;color:#3d4a60}.legend b{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}
.btnrow{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.btnrow .btn{flex:1 1 160px}
.chart{width:100%;height:auto;display:block;margin-top:8px}
.hist{font-size:15px;margin:8px 0 0;padding:0;list-style:none}.hist li{display:flex;justify-content:space-between;border-top:1px solid #eef1f5;padding:6px 0}
.tip{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:40;background:#0b1f3a;color:#fff;border-radius:16px;padding:14px 48px 14px 16px;box-shadow:0 10px 30px rgba(0,0,0,.3);font-size:15.5px;line-height:1.45}
.tip b{color:#86efac}.tip button{position:absolute;top:6px;right:6px;min-width:44px;min-height:44px;background:none;border:0;color:#fff;font-size:22px;cursor:pointer}
.tip .sh{display:inline-block;border:1.5px solid #fff;border-radius:5px;width:18px;height:20px;vertical-align:-4px;position:relative;margin:0 2px}.tip .sh::after{content:"↑";position:absolute;left:3px;top:-6px;font-weight:800}
.cta2{background:#fff;border:2px solid #1f4e8c;border-radius:14px;padding:18px;margin:16px 0}.cta2 h2{font-size:21px;margin:0 0 6px}.cta2 .btn{width:100%;margin-top:6px}
.books{font-size:15px;color:#3d4a60}.credit{font-size:14px;color:#5b6679}
.linkbtn{background:none;border:0;color:#1f4e8c;text-decoration:underline;font-size:15.5px;min-height:44px;cursor:pointer;padding:0 8px 0 0;font-family:inherit}
.linkbtn.danger{color:#b42318}
.ok{color:#137a3a;font-weight:700}
@media(min-width:640px){.kp{grid-template-columns:repeat(4,1fr)}}
.rhsec{padding:16px 16px 12px}.rh-l{font-size:15px;color:#5b6679;font-weight:600}
.rh-big{font-size:clamp(34px,10vw,44px);font-weight:800;line-height:1.1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.rh-chg{font-size:16px;margin:4px 0 10px;color:#5b6679;min-height:24px;font-variant-numeric:tabular-nums}.rh-chg.up b{color:#16a34a}.rh-chg.down b{color:#dc2626}.rh-chg span{color:#5b6679;font-weight:500}
.rh-wrap{position:relative;height:210px;touch-action:pan-y;cursor:crosshair;user-select:none;-webkit-user-select:none;margin:0 -4px}
.rh{width:100%;height:100%;display:block;overflow:visible}
.rh-dot{position:absolute;width:12px;height:12px;border-radius:50%;border:2px solid #fff;transform:translate(-50%,-50%);box-shadow:0 0 0 4px rgba(22,163,74,.15);pointer-events:none}
.rh-tip{position:absolute;top:-4px;transform:translateX(-50%);background:#0b1f3a;color:#fff;font-size:13px;font-weight:700;padding:3px 8px;border-radius:8px;white-space:nowrap;pointer-events:none}
.rh-empty{height:100%;display:flex;align-items:center;justify-content:center;color:#8a93a3;font-size:15px;border:1.5px dashed #dbe2ec;border-radius:12px}
.ranges{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:8px 2px 4px;margin:4px -2px 0;scroll-snap-type:x proximity}.ranges::-webkit-scrollbar{display:none}
.pill{flex:none;min-width:52px;min-height:44px;padding:0 14px;border-radius:22px;border:0;background:transparent;color:#33415c;font-weight:800;font-size:15px;cursor:pointer;font-family:inherit;scroll-snap-align:start}
.pill.on{background:#e7f5ec;color:#137a3a}.pill:disabled{color:#c3cad5;cursor:not-allowed}.pill:focus-visible{outline:3px solid #8fb3ff}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wtip{background:#f1f5fb;border-radius:12px;padding:12px 14px;font-size:15px;margin-top:10px;line-height:1.5}
.nwcard{display:flex;gap:14px;align-items:center;background:#fff;border:2px solid #22c55e;border-radius:14px;padding:16px;text-decoration:none;color:inherit;margin:0 0 6px}
.nwcard .ic{flex:none;width:48px;height:48px;border-radius:12px;background:#e7f5ec;display:flex;align-items:center;justify-content:center;font-size:24px}
.nwcard b{display:block;font-size:18px;color:#17202f}.nwcard span{color:#46536a;font-size:15.5px}
.toolbox{background:#f1f5fb;border:1px solid #dbe4f0;border-radius:12px;padding:14px 16px;margin:24px 0}
.total{transition:opacity .2s,transform .2s}.total.tuck{opacity:0;transform:translateY(-12px);pointer-events:none;visibility:hidden}

.dfp{font-size:13.5px;color:#b8c4d6;margin-top:4px;line-height:1.4}.dfp b{color:#e6edf6;font-weight:700}.dfpi{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid #7f8da3;background:transparent;color:#cfd8e6;font:italic 700 12px Georgia,serif;cursor:pointer;vertical-align:middle;padding:0;margin-left:2px}.dfpt{margin-top:6px;font-size:13px;color:#dbe3ee;background:rgba(255,255,255,.08);border-radius:8px;padding:8px 10px;max-width:420px}
