:root{color-scheme:only light;color:#fff;background:#0a0a0a;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Helvetica Neue,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--orange: #ff9f0a;--page-dark: #0a0a0a;--page-light: #e2e8f0;--phone-dark: #000;--phone-light: #fff;--number-dark: #2c2c2e;--number-light: #f1f5f9;--function-dark: #a5a5a5;--function-light: #cbd5e1;--science-dark: #242426;--science-light: #e2e8f0}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0;-webkit-text-size-adjust:100%;text-size-adjust:100%;forced-color-adjust:none}body{min-height:100dvh;overflow-x:hidden;background:var(--page-dark);overscroll-behavior:none}button{font:inherit;letter-spacing:0}.app-shell{min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom));color:#fff;background:var(--page-dark);transition:color .22s ease,background-color .22s ease;forced-color-adjust:none}.app-shell.theme-light{color:#0f172a;background:var(--page-light)}.theme-light .brand-block p{color:#64748b}.product-header{width:min(100%,520px);min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;padding:0 4px}.brand-block{min-width:0;display:flex;align-items:center;gap:8px}.brand-mark{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#f59e0b,#f97316);border-radius:8px;box-shadow:0 6px 18px #f9731647;font-size:.76rem;font-weight:900}.brand-block h1{margin:0;font-size:.9rem;font-weight:700;letter-spacing:0;line-height:1.1;white-space:nowrap}.brand-block p{margin:3px 0 0;overflow:hidden;color:#737373;font-size:.62rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.header-controls{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:5px}.mode-switch{height:34px;display:grid;grid-template-columns:1fr 1fr;padding:3px;background:#171717;border:1px solid #292929;border-radius:12px;box-shadow:inset 0 1px 2px #00000059}.mode-switch button{min-width:54px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 7px;color:#858585;background:transparent;border:0;border-radius:9px;cursor:pointer;font-size:.7rem;font-weight:600;white-space:nowrap}.mode-switch button.is-selected{color:#fff;background:#333;box-shadow:0 2px 5px #00000040,inset 0 0 0 1px #454545}.mode-switch button:last-child.is-selected{background:linear-gradient(90deg,#f97316,#f59e0b);box-shadow:0 3px 9px #f973163d}.header-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;padding:0;color:#a3a3a3;background:#171717;border:1px solid #292929;border-radius:9px;cursor:pointer;-webkit-tap-highlight-color:transparent}.header-icon.is-accent,.theme-dark .header-icon:first-of-type{color:#fb923c}.theme-light .mode-switch,.theme-light .header-icon{background:#fff;border-color:#cbd5e1}.theme-light .mode-switch button{color:#64748b}.theme-light .mode-switch button.is-selected{color:#0f172a;background:#e2e8f0;box-shadow:inset 0 0 0 1px #cbd5e1}.theme-light .mode-switch button:last-child.is-selected{color:#fff;background:linear-gradient(90deg,#f97316,#f59e0b)}.theme-light .header-icon{color:#475569;box-shadow:0 2px 7px #0f172a14}.theme-light .header-icon.is-accent,.theme-light .header-icon:first-of-type{color:#ea580c}.theme-light .header-icon:active{background:#f1f5f9}.calculator-phone{position:relative;width:min(100%,420px);height:clamp(570px,calc(100dvh - 92px),790px);display:flex;flex-direction:column;padding:20px 16px 16px;overflow:hidden;color:#fff;background:var(--phone-dark);border:4px solid #262626;border-radius:44px;box-shadow:0 22px 64px #000000b8,0 0 0 1px #ffffff0a;transition:color .22s ease,background-color .22s ease,border-color .22s ease}.theme-light .calculator-phone{color:#0f172a;background:var(--phone-light);border-color:#cbd5e1;box-shadow:0 22px 54px #0f172a30}.theme-light .phone-notch{background:#e2e8f0;border-color:#cbd5e1}.theme-light .phone-notch span{background:#334155;border-color:#475569}.theme-light .phone-notch i{background:#94a3b8}.phone-notch{position:absolute;top:7px;left:50%;width:80px;height:14px;display:flex;align-items:center;justify-content:center;gap:8px;background:#171717;border:1px solid #2c2c2c;border-radius:999px;transform:translate(-50%)}.phone-notch span,.phone-notch i{display:block;border-radius:50%}.phone-notch span{width:8px;height:8px;background:#080808;border:1px solid #262626}.phone-notch i{width:6px;height:6px;background:#303030}.display{min-height:126px;flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;padding:18px 4px 10px;text-align:right}.display-meta{width:100%;min-height:24px;display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}.display-status{display:flex;align-items:center;gap:7px}.display-status button,.display-status span{min-width:28px;height:20px;display:inline-grid;place-items:center;padding:0 7px;color:#d4d4d4;background:#262626;border:0;border-radius:5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.62rem;font-weight:700;cursor:pointer}.display-status span{min-width:20px;padding:0 5px;color:#fb923c;background:#f973162e}.theme-light .display-status button{color:#334155;background:#e2e8f0}.theme-light .display-status span{color:#c2410c;background:#ffedd5}.copy-button{height:26px;display:inline-flex;align-items:center;gap:5px;padding:0 5px;color:#737373;background:transparent;border:0;border-radius:6px;cursor:pointer;font-size:.68rem}.copy-button:hover,.copy-button:focus-visible{color:#fff;background:#202020}.theme-light .copy-button:hover,.theme-light .copy-button:focus-visible{color:#0f172a;background:#e2e8f0}.expression-line{width:100%;min-height:1.1em;overflow:hidden;color:#737373;font-size:.75rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.theme-light .expression-line{color:#64748b}.display-value{display:block;width:100%;overflow:hidden;color:inherit;font-size:3.65rem;font-variant-numeric:tabular-nums;font-weight:300;line-height:1;text-overflow:clip;white-space:nowrap}.mode-scientific .display-value{font-size:3.15rem}.display-value[data-length=medium]{font-size:2.65rem}.display-value[data-length=long]{font-size:2rem}.keypad-stack{flex:0 0 auto;display:flex;flex-direction:column;gap:8px}.scientific-panel{display:grid;grid-template-rows:repeat(4,36px);gap:8px;padding:8px;background:#171717b8;border:1px solid rgba(64,64,64,.72);border-radius:16px}.theme-light .scientific-panel{background:#e2e8f0b8;border-color:#cbd5e1}.scientific-row,.basic-row{min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.scientific-row{gap:6px}.basic-keypad{display:grid;grid-template-rows:repeat(5,54px);gap:8px}.basic-row{gap:8px}.calc-button{position:relative;min-width:0;width:100%;height:54px;display:grid;place-items:center;padding:0;color:#fff;background:transparent;border:0;border-radius:999px;cursor:pointer;font-size:1.28rem;font-weight:500;letter-spacing:0;line-height:1;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background-color 90ms ease,color 90ms ease,transform 90ms ease}.calc-button>span{pointer-events:none;white-space:nowrap}.calc-button:active{transform:scale(.94)}.calc-button:focus-visible,.header-icon:focus-visible,.mode-switch button:focus-visible,.copy-button:focus-visible,.display-status button:focus-visible,.history-item:focus-visible,.history-clear:focus-visible{outline:2px solid var(--orange);outline-offset:2px}.calc-button--number{background:var(--number-dark)}.calc-button--number:active{background:#5b5b5e}.theme-light .calc-button--number{color:#0f172a;background:var(--number-light);box-shadow:inset 0 0 0 1px #e2e8f0}.theme-light .calc-button--number:active{background:#cbd5e1}.calc-button--function{color:#000;background:var(--function-dark);font-size:1.05rem}.theme-light .calc-button--function{color:#0f172a;background:var(--function-light)}.theme-light .calc-button--function:active{background:#94a3b8}.calc-button--operator{background:var(--orange)}.calc-button--operator:active{background:#ffc463}.calc-button--operator.is-active{color:var(--orange);background:#fff}.theme-light .calc-button--operator.is-active{color:#ea580c;background:#fff;box-shadow:inset 0 0 0 1px #fdba74}.calc-button--scientific{height:36px;color:#e5e5e5;background:#29292b;box-shadow:inset 0 0 0 1px #ffffff0b;border-radius:10px;font-size:.72rem}.calc-button--scientific:active,.calc-button--scientific.is-active{color:#fb923c;background:#4b4b4e}.theme-light .calc-button--scientific{color:#1e293b;background:var(--science-light);box-shadow:inset 0 0 0 1px #0f172a12}.theme-light .calc-button--scientific.is-active{color:#ea580c;background:#cbd5e1}.theme-light .calc-button--scientific:active{color:#c2410c;background:#cbd5e1}.calc-button.is-wide{grid-column:span 2;justify-items:start;padding-left:25%}.mode-basic .basic-keypad{grid-template-rows:repeat(5,min(19vw,76px));gap:min(2.8vw,12px)}.mode-basic .basic-row{gap:min(2.8vw,12px)}.mode-basic .calc-button{height:min(19vw,76px);font-size:1.65rem}.mode-basic .calc-button--function{font-size:1.25rem}.history-layer{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;visibility:hidden;pointer-events:none}.history-layer.is-open{visibility:visible;pointer-events:auto}.history-scrim{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;padding:0;background:#0000009e;border:0;opacity:0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:opacity .18s ease}.history-layer.is-open .history-scrim{opacity:1}.history-panel{position:absolute;inset:auto 10px max(10px,env(safe-area-inset-bottom));height:min(76dvh,620px);display:grid;grid-template-rows:auto 1fr auto;color:#fff;background:#171717;border:1px solid #303030;border-radius:24px;box-shadow:0 24px 80px #000000a6;transform:translateY(calc(100% + 24px));transition:transform .22s cubic-bezier(.22,1,.36,1)}.history-layer.is-open .history-panel{transform:translateY(0)}.history-header,.history-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #303030}.history-title{display:flex;align-items:center;gap:9px}.history-title h2{margin:0;font-size:.95rem;font-weight:650}.icon-button{width:34px;height:34px;display:grid;place-items:center;padding:0;color:#a3a3a3;background:transparent;border:0;border-radius:50%;cursor:pointer}.history-list{overflow-y:auto;overscroll-behavior:contain}.history-item{width:100%;display:flex;flex-direction:column;align-items:flex-end;gap:5px;padding:14px 18px;color:#fff;background:transparent;border:0;border-bottom:1px solid #292929;cursor:pointer;text-align:right}.history-item:active{background:#242424}.history-expression{max-width:100%;overflow:hidden;color:#737373;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.history-item strong{max-width:100%;color:#fb923c;overflow-wrap:anywhere;font-size:1.35rem;font-weight:500}.history-empty{margin:0;padding:48px 20px;color:#737373;font-size:.85rem;text-align:center}.history-footer{justify-content:flex-end;border-top:1px solid #303030;border-bottom:0}.history-clear{display:inline-flex;align-items:center;gap:7px;padding:8px;color:var(--orange);background:transparent;border:0;cursor:pointer}.history-clear:disabled{color:#525252;cursor:default}.theme-light .history-panel{color:#0f172a;background:#fff;border-color:#cbd5e1;box-shadow:0 24px 72px #0f172a3d}.theme-light .history-header,.theme-light .history-footer{border-color:#e2e8f0}.theme-light .history-item{color:#0f172a;border-color:#e2e8f0}.theme-light .history-item:active{background:#f1f5f9}.theme-light .history-expression,.theme-light .history-empty{color:#64748b}.theme-light .history-item strong,.theme-light .history-clear{color:#ea580c}.theme-light .history-clear:disabled{color:#94a3b8}.theme-light .icon-button{color:#475569}@media(min-width:540px){.app-shell{padding:24px}.product-header{margin-bottom:16px}.history-panel{inset:50% auto auto 50%;width:min(430px,calc(100% - 32px));transform:translate(-50%,calc(-50% + 30px));opacity:0}.history-layer.is-open .history-panel{transform:translate(-50%,-50%);opacity:1}}@media(max-width:430px){.app-shell{justify-content:flex-start;padding-right:12px;padding-left:12px}.product-header{width:min(100%,360px);min-height:38px;margin-bottom:8px;padding:0}.brand-mark{width:26px;height:26px;flex-basis:26px}.brand-block h1{font-size:.78rem}.brand-block p{max-width:112px;font-size:.56rem}.mode-switch button{min-width:48px;padding:0 5px}.header-icon{width:28px;height:28px;flex-basis:28px}.calculator-phone{width:min(calc(100% - 8px),360px);height:clamp(570px,calc(100dvh - 68px),790px);padding:18px 12px 12px;border-width:3px;border-radius:36px}.phone-notch{top:6px;width:70px;height:12px}.display{min-height:98px;flex:1 1 auto;padding:14px 3px 6px}.mode-scientific .display-value{font-size:2.6rem}.display-value[data-length=medium]{font-size:2.25rem}.display-value[data-length=long]{font-size:1.75rem}.scientific-panel{grid-template-rows:repeat(4,44px);gap:8px;padding:8px;border-radius:16px}.scientific-row{gap:8px}.calc-button--scientific{height:44px;border-radius:10px;font-size:.76rem}.basic-keypad{grid-template-rows:repeat(5,46px);gap:6px}.basic-row{gap:7px}.calc-button{height:46px;font-size:1.16rem}.calc-button--function{font-size:.98rem}}@media(max-width:360px){.brand-block p{display:none}.mode-switch button{min-width:44px}.header-icon{width:26px;height:26px;flex-basis:26px}}@media(max-height:760px){.app-shell{justify-content:flex-start}.product-header{margin-bottom:8px}.calculator-phone{padding-top:18px}.display{min-height:94px;padding-bottom:6px}.mode-scientific .display-value{font-size:2.5rem}.scientific-panel{grid-template-rows:repeat(4,44px)}.calc-button--scientific{height:44px}.basic-keypad{grid-template-rows:repeat(5,44px);gap:6px}.basic-row{gap:7px}.calc-button{height:44px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
