/* Plasma display currency uses the existing glass, type and focus primitives. */
.plasma-currency{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;min-width:0}
.currency-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:78px;padding:5px 10px;border:1px solid var(--surface-rim,var(--line,#baa7c333));border-radius:13px;background:#ffffff05;color:var(--muted,#beb4c9);font:500 10px/1.3 var(--ui-font,system-ui);cursor:pointer;transition:background-color 160ms,border-color 160ms}
.currency-trigger-symbol{font:500 15px/1 var(--ui-font,system-ui);color:var(--pink,#eaa6cf)}.currency-trigger b{font:inherit;letter-spacing:.06em}.currency-trigger>svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4;flex:none}
.currency-trigger:hover{background:#dab4e512;border-color:#d6b5e35c}.currency-trigger:active{background:#dab4e51c}.currency-trigger:disabled{cursor:default;opacity:.65}
.currency-trigger:focus-visible,.currency-dialog :focus-visible{outline:2px solid var(--pink,#eaa6cf);outline-offset:3px}
.currency-rate-note{color:var(--muted,#beb4c9);font:400 9px/1.45 var(--ui-font,system-ui);max-width:190px;overflow-wrap:anywhere}.currency-rate-note[hidden]{display:none}
.currency-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 28px));max-height:calc(var(--app-height,100dvh) - 28px);padding:0;border:1px solid var(--glass-rim,#bda4cd55);border-radius:25px;background:var(--panel,#1b1323);color:var(--text,#f0ebf4);font:400 13px/1.5 var(--ui-font,system-ui);box-shadow:inset 0 1px #fff1,0 26px 90px #0007;overflow:auto;overscroll-behavior:contain;color-scheme:dark}
.currency-dialog::backdrop{background:#07050dcc;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.currency-dialog *{box-sizing:border-box}
.currency-dialog header{display:flex;align-items:flex-start;gap:14px;padding:22px 22px 17px;border-bottom:1px solid var(--surface-rim,#baa7c333)}.currency-dialog header>div{min-width:0;flex:1}.currency-dialog h2{margin:0;font-size:20px;line-height:1.25;font-weight:600;letter-spacing:-.025em}.currency-description{font-size:11px;line-height:1.6;margin:8px 0 0;color:var(--muted,#beb4c9)}
.currency-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--surface-rim,#baa7c333);border-radius:14px;background:#ffffff04;color:var(--text,#f0ebf4);cursor:pointer}.currency-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4}
.currency-options{display:grid;gap:4px;padding:12px}.currency-option{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:9px 12px;text-align:left;border:1px solid transparent;border-radius:15px;background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color 160ms,border-color 160ms}
.currency-option:hover{background:#d5b0e00b}.currency-option[aria-checked=true]{background:var(--glass-selected,linear-gradient(120deg,#c69bd51b,#ceace00a));border-color:#d3b1df42}.currency-option:disabled{cursor:default}
.currency-symbol{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid var(--surface-rim,#baa7c333);border-radius:11px;color:var(--violet,#ccb0ec);font-size:18px;background:#ffffff03}.currency-option-copy{flex:1;min-width:0}.currency-option-copy>b{display:block;font-weight:550;font-size:12px;letter-spacing:.04em}.currency-option-copy>small{display:block;color:var(--muted,#beb4c9);font-size:11px;overflow-wrap:anywhere;line-height:1.45;margin-top:2px}
.currency-check{flex:0 0 18px;color:var(--pink,#eaa6cf);opacity:0}.currency-option[aria-checked=true] .currency-check{opacity:1}.currency-check svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.currency-dialog footer{padding:14px 22px max(18px,env(safe-area-inset-bottom));border-top:1px solid var(--surface-rim,#baa7c333);color:var(--muted,#beb4c9);font-size:10px;line-height:1.7}.currency-dialog footer p{margin:0}.currency-dialog-status{color:var(--violet,#ccb0ec);margin-bottom:6px!important}.currency-dialog footer a{display:inline-block;min-height:28px;padding-top:7px;color:inherit;text-underline-offset:3px}
@media(max-width:370px){.currency-dialog header{padding:18px 17px 14px}.currency-dialog h2{font-size:18px}.currency-dialog footer{padding-inline:17px}.currency-option{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){.currency-trigger,.currency-option{transition:none}}
@media(prefers-reduced-transparency:reduce){.currency-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}.currency-option[aria-checked=true]{background:#382940}}

/* Compact, code-native currency marks; no fonts or remote image requests. */
.currency-symbol svg,.currency-trigger-symbol svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.currency-trigger-symbol{display:grid;place-items:center;min-width:16px}.currency-trigger-symbol svg{width:19px;height:19px}
.currency-option[data-currency=BTC] .currency-symbol{color:#e9c08f}.currency-option[data-currency=ETH] .currency-symbol{color:#c3b9ef}.currency-option[data-currency=XMR] .currency-symbol{color:#eab2a4}
/* Money values reuse the picker marks and inherit the value's semantic color. */
.plasma-money.plasma-money{display:inline-flex;align-items:center;justify-content:inherit;gap:.18em;max-width:100%;margin:0;padding:0;color:inherit;font:inherit;letter-spacing:inherit;line-height:inherit;vertical-align:baseline;white-space:nowrap;font-variant-numeric:tabular-nums}
.plasma-money>.plasma-money-number{display:inline;margin:0;padding:0;color:inherit;font:inherit;letter-spacing:inherit;line-height:inherit;white-space:nowrap}
.plasma-money>svg{display:block;width:.82em;height:.82em;flex:0 0 .82em;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
/* The native dashboard gives an intact money value its actual column width. */
.platform-summary>.core:has(.plasma-money){grid-template-columns:repeat(3,minmax(0,1fr)) max-content}
/* Management mirrors the language row: caption/rate left, trigger right. */
.currency-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;align-items:center}.currency-card>.title{grid-column:1;grid-row:1;min-width:0;align-self:end}.currency-card>.plasma-currency{display:contents}.currency-card .currency-trigger{grid-column:2;grid-row:1/3;justify-self:end;min-width:86px}.currency-card .currency-rate-note{grid-column:1;grid-row:2;max-width:none;align-self:start}.currency-card .currency-rate-note[hidden]{display:none}.currency-card:has(.currency-rate-note[hidden])>.title{align-self:center}
@media(max-width:899px),(pointer:coarse){.currency-dialog{--currency-top:max(14px,var(--safe-top,env(safe-area-inset-top,0px)));--currency-bottom:max(14px,var(--safe-bottom-live,var(--safe-bottom,env(safe-area-inset-bottom,0px))));position:fixed;inset:calc(var(--app-visual-top,0px) + var(--currency-top)) max(14px,env(safe-area-inset-right,0px)) auto max(14px,env(safe-area-inset-left,0px));margin:0 auto;max-height:calc(var(--app-height,100dvh) - var(--currency-top) - var(--currency-bottom))}}
