body[data-page="characters"] .layout-shell,
body[data-page="units"] .layout-shell,
body[data-page="voices"] .layout-shell,
body[data-page="songs"] .layout-shell {
  max-width: 1280px;
  margin-top: 0;
}

body[data-page="characters"] .main-content,
body[data-page="units"] .main-content,
body[data-page="voices"] .main-content,
body[data-page="songs"] .main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  padding-bottom: 28px;
}

.list-page-intro {
  margin-top: 0;
  padding-top: 0;
}

.site-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.site-intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-intro-top .subpage-back-link {
  margin: 0;
}

.site-intro-top .page-updated-at {
  position: static;
  flex: 0 0 auto;
  text-align: right;
}

.list-page-intro .subpage-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: left;
  color: var(--accent);
}

.list-page-summary {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.list-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 10px;
  align-items: end;
}

.list-search-field,
.list-filter-field {
  display: grid;
  gap: 5px;
}

.list-search-label,
.list-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.list-search-input,
.list-filter-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--brand-light);
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
}

.list-search-input {
  padding: 0 13px;
}

.list-filter-select {
  padding: 0 10px;
}

.list-count {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

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

.notes-card {
  border: 2px solid #99f6e4;
  border-radius: 14px;
  background: #fff;
  padding: 8px 10px;
}

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

.notes-card-main {
  min-width: 0;
}

.notes-card-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.notes-card-singer {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.notes-card-note-variation {
  margin: 4px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notes-card-side {
  display: grid;
  grid-template-columns: 84px 76px;
  align-items: center;
  gap: 8px;
}

.notes-attribute-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(20, 184, 166, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.notes-card-value {
  padding: 8px 8px;
  border-radius: 12px;
  background: #ecfeff;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.notes-record-detail {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ccfbf1;
}

@media (max-width: 760px) {
  .list-search-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body[data-page="characters"] .main-content,
  body[data-page="units"] .main-content,
  body[data-page="voices"] .main-content,
  body[data-page="songs"] .main-content {
    padding: 6px 8px 8px;
  }

  .list-page-intro .subpage-title {
    font-size: 1.22rem;
  }

  .site-intro-top {
    margin-bottom: 6px;
  }

  .site-intro-top .page-updated-at {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .site-intro-links {
    gap: 6px;
  }

  .notes-card {
    padding: 6px 10px;
  }

  .notes-card-row {
    gap: 4px;
  }

  .notes-card-side {
    grid-template-columns: 70px 62px;
    gap: 5px;
  }

  .notes-card-title {
    font-size: 0.94rem;
    line-height: 1.2;
  }

  .notes-card-value {
    padding: 6px 7px;
    font-size: 0.82rem;
  }
}
