:root {
  --dash-bg: #08080c;
  --dash-panel: #11111a;
  --dash-card: #12121a;
  --dash-card-faq: #12121b;
  --dash-row: #161624;
  --dash-border: #222230;
  --dash-text: #f4f4f6;
  --dash-muted: #a1a1b5;
  --dash-dim: #62627a;
  --dash-accent: #a30166;
  --dash-accent-light: #e16a9e;
  --dash-accent-dark: #88003e;
  --dash-green: #519f45;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.dashboard {
  min-height: 100vh;
  background: var(--dash-bg);
  color: var(--dash-text);
  font-family: "Geist", "Roboto", sans-serif;
  font-size: 14px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

body.dashboard a {
  text-decoration: none;
}

.dash a,
.dash-login a {
  color: inherit;
}

body.dashboard img {
  display: block;
  max-width: 100%;
}

.dash {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.dash__sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 260px;
  flex-direction: column;
  gap: 32px;
  width: 260px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--dash-border);
  background: var(--dash-panel);
}

.dash__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.dash__overlay,
.dash-sidebar__head {
  display: none;
}

.dash-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dash-profile__avatar {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  background: var(--dash-bg);
}

.dash-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-profile__meta {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-profile__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-profile__role {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  color: var(--dash-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.dash .dash-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dash-muted);
  transition: background-color .2s ease, color .2s ease;
}

.dash-nav__mark {
  display: none;
  flex: 0 0 4px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--dash-accent-light);
}

.dash-nav__icon {
  width: 18px;
  height: 18px;
}

.dash .dash-nav__item--faq {
  font-weight: 700;
}

.dash .dash-nav__item:hover {
  color: var(--dash-text);
}

.dash .dash-nav__item.is-active {
  border-color: rgba(163, 1, 102, .2);
  background: rgba(163, 1, 102, .11);
  color: var(--dash-text);
  font-weight: 700;
}

.dash-nav__item.is-active .dash-nav__mark {
  display: block;
}

.dash .dash-nav__item--signout {
  margin-top: 8px;
  color: var(--dash-accent-dark);
  font-weight: 700;
}

.dash-header {
  display: flex;
  flex: 0 0 80px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  padding: 0 48px;
  border-bottom: 1px solid var(--dash-border);
}

.dash-header__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--dash-text);
}

.dash-header__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-drop {
  position: relative;
}

.dash-drop__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: var(--dash-card);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
  cursor: pointer;
}

.dash-drop__arrow {
  width: 16px;
  height: 16px;
  transition: transform .15s;
}

.dash-drop.is-open .dash-drop__arrow {
  transform: rotate(180deg);
}

.dash-drop__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 100%;
  padding: 6px;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  background: var(--dash-panel);
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .4));
  white-space: nowrap;
}

.dash-drop.is-open .dash-drop__menu {
  display: flex;
}

.dash .dash-drop__item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-muted);
}

.dash .dash-drop__item:hover {
  background: var(--dash-card);
  color: var(--dash-text);
}

.dash .dash-drop__item.is-active {
  background: rgba(163, 1, 102, .11);
  font-weight: 600;
  color: var(--dash-accent);
}

.dash-drop--channel .dash-drop__menu {
  left: 0;
  right: auto;
}

.dash-channel__dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dash-green);
}

.dash-settings {
  position: relative;
}

.dash-settings__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: var(--dash-card);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.dash-settings__toggle img {
  width: 24px;
  height: 24px;
}

.dash-settings.is-open .dash-settings__toggle,
.dash-settings__toggle:hover {
  border-color: var(--dash-accent);
  background: var(--dash-accent);
}

.dash-settings__popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  padding: 12px;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  background: var(--dash-panel);
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .4));
}

.dash-settings.is-open .dash-settings__popup {
  display: flex;
}

.dash-settings__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-settings__group + .dash-settings__group {
  padding-top: 12px;
  border-top: 1px solid var(--dash-border);
}

.dash-settings__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24px;
  text-transform: uppercase;
  color: var(--dash-dim);
}

.dash .dash-settings__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dash-muted);
  transition: background-color .2s ease, color .2s ease;
}

.dash-settings__item--icon {
  justify-content: flex-start;
}

