body[data-page="level-charts"] .layout-shell,
body[data-page="song-metrics"] .layout-shell,
body[data-page="unit-members"] .layout-shell,
body[data-page="voice-actors"] .layout-shell {
  max-width: 1280px;
  margin-top: 12px;
}

body[data-page="level-charts"] .main-content,
body[data-page="song-metrics"] .main-content,
body[data-page="unit-members"] .main-content,
body[data-page="voice-actors"] .main-content {
  flex: 1 1 auto;
  min-width: 0;
}

.list-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.list-hero-links {
  display: flex;
  justify-content: flex-start;
}

.list-panel-search,
.list-panel-filters,
.list-panel-table {
  margin-bottom: 14px;
}

.notes-filter-row {
  display: grid;
  gap: 12px;
}

.notes-search-box {
  display: grid;
  gap: 8px;
}

.notes-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
}

.notes-search:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(47, 128, 237, 0.16);
}

.notes-filter-group + .notes-filter-group {
  margin-top: 12px;
}

.notes-filter-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
}

.notes-tabs,
.notes-mobile-difficulty-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notes-tab {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
}

.notes-tab.is-active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--accent);
  font-weight: 700;
}

.notes-filter-toggle {
  display: none;
}

.notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.notes-table th,
.notes-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.notes-table th {
  background: #f8fbff;
  color: var(--accent);
  text-align: left;
  white-space: nowrap;
}

.notes-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notes-sort-icon {
  color: var(--text-muted);
  font-size: 0.82em;
}

.notes-title-cell {
  min-width: 180px;
}

.notes-title-main,
.notes-title-sub {
  display: block;
}

.notes-title-main {
  font-weight: 700;
}

.notes-title-sub {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.notes-value-cell {
  white-space: nowrap;
}

.notes-empty {
  margin: 0;
  color: var(--text-muted);
}

.notes-cards {
  display: grid;
  gap: 10px;
}

.notes-mobile-list-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 0 2px 2px;
}

.notes-mobile-sort-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.notes-mobile-sort-button.is-active {
  color: var(--accent);
}

.notes-mobile-sort-button:last-child {
  text-align: right;
}

.notes-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.notes-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.notes-card-title {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.35;
}

.notes-card-singer {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.notes-card-value {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 850px) {
  body[data-page="level-charts"] .page-affiliate-note,
  body[data-page="song-metrics"] .page-affiliate-note,
  body[data-page="unit-members"] .page-affiliate-note,
  body[data-page="voice-actors"] .page-affiliate-note {
    display: block;
  }

  .notes-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font: inherit;
  }

  .notes-filter-body {
    display: none;
    padding-top: 8px;
  }

  .notes-filter-group.is-open .notes-filter-body {
    display: block;
  }
}

@media (max-width: 520px) {
  body[data-page="level-charts"] .main-content,
  body[data-page="song-metrics"] .main-content,
  body[data-page="unit-members"] .main-content,
  body[data-page="voice-actors"] .main-content {
    padding: 6px 8px 8px;
  }

  .notes-card-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-card-side {
    justify-self: start;
  }
}
