:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18233d;background:#f3f6fc;font-synthesis:none;--blue:#2b60e4;--muted:#8992a8}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #82a9ff;outline-offset:3px}[hidden]{display:none!important}
.workspace{max-width:1060px;padding:32px 42px 20px;margin:auto}.page-header{display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;color:#1c2945;font-size:22px;font-weight:750;letter-spacing:-1px;text-decoration:none}.brand-dot{color:var(--blue)}.brand-icon{display:grid;place-items:center;width:32px;height:36px;margin-right:10px;border-radius:10px;color:white;background:linear-gradient(145deg,#5785ff,#2455d0);font-size:30px;font-weight:400;box-shadow:0 4px 10px #3264de21}.header-note{font-size:12px;color:var(--muted)}.intro{padding:54px 0 30px}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:750;color:var(--blue)}h1{font-size:46px;letter-spacing:-2px;margin:10px 0 9px;line-height:1.15}.intro p{font-size:14px;color:#7b859b;margin:0}.app-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:stretch}.card{background:#fff;border:1px solid #e6ebf4;border-radius:24px;box-shadow:0 12px 40px #283e6e05}.calculator{padding:24px}.calculator-heading{display:flex;justify-content:space-between;font-size:11px;font-weight:600;color:#6c7890}.calculator-heading>span:first-child{display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;background:#4a7bf0;border-radius:100%}.key-hint{font-weight:400;color:#9da6b8}.display{margin:23px 0 0;padding:17px 20px 18px;background:linear-gradient(120deg,#f2f6ff,#f8faff);border:1px solid #eaf0ff;border-radius:15px;text-align:right;min-height:139px}#expression{width:100%;border:0;outline:none;background:transparent;text-align:right;font-size:20px;line-height:30px;color:#667494;min-width:0}#expression:focus{box-shadow:0 2px #c6d7ff}#expression::placeholder{color:#9ba7c1}.answer-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:7px 0}.equals-sign{color:#a1b4dc;font-size:21px}#result{font-size:40px;letter-spacing:-1.6px;font-weight:650;line-height:1.2;overflow-wrap:anywhere;min-width:0}#result-caption{color:#97a3b9;font-size:10px}.notice{font-size:12px;color:#be4552;min-height:29px;padding:7px 2px 3px;line-height:1.4}.notice.success{color:#4d729b}.keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.key{height:58px;border:1px solid transparent;border-radius:12px;background:#f4f6fa;color:#2b3650;font-size:22px;font-weight:500;transition:background .12s,transform .12s}.key:hover{background:#e9eef8}.key:active{transform:scale(.94)}.key-function{background:#edf1f8;color:#75839d;font-size:20px}.key-clear{background:#edf2ff;color:var(--blue);font-size:16px;font-weight:600}.key-operation{background:#edf2ff;color:var(--blue);font-size:26px}.key-equals{background:linear-gradient(135deg,#4c7cf5,#2455d5);box-shadow:0 5px 13px #2d62df26;color:white;font-size:27px}.key-equals:hover{background:#2455d5}.calculator-tip{color:#9ba4b5;font-size:10px;text-align:center;margin:19px 0 0}.history{padding:27px 24px 18px;display:flex;flex-direction:column;min-height:548px}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font-size:17px;letter-spacing:-.3px;margin:0}.text-button{background:none;border:0;color:var(--blue);padding:4px;font-size:11px}.text-button:disabled{cursor:default}.history-description{font-size:11px;color:#929caf;margin:9px 0 22px}.empty-state{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#939eb2;padding:30px 0 60px}.empty-icon{display:grid;place-items:center;width:65px;height:65px;background:#f2f6fe;border-radius:20px;font-size:36px;color:#9db5ee;margin-bottom:8px}.empty-state h3{font-size:14px;color:#67738d;font-weight:550;margin:14px 0 0}.empty-state p{font-size:12px;line-height:1.8}.history-list{padding:0;margin:0;list-style:none;flex:1;max-height:414px;overflow:auto;scrollbar-width:thin}.history-item{display:flex;border-bottom:1px solid #f0f2f7;align-items:center;gap:6px}.history-reuse{text-align:left;background:none;border:0;padding:16px 4px;flex:1;min-width:0;border-radius:7px}.history-reuse:hover{background:#f6f8ff}.history-expression{display:block;color:#8590a6;font-size:12px;overflow-wrap:anywhere}.history-result{display:block;font-size:22px;line-height:1.5;color:#253650;overflow-wrap:anywhere}.history-date{display:block;color:#a3adbc;font-size:9px;margin-top:3px}.delete-item{align-self:center;border:0;background:none;color:#96a3bc;font-size:20px;border-radius:6px;padding:7px}.delete-item:hover{color:#bb465b;background:#fff0f3}.history-footer{border-top:1px solid #eef1f7;padding-top:16px;font-size:10px;color:#a1aabc;margin-top:18px}.history-footer span{margin-right:5px}.history-error{font-size:12px;color:#b44755;background:#fff3f3;padding:10px;border-radius:9px}.footnote{display:flex;gap:11px;align-items:center;margin:24px 6px;color:#8995ab;font-size:10px;line-height:1.8}.footnote p{margin:0}.footnote strong{font-weight:500;color:#607291}.mini-mark{font-size:27px;color:#91a6d8}footer{text-align:center;color:#a2adbd;font-size:10px;padding:16px 0}.loader{height:26px;width:26px;border:2px solid #e2eafa;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #e5eaf5;border-radius:20px;padding:27px;max-width:calc(100% - 40px);color:#253650;box-shadow:0 20px 80px #1d2e5626}dialog::backdrop{background:#18284b66}dialog p{font-size:14px;color:#7a859c;max-width:290px;line-height:1.6}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-button{border:0;border-radius:9px;padding:10px 16px;background:#edf1f8;color:#52617e}.dialog-button.primary{background:var(--blue);color:white}
@media(min-width:1200px){.workspace{padding-top:43px}.intro{padding-top:66px}}
@media(max-width:680px){.workspace{padding:23px 18px 16px;max-width:460px}.header-note{display:none}.brand{font-size:20px}.brand-icon{height:31px;width:29px;font-size:26px}.intro{padding:35px 3px 25px}h1{font-size:37px;margin-top:9px;letter-spacing:-1.4px}.intro p{font-size:12px}.eyebrow{font-size:9px}.app-grid{grid-template-columns:1fr;gap:19px}.calculator{padding:20px;border-radius:21px}.display{margin-top:21px}.key{height:57px}.keypad{gap:9px}.history{min-height:300px;border-radius:21px;padding:23px 21px 18px}.empty-state{padding:20px 0 25px}.empty-icon{width:48px;height:48px;font-size:29px;border-radius:15px}.history-list{max-height:350px}.footnote{font-size:9px;gap:8px;margin:22px 3px}.key-hint{font-size:10px}footer{padding:7px 0 14px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
