/* Copyright (c) A|iens. All rights reserved.
 * Module: Cloud.Wallet | Version: 1.0.1 | Author: A'nil Cyborg
 * Description: Native-unit wallet cards, payment review and responsive invoice progress.
 * Integration: Existing AliensBrand tokens, controls and contextual workspace layout.
 */
.cw-screen { min-width:0; }
.cw-context { align-items:center; }
.cw-context .field { min-width:min(100%,230px); }
.cw-context .ac-help { display:flex; flex:1 1 240px; min-width:0; flex-direction:column; gap:4px; line-height:1.5; }
.cw-rate-note { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--border); border-radius:16px; background:var(--panel); }
.cw-rate-note > span:nth-child(2) { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; }
.cw-rate-note small,.cw-asset-heading span,.cw-result-count,.cw-auto-enable small { color:var(--muted); font-size:11px; }
.cw-rate-note .status-dot { background:var(--warning,#b97812); flex:none; }
.cw-rate-note.is-current .status-dot { background:var(--good,#168467); }
.cw-filters { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.cw-filters .filter-search { flex:1; min-width:160px; }
.cw-type-filter { display:flex; gap:4px; padding:4px; background:var(--panel-muted); border-radius:12px; }
.cw-type-filter .is-selected { background:var(--primary-tint); color:var(--primary); border-color:var(--primary); }
.cw-result-count { margin:0 0 12px; }
.cw-wallet-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:14px; }
.cw-asset-card { min-width:0; padding:16px; border:1px solid var(--border); border-radius:18px; background:var(--panel); display:flex; flex-direction:column; gap:18px; }
.cw-asset-heading { display:flex; align-items:center; gap:10px; }
.cw-asset-heading > div { display:flex; min-width:0; flex:1; flex-direction:column; gap:4px; }
.cw-asset-heading > small { color:var(--muted); font-size:10px; border:1px solid var(--border); padding:3px 7px; border-radius:7px; }
.cw-asset-heading .cw-asset-symbol { display:grid; place-items:center; width:39px; height:39px; flex:none; border-radius:13px; background:var(--primary-tint); color:var(--primary); font-size:12px; font-weight:800; }
.cw-asset-heading .cw-asset-symbol.is-crypto { background:var(--panel-muted); color:var(--text); box-shadow:inset 0 0 0 1px var(--border); }
.cw-asset-balance { display:flex; flex-direction:column; gap:5px; }
.cw-asset-balance strong { font-size:clamp(16px,1.7vw,23px); line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.cw-asset-balance span { color:var(--muted); font-size:11px; }
.cw-asset-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.cw-credit { color:var(--good,#13755d); }
.cw-reference { display:block; max-width:240px; overflow-wrap:anywhere; }
.cw-screen td small { display:block; margin-top:4px; color:var(--muted); max-width:260px; white-space:normal; }
.cw-screen fieldset { margin:0; padding:0; border:0; min-width:0; }
.cw-auto-enable { display:flex; margin-bottom:20px; }
.cw-auto-enable span { display:flex; flex-direction:column; gap:5px; }
.cw-quote-heading { padding:20px; border-radius:16px; background:var(--primary-tint); text-align:center; }
.cw-quote-heading > span { display:block; font-size:12px; font-weight:600; margin-bottom:10px; color:var(--muted); }
.cw-quote-heading > strong { font-size:clamp(19px,3vw,29px); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.cw-quote-heading > p { margin:8px 0 0; font-size:12px; overflow-wrap:anywhere; }
.cw-quote-facts { margin:18px 0; }
.cw-payment-progress { padding:16px 20px; border:1px solid var(--border); border-radius:16px; background:var(--panel); margin:14px 0; }
.cw-payment-progress > div:first-child { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:12px; }
.cw-payment-track { height:7px; background:var(--panel-muted); border-radius:9px; overflow:hidden; margin-top:10px; }
.cw-payment-track > span { display:block; height:100%; background:var(--primary); border-radius:inherit; }
.cw-payment-progress small { display:block; margin-top:9px; color:var(--muted); }
@media(max-width:600px) {
  .cw-rate-note { flex-wrap:wrap; }
  .cw-rate-note .btn { width:100%; }
  .cw-wallet-grid { grid-template-columns:minmax(0,1fr); }
  .cw-asset-balance strong { font-size:22px; }
  .cw-type-filter { width:100%; }
  .cw-type-filter .btn { flex:1; }
  .cw-filters .filter-search { min-width:0; flex-basis:100%; }
  .cw-context .field { width:100%; min-width:0; }
}
@media(forced-colors:active) {
  .cw-asset-card,.cw-rate-note,.cw-payment-progress,.cw-quote-heading { border:1px solid CanvasText; }
  .cw-payment-track > span { background:Highlight; }
}
/* Extension Hooks: New assets use the same native-unit card; no per-currency external CSS or images.
 * Compatibility: Reflows within the contextual workspace without fixed minimum page widths. */
