/* Unified Prism v2 stylesheet. Source order: foundation poster, home surfaces, ledger/detail surfaces. */

/* === v2 foundation poster styles === */
:root {
  --v2-paper: #f6f2ec;
  --v2-ink: #2a2940;
  --v2-ink-soft: #6d6b85;
  --v2-rule: #d8d2c5;
  --v2-swap: #4fb8c4;
  --v2-call: #8a6ec2;
  --v2-agent: #e28565;
  --v2-instructions: #c7a85a;
  --v2-readwrite: #7ea876;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--v2-paper);
  color: var(--v2-ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.v2-canvas {
  min-height: 100vh;
  background: var(--v2-paper);
}

.v2-poster {
  width: min(1200px, 100%);
  min-height: 800px;
  margin: 0 auto;
  padding: 120px 120px 76px;
  display: flex;
  flex-direction: column;
}

.v2-spacer { flex: 1 1 auto; }
.v2-section { margin: 0; }
.v2-header { margin-bottom: 72px; }
.v2-metric { margin-bottom: 48px; }
.v2-chips { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }
.v2-bars { width: 670px; max-width: 100%; }
.v2-bars > * + * { margin-top: 28px; }
.v2-signature { margin-top: auto; padding-top: 108px; }

.v2-editorial {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--v2-ink-soft);
}

.v2-mono {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--v2-ink);
  font-variant-numeric: tabular-nums;
}

.v2-ledger-line {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
}
.v2-ledger-label {
  font-size: 42px;
  line-height: 1;
}
.v2-ledger-value {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.v2-hero-line {
  display: flex;
  align-items: baseline;
  gap: 34px;
  flex-wrap: wrap;
}
.v2-hero-value {
  font-size: 96px;
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.v2-hero-label {
  font-size: 34px;
  line-height: 1;
}

.v2-chip {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--v2-rule);
  background: rgba(255,255,255,0.9);
  color: var(--v2-ink);
  font-size: 16px;
  line-height: 1;
}
.v2-chip-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.v2-chip--swap .v2-chip-dot { background: var(--v2-swap); }
.v2-chip--call .v2-chip-dot { background: var(--v2-call); }
.v2-chip--agent .v2-chip-dot { background: var(--v2-agent); }

.v2-bar-label {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 14px;
}
.v2-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 600px) auto;
  align-items: center;
  gap: 20px;
}
.v2-bar-track {
  width: 600px;
  max-width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6e1d5;
}
.v2-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.v2-bar-fill--instructions { background: var(--v2-instructions); }
.v2-bar-fill--readwrite { background: var(--v2-readwrite); }
.v2-bar-value {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 18px;
  line-height: 1;
  color: var(--v2-ink);
  font-variant-numeric: tabular-nums;
}

.v2-signature-text {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  color: var(--v2-ink);
}
.v2-signature-rule {
  width: 80px;
  height: 2px;
  background: var(--v2-ink);
  margin-top: 14px;
}

@media (max-width: 900px) {
  .v2-poster {
    min-height: auto;
    padding: 72px 28px 40px;
  }
  .v2-header { margin-bottom: 56px; }
  .v2-ledger-label { font-size: 34px; }
  .v2-ledger-value { font-size: 36px; }
  .v2-hero-value { font-size: 72px; }
  .v2-hero-label { font-size: 28px; }
  .v2-bars { width: 100%; }
  .v2-bar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .v2-bar-track { width: 100%; }
  .v2-signature { padding-top: 84px; }
}

@media (max-width: 640px) {
  .v2-poster { padding: 48px 20px 28px; }
  .v2-ledger-line, .v2-hero-line { gap: 14px; }
  .v2-ledger-label { font-size: 28px; }
  .v2-ledger-value { font-size: 30px; }
  .v2-hero-value { font-size: 56px; }
  .v2-hero-label { font-size: 24px; }
  .v2-chip { font-size: 15px; }
  .v2-bar-label { font-size: 18px; }
  .v2-signature-text { font-size: 24px; }
}

/* === Prism home live-data foundation and ledger spectrogram === */
.ph-home-page {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.ph-home-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ph-demo-banner {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 7px 20px;
  border-bottom: 1px solid color-mix(in oklch, var(--ph-amber) 35%, var(--ph-border));
  background: color-mix(in oklch, var(--ph-amber) 9%, var(--ph-bg));
  color: var(--ph-text-2);
  font-size: 12px;
}

.ph-demo-banner strong { color: var(--ph-text); }

.ph-heartbeat .dot.is-pending,
.ph-heartbeat .dot.is-unavailable { background: var(--ph-text-3); }
.ph-heartbeat .dot.is-live { background: var(--ph-green); }
.ph-heartbeat .dot.is-delayed,
.ph-heartbeat .dot.is-demo { background: var(--ph-amber); }

.ph-spectrum-section {
  margin: 0 0 40px;
  scroll-margin-top: 88px;
}

.ph-spectrum-head,
.ph-home-deferred-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 13px;
}

.ph-spectrum-head h2,
.ph-home-deferred h2,
.ph-home-open h2 {
  margin: 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ph-spectrum-instruction,
.ph-home-deferred-heading > span {
  max-width: 58ch;
  color: var(--ph-text-3);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.ph-spectrum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  padding: 16px 18px 13px;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  background: var(--ph-surf);
}

.ph-spectrum-chart-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: var(--ph-border-strong) transparent;
}

.ph-spectrum-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--ph-column-count), minmax(0, 1fr));
  align-items: end;
  width: 100%;
  height: 176px;
  gap: 3px;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--ph-border);
}

.ph-spectrum-chart::before {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 32px;
  left: 0;
  height: 1px;
  background: var(--ph-border);
  content: "";
}

.ph-spectrum-column {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 8px;
  row-gap: 4px;
  align-self: stretch;
  min-width: 0;
  outline: 0;
}

.ph-spectrum-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  grid-row: 1;
  align-self: end;
  width: 100%;
  height: var(--ph-column-height);
  min-height: 2px;
  overflow: hidden;
  transform-origin: bottom;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1), filter 180ms cubic-bezier(.16, 1, .3, 1);
}

.ph-spectrum-column:hover .ph-spectrum-stack,
.ph-spectrum-column:focus-visible .ph-spectrum-stack {
  filter: saturate(1.12) contrast(1.04);
  transform: scaleY(1.025);
}

.ph-spectrum-column:focus-visible {
  z-index: 5;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ph-accent-ink) 24%, transparent);
}

.ph-spectrum-column.is-latest .ph-spectrum-stack {
  box-shadow: 0 0 0 1px var(--ph-text);
}

.ph-spectrum-segment {
  min-height: 1px;
  flex-basis: 0;
  flex-grow: var(--ph-segment-weight);
}

.ph-spectrum-segment.is-payments,
.ph-spectrum-swatch.is-payments { background: var(--ph-cyan); }
.ph-spectrum-segment.is-markets,
.ph-spectrum-swatch.is-markets { background: var(--ph-green); }
.ph-spectrum-segment.is-calls,
.ph-spectrum-segment.is-soroban,
.ph-spectrum-swatch.is-calls,
.ph-spectrum-swatch.is-soroban { background: var(--ph-violet); }
.ph-spectrum-segment.is-deployments,
.ph-spectrum-swatch.is-deployments { background: var(--ph-amber); }
.ph-spectrum-segment.is-other,
.ph-spectrum-swatch.is-other { background: var(--ph-other); }

.ph-spectrum-failure {
  position: relative;
  z-index: 2;
  grid-row: 2;
  align-self: end;
  width: 100%;
  height: var(--ph-failure-height);
  max-height: 8px;
  background: var(--ph-red);
}

.ph-spectrum-tooltip {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 50%;
  display: grid;
  width: 236px;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--ph-border-strong);
  border-radius: 8px;
  background: var(--ph-text);
  box-shadow: 0 12px 24px -8px color-mix(in oklch, var(--ph-text) 28%, transparent);
  color: var(--ph-bg);
  font-size: 11px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 150ms ease-out, transform 150ms cubic-bezier(.16, 1, .3, 1);
}

.ph-spectrum-tooltip strong {
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  font-weight: 600;
}

.ph-spectrum-tooltip span { color: color-mix(in oklch, var(--ph-bg) 78%, transparent); }
.ph-spectrum-column:hover .ph-spectrum-tooltip,
.ph-spectrum-column:focus-visible .ph-spectrum-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ph-spectrum-column:nth-child(-n + 7) .ph-spectrum-tooltip {
  left: 0;
  transform: translate(0, -4px);
}

.ph-spectrum-column:nth-last-child(-n + 7) .ph-spectrum-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, -4px);
}

.ph-spectrum-column:nth-child(-n + 7):hover .ph-spectrum-tooltip,
.ph-spectrum-column:nth-child(-n + 7):focus-visible .ph-spectrum-tooltip,
.ph-spectrum-column:nth-last-child(-n + 7):hover .ph-spectrum-tooltip,
.ph-spectrum-column:nth-last-child(-n + 7):focus-visible .ph-spectrum-tooltip {
  transform: translate(0, 0);
}

.ph-spectrum-axis {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  width: max(100%, calc(var(--ph-column-count) * 11px));
  padding-top: 8px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ph-spectrum-axis span:nth-child(2) { color: var(--ph-red); text-align: center; }
.ph-spectrum-axis span:last-child { text-align: right; }

.ph-spectrum-legend {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 0;
}

.ph-spectrum-legend-title {
  margin-bottom: 9px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ph-spectrum-legend-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  color: var(--ph-text-2);
  font-size: 12px;
}

.ph-spectrum-legend-row b {
  color: var(--ph-text);
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  font-weight: 600;
}

.ph-spectrum-legend-row.is-failure {
  margin-top: 5px;
  padding-top: 11px;
  border-top: 1px solid var(--ph-border);
}

.ph-spectrum-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ph-other);
}
.ph-spectrum-swatch.is-failure { background: var(--ph-red); }

.ph-spectrum-provenance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ph-spectrum-provenance b { color: var(--ph-text-2); font-weight: 500; }

.ph-spectrum-skeleton {
  display: grid;
  /* Count comes from vmv2.SpectrogramLedgerCount, set inline, so the skeleton
     and the loaded chart cannot disagree about how wide a column is. */
  grid-template-columns: repeat(var(--ph-column-count, 32), minmax(6px, 1fr));
  align-items: end;
  height: 176px;
  gap: 4px;
  padding: 24px 22px;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  background: var(--ph-surf);
}

.ph-spectrum-skeleton-column {
  height: 72%;
  border-radius: 3px 3px 1px 1px;
  background: var(--ph-panel);
  animation: ph-spectrum-pulse 1.4s ease-in-out infinite;
}
.ph-spectrum-skeleton-column.is-tall { height: 92%; }
.ph-spectrum-skeleton-column.is-medium { height: 64%; }
.ph-spectrum-skeleton-column.is-short { height: 38%; }
.ph-spectrum-skeleton-column.is-mid-tall { height: 78%; }

@keyframes ph-spectrum-pulse {
  0%, 100% { opacity: .48; }
  50% { opacity: 1; }
}

.ph-inline-state {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  background: var(--ph-panel);
  color: var(--ph-text-2);
  font-size: 12px;
}
.ph-inline-state strong { color: var(--ph-text); font-size: 11px; font-weight: 600; }
.ph-inline-state.is-stale,
.ph-inline-state.is-partial,
.ph-inline-state.is-demo { border-color: color-mix(in oklch, var(--ph-amber) 30%, var(--ph-border)); }
.ph-inline-state.is-unavailable { color: var(--ph-text-3); }

.ph-inline-retry {
  padding: 9px 13px;
  border: 1px solid var(--ph-border-strong);
  border-radius: 8px;
  background: var(--ph-surf);
  color: var(--ph-text);
  font-size: 12px;
  font-weight: 600;
}
.ph-inline-retry:hover { border-color: var(--ph-accent-ink); color: var(--ph-accent-ink); }
.ph-inline-retry:focus-visible { outline: 3px solid color-mix(in oklch, var(--ph-accent-ink) 22%, transparent); outline-offset: 2px; }

.ph-home-search {
  display: grid;
  grid-template-columns: minmax(220px, .5fr) minmax(480px, 1.5fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin: 0 0 24px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
}

.ph-home-search-copy h1 {
  max-width: none;
  margin: 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.ph-home-search-copy p {
  max-width: 48ch;
  margin: 7px 0 0;
  color: var(--ph-text-2);
  font-size: 13px;
  line-height: 1.45;
}

.ph-home-search > * { min-width: 0; }
.ph-home-search .ph-search-wrap { width: 100%; min-width: 0; max-width: none; }
.ph-home-search .ph-search {
  padding: 7px 7px 7px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 24px -12px color-mix(in oklch, var(--ph-text) 15%, transparent);
}
.ph-home-search .ph-search:focus-within {
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ph-accent-ink) 18%, transparent), 0 12px 24px -12px color-mix(in oklch, var(--ph-text) 15%, transparent);
}
.ph-home-search .ph-search-submit {
  padding: 9px 15px;
  border-color: var(--ph-text);
  background: var(--ph-text);
  color: var(--ph-surf);
}
.ph-home-search .ph-search-submit:hover { background: var(--ph-accent-ink); color: var(--ph-surf); }
.ph-home-search .ph-trychip:hover { background: var(--ph-accent); color: var(--ph-accent-ink); }

.ph-home-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  grid-template-areas:
    "changes changes"
    "contracts archival"
    "utilization utilization";
  column-gap: 40px;
}
.ph-home-evidence-grid > #changes { grid-area: changes; }
.ph-home-evidence-grid > #contracts { grid-area: contracts; }
.ph-home-evidence-grid > #archival { grid-area: archival; }
.ph-home-evidence-grid > #utilization { grid-area: utilization; }
.ph-home-evidence-grid > .ph-home-deferred { min-width: 0; }

.ph-home-deferred {
  margin: 0;
  padding: 26px 0;
  border-top: 1px solid var(--ph-border);
  scroll-margin-top: 88px;
}
.ph-home-deferred + .ph-home-deferred { padding-top: 26px; }
.ph-home-deferred > .ph-inline-state {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 10px;
}
.ph-evidence-status-slot {
  display: grid;
  min-height: 30px;
}
.ph-evidence-status-slot > .ph-inline-state {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 10px;
}
.ph-evidence-status-slot > .ph-inline-state.is-demo { width: 100%; }
.ph-evidence-status-slot > .ph-inline-state strong { font-size: 10px; }
.ph-evidence-status-slot > .ph-inline-retry { margin-bottom: 8px; padding: 6px 10px; font-size: 10px; }
.ph-home-deferred > .ph-inline-state.is-empty,
.ph-evidence-status-slot > .ph-inline-state.is-empty {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ph-text-2);
  font-size: 13px;
}
.ph-home-deferred > .ph-inline-state.is-demo { width: 100%; }
.ph-home-deferred > .ph-inline-state strong { font-size: 10px; }
.ph-home-deferred > .ph-inline-retry { margin-bottom: 8px; padding: 6px 10px; font-size: 10px; }

.ph-evidence-health {
  width: fit-content;
  max-width: 100%;
  margin: -3px 0 9px;
  color: var(--ph-text-3);
  font-size: 11px;
}
.ph-evidence-health summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  cursor: pointer;
  color: var(--ph-text-2);
  font-weight: 600;
  list-style: none;
}
.ph-evidence-health summary::-webkit-details-marker { display: none; }
.ph-evidence-health summary::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ph-amber);
  content: "";
}
.ph-evidence-health.is-unavailable summary::before { background: var(--ph-red); }
.ph-evidence-health > div {
  display: grid;
  gap: 3px;
  max-width: 65ch;
  padding: 3px 0 4px 13px;
  color: var(--ph-text-3);
  font-size: 11px;
  line-height: 1.4;
}
.ph-evidence-health summary:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--ph-accent-ink) 22%, transparent);
  outline-offset: 2px;
}

.ph-evidence-skeleton {
  display: grid;
  gap: 8px;
  padding: 20px 0 4px;
}
.ph-evidence-skeleton span {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: var(--ph-panel);
  animation: ph-spectrum-pulse 1.4s ease-in-out infinite;
}
.ph-evidence-skeleton span:nth-child(1) { width: 72%; }
.ph-evidence-skeleton span:nth-child(2) { width: 92%; animation-delay: 90ms; }
.ph-evidence-skeleton span:nth-child(3) { width: 54%; animation-delay: 180ms; }

.ph-section-warnings {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ph-text-2);
  font-size: 12px;
  line-height: 1.5;
}
.ph-section-warnings li {
  position: relative;
  padding-left: 14px;
}
.ph-section-warnings li::before {
  position: absolute;
  left: 0;
  content: "·";
  color: var(--ph-amber);
  font-weight: 700;
}
.ph-section-provenance {
  margin: 12px 0 16px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
}

.ph-insight-list {
  border-top: 1px solid var(--ph-border-strong);
}
.ph-home-insights.has-no-cards { padding-bottom: 21px; }
.ph-insight-zero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 11px 0 12px;
  border-top: 1px solid var(--ph-border-strong);
  border-bottom: 1px solid var(--ph-border);
}
.ph-insight-zero > div {
  display: flex;
  align-items: baseline;
  gap: 10px 14px;
  min-width: 0;
}
.ph-insight-zero strong {
  color: var(--ph-text);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.ph-insight-zero span {
  color: var(--ph-text-2);
  font-size: 12px;
  line-height: 1.45;
}
.ph-insight-zero-result {
  color: var(--ph-green-ink, var(--ph-text-2)) !important;
  font-family: var(--ph-ff-mono);
  font-size: 10px !important;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ph-insight-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--ph-border);
}
.ph-insight-check {
  min-width: 0;
  padding: 11px 14px 12px;
  border-right: 1px solid var(--ph-border);
}
.ph-insight-check:first-child { padding-left: 0; }
.ph-insight-check:last-child { border-right: 0; }
.ph-insight-check dt {
  margin: 0 0 4px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ph-insight-check dd {
  margin: 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-mono);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
.ph-insight-check small {
  display: block;
  margin-top: 3px;
  color: var(--ph-text-3);
  font-size: 10px;
  line-height: 1.35;
}
.ph-insight-check.is-partial dd,
.ph-insight-check.is-unavailable dd { color: var(--ph-amber-ink, var(--ph-text-2)); }
.ph-insight-checks.is-limited { background: color-mix(in oklch, var(--ph-amber) 4%, transparent); }
.ph-insight-recent {
  display: flex;
  align-items: baseline;
  gap: 8px 12px;
  min-height: 35px;
  padding: 8px 0 0;
  color: var(--ph-text-3);
  font-size: 10px;
}
.ph-insight-recent > span {
  font-family: var(--ph-ff-mono);
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ph-insight-recent a,
.ph-insight-recent strong { color: var(--ph-text-2); font-size: 11px; font-weight: 600; }
.ph-insight-recent a:hover { color: var(--ph-accent-ink); }
.ph-insight-recent small { margin-left: auto; color: var(--ph-text-3); }
.ph-insight-zero.is-delayed strong { white-space: normal; }
.ph-insight-zero .ph-inline-retry {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 10px;
}
.ph-insight-zero-detail {
  width: fit-content;
  max-width: 72ch;
  margin-top: 6px;
  color: var(--ph-text-3);
  font-size: 10px;
  line-height: 1.45;
}
.ph-insight-zero-detail summary {
  min-height: 24px;
  cursor: pointer;
  font-weight: 600;
}
.ph-insight-zero-detail span { display: block; padding: 1px 0 1px 14px; }
.ph-insight-zero-detail summary:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--ph-accent-ink) 22%, transparent);
  outline-offset: 2px;
}
.ph-insight {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 40px;
  padding: 17px 0 19px;
  border-bottom: 1px solid var(--ph-border);
}
.ph-insight-main,
.ph-insight-proof { min-width: 0; }
.ph-insight-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ph-signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ph-other);
}
.ph-signal-dot.is-critical { background: var(--ph-red); }
.ph-signal-dot.is-signal { background: var(--ph-violet); }
.ph-signal-dot.is-info { background: var(--ph-cyan); }
.ph-signal-dot.is-positive { background: var(--ph-green); }
.ph-insight h3,
.ph-evidence-row h3,
.ph-leader-row h3,
.ph-utilization-row h3 {
  margin: 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-sans);
  font-weight: 650;
}
.ph-insight h3 { max-width: 38ch; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.ph-insight-summary {
  max-width: 68ch;
  margin: 9px 0 0;
  color: var(--ph-text);
  font-size: 14px;
  line-height: 1.5;
}
.ph-insight-detail {
  max-width: 68ch;
  margin: 6px 0 0;
  color: var(--ph-text-2);
  font-size: 13px;
  line-height: 1.55;
}
.ph-insight-proof {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ph-insight-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
}
.ph-insight-facts > div {
  min-width: 0;
  padding: 9px 12px 10px;
  border-right: 1px solid var(--ph-border);
}
.ph-insight-facts > div:first-child { padding-left: 0; }
.ph-insight-facts > div:last-child { padding-right: 0; border-right: 0; }
.ph-insight-facts dt {
  overflow: hidden;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.ph-insight-facts dd {
  margin: 5px 0 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-mono);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.ph-insight-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}
.ph-insight-actions .ph-evidence-link { margin-top: 0; }
.ph-insight-coverage {
  min-width: 0;
  margin-left: auto;
  color: var(--ph-text-3);
  font-size: 11px;
}
.ph-insight-coverage summary {
  cursor: pointer;
  color: var(--ph-text-3);
  font-weight: 600;
  list-style-position: inside;
  white-space: nowrap;
}
.ph-insight-coverage summary:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--ph-accent-ink) 22%, transparent);
  outline-offset: 2px;
}
.ph-insight-coverage ul {
  max-width: 38ch;
  margin: 7px 0 0;
  padding-left: 17px;
  line-height: 1.45;
}
@media (min-width: 1025px) {
  .ph-insight-list.has-2,
  .ph-insight-list.has-3 {
    display: grid;
    grid-template-columns: repeat(var(--ph-insight-count), minmax(0, 1fr));
  }
  .ph-insight-list.has-2 { --ph-insight-count: 2; }
  .ph-insight-list.has-3 { --ph-insight-count: 3; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 14px;
    padding: 17px 20px 19px;
    border-right: 1px solid var(--ph-border);
  }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight:first-child { padding-left: 0; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight:last-child { padding-right: 0; border-right: 0; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight h3 { max-width: none; font-size: 18px; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight-summary { font-size: 13px; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight-detail { font-size: 12px; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight-facts dd { font-size: 15px; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight-actions { align-items: flex-start; flex-direction: column; }
  .ph-insight-list:is(.has-2, .has-3) .ph-insight-coverage { margin-left: 0; }
}
.ph-evidence-subject {
  display: grid;
  grid-template-columns: auto minmax(0, auto) 1fr;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 12px;
  font-size: 12px;
}
.ph-evidence-subject > span,
.ph-evidence-subject small { color: var(--ph-text-3); }
.ph-evidence-subject a,
.ph-evidence-subject strong { min-width: 0; overflow-wrap: anywhere; color: var(--ph-accent-ink); font-weight: 600; }
.ph-evidence-subject a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ph-evidence-link,
.ph-evidence-row-detail a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 10px;
  color: var(--ph-accent-ink);
  font-size: 12px;
  font-weight: 600;
}
.ph-evidence-link:hover,
.ph-evidence-row-detail a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ph-evidence-rows,
.ph-leader-list,
.ph-utilization-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ph-border-strong);
  list-style: none;
}
.ph-ttl-columns,
.ph-leader-columns {
  display: grid;
  align-items: end;
  min-height: 29px;
  padding: 8px 0 6px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ph-ttl-columns {
  grid-template-columns: minmax(0, 1fr) minmax(132px, max-content);
  gap: 16px;
}
.ph-ttl-columns span:last-child { text-align: right; }
.ph-evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, max-content);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ph-border);
  color: inherit;
  text-decoration: none;
}
.ph-evidence-row:hover,
.ph-leader-row:hover { background: color-mix(in oklch, var(--ph-panel) 72%, transparent); }
.ph-evidence-row:focus-visible,
.ph-leader-row:focus-visible { outline: 3px solid color-mix(in oklch, var(--ph-accent-ink) 22%, transparent); outline-offset: 2px; }
.ph-evidence-row:hover h3,
.ph-leader-row:hover h3 { color: var(--ph-accent-ink); }
.ph-evidence-row h3,
.ph-leader-row h3 { font-size: 14px; }
.ph-evidence-row-primary,
.ph-leader-identity { min-width: 0; }
.ph-evidence-row-primary h3,
.ph-leader-identity h3,
.ph-evidence-row-primary code,
.ph-leader-identity code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph-evidence-row code,
.ph-leader-row code {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
}
.ph-evidence-row code.ph-primary-id,
.ph-leader-row code.ph-primary-id { margin: 0; color: var(--ph-text); font-size: 13px; font-weight: 650; }
.ph-evidence-row-measure { display: flex; align-items: flex-end; flex-direction: column; gap: 2px; text-align: right; }
.ph-evidence-row-measure strong {
  color: var(--ph-text);
  font-family: var(--ph-ff-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.ph-evidence-row.is-critical .ph-evidence-row-measure strong { color: var(--ph-red); }
.ph-evidence-row.is-warning .ph-evidence-row-measure strong { color: var(--ph-amber); }
.ph-evidence-row-measure span { color: var(--ph-text-3); font-size: 11px; font-variant-numeric: tabular-nums; }

.ph-leader-columns,
.ph-leader-row {
  grid-template-columns: 24px minmax(140px, 1.1fr) minmax(76px, .48fr) minmax(82px, .52fr) minmax(118px, .8fr);
  gap: 12px;
}
.ph-leader-columns span:nth-child(3),
.ph-leader-columns span:nth-child(4) { text-align: right; }

.ph-leader-row {
  display: grid;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ph-border);
  color: inherit;
  text-decoration: none;
}
.ph-leader-list > li { margin: 0; list-style: none; }
.ph-leader-rank { color: var(--ph-text-3); font-family: var(--ph-ff-mono); font-size: 11px; }
.ph-leader-measure { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.ph-leader-measure strong { color: var(--ph-text); font-family: var(--ph-ff-mono); font-size: 17px; font-variant-numeric: tabular-nums; }
.ph-leader-measure span { color: var(--ph-text-3); font-size: 11px; }
.ph-leader-failure { justify-self: end; color: var(--ph-text-2); font-family: var(--ph-ff-mono); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-leader-failure.is-critical { color: var(--ph-red); }
.ph-leader-failure.is-warning { color: var(--ph-amber); }
.ph-leader-failure.is-healthy { color: var(--ph-green); }
.ph-leader-context { display: flex; flex-direction: column; gap: 1px; color: var(--ph-text-2); font-size: 12px; line-height: 1.35; }
.ph-leader-context code { display: inline; margin: 0; color: var(--ph-text-2); font-size: 11px; }

.ph-utilization-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ph-utilization-row {
  min-width: 0;
  padding: 14px 18px 16px;
  border-right: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
}
.ph-utilization-row:last-child { border-right: 0; }
.ph-utilization-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ph-utilization-heading h3 { font-size: 13px; }
.ph-utilization-heading strong { color: var(--ph-text); font-family: var(--ph-ff-mono); font-size: 18px; }
.ph-utilization-meter {
  height: 6px;
  margin: 11px 0 7px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ph-panel);
}
.ph-utilization-meter span {
  display: block;
  width: var(--ph-meter-width);
  height: 100%;
  border-radius: inherit;
  background: var(--ph-violet);
}
.ph-utilization-row:nth-child(2) .ph-utilization-meter span { background: var(--ph-green); }
.ph-utilization-row:nth-child(3) .ph-utilization-meter span { background: var(--ph-cyan); }
.ph-utilization-values { display: flex; justify-content: space-between; gap: 12px; color: var(--ph-text-2); font-family: var(--ph-ff-mono); font-size: 11px; }

.ph-home-open {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 32px;
  align-items: end;
  margin-top: 22px;
  padding: 22px 0 0;
  border-top: 1px solid var(--ph-border-strong);
}
.ph-home-open p { max-width: 52ch; margin: 0; color: var(--ph-text-2); font-size: 13px; }
.ph-home-open a { color: var(--ph-accent-ink); font-family: var(--ph-ff-mono); font-size: 11px; font-weight: 600; }
.ph-home-open a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ph-home-open a:focus-visible { outline: 3px solid color-mix(in oklch, var(--ph-accent-ink) 22%, transparent); outline-offset: 3px; }

.ph-search-results .v2-suggest-row.unsupported {
  background: color-mix(in oklch, var(--ph-amber) 8%, var(--ph-surf));
}

.ph-search-results .v2-suggest-row.unsupported strong {
  border-color: color-mix(in oklch, var(--ph-amber) 38%, var(--ph-border));
  color: color-mix(in oklch, var(--ph-amber) 78%, var(--ph-text));
}

.ph-search-results .v2-suggest-footer code {
  color: var(--ph-text-2);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
}

.ph-search-unsupported {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.ph-search-unsupported-intro {
  max-width: 760px;
  padding-bottom: 44px;
}

.ph-search-unsupported-intro h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-sans);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.ph-search-unsupported-intro blockquote {
  margin: 28px 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
  color: var(--ph-text);
  font-family: var(--ph-ff-mono);
  font-size: 13px;
  line-height: 1.5;
}

.ph-search-unsupported-intro p,
.ph-search-supported-copy p {
  max-width: 68ch;
  margin: 0;
  color: var(--ph-text-2);
  font-size: 14px;
  line-height: 1.6;
}

.ph-search-resolution-rule {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 18px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ph-search-resolution-rule code {
  color: var(--ph-text-2);
  letter-spacing: 0;
  text-transform: none;
}

.ph-search-supported {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr);
  gap: 64px;
  padding: 44px 0;
  border-top: 1px solid var(--ph-border-strong);
}

.ph-search-supported h2 {
  margin: 0 0 12px;
  color: var(--ph-text);
  font-size: 22px;
  letter-spacing: -.025em;
}

.ph-search-supported-list {
  border-top: 1px solid var(--ph-border);
}

.ph-search-supported-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ph-border);
  color: var(--ph-text);
  font-size: 14px;
}

.ph-search-supported-list a strong {
  flex: 0 0 auto;
  color: var(--ph-accent-ink);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ph-search-supported-list a:hover span { color: var(--ph-accent-ink); }
.ph-search-supported-list a:focus-visible { outline: 3px solid color-mix(in oklch, var(--ph-accent-ink) 22%, transparent); outline-offset: 4px; }

.ph-search-retry {
  padding-top: 38px;
  border-top: 1px solid var(--ph-border-strong);
}

.ph-search-retry > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ph-text-2);
  font-size: 12px;
  font-weight: 600;
}

.ph-search-retry > div {
  display: flex;
  gap: 8px;
  max-width: 760px;
  padding: 7px;
  border: 1px solid var(--ph-border-strong);
  border-radius: 12px;
  background: var(--ph-surf);
}

.ph-search-retry input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ph-text);
  font-size: 14px;
}

.ph-search-retry button {
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ph-text);
  color: var(--ph-surf);
  font-size: 12px;
  font-weight: 600;
}

.ph-search-retry > div:focus-within {
  border-color: var(--ph-accent-ink);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ph-accent-ink) 18%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ph-spectrum-stack,
  .ph-spectrum-tooltip { transition: none; }
  .ph-spectrum-skeleton-column,
  .ph-evidence-skeleton span { animation: none; }
}

@media (max-width: 1024px) {
  .ph-home-evidence-grid { display: block; }
}

