/* V5.6.0 — light floating half-screen calculator */
:root{--fcalc-accent:#1b7484;--fcalc-deep:#155865;--fcalc-line:#c9dcdf}
.fcalc-launcher{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(88px,calc(env(safe-area-inset-bottom) + 72px));width:56px;height:56px;border:1px solid rgba(255,255,255,.75);border-radius:50%;z-index:2147482000;display:grid;place-items:center;cursor:pointer;touch-action:manipulation;color:#fff;background:linear-gradient(145deg,#2f8796,#176171);box-shadow:0 10px 26px rgba(20,83,94,.28),inset 0 1px rgba(255,255,255,.3);font-size:1.45rem;line-height:1;transition:transform .16s ease,filter .16s ease}
.fcalc-launcher:active{transform:scale(.93);filter:brightness(1.06)}.fcalc-launcher[aria-expanded="true"]{opacity:0;pointer-events:none;transform:scale(.82)}
.fcalc-layer{position:fixed;left:0;right:0;bottom:0;top:0;height:100dvh;z-index:2147483000;display:none;align-items:flex-end;justify-content:center;background:rgba(20,58,65,.22);overscroll-behavior:contain}.fcalc-layer.is-open{display:flex}
.fcalc-sheet{width:min(620px,100%);height:min(68dvh,620px);max-height:calc(100dvh - max(10px,env(safe-area-inset-top)));display:flex;flex-direction:column;overflow:hidden;background:#f7fbfb;color:#17343a;border:1px solid var(--fcalc-line);border-bottom:0;border-radius:27px 27px 0 0;box-shadow:0 -16px 44px rgba(24,77,87,.22);transform:translateY(0);will-change:transform;contain:layout paint style}
.fcalc-bar{position:relative;flex:0 0 48px;display:flex;align-items:center;justify-content:center;padding:6px 14px 4px;background:#fff;border-bottom:1px solid #dce9eb;touch-action:none;user-select:none}.fcalc-handle{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:46px;height:5px;border-radius:99px;background:#c4d4d7}.fcalc-title{margin-top:8px;font:800 .8rem/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#547177}.fcalc-close{position:absolute;left:11px;top:8px;width:32px;height:32px;border:1px solid #d7e5e7;border-radius:50%;display:grid;place-items:center;background:#edf5f6;color:#285762;font:500 1.2rem/1 inherit;cursor:pointer;touch-action:manipulation}.fcalc-close:active{filter:brightness(.96)}
.fcalc-frame{display:block;flex:1 1 auto;width:100%;min-height:0;border:0;background:#eef7f7}body.fcalc-locked{overflow:hidden!important;touch-action:none}
@media(max-width:420px){.fcalc-sheet{height:min(70dvh,610px);border-radius:24px 24px 0 0}.fcalc-launcher{width:53px;height:53px;font-size:1.35rem}}
@media(orientation:landscape) and (max-height:520px){.fcalc-sheet{height:92dvh;max-width:720px}.fcalc-launcher{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.fcalc-launcher{transition:none}}@media (display-mode:standalone){.fcalc-launcher{bottom:max(18px,calc(env(safe-area-inset-bottom) + 14px))}}

.fcalc-frame:focus{outline:0}.fcalc-layer:not(.is-open){pointer-events:none}html:has(body.fcalc-locked){overscroll-behavior:none}
