.calc-fab{inset-inline-end:20px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:45;background:var(--a-card);width:46px;height:46px;color:var(--a-lilac-ink);cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;animation:.2s ease-out calc-fab-in;display:grid;position:fixed;box-shadow:0 8px 22px #14102838}.calc-fab:active{transform:scale(.94)}@media (width<=899.98px){.calc-fab[aria-expanded=true]{display:none}}.calc-fab[aria-expanded=true]{outline:3px solid var(--a-primary)}@keyframes calc-fab-in{0%{opacity:0;transform:scale(.6)}}.calc-fab.alone{bottom:calc(20px + env(safe-area-inset-bottom))}.calc-fab.on-nav{bottom:calc(146px + env(safe-area-inset-bottom))}.calc-fab.on-nav.over-add{bottom:calc(228px + env(safe-area-inset-bottom))}.a-home:has(>.calc-fab.on-nav) .a-main{padding-bottom:calc(204px + env(safe-area-inset-bottom))}.lab.full .calc-fab.lab-fab{top:calc(env(safe-area-inset-top) + var(--topbar) + 64px);bottom:auto;inset-inline-end:10px}@media (width>=900px){.calc-fab.on-nav,.calc-fab.on-nav.over-add{bottom:calc(82px + env(safe-area-inset-bottom))}.a-home:has(>.calc-fab.on-nav) .a-main{padding-bottom:150px}.lab.full .calc-fab.lab-fab{top:auto;bottom:calc(78px + env(safe-area-inset-bottom));inset-inline-end:20px}}html.lab-locked .calc-fab{z-index:97}html.lab-locked .a-backdrop:has(>.a-sheet.calc-sheet){z-index:98}.calc-loading{min-height:240px;color:var(--a-muted);text-align:center;align-content:center;place-items:center;gap:14px;margin:0;font-weight:700;display:grid}.calc-loading p{max-width:34ch;margin:0}.calc{flex-direction:column;gap:8px;margin-top:12px;display:flex}.calc-bar{justify-content:space-between;align-items:center;gap:8px;display:flex}.calc-angle{background:var(--a-line);border-radius:999px;padding:3px;display:inline-flex}.calc-angle button{min-width:52px;color:var(--a-muted);font:inherit;letter-spacing:.04em;cursor:pointer;background:0 0;border:0;border-radius:999px;padding:6px 12px;font-size:12.5px;font-weight:800}.calc-angle button.on{background:var(--a-card);color:var(--a-text);box-shadow:0 1px 4px #1410281f}.calc-clear{width:36px;height:36px;color:var(--a-muted);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}.calc-screen{background:var(--a-card);min-height:0;box-shadow:var(--a-shadow);border-radius:18px;flex-direction:column;padding:8px 14px 6px;display:flex}.calc-tape{overscroll-behavior:contain;border-bottom:1px solid var(--a-line);flex-direction:column;gap:2px;max-height:4.4em;margin:0 0 4px;padding:0 0 4px;list-style:none;display:flex;overflow:auto}.calc-tape li{align-items:baseline;gap:10px;display:flex}.calc-tape button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:2px 0}.calc-tex{min-width:0;color:var(--a-muted);text-align:start;white-space:nowrap;flex:1;font-size:14px;overflow-x:auto}.calc-value{color:var(--a-text);white-space:nowrap;flex:none;font-size:15px;font-weight:800}.calc-field math-field{width:100%;min-height:46px;color:var(--a-text);--caret-color:var(--a-primary);--selection-background-color:var(--a-lilac-soft);--selection-color:var(--a-text);--placeholder-color:var(--a-lilac);--contains-highlight-background-color:transparent;--smart-fence-color:var(--a-muted);background:0 0;border:0;outline:none;padding:4px 0;font-size:26px;display:block}.calc-field math-field::part(virtual-keyboard-toggle),.calc-field math-field::part(menu-toggle){display:none}.calc-live{min-height:34px;color:var(--a-text);text-align:end;white-space:nowrap;margin:0;font-size:22px;font-weight:800;overflow-x:auto}.calc-live sup,.calc-value sup{font-size:.62em}.calc-live.fail{color:var(--a-lilac-ink);white-space:normal;font-size:14px;line-height:1.5;animation:.35s ease-out calc-shake}.calc-hint{color:var(--a-muted);white-space:normal;font-size:13px;font-weight:700}@keyframes calc-shake{20%,60%{transform:translate(-5px)}40%,80%{transform:translate(5px)}}.calc-keys{flex-direction:column;gap:8px;display:flex}.calc-fns,.calc-nums{gap:6px;display:grid}.calc-fns{grid-template-columns:repeat(6,1fr);grid-auto-rows:clamp(34px,5.2dvh,44px)}.calc-nums{grid-template-columns:repeat(5,1fr);grid-auto-rows:clamp(40px,6.4dvh,54px)}.calc-key{background:var(--a-lilac-soft);min-width:0;color:var(--a-lilac-ink);font:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;cursor:pointer;border:0;border-radius:12px;place-items:center;padding:0;font-size:14.5px;font-weight:800;display:grid;box-shadow:0 2px #3c28141a}.calc-key:active{box-shadow:none;transform:translateY(2px)}.calc-key sup{font-size:.68em}.calc-key.num{background:var(--a-card);color:var(--a-text);font-size:21px}.calc-key.op{background:var(--a-mint-soft);color:var(--a-primary-edge);font-size:20px}.app.dark .calc-key.op{color:#6fe3b8}.calc-key.do{background:var(--a-line);color:var(--a-text);font-size:17px}.calc-key.eq{background:var(--a-primary);box-shadow:0 3px 0 var(--a-primary-edge);color:#fff;font-size:24px}.calc-flip{transform:scaleX(-1)}.calc-frac{flex-direction:column;align-items:center;font-size:12px;line-height:1.05;display:inline-flex}.calc-frac i:first-child{border-bottom:1.5px solid;padding:0 3px}.a-sheet.calc-sheet{flex-direction:column;padding-top:14px;display:flex}.calc-sheet .calc{flex:auto;min-height:0}.calc-sheet .calc-screen{flex:0 auto}.calc-sheet .calc-tape{flex:0 auto;min-height:1.7em}.calc-sheet .calc-keys{flex:none}.calc-sheet .calc-fns{grid-auto-rows:clamp(32px,4.8dvh,42px)}.calc-sheet .calc-nums{grid-auto-rows:clamp(38px,5.8dvh,50px)}.calc-page .p-top{padding-inline-end:56px}:is(.a-home.calc-page .a-main,.a-home.calc-page:has(>.l-fab.on-nav) .a-main){min-height:100dvh;padding-bottom:calc(104px + env(safe-area-inset-bottom));flex-direction:column;display:flex}.calc-page .calc{flex:1;width:100%;max-width:520px;margin-inline:auto}.calc-page .calc-screen{flex:1;justify-content:flex-end}.calc-page .calc-tape{flex:1 1 0;min-height:2.2em;max-height:none}@media (width>=900px){:is(.a-home.calc-page .a-main,.a-home.calc-page:has(>.l-fab.on-nav) .a-main){padding-bottom:40px}.calc-page .p-top{padding-inline-end:0}.calc-page .calc{margin-inline:0}.calc-page .calc-tape{max-height:40dvh}}.lab:not(.full):has(>.calc-fab.lab-fab) .lab-body{padding-bottom:calc(env(safe-area-inset-bottom) + 140px)}