@media (max-width: 900px) {
  .ph-home-page { width: min(100% - 40px, 1280px); }
  .ph-spectrum-layout { grid-template-columns: 1fr; }
  .ph-spectrum-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .ph-spectrum-legend-title,
  .ph-spectrum-provenance { grid-column: 1 / -1; }
  .ph-spectrum-legend-row.is-failure { margin-top: 0; padding-top: 7px; border-top: 0; }
  .ph-home-search { grid-template-columns: 1fr; gap: 16px; }
  .ph-home-search-copy h1 { max-width: none; }
  .ph-evidence-row { grid-template-columns: minmax(0, 1fr) minmax(132px, max-content); }
  .ph-leader-columns,
  .ph-leader-row { grid-template-columns: 28px minmax(180px, 1fr) minmax(90px, .38fr) minmax(90px, .38fr) minmax(150px, .7fr); }
  .ph-utilization-list { grid-template-columns: 1fr; }
  .ph-utilization-row { border-right: 0; }
  .ph-utilization-row p { min-height: 0; }
  .ph-home-open { grid-template-columns: 1fr 1fr; }
  .ph-home-open a { grid-column: 1 / -1; }
  .ph-search-supported { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .ph-insight { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .ph-insight h3 { max-width: none; }
  .ph-insight-actions { align-items: flex-start; flex-direction: column; gap: 9px; }
  .ph-insight-coverage { margin-left: 0; }
}

@media (max-width: 640px) {
  .ph-home-page { width: min(100% - 24px, 1280px); padding-top: 24px; }
  .ph-spectrum-section { margin-bottom: 36px; }
  .ph-spectrum-head,
  .ph-home-deferred-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ph-spectrum-instruction,
  .ph-home-deferred-heading > span { text-align: left; }
  .ph-spectrum-layout { padding: 15px 14px 14px; gap: 18px; }
  .ph-spectrum-chart { grid-template-columns: repeat(var(--ph-column-count), 9px); width: calc(var(--ph-column-count) * 12px); }
  .ph-spectrum-axis { width: calc(var(--ph-column-count) * 12px); }
  .ph-spectrum-tooltip { display: none; }
  .ph-spectrum-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .ph-spectrum-legend-title,
  .ph-spectrum-provenance { grid-column: 1 / -1; }
  .ph-home-search { gap: 12px; margin-bottom: 22px; padding: 17px 0 19px; }
  .ph-home-search-copy h1 { font-size: 28px; }
  .ph-home-search-copy p { margin-top: 5px; font-size: 13px; }
  .ph-home-search .ph-search { align-items: center; flex-wrap: nowrap; padding: 7px 7px 7px 12px; }
  .ph-home-search .ph-search-icon { margin: 0; }
  .ph-home-search .ph-search input { min-width: 0; }
  .ph-home-search .ph-search-submit { display: block; width: auto; min-height: 36px; flex: 0 0 auto; }
  .ph-home-search .ph-tryline { flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .ph-home-search .ph-tryline::-webkit-scrollbar { display: none; }
  .ph-home-search .ph-tryline .label { width: auto; flex: 0 0 auto; align-self: center; }
  .ph-home-search .ph-trychip { min-height: 34px; flex: 0 0 auto; padding: 4px 10px; white-space: nowrap; }
  .ph-inline-state { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ph-home-deferred > .ph-inline-state,
  .ph-evidence-status-slot > .ph-inline-state { align-items: baseline; flex-direction: row; gap: 7px; }
  .ph-insight-zero { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .ph-insight-zero > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ph-insight-zero strong { white-space: normal; }
  .ph-insight-zero-result { justify-self: start; }
  .ph-insight-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-insight-check { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--ph-border); }
  .ph-insight-check:nth-last-child(-n+2) { border-bottom: 0; }
  .ph-insight-recent { align-items: flex-start; flex-direction: column; gap: 3px; }
  .ph-insight-recent small { margin-left: 0; }
  .ph-insight-zero .ph-inline-retry { justify-self: start; }
  .ph-insight { padding: 18px 0 20px; }
  .ph-evidence-subject { grid-template-columns: 1fr; gap: 4px; }
  .ph-ttl-columns { grid-template-columns: minmax(0, 1fr) minmax(132px, max-content); }
  .ph-evidence-row { grid-template-columns: minmax(0, 1fr) minmax(132px, max-content); gap: 8px 12px; padding: 11px 0; }
  .ph-evidence-row-measure strong { font-size: 14px; }
  .ph-leader-columns { display: none; }
  .ph-leader-row { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px 10px; }
  .ph-leader-measure { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .ph-leader-failure { grid-column: 3; grid-row: 2; }
  .ph-leader-context { grid-column: 2; grid-row: 2; }
  .ph-leader-identity code,
  .ph-evidence-row code { overflow-wrap: anywhere; }
  .ph-utilization-row { padding: 14px 0; }
  .ph-home-open { grid-template-columns: 1fr; gap: 18px; }
  .ph-home-open a { grid-column: auto; }
  .ph-search-unsupported { width: min(100% - 24px, 1040px); padding: 48px 0 64px; }
  .ph-search-unsupported-intro h1 { font-size: 30px; }
  .ph-search-retry > div { align-items: stretch; flex-direction: column; }
  .ph-search-retry button { min-height: 44px; }
}


/* === v2 home styles === */
:root {
  --v2-bg: #f6f2ec;
  --v2-bg-2: #f1ebe2;
  --v2-surface: #fffdf9;
  --v2-surface-soft: rgba(255,255,255,.58);
  --v2-ink: #2a2940;
  --v2-ink-2: #555061;
  --v2-muted: #6d6b85;
  --v2-subtle: #9c94a3;
  --v2-rule: #d8d2c5;
  --v2-rule-soft: #e7e1d7;
  --v2-green: #62a86f;
  --v2-teal: #4fb8c4;
  --v2-violet: #8a6ec2;
  --v2-orange: #e28565;
  --v2-gold: #c7a85a;
  --v2-blue: #5d88d8;
  --v2-classic: #b8ab84;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--v2-bg);
  color: var(--v2-ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.v2-home-page { min-height: 100vh; background: var(--v2-bg); }
.v2-home-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.v2-home-grow { flex: 1; }
.v2-home-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  min-height: 72px; padding: 0 4px;
  border-bottom: 1px solid var(--v2-rule);
  background: rgba(246,242,236,.86);
  backdrop-filter: blur(10px);
}
.v2-home-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 20px;
  letter-spacing: -.01em;
}
.v2-home-brand-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: conic-gradient(from 180deg, var(--v2-teal), var(--v2-blue), var(--v2-violet), var(--v2-orange), var(--v2-gold), var(--v2-teal));
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.v2-home-nav { display: flex; gap: 28px; align-items: center; }
.v2-home-nav a { color: var(--v2-muted); font-size: 14px; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.v2-home-nav a:hover, .v2-home-nav a.is-active { color: var(--v2-ink); border-color: var(--v2-ink); }
.v2-network-select-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px 0 12px; border-radius: 999px;
  border: 1px solid var(--v2-rule); background: var(--v2-surface);
}
.v2-network-select-label {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-subtle);
}
.v2-network-select {
  height: 28px; padding: 0 24px 0 0; border: 0; outline: 0; appearance: none;
  background: transparent; color: var(--v2-ink); font-size: 12px; font-weight: 500;
}
.v2-home-status-wrap { display: flex; align-items: center; gap: 12px; }
.v2-home-status {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px;
  border: 1px solid var(--v2-rule); border-radius: 999px;
  background: var(--v2-surface); color: var(--v2-muted);
}
.v2-home-status-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--v2-green); position: relative;
}
.v2-home-status-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 999px; border: 1px solid rgba(98,168,111,.45); animation: v2-ping 2.2s ease-out infinite;
}
@keyframes v2-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.v2-home-status-ledger { letter-spacing: .08em; font-size: 11px; text-transform: uppercase; color: var(--v2-subtle); }
.v2-home-status-value {
  font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 500; color: var(--v2-ink); letter-spacing: -.01em;
}
.v2-home-status-btn {
  width: 32px; height: 32px; border: 1px solid var(--v2-rule); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v2-surface); color: var(--v2-muted);
}
.v2-home-status-btn:hover { color: var(--v2-ink); }
.v2-home-main { padding: 0 48px 104px; }
.v2-home-section { padding: 52px 0; }
.v2-hero { max-width: 1040px; padding-top: 56px; }
.v2-role-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.v2-role-question, .v2-eyebrow {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--v2-muted); font-size: 13px;
}
.v2-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.v2-hero-chip {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--v2-rule); background: var(--v2-surface);
  font-size: 13px; color: var(--v2-ink-2); transition: all .15s ease;
}
.v2-hero-chip:hover { color: var(--v2-ink); border-color: var(--v2-muted); }
.v2-hero-chip.is-active { background: var(--v2-ink); color: var(--v2-bg); border-color: var(--v2-ink); }
.v2-hero-headline {
  margin: 0 0 18px; max-width: 1040px;
  font-family: 'Fraunces', Georgia, serif; font-size: 64px; line-height: 1.08; font-weight: 400;
  letter-spacing: -0.025em; color: var(--v2-ink);
}
.v2-hero-headline em { font-style: italic; }
.v2-hero-headline .is-green { color: var(--v2-green); }
.v2-hero-body { max-width: 760px; font-size: 18px; line-height: 1.5; color: var(--v2-ink-2); }
.v2-linkish { color: var(--v2-ink); border-bottom: 1px solid var(--v2-rule); }
.v2-prompt-wrap { max-width: 900px; position: relative; }
.v2-prompt-label { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--v2-muted); font-size: 15px; margin-bottom: 10px; }
.v2-prompt-box {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--v2-rule);
  background: var(--v2-surface); transition: border-color .15s ease;
}
.v2-prompt-box:focus-within { border-color: var(--v2-muted); }
.v2-prompt-icon { color: var(--v2-muted); display: inline-flex; align-items: center; }
.v2-prompt-input { flex: 1; border: 0; background: transparent; outline: none; color: var(--v2-ink); font-size: 17px; }
.v2-prompt-input::placeholder { color: var(--v2-subtle); font-style: italic; }
.v2-kbd {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--v2-subtle);
  border: 1px solid var(--v2-rule); border-radius: 5px; padding: 3px 7px;
}
.v2-prompt-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v2-prompt-hint {
  font-size: 12.5px; color: var(--v2-muted); padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.v2-prompt-hint::before { content: '“'; margin-right: 4px; color: var(--v2-subtle); }
.v2-prompt-hint::after { content: '”'; margin-left: 4px; color: var(--v2-subtle); }
.v2-prompt-hint:hover { color: var(--v2-ink); border-color: var(--v2-rule); }
.v2-prompt-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
}
.v2-suggest-panel {
  width: 100%; min-width: 0; max-width: 100%; overflow: hidden; background: var(--v2-surface); border: 1px solid var(--v2-rule); border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08); padding: 6px;
}
.v2-suggest-row, .v2-suggest-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px; border-radius: 10px; color: var(--v2-ink); text-decoration: none;
}
.v2-suggest-row > span { min-width: 0; }
.v2-suggest-row:hover, .v2-suggest-footer:hover { background: var(--v2-bg-2); }
.v2-suggest-row b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.v2-suggest-row small { display: block; margin-top: 2px; color: var(--v2-muted); font-size: 12px; overflow-wrap: anywhere; }
.v2-suggest-row em, .v2-suggest-row strong {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-style: normal; letter-spacing: .08em; text-transform: uppercase;
  flex: 0 0 auto; color: var(--v2-muted); border: 1px solid var(--v2-rule); border-radius: 999px; padding: 3px 7px;
}
.v2-suggest-evidence-line { display: flex !important; flex-wrap: wrap; gap: 4px 12px; }
.v2-suggest-evidence-line span { position: relative; }
.v2-suggest-evidence-line span + span::before { content: '·'; position: absolute; left: -8px; color: var(--v2-subtle); }
.v2-suggest-row.primary { background: color-mix(in srgb, var(--v2-emerald) 8%, var(--v2-surface)); }
.v2-suggest-row.primary strong { color: var(--v2-emerald); border-color: color-mix(in srgb, var(--v2-emerald) 35%, var(--v2-rule)); }
.v2-suggest-state {
  margin: 5px 6px; padding: 9px 10px; border: 1px solid var(--v2-rule); border-radius: 8px;
  background: var(--v2-bg-2); color: var(--v2-ink-2);
}
.v2-suggest-state b { display: block; font-size: 12px; font-weight: 600; }
.v2-suggest-state small { display: block; margin-top: 1px; color: var(--v2-muted); font-size: 11px; line-height: 1.45; }
.v2-suggest-state.unavailable { border-color: color-mix(in srgb, var(--v2-orange) 36%, var(--v2-rule)); background: color-mix(in srgb, var(--v2-orange) 7%, var(--v2-surface)); }
.v2-suggest-state.partial,
.v2-suggest-state.more { border-color: color-mix(in srgb, var(--v2-gold) 40%, var(--v2-rule)); background: color-mix(in srgb, var(--v2-gold) 7%, var(--v2-surface)); }
.v2-suggest-provenance {
  padding: 7px 14px 4px; color: var(--v2-muted); font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; line-height: 1.4;
}
.v2-suggest-warning { padding: 4px 14px 7px; color: var(--v2-muted); font-size: 11px; line-height: 1.4; }
.v2-suggest-footer { color: var(--v2-muted); font-size: 12.5px; justify-content: center; border-top: 1px solid var(--v2-rule-soft); border-radius: 0; margin-top: 4px; }
.v2-prompt-answer { padding: 18px 22px; border-bottom: 1px solid var(--v2-rule-soft); }
.v2-prompt-answer-label { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 13px; color: var(--v2-muted); margin-bottom: 6px; }
.v2-prompt-answer-body { font-size: 17px; line-height: 1.45; color: var(--v2-ink); }
.v2-prompt-answer-meta { margin-top: 8px; font-size: 12px; color: var(--v2-muted); }
.v2-prompt-result-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 22px;
}
.v2-prompt-result-row:hover { background: var(--v2-bg-2); }
.v2-prompt-result-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--v2-muted); padding: 2px 6px;
  border: 1px solid var(--v2-rule); border-radius: 4px; text-transform: uppercase; letter-spacing: .08em;
}
.v2-prompt-result-sub { margin-top: 1px; font-size: 12px; color: var(--v2-muted); }
.v2-alert {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: start;
  padding: 18px 24px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--v2-gold) 35%, var(--v2-rule));
  background: color-mix(in srgb, var(--v2-gold) 8%, var(--v2-surface));
}
.v2-alert-icon {
  width: 28px; height: 28px; border-radius: 999px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--v2-gold); background: color-mix(in srgb, var(--v2-gold) 18%, transparent);
}
.v2-alert-title {
  font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 500; color: var(--v2-ink); margin-bottom: 3px;
}
.v2-alert-body { font-size: 14.5px; line-height: 1.55; color: var(--v2-ink); }
.v2-alert-meta { margin-top: 4px; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 13.5px; color: var(--v2-ink-2); }
.v2-alert-cta { align-self: center; font-size: 13px; color: var(--v2-ink); border-bottom: 1px solid rgba(42,41,64,.35); }
.v2-alert-dismiss { color: var(--v2-muted); font-size: 18px; line-height: 1; }
.v2-section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.v2-section-title {
  margin: 0; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 32px; font-weight: 400; letter-spacing: -.02em;
}
.v2-section-copy { margin-left: auto; max-width: 380px; color: var(--v2-muted); font-size: 14px; line-height: 1.5; }
.v2-filter-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.v2-filter-left, .v2-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v2-filter-chip {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--v2-rule);
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--v2-muted); font-size: 13px;
}
.v2-filter-chip.is-active { background: var(--v2-ink); border-color: var(--v2-ink); color: #fff; }
.v2-filter-chip-dot { width: 7px; height: 7px; border-radius: 999px; }
.v2-filter-note {
  display: flex; align-items: center; gap: 8px; color: var(--v2-muted); font-size: 13px;
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
}
.v2-filter-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--v2-green); box-shadow: 0 0 0 3px rgba(98,168,111,.16);
}
.v2-ledger-list { border-top: 1px solid var(--v2-rule-soft); }
.v2-ledger-row {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--v2-rule-soft);
}
.v2-ledger-row.is-new, .v2-feed-card.is-new { animation: v2-slide-in .55s ease-out both; }
@keyframes v2-slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.v2-ledger-row.is-fresh, .v2-feed-card.is-fresh {
  background: color-mix(in srgb, var(--v2-green) 10%, var(--v2-bg-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-green) 22%, transparent);
  transition: background 1.8s ease, box-shadow 1.8s ease;
}
html[data-theme="dark"] .v2-ledger-row.is-fresh,
html[data-theme="dark"] .v2-feed-card.is-fresh {
  background: color-mix(in srgb, var(--v2-green) 12%, var(--v2-bg-2));
}
.v2-ledger-row:hover {
  background: var(--v2-bg-2); margin: 0 -24px; padding-left: 24px; padding-right: 24px; border-radius: 12px; border-bottom-color: transparent;
}
.v2-ledger-left-label {
  display: block; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 11px; color: var(--v2-muted); margin-bottom: 2px;
}
.v2-ledger-left-value {
  font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 1.1; letter-spacing: -.015em;
}
.v2-ledger-main-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 10px; }
.v2-ledger-main-count { font-family: 'Fraunces', Georgia, serif; font-size: 26px; line-height: 1; }
.v2-ledger-main-label { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--v2-muted); font-size: 13px; }
.v2-ledger-main-meta { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 13px; color: var(--v2-muted); }
.v2-ledger-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-ledger-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; background: rgba(255,255,255,.45);
}
.v2-ledger-chip-dot { width: 6px; height: 6px; border-radius: 999px; }
.v2-ledger-stats { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.v2-inline-stat {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--v2-muted);
}
.v2-inline-bar { width: 56px; height: 3px; border-radius: 2px; background: rgba(0,0,0,.06); overflow: hidden; }
.v2-inline-bar-fill { display: block; height: 100%; border-radius: 2px; }
.v2-ledger-side {
  text-align: right; white-space: nowrap; color: var(--v2-muted); font-size: 13px;
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
}
.v2-ledger-side div:last-child { font-family: 'IBM Plex Mono', monospace; font-style: normal; font-size: 11px; color: var(--v2-subtle); margin-top: 3px; }
.v2-cards-2x2, .v2-simple-cards, .v2-util-grid {
  padding: 0; border: 1px solid var(--v2-rule); border-radius: 16px; background: var(--v2-surface);
}
.v2-cards-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.v2-simple-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.v2-util-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.v2-card, .v2-simple-card {
  padding: 20px 22px; min-height: 180px; background: transparent; border-right: 1px solid var(--v2-rule-soft); border-bottom: 1px solid var(--v2-rule-soft);
}
.v2-cards-2x2 > :nth-child(2n), .v2-simple-cards > :nth-child(2n), .v2-util-grid > :last-child { border-right: 0; }
.v2-cards-2x2 > :nth-last-child(-n+2) { border-bottom: 0; }
.v2-simple-cards > :nth-last-child(-n+2) { border-bottom: 0; }
.v2-util-grid > * { min-height: 160px; }
.v2-util-grid > :last-child { border-bottom: 0; }
.v2-card-kicker { color: var(--v2-muted); font-size: 12px; margin-bottom: 10px; }
.v2-card-value, .v2-simple-card-value {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -.015em; color: var(--v2-ink);
}
.v2-attention-card .v2-card-value { font-size: 28px; line-height: 1.05; margin: 12px 0 4px; }
.v2-card-value.is-bad { color: var(--v2-orange); }
.v2-card-value.is-warn { color: var(--v2-gold); }
.v2-card-value.is-green { color: var(--v2-green); }
.v2-card-body { color: var(--v2-ink-2); font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.v2-attention-card.is-bad { background: color-mix(in srgb, var(--v2-orange) 6%, transparent); }
.v2-attention-card.is-warn { background: color-mix(in srgb, var(--v2-gold) 5%, transparent); }
.v2-card-rule { height: 5px; border-radius: 999px; background: rgba(0,0,0,.05); overflow: hidden; margin: 12px 0 10px; }
.v2-card-rule > span { display: block; height: 100%; }
.v2-card-cta { font-size: 13px; color: var(--v2-ink); border-bottom: 1px solid var(--v2-rule); width: fit-content; }
.v2-simple-card-label {
  color: var(--v2-muted); font-size: 12px; margin-bottom: 6px; font-family: 'Fraunces', Georgia, serif; font-style: italic;
}
.v2-simple-card-value { font-size: 30px; line-height: 1.1; }
.v2-simple-card-value small { font-size: 13px; color: var(--v2-muted); font-style: italic; font-weight: 400; margin-left: 6px; }
.v2-leader-entity {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--v2-ink); font-size: 14px; font-weight: 500;
}
.v2-leader-entity-mark {
  width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
}
.v2-leader-entity-mark.is-swap { background: var(--v2-teal); }
.v2-leader-entity-mark.is-call { background: var(--v2-violet); }
.v2-leader-entity-mark.is-deploy { background: var(--v2-gold); }
.v2-leader-entity-mark.is-agent { background: var(--v2-orange); }
.v2-simple-card-body {
  margin-top: 4px; color: var(--v2-ink-2); font-size: 13px; line-height: 1.5; font-family: 'Fraunces', Georgia, serif; font-style: italic;
}
.v2-util-card .v2-simple-card-label { font-size: 13px; }
.v2-util-card .v2-simple-card-value { font-size: 44px; letter-spacing: -.03em; }
.v2-util-card .v2-simple-card-value.is-warn { color: var(--v2-gold); }
.v2-util-card .v2-simple-card-body { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-style: normal; font-size: 12.5px; }
.v2-footer-meta {
  margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--v2-rule);
  display: flex; flex-wrap: wrap; gap: 40px; color: var(--v2-muted); font-size: 13px;
}
.v2-footer-meta b { color: var(--v2-ink); font-weight: 500; }
.v2-footer-meta a { color: var(--v2-ink); border-bottom: 1px solid var(--v2-rule); }
.v2-ledger-row.is-expanded {
  background: var(--v2-bg-2); margin: 0 -24px; padding-left: 24px; padding-right: 24px; border-radius: 12px; border-bottom-color: transparent;
}
.v2-ledger-detail {
  margin: 0 -24px 6px; padding: 18px 24px; border-left: 3px solid var(--v2-muted);
  border-bottom: 1px solid var(--v2-rule-soft); background: var(--v2-bg-2);
}
.v2-ledger-detail-head {
  margin-bottom: 10px; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 13px; color: var(--v2-muted);
}
.v2-ledger-sample-row {
  display: grid; grid-template-columns: 22px 110px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--v2-rule-soft); font-size: 13.5px;
}
.v2-ledger-sample-row:last-of-type { border-bottom: 0; }
.v2-ledger-sample-glyph {
  width: 20px; height: 20px; border-radius: 6px; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif; font-size: 11px;
}
.v2-ledger-sample-kind { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--v2-muted); text-transform: uppercase; letter-spacing: .08em; }
.v2-ledger-sample-text { color: var(--v2-ink-2); }
.v2-ledger-sample-hash { color: var(--v2-subtle); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; }
.v2-ledger-detail-link {
  display: inline-block; margin-top: 12px; font-family: 'Fraunces', Georgia, serif; font-style: italic; border-bottom: 1px dashed var(--v2-rule);
}
.v2-feed-cards { border-top: 1px solid var(--v2-rule-soft); }
.v2-feed-card {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 20px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--v2-rule-soft);
}
.v2-feed-card:hover {
  background: var(--v2-bg-2); margin: 0 -24px; padding-left: 24px; padding-right: 24px; border-radius: 12px; border-bottom-color: transparent;
}
.v2-feed-card-mark {
  width: 48px; height: 48px; border-radius: 14px; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif; font-size: 20px;
}
.v2-feed-card-headline { font-size: 18px; line-height: 1.4; color: var(--v2-ink); }
.v2-feed-card-headline b { font-weight: 500; }
.v2-feed-card-context { margin-top: 6px; color: var(--v2-muted); font-size: 13.5px; line-height: 1.5; }
.v2-feed-card-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; align-items: center; }
.v2-feed-card-tag { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.45); color: var(--v2-ink-2); font-size: 11px; }
.v2-feed-card-entity { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--v2-muted); }
.v2-feed-card-hash { color: var(--v2-subtle); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.v2-feed-card-age { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--v2-muted); font-size: 13px; white-space: nowrap; margin-top: 4px; }
.v2-tweaks-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 10px 14px; border-radius: 999px;
  background: var(--v2-surface); border: 1px solid var(--v2-rule); color: var(--v2-ink); box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.v2-tweaks-panel {
  position: fixed; right: 20px; bottom: 68px; z-index: 50; width: 260px; display: none;
  padding: 16px 18px; border-radius: 14px; background: var(--v2-surface); border: 1px solid var(--v2-rule); box-shadow: 0 30px 60px rgba(0,0,0,.16);
}
.v2-tweaks-panel.is-open { display: block; }
.v2-tweaks-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: 'Fraunces', Georgia, serif; font-size: 15px;
}
.v2-tweaks-head span { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: var(--v2-muted); text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--v2-rule); border-radius: 4px; padding: 2px 6px; }
.v2-tweak-row { margin: 12px 0; }
.v2-tweak-label { margin-bottom: 6px; font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--v2-muted); font-size: 12px; }
.v2-tweak-seg { display: flex; border: 1px solid var(--v2-rule); border-radius: 10px; overflow: hidden; }
.v2-tweak-seg button { flex: 1; padding: 7px 8px; color: var(--v2-muted); font-size: 12px; }
.v2-tweak-seg button.is-active { background: var(--v2-ink); color: var(--v2-bg); }
body[data-density="balanced"] .v2-feed-card { padding-top: 14px; padding-bottom: 14px; }
body[data-density="balanced"] .v2-ledger-row { padding-top: 14px; padding-bottom: 14px; }
html[data-theme="dark"] {
  --v2-bg: #1d1b26;
  --v2-bg-2: #24212d;
  --v2-surface: #262430;
  --v2-surface-soft: rgba(38,36,48,.72);
  --v2-ink: #f3f0e8;
  --v2-ink-2: #d6d0dd;
  --v2-muted: #aea5b7;
  --v2-subtle: #8a8098;
  --v2-rule: #3a3545;
  --v2-rule-soft: #322d3d;
  --v2-classic: #8f845d;
}
html[data-theme="dark"] .v2-home-topbar { background: rgba(29,27,38,.84); }
html[data-theme="dark"] .v2-ledger-chip,
html[data-theme="dark"] .v2-feed-card-tag,
html[data-theme="dark"] .v2-home-status,
html[data-theme="dark"] .v2-home-status-btn,
html[data-theme="dark"] .v2-hero-chip,
html[data-theme="dark"] .v2-prompt-box,
html[data-theme="dark"] .v2-tweaks-panel,
html[data-theme="dark"] .v2-tweaks-fab { background: var(--v2-surface); }
html[data-theme="dark"] .v2-inline-bar,
html[data-theme="dark"] .v2-card-rule { background: rgba(255,255,255,.08); }
@media (max-width: 1000px) {
  .v2-home-main { padding: 0 12px 80px; }
  .v2-section-head { flex-direction: column; align-items: flex-start; }
  .v2-section-copy { margin-left: 0; max-width: 100%; }
  .v2-ledger-row { grid-template-columns: 1fr; }
  .v2-ledger-side { text-align: left; }
  .v2-cards-2x2, .v2-simple-cards, .v2-util-grid { grid-template-columns: 1fr; }
  .v2-card, .v2-simple-card { border-right: 0; }
  .v2-cards-2x2 > *, .v2-simple-cards > *, .v2-util-grid > * { border-bottom: 1px solid var(--v2-rule-soft); }
  .v2-cards-2x2 > :last-child, .v2-simple-cards > :last-child, .v2-util-grid > :last-child { border-bottom: 0; }
}
@media (max-width: 700px) {
  .v2-home-shell { width: min(100%, calc(100% - 24px)); }
  .v2-home-topbar { min-height: auto; padding: 16px 0; flex-direction: column; align-items: flex-start; }
  .v2-home-nav { gap: 16px; flex-wrap: wrap; }
  .v2-home-main { padding: 0 0 48px; }
  .v2-hero { padding-top: 32px; }
  .v2-hero-headline { font-size: 42px; }
  .v2-hero-body { font-size: 16px; }
  .v2-alert { grid-template-columns: 1fr; }
}


/* ---- Prism Home Humanized Audited mock styles ---- */
:root {
  --ph-bg: oklch(98.4% 0.004 160);
  --ph-surf: oklch(99.4% 0.002 160);
  --ph-card: var(--ph-surf);
  --ph-cream: oklch(96.5% 0.007 160);
  --ph-panel: oklch(96.7% 0.006 160);
  --ph-border: oklch(91.5% 0.007 160);
  --ph-border-strong: oklch(82.5% 0.009 160);
  --ph-text: oklch(20% 0.009 160);
  --ph-text-2: oklch(45% 0.012 160);
  --ph-text-3: oklch(63% 0.01 160);
  --ph-accent: oklch(91% 0.075 160);
  --ph-accent-ink: oklch(49% 0.135 160);
  --ph-teal: oklch(54% 0.125 160);
  --ph-cyan: oklch(65% 0.13 215);
  --ph-violet: oklch(52% 0.18 292);
  --ph-amber: oklch(66% 0.145 75);
  --ph-green: oklch(52% 0.13 155);
  --ph-red: oklch(57% 0.19 25);
  --ph-other: oklch(70% 0.012 160);
  --ph-ff-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --ph-ff-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --ph-ff-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: var(--ph-ff-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
.mono { font-family: var(--ph-ff-mono); }

/* ───── TopBar ───── */
.ph-top { background: var(--ph-surf); border-bottom: 1px solid var(--ph-border); position: sticky; top: 0; z-index: 30; }
.ph-top-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; gap: 28px;
}
.ph-brand { display: flex; align-items: center; color: var(--ph-text); }
.ph-brand-prism { min-width: 74px; }
.ph-brand-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.ph-prism-band { display: flex; width: 54px; height: 4px; overflow: hidden; border-radius: 1px; }
.ph-prism-band-seg { min-width: 0; }
.ph-prism-band-seg.teal { background: var(--ph-green); flex: 68 0 0; }
.ph-prism-band-seg.violet { background: var(--ph-violet); flex: 86 0 0; }
.ph-prism-band-seg.coral { background: var(--ph-red); flex: 39 0 0; }
.ph-prism-band-seg.olive { background: var(--ph-amber); flex: 47 0 0; }
.ph-prism-band-seg.blue { background: var(--ph-cyan); flex: 23 0 0; }
.ph-mark { width: 22px; height: 22px; color: var(--ph-accent-ink); display: inline-flex; }
.ph-name { font-family: var(--ph-ff-serif); font-size: 21px; font-weight: 600; letter-spacing: -0.025em; color: var(--ph-text); }
.ph-nav { display: flex; gap: 22px; }
.ph-nav a { font-size: 13.5px; color: var(--ph-text-3); font-weight: 500; }
.ph-nav a.active, .ph-nav a:hover { color: var(--ph-text); }
.ph-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ph-network-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: var(--ph-bg);
  color: var(--ph-text-2);
}
.ph-network-select .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ph-green);
  flex-shrink: 0;
}
.ph-network-select .dot.testnet { background: var(--ph-amber); }
.ph-network-select .dot.futurenet { background: var(--ph-violet); }
.ph-network-select select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ph-text-2);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  padding: 0 16px 0 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 6px) 45%, calc(100% - 2px) 45%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.ph-network-select select:focus { outline: 0; }

/* Live heartbeat — replaces the old "Ledger 52,844,201 · 2 seconds ago" indicator
   so it doesn't duplicate the first ledger card below. Throughput is the unique
   value this surface can carry. */
.ph-heartbeat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ph-text-2);
  font-family: var(--ph-ff-mono);
  letter-spacing: 0.02em;
}
.ph-heartbeat .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ph-green);
  box-shadow: 0 0 0 3px rgba(53, 122, 78, 0.16);
  animation: livepulse 2s ease-in-out infinite;
}
.ph-heartbeat .dot.is-partial,
.ph-heartbeat .dot.is-pending,
.ph-heartbeat .dot.is-demo {
  background: var(--ph-amber);
  box-shadow: 0 0 0 3px rgba(185, 132, 41, 0.16);
}
.ph-heartbeat .dot.is-unavailable {
  background: var(--ph-text-3);
  box-shadow: 0 0 0 3px rgba(109, 104, 95, 0.12);
  animation: none;
}
.ph-heartbeat .sep { color: var(--ph-border-strong); }
.ph-heartbeat b { color: var(--ph-text); font-weight: 600; }
@keyframes livepulse { 50% { opacity: 0.6; } }

.ph-net { font-size: 12px; color: var(--ph-text-2); }
.ph-signin {
  font-size: 13px; font-weight: 500; padding: 7px 14px;
  border: 1px solid var(--ph-border); border-radius: 7px;
  color: var(--ph-text-2);
}
.ph-signin:hover { border-color: var(--ph-border-strong); color: var(--ph-text); }

/* ───── Page ───── */
.ph-page { max-width: 1280px; margin: 0 auto; padding: 56px 32px 80px; }

/* ───── Hero (headline + search) ───── */
.ph-hero { margin-bottom: 48px; }
.ph-hero h1 {
  margin: 0 0 14px;
  font-family: var(--ph-ff-serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 1000px;
  color: var(--ph-text);
  text-wrap: pretty;
}
.ph-hero h1 em {
  font-style: italic;
  color: var(--ph-accent-ink);
  font-weight: 500;
}
.ph-hero h1 b { font-weight: 600; font-family: var(--ph-ff-mono); font-size: 0.92em; }

.ph-hero-sub {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ph-text-2);
  max-width: 760px;
}
.ph-hero-sub a {
  color: var(--ph-accent-ink);
  font-weight: 500;
  border-bottom: 1px dotted currentColor;
}

/* Search box — secondary CTA, visually quieter than the headline */
.ph-search-wrap { max-width: 760px; position: relative; }
.ph-search-label {
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ph-text-3);
  font-weight: 600;
  margin-bottom: 10px;
}
.ph-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--ph-surf);
  border: 1px solid var(--ph-border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(31, 27, 22, 0.02);
  transition: border-color 120ms, box-shadow 120ms;
}
.ph-search:focus-within {
  border-color: var(--ph-accent-ink);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.10);
}
.ph-search-icon { color: var(--ph-text-3); display: inline-flex; }
.ph-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--ph-ff-sans); font-size: 15px; color: var(--ph-text);
}
.ph-search input::placeholder { color: var(--ph-text-3); }
.ph-search input::-webkit-search-cancel-button { cursor: pointer; }
.ph-search-submit {
  border: 1px solid var(--ph-border-strong);
  border-radius: 7px;
  background: var(--ph-card);
  color: var(--ph-text);
  padding: 5px 10px;
  font-family: var(--ph-ff-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ph-search-submit:hover { background: var(--ph-surf); border-color: var(--ph-accent-ink); color: var(--ph-accent-ink); }
.ph-search-results {
  position: relative;
  z-index: 30;
  margin: -6px 0 14px;
}
.ph-search-results .v2-suggest-panel { background: var(--ph-card); border-color: var(--ph-border); }
.ph-search-results .v2-suggest-row,
.ph-search-results .v2-suggest-footer { color: var(--ph-text); }
.ph-search-results .v2-suggest-row:hover,
.ph-search-results .v2-suggest-footer:hover { background: var(--ph-surf); }

/* Example queries — clickable starting points, not a feature list */
.ph-tryline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px;
}
.ph-tryline .label {
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ph-text-3);
  font-weight: 600;
  margin-right: 4px;
}
.ph-trychip {
  font-size: 13px;
  padding: 5px 12px;
  background: var(--ph-cream);
  color: var(--ph-text-2);
  border-radius: 999px;
  font-style: italic;
  transition: background 120ms, color 120ms;
}
.ph-trychip:hover { background: var(--ph-accent); color: var(--ph-bg); font-style: normal; }

