.amount-calculator{position:fixed;inset:auto 0 0;margin:0 auto;width:min(480px,100%);max-width:100%;max-height:94dvh;border:0;border-radius:22px 22px 0 0;padding:0;color:var(--ink);background:#fff;overflow:auto;overscroll-behavior:contain}
.amount-calculator::backdrop{background:rgba(12,28,36,.45)}
.calculator-body{padding:10px 20px calc(18px + env(safe-area-inset-bottom))}
.calculator-handle{width:36px;height:4px;border-radius:4px;background:#d3dce0;margin:0 auto 12px}
.calculator-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.calculator-heading h2{margin:0;font-size:1.18rem}.calculator-heading button{width:36px;height:36px;border:0;background:transparent;color:var(--muted);font-size:1.7rem;border-radius:10px}
.calculator-expression{height:38px;margin-top:10px;line-height:38px;text-align:right;white-space:nowrap;overflow:auto;font-size:1.25rem;font-variant-numeric:tabular-nums}
.calculator-result{display:block;text-align:right;font-size:clamp(1.6rem,8vw,2.5rem);font-weight:800;color:var(--brand);overflow-wrap:anywhere;font-variant-numeric:tabular-nums;line-height:1.3;min-height:52px}
.calculator-hint{min-height:20px;margin:5px 0 15px;text-align:right;font-size:.73rem;line-height:20px;color:var(--muted)}
.calculator-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.calculator-keys button{height:clamp(42px,7dvh,58px);border:0;border-radius:11px;background:#edf3f6;color:var(--ink);font-size:1.35rem;font-weight:600;touch-action:manipulation}
.calculator-keys .calculator-operator{background:#deeff3;color:var(--brand)}.calculator-keys .calculator-equals{background:var(--brand);color:#fff}.calculator-keys button:active{filter:brightness(.94)}
.calculator-keys .calculator-backspace-icon{display:block;width:26px;height:20px;margin:auto;color:var(--brand);pointer-events:none}
.calculator-actions{display:grid;grid-template-columns:1fr 1.8fr;gap:10px;margin-top:18px}.calculator-actions button{min-height:48px;padding:10px 8px;box-shadow:none}.calculator-actions button:disabled{opacity:.45;cursor:default}
.amount-input-wrap input[readonly]{cursor:pointer}.amount-calculator button:focus-visible{outline:2px solid var(--brand2);outline-offset:2px}
@media(max-height:600px){.calculator-body{padding-top:6px}.calculator-handle{margin-bottom:4px}.calculator-expression{margin-top:0}.calculator-hint{margin:0 0 6px}.calculator-result{min-height:34px;font-size:1.65rem}.calculator-actions{margin-top:10px}.calculator-keys{gap:5px}}
