/* Standalone result toasts. No legacy result-card classes or nested card styles. */
#resultCards{position:fixed;z-index:80;top:84px;right:224px;bottom:auto;left:auto;width:380px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;gap:0;pointer-events:none}
#resultCards .rn-card{--rn-color:#66d194;--rn-icon-bg:#238d52;position:relative;isolation:isolate;display:grid;grid-template-columns:26px minmax(0,1fr) max-content 28px;align-items:center;gap:12px;width:100%;min-height:66px;padding:13px 12px 13px 16px;box-sizing:border-box;background:#111111;border:1px solid #292929;border-radius:12px;box-shadow:0 8px 25px #0004;color:#eee;overflow:hidden;pointer-events:auto;touch-action:pan-y;font-family:Arial,system-ui,sans-serif;animation:none}
#resultCards .rn-card.loss{--rn-color:#ff8c80;--rn-icon-bg:#c55d53}#resultCards .rn-card.neutral{--rn-color:#c5c5c5;--rn-icon-bg:#555}
#resultCards .rn-icon{display:grid;place-items:center;width:26px;height:26px;box-sizing:border-box;border:0;border-radius:50%;background:var(--rn-icon-bg);color:#fff;font-size:17px;font-weight:500;line-height:1}
#resultCards .rn-identity{min-width:0;display:flex;flex-direction:column;gap:5px}
#resultCards .rn-name{display:block;margin:0;padding:0;font-size:13px;line-height:1.15;font-weight:600;color:#f2f2f2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}
#resultCards .rn-status{display:block;margin:0;font-size:10px;line-height:1.2;color:#aaa;white-space:nowrap;letter-spacing:0}
#resultCards .rn-value{display:block;margin:0;padding:0;color:var(--rn-color);font-size:18px;font-weight:600;line-height:1.2;letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}
#resultCards .rn-close{all:unset;display:grid;place-items:center;box-sizing:border-box;width:28px;height:36px;border-radius:6px;color:#8c8c8c;font:24px/1 Arial,sans-serif;cursor:pointer;touch-action:manipulation}#resultCards .rn-close:hover{color:#ddd;background:#ffffff06}#resultCards .rn-close:focus-visible{outline:2px solid #aaa;outline-offset:1px}
#resultCards .rn-progress{position:absolute;bottom:0;left:0;right:0;height:2px;margin:0;padding:0;background:transparent;overflow:hidden;border:0;pointer-events:none}#resultCards .rn-progress i{display:block;width:100%;height:100%;border:0;border-radius:0;background:var(--rn-color);transform-origin:left;animation:none}
@media(min-width:1000px) and (max-width:1240px){#resultCards{right:202px}}
@media(min-width:721px) and (max-width:999px){#resultCards{right:18px}}
@media(max-width:720px){#resultCards{left:12px;right:12px;width:auto;max-width:none;top:124px}#resultCards .rn-card{grid-template-columns:24px minmax(0,1fr) max-content 26px;gap:9px;min-height:64px;padding:12px 10px 12px 13px}#resultCards .rn-icon{width:24px;height:24px;font-size:16px}#resultCards .rn-name{font-size:13px}#resultCards .rn-status{font-size:9px}#resultCards .rn-value{font-size:17px}#resultCards .rn-close{width:26px;height:36px;font-size:23px}}
@media(max-width:365px){#resultCards{left:9px;right:9px}#resultCards .rn-card{gap:7px;padding-inline:10px;grid-template-columns:22px minmax(0,1fr) max-content 24px}#resultCards .rn-icon{width:22px;height:22px;font-size:15px}#resultCards .rn-name{font-size:12px}#resultCards .rn-status{font-size:8px}#resultCards .rn-value{font-size:15px}#resultCards .rn-close{width:24px}}

/* Center over the viewport, independent of the trading sidebar. */
html body #resultCards {
  inset-inline:0;
  margin-inline:auto;
  width:min(380px,calc(100% - 2 * max(12px,env(safe-area-inset-left),env(safe-area-inset-right))));
  max-width:none;
}
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px) {
  html body #resultCards {top:max(52px,calc(env(safe-area-inset-top) + 44px))}
}