/* ───── Alert banner ───── */
.ph-alert {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 127, 80, 0.08);
  border: 1px solid rgba(255, 127, 80, 0.25);
  border-radius: 12px;
  margin-bottom: 56px;
}
.ph-alert-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ph-accent-ink);
  color: var(--ph-bg);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.ph-alert-body { flex: 1; }
.ph-alert-title {
  font-weight: 600;
  color: var(--ph-text);
  font-size: 14px;
  margin-bottom: 4px;
}
.ph-alert-desc {
  font-size: 13.5px;
  color: var(--ph-text-2);
  line-height: 1.5;
  margin-bottom: 6px;
}
.ph-alert-why {
  font-size: 12.5px;
  color: var(--ph-text-3);
  font-style: italic;
  margin-bottom: 10px;
}
.ph-alert-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ph-accent-ink);
}
.ph-alert-close {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-text-3);
  font-size: 18px;
  line-height: 1;
  border-radius: 4px;
}
.ph-alert-close:hover { background: rgba(31, 27, 22, 0.06); color: var(--ph-text); }

/* ───── Page sections ───── */
.ph-sec { margin-bottom: 56px; }
.ph-sec-head { margin-bottom: 22px; }
.ph-sec-h {
  margin: 0 0 6px;
  font-family: var(--ph-ff-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ph-text);
}
.ph-sec-sub {
  font-size: 14px;
  color: var(--ph-text-2);
  line-height: 1.55;
  max-width: 760px;
}
.ph-sec-sub b { font-weight: 600; color: var(--ph-text); }

/* Section toolbar (under section head) — classification pills */
.ph-sec-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--ph-cream);
  border-radius: 10px;
  width: fit-content;
}
.ph-sec-pill {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ph-text-2);
  transition: background 120ms, color 120ms;
}
.ph-sec-pill:hover { color: var(--ph-text); }
.ph-sec-pill.active {
  background: var(--ph-surf);
  color: var(--ph-text);
  box-shadow: 0 1px 0 rgba(31, 27, 22, 0.04);
}

/* ───── Ledger card row ───── */
.ph-ledgers { display: grid; gap: 14px; }
.ph-ledger {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: 24px;
  align-items: center;
  transition: border-color 120ms, transform 120ms;
  cursor: pointer;
}
.ph-ledger:hover { border-color: var(--ph-border-strong); transform: translateY(-1px); }
.ph-ledger.is-new { animation: ph-ledger-new 900ms ease-out; }
@keyframes ph-ledger-new { 0% { background: rgba(255, 127, 80, 0.16); transform: translateY(-2px); } 100% { background: var(--ph-surf); transform: translateY(0); } }
.ph-ledger-id { display: flex; flex-direction: column; gap: 4px; }
.ph-ledger-num {
  font-family: var(--ph-ff-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ph-text);
  letter-spacing: -0.01em;
}
.ph-ledger-when {
  font-size: 12px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
}
.ph-ledger-mid { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph-ledger-summary {
  font-size: 14px;
  color: var(--ph-text);
  line-height: 1.45;
}
.ph-ledger-summary b { font-weight: 600; }
.ph-ledger-introducer {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ph-text-2);
	font-family: var(--ph-ff-mono);
	font-size: 12.5px;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: var(--ph-border-strong);
	text-underline-offset: 3px;
	cursor: help;
}
.ph-ledger-introducer b {
	font-weight: 600;
	color: var(--ph-text);
}
.ph-ledger-introducer-icon {
	display: inline-grid;
	place-items: center;
	width: 14px;
	height: 14px;
	border: 1px solid var(--ph-border-strong);
	border-radius: 999px;
	font-family: var(--ph-ff-sans);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	color: var(--ph-text-3);
}
.ph-ledger-introducer-tooltip {
	position: absolute;
	z-index: 20;
	left: 50%;
	bottom: calc(100% + 10px);
	width: min(320px, calc(100vw - 32px));
	padding: 10px 12px;
	border: 1px solid var(--ph-border-strong);
	border-radius: 8px;
	background: var(--ph-text);
	color: var(--ph-bg);
	box-shadow: 0 8px 24px rgba(31, 27, 22, 0.14);
	font-family: var(--ph-ff-sans);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	text-decoration: none;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 160ms;
}
.ph-ledger-introducer:hover .ph-ledger-introducer-tooltip,
.ph-ledger-introducer:focus-visible .ph-ledger-introducer-tooltip,
.ph-ledger:focus-visible .ph-ledger-introducer-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.ph-ledger-introducer:focus-visible {
	outline: 2px solid var(--ph-accent-ink);
	outline-offset: 3px;
	border-radius: 3px;
}
.ph-ledger-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-ledger-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--ph-ff-mono);
  font-weight: 500;
}
.ph-ledger-chip.swap     { background: rgba(94, 79, 168, 0.10); color: var(--ph-violet); }
.ph-ledger-chip.call     { background: rgba(94, 79, 168, 0.06); color: var(--ph-violet); }
.ph-ledger-chip.agent    { background: rgba(217, 82, 30, 0.10); color: var(--ph-accent-ink); }
.ph-ledger-chip.classic  { background: rgba(31, 78, 95, 0.10); color: var(--ph-teal); }
.ph-ledger-chip.deploy   { background: rgba(185, 132, 41, 0.10); color: var(--ph-amber); }
.ph-ledger-chip.confid   { background: rgba(74, 127, 192, 0.10); color: #4A7FC0; }
.ph-ledger-chip.account  { background: rgba(185, 132, 41, 0.10); color: var(--ph-amber); }
.ph-ledger-chip.payment  { background: rgba(31, 78, 95, 0.10); color: var(--ph-teal); }
.ph-ledger-chip.market   { background: rgba(94, 79, 168, 0.10); color: var(--ph-violet); }
.ph-ledger-chip.trustline { background: rgba(31, 78, 95, 0.07); color: var(--ph-teal); }
.ph-ledger-chip.claimable { background: rgba(74, 127, 192, 0.10); color: #4A7FC0; }
.ph-ledger-chip.sponsorship { background: rgba(217, 82, 30, 0.08); color: var(--ph-accent-ink); }
.ph-ledger-chip.soroban  { background: rgba(94, 79, 168, 0.06); color: var(--ph-violet); }
.ph-ledger-chip.other    { background: var(--ph-panel); color: var(--ph-text-2); }

/* Per-card capacity meters — small mono pair */
.ph-ledger-cap {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 130px;
  text-align: right;
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  color: var(--ph-text-3);
}
.ph-ledger-cap-row { display: flex; justify-content: space-between; gap: 10px; }
.ph-ledger-cap-row .k { letter-spacing: 0.02em; }
.ph-ledger-cap-row .v { color: var(--ph-text); font-weight: 600; }
.ph-ledger-outcomes {
  min-width: 142px;
  display: grid;
  gap: 7px;
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
}
.ph-ledger-outcomes > div { display: flex; justify-content: space-between; gap: 14px; }
.ph-ledger-outcomes .k { color: var(--ph-text-3); }
.ph-ledger-outcomes .v { font-weight: 600; color: var(--ph-text); font-variant-numeric: tabular-nums; }
.ph-ledger-outcomes .v.success { color: var(--ph-green); }
.ph-ledger-outcomes .v.failure { color: var(--ph-red); }

/* ───── Two-column grid ───── */
.ph-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ph-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ph-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) {
  .ph-grid-2, .ph-grid-3, .ph-grid-4 { grid-template-columns: 1fr; }
}

/* ───── TTL / Attention cards ───── */
.ph-attn {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.ph-attn.urgent { border-color: rgba(217, 82, 30, 0.32); background: rgba(255, 127, 80, 0.04); }
.ph-attn-name { font-size: 14px; font-weight: 600; color: var(--ph-text); }
.ph-attn-name a, .ph-active-name a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.ph-attn-name a:hover, .ph-active-name a:hover { color: var(--ph-accent-ink); }
.ph-attn-runway { font-family: var(--ph-ff-mono); font-size: 18px; color: var(--ph-text); font-weight: 600; }
.ph-attn.urgent .ph-attn-runway { color: var(--ph-accent-ink); }
.ph-attn-desc { font-size: 13px; color: var(--ph-text-2); line-height: 1.5; }
.ph-attn-cta { font-size: 12.5px; color: var(--ph-accent-ink); font-weight: 500; margin-top: 4px; }
.ph-attn-cta.calm { color: var(--ph-text-3); }

/* ───── Active contracts cards — no rank-podium ───── */
.ph-active {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.ph-active-head { display: flex; align-items: center; gap: 10px; }
.ph-active-logo {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ph-cream);
  color: var(--ph-text);
  border-radius: 7px;
  font-family: var(--ph-ff-serif);
  font-weight: 600;
  font-size: 15px;
}
.ph-active.growing .ph-active-logo { background: rgba(53, 122, 78, 0.12); color: var(--ph-green); }
.ph-active-name { font-size: 14.5px; font-weight: 600; color: var(--ph-text); }
.ph-active-num {
  font-family: var(--ph-ff-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--ph-text);
  letter-spacing: -0.015em;
  line-height: 1;
}
.ph-active-num-unit { font-size: 12.5px; color: var(--ph-text-3); font-weight: 500; margin-left: 4px; font-family: var(--ph-ff-sans); }
.ph-active-desc { font-size: 13px; color: var(--ph-text-2); line-height: 1.5; }
.ph-active-growing-tag {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ph-green);
  background: rgba(53, 122, 78, 0.10);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
  width: fit-content;
}

/* ───── Capacity gauges ───── */
.ph-gauge {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.ph-gauge-name { font-size: 14px; font-weight: 600; color: var(--ph-text); }
.ph-gauge-pct {
  font-family: var(--ph-ff-mono);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ph-text);
  line-height: 1;
}
.ph-gauge-pct.warn { color: var(--ph-amber); }
.ph-gauge-bar {
  height: 6px;
  background: var(--ph-cream);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 8px;
}
.ph-gauge-bar > span {
  display: block;
  height: 100%;
  background: var(--ph-text);
  border-radius: 3px;
}
.ph-gauge.warn .ph-gauge-bar > span { background: var(--ph-amber); }
.ph-gauge-desc { font-size: 13px; color: var(--ph-text-2); line-height: 1.5; }

/* ───── Why Prism panel — promoted from the footer strip ───── */
.ph-why {
  background: var(--ph-panel);
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 56px;
}
.ph-why-head { margin-bottom: 22px; }
.ph-why-eyebrow {
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ph-accent-ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.ph-why-h {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ph-text);
}
.ph-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .ph-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ph-why-grid { grid-template-columns: 1fr; } }
.ph-why-card { display: flex; flex-direction: column; gap: 6px; }
.ph-why-stat {
  font-family: var(--ph-ff-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ph-text);
  letter-spacing: -0.01em;
}
.ph-why-stat.serif {
  font-family: var(--ph-ff-serif);
  font-style: italic;
  font-weight: 500;
}
.ph-why-label {
  font-size: 12.5px;
  color: var(--ph-text-2);
  line-height: 1.45;
}
.ph-why-label code { background: var(--ph-cream); padding: 1px 6px; border-radius: 3px; font-size: 11.5px; }

/* ───── Audit note (page-level) ───── */
.ph-audit {
  position: fixed;
  right: 16px; bottom: 16px;
  max-width: 340px;
  background: var(--ph-text);
  color: var(--ph-bg);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.ph-audit b { font-weight: 600; color: var(--ph-bg); }
.ph-audit-close {
  position: absolute; top: 6px; right: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 14px; line-height: 1;
  background: none; border: none; cursor: pointer;
}
.ph-audit-close:hover { color: #fff; }
.ph-audit summary { list-style: none; cursor: pointer; font-weight: 600; padding-right: 16px; }
.ph-audit summary::-webkit-details-marker { display: none; }
.ph-audit ul { margin: 8px 0 0; padding-left: 18px; }
.ph-audit li { margin-bottom: 4px; color: rgba(255,255,255,0.85); font-size: 11.5px; }
/* ───── V2 home polish pass: accessibility, mobile reflow, reduced motion ───── */
.ph-top a:focus-visible,
.ph-top button:focus-visible,
.ph-top select:focus-visible,
.ph-page a:focus-visible,
.ph-page button:focus-visible,
.ph-page input:focus-visible {
  outline: 2px solid var(--ph-accent-ink);
  outline-offset: 3px;
}

.ph-nav a,
.ph-signin,
.ph-trychip,
.ph-alert-close,
.ph-sec-pill,
.ph-attn-cta {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.ph-ledger:focus-visible {
  outline: 2px solid var(--ph-accent-ink);
  outline-offset: 4px;
  border-color: var(--ph-accent-ink);
}

.ph-alert-cta,
.ph-attn-cta {
  width: fit-content;
}

@media (max-width: 1080px) {
  .ph-top-inner {
    padding: 14px 24px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .ph-right {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 10px;
  }
  .ph-heartbeat {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .ph-page {
    padding: 48px 32px 72px;
  }
  .ph-ledger {
    grid-template-columns: minmax(128px, 160px) 1fr;
  }
  .ph-ledger-cap, .ph-ledger-outcomes {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--ph-border);
  }
}

@media (max-width: 720px) {
  .ph-top {
    position: static;
  }
  .ph-top-inner {
    padding: 14px 16px;
    gap: 12px;
  }
  .ph-brand {
    width: 100%;
  }
  .ph-nav {
    order: 3;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .ph-nav::-webkit-scrollbar { display: none; }
  .ph-nav a {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--ph-bg);
    white-space: nowrap;
  }
  .ph-nav a.active,
  .ph-nav a:hover {
    background: var(--ph-cream);
  }
  .ph-right {
    order: 2;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .ph-heartbeat {
    flex: 1 1 100%;
    border-radius: 10px;
    padding: 8px 10px;
  }
  .ph-network-select {
    min-height: 44px;
    padding-inline: 14px 12px;
  }
  .ph-page {
    padding: 34px 16px 56px;
  }
  .ph-hero {
    margin-bottom: 36px;
  }
  .ph-hero h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.16;
  }
  .ph-hero-sub {
    font-size: 15px;
  }
  .ph-search {
    padding: 13px 14px;
  }
  .ph-search-submit {
    display: none;
  }
  .ph-search-results {
    margin-top: -6px;
  }
  .ph-tryline {
    align-items: stretch;
  }
  .ph-tryline .label {
    width: 100%;
  }
  .ph-trychip,
  .ph-sec-pill {
    min-height: 44px;
  }
  .ph-alert {
    margin-bottom: 42px;
    padding: 16px;
  }
  .ph-alert-close {
    width: 44px;
    height: 44px;
    margin: -10px -10px 0 0;
  }
  .ph-sec {
    margin-bottom: 44px;
  }
  .ph-sec-h {
    font-size: 24px;
  }
  .ph-sec-toolbar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .ph-sec-toolbar::-webkit-scrollbar { display: none; }
  .ph-sec-pill {
    white-space: nowrap;
  }
  .ph-ledgers {
    gap: 12px;
  }
  .ph-ledger {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .ph-ledger-num {
    font-size: 19px;
  }
  .ph-ledger-cap, .ph-ledger-outcomes {
    grid-template-columns: 1fr;
  }
  .ph-grid-2,
  .ph-grid-3,
  .ph-grid-4,
  .ph-why-grid {
    grid-template-columns: 1fr;
  }
  .ph-attn,
  .ph-active,
  .ph-gauge {
    padding: 18px;
  }
  .ph-attn-cta {
    min-height: 44px;
  }
  .ph-why {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 720px) {
  .ph-alert-cta,
  .ph-hero-sub a,
  .ph-why-label a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .ph-brand { min-height: 44px; }
}

/* ---- V2 Explore ---- */
.px-ex-app {
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 88px;
}
.px-ex-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ph-text-3);
}
.px-ex-crumbs a:hover { color: var(--ph-text); }
.px-ex-crumbs strong { color: var(--ph-text-2); font-weight: 600; }
.px-ex-control {
  border: 1px solid var(--ph-border);
  border-radius: 18px;
  background: var(--ph-surf);
  padding: 26px 30px 24px;
  box-shadow: 0 1px 0 rgba(31,27,22,.03);
}
.px-ex-summary {
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ph-border);
}
.px-ex-summary-kicker {
  margin-bottom: 10px;
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.px-ex-summary h1 {
  margin: 0 0 16px;
  max-width: 980px;
  font-family: var(--ph-ff-serif);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--ph-text);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.px-ex-summary h1 b { font-weight: 600; }
.px-ex-summary h1 .scope { color: var(--ph-text); }
.px-ex-summary h1 .topic { color: var(--ph-teal); }
.px-ex-summary h1 .fn {
  font-family: var(--ph-ff-mono);
  font-size: .82em;
  color: var(--ph-violet);
  padding: 2px 7px;
  border: 1px solid rgba(94,79,168,.22);
  border-radius: 6px;
  background: rgba(94,79,168,.07);
}
.px-ex-summary h1 .asset {
  font-family: var(--ph-ff-mono);
  font-size: .9em;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--ph-cream);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.px-ex-summary h1 .time, .px-ex-summary h1 .status { color: var(--ph-amber); }
.px-ex-summary-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ph-text-2);
  font-size: 13px;
}
.px-ex-summary-meta b { color: var(--ph-text); font-family: var(--ph-ff-mono); }
.px-ex-clear {
  margin-left: auto;
  color: var(--ph-accent-ink);
  font-weight: 600;
}
.px-ex-chips { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.px-ex-chip {
  display: inline-flex; max-width: 100%; min-width: 0; align-items: center; gap: 7px; min-height: 28px; padding: 5px 9px;
  border: 1px solid var(--ph-border); border-radius: 999px; background: var(--ph-bg);
  color: var(--ph-text); font-size: 12px; text-decoration: none;
}
.px-ex-chip-key { flex: 0 0 auto; font-family: var(--ph-ff-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ph-text-3); }
.px-ex-chip-value { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.px-ex-chip b { color: var(--ph-text-3); font-weight: 600; }
.px-ex-chip:hover { border-color: var(--ph-accent-ink); }
.px-ex-form { display: grid; gap: 14px; position: relative; }
.px-ex-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 9px 8px 16px;
  border: 1px solid var(--ph-border-strong);
  border-radius: 13px;
  background: var(--ph-bg);
}
.px-ex-search span, .px-ex-field span {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ph-text-3);
}
.px-ex-search input, .px-ex-field input, .px-ex-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ph-text);
  font: inherit;
}
.px-ex-search input::placeholder, .px-ex-field input::placeholder { color: var(--ph-text-3); }
.px-ex-search button, .px-ex-more, .px-ex-empty a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--ph-text);
  color: var(--ph-bg);
  font-size: 13px;
  font-weight: 600;
}
.px-ex-search:focus-within, .px-ex-field:focus-within {
  border-color: var(--ph-accent-ink);
  box-shadow: 0 0 0 3px rgba(255,127,80,.1);
}
.px-ex-suggestions { position: absolute; top: 60px; left: 0; right: 0; z-index: 30; }
.px-ex-suggestions .v2-suggest-panel { background: var(--ph-card); border-color: var(--ph-border); }
.px-ex-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.px-ex-field {
  display: grid;
  gap: 6px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  background: var(--ph-bg);
}
.px-ex-field select { appearance: none; cursor: pointer; }
.px-ex-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}
.px-ex-preset {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.px-ex-preset strong { color: var(--ph-text); font-size: 14px; }
.px-ex-preset span { color: var(--ph-text-2); font-size: 13px; line-height: 1.4; }
.px-ex-preset:hover { border-color: var(--ph-border-strong); background: var(--ph-surf); transform: translateY(-1px); }
.px-ex-notice {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(185,132,41,.28);
  border-radius: 12px;
  background: rgba(185,132,41,.08);
  color: var(--ph-text-2);
}
.px-ex-notice strong { color: var(--ph-text); }
.px-ex-results {
  border: 1px solid var(--ph-border);
  border-radius: 18px;
  background: var(--ph-surf);
  overflow: hidden;
}
.px-ex-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--ph-border);
}
.px-ex-results-head h2 {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.px-ex-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ph-text-2);
  font-family: var(--ph-ff-mono);
  font-size: 11px;
}
.px-ex-source .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ph-green); box-shadow: 0 0 0 3px rgba(53,122,78,.14); }
.px-ex-source .dot.mock { background: var(--ph-amber); box-shadow: 0 0 0 3px rgba(185,132,41,.14); }
.px-ex-table { width: 100%; }
.px-ex-thead, .px-ex-row {
  display: grid;
  grid-template-columns: 112px minmax(280px, 1.8fr) minmax(150px, .8fr) minmax(170px, .9fr) 92px;
  gap: 18px;
  align-items: center;
}
.px-ex-thead {
  padding: 10px 24px;
  background: var(--ph-panel);
  border-bottom: 1px solid var(--ph-border);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ph-text-3);
}
.px-ex-row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ph-border);
  color: var(--ph-text);
  transition: background 120ms ease;
}
.px-ex-row:last-child { border-bottom: 0; }
.px-ex-row:hover { background: var(--ph-bg); }
.px-ex-time, .px-ex-meaning, .px-ex-protocol, .px-ex-evidence { display: grid; gap: 4px; min-width: 0; }
.px-ex-time b, .px-ex-evidence code, .px-ex-meaning code {
  font-family: var(--ph-ff-mono);
  font-variant-numeric: tabular-nums;
}
.px-ex-time small, .px-ex-meaning small, .px-ex-protocol small, .px-ex-evidence small {
  color: var(--ph-text-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-ex-meaning strong {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ph-text);
}
.px-ex-topic {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  color: var(--ph-text);
  background: var(--ph-cream);
}
.px-ex-topic.swap { color: var(--ph-teal); }
.px-ex-topic.transfer { color: var(--ph-green); }
.px-ex-topic.token, .px-ex-topic.call { color: var(--ph-violet); }
.px-ex-protocol b { font-size: 13px; font-weight: 600; }
.px-ex-status {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  font-weight: 600;
}
.px-ex-status.success { color: var(--ph-green); background: rgba(53,122,78,.09); }
.px-ex-status.failed { color: var(--ph-accent-ink); background: rgba(255,127,80,.11); }
.px-ex-empty {
  padding: 54px 24px;
  text-align: center;
  color: var(--ph-text-2);
}
.px-ex-empty h3 {
  margin: 0 0 6px;
  font-family: var(--ph-ff-serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--ph-text);
}
.px-ex-empty p { max-width: 54ch; margin: 0 auto 18px; }
.px-ex-more { margin: 18px 24px 24px; background: var(--ph-cream); color: var(--ph-text); }
@media (max-width: 1060px) {
  .px-ex-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .px-ex-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-ex-thead { display: none; }
  .px-ex-row { grid-template-columns: 96px minmax(0, 1fr) 88px; }
  .px-ex-protocol, .px-ex-evidence { grid-column: 2 / 3; }
  .px-ex-status { grid-column: 3; grid-row: 1; }
}
@media (max-width: 720px) {
  .px-ex-app { padding: 20px 16px 64px; }
  .px-ex-control { padding: 20px 18px; border-radius: 15px; }
  .px-ex-search { grid-template-columns: 1fr; }
  .px-ex-search button { width: 100%; }
  .px-ex-filter-grid, .px-ex-presets { grid-template-columns: 1fr; }
  .px-ex-results-head { align-items: start; flex-direction: column; }
  .px-ex-row { grid-template-columns: 1fr; gap: 10px; }
  .px-ex-protocol, .px-ex-evidence, .px-ex-status { grid-column: auto; grid-row: auto; }
  .px-ex-status { justify-self: start; }
  .ph-heartbeat { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .px-ex-preset, .px-ex-row, .px-ex-search, .px-ex-field { transition: none; }
}

/* ───── V2 asset directory ───── */
:root {
  --pxa-bg: oklch(0.965 0.012 78);
  --pxa-surface: oklch(0.992 0.006 78);
  --pxa-soft: oklch(0.94 0.014 78);
  --pxa-rule: oklch(0.855 0.018 78);
  --pxa-rule-strong: oklch(0.78 0.022 78);
  --pxa-ink: oklch(0.22 0.016 280);
  --pxa-ink-2: oklch(0.42 0.018 78);
  --pxa-muted: oklch(0.62 0.018 78);
  --pxa-green: oklch(0.53 0.12 150);
  --pxa-violet: oklch(0.49 0.15 295);
  --pxa-teal: oklch(0.46 0.095 210);
  --pxa-gold: oklch(0.62 0.105 82);
}
.px-asset-app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 32px 86px;
}
.px-asset-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: end;
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--pxa-rule);
}
.px-asset-kicker {
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pxa-muted);
}
.px-asset-copy h1 {
  max-width: 820px;
  margin: 10px 0 14px;
  font-family: var(--ph-ff-serif);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -.04em;
  color: var(--pxa-ink);
}
.px-asset-copy h1 b { color: var(--ph-accent-ink); font-weight: 500; }
.px-asset-copy p {
  max-width: 720px;
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--pxa-ink-2);
}
.px-asset-ledger {
  border: 1px solid var(--pxa-rule);
  border-radius: 18px;
  background: color-mix(in oklch, var(--pxa-surface) 82%, transparent);
  padding: 8px 18px 16px;
}
.px-asset-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pxa-rule);
  color: var(--pxa-muted);
  font-size: 13px;
}
.px-asset-ledger-row b { color: var(--pxa-ink); font-size: 13px; }
.px-asset-ledger-row b.violet { color: var(--pxa-violet); }
.px-asset-ledger-note {
  padding-top: 13px;
  color: var(--pxa-ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.px-asset-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
}
.px-asset-search {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.px-asset-search label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--pxa-rule);
  border-radius: 13px;
  background: var(--pxa-surface);
}
.px-asset-search label:focus-within { border-color: var(--pxa-green); box-shadow: 0 0 0 3px color-mix(in oklch, var(--pxa-green) 16%, transparent); }
.px-asset-search span {
  flex: 0 0 auto;
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pxa-muted);
}
.px-asset-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pxa-ink);
}
.px-asset-search input::placeholder { color: var(--pxa-muted); }
.px-asset-search button {
  padding: 0 18px;
  border-radius: 13px;
  background: var(--pxa-ink);
  color: var(--pxa-bg);
  font-size: 13px;
  font-weight: 600;
}
.px-asset-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.px-asset-filterbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--pxa-rule);
  border-radius: 999px;
  color: var(--pxa-muted);
  background: var(--pxa-surface);
  font-size: 13px;
}
.px-asset-filterbar a.active { background: var(--pxa-ink); border-color: var(--pxa-ink); color: var(--pxa-bg); }
.px-asset-filterbar .dot { width: 7px; height: 7px; border-radius: 999px; }
.px-asset-filterbar .dot.violet { background: var(--pxa-violet); }
.px-asset-filterbar .dot.green { background: var(--pxa-green); }
.px-asset-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.px-asset-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 8px 0 14px;
}
.px-asset-section-head h2 {
  margin: 4px 0 0;
  font-family: var(--ph-ff-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.025em;
}
.px-asset-section-head > span {
  font-family: var(--ph-ff-mono);
  color: var(--pxa-muted);
  font-size: 12px;
}
.px-asset-table {
  border-top: 1px solid var(--pxa-rule);
}
.px-asset-thead,
.px-asset-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) .75fr .6fr .85fr .9fr .75fr 86px;
  gap: 18px;
  align-items: center;
}
.px-asset-thead {
  padding: 11px 0;
  border-bottom: 1px solid var(--pxa-rule);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pxa-muted);
}
.px-asset-thead span:not(:first-child) { text-align: right; }
.px-asset-row {
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pxa-rule);
  color: var(--pxa-ink);
  transition: background-color 140ms ease-out, margin 140ms ease-out, padding 140ms ease-out, border-radius 140ms ease-out;
}
.px-asset-row:hover {
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 14px;
  background: var(--pxa-soft);
  border-bottom-color: transparent;
}
.px-asset-row > span:not(:first-child) { text-align: right; }
.px-asset-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.px-asset-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--pxa-bg);
  font-family: var(--ph-ff-mono);
  font-size: 13px;
  font-weight: 700;
}
.px-asset-mark.native { background: var(--pxa-ink); }
.px-asset-mark.classic { background: var(--pxa-teal); }
.px-asset-mark.soroban { background: var(--pxa-violet); }
.px-asset-name strong { display: block; font-size: 15px; font-weight: 650; }
.px-asset-name small {
  display: block;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--pxa-muted);
  font-size: 12.5px;
}
.px-asset-row .num { font-size: 12.5px; }
.px-asset-row .muted { color: var(--pxa-muted); }
.px-asset-change { color: var(--pxa-green); font-weight: 600; font-size: 12.5px; }
.px-asset-change.down { color: var(--ph-accent-ink); }
.px-asset-type {
  justify-self: end;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--pxa-rule);
  border-radius: 999px;
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pxa-muted);
}
.px-asset-type.soroban { color: var(--pxa-violet); border-color: color-mix(in oklch, var(--pxa-violet) 35%, var(--pxa-rule)); }
.px-asset-type.native { color: var(--pxa-ink); }
.px-asset-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}
.px-asset-side-card {
  padding: 18px;
  border: 1px solid var(--pxa-rule);
  border-radius: 16px;
  background: var(--pxa-surface);
}
.px-asset-side-card h3 {
  margin: 0 0 8px;
  font-family: var(--ph-ff-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.015em;
}
.px-asset-side-card p {
  margin: 0;
  color: var(--pxa-ink-2);
  font-size: 13px;
  line-height: 1.55;
}
.px-asset-side-card b { color: var(--pxa-ink); }
.px-asset-rule {
  height: 6px;
  margin: 12px 0 14px;
  border-radius: 999px;
  background: var(--pxa-soft);
  overflow: hidden;
}
.px-asset-rule span { display: block; height: 100%; border-radius: inherit; background: var(--pxa-green); }
@media (max-width: 980px) {
  .px-asset-hero,
  .px-asset-body,
  .px-asset-controls { grid-template-columns: 1fr; }
  .px-asset-filterbar { justify-content: flex-start; }
  .px-asset-side { position: static; grid-template-columns: 1fr 1fr; }
  .px-asset-thead,
  .px-asset-row { grid-template-columns: minmax(200px, 1fr) .55fr .55fr .65fr; }
  .px-asset-thead span:nth-child(4), .px-asset-thead span:nth-child(5), .px-asset-thead span:nth-child(7),
  .px-asset-row > span:nth-child(4), .px-asset-row > span:nth-child(5), .px-asset-row > span:nth-child(7) { display: none; }
}
@media (max-width: 640px) {
  .px-asset-app { padding: 20px 18px 64px; }
  .px-asset-copy h1 { font-size: 38px; }
  .px-asset-search { flex-direction: column; }
  .px-asset-search button { min-height: 42px; }
  .px-asset-side { grid-template-columns: 1fr; }
  .px-asset-thead { display: none; }
  .px-asset-row { grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
  .px-asset-row > span:nth-child(2), .px-asset-row > span:nth-child(4), .px-asset-row > span:nth-child(5), .px-asset-row > span:nth-child(7) { display: none; }
  .px-asset-row > span:nth-child(3), .px-asset-row > span:nth-child(6) { text-align: right; }
}

/* ───── V2 asset detail ───── */
.px-asset-detail { padding-top: 26px; }
.px-ad-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: end;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--pxa-rule);
}
.px-ad-id {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.px-ad-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--pxa-bg);
  font-family: var(--ph-ff-mono);
  font-size: 24px;
  font-weight: 700;
}
.px-ad-mark.native { background: var(--pxa-ink); }
.px-ad-mark.classic { background: var(--pxa-teal); }
.px-ad-mark.soroban { background: var(--pxa-violet); }
.px-ad-id h1 {
  margin: 5px 0 8px;
  font-family: var(--ph-ff-serif);
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.045em;
  color: var(--pxa-ink);
}
.px-ad-code {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--pxa-muted);
}
.px-ad-summary p {
  margin: 0;
  color: var(--pxa-ink-2);
  font-size: 16px;
  line-height: 1.62;
}
.px-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.px-ad-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--pxa-rule);
  background: var(--pxa-surface);
  color: var(--pxa-ink);
  font-size: 13px;
  font-weight: 600;
}
.px-ad-actions a:first-child { background: var(--pxa-ink); border-color: var(--pxa-ink); color: var(--pxa-bg); }
.px-ad-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding-top: 28px;
}
.px-ad-main { display: grid; gap: 18px; }
.px-ad-panel,
.px-ad-side-card {
  border: 1px solid var(--pxa-rule);
  border-radius: 18px;
  background: var(--pxa-surface);
  padding: 20px;
}
.px-ad-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}
.px-ad-panel-head h2,
.px-ad-side-card h3 {
  margin: 4px 0 0;
  font-family: var(--ph-ff-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--pxa-ink);
}
.px-ad-kv {
  border-top: 1px solid var(--pxa-rule);
}
.px-ad-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pxa-rule);
  color: var(--pxa-muted);
  font-size: 13px;
}
.px-ad-kv-row b {
  max-width: 58%;
  overflow-wrap: anywhere;
  text-align: right;
  color: var(--pxa-ink);
  font-weight: 600;
}
.px-ad-pairs,
.px-ad-activity,
.px-ad-links,
.px-ad-holders { display: grid; gap: 0; border-top: 1px solid var(--pxa-rule); }
.px-ad-pair,
.px-ad-activity-row,
.px-ad-links a,
.px-ad-holders a {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--pxa-rule);
}
.px-ad-pair { grid-template-columns: 1fr auto; }
.px-ad-pair b,
.px-ad-links span { display: block; font-weight: 650; color: var(--pxa-ink); }
.px-ad-pair small,
.px-ad-links small,
.px-ad-holders small { display: block; color: var(--pxa-muted); font-size: 12px; }
.px-ad-pair > span:last-child { text-align: right; color: var(--pxa-ink); }
.px-ad-activity-row { grid-template-columns: 78px 1fr minmax(120px, .8fr) auto; color: var(--pxa-muted); font-size: 13px; }
.px-ad-activity-row .kind {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--pxa-rule);
  color: var(--pxa-muted);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.px-ad-activity-row .kind.in { color: var(--pxa-green); border-color: color-mix(in oklch, var(--pxa-green) 35%, var(--pxa-rule)); }