.dash-settings__item img {
  width: 16px;
  height: 16px;
}

.dash .dash-settings__item:hover {
  background: rgba(163, 1, 102, .1);
  color: var(--dash-text);
}

.dash .dash-settings__item.is-active {
  font-weight: 600;
  color: var(--dash-text);
}

.dash-mobile-header,
.dash-mobile-controls {
  display: none;
}

.dash-footer {
  margin-top: auto;
  padding: 24px 48px;
  font-size: 11px;
  color: var(--dash-dim);
}

.dash-card {
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  background: var(--dash-panel);
}

.dash-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dash-text);
}

.dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--dash-dim);
  text-align: center;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--dash-accent);
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-text);
  transition: background-color .2s ease;
}

.dash-btn img {
  width: 16px;
  height: 16px;
}

.dash-btn:hover {
  background: var(--dash-accent-dark);
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(163, 1, 102, .2);
  border-radius: 999px;
  background: rgba(163, 1, 102, .1);
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-muted);
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(163, 1, 102, .2);
  border-radius: 6px;
  background: rgba(163, 1, 102, .15);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dash-accent);
}

.dash-badge--final {
  border-color: rgba(81, 159, 69, .2);
  background: rgba(81, 159, 69, .11);
  color: var(--dash-green);
}

.dash-hint {
  position: relative;
  display: inline-flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: var(--dash-card);
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-muted);
  cursor: help;
}

.dash-hint__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: -8px;
  z-index: 10;
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  background: var(--dash-panel);
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .4));
  text-align: left;
  white-space: normal;
  cursor: default;
}

.dash-hint:hover .dash-hint__tip,
.dash-hint:focus .dash-hint__tip {
  display: flex;
}

.dash-hint__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-hint__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--dash-muted);
}

.dash-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 208px;
  padding: 28px;
  border-radius: 12px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4));
}

.dash-stat__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-muted);
}

.dash-stat__value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 36px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-stat__note {
  font-size: 13px;
  font-weight: 400;
  color: var(--dash-dim);
}

.dash-stat__delta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-muted);
}

.dash-stat__delta img {
  width: 16px;
  height: 16px;
}

.dash-stat__delta.is-up {
  color: var(--dash-green);
}

.dash-stat__delta.is-down {
  color: var(--dash-accent-dark);
}

.dash-chart {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 48px 48px 32px;
  padding: 24px;
}

.dash-chart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dash-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 100px;
  background: var(--dash-bg);
}

.dash-tabs__item {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dash-muted);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.dash-tabs__item.is-active {
  border-color: var(--dash-border);
  background: var(--dash-panel);
  font-weight: 700;
  color: var(--dash-text);
}

.dash-periods {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dash-periods__item {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dash-dim);
  cursor: pointer;
  transition: color .2s ease;
}

.dash-periods__item.is-active {
  font-weight: 700;
  color: var(--dash-accent);
}

.dash-chart__canvas {
  position: relative;
  height: 290px;
}

.dash-plot {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dash-plot__grid line {
  stroke: var(--dash-border);
  stroke-width: 1;
}

.dash-plot__area {
  fill: url(#dashAreaGradient);
}

.dash-plot__line {
  fill: none;
  stroke: var(--dash-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-plot__cursor {
  stroke: var(--dash-border);
  stroke-width: 1;
}

.dash-plot__dot {
  fill: var(--dash-panel);
  stroke: var(--dash-accent);
  stroke-width: 3;
}

.dash-plot__label {
  fill: var(--dash-muted);
  font-size: 12px;
  font-weight: 500;
}

.dash-plot__label--x {
  fill: var(--dash-dim);
}

.dash-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: var(--dash-bg);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .8));
  pointer-events: none;
  white-space: nowrap;
}

.dash-tooltip.is-visible {
  display: flex;
}

.dash-tooltip__date {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dash-muted);
}

.dash-tooltip__value {
  font-family: "Geist Mono", "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-text);
}

.dash-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 0 48px 48px;
}

.dash-row > .dash-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 24px;
}

.dash-breakdown {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-donut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 200px;
  height: 200px;
  margin: 12px auto;
}

.dash-donut svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dash-donut__label {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--dash-dim);
}

