:root {
  color-scheme: dark;
  --bg: #020907;
  --panel: rgba(3, 20, 17, 0.82);
  --panel-strong: rgba(5, 31, 27, 0.92);
  --panel-soft: rgba(7, 42, 36, 0.62);
  --line: rgba(123, 255, 199, 0.22);
  --line-strong: rgba(123, 255, 199, 0.44);
  --text: #f0fff8;
  --muted: #9db9ad;
  --mint: #4dffbd;
  --cyan: #45d6ff;
  --blue: #5aa9ff;
  --violet: #a777ff;
  --amber: #ffd36d;
  --red: #ff6b7f;
  --green: #6cff8d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --radius-sm: 12px;
  --rail: 280px;
  --nav-h: 76px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 2026-07-21 ledger clarity and report-builder additions */
.roi-matrix-action {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.roi-matrix-action:hover,
.roi-matrix-action:focus-visible,
.asset-card[role="button"]:hover,
.asset-card[role="button"]:focus-visible {
  outline: 1px solid var(--asset-solid, rgba(125, 255, 147, .72));
  box-shadow: 0 0 0 3px rgba(75, 148, 255, .12), 0 16px 36px rgba(0, 0, 0, .24);
}

.allocation-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.allocation-legend span {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.allocation-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--legend);
  box-shadow: 0 0 10px var(--legend);
}

.allocation-legend small { opacity: .72; }

.asset-roi-headlines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.asset-roi-headlines article,
.report-preview-metrics article {
  padding: 12px;
  border: 1px solid rgba(146, 184, 255, .14);
  border-radius: 12px;
  background: rgba(8, 18, 35, .62);
}

.asset-roi-headlines span,
.report-preview-metrics span { display: block; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.asset-roi-headlines strong,
.report-preview-metrics strong { display: block; margin-top: 5px; }
.asset-roi-history { margin-top: 18px; }
.asset-roi-history .report-table { margin-top: 10px; }

.bot-day-pill.is-missing,
.bot-command-days .is-missing { opacity: .58; border-style: dashed; }
.bot-day-pill.is-missing strong,
.bot-command-days .is-missing strong { font-size: .7rem; color: var(--text-muted); }

.customer-input-warning { border-color: rgba(255, 190, 86, .36); }
.customer-account-card { --customer-accent: #4b94ff; }

.report-builder-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.report-builder-actions span { color: var(--text-muted); font-size: .85rem; }
.built-report-preview { margin-top: 14px; overflow-x: auto; }
.report-preview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.form-notice.warning { margin: 10px 0; color: #ffd27a; }
.investor-account-details p em { display: block; margin-top: 5px; color: var(--text-muted); font-size: .7rem; font-style: normal; line-height: 1.45; }

@media (max-width: 860px) {
  .asset-roi-headlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-preview-metrics { grid-template-columns: 1fr; }
}

/* Ledger trust, responsive finance controls, and premium interaction pass. */
.global-data-bar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(111, 218, 180, 0.18);
  background: rgba(2, 16, 13, 0.94);
  backdrop-filter: blur(18px);
}

.data-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: center;
  min-width: 230px;
  padding: 3px;
  border: 1px solid rgba(91, 201, 163, 0.22);
  border-radius: 6px;
  background: rgba(1, 12, 10, 0.92);
}

.data-time-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-copy h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.data-mode-switch button,
.notification-filter-bar button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.data-mode-switch button.is-active,
.notification-filter-bar button.is-active {
  color: #001a14;
  background: #72e9bd;
}

.data-time-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 6px;
}

.data-time-facts article,
.data-reconcile-link {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(93, 189, 157, 0.15);
  border-radius: 5px;
  background: rgba(4, 24, 19, 0.78);
}

.data-time-facts span,
.data-time-facts small,
.data-reconcile-link small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-time-facts strong,
.data-reconcile-link span {
  display: block;
  overflow: hidden;
  margin: 3px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-reconcile-link {
  min-width: 100px;
  color: var(--text);
  cursor: pointer;
}

.data-reconcile-link:hover {
  border-color: rgba(104, 244, 190, 0.52);
  background: rgba(9, 48, 37, 0.88);
}

.truth-bar {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.8fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(111, 218, 180, 0.14);
  background: rgba(2, 13, 11, 0.88);
}

.truth-context,
.truth-check {
  min-width: 0;
  border: 1px solid rgba(93, 189, 157, 0.15);
  border-radius: 8px;
  background: rgba(4, 24, 19, 0.74);
}

.truth-context {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.truth-context svg {
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.truth-context strong,
.truth-check strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.truth-context span,
.truth-check span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truth-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.truth-check {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
}

.truth-check i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(108, 255, 141, 0.65);
}

.truth-warn i {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 211, 109, 0.62);
}

.truth-error i {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 107, 127, 0.62);
}

.withdrawal-balance-context {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 14px 0 8px;
}

.withdrawal-balance-context span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.withdrawal-balance-context small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.mobile-summary-dock {
  display: none;
}

.panel {
  box-shadow: 0 1px 0 rgba(117, 255, 204, 0.02);
}

.asset-card,
.bot-card,
.performance-pulse-card,
.partner-balance-tile,
.investor-row-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.asset-card:hover,
.bot-card:hover,
.performance-pulse-card:hover,
.partner-balance-tile:hover,
.investor-row-card:hover {
  transform: translateY(-2px);
  border-color: var(--asset-solid, var(--bot-color, rgba(111, 255, 192, 0.55)));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.nav-button {
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  content: "";
}

.nav-button.is-active::before {
  background: #6df2bf;
  box-shadow: 0 0 12px rgba(109, 242, 191, 0.7);
}

.nav-key svg,
.rail-action svg,
.icon-button svg,
.bottom-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.nav-key {
  display: grid;
  place-items: center;
}

.rail-action {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
}

.rail-actions {
  padding-top: 10px;
  border-top: 1px solid rgba(100, 190, 158, 0.18);
}

.investor-statement-card {
  display: block;
  padding: 0;
}

.investor-statement-card > summary {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.investor-statement-card > summary::-webkit-details-marker {
  display: none;
}

.investor-statement-card[open] {
  border-color: rgba(100, 244, 188, 0.52);
}

.investor-person small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.investor-net-due strong {
  color: #8dffc3;
}

.investor-statement-details {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  padding: 0 15px 15px;
  border-top: 1px solid rgba(105, 204, 170, 0.14);
}

.investor-statement-details > div {
  padding: 13px;
  border: 1px solid rgba(92, 187, 156, 0.14);
  background: rgba(2, 19, 15, 0.58);
}

.investor-statement-details > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.investor-statement-details p {
  display: grid;
  grid-template-columns: minmax(70px, auto) auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid rgba(107, 200, 169, 0.1);
}

.investor-statement-details p small {
  color: var(--muted);
  text-align: right;
}

.ownership-distribution-panel {
  overflow: hidden;
}

.ownership-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(113, 228, 190, 0.22);
  border-radius: 6px;
}

.ownership-bar span {
  display: grid;
  place-items: center;
  color: #00140f;
  background: var(--segment);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ownership-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ownership-values article {
  padding: 12px;
  border: 1px solid rgba(105, 199, 167, 0.14);
  border-radius: 5px;
  background: rgba(3, 22, 17, 0.7);
}

.ownership-values h3 {
  margin: 0 0 8px;
  color: #85f2ba;
  font-size: 16px;
}

.ownership-values > article > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.money-timeline {
  display: grid;
  max-height: 620px;
  overflow: auto;
}

.money-timeline > article {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-top: 1px solid rgba(102, 192, 162, 0.12);
}

.money-timeline i {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  background: var(--timeline-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--timeline-color) 55%, transparent);
}

.money-timeline div > strong,
.money-timeline div > span,
.money-timeline div > small {
  display: block;
}

.money-timeline div > span,
.money-timeline div > small {
  color: var(--muted);
  font-size: 10px;
}

.money-timeline > article > div:last-child {
  text-align: right;
}

.notification-filter-bar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 0 0 12px;
}

.notification-filter-bar button {
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(98, 190, 159, 0.16);
  text-transform: capitalize;
}

.notification-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.notification-item small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.notification-item.is-unread {
  border-color: rgba(94, 241, 187, 0.42);
  background: rgba(8, 48, 36, 0.48);
  box-shadow: inset 3px 0 0 #65efba;
}

.notification-item.is-read {
  opacity: 0.76;
}

.notification-item-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.notification-archive-button,
.table-icon-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(104, 204, 170, 0.24);
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.notification-archive-button:hover,
.table-icon-button:hover {
  color: #8dffc3;
  border-color: rgba(104, 244, 190, 0.56);
}

.receipt-status-line,
.receipt-party-grid,
.receipt-lines,
.receipt-integrity {
  margin-bottom: 12px;
}

.receipt-status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.receipt-party-grid article,
.receipt-lines article {
  padding: 11px;
  border: 1px solid rgba(102, 199, 166, 0.16);
  border-radius: 5px;
  background: rgba(3, 22, 17, 0.74);
}

.receipt-party-grid span,
.receipt-party-grid small,
.receipt-lines small,
.receipt-integrity span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.receipt-lines {
  display: grid;
  gap: 6px;
}

.receipt-lines article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.receipt-lines article > div {
  display: flex;
  gap: 7px;
  align-items: center;
}

.receipt-lines small {
  grid-column: 1 / -1;
}

.receipt-integrity code {
  display: block;
  overflow-wrap: anywhere;
  padding: 8px;
  color: #7ee7bf;
  background: rgba(0, 0, 0, 0.24);
  font-size: 9px;
}

.report-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-thumbnail {
  position: relative;
  display: grid;
  min-height: 190px;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(109, 225, 186, 0.22);
  border-radius: 6px;
  background: #031a14;
}

.report-thumbnail::after {
  position: absolute;
  right: -24px;
  bottom: -35px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(103, 240, 190, 0.12);
  border-radius: 50%;
  content: "";
}

.report-thumb-brand {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #64e7b5;
  border-radius: 5px;
  color: #68f0ba;
  font-weight: 900;
}

.report-thumbnail > small,
.report-thumbnail > span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.report-thumbnail > strong {
  color: #e8fff6;
  font-size: 20px;
  text-transform: capitalize;
}

.report-thumbnail > div:not(.report-thumb-brand) {
  display: flex;
  gap: 4px;
  height: 36px;
  align-items: end;
}

.report-thumbnail > div > i {
  flex: 1;
  height: 55%;
  background: var(--thumb, #58e6af);
}

.report-thumbnail > div > i:nth-child(2) { height: 82%; }
.report-thumbnail > div > i:nth-child(3) { height: 68%; }
.report-thumbnail > div > i:nth-child(4) { height: 92%; }

.seven-day-performance-panel {
  overflow: hidden;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-legend span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.chart-legend span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 2px;
  background: var(--legend);
  content: "";
}

.seven-day-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(52px, 1fr));
  gap: 8px;
  min-height: 230px;
  padding-top: 12px;
  border-top: 1px solid rgba(103, 199, 166, 0.12);
}

.seven-day-chart article {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
}

.seven-day-bars {
  display: flex;
  gap: 4px;
  align-items: end;
  min-height: 190px;
  padding: 8px;
  border-bottom: 1px solid rgba(117, 235, 194, 0.2);
  background: linear-gradient(rgba(96, 214, 176, 0.04) 1px, transparent 1px);
  background-size: 100% 25%;
}

.seven-day-bars i {
  flex: 1;
  min-width: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--bar);
  opacity: 0.82;
  transition: height 220ms ease, opacity 150ms ease;
}

.seven-day-bars i:hover {
  opacity: 1;
  box-shadow: 0 0 12px color-mix(in srgb, var(--bar) 58%, transparent);
}

