.calculator-display{padding:24px 20px 16px;text-align:right;min-height:140px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;background-color:#f8f8f8}.history-button{position:absolute;top:16px;right:16px;cursor:pointer;background-color:#ff67001a;width:auto;height:auto;display:flex;align-items:center;justify-content:center;border-radius:8px;padding:8px 12px;transition:background-color .2s;z-index:10}.history-button:hover{background-color:#ff670033}.history-button:active{background-color:#ff67004d}.history-icon{width:20px;height:20px;fill:#ff6700}.angle-mode-indicator{position:absolute;top:16px;left:16px;background-color:#ff67001a;color:#ff6700;font-size:14px;padding:8px 12px;border-radius:8px;font-weight:600;z-index:10}.recent-history{position:absolute;top:16px;left:16px;right:60px;display:flex;flex-direction:column;gap:6px;max-height:90px;overflow:hidden}.recent-history.scientific-mode{left:80px;right:60px}.recent-history-item{position:relative;display:flex;justify-content:space-between;align-items:center;cursor:pointer;transition:transform .3s,background-color .2s;font-size:13px;overflow:hidden;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.recent-history-content{flex:1;display:flex;justify-content:space-between;align-items:center;padding:2px 4px;position:relative;z-index:1;transition:transform .3s ease;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.recent-expression{color:#666;flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%;font-size:13px}.recent-result{color:#666;margin-left:8px;font-size:13px;font-weight:400}.recent-slide-actions{position:absolute;top:0;right:0;height:100%;width:60px;display:flex;align-items:center;justify-content:center;background-color:#ff3b30;transform:translate(100%);transition:transform .3s ease;z-index:0;-webkit-user-select:none;user-select:none;pointer-events:none;border-radius:4px}.recent-history-item.slide-open .recent-history-content{transform:translate(-60px)}.recent-history-item.slide-open .recent-slide-actions{transform:translate(0);pointer-events:auto}.recent-delete-button{width:100%;height:100%;background-color:transparent;color:#fff;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s;box-shadow:none}.recent-delete-button:hover{background-color:#ff2d20}.recent-delete-icon{width:16px;height:16px;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>');background-repeat:no-repeat;background-position:center;background-size:contain}.recent-long-press-dialog{position:fixed;z-index:1001;min-width:140px;max-width:200px;width:auto}.recent-dialog-content{background-color:#fff;border-radius:12px;box-shadow:0 8px 32px #00000026;overflow:hidden;border:1px solid #E8E8E8}.mi-calc .recent-dialog-option{width:100%;padding:14px 20px;border:none;background:none;font-size:16px!important;font-weight:500;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important;color:#1a1a1a;text-align:center;cursor:pointer;transition:background-color .2s;border-bottom:1px solid #F0F0F0;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:1.3;min-height:48px;display:flex;align-items:center;justify-content:center}.recent-dialog-option:last-child{border-bottom:none}.recent-dialog-option:hover{background-color:#f8f8f8}.recent-dialog-option:active{background-color:#f0f0f0}.recent-dialog-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1}.recent-confirm-dialog-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1002;animation:fadeIn .2s ease}.recent-confirm-dialog{background-color:#fff;border-radius:16px;box-shadow:0 12px 48px #0003;overflow:visible;max-width:320px;width:90%;margin:0 20px;animation:slideUp .3s ease}.recent-confirm-dialog-header{padding:20px 20px 16px;border-bottom:1px solid #F0F0F0}.recent-confirm-dialog-header h3{margin:0;font-size:18px;font-weight:600;color:#1a1a1a;text-align:center;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:1.3}.recent-confirm-dialog-body{padding:16px 20px 20px}.recent-confirm-dialog-body p{margin:0;font-size:16px;color:#666;text-align:center;line-height:1.4;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.recent-confirm-dialog-footer{display:flex;border-top:1px solid #F0F0F0}.recent-confirm-cancel-btn,.recent-confirm-delete-btn{flex:1;padding:16px 12px;border:none;background:none;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s;-webkit-tap-highlight-color:transparent;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:1.2;min-height:52px;display:flex;align-items:center;justify-content:center}.recent-confirm-cancel-btn{color:#666;border-right:1px solid #F0F0F0}.recent-confirm-cancel-btn:hover{background-color:#f8f8f8}.recent-confirm-cancel-btn:active{background-color:#f0f0f0}.recent-confirm-delete-btn{color:#ff3b30;font-weight:600}.recent-confirm-delete-btn:hover{background-color:#ff3b300d}.recent-confirm-delete-btn:active{background-color:#ff3b301a}.expression-container{margin-bottom:8px;min-height:100px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;overflow:hidden}.display-row{min-height:32px;display:flex;flex-direction:column;justify-content:flex-end}.expression-row{text-align:right}.expression-text{text-align:right;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;line-height:1.3}.result-row{text-align:right;margin-top:0}.result-text{text-align:right;white-space:nowrap;line-height:1.2}.result-text.small-text,.result-text.very-small-text{white-space:nowrap!important}.display-row.primary{margin-top:8px}.display-row.secondary{opacity:.7}.expression-text{color:#666;font-size:24px;line-height:1.2;min-height:32px;font-weight:500}.expression-text.emphasized{color:#1a1a1a;font-size:30px;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.1)}.expression-text.super-emphasized{color:#ff6700;font-size:32px;font-weight:800;text-shadow:0 2px 4px rgba(255,103,0,.2)}.current-operand{color:#1a1a1a;font-size:40px;line-height:1.2;font-weight:300}.result-text{color:#ff6700;font-size:40px;line-height:1.2;font-weight:600}.clickable-result{cursor:pointer;position:relative}.clickable-result:hover{color:#e55a00;transform:scale(1.02)}.clickable-result:active{transform:scale(.98)}.result-text.real-time-result,.result-text.placeholder-result{color:#999;font-size:28px;min-height:32px;font-weight:500}.expression-container .result-text.placeholder-result{color:#1a1a1a;font-size:48px;font-weight:300;line-height:1.2}.has-result .display-row.primary .result-text{color:#ff6700;font-size:40px}.display-row.primary .expression-text{font-size:30px}.display-row.primary .current-operand{font-size:40px}.display-row.secondary .expression-text,.display-row.secondary .current-operand{font-size:20px;color:#999}.small-text.expression-text{font-size:18px!important}.small-text.expression-text.emphasized{font-size:22px!important}.small-text.expression-text.super-emphasized{font-size:24px!important}.small-text.current-operand,.small-text.result-text{font-size:32px!important}.very-small-text.result-text{font-size:20px!important}.ultra-small-text.result-text{font-size:16px!important}@media (max-width: 420px){.calculator-display{padding:20px 16px 12px;min-height:120px}.expression-container{min-height:80px}.expression-text{font-size:20px}.expression-text.emphasized{font-size:24px}.expression-text.super-emphasized{font-size:26px}.current-operand,.result-text{font-size:36px}.result-text.real-time-result,.result-text.placeholder-result{font-size:24px}.expression-container .result-text.placeholder-result{font-size:40px}.history-button{top:12px;right:12px;padding:6px 10px}.history-icon{width:18px;height:18px}.recent-history{top:12px;left:12px;right:50px;gap:4px}.recent-history.scientific-mode{left:70px}.recent-history-item,.recent-expression,.recent-result{font-size:12px}.angle-mode-indicator{top:12px;left:12px;font-size:12px;padding:6px 10px}.recent-long-press-dialog{min-width:120px;max-width:180px}.recent-dialog-option{font-size:14px;padding:12px 16px;min-height:44px}.recent-confirm-dialog-header h3{font-size:16px}.recent-confirm-dialog-body p{font-size:14px}.recent-confirm-cancel-btn,.recent-confirm-delete-btn{font-size:15px;padding:14px 10px;min-height:48px}}@media (max-height: 600px){.calculator-display{padding:16px 12px 8px;min-height:100px}.expression-container{min-height:60px;margin-bottom:6px}.display-row{min-height:28px}.expression-text{font-size:18px;min-height:28px}.expression-text.emphasized{font-size:22px}.expression-text.super-emphasized{font-size:24px}.current-operand,.result-text{font-size:32px}.result-text.real-time-result,.result-text.placeholder-result{font-size:22px}.expression-container .result-text.placeholder-result{font-size:36px}.small-text.expression-text{font-size:14px!important}.small-text.expression-text.emphasized{font-size:18px!important}.small-text.expression-text.super-emphasized{font-size:20px!important}.small-text.current-operand,.small-text.result-text{font-size:26px!important}.very-small-text.result-text{font-size:18px!important}.ultra-small-text.result-text{font-size:14px!important}.recent-history{max-height:65px;gap:3px}.recent-history-item,.recent-expression,.recent-result{font-size:11px}}@media (max-width: 480px){.recent-long-press-dialog{min-width:120px;max-width:180px}.mi-calc .recent-dialog-option{font-size:14px!important;padding:12px 16px;min-height:44px}}@media (max-width: 350px){.small-text.current-operand,.small-text.result-text{font-size:20px!important}.very-small-text.result-text{font-size:16px!important}.ultra-small-text.result-text{font-size:12px!important}.angle-mode-indicator{top:8px;left:8px;font-size:11px;padding:4px 6px}.recent-history.scientific-mode{left:60px}.history-button{top:8px;right:8px;padding:4px 6px}.history-icon{width:16px;height:16px}.mi-calc .recent-dialog-option{font-size:13px!important;padding:10px 12px;min-height:40px}.recent-confirm-dialog-header h3{font-size:15px}.recent-confirm-dialog-body p{font-size:13px}.recent-confirm-cancel-btn,.recent-confirm-delete-btn{font-size:14px;padding:12px 8px;min-height:44px}}@media (prefers-color-scheme: dark){.calculator-display{background-color:#1c1c1e}.expression-text{color:#8e8e93}.expression-text.emphasized{color:#fff}.expression-text.super-emphasized{color:#ff6700;text-shadow:0 2px 4px rgba(255,103,0,.3)}.current-operand{color:#fff}.result-text{color:#ff6700}.result-text.real-time-result,.result-text.placeholder-result{color:#6d6d70}.expression-container .result-text.placeholder-result{color:#fff}.display-row.secondary .expression-text,.display-row.secondary .current-operand{color:#6d6d70}.history-button{background-color:#ff670033}.history-button:hover{background-color:#ff67004d}.history-button:active{background-color:#ff670066}.history-icon{fill:#ff6700}.recent-expression,.recent-result{color:#8e8e93}.angle-mode-indicator{background-color:#ff670033}.recent-dialog-content{background-color:#2c2c2e;border-color:#48484a}.recent-dialog-option{color:#fff;border-bottom-color:#48484a}.recent-dialog-option:hover{background-color:#3a3a3c}.recent-dialog-option:active{background-color:#48484a}.recent-confirm-dialog{background-color:#2c2c2e}.recent-confirm-dialog-header{border-bottom-color:#48484a}.recent-confirm-dialog-header h3{color:#fff}.recent-confirm-dialog-body p{color:#8e8e93}.recent-confirm-dialog-footer{border-top-color:#48484a}.recent-confirm-cancel-btn{color:#8e8e93;border-right-color:#48484a}.recent-confirm-cancel-btn:hover{background-color:#ffffff0d}.recent-confirm-cancel-btn:active{background-color:#ffffff1a}.recent-confirm-delete-btn{color:#ff453a}.recent-confirm-delete-btn:hover{background-color:#ff453a1a}.recent-confirm-delete-btn:active{background-color:#ff453a33}}.calc-button{border:none;border-radius:12px;font-size:30px;font-weight:400;cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:64px;margin:2px;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:manipulation;transition:transform .1s cubic-bezier(.25,.46,.45,.94),background-color .1s cubic-bezier(.25,.46,.45,.94),box-shadow .1s cubic-bezier(.25,.46,.45,.94);transform:scale(1) translateZ(0);will-change:transform,background-color,box-shadow;background-color:#fff!important;color:#1a1a1a;box-shadow:0 2px 8px #0000001a}.calc-button:focus{outline:none}.calc-button:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.calc-button.touch-active,.calc-button.mouse-active,.calc-button:active{background-color:#e8e8e8!important;transform:scale(.92) translateZ(0)!important;box-shadow:0 1px 4px #0003!important;transition:none!important}.calc-button.zero,.calc-button.one,.calc-button.two,.calc-button.three,.calc-button.four,.calc-button.five,.calc-button.six,.calc-button.seven,.calc-button.eight,.calc-button.nine,.calc-button.decimal,.calc-button.e{color:#1a1a1a!important;font-weight:700!important}.calc-button.zero.touch-active,.calc-button.zero.mouse-active,.calc-button.zero:active,.calc-button.one.touch-active,.calc-button.one.mouse-active,.calc-button.one:active,.calc-button.two.touch-active,.calc-button.two.mouse-active,.calc-button.two:active,.calc-button.three.touch-active,.calc-button.three.mouse-active,.calc-button.three:active,.calc-button.four.touch-active,.calc-button.four.mouse-active,.calc-button.four:active,.calc-button.five.touch-active,.calc-button.five.mouse-active,.calc-button.five:active,.calc-button.six.touch-active,.calc-button.six.mouse-active,.calc-button.six:active,.calc-button.seven.touch-active,.calc-button.seven.mouse-active,.calc-button.seven:active,.calc-button.eight.touch-active,.calc-button.eight.mouse-active,.calc-button.eight:active,.calc-button.nine.touch-active,.calc-button.nine.mouse-active,.calc-button.nine:active,.calc-button.decimal.touch-active,.calc-button.decimal.mouse-active,.calc-button.decimal:active,.calc-button.e.touch-active,.calc-button.e.mouse-active,.calc-button.e:active{color:#1a1a1a!important}.calc-button.toggle-mode,.calc-button.clear,.calc-button.backspace,.calc-button.percent,.calc-button.multiply,.calc-button.divide,.calc-button.subtract,.calc-button.add{color:#ff6700!important;font-weight:400!important}.calc-button.toggle-mode.touch-active,.calc-button.toggle-mode.mouse-active,.calc-button.toggle-mode:active,.calc-button.clear.touch-active,.calc-button.clear.mouse-active,.calc-button.clear:active,.calc-button.backspace.touch-active,.calc-button.backspace.mouse-active,.calc-button.backspace:active,.calc-button.percent.touch-active,.calc-button.percent.mouse-active,.calc-button.percent:active,.calc-button.multiply.touch-active,.calc-button.multiply.mouse-active,.calc-button.multiply:active,.calc-button.divide.touch-active,.calc-button.divide.mouse-active,.calc-button.divide:active,.calc-button.subtract.touch-active,.calc-button.subtract.mouse-active,.calc-button.subtract:active,.calc-button.add.touch-active,.calc-button.add.mouse-active,.calc-button.add:active{color:#ff6700!important}.calc-button.equals{background-color:#ff6700!important;color:#fff!important;font-weight:600;box-shadow:0 3px 12px #ff670040}.calc-button.equals:hover{background-color:#e55a00!important;box-shadow:0 4px 14px #ff670059}.calc-button.equals.touch-active,.calc-button.equals.mouse-active,.calc-button.equals:active{background-color:#cc5200!important;color:#fff!important;transform:scale(.92) translateZ(0)!important;box-shadow:0 2px 8px #cc520066!important;transition:none!important}.calc-button.toggle.active{background-color:#ff6700!important;color:#fff!important;box-shadow:0 3px 12px #ff67004d}.calc-button.toggle.active:hover{background-color:#e55a00!important;box-shadow:0 4px 14px #ff670066}.calc-button.toggle.active.touch-active,.calc-button.toggle.active.mouse-active,.calc-button.toggle.active:active{background-color:#cc5200!important;color:#fff!important;transform:scale(.92) translateZ(0)!important;transition:none!important}@media (hover: none) and (pointer: coarse){.calc-button{margin:1px}.calc-button:hover{background-color:#fff!important;box-shadow:0 2px 8px #0000001a!important;transform:scale(1) translateZ(0)!important}.calc-button.equals:hover,.calc-button.toggle.active:hover{background-color:#ff6700!important}.calc-button.touch-active{transform:scale(.9) translateZ(0)!important;box-shadow:0 1px 3px #00000040!important}.calc-button.equals.touch-active,.calc-button.toggle.active.touch-active{transform:scale(.9) translateZ(0)!important}}.button-content{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.primary-function,.secondary-function{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;text-align:center;transition:opacity .2s ease;display:flex;align-items:center;justify-content:center}.secondary-function{opacity:0}.calc-button.second-function-active .secondary-function{opacity:1}.calc-button.second-function-active .primary-function,.calc-button.active.angle-mode .primary-function{opacity:0}.calc-button .backspace-icon,.calc-button .mode-toggle-icon{fill:currentColor!important}.calc-button .history-icon{width:24px!important;height:24px!important;fill:currentColor;stroke-width:2}.calc-button .clear-icon,.calc-button .percent-icon,.calc-button .divide-icon,.calc-button .multiply-icon,.calc-button .subtract-icon,.calc-button .add-icon{fill:currentColor!important}.calc-button .equals-icon{fill:#fff!important}.calc-button svg{width:20px;height:20px;fill:currentColor;display:inline-block;vertical-align:middle;pointer-events:none}.calc-button sup{font-size:.6em;vertical-align:super;line-height:0}.calc-button sub{font-size:.6em;vertical-align:sub;line-height:0}@media (max-width: 420px){.calc-button{font-size:22px;min-height:56px;border-radius:10px}.calc-button svg{width:18px;height:18px}.calc-button .history-icon{width:20px!important;height:20px!important}}@media (max-height: 600px){.calc-button{font-size:20px;min-height:44px;border-radius:8px;margin:1px}.calc-button svg{width:16px;height:16px}.calc-button .history-icon{width:18px!important;height:18px!important}}.scientific-calc .calc-button{font-size:18px;min-height:52px;margin:1px}.scientific-calc .calc-button svg{width:16px;height:16px}.scientific-calc .calc-button .history-icon{width:20px!important;height:20px!important}@media (prefers-color-scheme: dark){.calc-button{background-color:#2c2c2e!important;box-shadow:0 2px 8px #0000004d}.calc-button.touch-active,.calc-button.mouse-active,.calc-button:active{background-color:#48484a!important}.calc-button.zero,.calc-button.one,.calc-button.two,.calc-button.three,.calc-button.four,.calc-button.five,.calc-button.six,.calc-button.seven,.calc-button.eight,.calc-button.nine,.calc-button.decimal,.calc-button.e,.calc-button.zero.touch-active,.calc-button.zero.mouse-active,.calc-button.zero:active,.calc-button.one.touch-active,.calc-button.one.mouse-active,.calc-button.one:active,.calc-button.two.touch-active,.calc-button.two.mouse-active,.calc-button.two:active,.calc-button.three.touch-active,.calc-button.three.mouse-active,.calc-button.three:active,.calc-button.four.touch-active,.calc-button.four.mouse-active,.calc-button.four:active,.calc-button.five.touch-active,.calc-button.five.mouse-active,.calc-button.five:active,.calc-button.six.touch-active,.calc-button.six.mouse-active,.calc-button.six:active,.calc-button.seven.touch-active,.calc-button.seven.mouse-active,.calc-button.seven:active,.calc-button.eight.touch-active,.calc-button.eight.mouse-active,.calc-button.eight:active,.calc-button.nine.touch-active,.calc-button.nine.mouse-active,.calc-button.nine:active,.calc-button.decimal.touch-active,.calc-button.decimal.mouse-active,.calc-button.decimal:active,.calc-button.e.touch-active,.calc-button.e.mouse-active,.calc-button.e:active{color:#fff!important}.calc-button.toggle-mode,.calc-button.clear,.calc-button.backspace,.calc-button.percent,.calc-button.multiply,.calc-button.divide,.calc-button.subtract,.calc-button.add,.calc-button.toggle-mode.touch-active,.calc-button.toggle-mode.mouse-active,.calc-button.toggle-mode:active,.calc-button.clear.touch-active,.calc-button.clear.mouse-active,.calc-button.clear:active,.calc-button.backspace.touch-active,.calc-button.backspace.mouse-active,.calc-button.backspace:active,.calc-button.percent.touch-active,.calc-button.percent.mouse-active,.calc-button.percent:active,.calc-button.multiply.touch-active,.calc-button.multiply.mouse-active,.calc-button.multiply:active,.calc-button.divide.touch-active,.calc-button.divide.mouse-active,.calc-button.divide:active,.calc-button.subtract.touch-active,.calc-button.subtract.mouse-active,.calc-button.subtract:active,.calc-button.add.touch-active,.calc-button.add.mouse-active,.calc-button.add:active{color:#ff6700!important}.calc-button:not(.zero):not(.one):not(.two):not(.three):not(.four):not(.five):not(.six):not(.seven):not(.eight):not(.nine):not(.decimal):not(.e):not(.toggle-mode):not(.clear):not(.backspace):not(.percent):not(.multiply):not(.divide):not(.subtract):not(.add):not(.equals){color:#fff!important}.calc-button.equals{background-color:#ff6700!important;color:#fff!important}.calc-button.equals.touch-active,.calc-button.equals.mouse-active,.calc-button.equals:active{background-color:#cc5200!important;color:#fff!important}.calc-button.toggle.active{background-color:#ff6700!important;color:#fff!important}.calc-button.toggle.active.touch-active,.calc-button.toggle.active.mouse-active,.calc-button.toggle.active:active{background-color:#cc5200!important;color:#fff!important}}@media (prefers-reduced-motion: reduce){.calc-button{transition:none!important}}.dynamic-keypad{display:grid;gap:4px;padding:8px;background-color:#f8f8f8;width:100%;height:100%;touch-action:manipulation;-webkit-transform:translateZ(0);transform:translateZ(0);will-change:auto;position:relative;overflow:hidden}.basic-keypad{grid-template-columns:repeat(4,1fr)!important;grid-template-rows:repeat(5,1fr)!important;transform-origin:center center}.scientific-keypad{grid-template-columns:repeat(5,1fr)!important;grid-template-rows:repeat(7,1fr)!important;transform-origin:center center}.basic-button,.scientific-button{opacity:1;transform:scale(1)}.basic-keypad .scientific-button{opacity:0;transform:scale(.8);pointer-events:none}.hiding-scientific-buttons .scientific-button,.mode-switching.basic-keypad .scientific-button,.hiding-scientific-buttons.scientific-keypad .scientific-button{opacity:0!important;transform:scale(.3)!important;pointer-events:none!important;transition:none!important;animation:none!important}.second-function-active .calc-button .secondary-function{opacity:1}.second-function-active .calc-button .primary-function,.calc-button.active.angle-mode .primary-function{opacity:0}.calc-button.active.angle-mode .secondary-function{opacity:1}@media (min-width: 768px){.dynamic-keypad{gap:6px;padding:10px}}@media (max-width: 420px){.dynamic-keypad{gap:3px;padding:6px}}@media (max-height: 600px){.dynamic-keypad{gap:2px;padding:4px}}@media (prefers-color-scheme: dark){.dynamic-keypad{background-color:#1c1c1e}}.basic-keypad .basic-button[data-id=clear]{grid-area:1 / 1 / 2 / 2}.basic-keypad .basic-button[data-id=backspace]{grid-area:1 / 2 / 2 / 3}.basic-keypad .basic-button[data-id=percent]{grid-area:1 / 3 / 2 / 4}.basic-keypad .basic-button[data-id=divide]{grid-area:1 / 4 / 2 / 5}.basic-keypad .basic-button[data-id=seven]{grid-area:2 / 1 / 3 / 2}.basic-keypad .basic-button[data-id=eight]{grid-area:2 / 2 / 3 / 3}.basic-keypad .basic-button[data-id=nine]{grid-area:2 / 3 / 3 / 4}.basic-keypad .basic-button[data-id=multiply]{grid-area:2 / 4 / 3 / 5}.basic-keypad .basic-button[data-id=four]{grid-area:3 / 1 / 4 / 2}.basic-keypad .basic-button[data-id=five]{grid-area:3 / 2 / 4 / 3}.basic-keypad .basic-button[data-id=six]{grid-area:3 / 3 / 4 / 4}.basic-keypad .basic-button[data-id=subtract]{grid-area:3 / 4 / 4 / 5}.basic-keypad .basic-button[data-id=one]{grid-area:4 / 1 / 5 / 2}.basic-keypad .basic-button[data-id=two]{grid-area:4 / 2 / 5 / 3}.basic-keypad .basic-button[data-id=three]{grid-area:4 / 3 / 5 / 4}.basic-keypad .basic-button[data-id=add]{grid-area:4 / 4 / 5 / 5}.basic-keypad .basic-button[data-id=toggle-mode]{grid-area:5 / 1 / 6 / 2}.basic-keypad .basic-button[data-id=zero]{grid-area:5 / 2 / 6 / 3}.basic-keypad .basic-button[data-id=decimal]{grid-area:5 / 3 / 6 / 4}.basic-keypad .basic-button[data-id=equals]{grid-area:5 / 4 / 6 / 5}.history-panel[data-v-88beb3b4]{position:fixed;top:0;right:-100%;width:100%;height:100vh;background-color:#f5f5f5;z-index:1000;transition:right .3s ease;display:flex;flex-direction:column}.history-panel.visible[data-v-88beb3b4]{right:0}.history-header[data-v-88beb3b4]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;height:56px;position:relative}.back-button[data-v-88beb3b4]{background:none!important;border:none;padding:0;cursor:pointer;box-shadow:none!important;outline:none!important;-webkit-tap-highlight-color:transparent!important}.back-button[data-v-88beb3b4]:hover,.back-button[data-v-88beb3b4]:focus,.back-button[data-v-88beb3b4]:active,.back-button[data-v-88beb3b4]:visited{background:none!important;box-shadow:none!important;outline:none!important}.back-icon[data-v-88beb3b4]{width:24px;height:24px;fill:#333}.history-title[data-v-88beb3b4]{position:absolute;left:50%;transform:translate(-50%);margin:0;width:160px;height:27px;font-family:MiSans;font-style:normal;font-weight:500;font-size:20px;line-height:27px;text-align:center;color:#000;flex:none;order:1;flex-grow:1}.action-button[data-v-88beb3b4]{background:none!important;border:none;padding:0;cursor:pointer;box-shadow:none!important;outline:none!important;-webkit-tap-highlight-color:transparent!important}.action-button[data-v-88beb3b4]:hover,.action-button[data-v-88beb3b4]:focus,.action-button[data-v-88beb3b4]:active,.action-button[data-v-88beb3b4]:visited{background:none!important;box-shadow:none!important;outline:none!important}.action-icon[data-v-88beb3b4]{width:24px;height:24px;fill:#666}.select-all-icon[data-v-88beb3b4]{width:26px;height:26px}.select-all-icon path[data-v-88beb3b4]{fill:#000}.select-all-icon.has-selected path[data-v-88beb3b4]{fill:#ff7433}.history-content[data-v-88beb3b4]{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.empty-state[data-v-88beb3b4]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:40px 20px}.empty-icon[data-v-88beb3b4]{width:64px;height:64px;margin-bottom:16px;opacity:.4}.empty-icon svg[data-v-88beb3b4]{width:100%;height:100%}.empty-text[data-v-88beb3b4]{font-size:16px;color:#999;font-weight:400}.history-list[data-v-88beb3b4]{padding-bottom:120px}.history-group[data-v-88beb3b4]{margin-bottom:0}.date-header[data-v-88beb3b4]{padding:8px 16px;font-size:14px;color:#ff6700;font-weight:500;background-color:#f5f5f5}.history-items[data-v-88beb3b4]{background-color:transparent;margin:0}.history-item[data-v-88beb3b4]{background-color:#f5f5f5;border-bottom:1px solid #E0E0E0;cursor:pointer;transition:background-color .2s}.history-item[data-v-88beb3b4]:last-child{border-bottom:1px solid #E0E0E0}.history-item[data-v-88beb3b4]:hover{background-color:#eee}.item-content[data-v-88beb3b4]{display:flex;align-items:center;padding:16px;gap:16px}.calculation-info[data-v-88beb3b4]{flex:1;min-width:0;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-touch-callout:none}.expression[data-v-88beb3b4]{font-size:14px;color:#666;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result[data-v-88beb3b4]{font-size:18px;color:#333;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-button[data-v-88beb3b4]{width:24px;height:24px;border:2px solid #CCCCCC;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0;cursor:pointer;background:none}.selection-button.selected[data-v-88beb3b4]{background-color:#ff6700;border-color:#ff6700}.selection-inner[data-v-88beb3b4]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.check-icon[data-v-88beb3b4]{width:12px;height:12px}.bottom-actions[data-v-88beb3b4]{position:fixed;bottom:0;left:0;right:0;padding:28px 0;background-color:#f5f5f5;z-index:1001;display:flex;flex-direction:row;align-items:center;justify-content:space-around;max-width:100vw;height:auto}.cancel-btn[data-v-88beb3b4]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:0 16px;gap:4px;width:162px;min-height:50px;height:auto;background:#e8e8e8;border:none;border-radius:16px;font-family:MiSans,sans-serif;font-style:normal;font-weight:500;font-size:17px;line-height:1.2;color:#000;text-align:center;cursor:pointer;transition:background-color .2s;flex:none;flex-grow:0;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.cancel-btn[data-v-88beb3b4]:hover{background:#dedede}.cancel-btn[data-v-88beb3b4]:active{background-color:#d4d4d4}.delete-selected-btn[data-v-88beb3b4]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:0 16px;gap:4px;width:162px;min-height:50px;height:auto;background:#fe6903;border:none;border-radius:16px;font-family:MiSans,sans-serif;font-style:normal;font-weight:500;font-size:17px;line-height:1.2;color:#fff;text-align:center;cursor:pointer;transition:background-color .2s;flex:none;flex-grow:0;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.delete-selected-btn[data-v-88beb3b4]:hover:not(.disabled){background:#e55a00}.delete-selected-btn[data-v-88beb3b4]:active:not(.disabled){background:#cc5200}.delete-selected-btn.disabled[data-v-88beb3b4]{background:#ffa366;color:#fff;cursor:not-allowed}.long-press-dialog[data-v-88beb3b4]{position:fixed;z-index:1001;min-width:140px;max-width:200px;width:auto}.dialog-content[data-v-88beb3b4]{background-color:#fff;border-radius:12px;box-shadow:0 8px 32px #00000026;overflow:hidden;border:1px solid #E8E8E8}.history-panel .dialog-option[data-v-88beb3b4]{width:100%;padding:14px 20px;border:none;background:none;font-size:16px!important;font-weight:500;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important;color:#1a1a1a;text-align:center;cursor:pointer;transition:background-color .2s;border-bottom:1px solid #F0F0F0;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:1.3;min-height:48px;display:flex;align-items:center;justify-content:center}.dialog-option[data-v-88beb3b4]:last-child{border-bottom:none}.dialog-option[data-v-88beb3b4]:hover{background-color:#f8f8f8}.dialog-option[data-v-88beb3b4]:active{background-color:#f0f0f0}.dialog-overlay[data-v-88beb3b4]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1}.confirm-overlay[data-v-88beb3b4]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1002;padding:20px}.confirm-dialog[data-v-88beb3b4]{display:flex;flex-direction:column;align-items:center;padding:24px 0;gap:16px;width:314px;min-height:185px;height:auto;max-width:90vw;background:#fff;border-radius:36px;overflow:visible}.confirm-title[data-v-88beb3b4]{display:flex;align-items:center;justify-content:center;text-align:center;font-family:MiSans VF,sans-serif;font-style:normal;font-weight:380;font-size:18px;line-height:1.3;color:#000;padding:0 36px;width:100%;min-height:24px;height:auto;margin:0;flex:none;order:0;align-self:stretch;flex-grow:0;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.confirm-message[data-v-88beb3b4]{display:flex;align-items:center;justify-content:center;text-align:center;font-family:MiSans VF,sans-serif;font-style:normal;font-weight:330;font-size:16px;line-height:1.4;color:#000;padding:0 28px;width:100%;min-height:23px;height:auto;margin:0;flex:none;order:1;align-self:stretch;flex-grow:0;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.confirm-actions[data-v-88beb3b4]{display:flex;flex-direction:column;align-items:center;padding:8px 24px 0;width:100%;min-height:58px;height:auto;flex:none;order:3;align-self:stretch;flex-grow:0}.confirm-actions>div[data-v-88beb3b4]{display:flex;flex-direction:row;align-items:flex-start;padding:0;gap:12px;width:100%;max-width:266px;min-height:50px;height:auto;flex:none;order:0;align-self:stretch;flex-grow:0}.confirm-cancel[data-v-88beb3b4],.confirm-delete[data-v-88beb3b4]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px 16px;gap:4px;width:50%;max-width:127px;min-height:50px;height:auto;background:#e8e8e8;border-radius:16px;border:none;cursor:pointer;transition:background-color .2s;font-family:MiSans,sans-serif;font-size:17px;line-height:1.2;text-align:center;flex:none;flex-grow:1;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.confirm-cancel[data-v-88beb3b4]{color:#000;order:0}.confirm-cancel[data-v-88beb3b4]:hover{background-color:#dedede}.confirm-cancel[data-v-88beb3b4]:active{background-color:#d4d4d4}.confirm-delete[data-v-88beb3b4]{color:#fa382e;order:1}.confirm-delete[data-v-88beb3b4]:hover{background-color:#dedede}.confirm-delete[data-v-88beb3b4]:active{background-color:#d4d4d4}@media (max-width: 480px){.history-header[data-v-88beb3b4]{padding:8px 12px}.history-title[data-v-88beb3b4]{font-size:16px}.date-header[data-v-88beb3b4]{padding:6px 12px;font-size:13px}.history-items[data-v-88beb3b4]{margin:0}.item-content[data-v-88beb3b4]{padding:12px}.expression[data-v-88beb3b4]{font-size:13px}.result[data-v-88beb3b4]{font-size:16px}.bottom-actions[data-v-88beb3b4]{padding:20px 16px;gap:12px}.cancel-btn[data-v-88beb3b4],.delete-selected-btn[data-v-88beb3b4]{padding:12px 8px;font-size:14px;width:calc(50% - 6px);min-height:48px;line-height:1.3}.confirm-dialog[data-v-88beb3b4]{width:calc(100% - 40px);max-width:320px;margin:0 20px}.confirm-title[data-v-88beb3b4]{font-size:16px;padding:0 24px}.confirm-message[data-v-88beb3b4]{font-size:14px;padding:0 24px;line-height:1.5}.confirm-cancel[data-v-88beb3b4],.confirm-delete[data-v-88beb3b4]{font-size:15px;padding:10px 12px;min-height:44px}.long-press-dialog[data-v-88beb3b4]{min-width:120px;max-width:180px}.history-panel .dialog-option[data-v-88beb3b4]{font-size:14px!important;padding:12px 16px;min-height:44px}}@media (max-width: 350px){.cancel-btn[data-v-88beb3b4],.delete-selected-btn[data-v-88beb3b4]{font-size:13px;padding:10px 6px;min-height:44px}.confirm-dialog[data-v-88beb3b4]{width:calc(100% - 32px);margin:0 16px}.confirm-title[data-v-88beb3b4]{font-size:15px;padding:0 20px}.confirm-message[data-v-88beb3b4]{font-size:13px;padding:0 20px}.confirm-cancel[data-v-88beb3b4],.confirm-delete[data-v-88beb3b4]{font-size:14px;padding:8px 10px;min-height:40px}.history-panel .dialog-option[data-v-88beb3b4]{font-size:13px!important;padding:10px 12px;min-height:40px}}.mi-calc{background-color:#f8f8f8;border-radius:0;box-shadow:0 2px 12px #0000000f;width:100%;--mi-calc-actual-height: 100vh;height:var(--mi-calc-actual-height);max-width:100%;margin:0;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;position:relative;touch-action:manipulation;box-sizing:border-box;overflow:hidden}:root{--global-bottom-margin: 16px;--global-safe-area: env(safe-area-inset-bottom, 0px);--global-total-bottom: calc(var(--global-bottom-margin) + var(--global-safe-area))}.basic-calc{--basic-button-height: 64px;--basic-button-gap: 8px;--basic-keypad-padding-top: 12px;--basic-keypad-padding-sides: 12px;--basic-button-rows: 6;--basic-button-cols: 4;--basic-buttons-total-height: calc( var(--basic-button-height) * var(--basic-button-rows) + var(--basic-button-gap) * (var(--basic-button-rows) - 1) );--basic-keypad-content-height: calc( var(--basic-keypad-padding-top) + var(--basic-buttons-total-height) + var(--global-total-bottom) );--basic-display-height: calc(var(--mi-calc-actual-height) - var(--basic-keypad-content-height))}.scientific-calc{--sci-button-height: 52px;--sci-button-gap: 6px;--sci-keypad-padding-top: 10px;--sci-keypad-padding-sides: 10px;--sci-button-rows: 8;--sci-button-cols: 5;--sci-buttons-total-height: calc( var(--sci-button-height) * var(--sci-button-rows) + var(--sci-button-gap) * (var(--sci-button-rows) - 1) );--sci-keypad-content-height: calc( var(--sci-keypad-padding-top) + var(--sci-buttons-total-height) + var(--global-total-bottom) );--sci-display-height: calc(var(--mi-calc-actual-height) - var(--sci-keypad-content-height))}.calculator-display{flex:0 0 auto;padding:24px 20px 16px;text-align:right;display:flex;flex-direction:column;justify-content:flex-end;position:relative;background-color:#f8f8f8;overflow:hidden;box-sizing:border-box}.basic-calc .calculator-display{height:var(--basic-display-height);min-height:var(--basic-display-height);max-height:var(--basic-display-height)}.scientific-calc .calculator-display{height:var(--sci-display-height);min-height:var(--sci-display-height);max-height:var(--sci-display-height);padding:20px 20px 12px}.dynamic-keypad{flex:0 0 auto;display:grid;align-content:start;justify-content:stretch;background-color:#f8f8f8;box-sizing:border-box;overflow:hidden}.basic-calc .dynamic-keypad{height:var(--basic-keypad-content-height);min-height:var(--basic-keypad-content-height);max-height:var(--basic-keypad-content-height);grid-template-rows:repeat(var(--basic-button-rows),var(--basic-button-height));grid-template-columns:repeat(var(--basic-button-cols),1fr);gap:var(--basic-button-gap);padding-top:var(--basic-keypad-padding-top);padding-left:var(--basic-keypad-padding-sides);padding-right:var(--basic-keypad-padding-sides);padding-bottom:var(--global-total-bottom)}.scientific-calc .dynamic-keypad{height:var(--sci-keypad-content-height);min-height:var(--sci-keypad-content-height);max-height:var(--sci-keypad-content-height);grid-template-rows:repeat(var(--sci-button-rows),var(--sci-button-height));grid-template-columns:repeat(var(--sci-button-cols),1fr);gap:var(--sci-button-gap);padding-top:var(--sci-keypad-padding-top);padding-left:var(--sci-keypad-padding-sides);padding-right:var(--sci-keypad-padding-sides);padding-bottom:var(--global-total-bottom)}.calc-button .sqrt-icon{width:20px!important;height:20px!important}@media (max-width: 420px){:root{--global-bottom-margin: 12px}.basic-calc{--basic-button-height: 56px;--basic-button-gap: 6px;--basic-keypad-padding-top: 8px;--basic-keypad-padding-sides: 8px}.scientific-calc{--sci-button-height: 48px;--sci-button-gap: 5px;--sci-keypad-padding-top: 8px;--sci-keypad-padding-sides: 8px}}@media (max-height: 600px){:root{--global-bottom-margin: 10px}.basic-calc{--basic-button-height: 50px;--basic-button-gap: 5px;--basic-keypad-padding-top: 6px;--basic-keypad-padding-sides: 6px}.scientific-calc{--sci-button-height: 44px;--sci-button-gap: 4px;--sci-keypad-padding-top: 6px;--sci-keypad-padding-sides: 6px}}@media (max-height: 500px){:root{--global-bottom-margin: 8px}.basic-calc{--basic-button-height: 46px;--basic-button-gap: 4px;--basic-keypad-padding-top: 5px;--basic-keypad-padding-sides: 5px}.scientific-calc{--sci-button-height: 40px;--sci-button-gap: 3px;--sci-keypad-padding-top: 5px;--sci-keypad-padding-sides: 5px}}@media (max-height: 400px){:root{--global-bottom-margin: 6px}.basic-calc{--basic-button-height: 42px;--basic-button-gap: 3px;--basic-keypad-padding-top: 4px;--basic-keypad-padding-sides: 4px}.scientific-calc{--sci-button-height: 36px;--sci-button-gap: 2px;--sci-keypad-padding-top: 4px;--sci-keypad-padding-sides: 4px}}.mi-calc button{border:none;cursor:pointer;border-radius:12px;font-weight:500;transition:all .1s cubic-bezier(.25,.46,.45,.94);position:relative;overflow:hidden;box-shadow:0 2px 8px #0000001a;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;outline:none;display:flex;align-items:center;justify-content:center;transform:translateZ(0);will-change:transform,box-shadow;background-color:#fff;color:#1a1a1a;font-size:24px}.basic-calc button{height:var(--basic-button-height);font-size:30px;border-radius:16px}.scientific-calc button{height:var(--sci-button-height);font-size:20px;border-radius:10px}.basic-calc button.operation{font-size:38px}.scientific-calc button.operation{font-size:28px}@media (max-width: 420px){.basic-calc button{font-size:24px}.basic-calc button.operation{font-size:32px}.scientific-calc button.operation{font-size:24px}.scientific-calc button{font-size:18px}}@media (max-height: 600px){.basic-calc button{font-size:22px}.basic-calc button.operation{font-size:28px}.scientific-calc button.operation{font-size:22px}.scientific-calc button{font-size:16px}}@media (max-height: 500px){.basic-calc button{font-size:20px}.basic-calc button.operation{font-size:26px}.scientific-calc button.operation{font-size:20px}.scientific-calc button{font-size:15px}}@media (max-height: 400px){.basic-calc button{font-size:18px}.basic-calc button.operation{font-size:24px}.scientific-calc button.operation{font-size:18px}.scientific-calc button{font-size:14px}}.mi-calc button:focus{outline:none}.mi-calc button:active{transform:scale(.95) translateZ(0);background-color:#e8e8e8!important;box-shadow:0 1px 4px #0003;transition:all .05s cubic-bezier(.25,.46,.45,.94)}@media (hover: none) and (pointer: coarse){.mi-calc button{transition:all .08s cubic-bezier(.25,.46,.45,.94)}.mi-calc button:active{transform:scale(.92) translateZ(0);background-color:#e8e8e8!important;box-shadow:0 1px 3px #00000040;transition:all .03s cubic-bezier(.25,.46,.45,.94)}}.mi-calc .number-key{background-color:#fff!important;color:#1a1a1a!important;font-weight:700}.mi-calc .number-key:hover{background-color:#fff!important;box-shadow:0 3px 10px #0000001f}.mi-calc .function-key,.mi-calc .toggle-key,.mi-calc .operation-key,.mi-calc .memory{background-color:#fff!important;color:#ff6700!important;font-weight:400}.mi-calc .function-key:hover,.mi-calc .toggle-key:hover,.mi-calc .operation-key:hover,.mi-calc .memory:hover{background-color:#fff!important;box-shadow:0 3px 10px #0000001f}.mi-calc .toggle-key.active{background-color:#ff6700!important;color:#fff!important;box-shadow:0 3px 12px #ff67004d}.mi-calc .toggle-key.active:hover{background-color:#e55a00!important;box-shadow:0 4px 14px #ff670066}.mi-calc .equals-key{background-color:#ff6700!important;color:#fff!important;font-weight:600;box-shadow:0 3px 12px #ff670040}.mi-calc .equals-key:hover{background-color:#e55a00!important;box-shadow:0 4px 14px #ff670059}.mi-calc .equals-key:active{background-color:#cc5200!important}@keyframes enter-from-tl{0%{clip-path:circle(0% at 0 0)}to{clip-path:circle(150% at 0 0)}}@keyframes enter-from-br{0%{clip-path:circle(0% at 100% 100%)}to{clip-path:circle(150% at 100% 100%)}}.dynamic-keypad.enter-from-top-left{animation:enter-from-tl .3s cubic-bezier(.25,1,.5,1);backface-visibility:hidden}.dynamic-keypad.enter-from-bottom-right{animation:enter-from-br .3s cubic-bezier(.25,1,.5,1);backface-visibility:hidden}.dynamic-keypad.enter-from-top-left button,.dynamic-keypad.enter-from-bottom-right button{box-shadow:none!important}.keyboard-hints{position:absolute;bottom:calc(var(--global-total-bottom) + 10px);right:10px;background-color:#ffffffe6;border-radius:8px;padding:10px;font-size:12px;box-shadow:0 2px 10px #0000001a;display:flex;flex-direction:column;gap:5px;z-index:100;opacity:.7;transition:opacity .3s;pointer-events:none}.keyboard-hints:hover{opacity:1;pointer-events:auto}.hint-item{display:flex;align-items:center;gap:8px;white-space:nowrap}.key{background-color:#f0f0f0;padding:2px 5px;border-radius:3px;font-weight:600;min-width:20px;text-align:center;box-shadow:0 1px 2px #0000001a}.action{color:#666}.mi-calc button svg{fill:currentColor;display:inline-block;vertical-align:middle}.basic-calc button svg{width:20px;height:20px}.scientific-calc button svg{width:18px;height:18px}@media (max-height: 600px){.scientific-calc button svg{width:16px;height:16px}}@media (max-height: 400px){.scientific-calc button svg{width:14px;height:14px}}@media (min-width: 768px){.mi-calc{--mi-calc-actual-height: min(80vh, 800px);height:var(--mi-calc-actual-height);max-width:375px;border-radius:24px;margin:5vh auto}:root{--global-bottom-margin: 20px}.basic-calc{--basic-button-height: 70px;--basic-button-gap: 10px;--basic-keypad-padding-top: 15px;--basic-keypad-padding-sides: 15px}.basic-calc button{font-size:32px}.basic-calc button.operation{font-size:40px}.scientific-calc-calc button.operation{font-size:30px}.scientific-calc{--sci-button-height: 58px;--sci-button-gap: 8px;--sci-keypad-padding-top: 12px;--sci-keypad-padding-sides: 12px}.scientific-calc button{font-size:22px}}@media (prefers-color-scheme: dark){.mi-calc,.calculator-display,.dynamic-keypad{background-color:#1c1c1e}.mi-calc button{background-color:#2c2c2e}.mi-calc .number-key{background-color:#2c2c2e!important;color:#fff!important}.mi-calc .number-key:hover{background-color:#3a3a3c!important}.mi-calc .function-key,.mi-calc .toggle-key,.mi-calc .operation-key,.mi-calc .memory{background-color:#2c2c2e!important;color:#ff6700!important}.mi-calc .function-key:hover,.mi-calc .toggle-key:hover,.mi-calc .operation-key:hover,.mi-calc .memory:hover{background-color:#3a3a3c!important}.mi-calc .toggle-key.active{background-color:#ff6700!important;color:#fff!important}.keyboard-hints{background-color:#2c2c2ee6}.key{background-color:#48484a;color:#fff}.action{color:#8e8e93}}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{height:100%;width:100%;overflow:hidden;position:fixed;touch-action:manipulation}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background-color:#f0f0f0;color:#333;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.calculator-app{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.calculator-container{flex:1;display:flex;justify-content:center;align-items:center;padding:0;overflow:hidden;position:relative}.loading-placeholder{width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:#f8f8f8}.loading-content{display:flex;flex-direction:column;align-items:center;gap:16px}.loading-spinner{width:32px;height:32px;border:3px solid #E8E8E8;border-top:3px solid #FF6700;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.app-footer{text-align:center;padding:5px;color:#888;font-size:12px;background-color:#f6f6f6}@media (max-width: 420px){.app-footer{display:none}}@supports (padding: max(0px)){.calculator-app{padding-bottom:max(0px,env(safe-area-inset-bottom))}}:root{--vh: 1vh}.calculator-app{height:calc(100 * var(--vh))}@media (prefers-color-scheme: dark){body{background-color:#121212;color:#fff}.app-footer{background-color:#1a1a1a;color:#ccc}}