.dash-donut__total {
  position: relative;
  font-family: "Geist Mono", "Roboto Mono", monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--dash-text);
}

.dash-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-legend__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.dash-legend > .dash-legend__item:first-child {
  border-bottom: 1px solid var(--dash-border);
}

.dash-legend__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dash-muted);
}

.dash-legend__name:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dash-accent);
}

.dash-legend__item--downloads .dash-legend__name:before {
  background: var(--dash-green);
}

.dash-legend__values {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-legend__values strong {
  font-family: "Geist Mono", "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text);
}

.dash-legend__values em {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dash-dim);
}

.dash-legend--inline {
  flex-direction: row;
  gap: 20px;
}

.dash-legend--inline .dash-legend__item {
  padding: 0;
  border: none;
}

.dash-legend--inline .dash-legend__name {
  font-size: 13px;
  font-weight: 400;
}

.dash-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-top__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-top__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-top__rank {
  flex: 0 0 12px;
  width: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dash-dim);
}

.dash-top__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dash-row);
}

.dash-top__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash .dash-top__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dash-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}

.dash .dash-top__title:hover {
  color: var(--dash-accent);
}

.dash-top__meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dash-top__views {
  flex: 0 0 64px;
  font-family: "Geist Mono", "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--dash-muted);
}

.dash-spark {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 18px;
}

.dash-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dash-spark path {
  fill: none;
  stroke: var(--dash-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-spark.is-up path {
  stroke: var(--dash-green);
}

.dash-bars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 48px 48px 32px;
  padding: 24px;
}

.dash-bars__chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 250px;
  padding: 0 20px 30px 56px;
}

.dash-bars__grid {
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 30px;
  left: 56px;
}

.dash-bars__grid span {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--dash-border);
}

.dash-bars__axis {
  position: absolute;
  top: 0;
  bottom: 30px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  width: 44px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dash-muted);
}

.dash-bars__col {
  position: relative;
  display: flex;
  flex: 1 1 0;
  max-width: 48px;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
}

.dash-bars__col.is-current {
  opacity: .75;
}

.dash-bars__bar {
  display: block;
  width: 100%;
  background: var(--dash-accent);
}

.dash-bars__bar--downloads {
  border-radius: 4px 4px 0 0;
  background: var(--dash-green);
}

.dash-bars__col.is-current .dash-bars__bar {
  border: 1px dashed var(--dash-accent);
}

.dash-bars__col.is-current .dash-bars__bar--downloads {
  border-color: var(--dash-green);
}

.dash-bars__label {
  position: absolute;
  right: 0;
  bottom: -24px;
  left: 0;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: var(--dash-dim);
}

.dash-bars__col.is-current .dash-bars__label {
  color: var(--dash-accent);
}

.dash-table-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 48px 48px;
  padding: 24px;
}

.dash-table-wrap {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
}

.dash-table th {
  padding: 12px 0;
  border-top: 1px solid var(--dash-border);
  border-bottom: 1px solid var(--dash-border);
  background: var(--dash-bg);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--dash-muted);
}

.dash-table th:first-child {
  border-left: 1px solid var(--dash-border);
  border-radius: 8px 0 0 8px;
}

.dash-table th:last-child {
  border-right: 1px solid var(--dash-border);
  border-radius: 0 8px 8px 0;
}

.dash-table th.is-num,
.dash-table th.is-status {
  text-align: right;
}

.dash-table th.is-sortable {
  cursor: pointer;
}

.dash-table th.is-sortable:after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  background: url("../images/dashboard/chevron-down-table.svg") no-repeat center / contain;
  vertical-align: middle;
}

.dash-table th.is-active {
  color: var(--dash-text);
}

.dash-table th.is-active.is-asc:after {
  transform: rotate(180deg);
}

.dash-table tbody tr:first-child td {
  padding-top: 22px;
}

.dash-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--dash-border);
  font-size: 14px;
  font-weight: 400;
  color: var(--dash-muted);
}

.dash-table tbody tr.is-current {
  background: var(--dash-row);
}

.dash-table td:first-child {
  font-weight: 600;
  color: var(--dash-text);
}

.dash-table td.is-num {
  font-family: "Geist Mono", "Roboto Mono", monospace;
  text-align: right;
}

