.content:not(.module-content) {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  margin-bottom: 16px;
  padding: 28px 30px;
  border: 1px solid rgba(199, 246, 91, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 18%, rgba(199, 246, 91, .15), transparent 28rem),
    linear-gradient(135deg, rgba(29, 40, 52, .98), rgba(20, 28, 37, .98));
  box-shadow: 0 24px 60px rgba(4, 8, 12, .2);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -115px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(199, 246, 91, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(199, 246, 91, .025), 0 0 0 88px rgba(199, 246, 91, .018);
  pointer-events: none;
}

.dashboard-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.dashboard-club-crest {
  width: 76px !important;
  height: 76px !important;
  flex: 0 0 76px;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.dashboard-hero h1 {
  margin: 5px 0 5px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.045em;
}

.dashboard-hero p {
  margin: 0;
}

.dashboard-hero .primary-button {
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding-inline: 19px;
}

.matchweek-strip {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 116px;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(20, 28, 37, .72);
  overflow: hidden;
}

.matchweek-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 20px;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(145deg, rgba(199, 246, 91, .09), transparent);
}

.matchweek-title strong {
  font-size: 14px;
}

.matchweek-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 1fr);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.matchweek-item {
  position: relative;
  min-width: 0;
  padding: 13px 12px 11px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  align-items: center;
  gap: 8px;
}

.matchweek-item:hover {
  background: rgba(255, 255, 255, .025);
}

.matchweek-item.is-next {
  background: rgba(199, 246, 91, .085);
  box-shadow: inset 0 3px var(--lime);
}

.matchweek-item.is-finished {
  color: var(--muted);
}

.matchweek-item > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.matchweek-item > span small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.matchweek-item .mini-crest {
  width: 27px;
  height: 27px;
}

.matchweek-item > strong {
  font-size: 13px;
}

.matchweek-item > small:last-child {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metrics-grid {
  gap: 10px;
  margin: 0 0 16px;
}

.metric {
  min-height: 112px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(37, 51, 66, .8), rgba(29, 40, 52, .75));
}

.metric > strong {
  letter-spacing: -.035em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  display: contents;
}

.dashboard-grid .match-card {
  grid-column: 1 / span 8;
  grid-row: 1;
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 46%, rgba(199, 246, 91, .08), transparent 21rem),
    var(--surface);
  box-shadow: 0 22px 50px rgba(4, 8, 12, .16);
}

.dashboard-grid .match-card-head {
  min-height: 78px;
  padding: 20px 23px;
}

.dashboard-grid .fixture {
  min-height: 250px;
  padding-inline: 28px;
}

.dashboard-grid .fixture-club h2 {
  max-width: 250px;
  font-size: clamp(19px, 2vw, 27px);
  letter-spacing: -.035em;
}

.dashboard-grid .fixture-club .crest {
  width: 84px;
  height: 84px;
}

.dashboard-grid .versus > span {
  color: var(--lime);
  background: rgba(199, 246, 91, .08);
  border: 1px solid rgba(199, 246, 91, .2);
  box-shadow: 0 0 30px rgba(199, 246, 91, .06);
}

.results-panel {
  grid-column: 1 / span 8;
  grid-row: 2;
  overflow: hidden;
}

.results-panel .panel-head,
.league-panel .panel-head,
.decisions-panel .panel-head,
.pulse-panel .panel-head {
  min-height: 78px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .012);
}

.results-panel .text-button {
  color: var(--lime);
}

.dashboard-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dashboard-results > button {
  min-width: 0;
  min-height: 62px;
  padding: 9px 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.dashboard-results > button:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.dashboard-results > button:hover,
.dashboard-results > button.is-own {
  background: rgba(199, 246, 91, .055);
}

.dashboard-results > button > span {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 900;
}

.dashboard-results > button > p {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard-results > button > p strong {
  min-width: 0;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-results > button > b {
  color: var(--lime);
  text-align: center;
  font-size: 13px;
}

.dashboard-results .mini-crest {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.league-panel {
  grid-column: 9 / span 4;
  grid-row: 1 / span 3;
  max-height: 828px;
  overflow: hidden;
}

.league-panel .league-table {
  max-height: 748px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.league-panel .table-row {
  min-height: 45px;
}

.league-panel .table-row.is-active {
  box-shadow: inset 3px 0 var(--lime);
  background: rgba(199, 246, 91, .09);
}

.decisions-panel {
  grid-column: 1 / span 4;
  grid-row: 3;
}

.pulse-panel {
  grid-column: 5 / span 4;
  grid-row: 3;
}

.decision,
.pulse-item {
  transition: background .15s ease, transform .15s ease;
}

.decision:hover,
.pulse-item:hover {
  transform: translateX(2px);
}

.notification-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-panel button.is-unread,
.pulse-item.is-unread {
  background: color-mix(in srgb, var(--lime) 9%, transparent);
}

.notification-panel button.is-unread::before,
.pulse-item.is-unread::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}

.notification-panel button.is-read,
.pulse-item.is-read {
  opacity: .72;
}

.notification-panel .notification-empty,
.dashboard-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted, #8e9894);
  font-size: 13px;
}

.notification-panel .notification-read-all {
  justify-content: center;
  color: var(--lime);
  font-weight: 700;
}

.pulse-list .pulse-item {
  width: 100%;
  border: 0;
  text-align: left;
}

.decisions-panel .dashboard-empty {
  border-top: 1px solid rgba(255, 255, 255, .06);
}

@media (max-width: 1180px) {
  .dashboard-grid .match-card,
  .results-panel {
    grid-column: 1 / span 7;
  }

  .league-panel {
    grid-column: 8 / span 5;
  }

  .decisions-panel {
    grid-column: 1 / span 7;
  }

  .pulse-panel {
    grid-column: 1 / span 7;
    grid-row: 4;
  }

  .dashboard-results {
    grid-template-columns: 1fr;
  }

  .dashboard-results > button:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .match-card,
  .results-panel,
  .league-panel,
  .decisions-panel,
  .pulse-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .league-panel {
    max-height: 570px;
  }

  .league-panel .league-table {
    max-height: 490px;
  }
}

@media (max-width: 720px) {
  .dashboard-hero {
    padding: 22px 18px;
  }

  .dashboard-identity {
    align-items: flex-start;
  }

  .dashboard-club-crest {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px;
  }

  .matchweek-strip {
    grid-template-columns: 1fr;
  }

  .matchweek-title {
    min-height: 66px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .matchweek-track {
    grid-auto-columns: 132px;
  }

  .matchweek-item {
    min-height: 98px;
  }

  .dashboard-grid .fixture {
    padding-inline: 12px;
  }

  .dashboard-results > button {
    grid-template-columns: 34px minmax(0, 1fr) 34px minmax(0, 1fr);
    padding-inline: 10px;
  }

  .notification-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .dashboard-identity {
    gap: 13px;
  }

  .dashboard-hero h1 {
    font-size: 25px;
  }

  .dashboard-results > button {
    grid-template-columns: 30px minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 5px;
  }

  .dashboard-results .mini-crest {
    display: none;
  }
}
