/* Header search */
.cx-top-spacer { flex: 1; }
.cx-header-search {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15,23,42,0.08);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-left: auto;
}
.cx-brand span { display: none; }

.cx-markets-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
}
.cx-mkt-chip {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 100px;
  box-shadow: var(--shadow-card);
}
.cx-mkt-chip span {
  display: block;
  font-size: 11px;
  color: var(--mute);
  font-weight: 600;
}
.cx-mkt-chip strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.cx-search-results { margin-top: 12px; max-height: 50vh; overflow: auto; }
.cx-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cx-search-price { font-weight: 600; font-variant-numeric: tabular-nums; }

.cx-chime-bank { padding-bottom: 24px; }
.cx-chime-greet {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.cx-chime-balance-block {
  background: linear-gradient(180deg, #e8f7ef 0%, #ffffff 100%);
  border: 1px solid #d5ebdd;
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.cx-chime-bal-label { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.cx-chime-bal {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}
.cx-chime-pill {
  display: inline-block;
  margin-top: 12px;
  background: #d8f0e4;
  color: #0a7a3e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.cx-chime-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.cx-chime-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  padding: 14px 0 8px;
}
.cx-chime-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}
.cx-chime-val { color: var(--mute); font-weight: 500; text-align: right; }

.cx-app {
  min-height: calc(100vh - 52px - var(--nav-h) - 40px);
  display: flex;
  flex-direction: column;
}
.cx-site-footer { margin-top: auto; }

.cx-copilot-legal ul.cx-legal-list {
  margin: 10px 0 0 18px;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}
.cx-chat-live {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}
.cx-chat-live .cx-chat-log {
  flex: 1;
  min-height: 40vh;
  max-height: none;
}
.cx-chat-send {
  width: auto;
  min-width: 88px;
  margin-top: 0;
  height: 48px;
  padding: 0 16px;
}

.cx-wallet-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.cx-wallet-card-actions button {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}
.cx-wallet-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Wallet Hybrid layout */
.cx-wallet-shell { padding-bottom: 8px; }
.cx-wallet-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.cx-wallet-hero .cx-pf-value { font-size: 36px; }
.cx-send-receive { margin-top: 16px; border-radius: 999px; }
.cx-wallet-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 4px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.cx-link-btn {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}
.cx-asset-card { padding: 4px 16px 12px; }
.cx-asset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cx-asset-row:last-child { border-bottom: 0; }
.cx-asset-left { display: flex; flex-direction: column; gap: 2px; }
.cx-asset-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.cx-asset-sub { font-size: 12px; color: var(--mute); }
.cx-asset-right { text-align: right; }
.cx-asset-amt { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-asset-usd { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.cx-wallet-btn {
  display: block;
  width: 100%;
  height: 48px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  padding: 0 16px;
}
.cx-input, .cx-label { display: block; width: 100%; }
.cx-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  margin: 10px 0 6px;
}
.cx-input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
}
.cx-xch-lane {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--mute);
  font-weight: 600;
  font-size: 13px;
}
.cx-xch-lane.on {
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent);
  border-color: transparent;
}
