.seg{display:flex;background:#e9eef5;border-radius:14px;padding:4px;gap:4px}
.seg button{flex:1;min-height:48px;border:0;background:transparent;border-radius:11px;font:inherit;font-weight:700;font-size:16.5px;color:#33415c;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s,box-shadow .15s}
.seg button[aria-checked=true]{background:#fff;color:#0b1f3a;box-shadow:0 1px 3px rgba(11,31,58,.18),0 0 0 1px rgba(11,31,58,.06)}
.seg button:focus-visible{outline:3px solid #1f4e8c;outline-offset:1px}
.seg.sm{display:inline-flex;padding:3px;border-radius:11px}.seg.sm button{min-height:40px;font-size:14.5px;padding:0 12px;border-radius:9px;flex:none}
#mode{position:sticky;top:61px;z-index:11;margin:4px 0 14px;box-shadow:0 4px 14px rgba(11,31,58,.12)}
.modehint{font-size:15.5px;color:#4b5a70;margin:-6px 0 14px}
.g2f{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:520px){.g2f{grid-template-columns:1fr}}
.nw select{width:100%;min-height:50px;padding:10px 12px;border:1.5px solid #c7cfdb;border-radius:12px;font-size:17px;background:#fff;color:#17202f;font-family:inherit}
.field label{display:block;font-weight:650;font-size:15.5px;margin:6px 0 4px}.field .hint{font-size:13.5px;color:#5b6679;margin-top:3px}
.pctf{position:relative;margin-top:6px}.pctf input{padding-right:34px!important}.pctf span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#6b778c}
.pctin{position:relative}.pctin::after{content:"%";position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#6b778c;pointer-events:none}
.irow{border:1px solid #e3e8ef;border-radius:12px;padding:10px 12px;margin:10px 0;background:#fbfcfe}
.vrow{margin-top:10px}.vrow small{display:block;font-size:14px;color:#5b6679;margin-bottom:4px;font-weight:600}.vrow .money{margin-top:6px}
.vsrc{font-size:13px;color:#5b6679;margin-top:5px;line-height:1.4}.estb{background:#fff1c2;color:#7a5a00;border-radius:4px;padding:0 5px;font-size:12px}
.tg{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:10px}
.sw{display:inline-flex;align-items:center;gap:8px;font-weight:650;font-size:15px;min-height:44px;cursor:pointer}.sw input{position:absolute;opacity:0;width:1px;height:1px}
.sw span{width:46px;height:28px;border-radius:14px;background:#c7cfdb;position:relative;transition:background .15s}.sw span:after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.sw input:checked+span{background:#137a3a}.sw input:checked+span:after{left:21px}.sw input:focus-visible+span{outline:3px solid #1f4e8c;outline-offset:2px}
.isum{font-size:14px;margin-top:8px;color:#33415c}.pos{color:#137a3a}.neg,.k.neg .v{color:#b42318}
.presets{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.presets button{min-height:42px;border:1.5px solid #c7cfdb;background:#fff;border-radius:21px;padding:0 14px;font:inherit;font-size:14.5px;font-weight:600;color:#1f4e8c;cursor:pointer}
.presets button:active{background:#eef3fa}
.ptot{background:#0b1f3a;color:#fff;border-radius:14px;padding:14px 16px;margin:12px 0;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.ptot .l{font-size:13.5px;color:#b8c4d6;font-weight:600}.ptot .n{font-size:26px;font-weight:800}.ptot .s{font-size:13px;color:#b8c4d6;margin-top:2px}
.opts{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:6px}.opts .field{margin:0;min-width:150px}
.verd{display:flex;gap:14px;align-items:center;border-radius:14px;padding:14px 16px;margin:4px 0 12px;border:2px solid}.verd .w{font-size:clamp(24px,6.5vw,34px);font-weight:900;line-height:1;white-space:nowrap}
.verd.good{border-color:#137a3a;background:#e7f5ec}.verd.good .w{color:#137a3a}.verd.warn{border-color:#b7791f;background:#fdf3e1}.verd.warn .w{color:#9a6412}.verd.bad{border-color:#b42318;background:#fde8e6}.verd.bad .w{color:#b42318}
@media(max-width:420px){.verd{flex-direction:column;align-items:flex-start;gap:6px}}
.lt{display:table;min-width:0;width:100%;border-collapse:collapse;margin-top:10px;font-size:15px}.lt td{padding:7px 2px;border-bottom:1px solid #eef1f5}.lt td:last-child{text-align:right;font-weight:650}
.it{display:table;min-width:0;width:100%;border-collapse:collapse;font-size:14.5px;margin-top:6px}.it td:nth-child(n+2),.it th:nth-child(n+2){text-align:right;white-space:nowrap}.it .pill{margin-top:4px}.it th,.it td{padding:8px 6px;border-bottom:1px solid #eef1f5;text-align:left;vertical-align:top}.it th{font-size:13px;color:#5b6679}
.pill{display:inline-block;border-radius:10px;padding:2px 8px;font-size:12.5px;font-weight:800;white-space:nowrap}.pill.good{background:#e7f5ec;color:#137a3a}.pill.warn{background:#fdf3e1;color:#9a6412}.pill.bad{background:#fde8e6;color:#b42318}
.h3{font-size:18px;margin:16px 0 4px}.opt{font-weight:500;color:#6b778c}
.srcs{font-size:14px;color:#4b5a70}.srcs table{width:100%;border-collapse:collapse;font-size:14px}.srcs td{padding:5px 4px;border-bottom:1px solid #eef1f5}.srcs td:last-child{text-align:right}
.lt td:last-child{white-space:nowrap;padding-left:10px}
.it{table-layout:fixed}.it th:nth-child(1),.it td:nth-child(1){width:44%}.it th:nth-child(2){width:30%}.it th:nth-child(3){width:26%}.it td,.it th{padding:8px 3px!important;overflow-wrap:anywhere}.it td:nth-child(n+2){white-space:normal}
@media(max-width:420px){.it{font-size:13.5px}}
.rbox{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:12px 0;padding:12px;border:1px solid #e3e3e3;border-radius:10px;background:#fafaf7}.rbox .hint{grid-column:1/-1}.rdrow{display:flex;gap:8px}.rdrow input{flex:1 1 auto;width:auto;min-width:0}.rdrow .btn{flex:0 0 auto;width:auto;padding:8px 18px;min-height:44px;margin:0}
@media(max-width:600px){.rbox{grid-template-columns:1fr}}.fbl{color:#8a5a00;font-weight:600}.rgnl{font-size:14px;margin:0 0 10px;color:#444}

body:not(.unlocked) #res,body:not(.unlocked) .gres{display:none}body.unlocked #gate{display:none}.gused{background:#fff7e6;border:1px solid #f0c36d;border-radius:10px;padding:12px;font-size:15px}.gused .btn{margin-top:8px;display:inline-block}
