:root {
  --side-panel-width: 180px;
  --card-bg: #2b2b2b;
  --panel-bg: #202020;
  --inner-bg: #252525;
  --accent: #35d7ff;
  border-style: none;
}

body {
  background-color: #1e1e1e;
  color: white;
  font-family: Arial, sans-serif;
  padding: 20px;
}
.page-header h1 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}
.chart-card {
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 12px 14px 14px;
  background-color: var(--card-bg);
  border-radius: 12px;
}

.chart-header,
.gains-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.timeline-top-row,
.gains-top-row {
  margin-bottom: 10px;
}

.timeline-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.timeline-top-row .card-title-group {
  margin-right: 10px;
}
.gains-top-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;

  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.timeline-top-row h2 {
  margin: 0;
  font-size: 1.2rem;
}
.timeline-top-row,
.gains-top-row,
.milestones-top-row {
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gains-top-row h2 {
  margin: 0;
  white-space: nowrap;
  font-size: 1.2rem;
}

.dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-panel-width);
  gap: 20px;
  align-items: start;
}

.chart-wrapper {
  min-width: 0;
  height: 320px;
  position: relative;
}
.timeline-chart-wrapper {
  height: 355px;
}

.gains-chart-wrapper {
  height: 385px;
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.side-panel {
  width: var(--side-panel-width);
  height: 320px;
  box-sizing: border-box;
}
.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title-group h2 {
  margin: 0;
  font-size: 1.2rem;
}

.chart-hint {
  font-size: 0.75rem;
  color: #8f8f8f;
}

/* Period buttons */
.period-button:disabled,
.history-period-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.period-toggle {
  display: flex;
  gap: 8px;
  background-color: var(--panel-bg);
  padding: 6px;
  border-radius: 12px;
}

.period-button,
.history-period-button {
  min-width: 88px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background-color: #2b2b2b;
  color: #dddddd;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease,
    color 160ms ease;
}

.period-button:hover,
.history-period-button:hover {
  background-color: #383838;
  transform: translateY(-1px);
}

.period-button:active,
.history-period-button:active {
  transform: scale(0.96);
}

.period-button.active,
.history-period-button.active {
  color: #ffffff;
  background-color: #303030;
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(53, 215, 255, 0.45),
    0 0 8px rgba(53, 215, 255, 0.28),
    inset 0 0 4px rgba(53, 215, 255, 0.08);
}

/* Date nav */

.gains-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  background-color: var(--panel-bg);
  border-radius: 12px;
  padding: 3px 6px;
}

.date-display {
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#daily-gains-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.date-prefix {
  font-size: 0.72rem;
  font-weight: 500;
  color: #9f9f9f;
  margin-bottom: 2px;
}

.date-main {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.date-note {
  display: none;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #8f8f8f;
}

.date-note:not(:empty) {
  display: block;
  margin-top: 4px;
}
.gains-date-nav,
.gains-top-row .period-toggle {
  height: 44px;
  box-sizing: border-box;
}
/* Nav arrows */

.nav-arrow {
  width: 72px;
  height: 32px;
  border: none;
  border-radius: 9px;
  background-color: #101010;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.nav-arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 2.5px solid #e5e5e5;
  border-right: 2.5px solid #e5e5e5;
}

.nav-prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.nav-next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.nav-arrow:hover:not(:disabled) {
  background-color: #383838;
  box-shadow:
    0 0 0 1px rgba(53, 215, 255, 0.35),
    0 0 10px rgba(53, 215, 255, 0.25);
  transform: scale(1.06);
}

.nav-arrow:active:not(:disabled) {
  transform: scale(0.92);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: pointer;
}

/* Gains side panel */

.gains-summary {
  background-color: var(--panel-bg);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 320px;
}

.gains-summary .summary-item {
  background-color: var(--inner-bg);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.summary-label {
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: #bbbbbb;
}

.summary-value {
  margin-bottom: 5px;
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1.1;
}

.summary-subvalue {
  font-size: 0.82rem;
}

.summary-positive,
.positive {
  color: #65d46e;
  font-weight: 600;
}

.summary-negative,
.negative {
  color: #ff6b6b;
  font-weight: 600;
}

.neutral {
  color: #dddddd;
}

/* Skill icon side panel */
#skill-progress-view-buttons {
  margin-right: auto;
  margin-left: auto;
  background-color: #202020;
  border-radius: 10px;
  padding: 4px 8px;
  height: 40px;
  font-weight: 600;
  font-size: 1.2rem;
}
#skill-progress-view-buttons .control-label {
  margin: 0 15px;
}
.skill-grid.side-panel {
  display: grid;
  grid-template-columns: repeat(4, 36px);
  gap: 5px;
  align-content: start;
  overflow: hidden;
  justify-content: center;
  background-color: var(--panel-bg);
  border-radius: 12px;
  padding: 8px 2px;
}

