/* Add Card: selected type, then a live preview, then the original editable fields. */
#modal-root .u2r3-card-add-refined .u2r3-add-card-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:rgba(255,255,255,.68);border:1px solid rgba(255,255,255,.82);border-radius:19px;padding:5px;margin:3px 0 22px;box-shadow:0 7px 21px rgba(7,46,38,.07)}
#modal-root .u2r3-card-add-refined .u2r3-add-card-tab{appearance:none;border:1px solid transparent;border-radius:14px;min-height:47px;padding:10px 6px;color:#667482;font-size:14px;font-weight:650;background:transparent;cursor:pointer}
#modal-root .u2r3-card-add-refined .u2r3-add-card-tab.active{background:rgba(210,242,225,.77);border-color:rgba(13,111,81,.22);color:#064e3b;box-shadow:inset 0 1px 2px #fff9}
#modal-root .u2r3-card-add-refined .u2r3-add-card-tab:focus-visible{outline:2px solid #087b57;outline-offset:2px}
#modal-root .u2r3-card-add-refined .u2r3-add-card-preview{text-align:center;margin:0 0 25px;max-width:100%;min-width:0}
#modal-root .u2r3-card-add-refined .u2r3-add-card-preview-label{font-size:11px;font-weight:800;letter-spacing:.11em;color:#26755d;text-align:left;margin:0 0 12px 3px}
#modal-root .u2r3-card-add-refined .u2r3-add-card-preview .u2-editor-look{margin:0 auto;max-width:430px;width:100%}
#modal-root .u2r3-card-add-refined .u2r3-legacy-network-hidden{display:none!important}
#modal-root .u2r3-card-add-refined .u2-card-bank-section{border-top:1px solid rgba(9,86,62,.15);padding-top:20px;margin-top:0}
#modal-root .u2r3-card-add-refined .u2-card-bank-section .u2-card-appearance-fields{margin-top:8px}
#modal-root .u2r3-card-add-refined .u2-card-bank-section .field{width:100%;min-width:0}
@media(max-width:480px){#modal-root .u2r3-card-add-refined .u2r3-add-card-tabs{margin-bottom:16px}#modal-root .u2r3-card-add-refined .u2r3-add-card-preview{margin-bottom:20px}#modal-root .u2r3-card-add-refined .u2r3-add-card-tab{min-height:44px}}
/* Undo stays functional, but matches the approved glass/emerald palette and aligns above the actual navigation pill. */
body #action-undo-toast.u2r3-undo-glass{background:rgba(246,253,249,.89)!important;color:#153d30!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 12px 34px rgba(5,43,31,.17),inset 0 1px 0 rgba(255,255,255,.8)!important;backdrop-filter:blur(25px) saturate(150%);-webkit-backdrop-filter:blur(25px) saturate(150%);border-radius:22px!important;min-height:51px;padding:11px 15px!important;gap:16px!important;width:max-content!important;max-width:calc(100vw - 24px);box-sizing:border-box;justify-content:space-between;white-space:normal}
body #action-undo-toast.u2r3-undo-glass span{font-size:14px;font-weight:650;line-height:1.25}
body #action-undo-toast.u2r3-undo-glass button{background:rgba(197,233,211,.77)!important;border:1px solid rgba(17,99,71,.14)!important;border-radius:13px!important;color:#07553e!important;min-height:35px;padding:7px 13px!important;font-size:14px!important;font-weight:750!important;cursor:pointer}
body #action-undo-toast.u2r3-undo-glass button:focus-visible{outline:2px solid #087b57;outline-offset:2px}
html[data-theme="dark"] body #action-undo-toast.u2r3-undo-glass{background:rgba(17,53,43,.91)!important;border-color:rgba(195,230,214,.25)!important;color:#f0f8f3!important}
html[data-theme="dark"] body #action-undo-toast.u2r3-undo-glass button{background:rgba(49,111,84,.65)!important;color:#e3ffed!important}
@media(prefers-reduced-motion:reduce){body #action-undo-toast.u2r3-undo-glass{transition:opacity .12s linear!important}}
/* A legacy grid must collapse when its redundant network selector is hidden. */
#modal-root .u2r3-card-add-refined .grid2:has(> .u2r3-legacy-network-hidden){grid-template-columns:minmax(0,1fr)!important}
