.tg-numpad{
  position:fixed;
  left:50%;
  bottom:calc(max(62px,env(safe-area-inset-bottom)) + 6px);
  transform:translateX(-50%);
  width:min(244px,92vw);
  padding:8px;
  z-index:2147482000;
  box-shadow:0 8px 28px #000c,inset 0 0 0 1px #a68240;
}
.tg-numpad-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.tg-numpad-title{font-size:12px;color:#f5d68a}
.tg-numpad-head .ui-close{width:24px;height:24px;min-height:24px;padding:0;font-size:16px;line-height:22px}
.tg-numpad-preview{
  margin-bottom:6px;
  padding:5px 8px;
  border:1px solid #755b2c;
  border-radius:5px;
  background:#0c100a;
  color:#fff2c6;
  font:700 16px/1.2 monospace;
  text-align:right;
}
.tg-numpad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.tg-numpad-grid button{
  min-height:36px;
  padding:4px 2px;
  font:700 14px/1 Tahoma,Arial,sans-serif;
  border-radius:5px;
}
.tg-numpad-grid .tg-np-done{grid-column:span 1;font-size:12px}
