/* PCA styles — shared primitives (copy btn, HealthChip, WalletRow, wallet pill, AddressCrux, DiscountTierLadder, EligibilityVerdictBanner, device-progress, SponsorshipHandshake). Split from 26-pca.css (#1354); class names + cascade order unchanged. */

/* ══════════════════════════════════════════
   PUBLISHING CONVICTION ACCOUNTS (PCA)
   Shared sub-components (HealthChip, WalletRow, AddressCrux,
   DiscountTierLadder, DiscountAppliedBadge, EligibilityVerdictBanner,
   SponsorshipHandshake). Warning semantics resolve to `--text-warning`
   (NOT the SWM `--layer-shared` #f59e0b layer-identity accent).
   ══════════════════════════════════════════ */

/* ----- Copy button (shared) ----- */
.v10-pca-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  flex-shrink: 0;
}
.v10-pca-copy-btn:hover { background: var(--bg-hover); color: var(--text-secondary); }
.v10-pca-copy-btn:focus-visible { outline: 2px solid var(--text-link); outline-offset: 1px; }

/* Visually-hidden live announcement (mirrors the markdown copy announce). */
.v10-pca-copy-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- HealthChip ----- */
.v10-pca-health-chip {
  gap: 4px;
}
.v10-pca-health-glyph { font-size: 10px; line-height: 1; }

/* ----- WalletRow ----- */
.v10-pca-wallet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: var(--bg-surface);
}
.v10-pca-wallet-addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  min-width: 0;
}
.v10-pca-wallet-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}
.v10-pca-wallet-status[data-tone='success'] { color: var(--text-success); }
.v10-pca-wallet-status[data-tone='warn'] { color: var(--text-warning); }
.v10-pca-wallet-status[data-tone='danger'] { color: var(--text-danger); }
.v10-pca-wallet-gas {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: auto;
}
.v10-pca-wallet-trailing { margin-left: auto; display: inline-flex; align-items: center; }
.v10-pca-wallet-gas + .v10-pca-wallet-trailing { margin-left: 8px; }

/* ----- Wallet connect / connected pill (H-C) ----- */
.v10-pca-wallet-connect {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
  position: relative;
}
.v10-pca-wallet-connect-btn,
.v10-pca-wallet-pill-btn,
.v10-pca-wallet-pill-link,
.v10-pca-wallet-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.v10-pca-wallet-connect-btn {
  align-self: flex-start;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.v10-pca-wallet-connect-btn:hover { background: var(--bg-hover); }
.v10-pca-wallet-connect-btn:focus-visible,
.v10-pca-wallet-provider:focus-visible,
.v10-pca-wallet-pill-btn:focus-visible,
.v10-pca-wallet-pill-link:focus-visible {
  outline: 2px solid var(--text-link);
  outline-offset: 1px;
}
.v10-pca-wallet-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
  max-width: 520px;
}
.v10-pca-wallet-error {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-danger);
}
.v10-pca-wallet-picker {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 35;
  width: min(320px, 90vw);
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v10-pca-wallet-provider {
  width: 100%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.v10-pca-wallet-provider:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); }
.v10-pca-wallet-provider:disabled { opacity: 0.55; cursor: not-allowed; }
.v10-pca-wallet-provider-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.v10-pca-wallet-picker-empty {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
}
.v10-pca-wallet-pill-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v10-pca-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
}
.v10-pca-wallet-pill[data-state='wrong-network'] {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--amber-dim);
}
.v10-pca-wallet-pill-main {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
}
.v10-pca-wallet-pill-provider {
  font-size: 11px;
  color: var(--text-tertiary);
}
.v10-pca-wallet-pill-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.v10-pca-wallet-pill-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.v10-pca-wallet-pill-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-warning);
}
.v10-pca-wallet-pill-link {
  border: none;
  background: transparent;
  color: var(--text-link);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
}
.v10-pca-wallet-pill-link:disabled { opacity: 0.6; cursor: not-allowed; }