.skill-icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: #2b2b2b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease,
    filter 160ms ease;
}

.skill-icon-button img {
  width: 23px;
  height: 23px;
}

.skill-icon-button:hover {
  background-color: #383838;
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.skill-icon-button:active {
  transform: translateY(0) scale(0.94);
  filter: brightness(0.9);
}

.skill-icon-button.selected {
  border-color: var(--accent);
  background-color: #303030;
  box-shadow:
    0 0 0 1px rgba(53, 215, 255, 0.45),
    0 0 10px rgba(53, 215, 255, 0.35),
    inset 0 0 5px rgba(53, 215, 255, 0.08);
}

.skill-icon-button.selected:hover {
  background-color: #363636;
  box-shadow:
    0 0 0 1px rgba(53, 215, 255, 0.55),
    0 0 14px rgba(53, 215, 255, 0.45),
    inset 0 0 6px rgba(53, 215, 255, 0.1);
}
/* Milestones */

.milestones-top-row {
  margin-bottom: 10px;
}

.milestones-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.milestone-date-header {
  position: relative;

  margin: 12px 0 3px;
  padding: 0 0 3px 12px;

  color: #c8c8c8;
  font-size: 0.82rem;
  font-weight: 700;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.milestone-date-header::before {
  content: "";

  position: absolute;
  left: 0;
  top: 1px;

  width: 4px;
  height: 18px;

  border-radius: 999px;

  background: #35d7ff;
}
.milestone-date-header:first-child {
  margin-top: 0;
}

.milestone-date-header:first-child {
  margin-top: 0;
}

.milestone-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
  padding: 5px 16px 5px 14px;
}

.milestone-row-odd {
  background-color: #242424;
}

.milestone-row-even {
  background-color: #292929;
}
.milestone-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #303030;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.milestone-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.milestone-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
}

.milestone-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}
.milestones-list::-webkit-scrollbar {
  width: 8px;
}

.milestones-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 999px;
}

.milestones-list::-webkit-scrollbar-thumb {
  background: #444444;
  border-radius: 999px;
}

.milestones-list::-webkit-scrollbar-thumb:hover {
  background: #555555;
}
.activity-history-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-history-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
}

#activity-history-select {
  background: #1f1f1f;
  color: #e8e8e8;
  border: 1px solid rgba(53, 215, 255, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
}
.activity-search {
  position: relative;
  min-width: 260px;
}

#activity-history-search {
  width: 100%;
  background: #1f1f1f;
  color: #e8e8e8;
  border: 1px solid rgba(53, 215, 255, 0.35);
  border-radius: 8px;
  padding: 7px 10px;
}

.activity-search-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  background: #181818;
  border: 1px solid rgba(53, 215, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.activity-search-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  background: transparent;
  color: #e8e8e8;
  border: none;
  text-align: left;
  cursor: pointer;
}

.activity-search-option:hover,
.activity-search-option.active {
  background: rgba(53, 215, 255, 0.15);
}

.activity-search-option img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.activity-search-options.hidden {
  display: none;
}
.period-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: 10px;
  flex-shrink: 0;
}

.gains-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.gains-card-header .card-title-group {
  min-width: 0;
}