.seven-day-chart article > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .global-data-bar {
    grid-template-columns: 1fr auto;
  }

  .data-mode-switch {
    grid-column: 1 / -1;
  }

  .investor-statement-card > summary {
    grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(140px, 1fr));
  }

  .investor-statement-card > summary .investor-cell:nth-last-child(-n + 2) {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app-frame,
  .main-shell,
  .view,
  .view > *,
  .panel {
    min-width: 0;
    max-width: 100%;
  }

  .main-shell {
    padding-bottom: 176px;
  }

  .global-data-bar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    gap: 7px;
    padding: 8px 10px;
  }

  .data-mode-switch {
    grid-column: 1;
    min-width: 0;
  }

  .data-reconcile-link {
    grid-column: 2;
    grid-row: 1;
    min-width: 88px;
  }

  .data-time-facts {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .data-time-facts article {
    flex: 0 0 165px;
    scroll-snap-align: start;
  }

  .mobile-summary-dock {
    position: fixed;
    right: 8px;
    bottom: 86px;
    left: 8px;
    z-index: 42;
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 0.7fr;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(104, 235, 188, 0.35);
    border-radius: 7px;
    background: rgba(2, 20, 15, 0.95);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
  }

  .secret-logo-control {
    display: none;
  }

  .mobile-summary-dock span {
    min-width: 0;
    padding: 6px 8px;
    border-right: 1px solid rgba(103, 199, 167, 0.14);
  }

  .mobile-summary-dock span:last-child { border-right: 0; }
  .mobile-summary-dock small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
  .mobile-summary-dock strong { display: block; overflow: hidden; color: #ddfff2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

  .bot-roster-group-head {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .bot-roster-group-head > div:first-child {
    grid-column: 1 / -1;
  }

  .bot-roster-group-head > div:not(:first-child) {
    min-width: 0;
    text-align: left;
  }

  .bot-roster-row {
    min-height: 0;
  }

  .bot-roster-row b {
    font-size: 0.74rem;
  }

  .investor-board-header {
    display: none;
  }

  .investor-statement-card > summary {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .investor-person,
  .investor-net-due {
    grid-column: 1 / -1;
  }

  .investor-statement-details,
  .ownership-values,
  .report-thumbnail-grid,
  .receipt-party-grid {
    grid-template-columns: 1fr;
  }

  .ownership-bar {
    min-height: 34px;
  }

  .money-timeline > article {
    grid-template-columns: 3px minmax(0, 1fr);
  }

  .money-timeline > article > div:last-child {
    grid-column: 2;
    text-align: left;
  }

  .seven-day-chart {
    grid-template-columns: repeat(7, minmax(44px, 1fr));
    overflow-x: auto;
  }

  .report-table {
    display: block;
    overflow: visible;
  }

  .report-table thead {
    display: none;
  }

  .report-table tbody {
    display: grid;
    gap: 8px;
  }

  .report-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(99, 192, 160, 0.18);
    border-radius: 6px;
    background: rgba(3, 22, 17, 0.74);
  }

  .report-table td {
    display: grid;
    min-width: 0;
    gap: 3px;
    min-width: 0;
    padding: 9px;
    border: 0;
    border-bottom: 1px solid rgba(99, 192, 160, 0.1);
  }

  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .section-head > div {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .section-head .section-copy {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .withdrawal-amount-control {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
  }

  .report-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .report-table td:first-child,
  .report-table td:nth-child(2) {
    grid-column: span 1;
  }
}

/* Production truth, operations, and accessible interaction layer. */
.data-mode-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 390px;
}

.data-mode-switch button {
  position: relative;
  display: grid;
  place-content: center;
  gap: 1px;
  padding: 5px 9px;
  line-height: 1.1;
}

.data-mode-switch button small {
  font-size: 8px;
  font-weight: 800;
  opacity: 0.72;
  text-transform: uppercase;
}

.correction-dot {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #1d1300;
  background: var(--amber);
  box-shadow: 0 0 0 2px #02100d;
  font-size: 9px;
}

.data-time-facts .truth-live {
  border-color: rgba(69, 214, 255, 0.38);
  background: linear-gradient(135deg, rgba(11, 58, 70, 0.58), rgba(4, 24, 19, 0.78));
}

.data-time-facts .truth-locked {
  border-color: rgba(167, 119, 255, 0.36);
  background: linear-gradient(135deg, rgba(49, 30, 78, 0.55), rgba(4, 24, 19, 0.78));
}

.stale-data-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 16px 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 211, 109, 0.42);
  border-radius: 8px;
  color: #fff6dc;
  background: rgba(79, 56, 8, 0.72);
}

.stale-data-banner.is-error {
  border-color: rgba(255, 107, 127, 0.56);
  color: #ffe5e9;
  background: rgba(83, 19, 30, 0.76);
}

.stale-data-banner > svg {
  width: 22px;
}

.stale-data-banner strong,
.stale-data-banner span {
  display: block;
}

.stale-data-banner span {
  margin-top: 2px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.82;
}

.stale-data-banner button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.operations-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.operation-status-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(123, 255, 199, 0.18);
  border-radius: 10px;
  background: rgba(4, 24, 19, 0.82);
}

.operation-status-card > div {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-status-card i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(108, 255, 141, 0.7);
}

.operation-status-card.is-error {
  border-color: rgba(255, 107, 127, 0.42);
  background: rgba(65, 13, 24, 0.64);
}

.operation-status-card.is-error i {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 107, 127, 0.7);
}

.operation-status-card strong,
.operation-status-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operation-status-card strong {
  margin: 10px 0 5px;
  font-size: 18px;
  text-transform: capitalize;
}

.operation-status-card small {
  color: var(--muted);
  line-height: 1.4;
}

.operations-status-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.truth-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.truth-layer-grid article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(2, 16, 13, 0.68);
}

.truth-layer-grid article.is-live {
  border-color: rgba(69, 214, 255, 0.42);
}

.truth-layer-grid article.is-locked {
  border-color: rgba(167, 119, 255, 0.45);
}

.truth-layer-grid span,
.truth-layer-grid strong,
.truth-layer-grid small {
  display: block;
}

.truth-layer-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.truth-layer-grid strong {
  margin: 8px 0;
  font-size: 16px;
}

.truth-layer-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.operations-table code,
.revision-summary code {
  color: #9de9ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.operations-reconcile-list {
  display: grid;
  gap: 8px;
}

.operations-reconcile-list article {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) repeat(4, minmax(90px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 7px;
  background: rgba(2, 16, 13, 0.58);
}

.operations-reconcile-list article > div,
.operations-reconcile-list p {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
}

.operations-reconcile-list p {
  display: grid;
}

.operations-reconcile-list p span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.operations-reconcile-list .is-ok {
  color: var(--green);
}

.operations-reconcile-list .is-error {
  color: var(--red);
}

.operations-alert-list,
.operations-history-list {
  display: grid;
  gap: 8px;
}

.operations-alert-list article {
  padding: 11px 12px;
  border-left: 3px solid var(--amber);
  border-radius: 5px;
  background: rgba(70, 49, 8, 0.28);
}

.operations-alert-list article.is-error {
  border-color: var(--red);
  background: rgba(78, 16, 27, 0.34);
}

.operations-alert-list article.is-success {
  border-color: var(--green);
  background: rgba(16, 70, 45, 0.26);
}

.operations-alert-list strong,
.operations-alert-list span {
  display: block;
}

.operations-alert-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.operations-history-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(123, 255, 199, 0.1);
}

.operations-history-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.operations-history-list i.is-sent,
.operations-history-list i.is-success {
  background: var(--green);
}

.operations-history-list i.is-failed {
  background: var(--red);
}

.operations-history-list strong,
.operations-history-list span {
  display: block;
}

.operations-history-list span,
.operations-history-list small {
  color: var(--muted);
  font-size: 10px;
}

.revision-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.revision-summary p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.revision-summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.calculation-drawer {
  margin: 14px 0;
  border: 1px solid rgba(69, 214, 255, 0.28);
  border-radius: 10px;
  background: rgba(5, 27, 29, 0.72);
}

.calculation-drawer summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
}

.calculation-drawer summary small {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.calculation-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(69, 214, 255, 0.15);
}

.calculation-equation article {
  padding: 10px;
  border-radius: 6px;
  background: rgba(2, 16, 13, 0.74);
}

.calculation-equation span,
.calculation-equation strong {
  display: block;
}

.calculation-equation span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.calculation-equation strong {
  margin-top: 4px;
  font-size: 13px;
}

.calculation-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  padding: 0 14px 14px;
}

.calculation-proof p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.calculation-proof span,
.table-source-label,
.bot-roster-identity small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-source-label {
  display: block;
  margin-top: 4px;
}

.bot-roster-identity {
  grid-template-columns: auto minmax(0, 1fr);
}

.bot-roster-identity small {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(button, a, input, select, summary):focus-visible {
  outline: 3px solid rgba(69, 214, 255, 0.92);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .operations-status-grid,
  .truth-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-mode-switch {
    min-width: 330px;
  }
}

@media (max-width: 760px) {
  .data-mode-switch {
    min-width: 100%;
  }

  .operations-status-grid,
  .operations-status-grid.compact,
  .truth-layer-grid,
  .calculation-proof {
    grid-template-columns: 1fr;
  }

  .operations-reconcile-list article,
  .calculation-equation {
    grid-template-columns: 1fr;
  }

  .calculation-equation > b {
    display: none;
  }

  .stale-data-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .stale-data-banner button {
    grid-column: 2;
    justify-self: start;
  }

  .operations-history-list article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .operations-history-list article > small {
    grid-column: 2;
  }
}

@media (min-width: 2200px) {
  .view {
    max-width: 2160px;
    margin-inline: auto;
  }

  .report-table th,
  .report-table td {
    padding-block: 10px;
    font-size: clamp(11px, 0.52vw, 14px);
  }

  .panel {
    padding: clamp(18px, 1vw, 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .count-update,
  .operation-status-card i,
  .feed-pip,
  .badge.live::before {
    animation: none !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

.withdrawal-balance-readout {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.withdrawal-balance-readout strong {
  color: var(--text-strong);
  font-size: 0.96rem;
  white-space: nowrap;
}

.withdrawal-balance-readout small {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.68rem;
  gap: 5px;
  white-space: nowrap;
}

.withdrawal-balance-readout small::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.withdrawal-balance-readout .is-live {
  color: var(--mint);
}

.withdrawal-balance-readout .is-saved {
  color: var(--warning);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(28, 255, 181, 0.13), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(66, 164, 255, 0.12), transparent 34rem),
    linear-gradient(120deg, #03120e 0%, #04100e 46%, #080e15 100%);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

.field-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(92, 255, 204, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 255, 204, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.28));
}

.field-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.018) 5px 6px);
  pointer-events: none;
}

.field-glow {
  position: fixed;
  z-index: -2;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.34;
  pointer-events: none;
}

.field-glow-a {
  left: -16vw;
  bottom: 8vh;
  background: rgba(42, 255, 169, 0.46);
}

.field-glow-b {
  right: -18vw;
  top: -12vh;
  background: rgba(82, 157, 255, 0.36);
}

.wow-app {
  min-height: 100vh;
}

.boot-screen,
.login-screen,
.error-screen {
  width: min(760px, calc(100vw - 32px));
  margin: 10vh auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(4, 36, 30, 0.92), rgba(2, 9, 11, 0.92));
  box-shadow: var(--shadow);
}

.boot-mark,
.login-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(123, 255, 199, 0.38);
  border-radius: 20px;
  color: var(--mint);
  background:
    radial-gradient(circle at 50% 35%, rgba(77, 255, 189, 0.18), transparent 54%),
    linear-gradient(145deg, rgba(5, 36, 31, 0.96), rgba(1, 13, 14, 0.94));
  font-weight: 950;
  letter-spacing: 0;
  box-shadow:
    0 0 38px rgba(77, 255, 189, 0.28),
    inset 0 0 24px rgba(77, 255, 189, 0.08);
}

.boot-logo,
.login-logo,
.brand-logo {
  display: block;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(77, 255, 189, 0.72));
}

.brand-logo {
  width: 82%;
  height: 82%;
}

.boot-screen h1,
.login-screen h1,
.error-screen h1 {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.boot-screen p,
.login-screen p,
.error-screen p {
  color: var(--muted);
}

.boot-bar {
  height: 7px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.boot-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  animation: bootSweep 1.3s ease-in-out infinite;
}

@keyframes bootSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(275%); }
}

