.amount-control{position:relative;min-width:0;width:100%;max-width:100%}
.amount-control input{width:100%;max-width:100%;padding-right:44px!important;font-size:16px}
.amount-control.split-calculator{width:110px;max-width:100%}
.amount-calculator-trigger{position:absolute;right:4px;top:4px;min-height:36px;width:36px;border:0;border-radius:9px;background:var(--surface-soft,#e8f5ee);color:var(--positive,#087851);font-size:22px;cursor:pointer}
.amount-calculator-hint{display:block;margin-top:6px;color:var(--muted,#526b61);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.amount-calculator-hint.invalid{color:var(--negative,#b83f34)}
.amount-keypad{position:fixed;right:20px;bottom:20px;width:320px;max-width:calc(100% - 16px);max-height:65dvh;overflow-y:auto;overscroll-behavior:contain;padding:12px;border:1px solid var(--line,#c8ddd2);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#12352b);box-shadow:0 10px 50px #001d2440;z-index:220}
.amount-keypad header{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.amount-keypad header button{border:0;background:transparent;color:var(--positive,#087851);min-height:36px;font-weight:700;cursor:pointer}
.amount-keypad-result{font-size:13px;line-height:1.4;min-height:32px;max-height:48px;overflow:auto;overflow-wrap:anywhere;margin-bottom:7px}
.amount-keypad-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.amount-keypad-keys button{min-width:0;min-height:40px;border:1px solid var(--line,#c8ddd2);border-radius:9px;background:var(--surface-soft,#e8f5ee);color:var(--ink,#12352b);font-size:18px;font-weight:700;cursor:pointer;touch-action:manipulation}
.amount-keypad-keys .calculator-confirm{grid-column:span 2;background:var(--positive,#087851);color:var(--surface,#fff)}
@media(max-width:690px),(pointer:coarse){
 .amount-keypad{left:0;right:0;bottom:0;width:100%;max-width:420px;margin:auto;border-radius:18px 18px 0 0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 .calculator-open .overlay{padding-bottom:var(--amount-keypad-height,340px)}
 .calculator-open .dialog{max-height:calc(100dvh - var(--amount-keypad-height,340px) - 20px)}
}
