body.autonomy-owner #mini-dock { grid-template-columns:repeat(7,minmax(0,1fr)); }
#autonomy-page[hidden] { display:none!important; }
body.autonomy-open main > :not(#autonomy-page):not(#mini-dock) { display:none!important; }
#autonomy-page { position:fixed; inset:0 0 calc(74px + env(safe-area-inset-bottom)); z-index:8990; background:#081323; }
#autonomy-page iframe { display:block; width:100%; height:100%; border:0; }
body.autonomy-owner #mini-dock [data-mini-page="autonomy"] { white-space:normal; }
/* Hide the fixed navigation while the phone keyboard is open, but keep its
   layout box and the iframe boundary unchanged so focus/blur cannot move the
   sheet or make the amount field jump. */
body.autonomy-keyboard #mini-dock { display:grid!important; visibility:hidden!important; opacity:0!important; pointer-events:none!important; }
body.wallet-keyboard #mini-dock { display:none!important; visibility:hidden!important; pointer-events:none!important; }
.wallet-usd-modes { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-bottom:7px; }
.wallet-dialog-body .wallet-usd-modes button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:50px; padding:7px 9px; border:1px solid #43688f; border-radius:11px; background:linear-gradient(145deg,#153254,#0d2038); color:#b8cae0; font-size:12px; font-weight:750; box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 6px 14px rgba(0,0,0,.16); transition:transform .14s ease,border-color .18s ease,filter .18s ease; }
.wallet-dialog-body .wallet-usd-modes button small { color:inherit; font-size:10px; line-height:1.05; opacity:.78; }
.wallet-dialog-body .wallet-usd-modes button strong { color:inherit; font-size:13px; line-height:1; }
.wallet-dialog-body .wallet-usd-modes button:not(:disabled):active { transform:translateY(1px) scale(.992); }
.wallet-dialog-body .wallet-usd-modes button.active { border-color:#f2bd44; background:linear-gradient(145deg,#5b4815,#392f15); color:#ffe08a; box-shadow:inset 0 1px 0 rgba(255,240,179,.16),0 7px 16px rgba(151,111,17,.18); }
.wallet-amount-estimate { display:block; min-height:18px; margin-top:5px; color:#74d9b1; font-size:12px; }
