:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#17223a;background:#f4f6f9;font-synthesis:none;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}.container{max-width:570px;min-height:100vh;margin:0 auto;padding:calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 36px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 25px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{background:#c5f431;color:#17233c;border-radius:12px;display:grid;place-items:center;font-size:22px;font-weight:900;width:41px;height:41px}.brand span:last-child{display:flex;flex-direction:column;gap:1px}.brand b{font-size:16px;letter-spacing:.1em}.brand small{font-size:9px;letter-spacing:.2em;font-weight:800;color:#68748c}.offline-chip{color:#467c46;background:#e1f5e6;border:1px solid #d3ebd8;border-radius:999px;font-weight:800;letter-spacing:.025em;font-size:10px;padding:8px 10px;white-space:nowrap}.offline-chip i{display:inline-block;width:7px;height:7px;background:#40a86a;border-radius:50%;margin-right:4px}.intro{margin:0 0 20px}.overline{font-size:10px;font-weight:900;letter-spacing:.16em;color:#6f7990;margin:0 0 6px}.intro h1{font-weight:850;letter-spacing:-.045em;font-size:31px;line-height:1.14;margin:0 0 8px}.intro p:last-child{line-height:1.45;color:#677188;font-size:14px;margin:0}.result-hero{background:linear-gradient(135deg,#13233f 0%,#0b1428 100%);color:#fff;border-radius:21px;padding:21px 20px 18px;box-shadow:0 9px 22px rgba(15,32,59,.15);margin:0 0 16px}.hero-line,.hero-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.hero-line{font-size:10px;color:#c6cedb;letter-spacing:.08em;font-weight:800}.hero-line span:last-child{border-radius:12px;background:#293955;color:#e4ebf4;padding:5px 8px;letter-spacing:0;font-size:11px;font-weight:700}.hero-price{color:#c6f539;font-weight:850;font-size:55px;letter-spacing:-.055em;line-height:1.3;font-variant-numeric:tabular-nums;margin:9px 0 3px}.hero-foot{font-size:12px;color:#bdc9d7}.hero-foot span:last-child{text-align:right}.section{background:#fff;border:1px solid #e9eef4;border-radius:20px;padding:18px;margin-bottom:14px;box-shadow:0 2px 8px rgba(12,32,53,.024)}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:16px}.section-heading h2{margin:0;font-size:17px;letter-spacing:-.02em}.section-heading>span{font-size:10px;color:#858fa1;text-align:right}.input-grid{display:grid;gap:13px}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.field{min-width:0;display:block}.field>span{display:block;font-size:11px;font-weight:750;color:#535e74;margin:0 0 7px}.field>span em{font-style:normal;color:#97a0af;font-size:9px;font-weight:600}.field-entry{display:flex;align-items:center;gap:7px;border-radius:12px;border:1.5px solid #e3e9f1;background:#f8fafd;height:50px;padding:0 12px}.field-entry:focus-within{border-color:#748fae;box-shadow:0 0 0 3px rgba(102,137,176,.13)}.field-entry input{border:0;outline:0;background:transparent;min-width:0;width:100%;font-size:21px;font-weight:800;color:#18243e;font-variant-numeric:tabular-nums}.field-entry small{font-size:12px;white-space:nowrap;color:#8a94a6;font-weight:750}.field .hint{display:block;font-size:10px;color:#8a94a6;margin-top:4px}.offer-input{height:70px;border:2px solid #bacbf1;border-radius:14px;display:flex;align-items:center;gap:8px;background:#f5f9ff;padding:0 15px;color:#4e66a2;font-size:31px;font-weight:900}.offer-input:focus-within{border-color:#5b79ba}.offer-input input{background:transparent;border:0;outline:0;width:100%;font-size:35px;color:#1a2b4f;font-weight:850;min-width:0;font-variant-numeric:tabular-nums}.status{padding:11px 12px;border-radius:11px;margin:12px 0 16px;font-weight:750;font-size:12px;line-height:1.4}.status.bad{background:#ffeded;color:#a3312b}.status.warn{background:#fff5d8;color:#8c5e16}.status.good{background:#e5f7e8;color:#246940}.status.neutral{background:#edf1f6;color:#647084}.money-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric{border:1px solid #ebeff4;border-radius:13px;padding:13px 11px;display:flex;flex-direction:column;gap:5px;min-width:0}.metric>span{font-size:10px;color:#657188;font-weight:700}.metric strong{font-size:26px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.metric strong.positive{color:#22824e}.metric strong.negative{color:#bb3d39}.metric small{font-size:9px;line-height:1.4;color:#8691a3}.mini-metrics{border-top:1px solid #edf0f3;margin-top:12px;padding-top:12px}.mini-metrics>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:7px}.mini-metrics span{color:#748095}.mini-metrics b{color:#23324b}.rate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.rate-button{background:#f3f6f9;border:1px solid #e9edf2;border-radius:12px;padding:10px 3px;min-height:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.rate-button b{font-size:16px;color:#1f2c43;font-variant-numeric:tabular-nums}.rate-button span{font-size:10px;color:#748197}.rate-button:active{background:#e8eef7}.advanced,.history{border:1px solid #e9edf3;border-radius:18px;background:#fff;margin:0 0 14px;overflow:hidden}.advanced summary,.history summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:17px 18px;list-style:none}.advanced summary::-webkit-details-marker,.history summary::-webkit-details-marker{display:none}.advanced summary>span:first-child{display:flex;flex-direction:column;gap:4px}.advanced summary strong,.history summary{font-size:15px;font-weight:750}.advanced summary small{font-size:11px;color:#8290a2}.chevron{font-size:20px;color:#75839a;transition:transform .2s}details[open] .chevron{transform:rotate(180deg)}.advanced-body{border-top:1px solid #edf0f4;padding:18px}.advanced-body .field-entry{height:45px}.advanced-body .field-entry input{font-size:18px}.breakdown{margin-top:17px;padding-top:11px;border-top:1px solid #edf0f4}.breakdown>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin:9px 0;color:#647087}.breakdown b{color:#26344c}.breakdown .total{border-top:1px solid #edf0f4;padding-top:11px;font-weight:800}.small-button{background:transparent;border:0;color:#516d9e;font-size:12px;font-weight:750;padding:8px 0;text-align:left}.actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:17px 0}.button{border-radius:13px;padding:15px 8px;border:1px solid transparent;font-size:14px;font-weight:850}.button.primary{background:#bff029;color:#14243c}.button.secondary{background:#e9eef5;color:#253955}.actions p{grid-column:1/-1;min-height:16px;text-align:center;color:#60768c;font-size:12px;margin:0}.history summary{display:block}.history-list{padding:0 17px}.history-list .item{padding:12px 0;border-top:1px solid #edf0f4;display:flex;justify-content:space-between;gap:10px}.history-list .item div{display:flex;flex-direction:column;gap:5px}.history-list b{font-size:13px}.history-list span,.history-list small{font-size:11px;color:#718198}.history #clearHistory{margin:0 17px 12px}.history .empty{padding:5px 0 15px;color:#7c8698;font-size:12px}footer{font-size:10px;color:#8993a5;line-height:1.55;padding:4px 4px 12px;text-align:center}@media(min-width:600px){.container{padding-left:25px;padding-right:25px}}@media(max-width:360px){.container{padding-left:12px;padding-right:12px}.hero-price{font-size:48px}.section{padding:14px}.rate-button b{font-size:14px}.offline-chip{font-size:9px;padding:7px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