.dash-table td.is-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-table tr.is-current td.is-total {
  color: var(--dash-accent);
}

.dash-table td.is-status {
  text-align: right;
}

.dash-table th:first-child,
.dash-table td:first-child {
  padding-left: 16px;
}

.dash-table th:last-child,
.dash-table td:last-child {
  padding-right: 16px;
}

.dash-table th:nth-child(1),
.dash-table td:nth-child(1) {
  width: 196px;
}

.dash-table th:nth-child(2),
.dash-table td:nth-child(2) {
  width: 180px;
}

.dash-table th:nth-child(3),
.dash-table td:nth-child(3),
.dash-table th:nth-child(4),
.dash-table td:nth-child(4),
.dash-table th:nth-child(5),
.dash-table td:nth-child(5),
.dash-table th:nth-child(6),
.dash-table td:nth-child(6) {
  width: 220px;
}

.dash-table--videos th:nth-child(1),
.dash-table--videos td:nth-child(1) {
  width: 156px;
}

.dash-table--videos th:nth-child(2),
.dash-table--videos td:nth-child(2) {
  width: 320px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table--videos th:nth-child(3),
.dash-table--videos td:nth-child(3),
.dash-table--videos th:nth-child(4),
.dash-table--videos td:nth-child(4) {
  width: 130px;
}

.dash-table--videos th:nth-child(5),
.dash-table--videos td:nth-child(5),
.dash-table--videos th:nth-child(6),
.dash-table--videos td:nth-child(6),
.dash-table--videos th:nth-child(7),
.dash-table--videos td:nth-child(7) {
  width: 140px;
}

.dash-table--videos td {
  padding: 12px 0;
}

.dash-table--videos td:first-child {
  width: 140px;
}

.dash-table--videos td.is-title {
  width: 320px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-text);
  text-overflow: ellipsis;
}

.dash-table--videos td.is-title a {
  transition: color .2s ease;
}

.dash-table--videos td.is-title a:hover {
  color: var(--dash-accent);
}

.dash-table--videos td.is-date {
  width: 130px;
  color: var(--dash-muted);
}

.dash-table--videos td.is-trend {
  width: 140px;
  padding-left: 46px;
}

.dash-table--videos td.is-trend .dash-spark {
  flex: 0 0 80px;
  width: 80px;
  height: 24px;
}

.dash-table--videos td.is-total {
  font-family: "Geist Mono", "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-thumb {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: linear-gradient(122deg, #1c1c28 25%, #0b0b10 75%);
}

.dash-thumb__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 12px;
  background: rgba(8, 8, 12, .8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  transition: background-color .2s ease;
}

.dash-thumb__play img {
  width: 10px;
  height: 10px;
}

.dash-thumb:hover .dash-thumb__play {
  background: var(--dash-accent);
}

.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 48px 48px 32px;
}

.dash-toolbar__form {
  flex: 0 0 auto;
  margin: 0;
}

.dash-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 400px;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: var(--dash-card) url("../images/dashboard/search.svg") no-repeat 16px center / 16px;
}

.dash-search input {
  width: 100%;
  padding: 0 0 0 28px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--dash-text);
  outline: none;
}

.dash-search input::placeholder {
  color: var(--dash-muted);
}

.dash-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.dash-pagination__info {
  font-size: 14px;
  font-weight: 400;
  color: var(--dash-muted);
}

.dash-pagination__mobile {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-text);
}

.dash-pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash .dash-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-muted);
  transition: border-color .2s ease, color .2s ease;
}

.dash-pagination__btn img {
  width: 12px;
  height: 12px;
}

.dash .dash-pagination__btn:hover {
  border-color: var(--dash-accent);
  color: var(--dash-text);
}

.dash .dash-pagination__btn.is-active {
  border-color: var(--dash-accent);
  background: var(--dash-accent);
  font-weight: 700;
  color: var(--dash-text);
}

.dash-pagination__dots {
  font-size: 13px;
  color: var(--dash-dim);
}

.dash-faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px;
}

.dash-search--faq {
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: var(--dash-card-faq);
  background-image: url("../images/dashboard/search-lg.svg");
  background-position: 20px center;
  background-size: 20px;
}