.px-ad-activity-row .kind.out { color: var(--ph-accent-ink); border-color: color-mix(in oklch, var(--ph-accent-ink) 35%, var(--pxa-rule)); }
.px-ad-activity-row .kind.soroban { color: var(--pxa-violet); border-color: color-mix(in oklch, var(--pxa-violet) 35%, var(--pxa-rule)); }
.px-ad-activity-row .amt { color: var(--pxa-ink); }
.px-ad-empty,
.px-ad-side-card p {
  color: var(--pxa-muted);
  font-size: 13px;
  line-height: 1.55;
}
.px-ad-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}
.px-ad-meter {
  height: 8px;
  margin: 13px 0 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--pxa-soft);
}
.px-ad-meter span {
  display: block;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--pxa-gold);
}
.px-ad-holders a { grid-template-columns: minmax(0, 1fr) auto auto; font-size: 12px; }
.px-ad-holders span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pxa-ink); }
.px-ad-holders b { color: var(--pxa-ink); font-weight: 600; }
@media (max-width: 980px) {
  .px-ad-hero,
  .px-ad-grid { grid-template-columns: 1fr; }
  .px-ad-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .px-ad-id { align-items: flex-start; }
  .px-ad-mark { width: 54px; height: 54px; border-radius: 17px; font-size: 18px; }
  .px-ad-side { grid-template-columns: 1fr; }
  .px-ad-activity-row { grid-template-columns: 1fr; gap: 5px; }
  .px-ad-kv-row { display: grid; gap: 4px; }
  .px-ad-kv-row b { max-width: none; text-align: left; }
}

/* Hybrid home: latest ledger as interpretation, feed as evidence */
.ph-hybrid-hero {
  margin-bottom: 34px;
}
.ph-ledger-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--ph-border);
  border-radius: 18px;
  background: var(--ph-surf);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(31,27,22,.04);
}
.ph-ledger-focus-main { min-width: 0; }
.ph-ledger-focus-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ph-text-3);
}
.ph-ledger-focus-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ph-green);
  box-shadow: 0 0 0 3px rgba(53,122,78,.12);
}
.ph-ledger-focus h1 {
  margin: 0;
  max-width: 850px;
  font-family: var(--ph-ff-serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--ph-text);
}
.ph-ledger-focus h1 a {
  border-bottom: 2px solid var(--ph-border-strong);
  text-decoration: none;
}
.ph-ledger-focus h1 a:hover { border-color: var(--ph-accent); }
.ph-ledger-focus h1 b {
  font-family: var(--ph-ff-mono);
  font-size: .86em;
  font-weight: 600;
}
.ph-ledger-focus-copy {
  margin: 18px 0 0;
  max-width: 74ch;
  color: var(--ph-text-2);
  font-size: 15px;
  line-height: 1.55;
}
.ph-ledger-focus-copy b { color: var(--ph-text); }
.ph-ledger-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.ph-ledger-focus-evidence {
  border: 1px solid var(--ph-border);
  background: var(--ph-bg);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.ph-ledger-focus-evidence-label {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ph-text-3);
}
.ph-focus-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ph-border);
}
.ph-focus-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ph-border);
  color: var(--ph-text-2);
  font-size: 12.5px;
}
.ph-focus-facts b {
  color: var(--ph-text);
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ph-focus-facts b.success { color: var(--ph-green); }
.ph-focus-facts b.failure { color: var(--ph-red); }
.ph-focus-meter {
  display: grid;
  gap: 8px;
}
.ph-focus-meter div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ph-focus-meter span {
  color: var(--ph-text-2);
  font-size: 12.5px;
}
.ph-focus-meter b {
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  color: var(--ph-text);
}
.ph-focus-meter i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--ph-border);
  background: var(--ph-panel);
}
.ph-focus-meter i span {
  display: block;
  height: 100%;
  background: var(--ph-accent);
  border-radius: 999px;
}
.ph-ledger-focus-open {
  width: fit-content;
  color: var(--ph-text);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--ph-border-strong);
}
.ph-hybrid-search {
  margin-top: 22px;
  max-width: none;
}
@media (max-width: 900px) {
  .ph-ledger-focus { grid-template-columns: 1fr; padding: 22px; }
  .ph-ledger-focus-evidence { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ph-ledger-focus h1 { font-size: 38px; }
}


/* === v2 shared explorer/detail styles === */
/* =========================================================================
   prism-human.css equivalent — design tokens + page chrome.
   Recreated inline for this preview; in production these come from the
   shared stylesheet that Tx and Explorer also use.
   ========================================================================= */
:root {
  --ph-bg: oklch(97.4% 0.018 78);
  --ph-surf: oklch(99.1% 0.006 78);
  --ph-cream: oklch(93.3% 0.035 78);
  --ph-panel: oklch(91.2% 0.031 78);
  --ph-border: oklch(88.5% 0.032 78);
  --ph-border-strong: oklch(78.8% 0.04 78);
  --ph-text: oklch(20.6% 0.015 67);
  --ph-text-2: oklch(42% 0.022 67);
  --ph-text-3: oklch(50.2% 0.024 67);

  /* ---- Spectrum: one family, four categories at L 53-60% ------------------
     Every one of these is declared here rather than left to fall through from
     the first :root block. Previously only violet, teal, amber and green were
     restated, so the spectrogram mixed one bright block-1 colour into a stack
     of dark block-2 ones: payments rendered at L 65.7% against 43.7-48.6% for
     everything beside it, a 22-point spread that read as a rendering fault
     with no visible cause. Restating all six makes the cascade order
     non-load-bearing.

     The band is the design's: chroma normalised to 0.105 so no single segment
     shouts, and lightness held inside 7 points across the four categories so
     the bar reads as one measurement rather than a ranking. Violet and red run
     hotter (0.145 / 0.165) because those hues need it to hold their identity
     at the same perceived weight.

     Hues are Prism's, not the design's, in one place: the design specifies
     cyan at hue 215, which is outside sRGB at this chroma (it tops out at
     0.102 even at L 58%, and the older value resolved to #00a2c0 with the red
     channel clamped to zero). 238 is in gamut with headroom and is the blue
     the ledger operation bar already uses for value movement, so payments and
     transfers read as the same kind of thing across both charts.

     Closest pair is payments/calls at dE 0.132, well clear of the 0.049 where
     two segments stop being separable. */
  --ph-cyan: oklch(58% 0.105 238);
  --ph-green: oklch(53% 0.105 149);
  --ph-violet: oklch(53% 0.145 294);
  --ph-amber: oklch(60% 0.105 78);
  --ph-red: oklch(55% 0.165 25);
  --ph-teal: oklch(36.8% 0.062 218);
  /* Darker variants for the two that appear as text rather than as fill.
     Referenced with a --ph-text-2 fallback in the insight rows, so they were
     silently unset before; at the lighter fill values above they have to be
     real or that copy loses contrast. */
  --ph-green-ink: oklch(45% 0.10 149);
  --ph-amber-ink: oklch(48% 0.10 78);
  --ph-accent-ink: oklch(48% 0.155 42);
  /* ---- Brand palette, sampled from the Prism social artwork ----------------
     These are the literal marketing colours. They sit at L 62-74% as an equal
     weight / different hue set, built for large display numerals on the dark
     card. At small label sizes they carry white text at only 2.3-3.4:1, below
     AA, so they are NOT used as primary segment colours — they appear as the
     tier-2 shade, where the label is ink and they measure 5.0-7.6:1.
     The brand's six colours are really five hues: gold (83) sits 4 degrees
     from classic (87), differing in chroma and lightness rather than hue. */
  --ph-brand-calls: #9b7bd8;   /* oklch(65.2% 0.138 298) */
  --ph-brand-lzk: #3f8fbf;     /* oklch(62.1% 0.106 238) */
  --ph-brand-swaps: #1fa098;   /* oklch(63.9% 0.105 188) */
  --ph-brand-classic: #a89770; /* oklch(68.2% 0.057 87)  */
  --ph-brand-gold: #d4a028;    /* oklch(73.6% 0.140 83)  */
  --ph-brand-agents: #e27160;  /* oklch(67.7% 0.144 30)  */
  --ph-brand-ink: #15151a;     /* dark card background   */

  /* Revocation has no brand anchor — the brand supplies five hues and there are
     six chromatic families. Crimson sits 28 degrees off agents and 0.09 darker,
     which holds them apart (dE 0.123). */
  --ph-crimson: oklch(38% 0.155 358);
  /* Neutral, and deliberately outside the 53-60% band. "Other" is a residual,
     not a category, so it sits pale enough (L 74%) to recede behind the four
     that carry meaning instead of competing with them. Near-achromatic keeps
     it clear of the warm families. */
  --ph-other: oklch(74% 0.010 80);
  /* The operation bar's neutral, kept at the old darker value because unlike
     --ph-other it sits under a white label (4.8:1). */
  --ph-neutral-seg: oklch(54% 0.008 80);
  --ph-ink-hover: oklch(15.5% 0.014 67);
  --ph-on-ink: oklch(98.4% 0.006 78);

  --ph-ff-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --ph-ff-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ph-ff-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: var(--ph-ff-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ph-green) 72%, var(--ph-surf));
  outline-offset: 3px;
}
.mono { font-family: var(--ph-ff-mono); font-feature-settings: "zero" 1, "ss01" 1; }
.muted { color: var(--ph-text-3); }

/* TopBar */
.ph-top {
  background: var(--ph-surf);
  border-bottom: 1px solid var(--ph-border);
  position: sticky; top: 0; z-index: 30;
}
.ph-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ph-brand {
  display: flex; align-items: center;
  font-family: var(--ph-ff-serif);
  font-weight: 600;
  color: var(--ph-text);
}
.ph-brand-prism { min-width: 74px; }
.ph-brand-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.ph-prism-band { display: flex; width: 54px; height: 4px; overflow: hidden; border-radius: 1px; }
.ph-prism-band-seg { min-width: 0; }
.ph-prism-band-seg.teal { background: #1FA098; flex: 68 0 0; }
.ph-prism-band-seg.violet { background: #9B7BD8; flex: 86 0 0; }
.ph-prism-band-seg.coral { background: #E27160; flex: 39 0 0; }
.ph-prism-band-seg.olive { background: #A89770; flex: 47 0 0; }
.ph-prism-band-seg.blue { background: #3F8FBF; flex: 23 0 0; }
.ph-brand .ph-mark { color: var(--ph-accent-ink); display: inline-flex; }
.ph-brand .ph-name { line-height: 1; font-size: 21px; letter-spacing: -0.025em; }

.px-tx-search {
  flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  color: var(--ph-text-2);
}
.px-tx-search-icon { display: inline-flex; color: var(--ph-text-3); }
.px-tx-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: var(--ph-ff-mono); font-size: 12.5px;
  color: var(--ph-text);
}
.px-tx-search-shortcut {
  font-family: var(--ph-ff-mono); font-size: 11px;
  color: var(--ph-text-3);
  padding: 2px 6px;
  border: 1px solid var(--ph-border);
  border-radius: 4px;
  background: var(--ph-surf);
}

.ph-right { display: flex; align-items: center; gap: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ph-network-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: var(--ph-bg);
  color: var(--ph-text-2);
}
.ph-network-select .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ph-green);
  flex-shrink: 0;
}
.ph-network-select .dot.testnet { background: var(--ph-amber); }
.ph-network-select .dot.futurenet { background: var(--ph-violet); }
.ph-network-select select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ph-text-2);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  padding: 0 16px 0 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 6px) 45%, calc(100% - 2px) 45%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.ph-network-select select:focus { outline: 0; }
.ph-net {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ph-text-2);
  padding: 5px 12px;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: var(--ph-bg);
}
.ph-net .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ph-green); }
.ph-signin {
  font-size: 13px; font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--ph-border);
  border-radius: 7px;
  background: var(--ph-surf);
  color: var(--ph-text);
}
.ph-signin:hover { border-color: var(--ph-text); }

/* =========================================================================
   prism-tx.css equivalent — crumbs, headline, sections, side rail.
   ========================================================================= */
.px-tx-crumbs {
  background: var(--ph-bg);
  border-bottom: 1px solid var(--ph-border);
}
.px-tx-crumbs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 11px 32px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ph-text-3);
}
.px-tx-crumbs-inner a { color: var(--ph-text-2); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.px-tx-crumbs-inner a:hover { border-bottom-color: var(--ph-border-strong); color: var(--ph-text); }
.px-tx-crumbs-inner .sep { color: var(--ph-text-3); }
.px-tx-crumbs-inner .cur { color: var(--ph-text); font-size: 12px; }

.px-tx-headline {
  background: var(--ph-surf);
  border-bottom: 1px solid var(--ph-border);
}
.px-tx-headline-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 36px;
}
.px-tx-headline-top {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.px-tx-eyebrow {
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ph-text-3);
  text-transform: none;
}
.px-tx-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ph-text-2);
  font-weight: 500;
}
.px-tx-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.px-tx-status-dot.ok { background: var(--ph-green); box-shadow: 0 0 0 3px rgba(53, 122, 78, 0.15); }
.px-tx-tag {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ph-text-2);
  padding: 3px 8px;
  border: 1px solid var(--ph-border);
  border-radius: 4px;
  background: var(--ph-bg);
}
.px-tx-tag.soroban {
  color: var(--ph-violet);
  background: rgba(94, 79, 168, 0.08);
  border-color: rgba(94, 79, 168, 0.2);
}
.px-tx-meta {
  font-size: 12px; color: var(--ph-text-3);
  margin-left: auto;
  font-family: var(--ph-ff-mono);
}

.px-tx-verb {
  color: var(--ph-text-3);
  font-weight: 400;
  font-style: italic;
}
.px-tx-sub {
  margin: 16px 0 0;
  font-size: 15px; line-height: 1.6;
  color: var(--ph-text-2);
  max-width: 760px;
}
.px-tx-sub b { font-weight: 600; color: var(--ph-text); }

.px-tx-quick {
  display: flex; gap: 36px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--ph-border);
  flex-wrap: wrap;
}
.px-tx-quick-item { display: flex; flex-direction: column; gap: 3px; }
.px-tx-quick-item .k {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ph-text-3);
}
.px-tx-quick-item .v {
  font-size: 14px; font-weight: 600; color: var(--ph-text);
  letter-spacing: -0.005em;
}
.px-tx-quick-item .v.mono { font-family: var(--ph-ff-mono); font-weight: 500; }
.px-tx-quick-item .v .muted { font-weight: 400; }

.px-tx-actions {
  display: flex; gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.px-tx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--ph-border);
  border-radius: 7px;
  background: var(--ph-bg);
  color: var(--ph-text-2);
}
.px-tx-btn:hover { border-color: var(--ph-border-strong); color: var(--ph-text); }
.px-tx-btn:disabled,
.px-tx-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}
.px-tx-btn:disabled:hover,
.px-tx-btn[aria-disabled="true"]:hover {
  border-color: var(--ph-border);
  color: var(--ph-text-2);
}
.px-tx-btn.primary {
  background: var(--ph-text);
  border-color: var(--ph-text);
  color: var(--ph-on-ink);
}
.px-tx-btn.primary:hover { background: var(--ph-ink-hover); border-color: var(--ph-ink-hover); color: var(--ph-on-ink); }
.px-tx-btn.primary:disabled,
.px-tx-btn.primary[aria-disabled="true"] {
  background: var(--ph-text);
  border-color: var(--ph-text);
  color: var(--ph-on-ink);
}
.px-tx-btn.primary:disabled:hover,
.px-tx-btn.primary[aria-disabled="true"]:hover {
  background: var(--ph-text);
  border-color: var(--ph-text);
  color: var(--ph-on-ink);
}

/* Share button + popover */
.px-share { position: relative; }
.px-share[open] .px-share-trigger { background: var(--ph-surf); border-color: var(--ph-text); color: var(--ph-text); }
.px-share summary { list-style: none; cursor: pointer; user-select: none; }
.px-share summary::-webkit-details-marker { display: none; }
.px-share-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(31, 27, 22, 0.06), 0 16px 48px rgba(31, 27, 22, 0.10);
  padding: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.px-share-arrow {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--ph-surf);
  border-top: 1px solid var(--ph-border);
  border-left: 1px solid var(--ph-border);
}
.px-share-head { display: flex; align-items: center; justify-content: space-between; }
.px-share-eyebrow { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ph-text-3); font-weight: 600; }
.px-share-close { width: 22px; height: 22px; border-radius: 4px; font-size: 16px; line-height: 1; color: var(--ph-text-3); display: flex; align-items: center; justify-content: center; }
.px-share-close:hover { background: var(--ph-bg); color: var(--ph-text); }
.px-share-preview { display: flex; flex-direction: column; gap: 6px; }
.px-share-preview-img { border: 1px solid var(--ph-border); border-radius: 8px; overflow: hidden; background: var(--ph-surf); aspect-ratio: 1200 / 630; }
.px-share-preview-img svg { display: block; width: 100%; height: 100%; }
.px-share-preview-cap { font-family: var(--ph-ff-mono); font-size: 10.5px; color: var(--ph-text-3); text-align: center; }
.px-share-url { display: flex; align-items: center; gap: 6px; background: var(--ph-bg); border: 1px solid var(--ph-border); border-radius: 7px; padding: 4px 4px 4px 10px; }
.px-share-url-input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ph-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--ph-ff-mono); }
.px-share-url-copy { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 5px; background: var(--ph-text); color: var(--ph-on-ink); flex-shrink: 0; }
.px-share-url-copy:hover { background: var(--ph-ink-hover); }
.px-share-platforms { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.px-share-platform { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 8px 6px; border: 1px solid var(--ph-border); border-radius: 6px; background: var(--ph-bg); color: var(--ph-text-2); white-space: nowrap; }
.px-share-platform:hover { border-color: var(--ph-border-strong); color: var(--ph-text); }
.px-share-foot { font-size: 11.5px; color: var(--ph-text-3); text-align: center; border-top: 1px solid var(--ph-border); margin-top: 2px; padding-top: 12px; }
.px-share-foot .kbd { display: inline-block; font-family: var(--ph-ff-mono); font-size: 10.5px; padding: 1px 5px; border: 1px solid var(--ph-border); border-radius: 3px; background: var(--ph-bg); color: var(--ph-text-2); margin: 0 1px; vertical-align: 1px; }

@media (max-width: 720px) {
  .px-share-pop { left: 0; transform: none; width: min(380px, calc(100vw - 32px)); }
  .px-share-arrow { left: 30px; }
}

/* Recent-ledgers sparkline (right rail) */
.px-tx-side-sub { font-size: 11.5px; color: var(--ph-text-3); margin-bottom: 12px; margin-top: -4px; }
.px-lg-spark { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; align-items: end; height: 88px; padding: 8px 0 4px; border-bottom: 1px solid var(--ph-border); }
.px-lg-spark-bar { position: relative; display: block; background: var(--ph-border); border-radius: 2px 2px 0 0; height: var(--h); min-height: 6px; cursor: pointer; transition: background 120ms; }
.px-lg-spark-bar:hover { background: var(--ph-text-3); }
.px-lg-spark-bar.current { background: var(--ph-accent-ink); box-shadow: 0 0 0 1px var(--ph-accent-ink); }
.px-lg-spark-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-family: var(--ph-ff-mono); font-size: 10.5px; color: var(--ph-text); background: var(--ph-surf); border: 1px solid var(--ph-border-strong); padding: 5px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 120ms; z-index: 10; box-shadow: 0 2px 8px rgba(31, 27, 22, 0.08); line-height: 1.4; }
.px-lg-spark-tip b { font-weight: 600; color: var(--ph-accent-ink); }
.px-lg-spark-bar:hover .px-lg-spark-tip { opacity: 1; }
.px-lg-spark-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; font-size: 10.5px; color: var(--ph-text-3); }
.px-lg-spark-foot span:nth-child(2) { font-style: italic; }
.px-lg-spark-callout { margin-top: 12px; padding: 10px 12px; background: var(--ph-cream); border-radius: 6px; font-size: 12px; line-height: 1.45; color: var(--ph-text-2); }
.px-lg-spark-callout b { color: var(--ph-text); font-weight: 600; }

/* page layout */
.px-tx-page { background: var(--ph-bg); }
.px-tx-page-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}
.px-tx-main { min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.px-tx-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }

/* sections */
.px-tx-section { display: block; }
.px-tx-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ph-border);
}
.px-tx-section-head h2 {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ph-text);
}
.px-tx-section-sub {
  font-size: 12.5px;
  color: var(--ph-text-3);
  font-style: italic;
  font-family: var(--ph-ff-serif);
}

/* side rail */
.px-tx-side-card {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 16px 18px;
}
.px-tx-side-card.soft {
  background: var(--ph-cream);
  border-color: var(--ph-border);
}
.px-tx-side-card h4 {
  margin: 0 0 12px;
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ph-text-3);
}
.px-tx-side-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 12.5px;
  border-top: 1px dashed var(--ph-border);
}
.px-tx-side-row:first-of-type { border-top: 0; padding-top: 2px; }
.px-tx-side-row .k { color: var(--ph-text-3); }
.px-tx-side-row .v { color: var(--ph-text); font-weight: 500; }
.px-tx-side-row .v.mono { font-weight: 500; font-size: 12px; }
.px-tx-side-row .v .muted { font-weight: 400; }
.px-tx-side-body {
  margin: 0; padding: 0;
  font-size: 13px; line-height: 1.55;
  color: var(--ph-text-2);
}
.px-tx-side-body b { color: var(--ph-text); font-weight: 600; }
.px-tx-side-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  color: var(--ph-accent-ink);
}
.px-tx-related { display: flex; flex-direction: column; gap: 2px; }
.px-tx-related-row {
  padding: 8px 10px;
  border-radius: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.px-tx-related-row:hover { background: var(--ph-bg); }
.px-tx-rel-h {
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ph-text);
}
.px-tx-rel-s {
  font-size: 11.5px;
  color: var(--ph-text-3);
}

/* =========================================================================
   prism-ledger.css — page-specific overrides + new SOROBAN SPOTLIGHT
   ========================================================================= */

/* Ledger nav strip */
.px-lg-nav {
  background: var(--ph-surf);
  border-bottom: 1px solid var(--ph-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  gap: 24px;
}
.px-lg-nav-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ph-text-2);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--ph-border);
  background: var(--ph-bg);
  width: fit-content;
}
.px-lg-nav-btn:hover { border-color: var(--ph-border-strong); color: var(--ph-text); }
.px-lg-nav-btn.r { justify-self: end; }
.px-lg-nav-btn .num { font-size: 12px; color: var(--ph-text-3); }
.px-lg-nav-cur {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.px-lg-nav-label {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ph-text-3);
  font-weight: 600;
}
.px-lg-nav-num {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ph-text);
}

/* Headline — sentence form */
.px-lg-h1 {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}
.px-lg-num {
  font-family: var(--ph-ff-mono);
  font-size: 0.78em;
  background: var(--ph-cream);
  padding: 2px 10px;
  border-radius: 6px;
  color: var(--ph-text);
  font-weight: 500;
}
.px-lg-amt { font-weight: 600; color: var(--ph-text); }

/* Composition — bar with counts in segments (design 1 borrow) */
.px-lg-comp { margin-bottom: 24px; }
.px-lg-comp-bar {
  display: flex; height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ph-border);
  margin-bottom: 16px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}
.px-lg-comp-seg {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  position: relative;
  cursor: default;
  overflow: hidden;
  transition: filter 160ms;
  /* Family classes below supply --seg; the fallback keeps an unrecognised
     family from rendering as a transparent gap in the bar. The label colour
     follows the background rather than being fixed, so the palette can hold
     light families (coral) alongside dark ones. */
  background: var(--seg, var(--ph-neutral-seg));
  color: var(--seg-text, var(--ph-on-ink));
  text-shadow: var(--seg-shadow, 0 1px 2px rgba(31,27,22,0.18));
}
.px-lg-comp-seg:hover { filter: brightness(1.08); }
.px-lg-comp-seg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ph-on-ink) 8%, transparent), rgba(31,27,22,0.10));
  pointer-events: none;
}
.px-lg-comp-seg .n {
  position: relative; z-index: 1;
  font-family: var(--ph-ff-mono);
  font-size: 12px; font-weight: 600;
}
.px-lg-comp-seg .lab {
  position: relative; z-index: 1;
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Operation families: one hue per family, so a segment's colour is a property
   of what the operation does rather than where it landed in the bar. Stellar
   has 29 operation types and a categorical palette stops reading past ~7, so
   types collapse into families instead of the palette growing. */
/* Each family anchors on a brand hue. --seg is that hue darkened into the app's
   working band so the white segment label clears AA; --seg-t2 is the literal
   brand colour, which the tier-2 rule uses verbatim. Families with no brand
   anchor omit --seg-t2 and fall back to the computed ramp. */
.s-contract { --seg: oklch(44% 0.143 298); --seg-t2: var(--ph-brand-calls); }
.s-transfer { --seg: oklch(40% 0.090 238); --seg-t2: var(--ph-brand-lzk); }
.s-market { --seg: oklch(48% 0.085 188); --seg-t2: var(--ph-brand-swaps); }
.s-controls { --seg: oklch(47% 0.075 87); --seg-t2: var(--ph-brand-classic); }
.s-agent { --seg: oklch(47% 0.150 30); --seg-t2: var(--ph-brand-agents); }
.s-revoke { --seg: var(--ph-crimson); }
/* Not --ph-other. The spectrogram's neutral is a pale residual meant to recede
   behind the categories; this one is a labelled segment in the operation bar
   and has to carry a white label at AA. Same role, opposite lightness. */
.s-other { --seg: var(--ph-neutral-seg); }

/* Second and third most common type within a family: same hue, raised lightness
   and softened chroma.
   The ramp must not mix toward another colour. color-mix(in oklch, ...) toward
   the warm cream rotates hue along the shorter arc, which pushed transfer's
   teal (218) to 155 — that is trust's green — and contract's violet to pink.
   Relative colour syntax holds `h` fixed and moves only l and c, so a family
   can never ramp into a neighbour's hue. Lightness is capped so pale tiers stay
   distinguishable from the page background.
   Guarded by @supports: without it, tiers keep the full family colour and the
   white label, which is legible even though the ramp is lost. */
@supports (background: oklch(from red l c h)) {
  .px-lg-comp-seg.tier-2,
  .px-lg-comp-seg.tier-3 { --seg-text: var(--ph-text); --seg-shadow: none; }
  /* Tier 2 is the literal brand colour where the family has one, so the
     marketing palette appears in-product one step into every family ramp. */
  .px-lg-comp-seg.tier-2 { background: var(--seg-t2, oklch(from var(--seg) calc(min(0.78, l + 0.26)) calc(c * 0.72) h)); }
  .px-lg-comp-seg.tier-3 { background: oklch(from var(--seg) calc(min(0.88, l + 0.42)) calc(c * 0.48) h); }
  /* The base overlay darkens for white text; tiers carry ink text instead. */
  .px-lg-comp-seg.tier-2::after,
  .px-lg-comp-seg.tier-3::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ph-on-ink) 30%, transparent), rgba(31,27,22,0.05));
  }
}

.px-lg-comp-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 24px;
  margin-top: 14px;
}
.px-lg-leg {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
}
.px-lg-leg .dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.px-lg-leg .dot { background: var(--seg, var(--ph-neutral-seg)); }
.px-lg-leg .k { color: var(--ph-text-2); flex: 1; }
.px-lg-leg .v { font-size: 12px; color: var(--ph-text); font-weight: 500; }

.px-lg-comp-caption { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 0 2px; font-size: 13px; color: var(--ph-text-2); }
.px-lg-comp-caption-item b { color: var(--ph-text); font-weight: 600; font-family: var(--ph-ff-mono); font-size: 13.5px; }
.px-lg-comp-caption-sep { color: var(--ph-border-strong); }

/* Stats row under composition */
.px-lg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.px-lg-stat {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.px-lg-stat .k {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-text-3);
  font-weight: 600;
}
.px-lg-stat .v {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em;
  font-family: var(--ph-ff-sans);
  line-height: 1.1;
}
.px-lg-stat .v.mono { font-family: var(--ph-ff-mono); }
.px-lg-stat .v .of {
  font-size: 12px;
  color: var(--ph-text-3);
  font-weight: 400;
  font-family: var(--ph-ff-mono);
  margin-left: 2px;
}
.px-lg-stat .bar {
  background: var(--ph-panel);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.px-lg-stat .bar > span { display: block; height: 100%; background: var(--ph-green); }
.px-lg-stat .bar.v > span { background: var(--ph-violet); }
.px-lg-stat .bar.a > span { background: var(--ph-accent-ink); }
.px-lg-stat .bar.t > span { background: var(--ph-teal); }

/* Spotlight · "What stood out" leading strip */
.px-lg-stood { margin-bottom: 22px; }
.px-lg-stood-eyebrow { font-family: var(--ph-ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ph-text-3); font-weight: 600; margin-bottom: 10px; }
.px-lg-stood-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.px-lg-stood-card { background: var(--ph-surf); border: 1px solid var(--ph-border); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color 120ms, transform 120ms; }
.px-lg-stood-card:hover { border-color: var(--ph-border-strong); transform: translateY(-1px); }
.px-lg-stood-tag { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--ph-cream); color: var(--ph-text-2); width: fit-content; }
.px-lg-stood-card.swap .px-lg-stood-tag { color: var(--ph-violet); background: rgba(94, 79, 168, 0.10); }
.px-lg-stood-card.lend .px-lg-stood-tag { color: var(--ph-amber); background: rgba(185, 132, 41, 0.10); }
.px-lg-stood-card.deploy .px-lg-stood-tag { color: var(--ph-teal); background: rgba(31, 78, 95, 0.10); }
.px-lg-stood-card h3 { margin: 0; font-family: var(--ph-ff-serif); font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: var(--ph-text); }
.px-lg-stood-card h3 b { font-weight: 600; }
.px-lg-stood-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ph-text-2); }
.px-lg-stood-link { margin-top: auto; font-family: var(--ph-ff-mono); font-size: 11.5px; color: var(--ph-text-3); padding-top: 4px; }
.px-lg-stood-card:hover .px-lg-stood-link { color: var(--ph-accent-ink); }
.px-lg-spot-divider { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.px-lg-spot-divider::after { content: ""; flex: 1; height: 1px; background: var(--ph-border); }
.px-lg-spot-eyebrow { font-family: var(--ph-ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ph-text-3); font-weight: 600; }

/* ===== NEW: SOROBAN SPOTLIGHT ===== */
.px-lg-spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.px-lg-spot {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 160ms, transform 160ms;
}
.px-lg-spot:hover { border-color: var(--ph-border-strong); transform: translateY(-1px); }

.px-lg-spot-head {
  display: flex; align-items: center; gap: 10px;
}
.px-lg-spot-ic {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ph-ff-serif);
  color: var(--ph-on-ink);
  font-size: 13px;
  font-weight: 600;
  background: var(--ph-text-2);
  flex-shrink: 0;
}
.px-lg-spot-title {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ph-text);
}

.px-lg-spot-bign {
  font-family: var(--ph-ff-serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ph-text);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.px-lg-spot-bign.zero { color: var(--ph-text-3); }
.px-lg-spot-bign .u {
  font-size: 13px;
  color: var(--ph-text-3);
  font-weight: 400;
  margin-left: 4px;
  font-style: italic;
}

.px-lg-spot-because {
  font-family: var(--ph-ff-serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ph-text-2);
}
.px-lg-spot-because em { font-style: italic; color: var(--ph-text); font-weight: 500; }
.px-lg-spot-because b { font-style: normal; font-family: var(--ph-ff-sans); font-weight: 600; color: var(--ph-text); }

.px-lg-spot-items {
  display: flex; flex-direction: column;
  gap: 0;
  margin-top: 4px;
  border-top: 1px dashed var(--ph-border);
}
.px-lg-spot-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--ph-text-2);
  border-top: 1px dashed var(--ph-border);
}
.px-lg-spot-item:first-child { border-top: 0; padding-top: 8px; }
.px-lg-spot-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-lg-spot-item .name b { font-weight: 600; color: var(--ph-text); }
.px-lg-spot-item .name em { font-family: var(--ph-ff-serif); font-style: italic; color: var(--ph-text-3); font-size: 12px; }
.px-lg-spot-item .meta {
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  color: var(--ph-text-3);
  flex-shrink: 0;
  white-space: nowrap;
}

.px-lg-spot-cta {
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  color: var(--ph-accent-ink);
  margin-top: auto;
  padding-top: 4px;
}

/* Spotlight color variants — accent the card */
.px-lg-spot.deploy { background: color-mix(in srgb, var(--ph-amber) 6%, var(--ph-surf)); border-color: color-mix(in srgb, var(--ph-amber) 22%, var(--ph-border)); }
.px-lg-spot.deploy .px-lg-spot-ic { background: var(--ph-amber); }

.px-lg-spot.ttl { background: color-mix(in srgb, var(--ph-green) 6%, var(--ph-surf)); border-color: color-mix(in srgb, var(--ph-green) 22%, var(--ph-border)); }
.px-lg-spot.ttl .px-lg-spot-ic { background: var(--ph-green); }

