.funding-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.funding-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 16px;
  padding: 22px 24px;
  border: 1px solid var(--coz-card-border, #313747);
  border-radius: 8px;
  background: var(--coz-card-bg, var(--coz-section-bg, #1a1d27));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.funding-title-copy {
  min-width: 0;
}

.funding-titlebar h1 {
  margin: 0 0 8px;
  color: var(--coz-text, #f3f5f8);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

.funding-titlebar p {
  max-width: 720px;
  margin: 0;
  color: var(--coz-text-muted, #98a1b3);
  font-size: 15px;
  line-height: 1.75;
}

.funding-title-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--coz-card-border, #313747);
  border-radius: 8px;
  background: rgba(125, 134, 160, .08);
}

.funding-title-tabs a {
  min-width: 68px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--coz-text-muted, #98a1b3);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.funding-title-tabs a.active,
.funding-title-tabs a:hover {
  color: #071016;
  background: #00bcd4;
}

.funding-dashboard {
  overflow: hidden;
  border: 1px solid var(--coz-card-border, #313747);
  border-radius: 8px;
  background: var(--coz-card-bg, var(--coz-section-bg, #1a1d27));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.funding-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--coz-card-border, #313747);
}

.funding-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.funding-tab,
.funding-toggle {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--coz-card-border, #313747);
  border-radius: 8px;
  background: transparent;
  color: var(--coz-text-muted, #98a1b3);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.funding-tab.is-active,
.funding-toggle.is-active {
  color: #071016;
  border-color: #00bcd4;
  background: #00bcd4;
}

.funding-tab:disabled,
.funding-tab[aria-disabled="true"] {
  opacity: .38;
  cursor: not-allowed;
}

.funding-search {
  flex: 0 1 280px;
}

.funding-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--coz-card-border, #313747);
  border-radius: 8px;
  background: var(--coz-input-bg, rgba(255, 255, 255, .04));
  color: var(--coz-text, #f3f5f8);
  font: inherit;
  font-size: 14px;
}

.funding-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.funding-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
}

.funding-table th,
.funding-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--coz-card-border, #313747);
  text-align: center;
  vertical-align: middle;
}

.funding-table th {
  color: var(--coz-text-muted, #98a1b3);
  background: rgba(125, 134, 160, .1);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.funding-table tbody tr {
  transition: background-color .15s ease;
}

.funding-table tbody tr:hover {
  background: rgba(125, 134, 160, .06);
}

.funding-table th:first-child,
.funding-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--coz-card-bg, var(--coz-section-bg, #1a1d27));
}

.funding-table th:first-child {
  z-index: 2;
  background: rgba(125, 134, 160, .12);
}

.funding-symbol {
  color: var(--coz-text, #f3f5f8);
  font-weight: 950;
}

.funding-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.funding-cell.is-up {
  color: #ef4e6f;
}

.funding-cell.is-down {
  color: #38a1db;
}

.funding-empty,
.funding-loading {
  padding: 42px 16px;
  color: var(--coz-text-muted, #98a1b3);
  text-align: center;
}

.funding-seo {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--coz-card-border, #313747);
  border-radius: 8px;
  background: var(--coz-card-bg, var(--coz-section-bg, #1a1d27));
}

.funding-seo h2 {
  margin: 0 0 10px;
  color: var(--coz-text, #f3f5f8);
  font-size: 19px;
}

.funding-seo p,
.funding-seo li {
  color: var(--coz-text-muted, #98a1b3);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 760px) {
  .funding-toolbar {
    display: block;
  }

  .funding-titlebar {
    display: block;
    padding: 18px;
  }

  .funding-title-tabs {
    margin-top: 14px;
  }

  .funding-search {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .funding-main {
    width: min(100% - 24px, 1180px);
  }

  .funding-titlebar h1 {
    font-size: 32px;
  }

  .funding-dashboard {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .funding-toolbar {
    padding: 12px;
    border: 1px solid var(--coz-card-border, #313747);
    border-radius: 8px;
    background: var(--coz-card-bg, var(--coz-section-bg, #1a1d27));
  }

  .funding-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .funding-table-wrap {
    overflow: visible;
    margin-top: 12px;
  }

  .funding-table,
  .funding-table tbody,
  .funding-table tr,
  .funding-table td {
    display: block;
    width: 100%;
  }

  .funding-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .funding-table thead {
    display: none;
  }

  .funding-table tr {
    overflow: hidden;
    border: 1px solid var(--coz-card-border, #313747);
    border-radius: 8px;
    background: var(--coz-card-bg, var(--coz-section-bg, #1a1d27));
  }

  .funding-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(125, 134, 160, .12);
    text-align: right;
  }

  .funding-table td:last-child {
    border-bottom: 0;
  }

  .funding-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--coz-text-muted, #98a1b3);
    font-size: 12px;
    font-weight: 900;
  }
}
