/* amount-1129: the amount field (bank loan, repay, sealed bid, deal cash). Number box + K / M switch on one line, quick-pick plates
   under it, the readable total last. Chamfered plates, radius 0, no pills; the switch and plates are quiet (outline / smoked steel)
   so the row's action plate stays the one solid primary. Every tap target 44 px. */
.amt { --ch: 7px; flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.amt-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.amt-cur { flex: none; display: flex; align-items: center; padding: 0 2px 0 4px; color: #e2c47e; font: 800 18px Nunito, sans-serif; }
#game .amt .amt-in, .modal-card .amt .amt-in, .amt .amt-in { flex: 1 1 0; min-width: 0; width: 0;   /* width 0: the box never sets the column's min-content width (it blew the phone side column to 463 px) */
   height: 44px; box-sizing: border-box; padding: 0 12px !important; border: 0 !important; border-radius: 0 !important;
  color: #fff6dc; font: 800 19px/44px Nunito, sans-serif; letter-spacing: .01em; text-align: left; background: #0b1130;
  box-shadow: inset 0 0 0 1.5px rgba(226, 196, 126, .55), inset 0 2px 6px rgba(0, 0, 0, .45);
  clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch)); }
.amt .amt-in:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #41e3cf, inset 0 2px 6px rgba(0, 0, 0, .45); }
.amt-seg { flex: none; display: flex; gap: 0; }
.amt-u { min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 0; cursor: pointer; font: 800 16px Nunito, sans-serif; color: #c9b98f; background: #151c3d;
  box-shadow: inset 0 0 0 1px rgba(226, 196, 126, .3); }
.amt-u:first-child { clip-path: polygon(var(--ch) 0, 100% 0, 100% 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch)); }
.amt-u:last-child { clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%); }
.amt-u.on { color: #ffe39a; background: #27305e; box-shadow: inset 0 0 0 2px #e2c47e; }
.amt-u:focus-visible, .amt-chip:focus-visible { outline: 3px solid #41e3cf; outline-offset: -3px; }
.amt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.amt-chip { flex: 1 1 0; min-width: 60px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap; font: 800 14px Nunito, sans-serif; color: #fbf1d6;
  background: linear-gradient(180deg, #232a48, #161c3a); box-shadow: inset 0 0 0 1px rgba(226, 196, 126, .32);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.amt-chip:hover { color: #fff3c4; box-shadow: inset 0 0 0 1.5px rgba(226, 196, 126, .7); }
.amt-chip.max { color: #ffe39a; }
.amt-read { font: 800 15px/1.3 Nunito, sans-serif; color: #ffe39a; min-height: 20px; overflow-wrap: anywhere; }
.row:has(> .amt) { flex-wrap: wrap; row-gap: 8px; }
.row:has(> .amt) > .btn { flex: 1 1 100%; min-height: 44px; }
.deal-cash .amt-chip { min-width: 54px; font-size: 13px; padding: 0 6px; }
.deal-cash .amt-u { min-width: 44px; padding: 0 8px; }
/* the deal desk's two cash columns are narrow (about 180 px on desktop): the number box takes its own line, K / M a full-width line under it */
.deal-cash .amt-row { flex-wrap: wrap; row-gap: 6px; }
.deal-cash .amt .amt-in { flex: 1 1 calc(100% - 30px); }
.deal-cash .amt-seg { flex: 1 1 100%; } .deal-cash .amt-seg .amt-u { flex: 1 1 0; }
/* deal-1129's Brass Deal Table: the amount field sits in the coin chip (under the $ face and the live readout), full chip width,
   with the same narrow-column layout as the old deal desk columns */
.dl-coin.edit { cursor: default; }
.dl-coin.edit > .amt { grid-column: 1 / -1; width: 100%; }
.dl-coin.edit .amt-cur { display: none; }   /* the coin's own $ face already says it is money */
.dl-coin.edit .amt-chip { min-width: 54px; font-size: 13px; padding: 0 6px; }
.dl-coin.edit .amt-row { flex-wrap: wrap; row-gap: 6px; }
.dl-coin.edit .amt .amt-in { flex: 1 1 100%; }
.dl-coin.edit .amt-seg { flex: 1 1 100%; } .dl-coin.edit .amt-seg .amt-u { flex: 1 1 0; }