.boot-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.boot-step-list span {
  position: relative;
  min-width: 0;
  padding: 12px 12px 12px 34px;
  border: 1px solid rgba(123, 255, 199, 0.16);
  border-radius: 12px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(77, 255, 189, 0.12), transparent),
    rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
  overflow: hidden;
}

.boot-step-list span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 16px rgba(77, 255, 189, 0.72);
  transform: translateY(-50%);
}

.boot-step-list span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(190, 255, 236, 0.18), transparent);
  animation: bootStepSweep 5s ease-in-out infinite;
  animation-delay: var(--boot-step-delay, 0s);
  transform: translateX(-120%);
}

.boot-step-list span:nth-child(2)::after { --boot-step-delay: 0.5s; }
.boot-step-list span:nth-child(3)::after { --boot-step-delay: 1s; }
.boot-step-list span:nth-child(4)::after { --boot-step-delay: 1.5s; }

@keyframes bootStepSweep {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 1; }
  58%, 100% { transform: translateX(120%); opacity: 0; }
}

.login-card {
  display: grid;
  gap: 22px;
}

.login-screen {
  width: min(820px, calc(100vw - 32px));
  margin-top: 4vh;
}

.portal-login-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.portal-logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 146px;
  height: 146px;
  margin-bottom: 2px;
  isolation: isolate;
}

.portal-logo-stage::before {
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(
    from 40deg,
    transparent 0 12%,
    rgba(77, 255, 189, 0.08) 18%,
    rgba(77, 255, 189, 0.78) 27%,
    transparent 39% 68%,
    rgba(67, 199, 255, 0.68) 80%,
    transparent 91%
  );
  content: "";
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: portalOrbit 12s linear infinite;
}

.portal-logo-stage::after {
  position: absolute;
  z-index: -2;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 255, 189, 0.26), rgba(44, 205, 237, 0.08) 48%, transparent 72%);
  filter: blur(10px);
  content: "";
  animation: portalHalo 4.8s ease-in-out infinite;
}

.portal-login-header .login-mark {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  box-shadow:
    0 0 30px rgba(77, 255, 189, 0.28),
    0 18px 54px rgba(0, 0, 0, 0.42),
    inset 0 0 28px rgba(77, 255, 189, 0.12);
  animation: portalLogoFloat 5.2s ease-in-out infinite;
}

.portal-login-header .login-mark::after {
  position: absolute;
  z-index: 2;
  top: -42%;
  left: -76%;
  width: 36%;
  height: 184%;
  background: linear-gradient(90deg, transparent, rgba(219, 255, 247, 0.4), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(18deg);
  animation: portalLogoSweep 5.6s ease-in-out infinite;
}

.portal-login-header .login-logo {
  position: relative;
  z-index: 1;
}

@keyframes portalOrbit {
  to { transform: rotate(360deg); }
}

@keyframes portalHalo {
  0%, 100% { opacity: 0.52; transform: scale(0.94); }
  50% { opacity: 0.92; transform: scale(1.08); }
}

@keyframes portalLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes portalLogoSweep {
  0%, 28% { opacity: 0; transform: translateX(0) rotate(18deg); }
  38% { opacity: 0.8; }
  56%, 100% { opacity: 0; transform: translateX(520%) rotate(18deg); }
}

.portal-brand {
  margin: 0;
  color: var(--mint) !important;
  font-size: clamp(2rem, 4.8vw, 3.35rem) !important;
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

.portal-login-header h1 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(0.86rem, 1.8vw, 1.1rem);
  letter-spacing: 0.18em;
  line-height: 1;
}

.portal-login-header > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.login-form {
  display: grid;
  gap: 14px;
  width: min(100%, 540px);
  margin: 0 auto;
}

.portal-login-submit {
  min-height: 50px;
  margin-top: 2px;
  font-size: 0.95rem;
}

.portal-downloads {
  display: grid;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid rgba(125, 255, 200, 0.14);
}

.portal-downloads-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.portal-downloads-heading span {
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-downloads-heading strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.portal-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-download-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(125, 255, 200, 0.18);
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(8, 43, 36, 0.72), rgba(2, 17, 18, 0.88));
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.portal-download-card:hover {
  border-color: rgba(77, 255, 189, 0.68);
  background: linear-gradient(145deg, rgba(14, 66, 52, 0.82), rgba(4, 26, 28, 0.94));
  transform: translateY(-2px);
}

.portal-download-card > span {
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-download-card strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-download-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(77, 255, 189, 0.12);
}

.app-frame {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 33, 28, 0.92), rgba(2, 9, 10, 0.94));
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(77, 255, 189, 0.48);
  border-radius: 16px;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.42), transparent 14px), rgba(77, 255, 189, 0.1);
  color: var(--mint);
  font-weight: 950;
  box-shadow: 0 0 34px rgba(77, 255, 189, 0.2);
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand span::before,
.status-dot {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.rail-nav {
  display: grid;
  gap: 9px;
}

.nav-button,
.rail-action,
.bottom-nav button,
.icon-button,
.button {
  border: 1px solid var(--line);
  background: rgba(3, 18, 16, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-button {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 13px;
  text-align: left;
  font-weight: 900;
}

.nav-key {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(69, 214, 255, 0.38);
  border-radius: 11px;
  color: #a9efff;
  background: rgba(69, 214, 255, 0.1);
  font-size: 0.75rem;
}

.nav-button:hover,
.rail-action:hover,
.bottom-nav button:hover,
.icon-button:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.nav-button.is-active {
  border-color: rgba(69, 214, 255, 0.62);
  background: linear-gradient(135deg, rgba(60, 183, 255, 0.34), rgba(120, 255, 214, 0.19));
  box-shadow: 0 0 24px rgba(69, 214, 255, 0.12);
}

.rail-network-note {
  display: grid;
  gap: 5px;
  padding: 12px 4px;
  border-top: 1px solid rgba(123, 255, 199, 0.14);
  border-bottom: 1px solid rgba(123, 255, 199, 0.14);
}

.rail-network-note span {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-network-note small {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.rail-app-downloads {
  display: grid;
  gap: 7px;
  padding: 11px 0;
}

.rail-app-title {
  color: var(--cyan);
  font-size: 0.69rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-app-download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(123, 255, 199, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.rail-app-download-row:hover {
  border-color: rgba(77, 255, 189, 0.34);
  background: rgba(77, 255, 189, 0.055);
}

.rail-app-platform {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.rail-app-platform strong,
.rail-app-platform small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-app-platform strong {
  color: var(--text);
  font-size: 0.7rem;
}

.rail-app-platform small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rail-app-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #c9fff0;
  background: rgba(77, 255, 189, 0.12);
}

.rail-app-icon.ios {
  color: #dff8ff;
  background: rgba(69, 214, 255, 0.12);
}

.rail-app-icon.windows {
  color: #8dd8ff;
  background: rgba(31, 153, 255, 0.14);
}

.rail-app-icon svg {
  width: 15px;
  height: 15px;
}

.rail-download-link {
  color: var(--mint);
  font-size: 0.61rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.rail-download-link:hover {
  color: #dffff5;
}

.rail-app-download-row.is-disabled,
.rail-download-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.rail-spacer {
  flex: 1;
}

.rail-actions {
  display: grid;
  gap: 9px;
}

.rail-action {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 900;
}

.rail-foot {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px clamp(18px, 3.2vw, 44px) 44px;
}

.wow-copyright-line {
  margin-top: auto;
  padding: 28px 0 4px;
  color: rgba(157, 185, 173, 0.74);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.boot-screen + .wow-copyright-line,
.login-screen + .wow-copyright-line,
.error-screen + .wow-copyright-line {
  width: min(760px, calc(100vw - 32px));
  margin: -6vh auto 0;
  padding-bottom: 22px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: -24px calc(clamp(18px, 3.2vw, 44px) * -1) 18px;
  padding: 18px clamp(18px, 3.2vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 9, 8, 0.78);
  backdrop-filter: blur(18px);
}

.top-title {
  min-width: 0;
}

.top-title .eyebrow,
.eyebrow {
  margin: 0 0 7px;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-title h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.view-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-title p,
.view-head p,
.section-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  font-weight: 950;
  text-decoration: none;
}

.button-primary {
  border-color: rgba(77, 255, 189, 0.56);
  background: linear-gradient(135deg, rgba(77, 255, 189, 0.9), rgba(69, 214, 255, 0.8));
  color: #02100d;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.035);
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
  pointer-events: none;
}

.button-danger {
  border-color: rgba(255, 98, 112, 0.5);
  background: rgba(255, 67, 87, 0.1);
  color: #ffabb3;
}

.button-danger:hover {
  border-color: rgba(255, 124, 138, 0.78);
  background: rgba(255, 67, 87, 0.17);
}

.icon-button {
  width: 42px;
  padding: 0;
}

.notification-button {
  position: relative;
}

.notification-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(77, 255, 189, 0.5);
  border-radius: 999px;
  color: #04130f;
  background: var(--mint);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.view {
  display: grid;
  gap: 18px;
}

.view-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 0 0;
}

.view-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(123, 255, 199, 0.16);
  border-radius: 14px;
  background: rgba(2, 14, 12, 0.48);
}

.view-summary-row > div:first-child {
  min-width: 0;
}

.view-summary-row .quick-status {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.view-summary-row .button {
  min-height: 38px;
  padding-inline: 13px;
}

.view-summary-row p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
}

.panel,
.metric-card,
.asset-card,
.bot-card,
.statement-card,
.investor-ledger-card,
.feed-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(10, 50, 43, 0.72), rgba(2, 10, 12, 0.84)),
    rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
}

.panel {
  padding: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: stretch;
}

.core-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.core-panel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.core-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  margin-inline: -18px;
  overflow: hidden;
  place-items: center;
}

.core-overlay {
  position: absolute;
  inset: 18px;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  pointer-events: none;
}

.core-caption {
  position: relative;
  z-index: 2;
  padding: 13px 0 3px;
  border-top: 1px solid rgba(100, 230, 184, 0.16);
  background: linear-gradient(90deg, rgba(2, 14, 13, 0.76), transparent 72%);
}

.core-caption .eyebrow {
  margin: 0;
  font-size: 0.86rem;
}

.core-caption p:last-child {
  max-width: 520px;
  margin: 9px 0 0;
  color: rgba(232, 255, 247, 0.9);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
}

.core-center {
  display: grid;
  place-items: center;
  width: min(220px, 54vw);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(77, 255, 189, 0.35);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(4, 17, 14, 0.9) 0 44%, rgba(77, 255, 189, 0.08) 45% 60%, transparent 61%);
  box-shadow: inset 0 0 34px rgba(77, 255, 189, 0.14), 0 0 60px rgba(77, 255, 189, 0.18);
}

.core-center strong {
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 1;
}

.core-center span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 3.15rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
}

.quick-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.badge.active,
.badge.verified,
.badge.live {
  color: var(--green);
  border-color: rgba(108, 255, 141, 0.28);
}

.badge.inactive,
.badge.manual {
  color: #a9c5dc;
  border-color: rgba(90, 169, 255, 0.34);
}

.badge.warning {
  color: var(--amber);
  border-color: rgba(255, 211, 109, 0.34);
}

.badge.error {
  color: var(--red);
  border-color: rgba(255, 107, 127, 0.34);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-copy .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
  position: relative;
  min-height: 128px;
  padding: 16px;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), transparent);
  opacity: 0.72;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.22rem, 1.9vw, 1.85rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.metric-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 850;
}

.metric-card-chips {
  display: grid;
  align-content: start;
  gap: 10px;
}

.roi-matrix-card {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 14px;
}

.roi-matrix-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.roi-matrix-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.roi-matrix-head small {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.roi-matrix {
  display: grid;
  gap: 6px;
}

.roi-matrix-row {
  display: grid;
  grid-template-columns: minmax(116px, 1fr) repeat(2, minmax(92px, 100px)) minmax(104px, 112px);
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.14));
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.15);
}