.px-lg-spot.fail { background: color-mix(in srgb, var(--ph-accent-ink) 6%, var(--ph-surf)); border-color: color-mix(in srgb, var(--ph-accent-ink) 22%, var(--ph-border)); }
.px-lg-spot.fail .px-lg-spot-ic { background: var(--ph-accent-ink); }

.px-lg-spot.events .px-lg-spot-ic { background: var(--ph-violet); }
.px-lg-spot.state .px-lg-spot-ic { background: var(--ph-teal); }

/* Agent payments carry the brand coral. This card previously used violet, which
   is the contract-call colour — agent activity is a classification layered over
   contract calls, not the same thing, and the shared hue hid that. Coral is the
   family colour reserved for agents; nothing else on the page uses it, because
   x402 is not a Stellar operation type and so never reaches the op breakdown. */
.px-lg-spot.agent { background: color-mix(in srgb, var(--ph-brand-agents) 9%, var(--ph-surf)); border-color: color-mix(in srgb, var(--ph-brand-agents) 34%, var(--ph-border)); }
.px-lg-spot.agent .px-lg-spot-ic { background: oklch(47% 0.150 30); }
.px-lg-spot.agent .px-lg-spot-head { justify-content: flex-start; }
.px-lg-spot-x402 {
  margin-left: auto;
  font-family: var(--ph-ff-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: oklch(43% 0.150 30);
  background: color-mix(in srgb, var(--ph-brand-agents) 18%, transparent);
  padding: 3px 7px;
  border-radius: 4px;
}

/* Highlights */
.px-lg-high {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.px-lg-h {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: border-color 160ms, transform 160ms;
}
.px-lg-h:hover { border-color: var(--ph-border-strong); transform: translateY(-1px); }
.px-lg-h-tag {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ph-bg);
  width: fit-content;
}
.px-lg-h-swap .px-lg-h-tag { color: var(--ph-violet); border: 1px solid rgba(94, 79, 168, 0.3); }
.px-lg-h-lend .px-lg-h-tag { color: var(--ph-amber); border: 1px solid rgba(185, 132, 41, 0.3); }
.px-lg-h-classic .px-lg-h-tag { color: var(--ph-teal); border: 1px solid rgba(31, 78, 95, 0.3); }
.px-lg-h h3 {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ph-text);
}
.px-lg-h h3 b { font-weight: 600; }
.px-lg-h p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ph-text-2);
}
.px-lg-h p .mono { font-size: 12px; }
.px-lg-h-link {
  margin-top: auto;
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  color: var(--ph-text-3);
}
.px-lg-h:hover .px-lg-h-link { color: var(--ph-accent-ink); }

/* TX list */
.px-lg-filters {
  display: inline-flex;
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  padding: 3px;
  gap: 1px;
}
.px-lg-filter {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  color: var(--ph-text-2);
}
.px-lg-filter:hover { color: var(--ph-text); }
.px-lg-filter.active { background: var(--ph-text); color: var(--ph-on-ink); }
.px-lg-filter-c {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  background: var(--ph-panel);
  padding: 1px 6px;
  border-radius: 8px;
  color: var(--ph-text-3);
}
.px-lg-filter.active .px-lg-filter-c { background: color-mix(in srgb, var(--ph-on-ink) 16%, transparent); color: var(--ph-on-ink); }

.px-lg-txlist {
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  background: var(--ph-surf);
  overflow: hidden;
}
.px-lg-tx {
  display: grid;
  grid-template-columns: 36px 90px 130px minmax(220px, 1fr) 130px 50px 70px 22px;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--ph-border);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 120ms;
}
.px-lg-tx:last-child { border-bottom: none; }
.px-lg-tx:hover { background: var(--ph-bg); }
.px-lg-tx.failed { background: rgba(217, 82, 30, 0.04); }
.px-lg-tx.failed:hover { background: rgba(217, 82, 30, 0.07); }
.px-lg-tx-num {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  color: var(--ph-text-3);
  font-weight: 600;
}
.px-lg-tx-hash { font-size: 11.5px; color: var(--ph-accent-ink); font-family: var(--ph-ff-mono); }
.px-lg-tx-kind { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.px-lg-kind-pill {
  display: inline-block;
  font-family: var(--ph-ff-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
.px-lg-kind-pill.k-soroban { background: rgba(94, 79, 168, 0.14); color: var(--ph-violet); }
.px-lg-kind-pill.k-classic { background: rgba(31, 78, 95, 0.12); color: var(--ph-teal); }
.px-lg-proto {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  color: var(--ph-text-3);
}
.px-lg-tx-summary { font-size: 13px; color: var(--ph-text); line-height: 1.4; }
.px-lg-tx-summary b { font-family: var(--ph-ff-mono); font-weight: 500; }
.px-lg-tx-actor { font-size: 11.5px; color: var(--ph-text-2); line-height: 1.35; }
.px-lg-tx-actor b { font-weight: 600; color: var(--ph-text); font-family: var(--ph-ff-sans); font-size: 12px; }
.px-lg-tx-actor .mono { font-size: 10.5px; font-family: var(--ph-ff-mono); }
.px-lg-tx-actor .muted { color: var(--ph-text-3); }
.px-lg-tx-events { color: var(--ph-text-2); font-size: 11.5px; font-family: var(--ph-ff-mono); }
.px-lg-tx-fee { color: var(--ph-text-3); font-size: 11px; font-family: var(--ph-ff-mono); }
.px-lg-tx-status { font-size: 14px; font-weight: 600; text-align: center; }
.px-lg-tx-status.ok { color: var(--ph-green); }
.px-lg-tx-status.fail { color: var(--ph-accent-ink); }
.px-lg-tx .r { text-align: right; }

.px-lg-txfoot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  font-size: 12.5px; color: var(--ph-text-3);
}
.px-lg-more { color: var(--ph-accent-ink); font-weight: 500; font-family: var(--ph-ff-mono); font-size: 12px; }

/* TX cards (humanized, replaces the table for ledger detail) */
.px-lg-txcards { display: flex; flex-direction: column; border: 1px solid var(--ph-border); border-radius: 12px; overflow: hidden; background: var(--ph-surf); }
.px-lg-txc { display: grid; grid-template-columns: 38px 1fr auto; gap: 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--ph-border); cursor: pointer; transition: background 120ms; text-decoration: none; color: inherit; }
.px-lg-txc:last-child { border-bottom: none; }
.px-lg-txc:hover { background: var(--ph-bg); }
.px-lg-txc.fail { background: rgba(217, 82, 30, 0.04); }
.px-lg-txc.fail:hover { background: rgba(217, 82, 30, 0.07); }
.px-lg-txc-num { font-size: 11px; color: var(--ph-text-3); font-weight: 600; letter-spacing: 0.05em; padding-top: 4px; }
.px-lg-txc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.px-lg-txc-tags { display: flex; align-items: center; gap: 6px; }
.px-lg-txc-tags .tag { font-family: var(--ph-ff-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; }
.px-lg-txc-tags .tag.soroban { background: rgba(94, 79, 168, 0.12); color: var(--ph-violet); }
.px-lg-txc-tags .tag.classic { background: rgba(31, 78, 95, 0.10); color: var(--ph-teal); }
.px-lg-txc-tags .tag.fail { background: rgba(217, 82, 30, 0.10); color: var(--ph-accent-ink); }
.px-lg-txc-tags .tag-proto { font-size: 11px; color: var(--ph-text-2); font-weight: 500; }
.px-lg-txc-head { font-size: 14px; line-height: 1.45; color: var(--ph-text); text-wrap: pretty; }
.px-lg-txc-head b { font-weight: 600; }
.px-lg-txc-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ph-text-3); flex-wrap: wrap; }
.px-lg-txc-meta .actor { color: var(--ph-text-2); }
.px-lg-txc-meta .actor b { color: var(--ph-text); font-weight: 600; font-family: var(--ph-ff-sans); font-size: 12px; }
.px-lg-txc-meta .sep { color: var(--ph-border-strong); }
.px-lg-txc-trail { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.px-lg-txc-status { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.px-lg-txc-status.ok { background: rgba(53, 122, 78, 0.14); color: var(--ph-green); }
.px-lg-txc-status.fail { background: rgba(217, 82, 30, 0.14); color: var(--ph-accent-ink); }
.px-lg-txc-fee { font-size: 11px; color: var(--ph-text-2); }
.px-lg-txc-arrow { color: var(--ph-text-3); font-size: 14px; transition: color 120ms, transform 120ms; }
.px-lg-txc:hover .px-lg-txc-arrow { color: var(--ph-accent-ink); transform: translateX(2px); }

/* Changed accounts */
.px-lg-accts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.px-lg-acct {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 16px 18px;
}
.px-lg-acct-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.px-lg-acct-meta h3 {
  margin: 0 0 2px;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: -0.005em;
  font-family: var(--ph-ff-sans);
}
.px-lg-acct-meta .mono {
  font-family: var(--ph-ff-mono);
  font-size: 11px; color: var(--ph-text-3);
}
.px-lg-acct-touched {
  display: flex; align-items: baseline; gap: 4px;
  flex-shrink: 0;
}
.px-lg-acct-touched .n {
  font-family: var(--ph-ff-mono);
  font-size: 16px; font-weight: 600;
  color: var(--ph-text);
}
.px-lg-acct-touched .l {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  color: var(--ph-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.px-lg-acct-deltas {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.px-lg-acct-deltas li {
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 4px;
}
.px-lg-acct-deltas li.in { background: rgba(53, 122, 78, 0.08); color: var(--ph-green); }
.px-lg-acct-deltas li.out { background: rgba(217, 82, 30, 0.08); color: var(--ph-accent-ink); }
.px-lg-acct-deltas li.neutral { background: var(--ph-panel); color: var(--ph-text-2); }

/* Responsive */
@media (max-width: 1100px) {
  .px-tx-page-inner { grid-template-columns: 1fr; }
  .px-tx-side { position: static; order: 99; flex-direction: row; flex-wrap: wrap; }
  .px-tx-side > * { flex: 1 1 280px; }
  .px-lg-nav { grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 24px; }
  .px-lg-nav-cur { grid-column: 1 / -1; order: -1; }
  .px-lg-stats { grid-template-columns: 1fr 1fr; }
  .px-lg-spot-grid { grid-template-columns: 1fr 1fr; }
  .px-lg-stood-grid { grid-template-columns: 1fr 1fr; }
  .px-lg-high { grid-template-columns: 1fr; }
  .px-lg-comp-legend { grid-template-columns: 1fr 1fr; }
  .px-lg-tx { grid-template-columns: 30px 80px minmax(180px, 1fr) 110px 22px; gap: 12px; }
  .px-lg-tx .px-lg-tx-kind, .px-lg-tx .px-lg-tx-events, .px-lg-tx .px-lg-tx-fee { display: none; }
}
@media (max-width: 720px) {
  .px-lg-comp-legend { grid-template-columns: 1fr; }
  .px-lg-stats { grid-template-columns: 1fr; }
  .px-lg-spot-grid { grid-template-columns: 1fr; }
  .px-lg-stood-grid { grid-template-columns: 1fr; }
  .px-lg-tx { grid-template-columns: 80px 1fr 22px; }
  .px-lg-tx .px-lg-tx-num, .px-lg-tx .px-lg-tx-actor { display: none; }
  .px-lg-comp-seg .lab { display: none; }
}


/* =========================================================================
   Transaction v2 additions — ported from docs/inspiration/prism-tx.css.
   Ledger merged CSS had chrome/ledger styles but not tx detail/flow styles.
   ========================================================================= */
:root { --ph-accent: #FF7F50; }
.px-tx-h1 {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  text-wrap: pretty;
}
/* Headline typography carries exactly three roles, and each role gets exactly
   one treatment.

   Evidence is anything a reader might copy, compare, or verify: addresses,
   contract ids, function names, amounts. It is mono, per the Mono Evidence
   Rule, which previously stopped at the headline: a sentence could render the
   sender in serif and the recipient in mono, so two identical Stellar addresses
   in one line looked like different kinds of thing.

   Prose is Prism's own connective language. Serif italic, de-emphasised, so the
   eye skips to the evidence.

   The chip (padding, radius, background) is reserved for asset-denominated
   values, where it encodes asset identity via .xlm / .usdc. It used to be
   applied to addresses too, adding size and padding changes that signalled
   nothing. */
.px-tx-actor,
.px-tx-ev {
  font-family: var(--ph-ff-mono);
  font-size: 0.82em;
  color: var(--ph-text);
  min-width: 0;
  overflow-wrap: anywhere;
}
.px-tx-actor { font-weight: 600; }
.px-tx-ev { font-weight: 500; }
.px-tx-verb { color: var(--ph-text-3); font-style: italic; }
.px-tx-amt {
  font-family: var(--ph-ff-mono);
  font-size: 0.78em;
  padding: 2px 12px;
  border-radius: 8px;
  font-weight: 500;
  background: var(--ph-cream);
}
.px-tx-amt.usdc { background: rgba(39, 117, 202, 0.10); color: #1E5BA8; }
.px-tx-amt.xlm { background: var(--ph-cream); color: var(--ph-text); }

.px-tx-sub {
  margin: 18px 0 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ph-text-2);
  max-width: 64ch;
}
.px-tx-sub b { color: var(--ph-text); font-weight: 600; }

.px-tx-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  background: var(--ph-bg);
  margin-top: 0;
  margin-bottom: 22px;
  padding-top: 0;
  overflow: hidden;
}
.px-tx-quick-item {
  min-width: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--ph-border);
}
.px-tx-quick-item:last-child { border-right: none; }
.px-tx-quick-item .k {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-text-3);
  font-weight: 600;
}
.px-tx-quick-item .v {
  font-size: 13px;
  color: var(--ph-text);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.px-tx-quick-item a.v { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 120ms, text-decoration-color 120ms; }
.px-tx-quick-item a.v:hover { color: var(--ph-accent-ink); text-decoration-color: currentColor; }
.px-tx-quick-item a.v:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; border-radius: 2px; }
.px-tx-quick-item .v b { font-weight: 600; }
.px-tx-quick-item .v code {
  background: var(--ph-panel);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ph-violet);
  font-size: 11.5px;
}
.px-tx-quick-item .v .mono { font-size: 11.5px; }
.px-tx-quick-item .muted { color: var(--ph-text-3); }

.px-tx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.px-tx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 6px;
  color: var(--ph-text-2);
  transition: border-color 120ms, color 120ms, background 120ms;
}
.px-tx-btn:hover { border-color: var(--ph-border-strong); color: var(--ph-text); }
.px-tx-btn:disabled,
.px-tx-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}
.px-tx-btn:disabled:hover,
.px-tx-btn[aria-disabled="true"]:hover {
  border-color: var(--ph-border);
  color: var(--ph-text-2);
}
.px-tx-btn.primary {
  background: var(--ph-text);
  color: var(--ph-on-ink);
  border-color: var(--ph-text);
}
.px-tx-btn.primary:hover { background: var(--ph-ink-hover); color: var(--ph-on-ink); }
.px-tx-btn.primary:disabled,
.px-tx-btn.primary[aria-disabled="true"] {
  background: var(--ph-text);
  border-color: var(--ph-text);
  color: var(--ph-on-ink);
}
.px-tx-btn.primary:disabled:hover,
.px-tx-btn.primary[aria-disabled="true"]:hover {
  background: var(--ph-text);
  border-color: var(--ph-text);
  color: var(--ph-on-ink);
}

/* Sections */
.px-tx-section {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  padding: 28px 32px;
}
.px-tx-section-head {
  margin-bottom: 22px;
}
.px-tx-section-head h2 {
  margin: 0;
  font-family: var(--ph-ff-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.px-tx-section-sub {
  display: block;
  font-family: var(--ph-ff-mono);
  font-size: 12.5px;
  color: var(--ph-text-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
  max-width: 68ch;
}

/* Flow viz */
.px-tx-flow {
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  overflow: hidden;
}
.px-tx-flow-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding: 28px 32px;
  align-items: stretch;
}
.px-tx-flow-side { display: flex; flex-direction: column; gap: 18px; }
.px-tx-party {
  display: flex;
  align-items: center;
  gap: 12px;
}
.px-tx-party.right { justify-content: flex-end; }
.px-tx-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ph-text);
  color: var(--ph-on-ink);
  display: grid; place-items: center;
  font-family: var(--ph-ff-serif);
  font-weight: 500;
  font-size: 17px;
  flex-shrink: 0;
}
.px-tx-avatar.pool { background: var(--ph-violet); font-size: 18px; }
.px-tx-party-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.px-tx-party-addr {
  font-size: 11.5px;
  color: var(--ph-text-3);
  margin-top: 1px;
}
.px-tx-deltas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.px-tx-delta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
}
.px-tx-delta .amt {
  font-family: var(--ph-ff-mono);
  font-size: 14px;
  font-weight: 500;
}
.px-tx-delta .usd {
  font-size: 11.5px;
  color: var(--ph-text-3);
}
.px-tx-delta.in { border-color: color-mix(in srgb, var(--ph-green) 42%, var(--ph-border)); background: color-mix(in srgb, var(--ph-green) 7%, var(--ph-surf)); }
.px-tx-delta.in .amt { color: var(--ph-green); }
.px-tx-delta.out { border-color: color-mix(in srgb, var(--ph-accent-ink) 42%, var(--ph-border)); background: color-mix(in srgb, var(--ph-accent-ink) 7%, var(--ph-surf)); }
.px-tx-delta.out .amt { color: var(--ph-accent-ink); }

.px-tx-flow-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  padding: 0 8px;
}
.px-tx-flow-rail {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}
.px-tx-flow-pin {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ph-violet);
  flex-shrink: 0;
}
.px-tx-flow-pin.start { background: var(--ph-accent); }
.px-tx-flow-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--ph-accent), var(--ph-violet));
  border-radius: 1px;
}
.px-tx-flow-via {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.px-tx-flow-protocol {
  display: flex;
  align-items: center;
  gap: 10px;
}
.px-tx-flow-logo {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ph-violet);
  color: var(--ph-on-ink);
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.px-tx-flow-name {
  font-size: 13px;
  font-weight: 600;
}
.px-tx-flow-pool {
  font-size: 10.5px;
  color: var(--ph-text-3);
  margin-top: 1px;
}
.px-tx-flow-rate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--ph-border);
}
.px-tx-flow-rate .k {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  color: var(--ph-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.px-tx-flow-rate .v {
  font-size: 12.5px;
  color: var(--ph-text);
}
.px-tx-flow-rate .v .mono { font-size: 12px; }

.px-tx-flow-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ph-border);
  background: var(--ph-surf);
}
.px-tx-flow-foot-item {
  padding: 14px 20px;
  border-right: 1px solid var(--ph-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.px-tx-flow-foot-item:last-child { border-right: none; }
.px-tx-flow-foot-item .k {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-text-3);
  font-weight: 600;
}
.px-tx-flow-foot-item .v {
  font-size: 13px;
  color: var(--ph-text);
}
.px-tx-flow-foot-item .v .mono { font-size: 12px; }
.px-tx-flow-foot-item .muted { color: var(--ph-text-3); }

/* Detail tabs */
.px-tx-detail {
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  overflow: hidden;
}
.px-tx-detail-inner {
  display: flex;
  flex-direction: column;
}
.px-tx-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--ph-border);
}
.px-tx-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px 12px;
  color: var(--ph-text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.px-tx-tab:hover { color: var(--ph-text-2); }
.px-tx-tab.active { color: var(--ph-text); border-bottom-color: var(--ph-accent); }
.px-tx-tab-c {
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  background: var(--ph-panel);
  padding: 1px 6px;
  border-radius: 8px;
  color: var(--ph-text-3);
}
.px-tx-tab.active .px-tx-tab-c { background: var(--ph-cream); color: var(--ph-accent-ink); }
.px-tx-detail-body { padding: 28px 32px; }

/* Ops view */
.px-tx-ops { display: flex; flex-direction: column; gap: 10px; }
.px-tx-op {
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  background: var(--ph-surf);
  overflow: hidden;
}
.px-tx-op-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ph-bg);
}
.px-tx-op.has-body .px-tx-op-head { border-bottom: 1px solid var(--ph-border); }
.px-tx-op-num {
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ph-text-3);
  padding-top: 3px;
}
.px-tx-op-titles { flex: 1; min-width: 0; }
.px-tx-op-titles h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.px-tx-op-titles h3 code {
  background: rgba(94, 79, 168, 0.12);
  color: var(--ph-violet);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}
.px-tx-op-titles p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  overflow-wrap: anywhere;
}
.px-tx-op-status {
  flex-shrink: 0;
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}
.px-tx-op-status.ok {
  background: rgba(53, 122, 78, 0.12);
  color: var(--ph-green);
}
.px-tx-op-status.failed {
  background: color-mix(in oklch, var(--ph-red) 11%, transparent);
  color: var(--ph-red);
}
.px-tx-op-status.rolled-back {
  background: color-mix(in oklch, var(--ph-amber) 13%, transparent);
  color: color-mix(in oklch, var(--ph-amber) 78%, var(--ph-text));
}
.px-tx-op-status.not-executed,
.px-tx-op-status.unknown {
  border: 1px solid var(--ph-border);
  background: var(--ph-panel);
  color: var(--ph-text-3);
}
.px-tx-op-body { padding: 11px 16px 12px; }
.px-tx-op-summary {
  max-width: 75ch;
  color: var(--ph-text);
  font-size: 13px;
  line-height: 1.45;
}
.px-tx-op-detail {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--ph-border);
  font-size: 12.5px;
}
.px-tx-op-detail .k {
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  color: var(--ph-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.px-tx-op-detail .v { min-width: 0; color: var(--ph-text); line-height: 1.45; }
.px-tx-op-detail .v b { font-weight: 600; }
.px-tx-op-detail .v code {
  background: rgba(94, 79, 168, 0.10);
  color: var(--ph-violet);
  padding: 2px 8px;
  border-radius: 4px;
}
.px-tx-op-detail .v .mono { font-size: 12px; }
.px-tx-op-detail .muted { color: var(--ph-text-3); margin-left: 8px; }
.px-tx-op-result {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(53, 122, 78, 0.06);
  border: 1px solid rgba(53, 122, 78, 0.18);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  font-size: 13px;
}
.px-tx-op-result .k {
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  color: var(--ph-green);
  font-weight: 600;
}
.px-tx-op-result .v .mono { font-size: 12px; }
.px-tx-op-result .muted { color: var(--ph-text-3); margin-left: 6px; }

/* Events */
.px-tx-events { display: flex; flex-direction: column; gap: 14px; }
.px-tx-events-note {
  background: var(--ph-cream);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--ph-text);
  line-height: 1.55;
}
.px-tx-events-note b { font-weight: 600; }
.px-tx-events-note code {
  background: rgba(94, 79, 168, 0.14);
  color: var(--ph-violet);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
}
.px-tx-event {
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 16px 20px;
}
.px-tx-event-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.px-tx-event-num {
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  color: var(--ph-text-3);
  font-weight: 600;
}
.px-tx-event-name {
  background: rgba(94, 79, 168, 0.12);
  color: var(--ph-violet);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
}
.px-tx-event-transfer .px-tx-event-name { background: rgba(31, 78, 95, 0.10); color: var(--ph-teal); }
.px-tx-event-fee .px-tx-event-name { background: rgba(185, 132, 41, 0.14); color: var(--ph-amber); }
.px-tx-event-from { font-size: 12.5px; color: var(--ph-text-3); }
.px-tx-event-from b { color: var(--ph-text); font-weight: 600; }
.px-tx-event-from .mono { font-size: 11.5px; }
.px-tx-event-summary {
  font-size: 14px;
  color: var(--ph-text);
  margin-bottom: 12px;
  padding-left: 4px;
}
.px-tx-event-summary b { font-weight: 600; }
.px-tx-event-summary .mono { font-family: var(--ph-ff-mono); font-size: 13px; }
.px-tx-event-raw {
  background: var(--ph-bg);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
}
.px-tx-event-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--ph-border);
}
.px-tx-event-row:last-child { border-bottom: none; }
.px-tx-event-row .k {
  font-family: var(--ph-ff-mono);
  color: var(--ph-text-3);
}
.px-tx-event-row .v .mono { font-size: 12px; color: var(--ph-text-2); }

/* Balance */
.px-tx-balance-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  overflow: hidden;
}
.px-tx-bal-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 0.9fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ph-border);
  font-size: 13px;
  align-items: center;
}
.px-tx-bal-row:last-child { border-bottom: none; }
.px-tx-bal-row.px-tx-bal-th {
  background: var(--ph-bg);
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-text-3);
  font-weight: 600;
}
.px-tx-bal-row.px-tx-bal-th span { padding: 0; }
.px-tx-bal-row .r { text-align: right; }
.px-tx-bal-row b { font-weight: 600; }
.px-tx-bal-row .muted { color: var(--ph-text-3); }
.px-tx-bal-row .delta-in { color: var(--ph-green); font-weight: 600; }
.px-tx-bal-row .delta-out { color: var(--ph-accent-ink); font-weight: 600; }

/* Raw */
.px-tx-raw { display: flex; flex-direction: column; gap: 14px; }
.px-tx-raw-tabs {
  display: inline-flex;
  background: var(--ph-panel);
  border-radius: 6px;
  padding: 3px;
  align-self: flex-start;
}
.px-tx-raw-tabs button {
  font-family: var(--ph-ff-mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 4px;
  color: var(--ph-text-3);
  font-weight: 500;
}
.px-tx-raw-tabs button.active { background: var(--ph-surf); color: var(--ph-text); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.px-tx-raw-pre {
  margin: 0;
  background: #0F0F0E;
  color: rgba(255,255,255,0.85);
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  line-height: 1.7;
  padding: 22px 24px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
}

/* Responsive */
@media (max-width: 1100px) {
  .px-tx-page-inner { grid-template-columns: 1fr; }
  .px-tx-side { position: static; order: 2; }
  .px-tx-flow-card { grid-template-columns: 1fr; gap: 18px; }
  .px-tx-flow-mid { width: 100%; }
  .px-tx-flow-foot { grid-template-columns: 1fr 1fr; }
  .px-tx-flow-foot-item:nth-child(2n) { border-right: none; }
  .px-tx-flow-foot-item:nth-child(-n+2) { border-bottom: 1px solid var(--ph-border); }
  .px-tx-quick { grid-template-columns: 1fr 1fr; }
  .px-tx-quick-item:nth-child(2n) { border-right: none; }
  .px-tx-quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--ph-border); }
}
@media (max-width: 720px) {
  .px-tx-search { display: none; }
  .px-tx-page { padding: 0; }
  .px-tx-page-inner { padding: 24px 20px 48px; }
  .px-tx-headline { padding: 24px 22px; }
  .px-tx-section { padding: 22px 20px; }
  .px-tx-detail-body { padding: 20px 18px; }
  .px-tx-headline-top .px-tx-meta { width: 100%; margin-left: 0; }
  .px-tx-op-result { grid-template-columns: 1fr; gap: 4px; }
  .px-tx-bal-row { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
  .px-tx-bal-row span:nth-child(3), .px-tx-bal-row span:nth-child(4) { display: none; }
}

/* Transaction v2 archetype heroes */
.px-tx-hero-failure .px-tx-status { color: var(--ph-accent-ink); }
.px-tx-hero-failure .px-tx-status-dot { background: var(--ph-accent-ink); box-shadow: 0 0 0 3px rgba(217, 82, 30, 0.14); }
.px-hero-card { overflow: hidden; }
.px-hero-rel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.px-hero-arrow { color: var(--ph-text-3); font-family: var(--ph-ff-mono); font-size: 12px; }
.px-hero-summary {
  background: var(--ph-cream);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  color: var(--ph-text-2);
  line-height: 1.6;
}
.px-hero-summary b { color: var(--ph-text); font-weight: 600; }
.px-hero-summary code { font-family: var(--ph-ff-mono); color: var(--ph-violet); }
.px-hero-generic { padding: 0; }
.px-hero-generic-head {
  align-items: baseline;
  margin: 0;
  padding: 24px 32px 14px;
}
.px-hero-generic-head .px-tx-section-sub { margin-top: 0; }
.px-hero-generic .px-hero-summary {
  border-radius: 0;
  margin: 0;
  padding: 18px 32px;
}
.px-hero-generic .px-hero-summary-copy { max-width: 78ch; }
.px-hero-entries { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.px-hero-entry { border: 1px solid var(--ph-border); border-radius: 10px; overflow: hidden; background: var(--ph-surf); }
.px-hero-entry .head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ph-bg);
  border-bottom: 1px solid var(--ph-border);
}
.px-hero-entry .head span { font-family: var(--ph-ff-mono); font-size: 11px; color: var(--ph-text-3); text-transform: uppercase; letter-spacing: .08em; }
.px-hero-entry .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.px-hero-entry .ba > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.px-hero-entry .ba > div:first-child { border-right: 1px solid var(--ph-border); }
.px-hero-entry .k { font-family: var(--ph-ff-mono); font-size: 10.5px; color: var(--ph-text-3); text-transform: uppercase; letter-spacing: .08em; }
.px-hero-entry .v { font-size: 13px; color: var(--ph-text); overflow-wrap: anywhere; }
.px-hero-life .px-hero-summary { background: rgba(53, 122, 78, 0.08); }
.px-hero-fail .px-tx-section-head h2 { color: var(--ph-accent-ink); }
.px-hero-fail-banner {
  display: flex;
  gap: 14px;
  border: 1px solid rgba(217, 82, 30, 0.22);
  background: rgba(217, 82, 30, 0.07);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.px-hero-fail-banner .glyph {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ph-accent-ink);
  color: var(--ph-on-ink);
  display: grid; place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.px-hero-fail-banner p { margin: 6px 0 0; color: var(--ph-text-2); }
.px-hero-fail-copy { min-width: 0; }
.px-hero-fail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  color: var(--ph-text-2);
  font-size: 12px;
}
.px-hero-fail-meta code {
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--ph-red) 9%, var(--ph-surf));
  color: var(--ph-red);
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
}
.px-hero-evidence-state {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: var(--ph-surf);
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.px-hero-evidence-state.is-ready { color: var(--ph-green); border-color: color-mix(in oklch, var(--ph-green) 30%, var(--ph-border)); }
.px-hero-evidence-state.is-partial,
.px-hero-evidence-state.is-stale { color: color-mix(in oklch, var(--ph-amber) 78%, var(--ph-text)); border-color: color-mix(in oklch, var(--ph-amber) 34%, var(--ph-border)); }
.px-hero-evidence-state.is-category,
.px-hero-evidence-state.is-unresolved { color: color-mix(in oklch, var(--ph-amber) 78%, var(--ph-text)); border-color: color-mix(in oklch, var(--ph-amber) 34%, var(--ph-border)); }
.px-hero-evidence-state.is-exact { color: var(--ph-green); border-color: color-mix(in oklch, var(--ph-green) 30%, var(--ph-border)); }
.px-hero-detail-grid span {
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.px-hero-disclosure { border-top: 1px solid var(--ph-border); }
.px-hero-disclosure:last-child { border-bottom: 1px solid var(--ph-border); }
.px-hero-disclosure summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--ph-text-2);
  font-size: 12px;
  font-weight: 600;
  list-style-position: inside;
}
.px-hero-disclosure summary:hover { color: var(--ph-text); }
.px-hero-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  padding: 2px 0 16px 18px;
}
.px-hero-detail-grid > div { display: grid; gap: 5px; min-width: 0; }
.px-hero-detail-grid .wide { grid-column: 1 / -1; }
.px-hero-detail-grid b,
.px-hero-detail-grid code { overflow-wrap: anywhere; }
.px-hero-detail-args { display: flex; flex-wrap: wrap; gap: 6px; }
.px-hero-detail-args code {
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ph-bg);
  color: var(--ph-violet);
  font-family: var(--ph-ff-mono);
  font-size: 11px;
}
.px-hero-fail-args {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  background: var(--ph-bg);
}
.px-hero-fail-args > span {
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.px-hero-fail-args > div { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.px-hero-fail-args code {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ph-surf);
  color: var(--ph-violet);
  font-family: var(--ph-ff-mono);
  font-size: 11px;
}
.px-hero-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.px-hero-frame {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--ph-surf);
}
.px-hero-frame.failed { border-color: rgba(217, 82, 30, 0.28); background: rgba(217, 82, 30, 0.05); }
.px-hero-frame > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.px-hero-frame em { margin-left: auto; font-style: normal; font-family: var(--ph-ff-mono); font-size: 11px; color: var(--ph-text-3); }
.px-hero-frame.failed em { color: var(--ph-accent-ink); font-weight: 600; }
.px-hero-caveats {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklch, var(--ph-amber) 34%, var(--ph-border));
  border-radius: 10px;
  background: color-mix(in oklch, var(--ph-amber) 7%, var(--ph-surf));
}
.px-hero-caveats b { color: var(--ph-text); font-size: 12px; }
.px-hero-caveats ul { margin: 5px 0 0; padding-left: 18px; color: var(--ph-text-2); font-size: 12px; line-height: 1.5; }
@media (max-width: 720px) {
  .px-hero-generic { padding: 0; }
  .px-hero-generic-head {
    align-items: flex-start;
    padding: 20px 20px 14px;
  }
  .px-hero-generic-head .px-tx-section-sub {
    width: 100%;
    text-align: left;
  }
  .px-hero-generic .px-hero-summary { padding: 16px 20px; }
  .px-hero-entry .ba { grid-template-columns: 1fr; }
  .px-hero-entry .ba > div:first-child { border-right: 0; border-bottom: 1px solid var(--ph-border); }
  .px-hero-frame { align-items: stretch; flex-direction: column; gap: 4px; }
  .px-hero-frame em { margin-left: 0; }
  .px-hero-fail-args { grid-template-columns: 1fr; gap: 7px; }
  .px-hero-detail-grid { grid-template-columns: 1fr; padding-left: 0; }
  .px-hero-detail-grid .wide { grid-column: auto; }
}

