.credit-return-proxy, .history-settle-proxy { position: fixed; z-index: 4; color: #fff; background: linear-gradient(135deg, rgba(44,20,87,.98), rgba(18,9,41,.99)) padding-box, var(--prism) border-box; border: 1px solid transparent; box-shadow: var(--shadow-small); backdrop-filter: blur(16px); }
.credit-return-proxy { display: flex; min-height: 48px; top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); align-items: center; gap: .55rem; padding: .45rem .72rem; border-radius: 999px; }
.credit-return-proxy > span:not(.prismatic-credit-token) { color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.history-settle-proxy { display: grid; width: min(calc(100vw - 1.5rem), 330px); top: max(4.75rem, calc(env(safe-area-inset-top) + 4rem)); right: max(.75rem, env(safe-area-inset-right)); gap: .06rem; padding: .68rem .82rem; border-radius: 14px; }
.history-settle-proxy > span { color: #59f5ff; font-size: .66rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.history-settle-proxy strong { font-size: .84rem; }
.history-settle-proxy small { color: #dcfff0; font-size: .7rem; }

.credit-balance-receiving { animation: prism-balance 640ms ease-out 690ms both; }
.credit-balance-receiving::after { animation: prism-balance-sheen 650ms ease-out 690ms both; }
.credit-balance-returned { box-shadow: 0 0 0 2px rgba(111,247,184,.4), 0 0 30px rgba(89,245,255,.2), 0 0 34px rgba(255,94,203,.12), inset 0 1px 0 rgba(255,255,255,.26); }
@keyframes prism-balance { 0%,100% { transform: scale(1); } 42% { transform: scale(1.075); filter: saturate(145%); } }
@keyframes prism-balance-sheen { 0% { transform: translateX(-110%); opacity: 0; } 25% { opacity: .62; } 100% { transform: translateX(110%); opacity: 0; } }
.history-arrival { position: relative; z-index: 1; }
.history-arrival-completed { animation: prism-history-complete 700ms ease-out 610ms both; }
.history-arrival-canceled { animation: prism-history-cancel 520ms ease-out 160ms both; }
.history-arrival-failed { animation: prism-history-fail 420ms ease-out both; }
@keyframes prism-history-complete { 0% { opacity: 0; transform: translateY(-.35rem); } 35% { opacity: 1; background: rgba(111,247,184,.14); box-shadow: 0 0 26px rgba(89,245,255,.18); } 100% { opacity: 1; transform: none; background: transparent; box-shadow: none; } }
@keyframes prism-history-cancel { 0% { opacity: 0; transform: translateY(-.2rem); } 40% { opacity: 1; background: rgba(255,230,109,.1); } 100% { opacity: 1; transform: none; background: transparent; } }
@keyframes prism-history-fail { from { opacity: .25; } to { opacity: 1; } }

.quiet-resolution-note { position: fixed; z-index: 6; display: flex; max-width: calc(100vw - 1rem); min-height: 70px; align-items: center; gap: .7rem; padding: .85rem; opacity: 0; color: #fff; background: linear-gradient(145deg, rgba(34,17,69,.98), rgba(18,9,39,.99)) padding-box, linear-gradient(115deg, rgba(255,230,109,.58), rgba(169,103,255,.42)) border-box; border: 1px solid transparent; border-radius: 16px; box-shadow: var(--shadow-small); }
.quiet-resolution-failed .quiet-resolution-note { background: linear-gradient(145deg, rgba(49,20,52,.98), rgba(22,10,37,.99)) padding-box, linear-gradient(115deg, rgba(255,148,133,.54), rgba(169,103,255,.3)) border-box; }
.quiet-resolution-stage.is-active .quiet-resolution-note { animation: prism-quiet 920ms ease-out both; }
@keyframes prism-quiet { 0% { opacity: 0; transform: translateY(.25rem); } 15%,68% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-.2rem); } }
.quiet-resolution-mark { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #211504; background: #ffe66d; border-radius: 50%; font-size: 1rem; font-weight: 950; }
.quiet-resolution-failed .quiet-resolution-mark { color: #fff; background: rgba(255,148,133,.32); border: 1px solid rgba(255,148,133,.52); }
.quiet-resolution-note strong, .quiet-resolution-note span { display: block; }
.quiet-resolution-note span { margin-top: .1rem; color: var(--ink-soft); font-size: .76rem; }