.dash-search--faq input {
  padding-left: 34px;
  font-size: 16px;
}

.dash-faq__category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-faq__category + .dash-faq__category {
  margin-top: 8px;
}

.dash-faq__category-title {
  margin: 0 0 36px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--dash-border);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dash-accent);
}

.dash-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-faq__item {
  padding: 24px;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  background: var(--dash-card-faq);
}

.dash-faq__item[open] {
  background: var(--dash-row);
}

.dash-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dash-text);
  cursor: pointer;
  list-style: none;
}

.dash-faq__question::-webkit-details-marker {
  display: none;
}

.dash-faq__question img {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.dash-faq__item[open] .dash-faq__question {
  color: var(--dash-accent);
}

.dash-faq__item[open] .dash-faq__question img {
  transform: rotate(180deg);
}

.dash-faq__answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-border);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dash-muted);
}

.dash-faq__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  background: var(--dash-card-faq);
}

.dash-faq__contact-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
  min-width: 0;
}

.dash-faq__contact-text strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-faq__contact-text p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--dash-muted);
}

.dash-faq__contact-text p a {
  font-weight: 600;
  color: var(--dash-accent);
  text-decoration: underline;
}

.dash-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(500px 400px at 25% 25%, rgba(163, 1, 102, .16), transparent 70%), radial-gradient(600px 500px at 75% 75%, rgba(81, 159, 69, .1), transparent 70%), var(--dash-bg);
}

.dash-login__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 480px;
  max-width: 100%;
  padding: 48px;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  background: var(--dash-card);
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .5));
  text-align: center;
}

.dash-login__logo {
  width: 204px;
  height: auto;
}

.dash-login__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-login__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-login__subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--dash-muted);
}

.dash-login__card .dash-badge {
  border-color: rgba(163, 1, 102, .2);
  background: rgba(163, 1, 102, .11);
}

.dash-login__form {
  width: 100%;
  text-align: left;
}

.dash-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0;
}

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

.dash-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-muted);
}

.dash-form__input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: var(--dash-bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--dash-text);
  outline: none;
}

.dash-form__input--area {
  height: auto;
  padding: 12px 16px;
  line-height: 1.5;
  resize: vertical;
}

.dash-form__input::placeholder {
  color: var(--dash-dim);
}

.dash-form__input:focus {
  border-color: var(--dash-accent);
}

.dash-form__input.is-error {
  border-color: var(--dash-accent-dark);
}

.dash-form__captcha {
  height: auto;
  width: 168px;
  border-radius: 8px;
}

.dash-form__links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dash .dash-form__links a,
.dash-login .dash-form__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-accent);
  text-decoration: underline;
}

.dash-form__password {
  position: relative;
  display: block;
}

.dash-form__eye {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dash-form__eye img {
  width: 16px;
  height: 16px;
}

.dash-form__password .dash-form__input {
  padding-right: 44px;
}

.dash-form__submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--dash-accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-text);
  cursor: pointer;
  transition: background-color .2s ease;
}

.dash-form__submit:hover {
  background: var(--dash-accent-dark);
}

.dash-login .dash-form__back {
  align-self: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-muted);
  text-decoration: underline;
}

.dash-form__error {
  padding: 10px 14px;
  border: 1px solid rgba(136, 0, 62, .4);
  border-radius: 8px;
  background: rgba(136, 0, 62, .15);
  font-size: 13px;
  color: var(--dash-text);
}

.dash-form__success {
  padding: 14px 16px;
  border: 1px solid rgba(81, 159, 69, .2);
  border-radius: 8px;
  background: rgba(81, 159, 69, .11);
  font-size: 14px;
  color: var(--dash-green);
  text-align: center;
}

.dash-login__apply {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--dash-muted);
}

.dash-login__apply a {
  font-weight: 600;
  color: var(--dash-accent);
  text-decoration: underline;
}

@media screen and (max-width: 1280px) {
  .dash-header,
  .dash-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dash-stats,
  .dash-faq {
    padding: 24px;
  }

  .dash-chart,
  .dash-bars {
    margin: 24px 24px 16px;
  }

  .dash-row {
    padding: 0 24px 24px;
  }

  .dash-toolbar {
    padding: 24px 24px 0;
  }

  .dash-table-card {
    margin: 0 24px 24px;
  }
}