.roi-matrix-labels {
  padding: 0 9px 2px;
  border: 0;
  background: transparent;
}

.roi-matrix-labels span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.roi-matrix-labels span:nth-child(2),
.roi-matrix-labels span:nth-child(3),
.roi-matrix-labels span:nth-child(4) {
  text-align: right;
}

.roi-asset-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1;
}

.roi-matrix-row .token {
  width: 22px;
  height: 22px;
}

.roi-matrix-row .token svg {
  width: 14px;
  height: 14px;
}

.roi-matrix-row strong {
  justify-self: end;
  min-width: 84px;
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bot-worker-label {
  color: var(--mint);
  font-size: 0.68em;
  font-weight: 850;
  white-space: normal;
}

.ledger-trust-panel {
  margin-top: 8px;
  padding: 10px 12px;
}

.ledger-trust-panel .section-head {
  margin-bottom: 7px;
}

.ledger-trust-panel .section-copy {
  display: none;
}

.ledger-trust-grid,
.math-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ledger-trust-grid article,
.math-audit-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.16));
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 18, 15, 0.88), rgba(4, 31, 27, 0.55));
}

.ledger-trust-grid article {
  padding: 8px 10px;
}

.ledger-trust-grid span,
.math-audit-grid span,
.mini-section-head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ledger-trust-grid strong,
.math-audit-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--asset-solid, var(--text));
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.ledger-trust-grid strong {
  margin-top: 3px;
  font-size: clamp(0.88rem, 1.15vw, 1.02rem);
}

.ledger-trust-grid small,
.math-audit-grid small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.ledger-trust-grid small {
  margin-top: 3px;
  font-size: 0.65rem;
}

.ledger-validation-list,
.email-delivery-log {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ledger-validation-item,
.email-delivery-log article {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(123, 255, 199, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.ledger-validation-item.warning {
  border-color: rgba(255, 211, 109, 0.28);
}

.ledger-validation-item.error,
.math-audit-grid article.is-warning {
  border-color: rgba(255, 107, 127, 0.32);
}

.ledger-validation-item b,
.email-delivery-log strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
}

.ledger-validation-item span,
.email-delivery-log small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.math-audit-panel {
  margin-top: 14px;
}

.math-audit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.math-audit-grid p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.math-audit-grid p b {
  color: var(--asset-solid, var(--text));
  text-align: right;
}

.mini-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mini-section-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.asset-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.today-asset-section {
  margin-top: 10px;
  padding: 14px;
}

.today-asset-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.today-asset-head h2 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.today-asset-strip {
  margin-top: 0;
}

.today-profit-card {
  min-height: 116px;
}

.today-profit-value {
  display: block;
  margin-top: 12px;
  color: var(--asset-solid);
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  font-variant-numeric: tabular-nums;
}

.today-asset-foot {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
}

.asset-card {
  position: relative;
  min-height: 116px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(110deg, var(--asset-glow), transparent 38%),
    linear-gradient(150deg, rgba(10, 50, 43, 0.72), rgba(2, 10, 12, 0.88));
  box-shadow:
    inset 3px 0 0 var(--asset-solid),
    inset 0 2px 0 var(--asset-solid),
    0 0 24px var(--asset-glow),
    0 16px 46px rgba(0, 0, 0, 0.2);
}

.asset-card::before {
  content: attr(data-asset);
  position: absolute;
  right: 18px;
  bottom: 4px;
  color: transparent;
  -webkit-text-stroke: 1px var(--asset-solid);
  opacity: 0.16;
  font-size: 4.6rem;
  font-weight: 950;
  line-height: 1;
}

.asset-card-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.asset-card-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-card-head .token {
  width: 38px;
  height: 38px;
  box-shadow: 0 0 26px var(--asset-glow);
}

.asset-card-head .token svg {
  width: 25px;
  height: 25px;
}

.asset-card-head .badge {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.token {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #03110d;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.token svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.token.eth { background: linear-gradient(135deg, #d9fff2, #7dff93); }
.token.usdt { background: linear-gradient(135deg, #ccfff5, #42d6a4); }
.token.usdc { background: linear-gradient(135deg, #b9e8ff, #4b94ff); }
.token.sol { background: linear-gradient(135deg, #b7fff2, #a777ff); }

.asset-card h3,
.bot-card h3,
.statement-card h3,
.investor-ledger-card h3 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.asset-card-head h3 {
  font-size: 1.08rem;
  line-height: 1;
}

.asset-value {
  position: relative;
  margin-top: 13px;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1;
}

.asset-value-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.asset-value-button:hover,
.asset-value-button:focus-visible {
  color: var(--asset-solid);
  outline: none;
}

.asset-value-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.asset-meta {
  position: relative;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  color: var(--mint);
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
}

.chart-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 16px;
}

.donut-wrap {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.donut {
  display: grid;
  place-items: center;
  width: min(250px, 72vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: conic-gradient(var(--mint) 0 25%, var(--cyan) 25% 50%, var(--violet) 50% 75%, var(--blue) 75% 100%);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.3), 0 0 50px rgba(77, 255, 189, 0.16);
}

.donut-inner {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #03110f;
  text-align: center;
  padding: 18px;
}

.donut-inner strong {
  display: block;
  font-size: 1.3rem;
}

.donut-inner span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bars {
  display: grid;
  gap: 11px;
  align-content: center;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(78px, 0.34fr);
  gap: 10px;
  align-items: center;
}

.bar-row span,
.bar-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bar-row small {
  text-align: right;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-track b {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
}

.feed-list,
.statement-list,
.report-list,
.withdrawal-list {
  display: grid;
  gap: 10px;
}

.feed-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(123, 255, 199, 0.12);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-pip {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.feed-item strong {
  display: block;
  font-size: 0.9rem;
}

.feed-item span,
.feed-item small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.bot-roster {
  padding: 0;
  overflow: hidden;
}

.bot-roster-column-head,
.bot-roster-row {
  display: grid;
  grid-template-columns: minmax(145px, 1.1fr) 105px minmax(150px, 1fr) minmax(130px, 0.85fr) 82px 92px minmax(110px, 0.8fr) 24px;
  gap: 10px;
  align-items: center;
}

.bot-roster-column-head {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(99, 211, 172, 0.18);
  color: var(--muted);
  background: rgba(1, 12, 10, 0.78);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bot-roster-group + .bot-roster-group {
  border-top: 1px solid rgba(105, 219, 180, 0.22);
}

.bot-roster-group-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 11px 14px;
  border-left: 3px solid var(--roster-color);
  background: linear-gradient(90deg, var(--roster-soft), rgba(2, 18, 14, 0.7) 48%, rgba(2, 18, 14, 0.46));
}

.bot-roster-group-head > div:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}

.bot-roster-group-head .token,
.bot-roster-identity .token {
  width: 28px;
  height: 28px;
}

.bot-roster-group-head span,
.bot-roster-group-head > div:not(:first-child) {
  display: grid;
  gap: 2px;
}

.bot-roster-group-head > div:not(:first-child) {
  min-width: 150px;
  text-align: right;
}

.bot-roster-group-head small,
.bot-roster-row small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.bot-roster-group-head strong {
  color: var(--text);
  font-size: 0.83rem;
}

.bot-roster-row {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 8px 14px;
  border: 0;
  border-top: 1px solid rgba(105, 211, 174, 0.11);
  color: var(--text);
  background: rgba(2, 14, 12, 0.42);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.bot-roster-row::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  background: transparent;
  content: "";
}

.bot-roster-row:hover {
  background: color-mix(in srgb, var(--roster-color) 8%, rgba(3, 24, 19, 0.92));
  box-shadow: inset 0 0 30px rgba(101, 240, 188, 0.04);
}

.bot-roster-row:hover::before {
  background: var(--roster-color);
  box-shadow: 0 0 10px var(--roster-color);
}

.bot-roster-identity,
.bot-roster-value,
.bot-roster-today,
.bot-roster-roi {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.bot-roster-value,
.bot-roster-today,
.bot-roster-roi {
  display: grid;
  gap: 2px;
}

.bot-roster-row small {
  display: none;
}

.bot-roster-row b {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-roster-today b,
.bot-roster-roi b {
  color: var(--roster-color);
}

.bot-roster-spark .sparkline {
  height: 28px;
  margin: 0;
}

.bot-roster-open {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.bot-roster-open svg {
  width: 18px;
  height: 18px;
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.bot-card {
  grid-column: span 3;
  position: relative;
  min-height: 176px;
  padding: 13px;
  overflow: hidden;
  text-align: left;
}

.bot-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bot-color, var(--mint)), transparent);
}

.bot-card button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.bot-grid > .bot-card:last-child:nth-child(4n + 1) {
  grid-column: span 12;
}

.bot-grid > .bot-card:nth-last-child(2):nth-child(4n + 1),
.bot-grid > .bot-card:last-child:nth-child(4n + 2) {
  grid-column: span 6;
}

.bot-grid > .bot-card:nth-last-child(3):nth-child(4n + 1),
.bot-grid > .bot-card:nth-last-child(2):nth-child(4n + 2),
.bot-grid > .bot-card:last-child:nth-child(4n + 3) {
  grid-column: span 4;
}

.bot-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.bot-card-head > div {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.bot-balance {
  margin: 12px 0 9px;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 0.95;
}

.bot-card-metrics {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.bot-live-line {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(123, 255, 199, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bot-card-metrics .asset-meta {
  min-width: 0;
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.35;
  text-align: right;
}

.bot-live-line strong {
  min-width: 0;
  color: var(--bot-color, var(--mint));
  overflow-wrap: anywhere;
}

.sparkline {
  width: 100%;
  height: 34px;
  margin-top: 7px;
}

@media (min-width: 1700px) {
  .bot-grid {
    grid-template-columns: repeat(30, minmax(0, 1fr));
    gap: 12px;
  }

  .bot-grid > .bot-card {
    grid-column: span 5;
  }

  .bot-grid.bot-grid-count-11 > .bot-card:nth-last-child(-n + 5) {
    grid-column: span 6;
  }
}

.sparkline polyline {
  fill: none;
  stroke: var(--line-color, var(--mint));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline path {
  fill: rgba(77, 255, 189, 0.08);
}

.small-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.small-stat {
  padding: 12px;
  border: 1px solid rgba(123, 255, 199, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.small-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.small-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.bot-trading-panel {
  overflow: hidden;
}

.bot-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bot-live-total-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bot-live-total-strip article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.18));
  border-radius: 12px;
  background: linear-gradient(135deg, var(--asset-color, rgba(77, 255, 189, 0.08)), rgba(3, 20, 17, 0.76));
  box-shadow: inset 0 0 18px rgba(123, 255, 199, 0.04);
}

.bot-live-total-strip span,
.bot-live-total-strip small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bot-live-total-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--asset-solid, var(--mint));
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.bot-live-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.18));
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, var(--asset-color, rgba(77, 255, 189, 0.12)), transparent 46%),
    rgba(0, 0, 0, 0.15);
}

.bot-live-card > div,
.bot-week-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bot-live-card > div > span,
.bot-week-head span {
  min-width: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-live-card .badge {
  margin-left: auto;
}

.bot-live-amount {
  color: var(--asset-solid, var(--mint));
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bot-live-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bot-live-card .bot-live-label {
  color: var(--asset-solid, var(--mint));
}

.bot-live-card i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--asset-solid, var(--mint)), transparent);
  box-shadow: 0 0 18px var(--asset-color, rgba(77, 255, 189, 0.18));
}

.asset-profit {
  color: var(--asset-solid, var(--mint));
  font-weight: 950;
}

.bot-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bot-history-asset-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.bot-history-asset-summary article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.18));
  border-left: 3px solid var(--asset-solid, var(--mint));
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.bot-history-asset-summary span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--asset-solid, var(--text));
  font-size: 0.76rem;
  font-weight: 950;
}

.bot-history-asset-summary strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.bot-history-asset-summary small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.bot-week-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.18));
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.bot-week-head {
  justify-content: space-between;
}

.bot-week-head strong {
  color: var(--asset-solid, var(--mint));
  font-size: 0.88rem;
  font-weight: 950;
  white-space: nowrap;
}

.bot-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.bot-day-pill {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(123, 255, 199, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.bot-day-pill b {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.bot-day-pill strong {
  color: var(--asset-solid, var(--text));
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .bot-history-grid {
    grid-template-columns: 1fr;
  }
}

.bot-history-note {
  margin: 12px 2px 0;
}

.bot-inactive-performance-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 194, 107, 0.22);
  border-radius: 12px;
  background: rgba(255, 194, 107, 0.06);
}

.bot-inactive-performance-note strong {
  color: var(--amber);
}

.bot-inactive-performance-note span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.statement-card {
  padding: 16px;
}

.statement-card h3 {
  font-size: 1rem;
}

.native-value {
  margin: 12px 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.statement-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.entry-list span {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(123, 255, 199, 0.13);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.78rem;
  font-weight: 850;
}

.investor-ledger-list {
  display: grid;
  gap: 14px;
}

.investor-board {
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 35, 30, 0.74), rgba(2, 9, 11, 0.84)),
    rgba(0, 0, 0, 0.12);
}

.investor-board-header,
.investor-row-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(190px, 1.15fr) minmax(190px, 1.15fr) minmax(190px, 1.15fr) minmax(170px, 0.95fr);
  gap: 10px;
  align-items: stretch;
}

.investor-board-header {
  padding: 6px 8px;
  border-bottom: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.investor-row-card {
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(123, 255, 199, 0.13);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.investor-row-card:last-child {
  border-bottom: 0;
}

.investor-person,
.investor-cell {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(123, 255, 199, 0.08);
  border-radius: 10px;
  background: rgba(2, 12, 10, 0.36);
}

.investor-person {
  display: grid;
  gap: 7px;
  align-content: start;
}

.investor-person h3 {
  margin: 0;
  color: var(--mint);
  font-size: 1.12rem;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}

.investor-person small,
.investor-cell > span,
.mini-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.investor-cell {
  display: grid;
  gap: 8px;
  align-content: start;
}

.investor-person .quick-status {
  gap: 5px;
}

.investor-person .badge {
  min-height: 23px;
  padding: 5px 8px;
  font-size: 0.62rem;
}

.investor-bots-mini {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(123, 255, 199, 0.1);
  background: rgba(0, 0, 0, 0.11);
}

.investor-bots-mini > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.bot-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(123, 255, 199, 0.13);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
}

.bot-mini-chip .token {
  width: 20px;
  height: 20px;
}

.bot-mini-chip .token svg {
  width: 13px;
  height: 13px;
}

.bot-mini-chip b,
.bot-mini-chip em,
.bot-mini-chip small {
  font-style: normal;
  white-space: nowrap;
}

.bot-mini-chip em,
.bot-mini-chip small {
  color: var(--muted);
}

.investor-ledger-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(150deg, rgba(12, 58, 49, 0.78), rgba(2, 10, 12, 0.86)),
    rgba(0, 0, 0, 0.14);
}

.investor-ledger-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.investor-ledger-head p,
.partner-balance-head span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.investor-ledger-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ledger-stat {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(123, 255, 199, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.ledger-stat > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.asset-line-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.asset-line-list-total {
  margin-top: 2px;
}

.asset-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(123, 255, 199, 0.1);
}

.asset-line:last-child {
  border-bottom: 0;
}

.asset-line b {
  color: var(--asset-solid, var(--asset-color, var(--mint)));
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 14px var(--asset-color, rgba(77, 255, 189, 0.24));
}

.asset-line strong {
  min-width: 0;
  color: var(--asset-solid, var(--text));
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 0 16px var(--asset-color, rgba(77, 255, 189, 0.28));
}

.partner-balance-tile .asset-line {
  border-bottom-color: var(--asset-color, rgba(123, 255, 199, 0.14));
}

.partner-balance-tile .asset-line b,
.partner-balance-tile .asset-line strong {
  color: var(--asset-solid, var(--mint));
}

.asset-line-empty {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.asset-chip-total {
  justify-content: flex-end;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--chip-color, rgba(123, 255, 199, 0.2));
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

.asset-chip .token {
  width: 20px;
  height: 20px;
}

.asset-chip .token svg {
  width: 13px;
  height: 13px;
}

.asset-chip b {
  overflow-wrap: anywhere;
}

.asset-chip-empty {
  padding-left: 10px;
  color: var(--muted);
}

.investor-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.investor-entry-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(123, 255, 199, 0.13);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.investor-entry-pill .token {
  grid-row: span 2;
  width: 26px;
  height: 26px;
}

.investor-entry-pill b,
.investor-entry-pill em,
.investor-entry-pill small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.investor-entry-pill b {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.investor-entry-pill em,
.investor-entry-pill small {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.partner-card,
.investor-rollup-card,
.peter-report-card,
.report-builder-card {
  background:
    linear-gradient(150deg, rgba(12, 58, 49, 0.78), rgba(2, 10, 12, 0.86)),
    rgba(0, 0, 0, 0.14);
}

.partner-ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.partner-math-audit {
  border-color: rgba(77, 255, 189, 0.24);
}

.partner-math-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.partner-math-grid article {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.16));
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--asset-color, rgba(77, 255, 189, 0.08)), rgba(0, 0, 0, 0.14)),
    rgba(0, 0, 0, 0.14);
}

.partner-math-grid article > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--asset-solid, var(--mint));
  font-weight: 950;
  text-transform: uppercase;
}

.partner-math-grid p {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) auto;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-math-grid b {
  color: var(--asset-solid, var(--text));
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ledger-reconciliation-audit {
  border-color: rgba(77, 166, 255, 0.24);
}

.ledger-reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ledger-reconciliation-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.16));
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--asset-color, rgba(77, 255, 189, 0.08)), rgba(0, 0, 0, 0.16)),
    rgba(0, 0, 0, 0.12);
}

