html.calculator-open,html.calculator-open body{overflow:hidden}
#calculator-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1100px,calc(100vw - 32px));height:min(var(--content-height,560px),calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:1px solid #514246;background:var(--surface-page);color:var(--text-primary);box-shadow:0 38px 120px var(--shadow-dialog);overflow:hidden}
#calculator-dialog[open]{display:flex;flex-direction:column;animation:calculator-enter .25s ease-out}
#calculator-dialog::backdrop{background:#070708bd;backdrop-filter:blur(9px)}
#calculator-dialog .calculator-heading{box-sizing:border-box;flex:0 0 72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 22px;border-bottom:1px solid #3f3337;background:var(--surface-dialog)}
#calculator-dialog .calculator-identity{display:flex;align-items:center;gap:14px;min-width:0}
#calculator-dialog .calculator-identity img{width:36px;height:36px}
#calculator-dialog .calculator-eyebrow{display:block;color:#b7abad;font:10px/1.4 var(--font-code);letter-spacing:.06em;text-transform:uppercase}
#calculator-dialog h2{margin:5px 0 0;font-size:25px;line-height:1.1;font-weight:400;letter-spacing:-.04em}
#calculator-dialog h2 em{color:var(--color-accent)}
#close-calculator{width:44px;height:44px;flex-shrink:0;border:1px solid #655157;border-radius:50%;background:transparent;color:var(--text-primary);font-size:28px;line-height:1;cursor:pointer}
#close-calculator:hover{background:var(--color-accent);color:#190c0c}
#close-calculator:focus-visible{outline:2px solid var(--color-accent);outline-offset:3px}
#calculator-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:var(--surface-page)}
@keyframes calculator-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:700px){#calculator-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0}#calculator-dialog .calculator-heading{padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));flex-basis:calc(72px + env(safe-area-inset-top))}#calculator-dialog h2{font-size:20px}#calculator-dialog .calculator-eyebrow{font-size:8px}#calculator-dialog .calculator-identity{gap:9px}#calculator-dialog .calculator-identity img{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){#calculator-dialog[open]{animation:none}}