@media screen and (max-width: 960px) {
  .dash-row {
    flex-direction: column;
  }

  .dash-row > .dash-card {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .dash {
    flex-direction: column;
  }

  .dash-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 64px;
    padding: 0 16px;
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-bg);
  }

  .dash-mobile-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }

  .dash-mobile-header__menu img {
    width: 20px;
    height: 20px;
  }

  .dash-mobile-header__settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: var(--dash-card);
    cursor: pointer;
  }

  .dash-mobile-header__settings img {
    width: 24px;
    height: 24px;
  }

  .dash-mobile-header__title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--dash-text);
  }

  .dash__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 280px;
    height: 100vh;
    flex: none;
    gap: 0;
    padding: 0;
    border-right: none;
    border-left: 1px solid var(--dash-border);
    background: var(--dash-bg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .dash.is-menu-open .dash__sidebar {
    transform: translateX(0);
  }

  .dash-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px;
    border-bottom: 1px solid var(--dash-border);
  }

  .dash-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-text);
  }

  .dash-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }

  .dash-sidebar__close img {
    width: 20px;
    height: 20px;
  }

  .dash-profile {
    padding: 16px;
  }

  .dash-nav {
    gap: 4px;
    padding: 12px;
  }

  .dash .dash-nav__item {
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--dash-text);
  }

  .dash .dash-nav__item.is-active {
    border-color: var(--dash-border);
    background: var(--dash-card);
    font-weight: 700;
  }

  .dash.is-menu-open .dash__overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
  }

  .dash__main {
    width: 100%;
    min-height: 0;
  }

  .dash-mobile-controls {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--dash-border);
  }

  .dash-mobile-controls .dash-drop,
  .dash-mobile-controls .dash-drop__btn {
    width: 100%;
  }

  .dash-header {
    display: none;
  }

  .dash-settings {
    position: static;
  }

  .dash-settings__popup {
    position: fixed;
    top: 68px;
    right: 16px;
    left: auto;
  }

  .dash-stats,
  .dash-faq {
    gap: 16px;
    padding: 16px;
  }

  .dash-stat {
    gap: 10px;
    min-height: 0;
    padding: 16px;
    border-radius: 12px;
    background: var(--dash-card);
    filter: none;
  }

  .dash-stat__label {
    font-size: 13px;
  }

  .dash-stat__value {
    gap: 8px;
    font-size: 28px;
  }

  .dash-stat__note {
    font-size: 12px;
    color: var(--dash-muted);
  }

  .dash-stat__delta {
    gap: 6px;
    font-size: 12px;
  }

  .dash-stat__delta img {
    width: 14px;
    height: 14px;
  }

  .dash-chip {
    padding: 4px 8px;
    border-color: var(--dash-border);
    background: #1f1f2a;
    font-size: 11px;
    font-weight: 700;
  }

  .dash-chip--scheduled {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
  }

  .dash-chart,
  .dash-bars {
    gap: 20px;
    margin: 16px;
    padding: 16px;
    border-radius: 16px;
    background: var(--dash-card);
  }

  .dash-chart__header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .dash-tabs {
    width: 100%;
  }

  .dash-tabs__item {
    flex: 1 1 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  .dash-periods {
    justify-content: center;
    gap: 16px;
  }

  .dash-periods__item {
    font-size: 13px;
  }

  .dash-chart__canvas {
    height: 214px;
  }

  .dash-card__head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .dash-card__title {
    font-size: 16px;
  }

  .dash-legend--inline {
    gap: 12px;
  }

  .dash-legend--inline .dash-legend__name {
    font-size: 11px;
  }

  .dash-row {
    gap: 16px;
    padding: 0 16px 16px;
  }

  .dash-row > .dash-card {
    padding: 16px;
    background: var(--dash-card);
  }

  .dash-donut {
    width: 140px;
    height: 140px;
  }

  .dash-donut__label {
    font-size: 11px;
  }

  .dash-donut__total {
    font-size: 16px;
  }

  .dash-legend__name {
    font-size: 13px;
  }

  .dash-legend__values strong {
    font-size: 13px;
  }

  .dash-legend__values em {
    font-size: 11px;
  }

  .dash-top__list {
    gap: 12px;
  }

  .dash-top__title {
    font-size: 13px;
  }

  .dash-top__views {
    flex-basis: 54px;
    font-size: 13px;
  }

  .dash-top__meta .dash-spark {
    display: none;
  }

  .dash-bars__chart {
    height: 184px;
    padding-left: 44px;
  }

  .dash-bars__axis {
    width: 36px;
    font-size: 11px;
  }

  .dash-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 0;
  }

  .dash-toolbar__form,
  .dash-drop--sort,
  .dash-drop--sort .dash-drop__btn {
    width: 100%;
  }

  .dash-drop--sort .dash-drop__menu {
    left: 0;
    right: auto;
  }

  .dash-table-card {
    gap: 16px;
    margin: 16px;
    padding: 16px;
    background: var(--dash-card);
  }

  .dash-table-card--videos {
    padding: 0;
    border: 0;
    background: none;
    filter: none;
  }

  .dash-table--videos tbody tr {
    margin-bottom: 16px;
  }

  .dash-bars + .dash-table-card {
    margin-top: 0;
  }

  .dash-table thead {
    display: none;
  }

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

  .dash-table tr {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-panel);
    white-space: normal;
  }

  .dash-table tbody tr:first-child td {
    padding-top: 6px;
  }

  .dash-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: none;
  }

  .dash-table td:before {
    content: attr(data-label);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--dash-dim);
  }

  .dash-table th,
  .dash-table td,
  .dash-table--videos th,
  .dash-table--videos td {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .dash-table--videos tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--dash-card);
  }

  .dash-table--videos td {
    width: 100%;
    padding: 6px 0;
  }

  .dash-table--videos td:first-child {
    width: 100%;
    padding-bottom: 10px;
  }

  .dash-table--videos td:first-child:before,
  .dash-table--videos td.is-title:before,
  .dash-table--videos td.is-date:before {
    display: none;
  }

  .dash-table--videos td.is-title {
    width: 100%;
    padding-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
    white-space: normal;
  }

  .dash-table--videos td.is-date {
    width: 100%;
    padding-top: 0;
    font-size: 12px;
    color: var(--dash-dim);
  }

  .dash-table--videos td.is-trend,
  .dash-table--videos td.is-views-month {
    display: none;
  }

  .dash-table--videos td.is-num {
    flex: 1 1 28%;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 12px;
  }

  .dash-table--videos td.is-num:before {
    font-size: 11px;
  }

  .dash-table--videos td.is-num {
    font-size: 13px;
  }

  .dash-table--videos td.is-total {
    font-size: 13px;
    color: var(--dash-accent);
  }

  .dash-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }

  .dash-thumb__play {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 20px;
  }

  .dash-thumb__play img {
    width: 14px;
    height: 14px;
  }

  .dash-pagination {
    justify-content: center;
    gap: 24px;
    padding: 12px 0 24px;
  }

  .dash-pagination__info,
  .dash-pagination__btn span,
  .dash-pagination__btn:not(.dash-pagination__btn--prev):not(.dash-pagination__btn--next),
  .dash-pagination__dots {
    display: none;
  }

  .dash-pagination__mobile {
    display: block;
    order: 2;
  }

  .dash-pagination__pages {
    display: contents;
  }

  .dash-pagination__btn--prev {
    order: 1;
  }

  .dash-pagination__btn--next {
    order: 3;
  }

  .dash-pagination__btn--prev,
  .dash-pagination__btn--next {
    padding: 8px;
  }

  .dash-pagination__btn img {
    width: 16px;
    height: 16px;
  }

  .dash-faq {
    gap: 24px;
  }

  .dash-faq__category + .dash-faq__category {
    margin-top: 0;
  }

  .dash-faq__category-title {
    margin-bottom: 12px;
  }

  .dash-faq__item {
    padding: 16px;
  }

  .dash-faq__question {
    font-size: 15px;
  }

  .dash-faq__contact {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .dash-footer {
    padding: 24px 16px;
    text-align: center;
  }

  .dash-login__card {
    gap: 24px;
    padding: 24px;
  }

  .dash-login__logo {
    width: 160px;
  }
}
