:root {
  --ledger-border: rgba(255, 255, 255, 0.12);
  --ledger-surface: rgba(9, 18, 33, 0.78);
  --ledger-surface-2: rgba(9, 18, 33, 0.58);
}

.performance-shell--ledger .ledger-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.ledger-hero {
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--ledger-surface), rgba(15, 30, 56, 0.58));
  border: 1px solid var(--ledger-border);
}

.ledger-eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.ledger-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.ledger-subtitle {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 1.05rem;
}

.ledger-risk {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.ledger-controls {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--ledger-surface-2);
  border: 1px solid var(--ledger-border);
}

.ledger-controls__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ledger-controls__label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.ledger-controls__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ledger-controls__tab {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ledger-border);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.95rem;
}

.ledger-controls__tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ledger-controls__tab.is-active {
  background: rgba(57, 173, 255, 0.18);
  border-color: rgba(57, 173, 255, 0.55);
}

.ledger-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.4rem;
  border-radius: 18px;
  background: rgba(5, 12, 24, 0.55);
  border: 1px solid var(--ledger-border);
}

.ledger-panel__header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.ledger-panel__meta {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.ledger-table {
  margin-top: 1rem;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--ledger-border);
  background: rgba(0, 0, 0, 0.18);
}

.ledger-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.ledger-table th,
.ledger-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--ledger-border);
  vertical-align: top;
  font-size: 0.95rem;
}

.ledger-table thead th {
  position: sticky;
  top: 0;
  background: rgba(11, 22, 40, 0.92);
  text-align: left;
  font-weight: 600;
  z-index: 1;
}

.ledger-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ledger-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-table .notes {
  min-width: 220px;
  color: rgba(255, 255, 255, 0.78);
}

.ledger-disclosures {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ledger-disclosure {
  padding: 0.95rem 0.95rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--ledger-border);
}

.ledger-disclosure--wide {
  grid-column: 1 / -1;
}

.ledger-disclosure h3 {
  margin: 0;
  font-size: 1rem;
}

.ledger-disclosure p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.ledger-next__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ledger-next__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 173, 255, 0.6);
  background: rgba(57, 173, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.ledger-next__action--secondary {
  border-color: var(--ledger-border);
  background: rgba(0, 0, 0, 0.18);
}

.ledger-empty {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .ledger-disclosures {
    grid-template-columns: 1fr;
  }
}

