:root {
  --bg: #f3f6fb;
  --bg-accent: #eaf0f8;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-strong: #eef3f8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --accent: #ff5b1f;
  --accent-strong: #e34c15;
  --accent-soft: #fff1eb;
  --green: #12b76a;
  --blue: #2e90fa;
  --yellow: #f5b301;
  --orange: #ff7a1f;
  --danger: #d64545;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 91, 31, 0.06), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: clamp(232px, 18vw, 264px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 20px 16px;
  background: rgba(248, 250, 252, 0.92);
  border-right: 1px solid rgba(203, 213, 225, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 96px;
  height: auto;
  object-fit: contain;
}

.nav-title {
  margin-top: 4px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(226, 232, 240, 0.95);
  transform: translateX(1px);
}

.nav-item.active {
  color: var(--accent-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 235, 0.98));
  border-color: rgba(255, 91, 31, 0.22);
  box-shadow: 0 10px 24px rgba(255, 91, 31, 0.08);
}

.nav-item.disabled {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.78);
  border-color: rgba(226, 232, 240, 0.82);
  cursor: not-allowed;
}

.nav-item em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b95a7;
  background: #eef2f7;
  border-radius: 999px;
  padding: 3px 7px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.8;
}

.logout-form {
  margin-top: 14px;
}

.mobile-logout-form {
  margin-top: 0;
  margin-left: auto;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.logout-btn:hover {
  border-color: rgba(148, 163, 184, 0.98);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.content {
  min-width: 0;
  padding: 20px clamp(16px, 2vw, 28px) 28px;
}

.mobile-topbar,
.mobile-nav {
  display: none;
}

.mobile-topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  border-color: rgba(255, 91, 31, 0.38);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle:hover {
  transform: translateY(-1px);
}

.mobile-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-brand-logo {
  display: block;
  width: 88px;
  height: auto;
}

.mobile-nav {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

.mobile-menu-logout-form {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.88);
}

.mobile-menu-logout-btn {
  width: 100%;
  min-height: 42px;
}

.mobile-nav-item.active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: rgba(227, 76, 21, 0.7);
  box-shadow: 0 12px 24px rgba(255, 91, 31, 0.2);
}

.mobile-nav-item.disabled {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.85);
  pointer-events: none;
}

