:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#22231f;background:#f8f8f5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit}button:focus-visible,a:focus-visible{outline:3px solid #f97316;outline-offset:3px}.shell{max-width:1120px;padding:0 36px;margin:auto}.header{height:98px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e4e4de}.brand{text-decoration:none;color:#20211d;font-size:21px;font-weight:850;letter-spacing:-.9px;display:flex;gap:11px;align-items:center}.brand-symbol{display:grid;place-items:center;background:#242521;color:white;width:34px;height:34px;border-radius:9px;font-size:21px;font-weight:400}.brand-dot,.period{color:#f46a30}.header-tag{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:700;letter-spacing:1.5px;color:#77786f}.status-dot{height:7px;width:7px;background:#fb804c;border-radius:50%}.intro{padding:62px 0 38px}.eyebrow{margin:0;color:#b55a33;letter-spacing:2px;font-size:10px;font-weight:800}.intro h1{margin:12px 0 10px;font-size:clamp(38px,5.3vw,65px);letter-spacing:-3px;font-weight:760;line-height:1.08}.lead{margin:0;color:#7d7e77;font-size:15px;line-height:1.8;max-width:570px}.workspace{display:grid;grid-template-columns:minmax(320px,1.05fr) minmax(260px,.95fr);gap:24px;align-items:start}.calculator{background:#fff;border:1px solid #e9e9e4;box-shadow:0 18px 60px #24252109;border-radius:18px;padding:24px}.calculator-toolbar{display:flex;justify-content:space-between;align-items:center;color:#33342f;letter-spacing:1.6px;font-size:11px;font-weight:800}.calc-mode{font-size:10px;color:#aaaba4;letter-spacing:1px}.display{min-height:144px;display:flex;flex-direction:column;justify-content:flex-end;text-align:right;padding:24px 4px 27px;overflow:hidden}.expression{font-size:15px;color:#a0a19c;min-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result{font-size:clamp(40px,5vw,62px);font-weight:650;letter-spacing:-2px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.result.error{font-size:24px;color:#cc4c31;letter-spacing:0}.keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.key{height:68px;border:1px solid #eeeeea;border-radius:11px;background:#f8f8f5;color:#292a25;font-size:23px;cursor:pointer;transition:background .12s,transform .12s,border-color .12s}.key:active{transform:scale(.965)}.key:hover{background:#f0f0eb;border-color:#deded8}.utility{background:#f2f2ed;font-size:17px;font-weight:600}.operator{background:#fff2e9;color:#d65b26;font-weight:500;border-color:#f9eadf}.operator:hover{background:#ffe9d9}.equals{background:#f46a30;color:white;border-color:#f46a30;font-size:27px}.equals:hover{background:#db5826}.calc-footnote{font-size:10px;color:#999a93;margin:22px 2px 0;display:flex;gap:8px;align-items:center;letter-spacing:.2px}.calc-footnote>span:first-child{font-size:14px}.footnote-right{margin-left:auto;letter-spacing:.5px}.sidebar{display:grid;gap:22px}.history-card{border:1px solid #e7e7e1;padding:28px;border-radius:18px;background:#fff;min-height:320px;display:flex;flex-direction:column}.aside-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.aside-heading h2{font-size:25px;letter-spacing:-.8px;margin:10px 0 0;font-weight:700}.quiet-button{background:none;border:0;font-size:12px;color:#9a9b93;cursor:pointer;padding:6px}.quiet-button:hover{color:#e26835}.history-list{list-style:none;padding:0;margin:20px 0;overflow:auto;max-height:280px;flex:1}.history-list li:not(.empty-history){padding:11px 0;border-bottom:1px solid #f0f0ed;display:flex;justify-content:space-between;gap:10px;align-items:center}.history-list button{background:none;border:0;padding:0;cursor:pointer;text-align:left;flex:1;display:flex;justify-content:space-between;gap:12px}.history-list button:hover .history-value{color:#e26835}.history-exp{font-size:12px;color:#96978f;overflow-wrap:anywhere}.history-value{font-size:15px;font-weight:700;max-width:54%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-history{color:#acaea6;font-size:13px;line-height:1.8;margin-top:25px}.history-footnote{color:#a5a69f;font-size:11px;margin:0}.tip-card{background:#eaece6;border-radius:18px;padding:27px 28px 29px;min-height:185px}.tip-symbol{font-size:20px;color:#dc6a36}.tip-title{font-size:18px;font-weight:750;margin:11px 0 7px}.tip-copy{font-size:13px;line-height:1.75;color:#777a70;margin:0;max-width:340px}.tip-copy strong{color:#464840;font-weight:700}.footer-text{margin:35px 0 70px;color:#9b9c95;font-size:12px}.footer{border-top:1px solid #e4e4de;padding:25px 0 30px;display:flex;justify-content:space-between;color:#a6a7a0;font-size:10px;font-weight:700;letter-spacing:1.3px}@media(max-width:820px){.shell{padding:0 20px}.header{height:77px}.intro{padding:40px 0 26px}.intro h1{letter-spacing:-1.8px}.workspace{grid-template-columns:minmax(0,1fr);gap:18px;max-width:560px;margin:0 auto}.history-card{min-height:220px}.footer-text{margin:30px 0 50px}.calc-footnote .footnote-right{display:none}}@media(max-width:460px){.shell{padding:0 14px}.header-tag{letter-spacing:.9px;font-size:9px}.intro h1{font-size:42px}.lead{font-size:13px}.calculator{padding:16px}.key{height:60px}.keys{gap:8px}.display{min-height:134px}.result{font-size:47px}.history-card{padding:22px}.footer{font-size:9px}.footer span:last-child{display:none}}@media(prefers-reduced-motion:reduce){.key{transition:none}}