.ledger-reconciliation-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--asset-solid, var(--mint));
  font-weight: 950;
  text-transform: uppercase;
}

.ledger-reconciliation-grid p {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-reconciliation-grid b {
  color: var(--asset-solid, var(--text));
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ledger-reconciliation-grid .ledger-gap b {
  color: #ffcf5a;
}

.partner-balance-tile {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(11, 54, 46, 0.78), rgba(2, 10, 12, 0.88)),
    rgba(0, 0, 0, 0.14);
}

.partner-balance-head {
  display: grid;
  gap: 10px;
  align-items: start;
}

.partner-balance-head h3 {
  margin: 0;
  color: var(--mint);
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.partner-balance-head .asset-chip-list {
  justify-content: flex-start;
}

.partner-fiat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  padding-top: 12px;
  border-top: 1px solid rgba(123, 255, 199, 0.13);
}

.partner-fiat-strip span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(90, 169, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(36, 122, 255, 0.12), rgba(123, 255, 199, 0.05)),
    rgba(0, 0, 0, 0.14);
}

.partner-fiat-strip b {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1;
  text-transform: uppercase;
}

.partner-fiat-strip strong {
  color: #bfe8ff;
  font-size: 0.94rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.partner-balance-lines {
  display: grid;
  gap: 8px;
  align-content: stretch;
}

.partner-balance-lines > div {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(123, 255, 199, 0.13);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.82rem;
  font-weight: 850;
}

.partner-balance-lines > div > b {
  color: var(--text);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.partner-statement-button {
  width: 100%;
  min-height: 38px;
}

.performance-pulse-panel {
  overflow: hidden;
}

.performance-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.performance-pulse-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--asset-color, rgba(123, 255, 199, 0.16));
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--asset-color, rgba(77, 255, 189, 0.08)), rgba(0, 0, 0, 0.14)),
    rgba(0, 0, 0, 0.14);
}

.performance-pulse-card > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.performance-pulse-card > div strong {
  margin-right: auto;
  color: var(--asset-solid, var(--mint));
  font-size: 1rem;
  font-weight: 950;
}

.performance-pulse-card p {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto;
  gap: 7px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.performance-pulse-card p b {
  color: var(--asset-solid, var(--text));
}

.performance-pulse-card p i {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--asset-solid, var(--mint)), transparent);
  box-shadow: 0 0 18px var(--asset-color, rgba(77, 255, 189, 0.18));
}

.performance-pulse-card small {
  color: var(--muted);
  font-weight: 850;
}