.content-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  margin-bottom: 20px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.content-header.overview-header {
  align-items: flex-end;
  min-height: 116px;
  margin-bottom: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.overview-header .page-heading {
  flex: 1 1 auto;
  max-width: none;
  justify-content: flex-end;
}

.page-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  max-width: 760px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.subtitle {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.header-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-width: 200px;
  max-width: 280px;
  align-self: stretch;
}

.header-meta.overview-meta {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: none;
  margin-left: auto;
  align-self: flex-end;
}

.meta-pill,
.snapshot-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.overview-meta .meta-pill,
.overview-meta .snapshot-pill {
  flex: 0 0 168px;
  gap: 3px;
  width: 168px;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: none;
}

.meta-pill.subtle {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.snapshot-pill {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(227, 76, 21, 0.8);
}

.overview-meta .meta-pill.subtle {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(226, 232, 240, 0.9);
}

.overview-meta .snapshot-pill {
  background: linear-gradient(180deg, rgba(255, 246, 241, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(255, 91, 31, 0.16);
}

.meta-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-pill .meta-label {
  color: #94a3b8;
}

.snapshot-pill .meta-label,
.snapshot-pill .meta-value {
  color: #ffffff;
}

.overview-meta .meta-label {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.overview-meta .meta-pill .meta-label {
  color: #94a3b8;
}

.overview-meta .snapshot-pill .meta-label {
  color: #94a3b8;
}

.meta-value {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.overview-meta .meta-value {
  font-size: 12px;
}

.overview-meta .snapshot-pill .meta-value {
  color: var(--accent-strong);
}

.page-stack {
  display: grid;
  gap: 18px;
}

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

.overview-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.summary-card,
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.stat-card,
.summary-card {
  overflow: hidden;
  padding: 18px 20px;
}

.overview-stats-grid .stat-card {
  min-width: 0;
  padding: 16px 18px;
}

.stat-card::after,
.summary-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.stat-card-highlight,
.summary-card-highlight {
  background: linear-gradient(180deg, rgba(255, 241, 235, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(255, 91, 31, 0.16);
}

.label {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-stats-grid .label {
  margin-bottom: 6px;
}

.overview-value-row {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.overview-token-row {
  gap: 10px;
  flex-wrap: nowrap;
}

.overview-token-change-label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.overview-token-change-value {
  min-height: 24px;
  margin-top: 0;
  white-space: nowrap;
}

.value {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.value-accent,
.accent-text {
  color: var(--accent-strong);
}

.positive {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 8px;
  color: #0e9f5b;
  background: rgba(18, 183, 106, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.negative {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 8px;
  color: #b42318;
  background: rgba(214, 69, 69, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.overview-stats-grid .positive {
  margin-top: 8px;
}

.overview-stats-grid .negative {
  margin-top: 8px;
}

.overview-token-row .positive,
.overview-token-row .negative {
  margin-top: 0;
}

.muted {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.overview-stats-grid .muted {
  margin-top: 4px;
}

.panel-grid {
  display: grid;
  gap: 14px;
}

.panel-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.panel-grid.one-col,
.panel-stack {
  grid-template-columns: minmax(0, 1fr);
}

.analytics-grid,
.panel-stack {
  display: grid;
  gap: 14px;
}

.overview-analytics-grid .clean-table th,
.overview-analytics-grid .clean-table td {
  padding: 11px 14px;
}

.panel {
  --panel-accent: var(--accent);
  overflow: hidden;
}

.tokenholder-summary-panel {
  position: relative;
  overflow: hidden;
  padding: 0 0 18px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(255, 91, 31, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.tokenholder-summary-panel::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0));
}

.panel::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--panel-accent), rgba(255, 255, 255, 0));
}

.accent-green {
  --panel-accent: var(--green);
}

.accent-orange {
  --panel-accent: var(--orange);
}

.accent-blue {
  --panel-accent: var(--blue);
}

.accent-yellow {
  --panel-accent: var(--yellow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section-eyebrow {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tokenholder-summary-heading .muted {
  max-width: 560px;
  text-align: right;
}

.tokenholder-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

.tokenholder-summary-card {
  overflow: visible;
  min-width: 0;
  padding: 16px;
}

.tokenholder-summary-card:hover,
.tokenholder-summary-card:focus-within {
  z-index: 5;
}

.stat-card.has-tooltip,
.summary-card.has-tooltip {
  overflow: visible;
}

.stat-card.has-tooltip:hover,
.stat-card.has-tooltip:focus-within,
.summary-card.has-tooltip:hover,
.summary-card.has-tooltip:focus-within {
  z-index: 5;
}

.summary-card-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.metric-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
  background: rgba(255, 91, 31, 0.1);
  border: 1px solid rgba(255, 91, 31, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: help;
  line-height: 1;
  appearance: none;
}

.metric-tooltip::before,
.metric-tooltip::after {
  position: absolute;
  right: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.metric-tooltip::before {
  content: "";
  top: calc(100% + 4px);
  width: 10px;
  height: 10px;
  background: #0f172a;
  transform: translateY(-4px) rotate(45deg);
}

.metric-tooltip::after {
  content: attr(data-tooltip);
  top: calc(100% + 8px);
  width: min(280px, 72vw);
  padding: 10px 12px;
  color: #fff;
  background: #0f172a;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
}

.metric-tooltip:hover::before,
.metric-tooltip:hover::after,
.metric-tooltip:focus-visible::before,
.metric-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.metric-tooltip:hover::before,
.metric-tooltip:focus-visible::before {
  transform: translateY(0) rotate(45deg);
}

.panel-body {
  padding: 0 18px 18px;
}

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

.unbonding-summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  -webkit-overflow-scrolling: touch;
}

.clean-table,
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.clean-table-wide {
  min-width: min(100%, 590px);
}

.data-table {
  min-width: min(100%, 700px);
}

.clean-table th,
.clean-table td,
.data-table th,
.data-table td {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  padding: 13px 16px;
  font-size: 13px;
  vertical-align: middle;
}

.clean-table thead th,
.data-table thead th {
  position: relative;
  border-top: none;
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.96);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.clean-table tbody tr:first-child td,
.data-table tbody tr:first-child td {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.clean-table tbody tr:hover td,
.data-table tbody tr:hover td {
  background: rgba(248, 250, 252, 0.9);
}

.clean-table td:first-child,
.data-table td:first-child {
  color: var(--text-soft);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.table-wrap .mono {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.metric-link:hover {
  color: var(--accent-strong);
  border-color: rgba(255, 91, 31, 0.3);
}

.clean-table .num,
.data-table .num,
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.clean-table .pct,
.pct {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}

.clean-table-wide th:first-child,
.clean-table-wide td:first-child {
  width: 44%;
}

.clean-table-wide th:nth-child(2),
.clean-table-wide td:nth-child(2) {
  width: 22%;
}

.clean-table-wide th:nth-child(3),
.clean-table-wide td:nth-child(3),
.clean-table-wide th:nth-child(4),
.clean-table-wide td:nth-child(4),
.clean-table-wide th:nth-child(5),
.clean-table-wide td:nth-child(5) {
  width: 11%;
}

.clean-table tr.is-total td {
  color: var(--text);
  font-weight: 800;
}

.clean-table tr.is-total .pct {
  color: var(--text-soft);
}

.data-table tfoot td {
  font-weight: 800;
  color: var(--text-soft);
  background: rgba(248, 250, 252, 0.96);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.table-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.secondary-btn:hover {
  border-color: rgba(148, 163, 184, 0.98);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.revealable-row.is-hidden {
  display: none;
}

.sortable-table th.sortable {
  cursor: pointer;
  user-select: none;
  padding-right: 32px;
}

.sortable-table th.sortable::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.9;
}

.sortable-table th.sorted-asc::after {
  border-color: var(--accent-strong);
  transform: translateY(-30%) rotate(-135deg);
}

.sortable-table th.sorted-desc::after {
  border-color: var(--accent-strong);
  transform: translateY(-70%) rotate(45deg);
}

.notice-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.role-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.role-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card-topline strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.role-card-value {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.role-card-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.role-meter {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  background: rgba(226, 232, 240, 0.88);
  border-radius: 999px;
}

.role-meter span {
  display: block;
  width: min(var(--bar-width), 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--panel-accent), var(--accent));
  border-radius: inherit;
}

.table-subline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.wallet-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.wallet-help {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.wallet-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 13px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.wallet-input::placeholder {
  color: #94a3b8;
}

.wallet-input:focus {
  outline: none;
  border-color: rgba(255, 91, 31, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.1);
  background: #ffffff;
}

.wallet-btn {
  min-width: 140px;
  height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(227, 76, 21, 0.9);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 91, 31, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.wallet-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 91, 31, 0.2);
}

.wallet-btn:disabled {
  opacity: 0.76;
  cursor: not-allowed;
  box-shadow: none;
}

.wallet-message {
  min-height: 22px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

.wallet-message.success {
  color: var(--green);
}

.wallet-message.error {
  color: var(--danger);
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #64748b;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 800;
  cursor: default;
}

.tooltip-text {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  visibility: hidden;
  opacity: 0;
  padding: 8px 10px;
  color: #ffffff;
  background: #0f172a;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.tooltip-wrap:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.wallet-results-table .num.mono {
  text-align: left;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.ok {
  color: #18794e;
  background: rgba(18, 183, 106, 0.14);
}

.status-pill.warn {
  color: #a85d12;
  background: rgba(245, 179, 1, 0.18);
}

.metric-page-subtitle {
  display: grid;
  gap: 12px;
}

.metric-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.metric-back-link:hover {
  color: var(--accent-strong);
  border-color: rgba(255, 91, 31, 0.28);
}

.metric-detail-page {
  gap: 20px;
}

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

.metric-summary-card {
  min-height: 160px;
}

.metric-summary-primary {
  background: linear-gradient(180deg, rgba(255, 241, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.metric-detail-value {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.metric-detail-value-small {
  font-size: clamp(26px, 2.4vw, 34px);
}

.metric-delta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.metric-delta-up {
  color: #18794e;
  background: rgba(18, 183, 106, 0.14);
}

.metric-delta-down {
  color: #b42318;
  background: rgba(214, 69, 69, 0.12);
}

.metric-delta-neutral {
  color: var(--text-soft);
  background: rgba(226, 232, 240, 0.7);
}

.metric-chart-panel,
.metric-related-panel {
  overflow: hidden;
}

.metric-chart-header {
  align-items: center;
}

.metric-range-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
}

.metric-range-btn {
  min-height: 30px;
  padding: 0 10px;
  color: var(--text-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.metric-range-btn.active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.metric-chart-body {
  padding-top: 0;
}

.metric-chart-wrap {
  position: relative;
  min-height: 320px;
}

.metric-empty-state {
  padding: 28px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.metric-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-related-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text-soft);
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.metric-related-link:hover {
  color: var(--accent-strong);
  border-color: rgba(255, 91, 31, 0.24);
  transform: translateY(-1px);
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-shell {
  width: min(100%, 560px);
}

.login-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.login-logo {
  display: block;
  width: 104px;
  height: auto;
}

.login-copy {
  display: grid;
  gap: 10px;
}

.login-title {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.login-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.login-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-input:focus {
  outline: none;
  border-color: rgba(255, 91, 31, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.1);
  background: #ffffff;
}

.login-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.login-submit {
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(227, 76, 21, 0.9);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 91, 31, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 91, 31, 0.2);
}

.tokenholder-wallet-login {
  display: grid;
  gap: 12px;
}

.wallet-connect-primary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #ff7a3d 0%, var(--accent) 42%, var(--accent-strong) 100%);
  border: 1px solid rgba(227, 76, 21, 0.92);
  border-radius: 20px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(255, 91, 31, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.wallet-connect-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(255, 91, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.wallet-connect-primary:disabled {
  opacity: 0.76;
  cursor: not-allowed;
  box-shadow: none;
}

.wallet-connect-icons {
  display: inline-flex;
  align-items: center;
  min-width: 62px;
}

.wallet-provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.wallet-provider-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-provider-icon + .wallet-provider-icon {
  margin-left: -8px;
}

.wallet-connect-label {
  min-width: 0;
  text-align: left;
}

.wallet-methods {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
}

.wallet-methods[hidden] {
  display: none;
}

.wallet-method-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wallet-method-btn .wallet-provider-icon {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.92);
}

.wallet-method-btn strong,
.wallet-method-btn small {
  display: block;
}

.wallet-method-btn strong {
  font-size: 13px;
  font-weight: 900;
}

.wallet-method-btn small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wallet-method-btn:hover:not(:disabled) {
  border-color: rgba(255, 91, 31, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.wallet-method-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  box-shadow: none;
}

.wallet-login-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.wallet-login-status.success {
  color: var(--green);
}

.wallet-login-status.error {
  color: var(--danger);
}

.wallet-login-status.info {
  color: var(--accent-strong);
}

.wallet-login-status.has-card {
  color: var(--text);
}

.wallet-login-status a {
  color: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wallet-eligibility-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 91, 31, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 91, 31, 0.18);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.wallet-eligibility-eyebrow,
.wallet-eligibility-copy {
  margin: 0;
}

.wallet-eligibility-eyebrow {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-eligibility-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.wallet-eligibility-copy {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.wallet-eligibility-metrics {
  display: grid;
  gap: 8px;
  margin: 0;
}

.wallet-eligibility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.wallet-eligibility-row dt,
.wallet-eligibility-row dd {
  margin: 0;
}

.wallet-eligibility-row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wallet-eligibility-row dd {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.wallet-eligibility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-eligibility-action {
  flex: 1 1 160px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wallet-eligibility-action.primary {
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(227, 76, 21, 0.86);
  box-shadow: 0 10px 20px rgba(255, 91, 31, 0.16);
}

.wallet-eligibility-action.secondary {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 91, 31, 0.22);
}

.wallet-eligibility-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.login-more-options {
  display: grid;
  gap: 12px;
}

.login-more-options summary {
  width: fit-content;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}

.login-more-options summary::-webkit-details-marker {
  display: none;
}

.login-more-options summary:hover {
  color: var(--accent-strong);
}

.login-form-secondary {
  margin-top: 12px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
}

.password-login-title {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

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

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

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

  .unbonding-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tokenholder-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .unbonding-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    display: none;
  }

  .mobile-topbar {
    display: flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .content {
    padding-top: 20px;
  }

  .content-header {
    flex-direction: column;
    min-height: 0;
    padding: 20px;
  }

  .content-header.overview-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .header-meta {
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: auto;
  }

  .header-meta.overview-meta {
    justify-content: flex-end;
    align-items: flex-end;
    max-width: none;
    margin-left: auto;
    align-self: flex-end;
  }
}

@media (max-width: 820px) {
  .content {
    padding: 16px 16px 24px;
  }

  .metric-summary-grid,
  .stats-grid,
  .unbonding-role-grid,
  .summary-strip,
  .tokenholder-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .metric-chart-header {
    align-items: flex-start;
  }

  .metric-range-group {
    flex-wrap: wrap;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-btn {
    width: 100%;
    min-width: 0;
  }

  .header-meta.overview-meta {
    gap: 6px;
  }

  .tokenholder-summary-heading {
    flex-direction: column;
  }

  .tokenholder-summary-heading .muted {
    max-width: none;
    text-align: left;
  }

  .overview-meta .meta-pill,
  .overview-meta .snapshot-pill {
    flex-basis: 152px;
    width: 152px;
  }

}

@media (max-width: 640px) {
  .content-header,
  .stat-card,
  .summary-card,
  .panel-body,
  .panel-heading {
    padding-left: 18px;
    padding-right: 18px;
  }

  .content-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .content-header.overview-header {
    flex-direction: column;
  }

  .header-meta.overview-meta {
    flex-direction: column;
    margin-left: 0;
  }

  .overview-meta .meta-pill,
  .overview-meta .snapshot-pill {
    flex-basis: auto;
    width: 100%;
  }

  h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 14px;
  }

  .clean-table-wide,
  .data-table {
    min-width: 520px;
  }

  .metric-chart-wrap {
    min-height: 300px;
  }
}

@media (max-width: 650px) {
  .content {
    padding: 12px 12px 20px;
  }

  .login-page {
    padding: 12px;
  }

  .login-card {
    padding: 20px 16px;
  }

  .brand-logo,
  .mobile-brand-logo {
    max-width: 74px;
  }

  .stat-card,
  .summary-card {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .meta-pill,
  .snapshot-pill {
    padding: 10px 12px;
  }

  .clean-table th,
  .clean-table td,
  .data-table th,
  .data-table td {
    padding: 13px 14px;
  }

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

  .overview-token-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

.investor-double-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.investor-status-panel .panel-heading,
.investor-empty-state .panel-heading {
  padding-bottom: 20px;
}

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

.overview-link-card {
  display: block;
  padding: 20px 22px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.overview-link-card strong {
  display: block;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.overview-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 91, 31, 0.18);
  box-shadow: var(--shadow-lg);
}

.investor-note-panel .panel-body {
  padding-top: 12px;
}

.investor-summary-table,
.investor-category-table,
.burn-history-table {
  min-width: 1200px;
}

.investor-vesting-table {
  min-width: 860px;
}

.investor-liquidity-table {
  min-width: 1080px;
}

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

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

.chart-panel .panel-body {
  padding-top: 4px;
}

.chart-wrap {
  position: relative;
  min-height: 320px;
}

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

.burn-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1240px) {
  .investor-double-grid,
  .overview-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .investor-double-grid,
  .investor-kpi-grid,
  .overview-link-grid,
  .chart-grid,
  .accounting-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
