/* Public pack-screen oi/Hs/Ws, measured at /balance. The local quote adds the box and 2+1 figures. */
#page-dialog:has(.ib-page) {
  box-sizing:border-box;inset:0;margin:auto;padding:0;width:min(460px,calc(100vw - 48px));
  height:fit-content;min-height:0;max-width:none;max-height:92dvh;overflow:auto;overscroll-behavior:contain;
  border:0;border-radius:24px;background:#171732;color:white;box-shadow:0 40px 100px -30px rgba(0,0,0,.95);
}
#page-dialog:has(.ib-page) #layer {padding:0}
#page-dialog:has(.ib-page) > .native-sheet-grip {display:none}
.ib-page {
  position:relative;width:100%;max-width:none;margin:0;padding:28px;background:transparent;color:white;
  font:400 16px/1.5 "Proxima Nova",ui-sans-serif,system-ui,sans-serif;
}
.ib-page p,.ib-page h1,.ib-page dl {margin:0}
.ib-eyebrow {color:#abadcc;font-size:12px;font-weight:800;line-height:18px;letter-spacing:.08em}
.ib-head h1 {margin-top:8px;padding:0 40px 0 0;color:white;font:800 26px/1.12 "Proxima Nova",sans-serif;letter-spacing:-.015em}
.ib-head .ib-body {margin-top:8px;color:#abadcc;font-size:14px;line-height:21px;font-weight:500}
.ib-body strong {color:white;font-weight:700;font-variant-numeric:tabular-nums}
.ib-page .ib-well {margin:20px 0 0;padding:12px 16px;border-radius:14px;background:#111129;color:white;font-weight:700;font-size:14px;line-height:21px}

#page-dialog .ib-page > .close-layer {
  position:absolute;inset:16px 16px auto auto;z-index:2;display:grid;place-items:center;
  min-width:36px;min-height:36px;width:36px;height:36px;padding:0;border:0;border-radius:50%;
  background:rgb(9 9 20 / 30%);box-shadow:none;color:#abadcc;font-size:0;
}
.ib-page > .close-layer::before,.ib-page .model-form[data-primary] .button:first-child::before {
  content:"";display:block;flex:none;background:currentColor;mask:var(--ib-icon) center/contain no-repeat;
}
.ib-page > .close-layer::before {
  position:absolute;left:50%;top:50%;translate:-50% -50%;width:16px;height:16px;
  --ib-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z'/%3E%3C/svg%3E");
}
.ib-page > .close-layer::after {content:"";position:absolute;inset:-4px;border-radius:50%}
.ib-page > .close-layer:focus-visible,.ib-page:has(h1:focus) > .close-layer {outline:1px auto var(--ib-ring,#99c8ff);outline-offset:0}
#page-dialog .ib-page > .close-layer:hover {color:white}
.ib-page > .close-layer:active {transform:scale(.96)}
.ib-pack {display:flex;align-items:center;gap:10px;margin:12px 0 8px;color:inherit;text-decoration:none;width:fit-content}
.ib-art {width:36px;height:36px;object-fit:contain;flex:none}
.ib-labels {display:grid;font-size:14px;line-height:18px}
.ib-labels small,.ib-stats small {color:#abadcc;font-size:12px;line-height:16px}
.ib-page .ib-stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:100%;margin:0;padding:0;overflow:hidden;border:1px solid #ffffff16;border-radius:14px;background:#111129}
.ib-page .ib-stats > div {display:block;min-width:0;margin:0;padding:8px 15px;border:0;border-radius:0;background:none}
.ib-page .ib-stats > div:nth-child(2) {border-left:1px solid #ffffff15}
.ib-page .ib-stats > div:last-child {display:flex;align-items:baseline;justify-content:space-between;gap:8px;grid-column:1/-1;border-top:1px solid #ffffff15}
.ib-stats dt {color:#abadcc;font-size:13px;line-height:18px}
.ib-stats dd {margin:0;color:white;font-size:16px;line-height:21px;font-weight:700;font-variant-numeric:tabular-nums}
.ib-stats small {display:block}
.ib-page .model-form {margin:24px 0 0}
.ib-page .controls,.ib-page .actions,.ib-page .form-status {min-width:0;margin:0;padding:0;border:0;background:none}
.ib-page .form-status:empty {display:none}
.ib-page .actions {display:flex;flex-flow:row-reverse nowrap;align-items:stretch;gap:10px}
.ib-page .actions .button,.ib-return {
  display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:48px;
  margin:0;padding:0 20px;border:2px solid transparent;border-radius:12px;
  background:linear-gradient(#2f10ba,#6443f5) padding-box,linear-gradient(#4424d1,#7b5dff) border-box;
  box-shadow:0 6px 20px rgb(0 0 0 / 10%);color:white;font:900 15px/22.5px "Proxima Nova",sans-serif;letter-spacing:normal;text-decoration:none;
}
.ib-page .actions .secondary {flex:0 1 auto;border:0;background:#111129;box-shadow:none;color:#abadcc}
@media(hover:hover) {
  .ib-page .actions button:not(:disabled):hover {transform:scale(1.04)}
  .ib-page .actions .button:not(.secondary):not(:disabled):hover {filter:brightness(1.1)}
  .ib-page .actions .secondary:not(:disabled):hover {background:#171732;color:white}
}
.ib-page .actions button:not(:disabled):active {transform:scale(.98)}
@media(prefers-reduced-motion:no-preference) {
  .ib-page .actions button {transition:transform .125s ease-out,filter .125s ease-out,color .125s ease-out,background-color .125s ease-out}
}
.ib-page .actions button:disabled {opacity:.6}
.ib-page .actions button:focus-visible,.ib-return:focus-visible {outline:2px solid #99c8ff;outline-offset:2px}
.ib-page .model-form[data-primary=deposit] .button:first-child::before {
  width:14px;height:14px;
  --ib-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z'/%3E%3C/svg%3E");
}
.ib-page .model-form[data-primary=charge-card] .button:first-child::before {
  width:16px;height:16px;
  --ib-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,24V88H36V68ZM36,188V112H220v76Zm172-24a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,164Zm-68,0a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24h12A12,12,0,0,1,140,164Z'/%3E%3C/svg%3E");
}
.ib-return {margin-top:16px}
@media(max-width:639px) {
  .ib-page {padding:24px}
  .ib-page .actions {flex-direction:column}
  .ib-page .actions .button {flex:auto;width:100%}
}
@media(max-width:639px) and (pointer:coarse) {
  #page-dialog:has(.ib-page) {inset:auto 0 0;margin:0 auto;width:min(100vw,460px);max-height:92dvh;padding-bottom:env(safe-area-inset-bottom,0px);border-radius:24px 24px 0 0}
  .ib-page {--ib-ring:#eee}
}