.statement-value-hero {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(77, 255, 189, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(77, 255, 189, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.18);
}

.statement-value-hero span,
.statement-value-hero small,
.statement-breakdown-grid article > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.statement-value-hero strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.statement-breakdown-grid {
  display: grid;
  gap: 10px;
}

.statement-breakdown-grid article {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.statement-confidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ledger-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-ledger-summary .metric-card {
  min-height: 108px;
}

.report-builder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-builder-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-email-card {
  background:
    linear-gradient(150deg, rgba(11, 58, 48, 0.8), rgba(2, 10, 13, 0.88)),
    radial-gradient(circle at 18% 0%, rgba(77, 255, 189, 0.1), transparent 28rem);
}

.peter-preview-card {
  border-color: rgba(97, 239, 186, 0.3);
}

.peter-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.peter-preview-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.peter-preview-grid span,
.peter-preview-grid small,
.peter-preview-footer span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.peter-preview-grid strong {
  display: block;
  overflow: hidden;
  margin: 5px 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peter-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 10px;
  background: rgba(8, 39, 31, 0.42);
}

.peter-preview-footer strong {
  color: var(--mint);
  font-size: 0.95rem;
  text-align: right;
}

.email-report-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.email-report-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.email-report-form .button {
  min-height: 48px;
  white-space: nowrap;
}

.email-report-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.email-report-status div,
.email-report-warning,
.email-report-notice {
  border: 1px solid rgba(123, 255, 199, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.email-report-status div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.email-report-status span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.email-report-status strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-report-warning,
.email-report-notice {
  margin-top: 12px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.email-report-warning {
  border-color: rgba(255, 211, 109, 0.3);
  color: #ffe1a0;
}

.email-report-notice.success {
  border-color: rgba(77, 255, 189, 0.34);
  color: var(--mint);
}

.email-report-notice.warning {
  border-color: rgba(255, 211, 109, 0.34);
  color: #ffe1a0;
}

.report-preview-panel,
.allocation-report-screen {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(123, 255, 199, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.report-preview-panel h3,
.allocation-report-title strong {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.report-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.report-preview-grid span {
  padding: 10px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.premium-report-cover {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(90, 169, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(90, 169, 255, 0.12), rgba(77, 255, 189, 0.06)),
    rgba(0, 0, 0, 0.16);
}

.premium-report-cover h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.premium-report-cover p {
  margin: 6px 0 0;
  color: var(--muted);
}

.peter-allocation-report {
  border-color: rgba(77, 255, 189, 0.34);
}

.allocation-report-title {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  text-align: center;
}

.allocation-report-title span {
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.allocation-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.allocation-report-bot {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.allocation-report-bot.is-inactive {
  border-color: rgba(90, 169, 255, 0.32);
}

.allocation-report-bot strong,
.allocation-report-bot em {
  color: var(--text);
  font-style: normal;
  font-weight: 950;
}

.allocation-report-bot span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 950;
  text-transform: uppercase;
}

.allocation-report-bot .token {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  vertical-align: middle;
}

.allocation-report-bot .token svg {
  width: 16px;
  height: 16px;
}

.allocation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.allocation-summary strong,
.allocation-summary span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.allocation-summary strong {
  color: var(--mint);
}

.peter-daily-summary {
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(77, 255, 189, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(77, 255, 189, 0.12), transparent 44%),
    rgba(0, 0, 0, 0.18);
}

.peter-daily-summary strong,
.peter-daily-summary span {
  padding: 12px 14px;
  border-color: rgba(123, 255, 199, 0.24);
  background: rgba(4, 28, 23, 0.64);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 950;
}

.peter-daily-summary strong {
  color: var(--mint);
  text-transform: uppercase;
}

.peter-daily-summary span {
  color: var(--text);
}

.report-preview-list {
  margin-top: 14px;
}

.report-entry-list {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.statement-card .asset-value {
  margin: 10px 0;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.report-table th,
.report-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(123, 255, 199, 0.12);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.report-table td {
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.report-table .token {
  width: 24px;
  height: 24px;
  margin-right: 7px;
  vertical-align: middle;
}

.report-table .token svg {
  width: 16px;
  height: 16px;
}

.withdrawal-source-panel {
  border-color: rgba(90, 169, 255, 0.22);
}

.withdrawal-source-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.withdrawal-source-note {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.withdrawal-source-note span,
.withdrawal-source-note strong {
  display: block;
}

.withdrawal-source-note span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.withdrawal-source-note strong {
  color: var(--text);
  font-size: 0.9rem;
}

.withdrawal-log-panel {
  margin-top: 18px;
}

.withdrawal-amount-control {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}

.withdrawal-amount-control input {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(123, 255, 199, 0.22);
  border-radius: 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}

.withdrawal-amount-control input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(77, 255, 189, 0.12);
}

.withdrawal-amount-control span {
  min-width: 48px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.withdrawal-execute-button {
  min-height: 36px;
  padding-inline: 14px;
}

.withdrawal-execute-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(90, 169, 255, 0.28);
  border-radius: 12px;
  color: #cfefff;
  background:
    linear-gradient(90deg, rgba(90, 169, 255, 0.12), rgba(77, 255, 189, 0.06)),
    rgba(0, 0, 0, 0.16);
  font-size: 0.86rem;
  font-weight: 900;
}

.withdrawal-approval-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
}

.withdrawal-approval-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(123, 255, 199, 0.1);
}

.withdrawal-approval-card strong,
.withdrawal-approval-card span {
  display: block;
}

.withdrawal-approval-card > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.withdrawal-approval-card small {
  display: block;
  margin-top: 5px;
  color: #9fd8c8;
  font-size: 0.72rem;
  font-weight: 850;
}

.withdrawal-approve-button {
  white-space: nowrap;
}

.withdrawal-approval-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.approval-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.approval-steps span {
  padding: 8px;
  border: 1px solid rgba(123, 255, 199, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.approval-steps .is-done {
  color: var(--green);
  border-color: rgba(108, 255, 141, 0.32);
}

.approval-steps .is-current {
  color: #a9c5dc;
  border-color: rgba(90, 169, 255, 0.38);
  background: rgba(90, 169, 255, 0.1);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 5px;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(77, 255, 189, var(--heat, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.drawer-backdrop,
.oracle-backdrop,
.notification-backdrop,
.signature-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
}

.drawer,
.oracle-panel,
.notification-panel,
.signature-modal {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: min(520px, calc(100vw - 36px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(5, 35, 30, 0.96), rgba(2, 9, 12, 0.98));
  box-shadow: var(--shadow);
}

.signature-modal {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  transform: translate(-50%, -50%);
}

.drawer-content,
.oracle-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.signature-summary {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(123, 255, 199, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.signature-summary span,
.signature-summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.signature-summary strong {
  color: var(--text);
  font-size: 1rem;
}

.drawer-head,
.oracle-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.drawer-head h2,
.oracle-head h2 {
  margin: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.bot-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--bot-color, rgba(123, 255, 199, 0.18));
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--bot-color, rgba(77, 255, 189, 0.12)), rgba(0, 0, 0, 0.12)),
    rgba(0, 0, 0, 0.16);
}

.bot-detail-token .token {
  width: 52px;
  height: 52px;
}

.bot-detail-token .token svg {
  width: 30px;
  height: 30px;
}

.bot-detail-hero span,
.bot-detail-hero small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bot-detail-hero strong {
  display: block;
  color: var(--bot-solid, var(--mint));
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.asset-explain-drawer .drawer-head h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}

.asset-explain-hero {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--asset-solid);
  border-radius: 12px;
  background:
    linear-gradient(120deg, var(--asset-glow), transparent 52%),
    rgba(0, 0, 0, 0.18);
}

.asset-explain-hero span,
.asset-explain-hero small,
.asset-explain-ledger span,
.asset-explain-ledger small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.asset-explain-hero strong {
  color: var(--asset-solid);
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  line-height: 1;
}

.asset-explain-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.asset-explain-ledger article,
.asset-equation,
.asset-explain-table article {
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.asset-explain-ledger article {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.asset-explain-ledger strong {
  color: var(--text);
  font-size: 1rem;
}

.asset-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.asset-equation strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-equation span {
  color: var(--mint);
  font-weight: 950;
}

.asset-equation b {
  color: var(--text);
  white-space: nowrap;
}

.asset-explain-table {
  display: grid;
  gap: 8px;
}

.asset-explain-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.asset-explain-table strong,
.asset-explain-table b {
  color: var(--text);
}

.asset-explain-table small,
.asset-explain-table span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.asset-explain-table .is-excluded {
  opacity: 0.62;
}

.drawer-inner-panel {
  padding: 14px;
  border-radius: 16px;
}

.bot-detail-timeline {
  display: grid;
  gap: 9px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(123, 255, 199, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.timeline-step span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
}

.timeline-step strong {
  min-width: 0;
}

.timeline-step small {
  color: var(--muted);
  font-weight: 850;
}

.timeline-step.is-done span {
  background: var(--green);
  box-shadow: 0 0 16px rgba(108, 255, 141, 0.5);
}

.timeline-step.is-muted {
  opacity: 0.72;
}

.bot-history-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bot-history-strip span {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(123, 255, 199, 0.12);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.12);
}

.bot-history-strip b {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.bot-history-strip strong {
  color: var(--text);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(123, 255, 199, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.notification-item strong {
  display: block;
  color: var(--text);
}

.notification-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.oracle-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-width: 132px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(77, 255, 189, 0.44);
  background: rgba(2, 20, 18, 0.88);
  box-shadow: 0 0 38px rgba(77, 255, 189, 0.2);
  font-weight: 950;
}

.secret-logo-control {
  position: fixed;
  left: 24px;
  bottom: 128px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(77, 255, 189, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, rgba(77, 255, 189, 0.22), transparent 56%),
    rgba(2, 20, 18, 0.86);
  box-shadow:
    0 0 30px rgba(77, 255, 189, 0.2),
    inset 0 0 18px rgba(77, 255, 189, 0.08);
  cursor: pointer;
}

.secret-logo-control:hover,
.secret-logo-control.needs-ctrl {
  border-color: rgba(165, 255, 220, 0.9);
  box-shadow:
    0 0 42px rgba(77, 255, 189, 0.34),
    inset 0 0 24px rgba(77, 255, 189, 0.14);
  transform: translateY(-1px);
}

.secret-logo-control:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secret-logo-image {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(77, 255, 189, 0.66));
  pointer-events: none;
}

.rail-actions {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
}

.rail-actions .secret-logo-control {
  position: static;
  width: 44px;
  height: 44px;
}

@media (max-height: 980px) and (min-width: 761px) {
  .side-rail {
    gap: 8px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .rail-nav {
    gap: 5px;
  }

  .nav-button {
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 9px;
  }

  .nav-key {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .rail-network-note {
    gap: 3px;
    padding: 7px 4px;
  }

  .rail-app-downloads {
    gap: 3px;
    padding: 2px 0;
  }

  .rail-app-download-row {
    min-height: 29px;
    padding: 3px 5px;
  }

  .rail-app-platform {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
  }

  .rail-app-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  .rail-app-icon svg {
    width: 13px;
    height: 13px;
  }

  .rail-app-platform strong {
    font-size: 0.65rem;
  }

  .rail-download-link {
    font-size: 0.56rem;
  }

  .rail-app-platform small {
    display: none;
  }

  .rail-action,
  .rail-actions .secret-logo-control {
    min-height: 38px;
    height: 38px;
  }

  .rail-foot {
    font-size: 0.62rem;
  }
}

.oracle-orb {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 32%, #dffff6, #21ffc0 45%, rgba(33, 255, 192, 0.1));
  box-shadow: 0 0 24px rgba(77, 255, 189, 0.68);
}

.oracle-messages {
  display: grid;
  gap: 12px;
}

.oracle-message {
  padding: 13px;
  border: 1px solid rgba(123, 255, 199, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.oracle-message strong {
  display: block;
  margin-bottom: 5px;
}

.oracle-message p {
  margin: 0;
  color: var(--muted);
}

.oracle-form {
  display: grid;
  gap: 10px;
}

.bottom-nav {
  display: none;
}

.is-hidden {
  display: none !important;
}

.count-update {
  animation: countPop 420ms ease;
}

.sparkline-lock {
  stroke: rgba(224, 255, 244, 0.28);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.sparkline-lock-dot {
  fill: var(--line-color);
  stroke: #e9fff8;
  stroke-width: 1;
}

@keyframes countPop {
  0% { transform: scale(0.98); filter: brightness(0.8); }
  65% { transform: scale(1.035); filter: brightness(1.25); }
  100% { transform: scale(1); filter: brightness(1); }
}

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

  .asset-strip,
  .bot-grid,
  .bot-live-total-strip,
  .bot-live-grid,
  .ledger-trust-grid,
  .math-audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bot-grid > .bot-card {
    grid-column: auto;
  }

  .bot-grid > .bot-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .bot-roster-column-head {
    display: none;
  }

  .bot-roster-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
    padding: 11px 13px;
  }

  .bot-roster-status {
    justify-self: end;
  }

  .bot-roster-row small {
    display: block;
  }

  .bot-roster-spark {
    grid-column: 1 / -1;
  }

  .bot-roster-open {
    position: absolute;
    right: 10px;
    bottom: 12px;
  }

  .bot-history-grid {
    grid-template-columns: 1fr;
  }

  .bot-history-asset-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-grid,
  .chart-grid,
  .performance-pulse-grid {
    grid-template-columns: 1fr;
  }

  .statement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investor-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investor-board-header,
  .investor-row-card {
    grid-template-columns: minmax(140px, 0.7fr) repeat(4, minmax(150px, 1fr));
  }

  .ledger-metric-grid,
  .report-builder-grid,
  .report-builder-grid-wide,
  .email-report-layout,
  .withdrawal-source-grid,
  .partner-math-grid,
  .ledger-reconciliation-grid,
  .partner-ledger-grid,
  .allocation-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 20% 5%, rgba(28, 255, 181, 0.1), transparent 18rem),
      linear-gradient(120deg, #030c0a 0%, #071016 100%);
  }

  .field-grid {
    background-size: 44px 44px;
    opacity: 0.48;
  }

  .field-glow {
    opacity: 0.18;
  }

  .app-frame {
    display: block;
    padding-bottom: calc(var(--nav-h) + 16px);
  }

  .side-rail {
    display: none;
  }

  .main-shell {
    padding: 14px 12px 24px;
  }

  .top-bar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 0 12px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions .button {
    flex: 1;
  }

  .top-actions .icon-button {
    flex: 0 0 46px;
  }

  .email-report-form .button {
    width: 100%;
  }

  .view-head {
    display: grid;
    align-items: start;
  }

  .view-summary-row {
    display: grid;
    align-items: start;
  }

  .top-title h1,
  .view-head h1 {
    font-size: 1.55rem;
    line-height: 1;
  }

  .hero-copy {
    order: -1;
  }

  .hero-copy h2 {
    font-size: 2.05rem;
    line-height: 0.98;
  }

  .hero-copy p {
    font-size: 0.95rem;
  }

  .hero-grid,
  .split-grid,
  .chart-grid,
  .performance-pulse-grid,
  .asset-strip,
  .bot-grid,
  .bot-live-total-strip,
  .bot-live-grid,
  .bot-history-grid,
  .ledger-trust-grid,
  .math-audit-grid,
  .email-report-layout,
  .email-report-form,
  .email-report-status,
  .statement-grid,
  .investor-board-header,
  .investor-row-card,
  .investor-ledger-head,
  .investor-ledger-stats,
  .investor-entry-grid {
    grid-template-columns: 1fr;
  }

  .investor-board-header {
    display: none;
  }

  .investor-bots-mini {
    grid-template-columns: 1fr;
  }

  .asset-chip-total {
    justify-content: flex-start;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card:first-child {
    grid-column: 1 / -1;
  }

  .panel,
  .metric-card,
  .asset-card,
  .bot-card,
  .statement-card {
    border-radius: 14px;
  }

  .core-panel {
    min-height: 290px;
  }

  .core-overlay {
    inset: 12px;
    min-height: 0;
  }

  .core-center {
    margin: auto;
    width: min(132px, 44vw);
  }

  .core-caption {
    padding-top: 9px;
  }

  .core-caption .eyebrow {
    font-size: 0.76rem;
  }

  .core-caption p:last-child {
    max-width: 92%;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 400;
  }

  .core-center strong {
    font-size: 2.15rem;
  }

  .core-center span {
    font-size: 0.65rem;
  }

  .metric-card {
    min-height: 98px;
    padding: 13px;
  }

  .metric-card strong {
    font-size: 1.32rem;
  }

  .metric-card::after {
    display: none;
  }

  .roi-matrix-head {
    display: grid;
    gap: 4px;
  }

  .roi-matrix-row {
    grid-template-columns: minmax(82px, 1fr) repeat(2, minmax(62px, 74px)) minmax(74px, 84px);
    padding: 7px;
  }

  .roi-matrix-row strong {
    min-width: 0;
    font-size: 0.78rem;
  }

  .small-stat-grid {
    grid-template-columns: 1fr;
  }

  .statement-stats,
  .ledger-metric-grid,
  .report-builder-grid,
  .report-builder-grid-wide,
  .withdrawal-source-grid,
  .partner-math-grid,
  .ledger-reconciliation-grid,
  .partner-ledger-grid,
  .allocation-report-grid,
  .report-preview-grid,
  .statement-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .performance-pulse-card {
    padding: 12px;
  }

  .premium-report-cover {
    display: grid;
    align-items: start;
  }

  .premium-report-cover .quick-status {
    justify-content: stretch;
  }

  .premium-report-cover .button {
    flex: 1;
  }

  .withdrawal-approval-card {
    grid-template-columns: 1fr;
  }

  .approval-steps {
    grid-template-columns: 1fr;
  }

  .bot-detail-hero {
    grid-template-columns: 1fr;
  }

  .bot-history-strip {
    grid-template-columns: 1fr;
  }

  .bot-week-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-balance-lines > div {
    display: grid;
  }

  .native-value {
    font-size: 1.25rem;
  }

  .bar-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .bar-row small {
    grid-column: 2;
    text-align: left;
  }

  .heatmap {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .report-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .drawer,
  .oracle-panel,
  .notification-panel {
    inset: auto 8px 8px;
    top: 8px;
    width: auto;
    border-radius: 18px;
  }

  .oracle-toggle {
    right: 16px;
    bottom: calc(var(--nav-h) + 18px);
  }

  .secret-logo-control {
    left: 16px;
    bottom: calc(var(--nav-h) + 18px);
  }

  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 10, 10, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.28);
  }

  .bottom-nav button {
    display: grid;
    grid-template-rows: 20px auto;
    place-items: center;
    gap: 3px;
    min-height: 52px;
    padding: 5px;
    border-radius: 13px;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .bottom-nav button svg {
    width: 18px;
    height: 18px;
  }

  .bottom-nav button span {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav button.is-active {
    color: #02100d;
    background: linear-gradient(135deg, #b4f6ff, #5dffc5);
  }

  .login-screen,
  .error-screen,
  .boot-screen {
    margin: 24px auto;
    padding: 22px;
  }

  .portal-login-header {
    gap: 7px;
  }

  .portal-logo-stage {
    width: 118px;
    height: 118px;
  }

  .portal-logo-stage::after {
    width: 90px;
    height: 90px;
  }

  .portal-login-header .login-mark {
    width: 82px;
    height: 82px;
    border-radius: 23px;
  }

  .portal-download-grid {
    grid-template-columns: 1fr;
  }

  .portal-downloads-heading {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }
}

.investor-statement-list {
  display: grid;
  gap: 12px;
}

.investor-account-card {
  overflow: hidden;
  border: 1px solid rgba(102, 224, 180, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(8, 43, 34, 0.78), rgba(2, 17, 15, 0.92) 58%),
    rgba(2, 14, 12, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.investor-account-card:hover,
.investor-account-card[open] {
  border-color: rgba(104, 244, 190, 0.48);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.investor-account-summary {
  display: block;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.investor-account-summary::-webkit-details-marker {
  display: none;
}

.investor-account-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(104, 218, 180, 0.15);
}

.investor-monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(112, 255, 198, 0.42);
  border-radius: 6px;
  color: #03251a;
  background: linear-gradient(145deg, #baffd7, #4ff3b2);
  font-size: 0.78rem;
  font-weight: 950;
}

.investor-account-name {
  min-width: 0;
}

.investor-account-name small,
.investor-account-metric > span,
.investor-account-details > div > span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.investor-account-name h3 {
  margin: 3px 0 0;
  color: var(--mint);
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.investor-account-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.investor-expand {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(108, 222, 183, 0.22);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(1, 16, 13, 0.58);
}

.investor-expand svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.investor-account-card[open] .investor-expand svg {
  transform: rotate(180deg);
}

.investor-account-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.investor-account-metric {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(104, 213, 177, 0.14);
  border-radius: 6px;
  background: rgba(1, 14, 12, 0.56);
}

.investor-account-net {
  border-color: rgba(101, 247, 187, 0.32);
  background: linear-gradient(145deg, rgba(17, 74, 53, 0.38), rgba(1, 18, 14, 0.7));
}

.investor-account-metric .asset-line {
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
}

.investor-account-metric .asset-line strong,
.investor-account-metric .asset-line b {
  text-shadow: none;
}

.investor-account-details {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(105, 204, 170, 0.14);
}

.investor-account-details > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(92, 187, 156, 0.14);
  border-radius: 6px;
  background: rgba(2, 19, 15, 0.58);
}

.investor-account-details p {
  display: grid;
  grid-template-columns: minmax(70px, auto) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(107, 200, 169, 0.1);
}

.investor-account-details p small {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 980px) {
  .investor-account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .investor-account-summary {
    padding: 12px;
  }

  .investor-account-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .investor-account-status {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .investor-account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .investor-account-net,
  .investor-account-metric:last-child {
    grid-column: 1 / -1;
  }

  .investor-account-metric {
    padding: 10px;
  }

  .investor-account-details {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .investor-account-details p {
    grid-template-columns: 1fr;
  }

  .investor-account-details p small {
    text-align: left;
  }

  .bot-roster,
  .bot-roster-group,
  .bot-roster-group-head,
  .bot-roster-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bot-roster-group-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
    padding: 10px 11px;
    overflow: hidden;
  }

  .bot-roster-group-head > div:first-child {
    grid-column: 1 / -1;
  }

  .bot-roster-group-head > div:not(:first-child) {
    min-width: 0;
    text-align: left;
  }

  .bot-roster-group-head strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bot-roster-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 7px 10px;
    padding: 10px 11px;
    overflow: hidden;
  }

  .bot-roster-row > *,
  .bot-roster-spark,
  .bot-roster-spark .sparkline {
    min-width: 0;
    max-width: 100%;
  }

  .bot-roster-row b {
    font-size: 0.73rem;
  }

  .bot-roster-open {
    right: 8px;
    bottom: 10px;
  }
}

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

/* Institutional command terminal: time lens, data confidence, flow, and 3D layers. */
.data-mode-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 420px;
}

.data-mode-switch button {
  padding-inline: 10px;
  white-space: nowrap;
}

.view {
  animation: timeLensIn 260ms cubic-bezier(.2, .72, .25, 1);
}

@keyframes timeLensIn {
  from { opacity: 0.55; transform: translateY(5px); filter: saturate(0.75); }
  to { opacity: 1; transform: translateY(0); filter: saturate(1); }
}

.mode-locked .global-data-bar {
  box-shadow: inset 0 -2px rgba(167, 119, 255, 0.32);
}

.mode-withdrawable .global-data-bar {
  box-shadow: inset 0 -2px rgba(75, 148, 255, 0.34);
}

.reconciliation-shield {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 152px;
  min-height: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(93, 189, 157, 0.2);
  border-radius: 7px;
  color: var(--text);
  background: rgba(4, 24, 19, 0.82);
  font: inherit;
  cursor: pointer;
}

.reconciliation-shield:hover {
  border-color: rgba(104, 244, 190, 0.52);
  background: rgba(9, 48, 37, 0.9);
}

.shield-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(var(--mint) var(--shield-score), rgba(99, 139, 126, 0.2) 0);
  box-shadow: 0 0 20px rgba(77, 255, 189, 0.16);
}

.shield-ring::before {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #041510;
  content: "";
}

.shield-ring i {
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--mint);
}

.shield-ring svg {
  width: 17px;
  height: 17px;
}

.shield-copy {
  min-width: 0;
  text-align: left;
}

.shield-copy strong,
.shield-copy small {
  display: block;
}

.shield-copy strong {
  font-size: 0.82rem;
}

.shield-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.shield-layers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.shield-layers i {
  height: 2px;
  border-radius: 999px;
  background: rgba(118, 146, 137, 0.26);
}

.shield-layers i.is-ok {
  background: var(--mint);
  box-shadow: 0 0 8px rgba(77, 255, 189, 0.45);
}

.shield-layers i.is-error {
  background: var(--red);
}

.reconciliation-shield-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.reconciliation-shield-panel > .reconciliation-shield {
  min-width: 280px;
  min-height: 92px;
  grid-template-columns: 62px 1fr;
}

.reconciliation-shield-panel .shield-ring {
  width: 58px;
  height: 58px;
}

.reconciliation-shield-panel .shield-copy strong {
  font-size: 1.15rem;
}

.snapshot-seal {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(100, 255, 196, 0.22);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(24, 94, 70, 0.28), rgba(3, 18, 15, 0.72));
  animation: snapshotSeal 700ms ease both;
}

.snapshot-seal-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(104, 255, 198, 0.48);
  border-radius: 50%;
  color: var(--mint);
  box-shadow: 0 0 22px rgba(77, 255, 189, 0.22);
}

.snapshot-seal div {
  flex: 1;
  min-width: 0;
}

.snapshot-seal strong,
.snapshot-seal small {
  display: block;
}

.command-ribbon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid rgba(104, 237, 188, 0.16);
  border-radius: 7px;
  background: rgba(1, 13, 10, 0.78);
}

.command-ribbon-label {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 5px 8px;
  border-right: 1px solid rgba(104, 237, 188, 0.14);
  color: var(--mint);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.command-ribbon-label svg {
  width: 14px;
  height: 14px;
}

.command-ribbon-track {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.command-ribbon-track::-webkit-scrollbar {
  display: none;
}

.command-ribbon-track button {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(105, 211, 175, 0.1);
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.018);
  font: inherit;
  cursor: pointer;
}

.command-ribbon-track button:hover {
  border-color: rgba(77, 255, 189, 0.32);
}

.command-ribbon-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(77, 255, 189, 0.7);
}

.command-ribbon-track strong,
.command-ribbon-track span {
  font-size: 0.64rem;
  white-space: nowrap;
}

.command-ribbon-track span {
  color: var(--muted);
}

.snapshot-seal strong {
  color: #dffff3;
  font-size: 0.88rem;
}

.snapshot-seal small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

@keyframes snapshotSeal {
  from { opacity: 0; transform: scaleX(0.985); filter: brightness(1.7); }
  to { opacity: 1; transform: scaleX(1); filter: brightness(1); }
}

.core-panel {
  min-height: 470px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 48%, rgba(16, 76, 60, 0.16), transparent 54%), #020b09;
}

.core-panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(77, 255, 189, 0.03), transparent 28% 72%, rgba(75, 148, 255, 0.035));
  content: "";
}

.core-panel canvas {
  z-index: 0;
}

.core-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  pointer-events: auto;
}

.core-constellation-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border-color: rgba(112, 219, 255, 0.28);
  background: rgba(2, 18, 17, 0.74);
}

.core-constellation-button svg {
  width: 16px;
  height: 16px;
}

.core-center {
  z-index: 2;
  width: min(196px, 46vw);
  background: radial-gradient(circle, rgba(2, 13, 11, 0.96) 0 55%, rgba(77, 255, 189, 0.06) 56% 64%, transparent 65%);
  box-shadow: inset 0 0 34px rgba(77, 255, 189, 0.09), 0 0 45px rgba(77, 255, 189, 0.1);
}

.core-center strong {
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
}

.core-caption {
  z-index: 3;
  min-height: 72px;
  max-width: none;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(2, 14, 13, 0.96), rgba(2, 14, 13, 0.99));
  box-shadow: 0 -16px 28px rgba(2, 14, 13, 0.72);
}

.profit-flow-panel {
  overflow: hidden;
}

.profit-flow-map {
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) 90px minmax(0, 1.8fr);
  gap: 12px;
  align-items: center;
}

.profit-flow-source,
.profit-flow-node {
  border: 1px solid rgba(104, 230, 186, 0.16);
  border-radius: 7px;
  background: rgba(1, 13, 11, 0.72);
}

.profit-flow-source {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(104, 242, 188, 0.24);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(77, 255, 189, 0.07);
}

.flow-icon svg {
  width: 17px;
  height: 17px;
}

.profit-flow-source small,
.profit-flow-source strong {
  display: block;
}

.profit-flow-source > div > small,
.profit-flow-node summary small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profit-flow-source > div > strong {
  margin: 4px 0 9px;
  font-size: 1rem;
}

.profit-flow-source .asset-line,
.profit-flow-breakdown .asset-line {
  margin-top: 5px;
  font-size: 0.72rem;
}

.profit-flow-rail {
  position: relative;
  display: grid;
  gap: 16px;
}

.profit-flow-rail::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), rgba(77, 255, 189, 0.15));
  content: "";
}

.profit-flow-rail i {
  position: relative;
  left: calc(var(--flow-index, 0) * 5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(77, 255, 189, 0.72);
  animation: flowParticle 2.6s linear infinite;
}

.profit-flow-rail i:nth-child(2) { animation-delay: -0.65s; }
.profit-flow-rail i:nth-child(3) { animation-delay: -1.3s; }
.profit-flow-rail i:nth-child(4) { animation-delay: -1.95s; }

@keyframes flowParticle {
  from { transform: translateX(0); opacity: 0; }
  16% { opacity: 1; }
  to { transform: translateX(80px); opacity: 0; }
}

.profit-flow-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profit-flow-node {
  overflow: hidden;
}

.profit-flow-node summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.profit-flow-node summary::-webkit-details-marker {
  display: none;
}

.profit-flow-node summary > svg {
  width: 15px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.profit-flow-node[open] summary > svg {
  transform: rotate(180deg);
}

.profit-flow-node summary strong,
.profit-flow-node summary small {
  display: block;
}

.profit-flow-node summary strong {
  font-size: 0.78rem;
}

.profit-flow-breakdown {
  padding: 0 11px 11px 53px;
}

.monthly-performance-curve,
.capital-profit-streams {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(112, 222, 185, 0.14);
  border-radius: 7px;
  background: rgba(1, 12, 10, 0.62);
}

.monthly-performance-curve > div:first-child,
.capital-profit-streams > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.monthly-performance-curve svg {
  display: block;
  width: 100%;
  height: 100px;
  margin-top: 5px;
  overflow: visible;
}

.monthly-performance-curve polyline {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(77, 255, 189, 0.4));
}

.monthly-performance-curve circle {
  fill: #dffff4;
  stroke: var(--mint);
}

.curve-labels {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr);
  color: var(--muted);
  text-align: center;
}

.capital-profit-streams {
  display: grid;
  gap: 10px;
}

.capital-stream,
.profit-stream {
  position: relative;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 33px;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.capital-stream i,
.profit-stream i {
  position: absolute;
  inset: 0 auto 0 0;
  opacity: 0.13;
  background: var(--cyan);
}

.profit-stream i {
  background: var(--mint);
}

.capital-stream span,
.capital-stream strong,
.profit-stream span,
.profit-stream strong {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
}

.feed-action {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-action:hover {
  border-color: rgba(77, 255, 189, 0.34);
  background: rgba(11, 48, 37, 0.54);
}

.investor-allocation-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 12px;
}

.investor-allocation-bars {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.investor-allocation-bars p {
  display: grid !important;
  grid-template-columns: 90px minmax(90px, 1fr) auto !important;
  gap: 8px !important;
  align-items: center;
  margin: 0 !important;
}

.investor-allocation-bars i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.investor-allocation-bars i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--asset-solid);
  box-shadow: 0 0 8px var(--asset-solid);
}

.bot-command-history,
.bot-command-movements {
  padding: 12px;
  border: 1px solid rgba(111, 218, 180, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.13);
}

.bot-command-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  min-height: 92px;
  margin-top: 10px;
}

.bot-command-days > span {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.bot-command-days small,
.bot-command-days strong {
  z-index: 1;
  overflow: hidden;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-command-days i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 60%;
  background: linear-gradient(180deg, rgba(77, 255, 189, 0.24), rgba(77, 255, 189, 0.04));
}

.bot-command-movements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bot-command-movements > div {
  min-width: 0;
}

.bot-command-movements > div > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bot-command-movements p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px solid rgba(111, 218, 180, 0.09);
}

.bot-command-movements strong,
.bot-command-movements small {
  overflow-wrap: anywhere;
  font-size: 0.7rem;
}

.bot-command-movements small {
  color: var(--muted);
}

.approval-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.receipt-progress {
  margin: 12px 0;
}

.asset-card,
.bot-roster-group,
.performance-pulse-card,
.bot-live-card,
.bot-week-card {
  box-shadow: inset 3px 0 0 var(--asset-solid, var(--roster-color, rgba(77, 255, 189, 0.3)));
}

.asset-card:hover,
.bot-roster-group:hover,
.performance-pulse-card:hover {
  box-shadow: inset 3px 0 0 var(--asset-solid, var(--roster-color)), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.count-update {
  animation: terminalNumberUpdate 520ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes terminalNumberUpdate {
  0% { color: #fff; text-shadow: 0 0 20px var(--mint); filter: brightness(1.7); }
  100% { text-shadow: none; filter: brightness(1); }
}

.constellation-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.constellation-stage {
  position: fixed;
  inset: 12px;
  z-index: 120;
  overflow: hidden;
  border: 1px solid rgba(102, 245, 191, 0.3);
  border-radius: 8px;
  background: #010806;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.74);
}

.constellation-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.constellation-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 8, 6, 0.94), transparent);
}

.constellation-head h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.constellation-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.constellation-head .icon-button {
  pointer-events: auto;
}

.constellation-legend {
  position: absolute;
  top: 126px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.constellation-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--signal) 35%, transparent);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(1, 11, 9, 0.74);
  font-size: 0.68rem;
  font-weight: 900;
}

.constellation-legend i,
.constellation-node-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}

.constellation-node-list {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  max-height: 154px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(102, 210, 174, 0.14);
  border-radius: 7px;
  background: rgba(1, 11, 9, 0.82);
  backdrop-filter: blur(12px);
}

.constellation-node-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(115, 210, 178, 0.12);
  border-radius: 5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.018);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.constellation-node-list button:hover {
  border-color: color-mix(in srgb, var(--signal) 50%, transparent);
  background: rgba(255, 255, 255, 0.05);
}

.constellation-node-list span,
.constellation-node-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.constellation-node-list span {
  font-size: 0.68rem;
  font-weight: 900;
}

.constellation-node-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.58rem;
}

.constellation-hint {
  position: absolute;
  right: 22px;
  bottom: 184px;
  z-index: 2;
  color: rgba(204, 239, 226, 0.66);
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .global-data-bar {
    grid-template-columns: 1fr auto;
  }

  .data-mode-switch {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .constellation-node-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .global-data-bar {
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px;
  }

  .data-mode-switch {
    grid-column: 1 / -1;
  }

  .data-mode-switch button {
    min-height: 38px;
    padding-inline: 5px;
    font-size: 9px;
  }

  .data-time-facts {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .data-time-facts::-webkit-scrollbar {
    display: none;
  }

  .data-time-facts article {
    flex: 0 0 154px;
    scroll-snap-align: start;
  }

  .reconciliation-shield.is-compact {
    min-width: 47px;
    width: 47px;
    padding: 5px;
    grid-template-columns: 1fr;
  }

  .reconciliation-shield.is-compact .shield-copy,
  .reconciliation-shield.is-compact .shield-layers {
    display: none;
  }

  .snapshot-seal {
    align-items: flex-start;
  }

  .snapshot-seal .badge {
    display: none;
  }

  .asset-strip {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .asset-strip::-webkit-scrollbar {
    display: none;
  }

  .asset-strip .asset-card {
    flex: 0 0 calc(100vw - 42px);
    scroll-snap-align: start;
  }

  .command-ribbon {
    grid-template-columns: 1fr;
  }

  .command-ribbon-label {
    display: none;
  }

  .core-panel {
    min-height: 340px;
  }

  .core-caption {
    min-height: 58px;
    padding-top: 10px;
    box-shadow: 0 -10px 20px rgba(2, 14, 13, 0.7);
  }

  .core-caption p:last-child {
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .core-toolbar {
    align-items: center;
  }

  .core-toolbar .quick-status .badge:nth-child(2) {
    display: none;
  }

  .core-constellation-button span {
    display: none;
  }

  .core-constellation-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .profit-flow-map,
  .reconciliation-shield-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profit-flow-rail {
    height: 24px;
    overflow: hidden;
    transform: rotate(90deg);
    transform-origin: center;
  }

  .profit-flow-destinations {
    grid-template-columns: 1fr;
  }

  .reconciliation-shield-panel > .reconciliation-shield {
    min-width: 0;
    width: 100%;
  }

  .bot-command-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bot-command-movements,
  .investor-allocation-bars p {
    grid-template-columns: 1fr !important;
  }

  .approval-steps {
    grid-template-columns: 1fr;
  }

  .constellation-stage {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .drawer.bot-detail-drawer,
  .drawer.partner-statement-drawer {
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .constellation-head {
    padding: 16px;
  }

  .constellation-head p:last-child {
    max-width: 78vw;
    font-size: 0.72rem;
  }

  .constellation-legend {
    top: 118px;
    left: 16px;
  }

  .constellation-node-list {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 48vw);
    grid-template-columns: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .constellation-hint {
    display: none;
  }
}

/* Notification actions stay compact and aligned with the destructive action distinct. */
.notification-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.notification-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
}

.notification-delete-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 104, 120, 0.32);
  border-radius: 4px;
  color: #ff9ca8;
  background: rgba(82, 12, 26, 0.14);
  cursor: pointer;
}

.notification-delete-button svg {
  width: 13px;
  height: 13px;
}

.notification-delete-button:hover {
  color: #ffd2d7;
  border-color: rgba(255, 104, 120, 0.7);
  background: rgba(110, 18, 34, 0.28);
}

@media (max-width: 700px) {
  .notification-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .truth-bar,
  .peter-preview-grid {
    grid-template-columns: 1fr;
  }

  .truth-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .truth-bar {
    grid-template-columns: 1fr;
    padding: 8px 10px;
  }

  .truth-checks,
  .asset-explain-ledger {
    grid-template-columns: 1fr;
  }

  .truth-context span,
  .truth-check span {
    white-space: normal;
  }

  .asset-equation,
  .asset-explain-table article {
    grid-template-columns: 1fr;
  }

  .asset-equation b,
  .peter-preview-footer strong {
    text-align: left;
  }

  .peter-preview-footer {
    display: grid;
  }
}

/* Keep financial tables dense and readable on the 4K operations display. */
@media (min-width: 2200px) {
  .view {
    max-width: 2160px;
    margin-inline: auto;
  }

  .report-table th,
  .report-table td {
    padding-block: 10px;
    font-size: clamp(11px, 0.52vw, 14px);
  }
}
