body[data-work-root="/works/file38-ise"] .layout-shell {
  max-width: 1280px;
  margin-top: 12px;
}

body[data-work-root="/works/file38-ise"] .main-content {
  min-width: 0;
}

body[data-work-root="/works/file38-ise"] .subpage-title {
  color: var(--accent);
  text-align: center;
}

.character-filter-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.character-result-summary {
  margin: -8px 0 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.list-page-table {
  min-width: 780px;
  table-layout: fixed;
}

.list-page-table th:first-child,
.list-page-table td:first-child {
  white-space: nowrap;
}

.list-page-table td:not(:first-child) {
  overflow-wrap: anywhere;
}

.list-page-table--namedori {
  min-width: 780px;
}

.list-page-table--namedori th:nth-child(1),
.list-page-table--namedori td:nth-child(1) { width: 7%; }
.list-page-table--namedori th:nth-child(2),
.list-page-table--namedori td:nth-child(2) { width: 24%; }
.list-page-table--namedori th:nth-child(3),
.list-page-table--namedori td:nth-child(3) { width: 29%; }
.list-page-table--namedori th:nth-child(4),
.list-page-table--namedori td:nth-child(4) { width: 40%; }

.list-page-table--files {
  min-width: 780px;
}

.list-page-table--files th:nth-child(1),
.list-page-table--files td:nth-child(1) { width: 7%; }
.list-page-table--files th:nth-child(2),
.list-page-table--files td:nth-child(2) { width: 22%; }
.list-page-table--files th:nth-child(3),
.list-page-table--files td:nth-child(3) { width: 21%; }
.list-page-table--files th:nth-child(4),
.list-page-table--files td:nth-child(4) { width: 50%; }

.list-page-table--sumoguri-zukan {
  min-width: 660px;
}

.list-page-table--sumoguri-zukan th:nth-child(1),
.list-page-table--sumoguri-zukan td:nth-child(1) { width: 48%; }
.list-page-table--sumoguri-zukan th:nth-child(2),
.list-page-table--sumoguri-zukan td:nth-child(2),
.list-page-table--sumoguri-zukan th:nth-child(3),
.list-page-table--sumoguri-zukan td:nth-child(3) { width: 26%; }

.list-page-table--endings {
  min-width: 780px;
}

.list-page-table--endings th:nth-child(1),
.list-page-table--endings td:nth-child(1) { width: 6%; }
.list-page-table--endings th:nth-child(2),
.list-page-table--endings td:nth-child(2) { width: 20%; }
.list-page-table--endings th:nth-child(3),
.list-page-table--endings td:nth-child(3) { width: 16%; }
.list-page-table--endings th:nth-child(4),
.list-page-table--endings td:nth-child(4) { width: 25%; }
.list-page-table--endings th:nth-child(5),
.list-page-table--endings td:nth-child(5) { width: 33%; }

.list-page-table--steam-achievements {
  min-width: 780px;
}

.list-page-table--steam-achievements th:nth-child(1),
.list-page-table--steam-achievements td:nth-child(1) { width: 27%; }
.list-page-table--steam-achievements th:nth-child(2),
.list-page-table--steam-achievements td:nth-child(2) { width: 18%; }
.list-page-table--steam-achievements th:nth-child(3),
.list-page-table--steam-achievements td:nth-child(3) { width: 55%; }

body[data-page="characters"] .character-table--file38 {
  min-width: 700px;
  table-layout: fixed;
}

.character-table--file38 th:nth-child(1),
.character-table--file38 td:nth-child(1) { width: 24%; }
body[data-page="characters"] .character-table--file38 th:nth-child(2),
body[data-page="characters"] .character-table--file38 td:nth-child(2) { width: 31%; }
body[data-page="characters"] .character-table--file38 th:nth-child(3),
body[data-page="characters"] .character-table--file38 td:nth-child(3) { width: 11%; }
body[data-page="characters"] .character-table--file38 th:nth-child(4),
body[data-page="characters"] .character-table--file38 td:nth-child(4) { width: 12%; }
body[data-page="characters"] .character-table--file38 th:nth-child(5),
body[data-page="characters"] .character-table--file38 td:nth-child(5) { width: 22%; }

body[data-page="characters"] .character-table--file38 td:nth-child(3),
body[data-page="characters"] .character-table--file38 td:nth-child(4),
body[data-page="characters"] .character-table--file38 td:nth-child(5) {
  white-space: nowrap;
}

.character-reading {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.character-detail--file38 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.character-card-main-value {
  min-width: 0;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.character-card-supplement {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--rule-line);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.character-card-supplement span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f1f6;
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  body[data-work-root="/works/file38-ise"] .layout-shell,
  body[data-work-root="/works/file38-ise"] .main-content,
  body[data-work-root="/works/file38-ise"] .panel,
  body[data-work-root="/works/file38-ise"] .character-list,
  body[data-work-root="/works/file38-ise"] .character-card {
    max-width: 100%;
    min-width: 0;
  }

  body[data-work-root="/works/file38-ise"] .main-content {
    padding: 8px;
  }

  body[data-work-root="/works/file38-ise"] .subpage-title {
    font-size: 1.5rem;
    line-height: 1.35;
  }

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

  .character-card-summary--file38 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 42%);
    gap: 8px;
    align-items: center;
  }

  .character-detail--file38 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .character-card-summary--file38 {
    grid-template-columns: minmax(0, 1fr);
  }

  .character-card-main-value {
    text-align: left;
  }
}