/* ----- AddressCrux ----- */
.v10-pca-address-crux { display: flex; flex-direction: column; gap: 6px; }
.v10-pca-crux-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.v10-pca-crux-note strong { color: var(--text-primary); }
.v10-pca-crux-note code,
.v10-pca-crux-help code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg-elevated);
}
.v10-pca-crux-help {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
.v10-pca-crux-help abbr { cursor: help; text-decoration-style: dotted; }
.v10-pca-crux-error {
  margin: 0;
  font-size: 12px;
  color: var(--text-danger);
}

/* ----- DiscountTierLadder ----- */
.v10-pca-tier-ladder { display: flex; flex-direction: column; gap: 6px; }
.v10-pca-tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.v10-pca-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.v10-pca-tier-row:last-child { border-bottom: none; }
.v10-pca-tier-row.active {
  background: var(--green-dim);
  color: var(--text-primary);
  font-weight: 600;
}
.v10-pca-tier-trac { font-family: var(--font-mono); }
.v10-pca-tier-pct { font-weight: 700; }
.v10-pca-tier-row.active .v10-pca-tier-pct { color: var(--text-success); }
.v10-pca-tier-caption { margin: 0; font-size: 11px; color: var(--text-tertiary); }

/* ----- DiscountAppliedBadge ----- */
.v10-pca-discount-applied { gap: 3px; }

/* ----- EligibilityVerdictBanner ----- */
.v10-pca-verdict-banner {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
}
.v10-pca-verdict-message {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-primary);
}
.v10-pca-verdict-glyph { margin-right: 6px; }
.v10-pca-verdict-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }

.v10-pca-verdict-green {
  background: var(--green-dim);
  border-color: rgba(34, 197, 94, 0.25);
}
.v10-pca-verdict-green .v10-pca-verdict-glyph { color: var(--text-success); }
.v10-pca-verdict-amber {
  background: var(--amber-dim);
  border-color: rgba(245, 158, 11, 0.3);
}
.v10-pca-verdict-amber .v10-pca-verdict-glyph { color: var(--text-warning); }
.v10-pca-verdict-danger {
  background: var(--red-dim);
  border-color: rgba(239, 68, 68, 0.35);
}
.v10-pca-verdict-danger .v10-pca-verdict-glyph { color: var(--text-danger); }
.v10-pca-verdict-neutral {
  background: var(--bg-elevated);
  border-color: var(--border-default);
}
.v10-pca-verdict-neutral .v10-pca-verdict-glyph { color: var(--text-tertiary); }

/* ----- Device confirm progress (H-C placeholder for H-D flows) ----- */
.v10-pca-device-progress {
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.v10-pca-device-progress-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.v10-pca-device-progress-note {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
}
.v10-pca-device-progress-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.v10-pca-device-progress-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 0;
}
.v10-pca-device-progress-row > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.v10-pca-device-progress-row[data-state='active'] { color: var(--text-primary); }
.v10-pca-device-progress-row[data-state='submitted'] { color: var(--text-warning); }
.v10-pca-device-progress-row[data-state='confirmed'] { color: var(--text-success); }
.v10-pca-device-progress-row[data-state='failed'],
.v10-pca-device-progress-row[data-state='aborted'] { color: var(--text-danger); }
.v10-pca-device-progress-glyph {
  width: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: inherit;
  line-height: 1.45;
}
.v10-pca-device-progress-tx {
  grid-column: 2;
  display: block;
  color: var(--text-link);
  font-family: var(--font-mono);
  font-size: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.v10-pca-device-progress-error {
  grid-column: 2 / -1;
  color: var(--text-danger);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.v10-pca-device-progress-row[data-state='submitted'] .v10-pca-device-progress-error {
  color: var(--text-warning);
}

/* Condensed chip on the publish CTA */
.v10-pca-verdict-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid var(--border-default);
}
.v10-pca-verdict-chip.v10-pca-verdict-green {
  color: var(--text-success);
  border-color: rgba(34, 197, 94, 0.25);
}
.v10-pca-verdict-chip.v10-pca-verdict-amber {
  color: var(--text-warning);
  border-color: rgba(245, 158, 11, 0.3);
}
.v10-pca-verdict-chip.v10-pca-verdict-danger {
  color: var(--text-danger);
  border-color: rgba(239, 68, 68, 0.35);
}
.v10-pca-verdict-chip.v10-pca-verdict-neutral {
  color: var(--text-secondary);
}
/* ----- SponsorshipHandshake ----- */
.v10-pca-handshake {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .v10-pca-handshake { grid-template-columns: 1fr; }
}
.v10-pca-handshake-half {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
}
.v10-pca-handshake-half[data-emphasis='true'] {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.v10-pca-handshake-head { display: flex; flex-direction: column; gap: 2px; }
.v10-pca-handshake-title { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.v10-pca-handshake-sub { font-size: 11px; color: var(--text-tertiary); line-height: 1.45; }
.v10-pca-handshake-wallets { display: flex; flex-direction: column; gap: 6px; }
.v10-pca-handshake-copyall {
  align-self: flex-start;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.v10-pca-handshake-copyall:hover { background: var(--bg-hover); color: var(--text-primary); }
.v10-pca-handshake-account { display: flex; align-items: center; gap: 8px; }
.v10-pca-handshake-account-id {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.v10-pca-handshake-empty { margin: 0; font-size: 11px; color: var(--text-tertiary); }