.gains-period-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  max-width: 420px;

  padding: 10px 16px;

  border-radius: 12px;

  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(53, 215, 255, 0.12);
}

.gains-date-display {
  text-align: center;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gains-date-year {
  color: #7f8d97;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.gains-period-inline {
  padding: 4px 8px;
  background-color: #202020;
  border-radius: 10px;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  height: 40px;
  justify-content: space-between;
}
.gains-inline-date {
  display: flex;
  flex-direction: column;
  width: 18ch;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 650;
  color: #f4fbff;
}
.gains-date-range {
  color: #f4fbff;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 700;
}
.gains-nav-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.gains-nav-button {
  height: 32px;
  width: 38px;
  border-radius: 9px;
  border: 1px solid rgba(53, 215, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: #dff8ff;
  cursor: pointer;
}

.gains-nav-button:hover:not(:disabled) {
  background: rgba(53, 215, 255, 0.12);
}

.gains-nav-button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

#daily-gains-note {
  margin-top: 5px;
  font-size: 0.75rem;
  color: #8f98a3;
}
.hidden {
  display: none !important;
}
#daily-gains-year {
  color: #8f98a3;
  font-size: 0.95rem;
  font-weight: 500;
}
.view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  color: #8f98a3;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 2px;
}

.view-button:hover {
  background-color: #383838;
  transform: translateY(-1px);
}
.view-button.active {
  background: rgba(53, 215, 255, 0.14);
  color: #ffffff;
  border-color: rgba(53, 215, 255, 0.75);
  box-shadow: 0 0 12px rgba(53, 215, 255, 0.22);
}