/* Ledger detail polish overrides: keep microcopy readable without loosening the dense data layout. */
.px-tx-side-sub,
.px-share-platform,
.px-share-foot,
.px-lg-stood-link,
.px-lg-spot-item .meta,
.px-lg-txc-meta,
.px-lg-txc-fee,
.px-lg-acct-deltas li {
  font-size: 12px;
}

.px-lg-txc-head,
.px-tx-side-body,
.px-lg-spot-because,
.px-lg-stood-card p {
  max-width: 68ch;
}

.px-lg-h1 { max-width: 22em; }

.px-lg-nav-label,
.px-share-eyebrow,
.px-share-preview-cap,
.px-share-foot .kbd,
.px-lg-comp-seg .lab,
.px-lg-stood-tag,
.px-lg-spot-x402,
.px-lg-filter-c,
.px-lg-txc-num,
.px-lg-txc-tags .tag,
.px-lg-txc-tags .tag-proto,
.px-lg-txc-status,
.px-lg-acct-meta .mono,
.px-lg-acct-touched .l,
.px-lg-spark-tip,
.px-lg-spark-tip .muted,
.px-tx-side-link,
.px-tx-rel-s {
  font-size: 12px;
}

.px-lg-nav-label,
.px-share-eyebrow,
.px-lg-comp-seg .lab,
.px-lg-stood-tag,
.px-lg-spot-x402,
.px-lg-txc-num,
.px-lg-txc-tags .tag,
.px-lg-acct-touched .l {
  letter-spacing: 0.05em;
}

/* =========================================================================
   Contract detail v2 — shares Prism v2 ledger/transaction visual language.
   ========================================================================= */
.px-cn-id {
  padding: 0 !important;
  background: var(--ph-surf) !important;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  overflow: hidden;
}
.px-cn-id-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px;
}
.px-cn-id-icon { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.px-cn-icon-shape {
  width: 110px; height: 110px;
  background: linear-gradient(135deg, var(--ph-cream) 0%, var(--ph-surf) 100%);
  border: 1px solid var(--ph-border);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-violet);
}
.px-cn-icon-shape svg { width: 56px; height: 56px; }
.px-cn-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ph-ff-mono); font-size: 10.5px; font-weight: 600;
  color: var(--ph-green); background: rgba(53, 122, 78, 0.08);
  padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}
.px-cn-id-meta { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.px-cn-id-row1 { display: flex; flex-wrap: wrap; gap: 6px; }
.px-cn-tag {
  font-family: var(--ph-ff-mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 9px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.px-cn-tag.protocol { background: var(--ph-violet); color: var(--ph-on-ink); }
.px-cn-tag.kind { background: var(--ph-cream); color: var(--ph-text); }
.px-cn-tag.wasm { background: var(--ph-panel); color: var(--ph-text-2); border: 1px solid var(--ph-border); }
.px-cn-tag.live { background: rgba(53, 122, 78, 0.08); color: var(--ph-green); text-transform: none; letter-spacing: 0; font-size: 11px; font-family: var(--ph-ff-sans); font-weight: 500; }
.px-cn-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ph-green); box-shadow: 0 0 0 0 rgba(53, 122, 78, 0.5); animation: cnpulse 1.6s infinite; }
@keyframes cnpulse { 0% { box-shadow: 0 0 0 0 rgba(53, 122, 78, 0.5); } 70% { box-shadow: 0 0 0 6px rgba(53, 122, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 122, 78, 0); } }
.px-cn-h1 { margin: 0; font-family: var(--ph-ff-serif); font-size: clamp(30px, 3.2vw, 42px); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.px-cn-id-blurb { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ph-text-2); max-width: 720px; text-wrap: pretty; }
.px-cn-addr { display: inline-flex; align-items: center; gap: 10px; background: var(--ph-bg); border: 1px solid var(--ph-border); border-radius: 8px; padding: 8px 12px; width: fit-content; max-width: 100%; }
.px-cn-addr .k { font-family: var(--ph-ff-mono); font-size: 10.5px; font-weight: 600; color: var(--ph-text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.px-cn-addr code { font-family: var(--ph-ff-mono); font-size: 12px; color: var(--ph-text); word-break: break-all; }
.px-cn-copy { color: var(--ph-text-3); padding: 2px; display: inline-flex; }
.px-cn-copy:hover { color: var(--ph-text); }
.px-cn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.px-cn-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ph-border); border: 1px solid var(--ph-border); border-radius: 12px; overflow: hidden; }
.px-cn-trust-item { background: var(--ph-surf); padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px; }
.px-cn-trust-icon { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.px-cn-trust-item.ok .px-cn-trust-icon { background: rgba(53, 122, 78, 0.1); color: var(--ph-green); }
.px-cn-trust-item.warn .px-cn-trust-icon { background: rgba(185, 132, 41, 0.12); color: var(--ph-amber); }
.px-cn-trust-item .k { font-size: 13px; font-weight: 600; color: var(--ph-text); margin-bottom: 2px; }
.px-cn-trust-item .v { font-size: 12px; color: var(--ph-text-2); line-height: 1.4; }
.px-cn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.px-cn-stat { background: var(--ph-bg); border: 1px solid var(--ph-border); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.px-cn-stat .k { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ph-text-3); font-weight: 600; }
.px-cn-stat .v { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.px-cn-stat .d { font-size: 11.5px; font-family: var(--ph-ff-mono); color: var(--ph-text-3); }
.px-cn-spark { width: 100%; height: 36px; margin-top: 6px; }
.px-cn-panel { display: block; padding: 24px 0 0; }
.px-tx-detail-body .px-cn-panel { padding: 0; }
.px-cn-fns, .px-cn-calls, .px-cn-storage, .px-cn-code { border: 1px solid var(--ph-border); border-radius: 10px; overflow: hidden; background: var(--ph-surf); }
.px-cn-fns-head { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(260px, 2fr) minmax(80px, .6fr) 80px; gap: 16px; padding: 11px 18px; background: var(--ph-cream); border-bottom: 1px solid var(--ph-border); font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ph-text-3); font-weight: 600; }
.px-cn-fn { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(260px, 2fr) minmax(80px, .6fr) 80px; gap: 16px; align-items: start; padding: 15px 18px; border-top: 1px solid var(--ph-border); }
.px-cn-fn:first-of-type { border-top: 0; }
.px-cn-fn code { font-family: var(--ph-ff-mono); color: var(--ph-violet); font-weight: 600; }
.px-cn-fn div span { display: block; margin-top: 2px; font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ph-text-3); }
.px-cn-fn p { margin: 0; color: var(--ph-text-2); font-size: 13px; line-height: 1.5; }
.px-cn-fn b, .px-cn-fn em { font-family: var(--ph-ff-mono); font-size: 12px; font-style: normal; color: var(--ph-text); font-weight: 500; }
.px-cn-call { display: grid; grid-template-columns: 140px minmax(0,1fr) 120px 80px; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--ph-border); }
.px-cn-call:first-child { border-top: 0; }
.px-cn-call:hover { background: var(--ph-bg); }
.px-cn-call .fn { color: var(--ph-violet); font-weight: 600; }
.px-cn-call .summary { color: var(--ph-text-2); }
.px-cn-call .caller, .px-cn-call .age { color: var(--ph-text-3); font-size: 12px; }
.px-cn-store { display: grid; grid-template-columns: minmax(0,1fr) 120px 90px 90px; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--ph-border); }
.px-cn-store:first-child { border-top: 0; }
.px-cn-store code { font-family: var(--ph-ff-mono); font-size: 12px; color: var(--ph-text); }
.px-cn-store span, .px-cn-store b, .px-cn-store em { font-size: 12px; color: var(--ph-text-2); font-style: normal; font-weight: 500; }
.px-cn-code-meta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(120px, .5fr) minmax(120px, .5fr); gap: 1px; background: var(--ph-border); border-bottom: 1px solid var(--ph-border); }
.px-cn-code-meta div { min-width: 0; background: var(--ph-cream); padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.px-cn-code-meta span { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ph-text-3); }
.px-cn-code-meta code, .px-cn-code-meta b { font-family: var(--ph-ff-mono); font-size: 12px; color: var(--ph-text); font-weight: 500; overflow-wrap: anywhere; }
.px-cn-code pre { margin: 0; padding: 18px; overflow-x: auto; background: var(--ph-bg); color: var(--ph-text); }
.px-cn-code pre code { font-family: var(--ph-ff-mono); font-size: 12px; line-height: 1.55; }

/* Authoritative contract interface and executable artifact. */
.px-cn-iface,
.px-cn-artifact {
  overflow: hidden;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  background: var(--ph-surf);
}
.px-cn-iface .eyebrow,
.px-cn-artifact .eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.px-cn-iface-head,
.px-cn-artifact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
}
.px-cn-iface-head h3,
.px-cn-artifact-head h3 {
  margin: 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-serif);
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -.015em;
}
.px-cn-iface-head p,
.px-cn-artifact-head p {
  max-width: 66ch;
  margin: 5px 0 0;
  color: var(--ph-text-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.px-cn-iface-kind {
  flex: 0 0 auto;
  border: 1px solid rgba(94, 79, 168, .23);
  border-radius: 999px;
  background: rgba(94, 79, 168, .07);
  color: var(--ph-violet);
  padding: 5px 10px;
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  font-weight: 600;
}
.px-cn-iface-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
  background: var(--ph-border);
  gap: 1px;
}
.px-cn-iface-stats > div {
  min-width: 0;
  padding: 13px 18px;
  background: var(--ph-cream);
}
.px-cn-iface-stats strong,
.px-cn-iface-stats span { display: block; }
.px-cn-iface-stats strong {
  color: var(--ph-text);
  font-family: var(--ph-ff-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.px-cn-iface-stats span {
  margin-top: 2px;
  color: var(--ph-text-3);
  font-size: 10.5px;
}
.px-cn-iface-section { padding: 20px; border-top: 1px solid var(--ph-border); }
.px-cn-iface-stats + .px-cn-iface-section { border-top: 0; }
.px-cn-iface-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.px-cn-iface-section-head h4 { margin: 0; color: var(--ph-text); font-size: 14px; font-weight: 650; }
.px-cn-iface-section-head p { margin: 3px 0 0; color: var(--ph-text-3); font-size: 11.5px; line-height: 1.45; }
.px-cn-iface-section-head > span {
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.px-cn-iface-list,
.px-cn-iface-types { overflow: hidden; border: 1px solid var(--ph-border); border-radius: 8px; }
.px-cn-iface-fn,
.px-cn-iface-type { border-top: 1px solid var(--ph-border); background: var(--ph-surf); }
.px-cn-iface-fn:first-child,
.px-cn-iface-type:first-child { border-top: 0; }
.px-cn-iface-fn > summary,
.px-cn-iface-type > summary {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}
.px-cn-iface-fn > summary::-webkit-details-marker,
.px-cn-iface-type > summary::-webkit-details-marker { display: none; }
.px-cn-iface-fn > summary:hover,
.px-cn-iface-type > summary:hover,
.px-cn-iface-fn[open] > summary,
.px-cn-iface-type[open] > summary { background: var(--ph-bg); }
.px-cn-iface-fn > summary:focus-visible,
.px-cn-iface-type > summary:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: -2px; }
.px-cn-iface-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--ph-text-3);
  border-bottom: 1.5px solid var(--ph-text-3);
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.px-cn-iface-fn[open] > summary .px-cn-iface-chevron,
.px-cn-iface-type[open] > summary .px-cn-iface-chevron { transform: rotate(45deg); }
.px-cn-iface-fn > summary code {
  min-width: 0;
  color: var(--ph-violet);
  font-family: var(--ph-ff-mono);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.px-cn-iface-observed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--ph-green);
  font-family: var(--ph-ff-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.px-cn-iface-observed i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.px-cn-iface-fn-body,
.px-cn-iface-type-body { padding: 0 14px 14px 31px; background: var(--ph-bg); }
.px-cn-iface-doc { margin: 0 0 12px; max-width: 72ch; color: var(--ph-text-2); font-size: 12.5px; line-height: 1.55; }
.px-cn-iface-io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-cn-iface-io > div { overflow: hidden; border: 1px solid var(--ph-border); border-radius: 7px; background: var(--ph-surf); }
.px-cn-iface-io .label {
  display: block;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ph-border);
  background: var(--ph-cream);
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.px-cn-iface-value {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-top: 1px solid var(--ph-border);
  color: var(--ph-text-2);
  font-family: var(--ph-ff-mono);
  font-size: 11px;
}
.px-cn-iface-value:nth-child(2) { border-top: 0; }
.px-cn-iface-value code { color: var(--ph-text); }
.px-cn-iface-value span { overflow-wrap: anywhere; text-align: right; }
.px-cn-iface-none { display: block; padding: 9px 10px; color: var(--ph-text-3); font-size: 11.5px; }
.px-cn-iface-type > summary { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 8px; }
.px-cn-iface-type > summary code { color: var(--ph-text); font-family: var(--ph-ff-mono); font-size: 12px; font-weight: 600; }
.px-cn-iface-type > summary > span:nth-child(3) { color: var(--ph-text-3); font-family: var(--ph-ff-mono); font-size: 10.5px; }
.px-cn-iface-type-kind {
  color: var(--ph-violet);
  font-family: var(--ph-ff-mono);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.px-cn-iface-member {
  display: grid;
  grid-template-columns: minmax(100px, .5fr) minmax(0, 1fr);
  gap: 3px 14px;
  padding: 8px 0;
  border-top: 1px solid var(--ph-border);
  color: var(--ph-text-2);
  font-family: var(--ph-ff-mono);
  font-size: 11px;
}
.px-cn-iface-member:first-of-type { border-top: 0; }
.px-cn-iface-member code { color: var(--ph-text); font-weight: 550; }
.px-cn-iface-member span { overflow-wrap: anywhere; }
.px-cn-iface-member small { grid-column: 1 / -1; color: var(--ph-text-3); font-family: var(--ph-ff-sans); font-size: 11px; }
.px-cn-iface-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px 20px;
  border-top: 1px solid rgba(185, 132, 41, .3);
  background: rgba(185, 132, 41, .06);
}
.px-cn-iface-evidence h4 { margin: 0; color: var(--ph-text); font-size: 13px; }
.px-cn-iface-evidence p { margin: 4px 0 0; color: var(--ph-text-2); font-size: 11.5px; line-height: 1.5; }
.px-cn-iface-evidence-names { display: flex; flex-wrap: wrap; gap: 6px; }
.px-cn-iface-evidence-names code { border: 1px solid rgba(185, 132, 41, .26); border-radius: 4px; background: var(--ph-surf); color: var(--ph-text); padding: 4px 7px; font-family: var(--ph-ff-mono); font-size: 10.5px; }
.px-cn-artifact-head { justify-content: flex-start; border-bottom: 1px solid var(--ph-border); }
.px-cn-artifact-mark {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(53, 122, 78, .09);
  color: var(--ph-green);
}
.px-cn-artifact-mark svg { width: 23px; height: 23px; }
.px-cn-artifact-mark.protocol { background: rgba(94, 79, 168, .09); color: var(--ph-violet); }
.px-cn-artifact-mark span { font-family: var(--ph-ff-mono); font-size: 10px; font-weight: 700; }
.px-cn-artifact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .65fr); }
.px-cn-artifact-primary { min-width: 0; padding: 20px; }
.px-cn-artifact-hash { padding: 14px; border: 1px solid var(--ph-border); border-radius: 8px; background: var(--ph-bg); }
.px-cn-artifact-hash > span { display: block; margin-bottom: 7px; color: var(--ph-text-3); font-family: var(--ph-ff-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.px-cn-artifact-hash code { color: var(--ph-text); font-family: var(--ph-ff-mono); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.px-cn-artifact-hash strong { color: var(--ph-text); font-size: 13px; }
.px-cn-artifact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.px-cn-artifact-note { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--ph-amber); background: rgba(185, 132, 41, .06); }
.px-cn-artifact-note b { color: var(--ph-text); font-size: 12px; }
.px-cn-artifact-note p { margin: 3px 0 0; color: var(--ph-text-2); font-size: 11.5px; line-height: 1.5; }
.px-cn-artifact-facts { margin: 0; border-left: 1px solid var(--ph-border); background: var(--ph-cream); }
.px-cn-artifact-facts > div,
.px-cn-artifact-provenance-grid > div { padding: 12px 16px; border-top: 1px solid var(--ph-border); }
.px-cn-artifact-facts > div:first-child { border-top: 0; }
.px-cn-artifact-facts dt,
.px-cn-artifact-provenance-grid dt { color: var(--ph-text-3); font-family: var(--ph-ff-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.px-cn-artifact-facts dd,
.px-cn-artifact-provenance-grid dd { margin: 4px 0 0; color: var(--ph-text); font-family: var(--ph-ff-mono); font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
.px-cn-artifact-provenance { padding: 18px 20px 20px; border-top: 1px solid var(--ph-border); }
.px-cn-artifact-provenance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--ph-border); border-radius: 8px; background: var(--ph-cream); }
.px-cn-artifact-provenance-grid > div { border-top: 0; border-left: 1px solid var(--ph-border); }
.px-cn-artifact-provenance-grid > div:nth-child(odd) { border-left: 0; }
.px-cn-artifact-provenance-grid > div:nth-child(n+3) { border-top: 1px solid var(--ph-border); }
.px-cn-artifact-loading { min-height: 238px; padding: 20px; }
.px-cn-artifact-skeleton {
  width: 76%;
  height: 42px;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--ph-panel);
  animation: px-balance-pulse 1.4s ease-in-out infinite;
}
.px-cn-artifact-skeleton.wide { width: 100%; height: 74px; margin-top: 0; }
.px-cn-empty { padding: 34px 18px; text-align: center; color: var(--ph-text-2); }
.px-cn-empty b { display: block; color: var(--ph-text); margin-bottom: 4px; }
.px-cn-empty p { margin: 0 auto; max-width: 42ch; }
.px-cn-empty.compact { padding: 22px 18px; border-top: 1px solid var(--ph-border); }
@media (max-width: 900px) {
  .px-cn-id-grid { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .px-cn-id-icon { align-items: flex-start; }
  .px-cn-icon-shape { width: 78px; height: 78px; border-radius: 18px; }
  .px-cn-icon-shape svg { width: 42px; height: 42px; }
  .px-cn-trust, .px-cn-stats { grid-template-columns: 1fr; }
  .px-cn-fns-head { display: none; }
  .px-cn-fn, .px-cn-call, .px-cn-store { grid-template-columns: 1fr; gap: 7px; }
  .px-cn-panel { padding-top: 10px; }
	.px-cn-iface-stats { grid-template-columns: repeat(2, 1fr); }
	.px-cn-artifact-grid { grid-template-columns: 1fr; }
	.px-cn-artifact-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ph-border); border-left: 0; }
	.px-cn-artifact-facts > div { border-top: 0; border-left: 1px solid var(--ph-border); }
	.px-cn-artifact-facts > div:nth-child(odd) { border-left: 0; }
	.px-cn-artifact-facts > div:nth-child(n+3) { border-top: 1px solid var(--ph-border); }
}

@media (max-width: 640px) {
  .px-cn-iface-head,
  .px-cn-artifact-head { padding: 16px; gap: 14px; }
  .px-cn-iface-head { flex-direction: column; }
  .px-cn-iface-stats > div { padding: 11px 13px; }
  .px-cn-iface-section,
  .px-cn-artifact-primary,
  .px-cn-artifact-provenance { padding: 16px; }
  .px-cn-iface-io,
  .px-cn-iface-evidence { grid-template-columns: 1fr; }
  .px-cn-iface-fn > summary { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; padding: 11px; }
  .px-cn-iface-fn-body,
  .px-cn-iface-type-body { padding: 0 11px 11px; }
  .px-cn-iface-observed { grid-column: 2; margin: 1px 0 0; }
  .px-cn-iface-type > summary { grid-template-columns: 54px minmax(0, 1fr) 8px; padding: 11px; }
  .px-cn-iface-type > summary > span:nth-child(3) { display: none; }
  .px-cn-iface-member { grid-template-columns: 1fr; }
  .px-cn-artifact-mark { width: 36px; height: 36px; }
  .px-cn-artifact-facts,
  .px-cn-artifact-provenance-grid { grid-template-columns: 1fr; }
  .px-cn-artifact-facts > div,
  .px-cn-artifact-provenance-grid > div { border-top: 1px solid var(--ph-border); border-left: 0; }
  .px-cn-artifact-facts > div:first-child,
  .px-cn-artifact-provenance-grid > div:first-child { border-top: 0; }
  .px-cn-artifact-actions .px-tx-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .px-cn-artifact-skeleton { animation: none; }
  .px-cn-iface-chevron { transition: none; }
}

/* ===== Contract storage explorer (State & rent panel) ===== */
.px-cn-stx { display: flex; flex-direction: column; gap: 14px; --stx-red: #A6392C; --stx-cols: minmax(0, 1.6fr) 112px 64px 108px 140px; }
.px-cn-stx-strip { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-family: var(--ph-ff-mono); }
.px-cn-stx-strip .stat { display: inline-flex; align-items: baseline; gap: 7px; }
.px-cn-stx-strip .stat .k { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ph-text-3); font-weight: 600; }
.px-cn-stx-strip .stat b { font-size: 15px; font-weight: 600; color: var(--ph-text); font-variant-numeric: tabular-nums; }
.px-cn-stx-strip .stat .usd { font-size: 12.5px; color: var(--ph-text-3); }
.px-cn-stx-strip .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ph-border-strong); }
.px-cn-stx-strip .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ph-text-2); }
.px-cn-stx-strip .pill i { width: 7px; height: 7px; border-radius: 50%; }
.px-cn-stx-strip .pill b { font-weight: 600; font-variant-numeric: tabular-nums; }
.px-cn-stx-strip .pill.healthy i { background: var(--ph-green); }
.px-cn-stx-strip .pill.healthy b { color: var(--ph-green); }
.px-cn-stx-strip .pill.atrisk i { background: var(--ph-amber); }
.px-cn-stx-strip .pill.atrisk b { color: var(--ph-amber); }
.px-cn-stx-strip .pill.critical i { background: var(--stx-red); }
.px-cn-stx-strip .pill.critical b { color: var(--stx-red); }
.px-cn-stx-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.px-cn-stx-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.px-cn-stx-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ph-border); background: var(--ph-surf); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-family: var(--ph-ff-sans); font-size: 12.5px; color: var(--ph-text-2); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.px-cn-stx-chip:hover { border-color: var(--ph-border-strong); color: var(--ph-text); }
.px-cn-stx-chip.active { background: var(--ph-text); color: var(--ph-surf); border-color: var(--ph-text); }
.px-cn-stx-chip span { font-family: var(--ph-ff-mono); font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.72; }
.px-cn-stx-search { position: relative; width: 250px; max-width: 100%; }
.px-cn-stx-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ph-text-3); pointer-events: none; }
.px-cn-stx-search input { width: 100%; background: var(--ph-surf); border: 1px solid var(--ph-border); border-radius: 8px; padding: 8px 12px 8px 32px; font-family: var(--ph-ff-mono); font-size: 12px; color: var(--ph-text); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.px-cn-stx-search input:focus { border-color: var(--ph-accent); box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.16); }
.px-cn-stx-types { border: 1px solid var(--ph-border); border-radius: 10px; background: var(--ph-surf); overflow: hidden; }
.px-cn-stx-type { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--ph-border); }
.px-cn-stx-type:first-child { border-top: 0; }
.px-cn-stx-type .name { display: inline-flex; align-items: center; gap: 9px; width: 130px; flex-shrink: 0; font-size: 13.5px; color: var(--ph-text-2); }
.px-cn-stx-type .name .sw { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.px-cn-stx-type .name .sw.instance { background: var(--ph-violet); }
.px-cn-stx-type .name .sw.persistent { background: var(--ph-teal); }
.px-cn-stx-type .name .sw.temporary { background: var(--ph-amber); }
.px-cn-stx-type .meta { display: flex; align-items: center; gap: 10px; font-family: var(--ph-ff-mono); font-size: 12px; color: var(--ph-text-3); flex-wrap: wrap; }
.px-cn-stx-type .meta b { color: var(--ph-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.px-cn-stx-type .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ph-border-strong); }
.px-cn-stx-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ph-ff-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; border-radius: 999px; padding: 3px 9px; white-space: nowrap; border: 1px solid transparent; }
.px-cn-stx-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.px-cn-stx-badge.instance { color: var(--ph-violet); background: rgba(94, 79, 168, 0.08); border-color: rgba(94, 79, 168, 0.25); }
.px-cn-stx-badge.persistent { color: var(--ph-teal); background: rgba(31, 78, 95, 0.08); border-color: rgba(31, 78, 95, 0.25); }
.px-cn-stx-badge.temporary { color: var(--ph-amber); background: rgba(185, 132, 41, 0.10); border-color: rgba(185, 132, 41, 0.30); }
.px-cn-stx-badge.healthy { color: var(--ph-green); background: rgba(53, 122, 78, 0.08); border-color: rgba(53, 122, 78, 0.25); }
.px-cn-stx-badge.atrisk { color: var(--ph-amber); background: rgba(185, 132, 41, 0.10); border-color: rgba(185, 132, 41, 0.30); }
.px-cn-stx-badge.critical { color: var(--stx-red); background: rgba(166, 57, 44, 0.08); border-color: rgba(166, 57, 44, 0.25); }
.px-cn-stx-table { border: 1px solid var(--ph-border); border-radius: 10px; background: var(--ph-surf); overflow: hidden; }
.px-cn-stx-head { display: grid; grid-template-columns: var(--stx-cols); gap: 14px; padding: 10px 18px; background: var(--ph-cream); border-bottom: 1px solid var(--ph-border); }
.px-cn-stx-head > * { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ph-text-3); font-weight: 600; text-align: left; background: none; border: 0; padding: 0; white-space: nowrap; }
.px-cn-stx-head button { cursor: pointer; }
.px-cn-stx-head button:hover { color: var(--ph-text); }
.px-cn-stx-head .num { text-align: right; }
.px-cn-stx-head .ctr { text-align: center; }
.px-cn-stx-entry { border-top: 1px solid var(--ph-border); }
.px-cn-stx-entry:first-child { border-top: 0; }
.px-cn-stx-row { display: grid; grid-template-columns: var(--stx-cols); gap: 14px; align-items: center; width: 100%; padding: 13px 18px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--ph-ff-mono); transition: background .15s ease; }
.px-cn-stx-row:hover, .px-cn-stx-entry.open .px-cn-stx-row { background: var(--ph-bg); }
.px-cn-stx-row .key { min-width: 0; }
.px-cn-stx-row .key code { display: block; font-size: 12.5px; color: var(--ph-text); font-weight: 500; overflow-wrap: anywhere; }
.px-cn-stx-row .key small { display: block; margin-top: 2px; font-family: var(--ph-ff-sans); font-size: 11px; color: var(--ph-text-3); }
.px-cn-stx-row .num { text-align: right; font-size: 12px; color: var(--ph-text-2); font-variant-numeric: tabular-nums; }
.px-cn-stx-row .ttl { text-align: right; }
.px-cn-stx-row .ttl b { display: block; font-size: 12px; color: var(--ph-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.px-cn-stx-row .ttl small { font-size: 10.5px; color: var(--ph-text-3); font-variant-numeric: tabular-nums; }
.px-cn-stx-row .health { display: flex; align-items: center; gap: 9px; justify-content: center; }
.px-cn-stx-track { width: 72px; height: 6px; border-radius: 3px; background: var(--ph-panel); overflow: hidden; flex-shrink: 0; }
.px-cn-stx-fill { display: block; height: 100%; border-radius: 3px; }
.px-cn-stx-fill.healthy { background: var(--ph-green); }
.px-cn-stx-fill.atrisk { background: var(--ph-amber); }
.px-cn-stx-fill.critical { background: var(--stx-red); }
.px-cn-stx-row .health b { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.px-cn-stx-row .health b.healthy { color: var(--ph-green); }
.px-cn-stx-row .health b.atrisk { color: var(--ph-amber); }
.px-cn-stx-row .health b.critical { color: var(--stx-red); }
.px-cn-stx-row .health b.unknown { color: var(--ph-text-3); font-weight: 400; }
.px-cn-stx-detail { padding: 16px 18px 18px; border-top: 1px dashed var(--ph-border-strong); background: var(--ph-bg); display: flex; flex-direction: column; gap: 12px; }
.px-cn-stx-detail[hidden], .px-cn-stx-entry[hidden] { display: none; }
.px-cn-stx-detail .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.px-cn-stx-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.px-cn-stx-kv > div { background: var(--ph-surf); border: 1px solid var(--ph-border); border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.px-cn-stx-kv span { font-family: var(--ph-ff-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ph-text-3); }
.px-cn-stx-kv b { font-family: var(--ph-ff-mono); font-size: 12.5px; color: var(--ph-text); font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.px-cn-stx-field .fh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.px-cn-stx-field .fh span { font-family: var(--ph-ff-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ph-text-3); }
.px-cn-stx-copy { font-family: var(--ph-ff-mono); font-size: 10.5px; background: transparent; border: 1px solid var(--ph-border); border-radius: 5px; padding: 2px 8px; cursor: pointer; color: var(--ph-text-3); transition: color .15s ease, border-color .15s ease; }
.px-cn-stx-copy:hover { color: var(--ph-text); border-color: var(--ph-border-strong); }
.px-cn-stx-field code { display: block; font-family: var(--ph-ff-mono); font-size: 12px; color: var(--ph-text); background: var(--ph-surf); border: 1px solid var(--ph-border); border-radius: 8px; padding: 9px 11px; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.5; }
.px-cn-stx-field code b { color: var(--ph-violet); font-weight: 600; }
.px-cn-stx-none { padding: 34px 18px; text-align: center; color: var(--ph-text-2); font-size: 13.5px; }
.px-cn-stx-foot { display: flex; justify-content: space-between; gap: 12px; font-family: var(--ph-ff-mono); font-size: 11px; color: var(--ph-text-3); flex-wrap: wrap; }
@media (max-width: 900px) {
  .px-cn-stx-head { display: none; }
  .px-cn-stx-row { grid-template-columns: 1fr; gap: 8px; }
  .px-cn-stx-row .num, .px-cn-stx-row .ttl { text-align: left; }
  .px-cn-stx-row .health { justify-content: flex-start; }
  .px-cn-stx-row .health b { text-align: left; }
  .px-cn-stx-search { width: 100%; }
}


/* Prism v2 G-account page */
/* Prism — Smart Account page styles.
   Pairs with prism-human / prism-tx / prism-contract chrome. */

/* ===== Identity tweaks ===== */
.px-ac-id .px-ac-icon {
  background: linear-gradient(155deg, #1a3b5c 0%, #2a5d87 100%);
  color: #cfe5ff;
  box-shadow: 0 4px 14px rgba(30, 70, 110, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.px-cn-tag.px-ac-tag-acc {
  background: #eaf3fb;
  color: #1a4d75;
  border-color: #cfe1ef;
}
.px-cn-tag.px-ac-tag-impl {
  background: #f6f1ff;
  color: #5a3aa8;
  border-color: #e1d5f7;
}

/* ===== Glance row ===== */
.px-ac-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.px-ac-gcard {
  background: #ffffff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.px-ac-gtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7f6c;
}
.px-ac-gvalue {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: #1f1a14;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.px-ac-gvalue-sm { font-size: 22px; }
.px-ac-gvalue .of {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  color: #8a7f6c;
  font-weight: 400;
}
.px-ac-gvalue .usd::before { content: ""; }
.px-ac-gsub {
  font-size: 12px;
  color: #6f6757;
  margin-top: 2px;
}
.px-ac-gbreak {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed #ebe5d8;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.px-ac-gbreak li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.px-ac-gbreak .t { color: #6f6757; }
.px-ac-gbreak .v { color: #1f1a14; font-weight: 500; }
.px-ac-gbreak .v.mono { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }

.px-ac-savatars {
  display: flex;
  margin-top: 10px;
}
.px-ac-savatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid #fff;
  margin-left: -6px;
  color: #fff;
}
.px-ac-savatar:first-child { margin-left: 0; }
.px-ac-savatar.passkey { background: #2a5d87; }
.px-ac-savatar.gaccount { background: #6b6055; }
.px-ac-savatar.caccount { background: #5a3aa8; }

.px-ac-gbar {
  height: 6px;
  background: #f1ece0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.px-ac-gbar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c47b3a 0%, #d49858 100%);
  border-radius: 3px;
}

.px-ac-pendminis {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed #ebe5d8;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.px-ac-pendminis li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.px-ac-pendminis .amt { color: #1f1a14; }
.px-ac-pendminis .sigs {
  color: #6f6757;
  background: #f5f0e3;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
}

/* ===== Rules tab ===== */
.px-ac-rules { display: flex; flex-direction: column; gap: 16px; }
.px-ac-rule-explain,
.px-ac-signer-explain {
  display: flex;
  gap: 12px;
  background: #f7f3e9;
  border: 1px solid #ebe5d8;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #4a4338;
  line-height: 1.55;
}
.px-ac-rule-explain code,
.px-ac-signer-explain code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 3px;
}
.px-ac-explain-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c47b3a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
}

.px-ac-rule-list { display: flex; flex-direction: column; gap: 14px; }

.px-ac-rule {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 12px;
  padding: 18px 22px 20px;
  position: relative;
}
.px-ac-rule.hot { border-color: #d4ad7a; box-shadow: 0 0 0 3px rgba(196, 123, 58, 0.06); }
.px-ac-rule.session { background: linear-gradient(180deg, #fff 0%, #faf6ea 100%); }

.px-ac-rule-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.px-ac-rule-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.px-ac-rule-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #8a7f6c;
}
.px-ac-rule-title h4 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: #1f1a14;
  letter-spacing: -0.005em;
}
.px-ac-rule-pill {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
}
.px-ac-rule-pill.hot { background: #fbecdc; color: #8a4a14; }
.px-ac-rule-pill.session { background: #fff4d4; color: #8a6914; }
.px-ac-rule-valid {
  font-size: 11.5px;
  color: #8a7f6c;
  font-style: italic;
}

.px-ac-rule-grid {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  gap: 0;
  align-items: stretch;
}
.px-ac-rule-col {
  background: #fbf8ef;
  border: 1px solid #ebe5d8;
  border-radius: 8px;
  padding: 12px 14px;
}
.px-ac-rule-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8ad96;
}
.px-ac-rule-lbl {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6f6757;
  margin-bottom: 8px;
}
.px-ac-rule-sublbl {
  font-weight: 400;
  text-transform: none;
  font-style: italic;
  letter-spacing: 0;
  color: #8a7f6c;
}
.px-ac-rule-scopekind,
.px-ac-rule-whocount {
  font-size: 12.5px;
  color: #1f1a14;
  font-weight: 500;
  margin-bottom: 6px;
}
.px-ac-rule-scope {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #4a4338;
  background: rgba(0,0,0,0.04);
  padding: 6px 8px;
  border-radius: 5px;
  word-break: break-all;
  line-height: 1.5;
}
.px-ac-rule-who,
.px-ac-rule-pol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.px-ac-rule-who li {
  font-size: 12px;
  color: #4a4338;
  padding: 3px 0;
}
.px-ac-rule-pol li {
  font-size: 12px;
  color: #4a4338;
  display: flex;
  align-items: center;
  gap: 7px;
}
.px-ac-rule-pol svg {
  flex-shrink: 0;
  color: #4a8c3a;
}

.px-ac-rule-add {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px dashed #c4bba5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  color: #6f6757;
  cursor: pointer;
}
.px-ac-rule-add:hover { background: #faf6ea; color: #1f1a14; }

/* ===== Signers ===== */
.px-ac-signers { display: flex; flex-direction: column; gap: 16px; }
.px-ac-signertable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  overflow: hidden;
}
.px-ac-signertable th,
.px-ac-signertable td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #efeae0;
  vertical-align: middle;
}
.px-ac-signertable th {
  background: #fbf8ef;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6757;
}
.px-ac-signertable tr:last-child td { border-bottom: none; }
.px-ac-signertable td.r,
.px-ac-signertable th.r { text-align: right; }
.px-ac-signertable .mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
}
.px-ac-signertable tr.recovery { background: #faf6ea; }

.px-ac-sigcell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.px-ac-sigicon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.px-ac-sigicon.k-passkey { background: #2a5d87; }
.px-ac-sigicon.k-gaccount { background: #6b6055; font-family: "Source Serif 4", serif; font-weight: 500; }
.px-ac-sigicon.k-caccount { background: #5a3aa8; font-family: "Source Serif 4", serif; font-weight: 500; }
.px-ac-sigicon .g, .px-ac-sigicon .c { font-size: 14px; }

.px-ac-signame {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1f1a14;
  font-size: 13px;
}
.px-ac-sigprimary {
  font-size: 10px;
  font-weight: 600;
  background: #fbecdc;
  color: #8a4a14;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.px-ac-sigwho {
  font-size: 11.5px;
  color: #8a7f6c;
  margin-top: 1px;
}
.px-ac-sigtype {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
}
.px-ac-sigtype.k-passkey { background: #eaf3fb; color: #1a4d75; }
.px-ac-sigtype.k-gaccount { background: #f0ece3; color: #5a5040; }
.px-ac-sigtype.k-caccount { background: #f6f1ff; color: #5a3aa8; }
.px-ac-sigverif { color: #4a4338; font-size: 12px; }
.px-ac-sigkey { color: #4a4338; }
.px-ac-sigactions { white-space: nowrap; text-align: right; }
.px-ac-sigactions button {
  background: transparent;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 5px 7px;
  margin-left: 4px;
  cursor: pointer;
  color: #6f6757;
}
.px-ac-sigactions button:hover { background: #faf6ea; color: #1f1a14; border-color: #c4bba5; }

/* ===== Policies ===== */
.px-ac-policies { display: flex; flex-direction: column; gap: 16px; }
.px-ac-pol {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  padding: 18px 22px 20px;
}
.px-ac-pol-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 16px;
}
.px-ac-pol-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4a4338;
  background: #f5f0e3;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.px-ac-pol-tag.mt { background: #fbecdc; color: #8a4a14; }
.px-ac-pol-tag.sk { background: #fff4d4; color: #8a6914; }
.px-ac-pol-head h4 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #1f1a14;
  letter-spacing: -0.005em;
}
.px-ac-pol-status {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.px-ac-pol-status.active { background: #e8f3e6; color: #2c5d24; }
.px-ac-pol-status.pending { background: #fbecdc; color: #8a4a14; }
.px-ac-pol-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #4a4338;
  margin: 8px 0 16px;
}
.px-ac-pol-desc code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 3px;
}
.px-ac-pol-bar {
  height: 22px;
  background: #f1ece0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.px-ac-pol-fill {
  height: 100%;
  background: linear-gradient(90deg, #c47b3a 0%, #d49858 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.px-ac-pol-fill.sk { background: linear-gradient(90deg, #b89414 0%, #d4ad3c 100%); }
.px-ac-pol-meta {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  font-size: 12px;
  color: #6f6757;
  flex-wrap: wrap;
}
.px-ac-pol-meta code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #4a4338;
}

.px-ac-pol-pending {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.px-ac-pendrow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  background: #fbf8ef;
  border: 1px solid #ebe5d8;
  border-radius: 8px;
}
.px-ac-pend-amt { font-size: 13px; color: #1f1a14; }
.px-ac-pend-amt .mono { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #4a4338; }
.px-ac-pend-meta { font-size: 11.5px; color: #8a7f6c; margin-top: 2px; }
.px-ac-pend-sigs { display: flex; align-items: center; gap: 4px; }
.px-ac-pend-sigs .sig {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.px-ac-pend-sigs .sig.signed { background: #4a8c3a; }
.px-ac-pend-sigs .sig.waiting { background: #d4cdb8; color: #6f6757; }
.px-ac-pend-count {
  font-size: 12px;
  color: #4a4338;
  margin-left: 6px;
  font-weight: 500;
}
.px-ac-pend-actions { display: flex; gap: 6px; }
.px-tx-btn.sm { padding: 5px 12px; font-size: 12px; }

/* ===== Activity ===== */
.px-ac-acttable {
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.px-ac-acthead,
.px-ac-actrow {
  display: grid;
  grid-template-columns: 110px 200px 1fr 250px 30px;
  gap: 14px;
  padding: 11px 16px;
  align-items: center;
  font-size: 12.5px;
}
.px-ac-acthead {
  background: #fbf8ef;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6757;
  padding: 10px 16px;
}
.px-ac-actrow {
  border-top: 1px solid #efeae0;
  cursor: pointer;
  transition: background 80ms ease;
  text-decoration: none;
  color: inherit;
}
.px-ac-actrow:hover { background: #faf6ea; }
.px-ac-actrow.failed { background: linear-gradient(90deg, rgba(196, 60, 30, 0.04) 0%, transparent 50%); }
.px-ac-actrow.pending { background: linear-gradient(90deg, rgba(196, 123, 58, 0.06) 0%, transparent 50%); }

.px-ac-actrule { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.px-ac-actrulepill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #1a4d75;
  background: #eaf3fb;
  padding: 1px 7px;
  border-radius: 6px;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-ac-actsigner {
  font-size: 11.5px;
  color: #6f6757;
}
.px-ac-actbody {
  color: #1f1a14;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-ac-actpol {
  font-size: 11.5px;
  color: #4a4338;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-ac-actpol .ok { color: #4a8c3a; font-size: 9px; }
.px-ac-actpol .fail { color: #c43c1e; font-size: 9px; }
.px-ac-actpol .pending { color: #c47b3a; font-size: 9px; }

/* ===== Balances ===== */
.px-ac-balances {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  overflow: hidden;
}
.px-ac-baltable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.px-ac-baltable th,
.px-ac-baltable td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #efeae0;
  vertical-align: middle;
}
.px-ac-baltable th {
  background: #fbf8ef;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6757;
}
.px-ac-baltable tr:last-child td { border-bottom: none; }
.px-ac-baltable th.r,
.px-ac-baltable td.r { text-align: right; }
.px-ac-baltable .mono { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }
.px-ac-balcell { display: flex; align-items: center; gap: 10px; }
.px-ac-balsym {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, #2a5d87 0%, #4a7da7 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 13px;
  flex-shrink: 0;
}
.px-ac-balname { color: #1f1a14; }
.px-ac-balsub { font-size: 11.5px; color: #8a7f6c; margin-top: 1px; }
.px-ac-balissuer { color: #6f6757; }
.px-ac-baltable .up { color: #2c5d24; }
.px-ac-baltable .down { color: #c43c1e; }
.px-ac-balpct { font-size: 11px; opacity: 0.8; }

/* ===== Recovery ===== */
.px-ac-recovery { display: flex; flex-direction: column; gap: 16px; }
.px-ac-rec-card {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  padding: 18px 22px 20px;
}
.px-ac-rec-card h4 {
  margin: 0 0 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #1f1a14;
  letter-spacing: -0.005em;
}
.px-ac-rec-card p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #4a4338;
}
.px-ac-rec-flow {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 16px;
}
.px-ac-rec-step {
  background: #fbf8ef;
  border: 1px solid #ebe5d8;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.px-ac-rec-stepnum {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2a5d87;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.px-ac-rec-steplbl { font-size: 13px; font-weight: 600; color: #1f1a14; }
.px-ac-rec-stepd { font-size: 12px; color: #6f6757; margin-top: 3px; line-height: 1.5; }
.px-ac-rec-stepd code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  background: rgba(0,0,0,0.05);
  padding: 1px 4px;
  border-radius: 3px;
}
.px-ac-rec-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8ad96;
  font-size: 18px;
}
.px-ac-rec-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed #ebe5d8;
}
.px-ac-rec-meta > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 13px;
}
.px-ac-rec-meta .k {
  color: #8a7f6c;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 2px;
}
.px-ac-rec-meta .v { color: #1f1a14; }
.px-ac-rec-meta code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #4a4338;
  background: rgba(0,0,0,0.04);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
}

/* ===== Right rail addition ===== */
.px-ac-compare {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.px-ac-compare li {
  padding: 10px 12px;
  background: #fbf8ef;
  border: 1px solid #ebe5d8;
  border-radius: 7px;
}
.px-ac-compare-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1f1a14;
  margin-bottom: 3px;
}
.px-ac-compare-tag {
  font-size: 10px;
  font-weight: 600;
  background: #c47b3a;
  color: #fff;
  padding: 1px 7px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.px-ac-compare-desc {
  font-size: 11.5px;
  color: #6f6757;
  display: block;
  line-height: 1.5;
}
.px-ac-compare-desc code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  background: rgba(0,0,0,0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .px-ac-glance { grid-template-columns: repeat(2, 1fr); }
  .px-ac-rule-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .px-ac-rule-arrow { transform: rotate(90deg); height: 18px; }
  .px-ac-rec-flow { grid-template-columns: 1fr; gap: 8px; }
  .px-ac-rec-flow .px-ac-rec-arrow { transform: rotate(90deg); }
  .px-ac-acthead, .px-ac-actrow {
    grid-template-columns: 90px 1fr 24px;
  }
  .px-ac-acthead > span:nth-child(3),
  .px-ac-acthead > span:nth-child(4),
  .px-ac-actrow > span:nth-child(3),
  .px-ac-actrow > span:nth-child(4) { display: none; }
}

/* Prism — Classic G-account page styles */

/* Identity */
.px-ga-id .px-ga-icon {
  background: linear-gradient(155deg, #3a4a2a 0%, #5a7a3a 100%);
  color: #e6efd4;
  box-shadow: 0 4px 14px rgba(60, 80, 40, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.px-cn-tag.px-ga-tag-acc { background: #eef4e3; color: #3a5d24; border-color: #d2dfb8; }
.px-cn-tag.px-ga-tag-thresh { background: #f7f1de; color: #6a5520; border-color: #e6dab2; }
/* Deliberately neutral, not red. A slow gateway is not the account's fault and
   not an error the reader can act on beyond retrying; styling it as a failure
   would imply something is wrong with the address they typed. */
.px-cn-tag.px-ga-tag-unknown {
  background: var(--ph-panel);
  color: var(--ph-text-2);
  border-color: var(--ph-border-strong);
}

.px-ga-unavail {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 36px 28px;
  text-align: center;
}
.px-ga-unavail-body { max-width: 52ch; }
.px-ga-unavail h2 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ph-text);
}
.px-ga-unavail p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ph-text-2);
}
.px-ga-unavail p b { color: var(--ph-text); font-weight: 600; }
.px-ga-unavail-sub { font-size: 13px !important; color: var(--ph-text-3) !important; }
.px-ga-unavail-card p {
  margin: 6px 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ph-text-2);
}

.px-ga-retry {
  margin-top: 14px;
  padding: 8px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ph-on-ink);
  background: var(--ph-text);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: background 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.px-ga-retry:hover { background: var(--ph-ink-hover); }
.px-ga-retry:focus-visible { outline: 2px solid var(--ph-cyan); outline-offset: 2px; }
.px-ga-retry.htmx-request { opacity: 0.6; pointer-events: none; }
.px-ga-verified { background: #eef4e3 !important; color: #3a5d24 !important; }
.px-ga-muxed {
  font-size: 11.5px;
  color: #8a7f6c;
  font-style: italic;
  margin-left: 12px;
}

/* Glance overrides */
.px-ga-unit {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  color: #8a7f6c;
  font-weight: 400;
  margin-left: 6px;
}
.px-ga-of {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  color: #8a7f6c;
  font-weight: 400;
}
.px-ga-trustchips {
  display: flex;
  margin-top: 12px;
  gap: 4px;
}
.px-ga-tchip {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: #f0ece3;
  color: #5a5040;
  border: 1px solid #e5e0d6;
}
.px-ga-tchip.more { background: transparent; color: #8a7f6c; }

.px-ga-thresh {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.px-ga-thresh-row {
  display: grid;
  grid-template-columns: 70px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
}
.px-ga-thresh-row .lbl { color: #4a4338; }
.px-ga-thresh-row .w { color: #6f6757; text-align: right; }
.px-ga-weightbar {
  height: 5px;
  background: #f1ece0;
  border-radius: 3px;
  overflow: hidden;
}
.px-ga-weightbar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5a7a3a 0%, #7a9a5a 100%);
  border-radius: 3px;
}

.px-ga-info-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.px-ga-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  gap: 12px;
}
.px-ga-info-row .k { color: #8a7f6c; }
.px-ga-info-row .v { color: #1f1a14; text-align: right; }
.px-ga-info-row .v.mono { font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.px-ga-muted { color: #b8ad96; font-style: italic; }

/* Trustlines */
.px-ga-trust { display: flex; flex-direction: column; gap: 16px; }
.px-ga-trusttable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  overflow: hidden;
}
.px-ga-trusttable th,
.px-ga-trusttable td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #efeae0;
  vertical-align: middle;
}
.px-ga-trusttable th {
  background: #fbf8ef;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6757;
}
.px-ga-trusttable th.r,
.px-ga-trusttable td.r { text-align: right; }
.px-ga-trusttable .mono { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }
.px-ga-trusttable tr:last-child td { border-bottom: none; }
.px-ga-trusttable tr.native { background: #fbf8ef; }

.px-ga-trustcell { display: flex; align-items: center; gap: 10px; }
.px-ga-trustsym {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(150deg, #5a7a3a 0%, #7a9a5a 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 12px;
  flex-shrink: 0;
}
.px-ga-trustsym.native { background: linear-gradient(150deg, #2a5d87 0%, #4a7da7 100%); }
.px-ga-trustcode { color: #1f1a14; font-size: 13px; }
.px-ga-trustname { font-size: 11.5px; color: #8a7f6c; margin-top: 1px; }
.px-ga-trustissuer { font-size: 12px; }
.px-ga-issuername { font-size: 11px; color: #8a7f6c; margin-top: 1px; }
.px-ga-liab.mono, .px-ga-limit.mono { color: #4a4338; }

.px-ga-trustflags { display: flex; flex-wrap: wrap; gap: 4px; }
.px-ga-flag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.px-ga-flag.ok { background: #e8f3e6; color: #2c5d24; }
.px-ga-flag.warn { background: #fbecdc; color: #8a4a14; }
.px-ga-flag.native { background: #eaf3fb; color: #1a4d75; }
.px-ga-flag.sp { background: #f6f1ff; color: #5a3aa8; }
.px-ga-issuerflag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  color: #8a4a14;
  background: rgba(196, 123, 58, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Signers */
.px-ga-signers { display: flex; flex-direction: column; gap: 16px; }
.px-ga-thresholds {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  padding: 16px 20px;
}
.px-ga-thresholds h4 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #1f1a14;
}
.px-ga-thresh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.px-ga-thresh-cell {
  background: #fbf8ef;
  border: 1px solid #ebe5d8;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.px-ga-thresh-name {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6757;
}
.px-ga-thresh-weight {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: #1f1a14;
  line-height: 1;
}
.px-ga-thresh-desc {
  font-size: 11.5px;
  color: #4a4338;
  line-height: 1.5;
  margin-top: 4px;
}

.px-ac-sigicon.px-ga-sigicon-master { background: #5a7a3a; }
.px-ac-sigicon.px-ga-sigicon-add { background: #6b6055; }
.px-ga-sigtype {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
}
.px-ga-sigtype.master { background: #eef4e3; color: #3a5d24; }
.px-ga-sigtype.added { background: #f0ece3; color: #5a5040; }

.px-ga-weightpill {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  background: #f0ece3;
  color: #5a5040;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 14px;
}
.px-ga-weightpill.hi { background: #eef4e3; color: #3a5d24; }

.px-ga-sigmath {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  padding: 16px 20px;
}
.px-ga-sigmath h4 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #1f1a14;
}
.px-ga-sigmath-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.px-ga-sigmath-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 16px;
  padding: 10px 12px;
  background: #fbf8ef;
  border: 1px solid #ebe5d8;
  border-radius: 7px;
  align-items: baseline;
  font-size: 12.5px;
}
.px-ga-sigmath-lbl {
  font-weight: 600;
  color: #1f1a14;
}
.px-ga-sigmath-detail { color: #4a4338; }
.px-ga-sigmath-eg { color: #6f6757; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }

/* Activity (op feed) */
.px-cn-calls { display: flex; flex-direction: column; }
.px-cn-calls-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e0d6;
  background: #fbf8ef;
}
.px-cn-callfilter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 9px;
  color: #6f6757;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.px-cn-callfilter.active { color: #1f1a14; background: #fff; border-color: #e5e0d6; }
.px-cn-callfilter .c { color: #8a7f6c; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; }
.px-cn-callfilter.ml { margin-left: auto; }
.px-cn-callago { display: inline-flex; align-items: center; gap: 7px; color: #6f6757; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }
.px-cn-callago .dot { width: 6px; height: 6px; border-radius: 50%; background: #8a7f6c; }
.px-cn-calls .px-ga-optable { border: 0; border-radius: 0; }
.px-cn-calls .px-ga-oprow {
  grid-template-columns: 116px 136px minmax(260px, 1fr) 96px;
  gap: 16px;
  align-items: center;
  min-height: 58px;
}
.px-cn-calls .px-ga-oprow > .px-ga-opto { display: none; }
.px-cn-calls .px-ga-opbody { line-height: 1.45; max-width: 62ch; }
.px-cn-calls .px-ga-opamt { color: #4a4338; }
.px-ga-optable {
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.px-ga-oprow {
  display: grid;
  grid-template-columns: 110px 150px 1fr 180px 200px;
  gap: 14px;
  padding: 11px 16px;
  align-items: center;
  font-size: 12.5px;
  border-top: 1px solid #efeae0;
  cursor: pointer;
  transition: background 80ms ease;
  text-decoration: none;
  color: inherit;
}
.px-ga-oprow:first-child { border-top: none; }
.px-ga-oprow:hover { background: #faf6ea; }
.px-ga-oprow.inbound { background: linear-gradient(90deg, rgba(74, 140, 58, 0.05) 0%, transparent 50%); }
.px-ga-oprow.soroban { background: linear-gradient(90deg, rgba(90, 58, 168, 0.05) 0%, transparent 50%); }

.px-ga-optype {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 500;
  background: #f0ece3;
  color: #5a5040;
  align-self: flex-start;
  width: fit-content;
}
.px-ga-optype.k-payment { background: #e8f3e6; color: #2c5d24; }
.px-ga-optype.k-path_payment { background: #e8f3e6; color: #2c5d24; }
.px-ga-optype.k-manage_offer { background: #eaf3fb; color: #1a4d75; }
.px-ga-optype.k-claimable { background: #fff4d4; color: #8a6914; }
.px-ga-optype.k-soroban { background: #f6f1ff; color: #5a3aa8; }
.px-ga-optype.k-change_trust { background: #fbecdc; color: #8a4a14; }
.px-ga-optype.k-set_options { background: #f0ece3; color: #5a5040; }

.px-ga-opbody { color: #1f1a14; font-size: 12.5px; }
.px-ga-opto {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #6f6757;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-ga-opamt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}
.px-ga-opamt.in { color: #2c5d24; }
.px-ga-opamt.out { color: #4a4338; }

/* Offers */
.px-ga-offers { display: flex; flex-direction: column; gap: 16px; }
.px-ga-offertable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  overflow: hidden;
}
.px-ga-offertable th,
.px-ga-offertable td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #efeae0;
}
.px-ga-offertable th {
  background: #fbf8ef;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6757;
}
.px-ga-offertable th.r,
.px-ga-offertable td.r { text-align: right; }
.px-ga-offertable .mono { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }
.px-ga-offertable tr:last-child td { border-bottom: none; }

.px-ga-offerside {
  display: inline-block;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.px-ga-offerside.sell { background: #fbecdc; color: #8a4a14; }
.px-ga-offerside.buy { background: #e8f3e6; color: #2c5d24; }

.px-ga-fillbar {
  display: inline-block;
  width: 90px;
  height: 5px;
  background: #f1ece0;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 8px;
}
.px-ga-fillbar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5a7a3a 0%, #7a9a5a 100%);
}
.px-ga-fillpct {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #4a4338;
}

/* Claimables */
.px-ga-claimables { display: flex; flex-direction: column; gap: 16px; }
.px-ga-claimlist { display: flex; flex-direction: column; gap: 10px; }
.px-ga-claim {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 16px;
  align-items: center;
}
.px-ga-claim-head { display: flex; flex-direction: column; gap: 6px; }
.px-ga-claim-amt {
  font-size: 16px;
  color: #1f1a14;
  font-weight: 500;
  font-family: "IBM Plex Mono", monospace;
}
.px-ga-claim-status {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
  width: fit-content;
}
.px-ga-claim-status.pending { background: #fff4d4; color: #8a6914; }
.px-ga-claim-status.timelock { background: #eaf3fb; color: #1a4d75; }
.px-ga-claim-status.expired { background: #f8e6e0; color: #8a3a1a; }

.px-ga-claim-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.px-ga-claim-meta > div {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
}
.px-ga-claim-meta .k {
  color: #8a7f6c;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.px-ga-claim-meta .v { color: #1f1a14; font-size: 12px; margin-top: 2px; }
.px-ga-claim-meta .v.mono { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }

/* Data */
.px-ga-data { display: flex; flex-direction: column; gap: 16px; }
.px-ga-datatable {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  overflow: hidden;
}
.px-ga-datarow {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid #efeae0;
  font-size: 12.5px;
  align-items: baseline;
}
.px-ga-datarow:first-child { border-top: none; }
.px-ga-datakey {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #1f1a14;
  font-weight: 500;
}
.px-ga-dataval { color: #4a4338; }
.px-ga-datab64 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #8a7f6c;
}

/* Soroban auth */
.px-ga-soroban { display: flex; flex-direction: column; gap: 16px; }
.px-ga-soroban-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 10px;
  overflow: hidden;
}
.px-ga-soroban-table th,
.px-ga-soroban-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #efeae0;
}
.px-ga-soroban-table th {
  background: #fbf8ef;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6757;
}
.px-ga-soroban-table tr:last-child td { border-bottom: none; }
.px-ga-soroban-table tr.fail { background: rgba(196, 60, 30, 0.04); }
.px-ga-soroban-table .mono { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }
.px-ga-soroban-c { display: flex; flex-direction: column; gap: 2px; }
.px-ga-soroban-c b { font-size: 13px; color: #1f1a14; }
.px-ga-soroban-args { color: #4a4338; }
.px-ga-soroban-ok { color: #2c5d24; font-size: 12px; }
.px-ga-soroban-fail { color: #c43c1e; font-size: 12px; }

/* Right rail — related */
.px-ga-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.px-ga-related-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: #fbf8ef;
  border: 1px solid #ebe5d8;
  border-radius: 7px;
}
.px-ga-rel-tag {
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8a7f6c;
}
.px-ga-rel-name { font-size: 13px; color: #1f1a14; font-weight: 500; }
.px-ga-rel-desc { font-size: 11px; color: #6f6757; }

/* Responsive */
@media (max-width: 1100px) {
  .px-ga-thresh-grid { grid-template-columns: 1fr; }
  .px-ga-sigmath-row { grid-template-columns: 1fr; gap: 4px; }
  .px-ga-claim { grid-template-columns: 1fr; gap: 10px; }
  .px-ga-claim-meta { grid-template-columns: 1fr; }
  .px-ga-oprow {
    grid-template-columns: 90px 110px 1fr 130px;
  }
  .px-ga-oprow > .px-ga-opto { display: none; }
  .px-cn-calls .px-ga-oprow { grid-template-columns: 112px 126px minmax(220px, 1fr) 86px; }
  .px-ga-datarow { grid-template-columns: 1fr; gap: 4px; }
}


/* v2 G-account balance-first hero */
.px-ga-hero .px-ga-hero-grid { padding: 28px; }
.px-ga-hero-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.px-ga-hero-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.px-ga-hero-kicker { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ph-text-3); margin-bottom: 7px; }
.px-ga-hero-name { margin: 0; color: var(--ph-text); font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.px-ga-hero-portfolio { border: 1px solid var(--ph-border); background: var(--ph-bg); border-radius: 10px; padding: 22px; display: grid; grid-template-columns: minmax(260px, 1.1fr) minmax(260px, .9fr); gap: 20px 28px; align-items: end; }
.px-ga-hero-balance { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.px-ga-hero-balance .k { flex-basis: 100%; font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ph-text-3); }
.px-ga-hero-balance .v { font-size: clamp(46px, 7vw, 78px); line-height: .9; letter-spacing: -0.05em; color: var(--ph-text); font-weight: 520; }
.px-ga-hero-balance .unit { font-size: 15px; color: var(--ph-text-2); }
.px-ga-hero-facts { display: grid; gap: 10px; padding-bottom: 3px; }
.px-ga-hero-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: baseline; }
.px-ga-hero-facts span { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ph-text-3); }
.px-ga-hero-facts b { color: var(--ph-text); font-size: 13px; font-weight: 600; }
.px-ga-hero-address { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; min-width: 0; max-width: 560px; }
.px-ga-hero-address .k { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ph-text-3); flex: 0 0 auto; }
.px-ga-hero-address code { color: var(--ph-text-2); font-family: var(--ph-ff-mono); font-size: 12px; overflow-wrap: anywhere; text-align: right; }
.px-ga-hero-allocation { grid-column: 1 / -1; display: grid; gap: 9px; }
.px-ga-alloc-bar { display: flex; height: 10px; width: 100%; background: var(--ph-panel); border: 1px solid var(--ph-border); overflow: hidden; }
.px-ga-alloc-bar span.xlm { background: var(--ph-text); }
.px-ga-alloc-bar span.issued { background: var(--ph-text-3); }
.px-ga-alloc-legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ph-text-2); font-size: 12px; }
.px-ga-alloc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.px-ga-alloc-legend i { width: 7px; height: 7px; display: inline-block; }
.px-ga-alloc-legend i.xlm { background: var(--ph-text); }
.px-ga-alloc-legend i.issued { background: var(--ph-text-3); }
.px-ga-alloc-pending { border: 1px dashed var(--ph-border); color: var(--ph-text-2); font-size: 12px; padding: 10px 12px; }
.px-ga-portfolio .px-tx-section-head { align-items: end; }
.px-ga-section-fact { color: var(--ph-text-3); font-size: 12px; white-space: nowrap; }
.px-ga-education { margin-top: 18px; }
.px-ga-education .px-ac-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.px-ga-education .px-ac-compare li { background: var(--ph-bg); border: 1px solid var(--ph-border); border-radius: 10px; padding: 14px; }
.px-ga-secondary-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .px-ga-secondary-glance { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .px-ga-education .px-ac-compare { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .px-ga-hero-intro { flex-direction: column; gap: 12px; }
  .px-ga-hero-address { justify-content: flex-start; }
  .px-ga-hero-address code { text-align: left; }
  .px-ga-hero-portfolio { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .px-ga-hero .px-ga-hero-grid { padding: 20px; }
  .px-ga-hero-portfolio { padding: 18px; }
  .px-ga-hero-facts div { grid-template-columns: 1fr; gap: 2px; }
  .px-ga-hero-address { align-items: flex-start; flex-direction: column; gap: 6px; }
  .px-ga-section-fact { white-space: normal; }
  .px-cn-calls .px-ga-oprow { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .px-cn-calls .px-ga-opamt { text-align: left; }
}

/* v2 integration refinements */
.px-ga-id .px-cn-id-grid { align-items: start; }
.px-ga-id .px-cn-copy { border: 0; background: transparent; font-family: var(--ph-ff-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.px-ga-id .px-cn-copy:focus-visible,
.px-ga-id .px-tx-btn:focus-visible,
.px-ga-id a:focus-visible,
[data-ga-tab]:focus-visible,
[data-cn-tab]:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 2px; }
[data-ga-panel][hidden],
[data-cn-panel][hidden] { display: none !important; }
.px-ga-oprow { text-decoration: none; color: inherit; }
.px-tx-facts { display: grid; grid-template-columns: minmax(92px, auto) 1fr; gap: 9px 12px; margin: 0; }
.px-tx-facts dt { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ph-text-3); }
.px-tx-facts dd { margin: 0; min-width: 0; color: var(--ph-text-2); font-size: 12.5px; }
@media (max-width: 900px) {
  .px-ac-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-tx-tabs { overflow-x: auto; align-items: stretch; }
  .px-tx-tab { white-space: nowrap; }
}
@media (max-width: 640px) {
  .px-ac-glance { grid-template-columns: 1fr; }
  .px-ga-trusttable, .px-ga-offertable, .px-ga-soroban-table, .px-ac-signertable { display: block; overflow-x: auto; white-space: nowrap; }
  .px-cn-addr { display: flex; width: 100%; }
  .px-ga-muxed { display: none; }
}

/* v2 G-account sits in the explorer two-column shell, so glance cards use two columns instead of the standalone mock's four. */
.px-tx-main .px-ac-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.px-tx-main .px-ac-glance.px-ga-secondary-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .px-tx-main .px-ac-glance.px-ga-secondary-glance { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .px-tx-main .px-ac-glance { grid-template-columns: 1fr; } }
.px-ga-empty { border: 1px dashed var(--ph-border); border-radius: 10px; padding: 18px; color: var(--ph-text-2); background: var(--ph-bg); display: flex; flex-direction: column; gap: 4px; }
.px-ga-empty b { color: var(--ph-text); font-weight: 600; }
.px-ga-empty span { font-size: 13px; line-height: 1.45; }

/* v2 Smart account */
.px-sa-hero .px-ga-hero-grid {
  padding: 28px;
}
.px-sa-hero .px-ga-hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.px-sa-hero .px-ga-hero-address {
  justify-content: flex-start;
  max-width: none;
  padding: 10px 12px;
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  background: var(--ph-surf);
}
.px-sa-hero .px-ga-hero-address code {
  text-align: left;
  font-size: 11.5px;
  line-height: 1.55;
}
.px-sa-hero .px-cn-copy {
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid var(--ph-border);
  border-radius: 6px;
  padding: 4px 7px;
  background: var(--ph-bg);
  color: var(--ph-text-2);
  font-family: var(--ph-ff-mono);
  font-size: 10.5px;
}
.px-sa-hero .px-cn-copy:hover {
  color: var(--ph-text);
  border-color: var(--ph-text-3);
}
.px-sa-hero .px-ga-hero-portfolio { align-items: start; }
.px-sa-hero .px-ga-hero-balance .v {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 600;
}
.px-sa-hero .px-ga-hero-balance .unit {
  font-size: 13px;
}
.px-sa-confidence { grid-column: 1 / -1; border-top: 1px solid var(--ph-border); padding-top: 14px; display: grid; grid-template-columns: 140px minmax(160px, .45fr) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.px-sa-confidence span { font-family: var(--ph-ff-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ph-text-3); }
.px-sa-confidence b { color: var(--ph-text); font-size: 13px; font-weight: 600; }
.px-sa-confidence p { margin: 0; color: var(--ph-text-2); font-size: 13px; line-height: 1.45; }
.px-sa-thresh-weight { font-size: 18px; line-height: 1.2; font-family: var(--ph-ff-sans); letter-spacing: -0.01em; }
.px-sa-sigicon { background: #5a7a3a; color: #fff; }
.px-sa-empty-row { padding: 16px 18px; color: var(--ph-text-2); font-size: 13px; }
.px-sa-policy-list { display: flex; flex-direction: column; gap: 12px; }
.px-sa-policy { border: 1px solid var(--ph-border); border-radius: 10px; overflow: hidden; background: var(--ph-surf); }
.px-sa-policy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--ph-border); }
.px-sa-policy-head b { display: block; color: var(--ph-text); font-size: 13px; margin-bottom: 3px; }
.px-sa-policy-head span { color: var(--ph-text-2); font-size: 12.5px; line-height: 1.45; }
.px-sa-policy-head em { font-style: normal; color: var(--ph-green); background: rgba(53,122,78,.08); border-radius: 999px; padding: 3px 8px; font-size: 11px; }
.px-sa-policy-meter { padding: 14px 16px; display: grid; gap: 8px; }
.px-sa-policy-meter div { display: flex; justify-content: space-between; gap: 12px; color: var(--ph-text-2); font-size: 12px; }
.px-sa-policy-meter i { display: block; height: 7px; border-radius: 999px; background: var(--ph-panel); overflow: hidden; }
.px-sa-policy-meter i b { display: block; height: 100%; background: var(--ph-green); border-radius: inherit; }
.px-sa-contracts { border-top: 1px solid var(--ph-border); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.px-sa-contracts span, .px-sa-chiplist span { border: 1px solid var(--ph-border); background: var(--ph-bg); border-radius: 999px; padding: 5px 9px; color: var(--ph-text-2); font-size: 12px; display: inline-flex; gap: 6px; }
.px-sa-contracts b, .px-sa-chiplist b { color: var(--ph-text); font-weight: 600; }
.px-sa-event { display: grid; grid-template-columns: 92px 110px minmax(0,1fr) 120px; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--ph-border); color: inherit; text-decoration: none; }
.px-sa-event:first-child { border-top: 0; }
.px-sa-event:hover { background: var(--ph-bg); }
.px-sa-event .time, .px-sa-event .hash { color: var(--ph-text-3); font-size: 11.5px; }
.px-sa-event .status { width: fit-content; border-radius: 999px; background: var(--ph-panel); padding: 3px 8px; color: var(--ph-text-2); font-size: 11.5px; }
.px-sa-event .body { display: flex; flex-direction: column; gap: 2px; }
.px-sa-event .body b { color: var(--ph-text); font-size: 13px; font-weight: 600; }
.px-sa-event .body small { color: var(--ph-text-2); font-size: 12.5px; line-height: 1.4; }
.px-sa-evidence-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.7fr); gap: 16px; }
.px-sa-card { margin: 0; }
.px-sa-chiplist { display: flex; flex-wrap: wrap; gap: 8px; }
.px-sa-chiplist p { margin: 0; color: var(--ph-text-2); font-size: 13px; }
[data-sa-tab]:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 2px; }
[data-sa-panel][hidden] { display: none !important; }
@media (max-width: 900px) {
  .px-sa-confidence, .px-sa-evidence-grid { grid-template-columns: 1fr; }
  .px-sa-event { grid-template-columns: 1fr; gap: 7px; align-items: start; }
}
@media (max-width: 640px) {
  .px-sa-hero .px-ga-hero-grid { padding: 20px; }
  .px-sa-hero .px-ga-hero-address {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .px-sa-hero .px-cn-copy {
    margin-left: 0;
  }
}

/* v2 account dossier redesign */
.px-ga-dossier .px-cn-id-grid { padding: 30px; }
.px-ga-dossier-grid { align-items: start; }
.px-ga-dossier-icon { padding-top: 2px; }
.px-ga-dossier-title { max-width: 820px; }
.px-ga-dossier-title .px-cn-h1-version {
  font-family: var(--ph-ff-sans);
  font-size: 13px;
  color: var(--ph-text-3);
  font-weight: 500;
  background: var(--ph-cream);
  border: 1px solid var(--ph-border);
  border-radius: 7px;
  padding: 3px 8px;
}
.px-ga-dossier-blurb { max-width: 76ch; }
.px-ga-dossier-address { margin-top: 2px; }
.px-ga-dossier .px-cn-actions a.px-tx-btn { text-decoration: none; }

.px-ga-brief { margin-top: 18px; }
.px-ga-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.px-ga-brief-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 14px;
}
.px-ga-brief-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--ph-ff-mono);
  font-size: 11px;
  font-weight: 700;
}
.px-ga-brief-mark.ok { color: #2c5d24; background: #e8f3e6; }
.px-ga-brief-mark.info { color: #5a5040; background: #f0ece3; }
.px-ga-brief-item b {
  display: block;
  color: var(--ph-text);
  font-size: 13px;
  margin-bottom: 3px;
}
.px-ga-brief-item span:not(.px-ga-brief-mark) {
  display: block;
  color: var(--ph-text-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.px-ga-glance-section { margin-top: 18px; }
.px-ga-glance .px-ac-gcard { min-height: 174px; }
.px-ga-small-value { font-family: var(--ph-ff-sans); font-size: 23px; font-weight: 600; }
.px-ga-portfolio { margin-top: 22px; }
.px-ga-portfolio .px-ga-trusttable { margin-top: 0; }

@media (max-width: 1100px) {
  .px-ga-brief-grid { grid-template-columns: 1fr; }
  .px-ga-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .px-ga-dossier .px-cn-id-grid { padding: 22px; }
  .px-ga-glance { grid-template-columns: 1fr; }
}


/* === v2 unification overrides === */
:root {
  --ph-ff-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --ph-ff-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ph-ff-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
}

.ph-top {
  background: color-mix(in srgb, var(--ph-surf) 94%, transparent);
  backdrop-filter: blur(10px);
}

.ph-top-inner {
  min-height: 64px;
}

.ph-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ph-nav a {
  color: var(--ph-text-3);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.ph-nav a.active,
.ph-nav a:hover {
  color: var(--ph-text);
  border-bottom-color: var(--ph-text);
}

.ph-mobile-nav {
  display: none;
  margin-left: auto;
  position: relative;
}

.ph-mobile-nav summary {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid var(--ph-border);
  border-radius: 9px;
  background: var(--ph-surf);
  color: var(--ph-text);
  cursor: pointer;
}
.ph-mobile-nav summary::-webkit-details-marker { display: none; }

.ph-mobile-nav-bars {
  width: 18px;
  display: grid;
  gap: 4px;
}
.ph-mobile-nav-bars span {
  display: block;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.ph-mobile-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  background: var(--ph-surf);
  box-shadow: var(--ph-shadow-panel, 0 12px 24px -4px rgba(0,0,0,0.08), 0 4px 8px -2px rgba(0,0,0,0.04));
  z-index: 50;
}
.ph-mobile-nav-panel a {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--ph-text-2);
  font-size: 13px;
  font-weight: 500;
}
.ph-mobile-nav-panel a.active,
.ph-mobile-nav-panel a:hover {
  background: var(--ph-bg);
  color: var(--ph-text);
}

.px-tx-crumbs,
.px-lg-nav,
.px-tx-headline,
.px-tx-page,
.ph-page {
  background: var(--ph-bg);
}

@media (max-width: 820px) {
  .ph-top-inner {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px 16px;
  }
  .ph-brand {
    width: auto;
    flex: 0 0 auto;
  }
  .ph-nav {
    display: none;
  }
  .ph-right {
    order: 2;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
  }
  .ph-heartbeat {
    display: none;
  }
  .ph-mobile-nav {
    display: block;
    order: 3;
    margin-left: 0;
    flex: 0 0 auto;
  }
}

/* === Asset detail redesign pass === */
.px-asset-detail {
  padding-top: 30px;
  overflow-x: clip;
}

.px-ad-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 48px;
  align-items: start;
  padding: 42px 0 34px;
}

.px-ad-id,
.px-ad-title {
  min-width: 0;
}

.px-ad-id {
  align-items: flex-start;
}

.px-ad-mark {
  margin-top: 8px;
}

.px-ad-id h1 {
  max-width: 12ch;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.px-ad-code .mono {
  max-width: min(72ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.px-ad-summary {
  padding-top: 8px;
}

.px-ad-summary p {
  max-width: 58ch;
}

.px-ad-hero-facts {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--pxa-rule);
  border-bottom: 1px solid var(--pxa-rule);
}

.px-ad-hero-facts > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pxa-rule);
  font-size: 13px;
}

.px-ad-hero-facts > div:last-child {
  border-bottom: 0;
}

.px-ad-hero-facts span {
  color: var(--pxa-muted);
}

.px-ad-hero-facts b {
  min-width: 0;
  color: var(--pxa-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.px-ad-hero-facts b.mono {
  font-size: 12px;
}

.px-ad-panel,
.px-ad-side-card {
  box-shadow: 0 1px 2px rgba(31, 27, 22, .035);
}

.px-ad-empty {
  padding: 14px 0 2px;
  border-top: 1px solid var(--pxa-rule);
}

@media (max-width: 980px) {
  .px-ad-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .px-ad-summary {
    padding-top: 0;
  }
  .px-ad-id h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .px-ad-hero {
    padding-top: 26px;
  }
  .px-ad-hero-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* === Complete asset page additions === */
.px-ad-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0 4px;
}

.px-ad-stat {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--pxa-rule);
  border-radius: 16px;
  background: var(--pxa-surface);
  box-shadow: 0 1px 2px rgba(31, 27, 22, .03);
}

.px-ad-stat span,
.px-ad-stat small {
  display: block;
  color: var(--pxa-muted);
}

.px-ad-stat span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 650;
}

.px-ad-stat b {
  display: block;
  margin-top: 8px;
  color: var(--pxa-ink);
  font-size: 18px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.px-ad-stat small {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.px-ad-sac {
  border-color: color-mix(in oklch, var(--pxa-violet) 24%, var(--pxa-rule));
}

@media (max-width: 1180px) {
  .px-ad-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .px-ad-stats { grid-template-columns: 1fr 1fr; }
}

/* Home hero prism refraction bar */
.ph-ledger-focus-main {
  display: flex;
  flex-direction: column;
}

.ph-refraction {
  display: flex;
  width: min(560px, 100%);
  height: 12px;
  margin-top: auto;
  padding-top: 22px;
  box-sizing: content-box;
  border-radius: 999px;
  overflow: hidden;
}

.ph-refraction-seg {
  flex: 1 1 0;
  min-width: 24px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ph-on-ink) 18%, transparent), inset 0 -1px 0 rgba(31, 27, 22, .12);
}

.ph-refraction-seg.swap { background: var(--ph-violet); }
.ph-refraction-seg.transfer { background: var(--ph-teal); }
.ph-refraction-seg.call { background: color-mix(in oklch, var(--ph-violet) 72%, var(--ph-teal)); }
.ph-refraction-seg.lending { background: var(--ph-amber); }
.ph-refraction-seg.classic { background: #5C5C58; }
.ph-refraction-seg.events { background: var(--ph-accent-ink); }
.ph-refraction-seg.other { background: var(--ph-text-3); }

.ph-refraction-seg + .ph-refraction-seg {
  border-left: 1px solid color-mix(in srgb, var(--ph-on-ink) 18%, transparent);
}

/* Ask merged mock styles */.px-ask-app { background: var(--ph-bg); min-height: 100vh; }

  /* PAGE LAYOUT */
  .px-ask-page { padding: 32px 32px 64px; }
  .px-ask-page-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: flex-start;
  }
  .px-ask-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

  /* ASK BAR — primary input, large and editorial */
  .px-ask-bar {
    background: var(--ph-surf);
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
  }
  .px-ask-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 100% 0%, rgba(255, 127, 80, 0.06), transparent 60%);
    pointer-events: none;
  }
  .px-ask-bar-inner { position: relative; display: flex; flex-direction: column; gap: 14px; }
  .px-ask-bar-eyebrow {
    font-family: var(--ph-ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-accent-ink);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .px-ask-bar-eyebrow .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--ph-accent);
  }
  .px-ask-input-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    padding: 14px 18px;
    background: var(--ph-bg);
  }
  .px-ask-input-row:focus-within { border-color: var(--ph-border-strong); }
  .px-ask-input-row svg.icon { color: var(--ph-text-3); flex-shrink: 0; }
  .px-ask-input-row input {
    flex: 1;
    border: 0; outline: 0; background: transparent;
    font-family: var(--ph-ff-serif);
    font-size: 19px;
    color: var(--ph-text);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.005em;
  }
  .px-ask-input-row input::placeholder { color: var(--ph-text-3); font-style: italic; }
  .px-ask-input-row .submit {
    background: var(--ph-text);
    color: #fff;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .px-ask-input-row .submit:hover { background: #000; }

  .px-ask-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
  }
  .px-ask-examples .label {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ph-text-3);
    font-weight: 600;
    margin-right: 4px;
  }
  .px-ask-examples button {
    font-size: 12.5px;
    color: var(--ph-text-2);
    padding: 5px 12px;
    border: 1px solid var(--ph-border);
    border-radius: 999px;
    background: var(--ph-surf);
    transition: border-color 120ms, color 120ms;
  }
  .px-ask-examples button:hover {
    border-color: var(--ph-border-strong);
    color: var(--ph-text);
  }

  /* INTERPRETATION ROW — "You asked" → "Prism understood this as" */
  .px-ask-interpret {
    background: var(--ph-surf);
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
  }
  .px-ask-interpret::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: var(--ph-border);
  }
  .px-ask-interpret-col { min-width: 0; }
  .px-ask-interpret-col .k {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text-3);
    font-weight: 600;
    margin-bottom: 6px;
  }
  .px-ask-interpret-col .you {
    font-family: var(--ph-ff-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--ph-text);
    line-height: 1.4;
  }
  .px-ask-interpret-col .you::before { content: "“"; color: var(--ph-text-3); margin-right: 1px; }
  .px-ask-interpret-col .you::after { content: "”"; color: var(--ph-text-3); margin-left: 1px; }
  .px-ask-interpret-col .intent {
    font-size: 14px;
    color: var(--ph-text);
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .px-ask-interpret-col .intent .chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .px-ask-interpret-col .intent .chip {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    background: var(--ph-cream);
    color: var(--ph-accent-ink);
    border-radius: 999px;
    font-weight: 600;
  }
  .px-ask-interpret-col .intent .chip.muted {
    background: var(--ph-panel);
    color: var(--ph-text-2);
  }

  /* ANSWER CARD — the big editorial moment */
  .px-ask-answer {
    background: var(--ph-surf);
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    padding: 36px 40px 32px;
    position: relative;
    overflow: hidden;
  }
  .px-ask-answer.bad { border-color: oklch(60% 0.19 25 / 0.4); }
  .px-ask-answer.warn { border-color: oklch(70% 0.15 75 / 0.4); }
  .px-ask-answer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 240px at 10% 0%, var(--_glow, rgba(53, 122, 78, 0.05)), transparent 65%);
    pointer-events: none;
  }
  .px-ask-answer.warn { --_glow: rgba(185, 132, 41, 0.08); }
  .px-ask-answer.bad { --_glow: rgba(217, 82, 30, 0.07); }
  .px-ask-answer-inner { position: relative; }

  .px-ask-answer-eyebrow {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text-3);
    font-weight: 600;
    margin-bottom: 10px;
  }

  .px-ask-answer-h1 {
    margin: 0 0 14px;
    font-family: var(--ph-ff-serif);
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--ph-text);
    text-wrap: pretty;
  }
  .px-ask-answer-h1 em { font-style: italic; }
  .px-ask-answer-h1 b { font-weight: 600; }
  .px-ask-answer-h1 .verdict {
    background: var(--ph-cream);
    padding: 2px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-style: normal;
    color: var(--ph-accent-ink);
    white-space: nowrap;
  }
  .px-ask-answer-h1 .verdict.good { background: oklch(62% 0.13 150 / 0.16); color: oklch(40% 0.11 150); }
  .px-ask-answer-h1 .verdict.warn { background: oklch(70% 0.15 75 / 0.18); color: oklch(40% 0.12 75); }

  .px-ask-answer-sub {
    font-size: 16px;
    color: var(--ph-text-2);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 24px;
  }
  .px-ask-answer-sub b { color: var(--ph-text); font-weight: 600; }

  /* Reason grid — the deterministic evidence */
  .px-ask-reason-eyebrow {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text-3);
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .px-ask-reason-eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ph-border);
  }

  .px-ask-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
  }
  .px-ask-reason {
    padding: 16px 18px;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    background: var(--ph-bg);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .px-ask-reason .k {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ph-text-3);
    font-weight: 600;
  }
  .px-ask-reason .v {
    font-family: var(--ph-ff-serif);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ph-text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .px-ask-reason .v .unit {
    font-family: var(--ph-ff-sans);
    font-size: 13px;
    color: var(--ph-text-3);
    margin-left: 4px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
  }
  .px-ask-reason .compare {
    font-family: var(--ph-ff-mono);
    font-size: 11px;
    color: var(--ph-text-3);
  }
  .px-ask-reason .compare b { color: var(--ph-text-2); font-weight: 600; }
  .px-ask-reason .compare.up b { color: var(--ph-green); }
  .px-ask-reason .compare.down b { color: var(--ph-accent-ink); }

  /* Threshold sentence — the rule used */
  .px-ask-threshold {
    font-family: var(--ph-ff-serif);
    font-style: italic;
    font-size: 14.5px;
    color: var(--ph-text-2);
    line-height: 1.55;
    padding: 14px 18px;
    background: var(--ph-cream);
    border-radius: 10px;
    margin-bottom: 24px;
  }
  .px-ask-threshold b { color: var(--ph-text); font-weight: 600; font-style: normal; }
  .px-ask-threshold .mono { font-family: var(--ph-ff-mono); font-style: normal; font-size: 13px; }

  /* Evidence row — clickable chips */
  .px-ask-evidence-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }
  .px-ask-evidence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--ph-border);
    border-radius: 8px;
    background: var(--ph-surf);
    font-size: 13px;
    color: var(--ph-text);
    transition: border-color 120ms, background 120ms;
  }
  .px-ask-evidence:hover {
    border-color: var(--ph-border-strong);
    background: var(--ph-bg);
  }
  .px-ask-evidence .ic {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: grid; place-items: center;
    background: var(--ph-panel);
    color: var(--ph-text-2);
    font-family: var(--ph-ff-mono);
    font-size: 11px;
    font-weight: 600;
  }
  .px-ask-evidence .ic.contract { background: oklch(60% 0.16 295 / 0.14); color: oklch(45% 0.14 295); }
  .px-ask-evidence .ic.explore { background: oklch(66% 0.12 190 / 0.14); color: oklch(48% 0.10 190); }
  .px-ask-evidence .ic.ledger { background: oklch(70% 0.13 75 / 0.16); color: oklch(48% 0.11 75); }
  .px-ask-evidence .ic.rows { background: oklch(64% 0.10 165 / 0.14); color: oklch(46% 0.09 165); }
  .px-ask-evidence .label {
    font-family: var(--ph-ff-sans);
    font-weight: 500;
  }
  .px-ask-evidence .meta {
    font-family: var(--ph-ff-mono);
    font-size: 11px;
    color: var(--ph-text-3);
  }
  .px-ask-evidence .arrow {
    color: var(--ph-text-3);
    margin-left: 2px;
  }
  .px-ask-evidence:hover .arrow { color: var(--ph-accent-ink); }

  /* Confidence + provenance footer */
  .px-ask-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px dashed var(--ph-border);
    flex-wrap: wrap;
  }
  .px-ask-confidence {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .px-ask-confidence .k {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ph-text-3);
    font-weight: 600;
  }
  .px-ask-confidence .meter {
    width: 100px;
    height: 6px;
    background: var(--ph-panel);
    border-radius: 3px;
    overflow: hidden;
  }
  .px-ask-confidence .meter span {
    display: block;
    height: 100%;
    background: var(--ph-green);
    border-radius: 3px;
  }
  .px-ask-confidence .meter.warn span { background: var(--ph-amber); }
  .px-ask-confidence .meter.low span { background: var(--ph-accent-ink); }
  .px-ask-confidence .val {
    font-family: var(--ph-ff-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ph-text);
  }
  .px-ask-rule {
    font-size: 12.5px;
    color: var(--ph-text-3);
    line-height: 1.5;
  }
  .px-ask-rule b { color: var(--ph-text-2); font-weight: 600; }
  .px-ask-rule code {
    background: var(--ph-panel);
    color: var(--ph-violet);
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 12px;
  }

  /* NEXT ACTIONS — what to do with this answer */
  .px-ask-next {
    background: var(--ph-surf);
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    padding: 22px 26px;
  }
  .px-ask-next-head {
    font-family: var(--ph-ff-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text-3);
    font-weight: 600;
    margin-bottom: 14px;
  }
  .px-ask-next-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .px-ask-next-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    background: var(--ph-bg);
    transition: border-color 120ms, background 120ms;
  }
  .px-ask-next-action:hover {
    border-color: var(--ph-accent);
    background: var(--ph-surf);
  }
  .px-ask-next-action .ic {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--ph-cream);
    color: var(--ph-accent-ink);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .px-ask-next-action .body { flex: 1; min-width: 0; }
  .px-ask-next-action .title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ph-text);
  }
  .px-ask-next-action .sub {
    font-family: var(--ph-ff-mono);
    font-size: 11px;
    color: var(--ph-text-3);
    margin-top: 2px;
  }
  .px-ask-next-action .arrow {
    color: var(--ph-text-3);
    transition: color 120ms, transform 120ms;
  }
  .px-ask-next-action:hover .arrow {
    color: var(--ph-accent-ink);
    transform: translateX(2px);
  }

  /* SIDE RAIL */
  .px-ask-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
  }
  .px-ask-side-card {
    background: var(--ph-surf);
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    padding: 18px 20px;
  }
  .px-ask-side-card h4 {
    margin: 0 0 14px;
    font-family: var(--ph-ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text-2);
    font-weight: 600;
  }
  .px-ask-supported {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .px-ask-supported li {
    list-style: none;
    font-family: var(--ph-ff-serif);
    font-style: italic;
    font-size: 13.5px;
    color: var(--ph-text-2);
    padding: 8px 12px;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.4;
  }
  .px-ask-supported li:hover {
    border-color: var(--ph-border);
    background: var(--ph-bg);
    color: var(--ph-text);
  }
  .px-ask-supported li::before {
    content: "“";
    color: var(--ph-text-3);
    margin-right: 1px;
  }
  .px-ask-supported li::after {
    content: "”";
    color: var(--ph-text-3);
    margin-left: 1px;
  }
  .px-ask-side-foot {
    font-size: 12px;
    color: var(--ph-text-3);
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px dashed var(--ph-border);
    margin-top: 12px;
  }
  .px-ask-side-foot a { color: var(--ph-accent-ink); border-bottom: 1px solid transparent; }
  .px-ask-side-foot a:hover { border-bottom-color: currentColor; }
  .px-ask-side-mini {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed var(--ph-border);
    font-size: 12.5px;
  }
  .px-ask-side-mini:last-child { border-bottom: 0; }
  .px-ask-side-mini .k { color: var(--ph-text-3); }
  .px-ask-side-mini .v { color: var(--ph-text); font-family: var(--ph-ff-mono); font-size: 12px; }

  /* UNSUPPORTED state — for the fallback variant */
  .px-ask-unsupported {
    background: var(--ph-surf);
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    padding: 36px 40px;
  }
  .px-ask-unsupported h2 {
    margin: 0 0 8px;
    font-family: var(--ph-ff-serif);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ph-text);
  }
  .px-ask-unsupported h2 em { font-style: italic; color: var(--ph-text-3); }
  .px-ask-unsupported p {
    font-size: 15px;
    color: var(--ph-text-2);
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 580px;
  }
  .px-ask-unsupported-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .px-ask-unsupported-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--ph-border);
    background: var(--ph-bg);
    font-size: 13px;
    color: var(--ph-text);
    font-weight: 500;
    transition: border-color 120ms, background 120ms;
  }
  .px-ask-unsupported-actions a:hover { border-color: var(--ph-border-strong); background: var(--ph-surf); }
  .px-ask-unsupported-actions a.primary {
    background: var(--ph-text);
    color: #fff;
    border-color: var(--ph-text);
  }
  .px-ask-unsupported-actions a.primary:hover { background: #000; }

.px-ask-examples a {
  font-size: 12.5px;
  color: var(--ph-text-2);
  padding: 5px 12px;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: var(--ph-surf);
  transition: border-color 120ms, color 120ms;
}
.px-ask-examples a:hover { border-color: var(--ph-border-strong); color: var(--ph-text); }

/* Materialized balances shared by smart-account and contract detail pages. */
.px-balance {
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--ph-surf);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
}
.px-balance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ph-border);
}
.px-balance-head h2 {
  margin: 0;
  color: var(--ph-text);
  font-family: var(--ph-ff-serif);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.px-balance-head p,
.px-balance-state p {
  margin: 4px 0 0;
  color: var(--ph-text-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.px-balance-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--ph-text-3);
  font-size: 11px;
}
.px-balance-summary strong {
  color: var(--ph-text);
  font-size: 12.5px;
}
.px-balance-state { padding: 22px 20px; color: var(--ph-text-2); font-size: 13px; }
.px-balance-state strong { color: var(--ph-text); font-weight: 600; }
.px-balance-scroll { overflow-x: auto; }
.px-balance table { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
.px-balance th {
  padding: 10px 20px;
  background: var(--ph-panel);
  color: var(--ph-text-3);
  font-family: var(--ph-ff-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.px-balance td {
  padding: 13px 20px;
  border-top: 1px solid var(--ph-border);
  color: var(--ph-text-2);
  font-size: 12.5px;
  vertical-align: top;
}
.px-balance tbody tr:first-child td { border-top: 0; }
.px-balance td strong { display: block; color: var(--ph-text); font-size: 13px; font-weight: 600; }
.px-balance td > span { display: block; margin-top: 2px; color: var(--ph-text-3); font-size: 10.5px; }
.px-balance .r { text-align: right; }
.px-balance-identity a { color: var(--ph-accent-ink); border-bottom: 1px solid transparent; }
.px-balance-identity a:hover { border-bottom-color: currentColor; }
.px-balance-identity a:focus-visible,
.px-balance-more summary:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; }
.px-balance-amount { color: var(--ph-text) !important; font-size: 13px !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.px-balance-evidence code { display: block; margin-top: 3px; color: var(--ph-text-3); font-family: var(--ph-ff-mono); font-size: 10px; }
.px-balance-more { border-top: 1px solid var(--ph-border); }
.px-balance-more summary {
  cursor: pointer;
  padding: 11px 20px;
  color: var(--ph-accent-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.px-balance-more[open] summary { border-bottom: 1px solid var(--ph-border); }
.px-balance-note { padding: 10px 20px; border-top: 1px solid var(--ph-border); background: var(--ph-panel); color: var(--ph-text-3); font-size: 11px; line-height: 1.45; }
.px-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.px-balance-skeleton { background: var(--ph-surf); }
.px-balance-skeleton-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(90px, 0.55fr) minmax(120px, 1fr) minmax(120px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid var(--ph-border);
}
.px-balance-skeleton-row:first-child { border-top: 0; }
.px-balance-skeleton-line {
  display: block;
  width: 72%;
  height: 11px;
  border-radius: 999px;
  background: var(--ph-panel);
  animation: px-balance-pulse 1.4s ease-in-out infinite;
}
.px-balance-skeleton-line.short { width: 76px; margin-top: 5px; }
.px-balance-skeleton-line.amount { width: 68%; justify-self: end; }
.px-balance-skeleton-line.identity { width: 82%; }
.px-balance-skeleton-line.evidence { width: 64%; }
.px-balance-hero-loading { color: var(--ph-text-3) !important; }

@keyframes px-balance-pulse {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .px-balance-skeleton-line { animation: none; }
}

@media (max-width: 640px) {
  .px-balance-head { flex-direction: column; }
  .px-balance-summary { align-items: flex-start; }
  .px-balance-scroll { overflow: visible; }
  .px-balance table,
  .px-balance tbody { display: block; min-width: 0; }
  .px-balance thead { display: none; }
  .px-balance tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 16px; border-top: 1px solid var(--ph-border); }
  .px-balance tbody tr:first-child { border-top: 0; }
  .px-balance td { display: block; padding: 0; border: 0; }
  .px-balance td::before { display: block; margin-bottom: 3px; color: var(--ph-text-3); content: attr(data-label); font-family: var(--ph-ff-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
  .px-balance td:nth-child(3),
  .px-balance td:nth-child(4),
  .px-balance td:nth-child(5) { grid-column: 1 / -1; }
  .px-balance-skeleton-row { grid-template-columns: 1fr auto; gap: 14px; padding: 15px 16px; }
  .px-balance-skeleton-line.identity,
  .px-balance-skeleton-line.evidence { display: none; }
}

/* ===== TRANSACTION CALL TREE =====
   The only view in the receipt that expresses nesting. Operations, events, and
   balance changes are flat lists; the structure they cannot show is where a
   recovered failure lives, so depth is the whole point of this component.

   Three states, and each is carried by a mark and a label as well as colour,
   because state must not depend on hue. `caught` is the one that matters: a
   sub-call trapped and the caller continued, so the transaction still
   succeeded. */
.px-tx-tree { padding: 4px 2px 2px; }
.px-tx-tree-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--ph-border);
}
.px-tx-tree-sub { font-size: 13px; color: var(--ph-text-2); }
.px-tx-tree-tally { font-family: var(--ph-ff-mono); font-size: 12.5px; color: var(--ph-text-3); }
.px-tx-tree-tally b { font-weight: 600; }
.px-tx-tree-tally b.caught { color: var(--ph-amber); }
.px-tx-tree-tally b.reverted { color: var(--ph-crimson); }

.px-tx-tree-list { list-style: none; margin: 0; padding: 0; }
.px-tx-tree-node {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--ph-border-subtle, var(--ph-border));
}
.px-tx-tree-node:last-child { border-bottom: 0; }

/* Depth is indentation plus a rail. The rail keeps the relationship legible
   once the indent is capped at depth 5. */
.px-tx-tree-node.d0 { padding-left: 4px; }
.px-tx-tree-node.d1 { padding-left: 30px; }
.px-tx-tree-node.d2 { padding-left: 56px; }
.px-tx-tree-node.d3 { padding-left: 82px; }
.px-tx-tree-node.d4 { padding-left: 108px; }
.px-tx-tree-node.d5 { padding-left: 134px; }
.px-tx-tree-rail {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-left: 1px solid var(--ph-border);
}
.px-tx-tree-node.d0 .px-tx-tree-rail { display: none; }
.px-tx-tree-node.d1 .px-tx-tree-rail { left: 14px; }
.px-tx-tree-node.d2 .px-tx-tree-rail { left: 40px; }
.px-tx-tree-node.d3 .px-tx-tree-rail { left: 66px; }
.px-tx-tree-node.d4 .px-tx-tree-rail { left: 92px; }
.px-tx-tree-node.d5 .px-tx-tree-rail { left: 118px; }

.px-tx-tree-mark {
  font-family: var(--ph-ff-mono); font-size: 12px; line-height: 1.4;
  color: var(--ph-text-3); text-align: center;
}
.px-tx-tree-node.s-caught .px-tx-tree-mark { color: var(--ph-amber); }
.px-tx-tree-node.s-reverted .px-tx-tree-mark { color: var(--ph-crimson); }

.px-tx-tree-body { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
/* Evidence is mono, Prism's own connectives are serif italic: the same split
   the headline uses. */
.px-tx-tree-actor, .px-tx-tree-fn, .px-tx-tree-target {
  font-family: var(--ph-ff-mono); font-size: 13px; color: var(--ph-text);
}
.px-tx-tree-actor, .px-tx-tree-target { font-weight: 500; }
.px-tx-tree-fn { font-weight: 600; }
a.px-tx-tree-actor:hover, a.px-tx-tree-target:hover { color: var(--ph-accent-ink); text-decoration: underline; }
.px-tx-tree-verb {
  font-family: var(--ph-ff-serif); font-style: italic;
  color: var(--ph-text-3); font-size: 14px; margin: 0 2px;
}

.px-tx-tree-state {
  font-family: var(--ph-ff-mono); font-size: 11px;
  color: var(--ph-text-3); white-space: nowrap;
}
.px-tx-tree-state.caught { color: var(--ph-amber); font-weight: 500; }
.px-tx-tree-state.reverted { color: var(--ph-crimson); font-weight: 500; }

/* A reverted branch did not change the ledger; it reads quieter than the calls
   that did, without being hidden. */
.px-tx-tree-node.s-caught .px-tx-tree-body,
.px-tx-tree-node.s-reverted .px-tx-tree-body { opacity: 0.62; }

.px-tx-tree-note {
  margin: 14px 2px 2px;
  font-size: 13px; line-height: 1.55; color: var(--ph-text-2);
  max-width: 68ch;
}

@media (max-width: 640px) {
  .px-tx-tree-node { grid-template-columns: 16px minmax(0, 1fr); }
  .px-tx-tree-state { grid-column: 2; padding-top: 2px; }
  .px-tx-tree-node.d3, .px-tx-tree-node.d4, .px-tx-tree-node.d5 { padding-left: 60px; }
}

/* ===== DEMO DATA NOTICE =====
   Amber, matching the existing is-demo vocabulary used on the home evidence
   panels. Deliberately full-width and above the content: a marker a reader can
   miss is the same as no marker, which is the bug this fixes. */
.px-demo-notice {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 1px solid color-mix(in oklch, var(--ph-amber) 38%, var(--ph-border));
  border-radius: 10px;
  background: color-mix(in oklch, var(--ph-amber) 10%, var(--ph-surf));
  font-size: 13px; line-height: 1.5;
  color: var(--ph-text-2);
}
.px-demo-notice strong {
  font-family: var(--ph-ff-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ph-amber);
}

/* The emphasised share in the spectrogram headline is italic, and the italic
   glyphs lean into the word space that follows: "45% of" read as "45%of" even
   though the space is present and 4.5px wide. Optical correction only. */
.ph-spectrum-head h2 em {
  font-style: italic;
  margin-right: 0.08em;
}