.view-button {
  min-width: 112px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7e2e8;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.view-icon {
  width: 28px;
  height: 22px;
  flex: 0 0 28px;
}

.view-icon-bars {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.view-icon-bars span {
  width: 5px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to top, #39d7ff, #8be9ff);
}

.view-icon-bars span:nth-child(1) {
  height: 11px;
}
.view-icon-bars span:nth-child(2) {
  height: 18px;
}
.view-icon-bars span:nth-child(3) {
  height: 14px;
}

.view-icon-trend svg {
  display: block;
  width: 28px;
  height: 22px;
}
.activity-search-empty {
  padding: 10px 12px;
  color: #8f98a3;
  font-size: 0.88rem;
}

.activity-search-option.selected {
  color: #ffffff;
}

.activity-search-option.active {
  background: rgba(53, 215, 255, 0.18);
}
.major-achievement {
  border-color: rgba(255, 205, 74, 0.35);
  background: linear-gradient(
    90deg,
    rgba(255, 205, 74, 0.1),
    rgba(255, 255, 255, 0.02)
  );
}

.major-achievement .milestone-icon {
  border-color: rgba(255, 205, 74, 0.55);
  box-shadow:
    0 0 14px rgba(255, 205, 74, 0.28),
    0 0 4px rgba(255, 205, 74, 0.4);
}

.major-achievement .achievement-description::after {
  content: " ★";
  color: #ffcd4a;
}
.major-achievement-date {
  color: #ffcd4a;
  border-color: rgba(255, 205, 74, 0.45);
}
.major-achievement .milestone-title {
  color: #fff1b5;
  font-weight: 700;
}
.milestone-skill .milestone-icon {
  box-shadow: 0 0 8px rgba(53, 215, 255, 0.18);
}

.milestone-boss .milestone-icon {
  box-shadow: 0 0 8px rgba(255, 120, 120, 0.15);
}

.milestone-clue .milestone-icon {
  box-shadow: 0 0 8px rgba(255, 205, 74, 0.15);
}

.milestone-collection_log .milestone-icon {
  box-shadow: 0 0 8px rgba(170, 120, 255, 0.15);
}

.milestone-overall .milestone-icon {
  box-shadow: 0 0 8px rgba(120, 255, 180, 0.15);
}
.player-search-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.player-search-form input {
  flex: 1;
  background: #1f1f1f;
  color: #e8e8e8;
  border: 1px solid rgba(53, 215, 255, 0.35);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 1rem;
}

.player-search-form button {
  border: 1px solid rgba(53, 215, 255, 0.45);
  background: rgba(53, 215, 255, 0.14);
  color: #ffffff;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.player-search-form button:hover {
  background: rgba(53, 215, 255, 0.22);
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 16px;
}

.header-player-search-form {
  display: flex;
  gap: 8px;
  min-width: 280px;
}

.header-player-search-form input {
  width: 100%;
  background: #1f1f1f;
  color: #e8e8e8;
  border: 1px solid rgba(53, 215, 255, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
}

.header-player-search-form button {
  border: 1px solid rgba(53, 215, 255, 0.45);
  background: rgba(53, 215, 255, 0.14);
  color: #ffffff;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}
.site-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.branding-logo {
  width: 58px;
  height: 58px;

  object-fit: contain;

  filter: drop-shadow(0 0 8px rgba(40, 210, 255, 0.28));
}

.branding-logo-large {
  width: 96px;
  height: 96px;
}

.branding-text {
  display: flex;
  flex-direction: column;
}

.branding-text h1 {
  margin: 0;

  font-size: 2rem;
}

.branding-text p {
  margin-top: 4px;

  color: #97a4ad;

  font-size: 0.95rem;
}

.page-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 24px;
}

.branding-home {
  justify-content: center;

  margin-bottom: 24px;
}
.home-page {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
}

.home-card {
  width: min(620px, 100%);
  background: var(--card-bg);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
}
.home-card .branding-logo {
  margin-left: 60px;
}

.branding,
.branding-home {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.branding-logo {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(40, 210, 255, 0.28));
}

.branding-logo-large {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
}

.branding-text h1 {
  margin: 0;
  font-size: 2rem;
}

.branding-text p {
  margin: 4px 0 0;
  color: #97a4ad;
  font-size: 0.95rem;
}

.branding-home {
  margin-bottom: 24px;
}

.error-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-card {
  width: min(100%, 620px);
  padding: 32px;
  text-align: center;
  border-radius: 16px;
}

.error-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  color: inherit;
  text-decoration: none;
}

.error-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.error-brand h1,
.error-brand p {
  margin: 0;
}

.error-brand p {
  margin-top: 4px;
  opacity: 0.75;
}

.error-code {
  font-size: clamp(4rem, 16vw, 7rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.2;
}

.error-card h2 {
  margin: 8px 0 10px;
}

.error-message {
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.8;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.error-primary-button,
.error-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.error-primary-button {
  border: 1px solid transparent;
  background: var(--accent-color, #39c6d4);
  color: #071014;
  box-shadow: 0 6px 16px rgb(0 0 0 / 22%);
}

.error-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgb(0 0 0 / 30%);
}

.error-secondary-button {
  border: 1px solid rgb(255 255 255 / 20%);
  background: rgb(255 255 255 / 5%);
  color: inherit;
}

.error-secondary-button:hover {
  transform: translateY(-2px);
  border-color: rgb(255 255 255 / 35%);
  background: rgb(255 255 255 / 9%);
}

.error-primary-button:active,
.error-secondary-button:active {
  transform: translateY(0);
}

.error-primary-button:focus-visible,
.error-secondary-button:focus-visible {
  outline: 3px solid rgb(57 198 212 / 35%);
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .error-card {
    padding: 24px 16px;
  }

  .error-logo {
    width: 56px;
    height: 56px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-primary-button,
  .error-secondary-button {
    width: 100%;
  }
}
/* Mobile */

@media (max-width: 900px) {
  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .side-panel {
    width: 100%;
  }

  .side-panel,
  .skill-grid.side-panel {
    height: auto;
    min-height: 0;
  }

  .skill-grid.side-panel {
    grid-template-columns: repeat(auto-fit, minmax(36px, 44px));
    grid-auto-rows: 36px;
    justify-content: center;
    align-content: start;
  }

  .gains-top-row {
    grid-template-columns: 1fr;
  }

  .timeline-top-row {
    flex-direction: row;
    align-items: center;
  }

  .period-toggle {
    justify-content: center;
  }
}
