:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --nogizaka: #8b2a8e;
  --sakurazaka: #e89bb9;
  --sakurazaka-strong: #d94683;
  --keyakizaka: #4b833f;
  --hinatazaka: #41b6e6;
  --sakamichi-orange: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --pink-soft: #fdf2f8;
  --nav-h: 54px;
  --radius: 18px;
  --font-sans: "Noto Sans CJK JP", "Noto Sans CJK SC", "Source Han Sans", "Hiragino Sans", "Yu Gothic", "Microsoft YaHei UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "YuMincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Source Han Serif JP", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-family: var(--font-sans);
}

/* Editorial member template: shared by every generated member article. */
body[data-wiki-member-group="nogizaka46"] {
  --member-page-accent: var(--nogizaka);
}

body[data-wiki-member-group="sakurazaka46"] {
  --member-page-accent: var(--sakurazaka-strong);
}

body[data-wiki-member-group="hinatazaka46"] {
  --member-page-accent: var(--hinatazaka);
}

body[data-wiki-member-theme="keyakizaka46"],
body[data-wiki-member-theme="nagahama-neru"] {
  --member-page-accent: var(--keyakizaka);
}

body[data-wiki-member-theme="keyakizaka-sakurazaka"] {
  --member-page-accent: var(--sakurazaka-strong);
}

body[data-wiki-member-theme="hiragana-hinatazaka"] {
  --member-page-accent: var(--hinatazaka);
}

body.wiki-pilot-member .brand .brand-yoku,
body.wiki-pilot-member .brand .brand-kyu {
  color: var(--member-page-accent, var(--pink));
}

body[data-wiki-member-theme="keyakizaka-sakurazaka"] .brand .brand-yoku,
body[data-wiki-member-theme="hiragana-hinatazaka"] .brand .brand-yoku,
body[data-wiki-member-theme="nagahama-neru"] .brand .brand-yoku {
  color: var(--keyakizaka);
}

body[data-wiki-member-theme="keyakizaka-sakurazaka"] .brand .brand-kyu {
  color: var(--sakurazaka-strong);
}

body[data-wiki-member-theme="hiragana-hinatazaka"] .brand .brand-kyu,
body[data-wiki-member-theme="nagahama-neru"] .brand .brand-kyu {
  color: var(--hinatazaka);
}

body.wiki-pilot-member .wrap {
  max-width: 1180px;
  width: min(calc(100% - 48px), 1180px);
}

.wiki-detail.wiki-pilot-member-detail {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 142px minmax(0, 1fr) 226px;
}

.wiki-pilot-member-detail .wiki-detail-main {
  border: 0;
  padding: 0;
}

.wiki-pilot-article-header h1 {
  font-size: 46px;
}

.wiki-pilot-article-header .wiki-article-type {
  border-left: 0;
  display: inline-flex;
  gap: 7px;
  padding-left: 0;
}

.wiki-pilot-article-header .wiki-article-type::before,
.wiki-pilot-section > h2::before,
.wiki-pilot-source-section > h2::before {
  background: var(--group-color, var(--member-page-accent));
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.wiki-pilot-read-panel {
  gap: 46px;
}

.wiki-pilot-section > h2,
.wiki-pilot-source-section > h2 {
  border-bottom-color: #dce2eb;
  font-size: 23px;
  gap: 10px;
  padding-bottom: 9px;
}

.wiki-pilot-section > h2::before,
.wiki-pilot-source-section > h2::before {
  height: 8px;
  width: 8px;
}

.wiki-pilot-section > h2 small,
.wiki-pilot-source-section > h2 small {
  color: #7b8696;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 750;
  margin-left: auto;
}

.wiki-pilot-section .lead {
  color: #243145;
  font-size: 16px;
  line-height: 1.95;
}

.wiki-pilot-section .lead a {
  color: var(--group-color, var(--member-page-accent));
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--group-color, var(--member-page-accent)) 40%, #dce2eb);
  text-underline-offset: 4px;
}

.wiki-pilot-key-dates {
  border-block: 1px solid #dfe4eb;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.wiki-pilot-key-date {
  min-height: 118px;
  padding: 17px 16px;
}

.wiki-pilot-key-date + .wiki-pilot-key-date {
  border-left: 1px solid #dfe4eb;
}

.wiki-pilot-key-date time {
  color: var(--group-color, var(--member-page-accent));
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 8px;
}

.wiki-pilot-key-date a,
.wiki-pilot-key-date strong {
  color: #263348;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.wiki-pilot-key-date a:hover {
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-key-date small {
  color: #7a8596;
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 5px;
}

.wiki-pilot-kind {
  color: #758094;
  font-size: 9px;
  font-weight: 850;
  margin-left: 6px;
}

.wiki-pilot-kind.major {
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-basic-grid {
  border-block: 1px solid #dce2ea;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.wiki-pilot-basic-item {
  min-height: 82px;
  padding: 15px 17px;
}

.wiki-pilot-basic-item:not(:nth-child(3n)) {
  border-right: 1px solid #dce2ea;
}

.wiki-pilot-basic-item:nth-child(-n + 3) {
  border-bottom: 1px solid #dce2ea;
}

.wiki-pilot-basic-item dt,
.wiki-pilot-basic-item dd {
  margin: 0;
}

.wiki-pilot-basic-item dt {
  color: #8993a2;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 7px;
}

.wiki-pilot-basic-item dd {
  color: #263348;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.wiki-pilot-section .wiki-timeline {
  border-left: 0;
  gap: 0;
  margin: 0;
  padding: 0;
}

.wiki-pilot-section .wiki-timeline-year {
  border-bottom: 1px solid #dfe4eb;
  display: grid;
  gap: 0;
  grid-template-columns: 70px minmax(0, 1fr);
}

.wiki-pilot-section .wiki-timeline-year:first-child {
  border-top: 1px solid #dfe4eb;
}

.wiki-pilot-section .wiki-timeline-year::before {
  display: none;
}

.wiki-pilot-section .wiki-timeline-year-label {
  color: var(--group-color, var(--member-page-accent));
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 750;
  padding: 16px 0;
}

.wiki-pilot-section .wiki-timeline ul {
  border-left: 1px solid #dfe4eb;
  gap: 0;
  padding: 5px 0 5px 20px;
}

.wiki-pilot-section .wiki-timeline li {
  border-bottom: 1px solid #edf0f4;
  color: #29364a;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 0;
}

.wiki-pilot-section .wiki-timeline li:last-child {
  border-bottom: 0;
}

.wiki-pilot-topic-list {
  border-top: 1px solid #dfe4eb;
  margin: 0;
}

.wiki-pilot-topic {
  border-bottom: 1px solid #e5e9ef;
  display: grid;
  gap: 18px;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 64px;
  padding: 14px 0;
}

.wiki-pilot-topic dt,
.wiki-pilot-topic dd {
  margin: 0;
}

.wiki-pilot-topic dt {
  color: #7a8596;
  font-size: 11px;
  font-weight: 850;
}

.wiki-pilot-topic dd {
  color: #2d3a4e;
  font-size: 14px;
  line-height: 1.75;
}

.wiki-pilot-tabs {
  max-width: 100%;
  min-width: 0;
}

.wiki-pilot-tab-list {
  border-bottom: 1px solid #dfe4eb;
  display: flex;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  width: 100%;
}

.wiki-pilot-tab-button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #748094;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 10px;
  white-space: nowrap;
}

.wiki-pilot-tab-button[aria-selected="true"] {
  border-bottom-color: var(--group-color, var(--member-page-accent));
  color: #202b3d;
}

.wiki-pilot-tab-panel[hidden] {
  display: none;
}

.wiki-pilot-data-groups,
.wiki-pilot-relation-groups {
  display: grid;
  gap: 18px;
  padding-top: 14px;
}

.wiki-pilot-data-group,
.wiki-pilot-relation-group {
  border-bottom: 1px solid #dfe4eb;
  min-width: 0;
}

.wiki-pilot-data-heading,
.wiki-pilot-relation-heading {
  align-items: baseline;
  background: #f7f8fa;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 10px 12px;
}

.wiki-pilot-data-heading strong,
.wiki-pilot-relation-heading strong {
  color: #28354a;
  font-size: 12px;
  font-weight: 850;
}

.wiki-pilot-data-heading span,
.wiki-pilot-relation-heading span {
  color: #748094;
  font-size: 10px;
  font-weight: 750;
}

.wiki-pilot-data-row {
  align-items: center;
  border-top: 1px solid #e8ebf0;
  display: grid;
  gap: 12px;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  min-height: 50px;
  padding: 8px 12px;
}

.wiki-pilot-data-row time {
  color: #7b8696;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
}

.wiki-pilot-data-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-pilot-data-main > a,
.wiki-pilot-data-main > span {
  color: #2a374b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wiki-pilot-data-main > a:hover {
  color: var(--group-color, var(--member-page-accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiki-pilot-data-main small {
  color: #8791a0;
  font-size: 10px;
  line-height: 1.45;
}

.wiki-pilot-data-main .wiki-pilot-release-ref {
  color: #778395;
  display: block;
}

.wiki-pilot-release-ref a {
  color: #59677a;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #c4ccd7;
  text-underline-offset: 2px;
}

.wiki-pilot-data-collapsed > summary {
  min-height: 44px;
  padding-block: 13px;
}

.wiki-pilot-role,
.wiki-pilot-relation-label {
  border-left: 2px solid #c6ccd6;
  color: #687487;
  font-size: 9px;
  font-weight: 850;
  padding-left: 7px;
  white-space: nowrap;
}

.wiki-pilot-role.major,
.wiki-pilot-relation-label.major {
  border-color: var(--group-color, var(--member-page-accent));
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-data-more summary,
.wiki-pilot-relation-more summary {
  color: #667286;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  list-style-position: inside;
  padding: 10px 12px;
}

.wiki-pilot-relation-row {
  align-items: center;
  border-top: 1px solid #e8ebf0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px 12px;
}

.wiki-pilot-relation-row > a {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-pilot-relation-row strong {
  color: #29364a;
  font-size: 12px;
  line-height: 1.45;
}

.wiki-pilot-relation-row small {
  color: #8791a0;
  font-size: 10px;
}

.wiki-pilot-relation-row > a:hover strong {
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-network-panel {
  padding-top: 14px;
}

.wiki-pilot-network-tools {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.wiki-pilot-network-filter {
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 4px;
  color: #6f7a8c;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  min-height: 36px;
  min-width: 56px;
  padding: 7px 10px;
}

.wiki-pilot-network-filter[aria-pressed="true"] {
  border-color: var(--group-color, var(--member-page-accent));
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-network {
  aspect-ratio: 16 / 9;
  border-block: 1px solid #e2e6ec;
  margin-top: 12px;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.wiki-pilot-network-center {
  align-items: center;
  background: #fff;
  border: 2px solid var(--group-color, var(--member-page-accent));
  border-radius: 50%;
  display: grid;
  gap: 4px;
  height: 116px;
  justify-items: center;
  left: 50%;
  padding: 9px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  z-index: 2;
}

.wiki-pilot-network-center img {
  border-radius: 50%;
  height: 65px;
  object-fit: cover;
  object-position: top;
  width: 65px;
}

.wiki-pilot-network-center strong {
  color: #273449;
  font-size: 10px;
  text-align: center;
}

.wiki-pilot-network-node {
  background: #fff;
  border: 1px solid #cfd6e0;
  border-left: 3px solid #aab3c0;
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 8px 9px;
  position: absolute;
  width: 154px;
  z-index: 2;
}

.wiki-pilot-network-node.key {
  border-left-color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-network-node strong {
  color: #29364a;
  font-size: 10px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-pilot-network-node small {
  color: #7d8796;
  font-size: 9px;
}

.wiki-pilot-network-node.pos-1 { left: 5%; top: 8%; }
.wiki-pilot-network-node.pos-2 { right: 5%; top: 8%; }
.wiki-pilot-network-node.pos-3 { left: 1%; top: 42%; }
.wiki-pilot-network-node.pos-4 { right: 1%; top: 42%; }
.wiki-pilot-network-node.pos-5 { bottom: 8%; left: 5%; }
.wiki-pilot-network-node.pos-6 { bottom: 8%; right: 5%; }

.wiki-pilot-network-line {
  background: #d8dde5;
  height: 1px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: left center;
  width: 34%;
  z-index: 1;
}

.wiki-pilot-network-line.pos-1 { transform: rotate(212deg); }
.wiki-pilot-network-line.pos-2 { transform: rotate(-32deg); }
.wiki-pilot-network-line.pos-3 { transform: rotate(180deg); }
.wiki-pilot-network-line.pos-4 { transform: rotate(0deg); }
.wiki-pilot-network-line.pos-5 { transform: rotate(148deg); }
.wiki-pilot-network-line.pos-6 { transform: rotate(32deg); }

.wiki-pilot-source-list {
  color: #566173;
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
  padding-left: 27px;
}

.wiki-pilot-source-list li {
  border-bottom: 1px solid #edf0f4;
  padding: 5px 0;
}

.wiki-pilot-source-list a {
  color: #344256;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #cbd2dc;
  text-underline-offset: 3px;
}

.wiki-pilot-source-list span {
  color: #7d8796;
}

.wiki-pilot-toc,
.wiki-pilot-profile {
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 22px);
}

.wiki-pilot-toc {
  border-top: 2px solid var(--group-color, var(--member-page-accent));
  padding-top: 11px;
}

.wiki-pilot-toc > strong {
  color: #435065;
  font-size: 11px;
  font-weight: 850;
}

.wiki-pilot-toc nav {
  display: grid;
  margin-top: 8px;
}

.wiki-pilot-toc a {
  border-left: 1px solid #dfe4eb;
  color: #677286;
  display: grid;
  font-size: 11px;
  gap: 7px;
  grid-template-columns: 20px minmax(0, 1fr);
  line-height: 1.35;
  padding: 7px 0 7px 9px;
}

.wiki-pilot-toc a:hover {
  border-left-color: var(--group-color, var(--member-page-accent));
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-toc a span {
  color: #a0a8b4;
  font-size: 9px;
}

.wiki-pilot-profile figure {
  background: #f2f4f7;
  border-bottom: 3px solid var(--group-color, var(--member-page-accent));
  margin: 0;
  overflow: hidden;
}

.wiki-pilot-profile img {
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.wiki-pilot-profile-name {
  border-bottom: 1px solid #e1e5eb;
  display: grid;
  gap: 3px;
  padding: 12px 2px;
}

.wiki-pilot-profile-name strong {
  color: #263348;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.wiki-pilot-profile-name span {
  color: #7a8596;
  font-size: 10px;
  line-height: 1.4;
}

.wiki-pilot-profile-facts {
  border-bottom: 1px solid #e1e5eb;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.wiki-pilot-profile-facts div {
  min-width: 0;
  padding: 9px 2px;
}

.wiki-pilot-profile-facts div:nth-child(odd) {
  border-right: 1px solid #edf0f4;
  padding-right: 8px;
}

.wiki-pilot-profile-facts div:nth-child(even) {
  padding-left: 8px;
}

.wiki-pilot-profile-facts dt,
.wiki-pilot-profile-facts dd {
  margin: 0;
}

.wiki-pilot-profile-facts dt {
  color: #8a94a3;
  font-size: 9px;
  font-weight: 850;
  margin-bottom: 4px;
}

.wiki-pilot-profile-facts dd {
  color: #334155;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wiki-member-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.wiki-member-profile-links a {
  color: #596579;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-color: #d1d7df;
  text-underline-offset: 3px;
}

.wiki-member-profile-links a:hover {
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-profile .wiki-member-profile-links {
  border-bottom: 1px solid #e1e5eb;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiki-pilot-official-link {
  color: #596579;
  display: block;
  font-size: 11px;
  font-weight: 750;
  padding: 10px 2px;
}

.wiki-pilot-official-link:hover {
  color: var(--group-color, var(--member-page-accent));
}

@media (max-width: 980px) {
  body.wiki-pilot-member .wrap {
    width: min(calc(100% - 36px), 820px);
  }

  .wiki-detail.wiki-pilot-member-detail {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .wiki-pilot-toc {
    display: none;
  }

  .wiki-pilot-key-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-pilot-key-date:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #dfe4eb;
  }

  .wiki-pilot-key-date:nth-child(4) {
    border-top: 1px solid #dfe4eb;
  }
}

@media (max-width: 760px) {
  body.wiki-pilot-member .wrap {
    width: min(calc(100% - 28px), 720px);
  }

  .wiki-detail.wiki-pilot-member-detail {
    display: block;
  }

  .wiki-pilot-profile {
    display: none;
  }

  .wiki-pilot-article-header h1 {
    font-size: 36px;
  }

  .wiki-pilot-read-panel {
    gap: 38px;
  }

  .wiki-pilot-key-dates {
    grid-template-columns: 1fr;
  }

  .wiki-pilot-key-date {
    min-height: 0;
    padding: 13px 4px;
  }

  .wiki-pilot-key-date + .wiki-pilot-key-date,
  .wiki-pilot-key-date:nth-child(3),
  .wiki-pilot-key-date:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #e5e9ef;
  }

  .wiki-pilot-basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-pilot-basic-item,
  .wiki-pilot-basic-item:nth-child(-n + 3) {
    border-bottom: 1px solid #dce2ea;
    min-height: 76px;
    padding: 13px 12px;
  }

  .wiki-pilot-basic-item:not(:nth-child(3n)) {
    border-right: 0;
  }

  .wiki-pilot-basic-item:nth-child(odd) {
    border-right: 1px solid #dce2ea;
  }

  .wiki-pilot-basic-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .wiki-pilot-topic {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .wiki-pilot-data-row {
    align-items: start;
    gap: 5px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .wiki-pilot-data-row time {
    grid-column: 1 / -1;
  }

  .wiki-pilot-network {
    aspect-ratio: auto;
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 12px 0;
  }

  .wiki-pilot-network-center,
  .wiki-pilot-network-line {
    display: none;
  }

  .wiki-pilot-network-node,
  .wiki-pilot-network-node.pos-1,
  .wiki-pilot-network-node.pos-2,
  .wiki-pilot-network-node.pos-3,
  .wiki-pilot-network-node.pos-4,
  .wiki-pilot-network-node.pos-5,
  .wiki-pilot-network-node.pos-6 {
    inset: auto;
    min-height: 50px;
    position: relative;
    width: 100%;
  }
}


* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis-weight: none;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

[inert] {
  pointer-events: none;
  user-select: none;
}

.site-main {
  padding-top: var(--nav-h);
}

body[data-page="wiki"] .page-hero.compact {
  display: none;
}

body[data-page="wiki"] .site-main > .section:first-of-type {
  padding-top: 48px;
}

.wrap {
  margin: 0 auto;
  max-width: 1040px;
  min-width: 0;
  width: min(calc(100% - 40px), 1040px);
}

body[data-page="home"] .wrap {
  max-width: 1480px;
  width: min(calc(100% - 48px), 1480px);
}

.top-nav {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  gap: 12px;
  height: var(--nav-h);
  left: 0;
  padding: 0 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 40;
}

.brand {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  min-width: 0;
}

.brand span {
  color: var(--pink);
}

.nav-menu-btn,
.drawer-close {
  align-items: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 999px;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.drawer-overlay {
  background: rgba(0, 0, 0, 0.38);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 60;
}

.drawer {
  background: #fff;
  bottom: 0;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  max-width: 86vw;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: 310px;
  z-index: 61;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

.drawer-head {
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
}

.drawer-links {
  display: grid;
  padding: 8px 0;
}

.drawer-link {
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  display: flex;
  gap: 12px;
  padding: 13px 20px;
}

.drawer-link.active {
  background: var(--pink-soft);
  color: var(--pink);
}

.drawer-icon {
  align-items: center;
  background: var(--pink-soft);
  border-radius: 11px;
  color: var(--pink);
  display: inline-flex;
  font-size: 13px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.hero {
  border-bottom: 1px solid #f1f5f9;
  padding: 74px 0 48px;
}

body[data-page="home"] .hero {
  padding: 46px 0 30px;
}

.hero-grid {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

body[data-page="home"] .hero-grid {
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
}

body[data-page="home"] .section.primary-schedule {
  padding-top: 28px;
}

.hero-module-panel {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  overflow: hidden;
}

.hero-module-card {
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  display: grid;
  gap: 4px;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 16px 18px;
  transition: background 150ms ease;
}

.hero-module-card:last-child {
  border-bottom: 0;
}

.hero-module-card:hover {
  background: #fafafa;
}

.hero-module-card span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
  padding: 4px 9px;
}

.hero-module-card strong,
.hero-module-card small {
  min-width: 0;
}

.hero-module-card strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.hero-module-card small {
  color: var(--muted);
  font-size: 13px;
  grid-column: 2;
  line-height: 1.5;
}

.hero-module-card.schedule span {
  background: #eff6ff;
  color: #2563eb;
}

.hero-module-card.news span {
  background: var(--pink-soft);
  color: var(--pink);
}

.hero-module-card.predict span {
  background: #fff7ed;
  color: #c2410c;
}

.section-label {
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 16px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.lead,
.page-hero p,
.module-card p,
.placeholder-card p,
.muted-line {
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hero-actions,
.toolbar,
.filter-row,
.toolbar-actions,
.week-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn,
.chip,
.segmented button {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
}

.btn {
  background: #fff;
  border: 1.5px solid var(--line);
  color: #374151;
}

.btn.primary,
.chip.active,
.segmented button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn.small {
  min-height: 34px;
  padding: 7px 12px;
}

.btn.danger {
  border-color: #fecaca;
  color: #b42318;
}

.summary-panel,
.module-card,
.schedule-card,
.placeholder-card,
.week-panel,
.category-group {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.summary-panel {
  padding: 20px;
}

.summary-panel ul {
  color: #4b5563;
  display: grid;
  gap: 10px;
  line-height: 1.65;
  margin: 0;
  padding-left: 18px;
}

.panel-title {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: 48px 0;
}

.section.soft,
.page-hero {
  background: var(--soft);
  border-bottom: 1px solid #f1f5f9;
  border-top: 1px solid #f1f5f9;
}

.section.primary-schedule {
  padding-top: 34px;
}

.page-hero {
  padding: 42px 0 34px;
}

.page-hero.compact h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 8px;
}

.schedule-hero-grid {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.schedule-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.section-head {
  margin-bottom: 18px;
}

.section-head.split,
.toolbar {
  align-items: center;
  justify-content: space-between;
}

.module-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 18px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.module-card:hover,
.schedule-card.linkable:hover {
  border-color: #f9a8d4;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.08);
  transform: translateY(-1px);
}

.module-card strong {
  color: var(--pink);
  font-size: 13px;
}

.schedule-list,
.day-group-list,
.schedule-event-list,
.week-body {
  display: grid;
  gap: 10px;
}

.home-dashboard {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 190px minmax(0, 1fr) 310px;
}

.home-taxonomy-panel,
.home-spotlight-panel,
.home-priority-panel,
.wiki-index-panel,
.wiki-detail-main,
.wiki-relation-panel,
.admin-panel {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

.home-taxonomy-panel,
.home-priority-panel {
  position: sticky;
  top: calc(var(--nav-h) + 14px);
}

.taxonomy-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.taxonomy-section > strong {
  color: #4b5563;
  font-size: 13px;
}

.taxonomy-list {
  display: grid;
  gap: 6px;
}

.taxonomy-button {
  background: #f8fafc;
  border: 1.5px solid transparent;
  border-radius: 12px;
  color: #4b5563;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 9px;
  text-align: left;
}

.taxonomy-button.active {
  background: var(--pink-soft);
  border-color: #f9a8d4;
  color: var(--pink);
}

.taxonomy-button.nogizaka.active {
  background: color-mix(in srgb, var(--nogizaka), white 82%);
  border-color: color-mix(in srgb, var(--nogizaka), white 45%);
  color: var(--nogizaka);
}

.taxonomy-button.sakurazaka.active {
  background: color-mix(in srgb, var(--sakurazaka-strong), white 82%);
  border-color: color-mix(in srgb, var(--sakurazaka-strong), white 45%);
  color: #a31d5e;
}

.taxonomy-button.hinatazaka.active {
  background: color-mix(in srgb, var(--hinatazaka), white 80%);
  border-color: color-mix(in srgb, var(--hinatazaka), white 45%);
  color: #056987;
}

.home-taxonomy-panel .btn {
  margin-top: 14px;
  width: 100%;
}

.home-spotlight-panel,
.home-priority-panel {
  display: grid;
  gap: 8px;
}

.news-card.featured {
  background: linear-gradient(180deg, #fff, #fffafd);
}

.news-card.featured .schedule-card-title {
  font-size: 13px;
}

.wiki-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wiki-chip {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-chip:hover {
  border-color: #f9a8d4;
  color: var(--pink);
}

.priority-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.priority-head .category-heading {
  flex: 1;
}

.priority-schedule-row {
  align-items: start;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--group-color, var(--sakamichi-orange));
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: 8px 62px minmax(0, 1fr) 30px;
  padding: 10px;
}

.home-priority-panel .priority-schedule-row .event-time,
.home-priority-panel .priority-schedule-row .event-title,
.home-priority-panel .priority-schedule-row .event-tag,
.news-related-list .priority-schedule-row .event-time,
.news-related-list .priority-schedule-row .event-title,
.news-related-list .priority-schedule-row .event-tag {
  font-size: 13px;
  line-height: 1.45;
}

.home-priority-panel .priority-schedule-row .event-title,
.home-priority-panel .priority-schedule-row .event-time,
.news-related-list .priority-schedule-row .event-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-priority-panel .priority-schedule-row .event-tags,
.news-related-list .priority-schedule-row .event-tags {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.home-priority-panel .priority-schedule-row .event-tag,
.news-related-list .priority-schedule-row .event-tag {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-schedule-row.group-nogizaka46,
.wiki-small-card.group-nogizaka46,
.wiki-detail.group-nogizaka46 {
  --group-color: var(--nogizaka);
}

.priority-schedule-row.group-sakurazaka46,
.wiki-small-card.group-sakurazaka46,
.wiki-detail.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
}

.wiki-small-card.group-keyakizaka46,
.wiki-detail.group-keyakizaka46 {
  --group-color: var(--keyakizaka);
}

.priority-schedule-row.group-hinatazaka46,
.wiki-small-card.group-hinatazaka46,
.wiki-detail.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
}

.save-event-button {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.save-event-button.saved {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #f59e0b;
}

.visitor-save-note {
  background: #f8fafc;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  padding: 10px;
}

.home-filter-popover-overlay {
  align-items: start;
  background: rgba(15, 23, 42, 0.28);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 54px) max(22px, calc((100vw - 1480px) / 2)) 22px 22px;
  position: fixed;
  z-index: 88;
}

.home-filter-popover {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  width: min(360px, 100%);
}

.home-filter-checks {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.home-filter-checks h3 {
  margin: 0;
}

.filter-checkbox {
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.filter-checkbox span {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.home-schedule-section {
  display: grid;
  gap: 10px;
}

.home-news-section {
  display: grid;
  gap: 10px;
}

.compact-note {
  font-size: 13px;
  margin: 0;
}

.schedule-card {
  border-left: 8px solid var(--group-color, var(--sakamichi-orange));
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

/* ===== 新闻快报（20260724-news-epg） ===== */

.nw-hero {
  padding: 44px 0 4px;
}

.nw-title {
  font-family: var(--font-disp);
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}

.nw-title small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.52em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.nw-meta {
  margin: 14px 0 0;
  color: var(--sub);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nw-band {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nw-band::-webkit-scrollbar {
  display: none;
}

.nw-fcard {
  flex: 0 0 232px;
  border: 1px solid rgba(24, 24, 24, 0.1);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nw-fcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.nw-fimg {
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #f2ede2, #e9e3d6);
}

.nw-fimg .schedule-image {
  border-radius: 0;
  height: 100%;
  width: 100%;
}

.nw-fimg .schedule-image img {
  aspect-ratio: auto;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
}

.nw-fbody {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}

.nw-fmeta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nw-fday {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #7a8db4;
}

.nw-fday.hot {
  color: var(--accent);
}

.nw-ft {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-fs {
  font-size: 11px;
  color: var(--sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gc);
  display: inline-block;
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .nw-hero {
    padding: 34px 0 2px;
  }

  .nw-title {
    font-size: 40px;
  }

  .nw-fcard {
    flex-basis: 204px;
  }
}

.news-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--group-color, var(--sakamichi-orange));
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.news-card.with-image {
  align-items: start;
  grid-template-columns: 64px minmax(0, 1fr);
}

.news-card.with-image .schedule-image {
  align-self: start;
  height: 64px;
  width: 64px;
}

.news-card.with-image .schedule-image img {
  aspect-ratio: auto;
  height: 64px;
  max-height: 64px;
  width: 64px;
}

.news-card.group-nogizaka46 {
  --group-color: var(--nogizaka);
}

.news-card.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
}

.news-card.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
}

.news-card-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.news-card .schedule-card-head {
  gap: 6px;
  min-width: 0;
}

.news-card .schedule-card-title {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card .group-pill,
.news-card .event-tag,
.news-card .schedule-date,
.news-card .wiki-chip,
.news-summary {
  font-size: 13px;
  line-height: 1.45;
  min-width: 0;
  white-space: nowrap;
}

.news-card .schedule-card-head > * {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-summary {
  color: var(--muted);
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-kind {
  background: #f8fafc;
  color: #475569;
}

.related-market-link {
  align-items: center;
  background: #eff6ff;
  border-radius: 12px;
  color: #2563eb;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  padding: 9px 10px;
}

.related-market-link span,
.related-market-link strong {
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.related-market-link span {
  color: #3b82f6;
  font-weight: 700;
}

.related-market-link strong {
  color: #1d4ed8;
  font-weight: 700;
  text-align: right;
}

.news-detail {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.news-detail-main,
.news-side-section {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 16px;
}

.news-detail-main {
  border-top: 5px solid var(--group-color, var(--sakamichi-orange));
  display: grid;
  gap: 12px;
}

.news-detail.group-nogizaka46 {
  --group-color: var(--nogizaka);
}

.news-detail.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
}

.news-detail.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
}

.news-detail-main h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.inline-wiki-link {
  border-bottom: 1.5px solid color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 45%, transparent);
  color: #1f4f7a;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 3px;
}

.inline-wiki-link:hover {
  color: #123b61;
  text-decoration: underline;
}

.news-original-title,
.news-detail-summary {
  margin: 0;
  overflow-wrap: anywhere;
}

.news-original-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.news-detail-summary {
  color: #374151;
  line-height: 1.75;
}

.news-detail-main .schedule-image {
  max-width: 420px;
}

.news-detail-side {
  align-self: start;
  display: grid;
  gap: 12px;
  position: sticky;
  top: calc(var(--nav-h) + 14px);
}

.news-side-section {
  display: grid;
  gap: 10px;
}

.news-side-section h2 {
  font-size: 16px;
  margin: 0;
}

.news-related-list {
  display: grid;
  gap: 8px;
}

.news-related-list .priority-schedule-row {
  grid-template-columns: 8px 66px minmax(0, 1fr);
  padding: 9px;
}

.news-related-list .event-title,
.news-wiki-row .wiki-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.schedule-card.with-image {
  align-items: start;
  grid-template-columns: 140px minmax(0, 1fr);
  padding: 12px;
}

.schedule-card-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.schedule-image {
  align-self: stretch;
  background: transparent;
  border-radius: 14px;
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
}

.schedule-image img {
  aspect-ratio: 4 / 3;
  background: transparent;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  width: 100%;
}

.schedule-image.group-logo-image {
  background: transparent;
}

.schedule-image.group-logo-image img {
  object-fit: contain;
  object-position: center;
  padding: 4px;
}

.schedule-image.member-photo-image img {
  object-fit: cover;
  object-position: center 18%;
}

.image-credit {
  color: var(--faint);
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 0 8px 8px;
}

.image-credit:hover {
  color: var(--pink);
}

.schedule-card.group-nogizaka46 {
  --group-color: var(--nogizaka);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--nogizaka), white 78%);
}

.schedule-event-row.group-nogizaka46 {
  --group-color: var(--nogizaka);
}

.schedule-card.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--sakurazaka-strong), white 78%);
}

.schedule-event-row.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
}

.schedule-card.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hinatazaka), white 78%);
}

.schedule-event-row.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
}

.schedule-card.news-derived {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), #fff 26%);
}

.schedule-card.linkable {
  cursor: pointer;
}

.schedule-card-head,
.schedule-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-date {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.schedule-time,
.schedule-category,
.link-count,
.source-pill,
.role-pill,
.group-pill {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.schedule-time.missing {
  background: #f3f4f6;
  color: var(--muted);
}

.group-pill.nogizaka,
.group-chip.nogizaka.active {
  background: color-mix(in srgb, var(--nogizaka), white 78%);
  color: var(--nogizaka);
}

.group-pill.sakurazaka,
.group-chip.sakurazaka.active {
  background: color-mix(in srgb, var(--sakurazaka-strong), white 78%);
  color: #a31d5e;
}

.group-pill.hinatazaka,
.group-chip.hinatazaka.active {
  background: color-mix(in srgb, var(--hinatazaka), white 76%);
  color: #056987;
}

.source-pill {
  background: #fff7ed;
  color: #c2410c;
}

.role-pill {
  background: #f0fdf4;
  color: #15803d;
}

.schedule-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.schedule-card-meta {
  color: var(--faint);
  font-size: 13px;
}

.schedule-event-list {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  gap: 0;
  overflow: hidden;
}

.schedule-event-row {
  align-items: start;
  border-bottom: 1px solid #f3f4f6;
  display: grid;
  column-gap: 12px;
  row-gap: 6px;
  grid-template-columns: 10px 104px minmax(0, 1fr) 44px;
  min-width: 0;
  padding: 10px 14px;
}

.schedule-event-row:last-child {
  border-bottom: 0;
}

.schedule-event-row.linkable {
  cursor: pointer;
}

.schedule-event-row.linkable:hover {
  background: #fcfcfd;
}

.schedule-event-row.news-derived {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), #fff 26%);
}

.event-dot {
  background: var(--group-color, var(--sakamichi-orange));
  border-radius: 999px;
  height: 7px;
  margin-top: 8px;
  width: 7px;
}

.event-time {
  color: #4b5563;
  font-feature-settings: "tnum";
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.5;
  min-width: 0;
  padding-top: 1px;
  white-space: nowrap;
}

.event-time.missing {
  color: var(--faint);
}

.event-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.event-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.event-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.event-tag {
  font-size: 11px;
  line-height: 1.4;
  padding: 2px 7px;
}

.event-meta {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.segmented {
  background: #f3f4f6;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  padding: 4px;
}

.segmented button,
.chip {
  background: transparent;
  border: 0;
  color: var(--muted);
}

.filter-row {
  margin-top: 12px;
}

.schedule-group-tabs {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding: 6px;
}

.schedule-group-tabs .chip {
  background: transparent;
  border: 1.5px solid transparent;
  flex: 0 0 auto;
}

.schedule-group-tabs .chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: inset 0 -2px 0 currentColor;
}

.schedule-group-tabs .group-chip.nogizaka.active {
  background: color-mix(in srgb, var(--nogizaka), white 78%);
  border-color: color-mix(in srgb, var(--nogizaka), white 42%);
  color: var(--nogizaka);
}

.schedule-group-tabs .group-chip.sakurazaka.active {
  background: color-mix(in srgb, var(--sakurazaka-strong), white 78%);
  border-color: color-mix(in srgb, var(--sakurazaka-strong), white 42%);
  color: #a31d5e;
}

.schedule-group-tabs .group-chip.hinatazaka.active {
  background: color-mix(in srgb, var(--hinatazaka), white 76%);
  border-color: color-mix(in srgb, var(--hinatazaka), white 42%);
  color: #056987;
}

.toolbar-actions {
  justify-content: flex-end;
}

.filter-summary {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
  min-width: 0;
  padding: 12px 14px;
}

.filter-summary-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.filter-summary-main strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.filter-summary-main span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.filter-summary-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.schedule-role-lists {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.schedule-role-list {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.schedule-role-list-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.schedule-role-list-head h2 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  margin: 2px 0 0;
}

.schedule-role-kicker {
  color: var(--faint);
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.schedule-role-metrics {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.schedule-role-metrics strong {
  color: var(--pink);
  font-size: 24px;
  line-height: 1;
}

.schedule-role-metrics span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.schedule-role-mini-list {
  display: grid;
  gap: 6px;
}

.schedule-role-mini-row {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 8px 86px minmax(0, 1fr);
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
}

.schedule-role-mini-row:disabled {
  cursor: default;
}

.schedule-role-mini-row time {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-role-mini-row strong {
  color: var(--ink);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-role-mini-row small {
  color: var(--muted);
  font-size: 11px;
  grid-column: 3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-drawer-overlay {
  align-items: stretch;
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  position: fixed;
  z-index: 90;
}

.filter-drawer {
  background: #fff;
  box-shadow: -12px 0 34px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  max-width: 92vw;
  width: 440px;
}

.filter-drawer-head,
.filter-drawer-foot {
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.filter-drawer-foot {
  border-bottom: 0;
  border-top: 1px solid #f3f4f6;
  gap: 10px;
}

.filter-drawer-foot .btn {
  flex: 1;
}

.filter-drawer-body {
  display: grid;
  flex: 1;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 0;
}

.filter-primary-list {
  align-content: start;
  background: #f8fafc;
  border-right: 1px solid #eef2f7;
  display: grid;
  overflow: auto;
  padding: 8px;
}

.filter-primary-list button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #4b5563;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 8px;
  text-align: left;
}

.filter-primary-list button.active {
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  color: var(--pink);
}

.filter-secondary-list {
  align-content: start;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 12px;
}

.filter-option {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: #374151;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
}

.filter-option.active {
  background: var(--pink-soft);
  border-color: #f9a8d4;
  color: var(--pink);
}

.filter-option span {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.filter-option small {
  color: var(--faint);
  flex: 0 0 auto;
  font-weight: 700;
}

.chip {
  background: #f3f4f6;
  border: 1.5px solid transparent;
}

.group-chip {
  border-color: #e5e7eb;
}

.toggle-line {
  align-items: center;
  color: #4b5563;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  margin: 14px 0;
}

.day-heading,
.category-heading {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin: 22px 0 8px;
}

.day-heading strong {
  color: var(--ink);
  font-size: 22px;
}

.day-badge {
  background: #eff6ff;
  border-radius: 999px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
}

.day-heading span,
.category-heading span {
  color: var(--faint);
  font-size: 13px;
}

.day-heading .day-badge {
  color: #2563eb;
}

.category-group,
.week-panel {
  margin-top: 12px;
  overflow: hidden;
}

.category-heading {
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  margin: 0;
  padding: 12px 16px;
}

.category-heading.compact {
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  margin: 0;
}

.category-group .day-group-list {
  padding: 12px;
}

.category-group .schedule-event-list {
  border: 0;
  border-radius: 0;
}

.week-panel {
  padding: 18px;
}

.week-nav {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.week-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 24px;
}

.schedule-empty-state {
  align-items: start;
  display: grid;
  gap: 8px;
}

.schedule-empty-state strong {
  color: var(--ink);
}

.schedule-empty-state span {
  font-size: 13px;
}

.placeholder-page {
  padding-top: var(--nav-h);
}

.placeholder-card {
  display: grid;
  gap: 10px;
  margin: 58px auto;
  max-width: 720px;
  padding: 24px;
  width: min(100% - 32px, 720px);
}

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

.modal-overlay {
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
  position: fixed;
  z-index: 80;
}

.modal-sheet {
  background: #fff;
  border-radius: 26px 26px 0 0;
  max-height: 78vh;
  max-width: 480px;
  overflow: auto;
  width: 100%;
}

.modal-head {
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.modal-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 20px;
}

.schedule-title-provenance {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px 10px;
  grid-template-columns: 64px minmax(0, 1fr);
  margin: 0 0 2px;
  padding: 0 0 12px;
}

.schedule-title-provenance dt,
.schedule-title-provenance dd {
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.schedule-title-provenance dt {
  color: var(--faint);
  font-weight: 700;
}

.schedule-title-provenance dd {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.calendar-subscription-group {
  display: grid;
  gap: 8px;
}

.calendar-subscription-group h2 {
  font-size: 15px;
  line-height: 1.4;
  margin: 8px 0 0;
}

.calendar-subscription-list {
  display: grid;
  gap: 8px;
}

.calendar-subscription-row {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.calendar-subscription-row .modal-link {
  min-width: 0;
}

.copy-url-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: #374151;
  cursor: pointer;
  font-weight: 700;
  min-height: 52px;
  padding: 0 12px;
  white-space: nowrap;
}

.copy-url-btn:hover {
  border-color: #bfdbfe;
  color: #2563eb;
}

.modal-image {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.modal-image img {
  display: block;
  max-height: 280px;
  object-fit: cover;
  width: 100%;
}

.modal-image a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  padding: 0 12px 12px;
}

.modal-link {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.modal-link span {
  color: var(--faint);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.close-btn {
  background: #f3f4f6;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 32px;
  width: 32px;
}

.member-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

/* ===== 成员名鉴（20260724-member-epg） ===== */

.mb-hero {
  padding: 44px 0 4px;
}

.mb-title {
  font-family: var(--font-disp);
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}

.mb-title small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.52em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.mb-meta {
  margin: 14px 0 0;
  color: var(--sub);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.mc-colors {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.mc-color {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.mc-color i {
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  display: inline-block;
  height: 12px;
  width: 12px;
}

.mc-color em {
  color: var(--sub);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.mc-events {
  border-top: 1px dashed rgba(24, 24, 24, 0.14);
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
}

.mc-events-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.mc-events-list {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr);
}

.mc-event {
  align-items: baseline;
  color: var(--ink);
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  text-decoration: none;
}

.mc-event:hover span {
  text-decoration: underline;
}

.mc-event b {
  color: var(--sub);
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mc-event span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .mb-hero {
    padding: 34px 0 2px;
  }

  .mb-title {
    font-size: 40px;
  }
}

.member-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.member-sort-control {
  flex: 0 0 auto;
}

.member-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.member-card.group-nogizaka46 {
  border-top: 4px solid var(--nogizaka);
}

.member-card.group-sakurazaka46 {
  border-top: 4px solid var(--sakurazaka);
}

.member-card.group-hinatazaka46 {
  border-top: 4px solid var(--hinatazaka);
}

.member-image {
  background: #f8fafc;
  display: block;
}

.member-image img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.member-card-body {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
}

.member-card h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.member-card h2 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.member-card h2 a:hover {
  text-decoration-color: currentColor;
}

.member-profile-link {
  color: #526174;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.member-card p.member-birthday {
  color: #4b5563;
  font-weight: 700;
}

.member-card small {
  color: var(--faint);
  font-weight: 600;
}

.member-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.member-status-badge {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  padding: 3px 8px;
  white-space: nowrap;
}

.member-status-badge.status-graduated {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #64748b;
}

.member-status-badge.status-unlisted,
.member-status-badge.status-unknown {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.wiki-view,
.admin-view {
  display: grid;
  gap: 18px;
}

.wiki-index-panel {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0) 260px),
    #fff;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.wiki-index-hero {
  align-items: end;
  border-bottom: 1.5px solid #e2e8f0;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 16px;
}

.wiki-index-hero h2 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  margin: 0 0 10px;
}

.wiki-index-hero p:not(.section-label) {
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
}

.wiki-index-metrics {
  border-left: 1.5px solid #cbd5e1;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(76px, auto));
  margin: 0;
  min-width: 284px;
  padding-left: 16px;
  text-align: left;
}

.wiki-index-metrics div,
.wiki-index-metrics a {
  display: grid;
  gap: 3px;
}

.wiki-index-metrics a {
  border-radius: 6px;
  text-decoration: none;
}

.wiki-index-metrics a:hover {
  background: #f8fafc;
}

.wiki-index-metrics dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  margin: 0;
}

.wiki-index-metrics dd {
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.wiki-index-toolbar {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.wiki-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wiki-quick-links a {
  background: #f8fafc;
  border: 1.5px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 12px;
}

.wiki-quick-links a:hover {
  background: #fff;
  border-color: #94a3b8;
}

.wiki-maintenance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.wiki-maintenance-links a,
.wiki-maintenance-links > span {
  align-items: center;
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  color: #334155;
  display: grid;
  gap: 2px;
  min-height: 42px;
  min-width: 88px;
  padding: 7px 10px;
}

.wiki-maintenance-links a:hover {
  border-color: #94a3b8;
}

.wiki-maintenance-links strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1;
}

.wiki-maintenance-links span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.wiki-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wiki-stat-card {
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 12px;
}

.wiki-stat-card:hover {
  border-color: #94a3b8;
}

.wiki-stat-card strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wiki-stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wiki-type-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.wiki-index-list {
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.wiki-index-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiki-index-row {
  align-items: center;
  border-left: 4px solid var(--group-color, var(--sakamichi-orange));
  border-top: 1px solid #e5eaf1;
  color: #334155;
  display: grid;
  gap: 10px;
  grid-template-columns: 86px minmax(0, 1fr) minmax(120px, 0.32fr) auto;
  min-height: 48px;
  min-width: 0;
  padding: 8px 12px;
}

.wiki-index-row:first-child {
  border-top: 0;
}

.wiki-index-list.compact .wiki-index-row:nth-child(2) {
  border-top: 0;
}

.wiki-index-row:hover {
  background: #f8fafc;
}

.wiki-index-row-type,
.wiki-index-row-meta,
.wiki-index-row-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.wiki-index-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-index-row-main strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-index-row-main small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-index-row-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-index-row-count {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.wiki-category-panel {
  gap: 16px;
}

.wiki-category-header {
  align-items: end;
  border-bottom: 1.5px solid #e2e8f0;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 16px;
}

.wiki-category-header .wiki-breadcrumb {
  grid-column: 1 / -1;
}

.wiki-category-header h2 {
  color: #0f172a;
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.wiki-category-header p:not(.section-label) {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 780px;
}

.wiki-category-filterbar {
  display: grid;
  gap: 10px;
}

.wiki-category-more {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 4px 0 0;
}

.wiki-category-more span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.wiki-special-panel {
  gap: 18px;
}

.wiki-special-section {
  display: grid;
  gap: 10px;
}

.wiki-special-inline-note {
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  padding: 8px 10px;
}

.wiki-special-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wiki-special-kpis div,
.wiki-special-kpis a {
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
  text-decoration: none;
}

.wiki-special-kpis strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.wiki-special-kpis span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.wiki-special-table-wrap {
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  overflow-x: auto;
}

.wiki-special-table {
  background: #fff;
  border-collapse: collapse;
  min-width: 420px;
  width: 100%;
}

.wiki-special-table th,
.wiki-special-table td {
  border-bottom: 1px solid #e5eaf1;
  color: #334155;
  font-size: 13px;
  padding: 8px 10px;
  text-align: left;
}

.wiki-special-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.wiki-special-table td small {
  color: #64748b;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
}

.wiki-recent-table td:nth-child(1) {
  white-space: nowrap;
}

.wiki-wanted-table td:nth-child(1) {
  min-width: 180px;
}

.wiki-wanted-table td:nth-child(3),
.wiki-wanted-table td:nth-child(4) {
  white-space: nowrap;
}

.wiki-alias-conflict-table {
  min-width: 720px;
}

.wiki-alias-conflict-table td:nth-child(1),
.wiki-alias-conflict-table td:nth-child(2) {
  white-space: nowrap;
}

.wiki-alias-conflict-table td:nth-child(3) {
  min-width: 260px;
}

.wiki-alias-conflict-table td:nth-child(4) {
  min-width: 220px;
}

.wiki-alias-candidate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 520px;
}

.wiki-alias-candidate-list a,
.wiki-alias-candidate-list span {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  max-width: 240px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-alias-candidate-list a:hover {
  border-color: #94a3b8;
}

.wiki-news-member-tag-table {
  min-width: 980px;
}

.wiki-news-member-tag-table td:nth-child(1) {
  min-width: 260px;
}

.wiki-news-member-tag-table td:nth-child(2) {
  min-width: 190px;
}

.wiki-news-member-tag-table td:nth-child(3),
.wiki-news-member-tag-table td:nth-child(5) {
  min-width: 150px;
  white-space: nowrap;
}

.wiki-news-member-tag-table td:nth-child(4) {
  min-width: 260px;
}

.wiki-news-member-evidence {
  color: #475569;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  max-width: 380px;
  white-space: normal;
}

.wiki-news-member-actions {
  min-width: 150px;
}

.wiki-unresolved-table td:nth-child(1) {
  min-width: 220px;
}

.wiki-unresolved-table td:nth-child(2),
.wiki-unresolved-table td:nth-child(3),
.wiki-unresolved-table td:nth-child(5),
.wiki-unresolved-table td:nth-child(6) {
  white-space: nowrap;
}

.wiki-unresolved-status {
  display: grid;
  gap: 2px;
}

.wiki-unresolved-status strong {
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.wiki-unresolved-actions {
  min-width: 170px;
}

.wiki-special-list {
  display: grid;
  gap: 8px;
}

.wiki-special-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiki-special-row {
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-left: 4px solid var(--sakamichi-orange);
  border-radius: 8px;
  color: #334155;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
}

a.wiki-special-row:hover {
  border-color: #94a3b8;
}

.wiki-special-row-type {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.wiki-special-row strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-special-row small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-heading.compact a {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.category-heading.compact a:hover {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiki-network-section {
  border-top: 1.5px solid #e2e8f0;
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
}

.wiki-network-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-width: 0;
}

.wiki-network-map {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    #f8fafc;
  background-size: 46px 46px;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  min-height: 390px;
  overflow: hidden;
  position: relative;
}

.wiki-network-edges {
  inset: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.wiki-network-edges line {
  stroke: rgba(71, 85, 105, 0.28);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.wiki-network-edges line[data-relation="regular_on"],
.wiki-network-edges line[data-relation="guest_on"],
.wiki-network-edges line[data-relation="appears_in"] {
  stroke: rgba(196, 85, 31, 0.42);
  stroke-width: 1.8;
}

.wiki-network-edges line[data-relation="part_of_release"] {
  stroke: rgba(79, 70, 229, 0.34);
}

.wiki-network-node {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-left: 5px solid var(--group-color, var(--sakamichi-orange));
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 2px;
  max-width: 178px;
  min-width: 118px;
  padding: 8px 10px;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.wiki-network-node:hover {
  border-color: #64748b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.wiki-network-node span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.wiki-network-node strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.wiki-network-node.type-group {
  background: #111827;
  border-color: #111827;
}

.wiki-network-node.type-group span,
.wiki-network-node.type-group strong {
  color: #fff;
}

.wiki-network-side {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.wiki-network-kpis {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wiki-network-kpis div,
.wiki-network-list {
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  min-width: 0;
  padding: 10px;
}

.wiki-network-kpis div {
  display: grid;
  gap: 2px;
}

.wiki-network-kpis strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
}

.wiki-network-kpis span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.wiki-network-list {
  display: grid;
  gap: 6px;
}

.wiki-network-list h3 {
  color: #334155;
  font-size: 13px;
  margin: 0 0 2px;
}

.wiki-network-list a,
.wiki-network-list-row {
  align-items: center;
  border-radius: 6px;
  color: #334155;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 30px;
  padding: 5px 6px;
}

.wiki-network-list a:hover {
  background: #f8fafc;
}

.wiki-network-list span {
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-network-list strong {
  color: #0f172a;
  font-size: 12px;
}

.wiki-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wiki-small-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-top: 4px solid var(--group-color, var(--sakamichi-orange));
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.wiki-small-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.wiki-small-card .wiki-type {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.wiki-small-card strong {
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wiki-small-card p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.55;
  margin: 0;
  overflow: hidden;
}

.wiki-detail {
  display: grid;
  align-items: start;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 286px;
}

.wiki-detail-main {
  background: #fff;
  border: 0;
  border-left: 4px solid var(--group-color, var(--sakamichi-orange));
  border-radius: 0;
  min-width: 0;
  padding: 6px 0 10px 24px;
}

.wiki-member-mobile-profile {
  display: none;
}

.wiki-article-header {
  align-items: start;
  border-bottom: 1px solid #d9e1ec;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 18px;
}

.wiki-article-header h1 {
  color: #0f172a;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 10px 0 0;
}

.wiki-breadcrumb {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.wiki-breadcrumb a {
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiki-breadcrumb span::before {
  color: #94a3b8;
  content: "/";
  margin-right: 6px;
}

.wiki-article-subtitle {
  color: #475569;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  margin: 10px 0 0;
}

.wiki-article-type {
  border-left: 3px solid var(--group-color, var(--sakamichi-orange));
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  padding: 3px 0 3px 9px;
  white-space: nowrap;
}

.wiki-page-tabs {
  align-items: center;
  border-bottom: 1px solid #e5ebf3;
  display: flex;
  gap: 4px;
  margin: 14px 0 16px;
  overflow-x: auto;
  padding-bottom: 0;
}

.wiki-page-tabs a {
  border: 1.5px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.wiki-page-tabs a.active {
  background: #fff;
  border-color: #dbe3ee;
  color: var(--ink);
  margin-bottom: -1.5px;
}

.wiki-article-digest {
  border-block: 1px solid #e5ebf3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  margin: 0 0 20px;
  padding: 10px 0;
}

.wiki-article-digest-item {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-article-digest dt,
.wiki-article-digest dd {
  margin: 0;
  min-width: 0;
  padding: 2px 12px;
}

.wiki-article-digest dt {
  color: #7a8697;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.wiki-article-digest dd {
  color: #182235;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-read-panel,
.wiki-edit-panel {
  display: grid;
  gap: 30px;
  min-width: 0;
}

.wiki-article-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  position: relative;
}

.wiki-article-section h2,
.wiki-source-section h2 {
  align-items: center;
  border-bottom: 1px solid #dbe3ee;
  color: #111827;
  display: flex;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 650;
  gap: 10px;
  line-height: 1.25;
  margin: 0;
  padding-bottom: 8px;
}

.wiki-article-section h2::before,
.wiki-source-section h2::before {
  background: var(--group-color, var(--sakamichi-orange));
  content: "";
  height: 18px;
  flex: 0 0 auto;
  width: 3px;
}

.wiki-article-section .lead {
  color: #1f2a3a;
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

.wiki-article-section p:not(.lead) {
  color: #263241;
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

.wiki-facts-grid {
  border-block: 1px solid #dbe3ee;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
}

.wiki-facts-grid dt,
.wiki-facts-grid dd {
  border-bottom: 1px solid #e5ebf3;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  min-width: 0;
  padding: 9px 10px;
}

.wiki-facts-grid dt {
  color: #5b6675;
  font-weight: 750;
}

.wiki-facts-grid dd {
  color: #263241;
}

.wiki-facts-grid dt:nth-last-child(2),
.wiki-facts-grid dd:last-child {
  border-bottom: 0;
}

.wiki-timeline {
  border-left: 2px solid color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 38%, #dbe3ee);
  display: grid;
  gap: 14px;
  margin-left: 4px;
  min-width: 0;
  padding-left: 18px;
}

.wiki-timeline-year {
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr);
  min-width: 0;
  position: relative;
}

.wiki-timeline-year::before {
  background: #fff;
  border: 2px solid var(--group-color, var(--sakamichi-orange));
  border-radius: 999px;
  content: "";
  height: 9px;
  left: -24px;
  position: absolute;
  top: 6px;
  width: 9px;
}

.wiki-timeline-year-label {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.wiki-timeline ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.wiki-timeline li {
  color: #263241;
  font-size: 15px;
  line-height: 1.75;
  min-width: 0;
}

.wiki-text-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.wiki-text-group {
  border-left: 2px solid #dbe3ee;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-left: 12px;
}

.wiki-text-group h3 {
  color: #273449;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.wiki-text-group ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-text-group li {
  color: #263241;
  font-size: 15px;
  line-height: 1.75;
  min-width: 0;
}

.wiki-content-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.wiki-content-group {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.wiki-content-group-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.wiki-content-group h3,
.wiki-article-relation-group h3 {
  color: #273449;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.wiki-content-group-heading span {
  color: #7a8697;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
}

.wiki-content-subgroup {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wiki-content-subgroup h4 {
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 2px 0 0;
}

.wiki-content-table-wrap {
  border-block: 1px solid #dbe3ee;
  overflow-x: auto;
  scrollbar-color: #b8c4d4 transparent;
  scrollbar-width: thin;
  width: 100%;
}

.wiki-content-table {
  background: #fff;
  border-collapse: collapse;
  color: #263241;
  font-size: 14px;
  line-height: 1.55;
  min-width: 720px;
  width: 100%;
}

.wiki-content-table-caption {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.wiki-content-table th,
.wiki-content-table td {
  border-bottom: 1px solid #e5ebf3;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.wiki-content-table th {
  background: #f8fafc;
  color: #5b6675;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.wiki-content-table tr:last-child td {
  border-bottom: 0;
}

.wiki-content-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.wiki-content-table tbody tr:hover td {
  background: #f5f8fc;
}

.wiki-content-table [data-column="category"] {
  color: #647184;
  width: 108px;
}

.wiki-content-table [data-column="title"] {
  color: #263241;
  font-weight: 650;
  width: 42%;
}

.wiki-content-table.grouped [data-column="title"] {
  color: #263241;
  width: 42%;
}

.wiki-content-table [data-column="date"] {
  color: #4f5c6d;
  white-space: nowrap;
  width: 132px;
}

.wiki-content-table [data-column="note"] {
  color: #647184;
}

.wiki-work-section {
  border-top: 2px solid color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 26%, #dbe3ee);
  padding-top: 2px;
}

.wiki-release-catalog {
  gap: 14px;
}

.wiki-release-catalog .wiki-pilot-tabs {
  margin-top: 2px;
}

.wiki-release-edition {
  display: grid;
  gap: 16px;
  padding-top: 14px;
}

.wiki-release-edition-intro {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 128px minmax(0, 1fr);
}

.wiki-release-edition-intro.no-cover {
  grid-template-columns: 1fr;
}

.wiki-release-cover {
  aspect-ratio: 1;
  background: #f1f4f8;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  margin: 0;
  overflow: hidden;
}

.wiki-release-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wiki-release-edition-meta,
.wiki-release-medium-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.wiki-release-edition-meta {
  border-bottom: 1px solid #dfe5ed;
  padding: 0 2px 10px;
}

.wiki-release-edition-intro .wiki-release-edition-meta {
  align-content: start;
  align-self: stretch;
  display: grid;
  gap: 5px;
  justify-content: normal;
  padding-top: 7px;
}

.wiki-release-edition-meta strong {
  color: #273449;
  font-size: 13px;
  font-weight: 850;
}

.wiki-release-edition-meta span,
.wiki-release-medium-heading span {
  color: #7b8798;
  font-size: 10px;
  font-weight: 750;
}

.wiki-release-medium {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.wiki-release-medium-heading h3 {
  color: #354258;
  font-size: 12px;
  font-weight: 850;
  margin: 0;
}

.wiki-release-table {
  min-width: 620px;
}

.wiki-release-table [data-column="position"] {
  color: #7b8798;
  text-align: center;
  width: 48px;
}

.wiki-release-table [data-column="title"] {
  width: auto;
}

.wiki-release-table [data-column="content-type"] {
  color: #5f6c7e;
  white-space: nowrap;
  width: 100px;
}

.wiki-release-table [data-column="inclusion"] {
  width: 94px;
}

.wiki-release-table [data-column="title"] > a,
.wiki-release-chapters a,
.wiki-release-origin a {
  color: #24334a;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #c3ccd8;
  text-underline-offset: 2px;
}

.wiki-release-origin {
  color: #7a8697;
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 2px;
}

.wiki-release-inclusion {
  border-left: 2px solid #c3cbd6;
  color: #667386;
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  padding-left: 6px;
  white-space: nowrap;
}

.wiki-release-inclusion.kind-first,
.wiki-release-inclusion.kind-remix {
  border-color: var(--group-color, var(--member-page-accent));
  color: var(--group-color, var(--member-page-accent));
}

.wiki-release-chapters {
  margin-top: 5px;
}

.wiki-release-chapters summary {
  color: #667386;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  min-height: 28px;
  padding: 5px 0;
  width: fit-content;
}

.wiki-release-chapters ol {
  color: #667386;
  display: grid;
  font-size: 10px;
  gap: 3px;
  line-height: 1.5;
  margin: 3px 0 4px;
  padding-left: 24px;
}

.wiki-work-table-wrap {
  background: #fff;
}

.wiki-work-table {
  min-width: 640px;
}

.wiki-work-table [data-column="field"],
.wiki-work-table [data-column="type"] {
  color: #647184;
  font-weight: 750;
  width: 120px;
}

.wiki-work-table [data-column="value"],
.wiki-work-table [data-column="title"] {
  color: #1f2a3a;
  font-weight: 650;
}

.wiki-work-table [data-column="relation"] {
  color: #475569;
  width: 156px;
}

.wiki-work-table [data-column="evidence"] {
  color: #647184;
  width: 240px;
}

.wiki-work-table a {
  color: #172033;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiki-work-related-table {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wiki-work-related-table h3 {
  color: #273449;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 2px 0 0;
}

.wiki-template-section {
  border-top: 2px solid color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 26%, #dbe3ee);
  padding-top: 2px;
}

.wiki-template-grid {
  display: grid;
  border-block: 1px solid #dbe3ee;
  gap: 0;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0;
}

.wiki-template-grid div {
  display: contents;
}

.wiki-template-grid dt {
  border-bottom: 1px solid #e5ebf3;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  margin: 0;
  padding: 9px 10px;
}

.wiki-template-grid dd {
  border-bottom: 1px solid #e5ebf3;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 9px 10px;
}

.wiki-template-grid div:nth-last-child(1) dt,
.wiki-template-grid div:nth-last-child(1) dd {
  border-bottom: 0;
}

.wiki-template-link-list {
  display: inline;
}

.wiki-template-link-list a {
  color: #1d4ed8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.wiki-relation-map-section {
  display: grid;
  gap: 12px;
}

.wiki-relation-map-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.wiki-relation-map-heading span {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

.wiki-relation-map-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
  min-width: 0;
}

.wiki-relation-map-grid.member-focused {
  grid-template-columns: minmax(0, 1fr);
}

.wiki-relation-map-grid.member-focused .wiki-relation-map-panel {
  background: #fff;
  border-inline: 0;
  border-radius: 0;
  padding-inline: 0;
}

.wiki-relation-map-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px;
}

.wiki-relation-map-panel h3,
.wiki-relation-map-featured h3 {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  margin: 0;
}

.wiki-relation-map-bars {
  display: grid;
  gap: 8px;
}

.wiki-relation-map-bar {
  display: grid;
  gap: 5px;
}

.wiki-relation-map-bar div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.wiki-relation-map-bar strong {
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-relation-map-bar span {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

.wiki-relation-map-bar i {
  background: #e2e8f0;
  border-radius: 999px;
  display: block;
  height: 6px;
  overflow: hidden;
  position: relative;
}

.wiki-relation-map-bar i::before {
  background: color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 68%, #64748b);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--bar-width, 12%);
}

.wiki-relation-map-featured {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wiki-relation-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.wiki-relation-map-link {
  align-items: start;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-left: 3px solid color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 66%, #94a3b8);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-height: 44px;
  min-width: min(100%, 156px);
  padding: 7px 9px;
}

.wiki-relation-map-link:hover {
  border-color: #94a3b8;
}

.wiki-relation-map-link span,
.wiki-relation-map-link small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.wiki-relation-map-link strong {
  color: #172033;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wiki-backlink-section {
  display: grid;
  gap: 12px;
}

.wiki-backlink-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wiki-backlink-summary a {
  align-items: center;
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  display: inline-grid;
  gap: 6px;
  grid-template-columns: auto auto;
  min-height: 34px;
  padding: 6px 10px;
}

.wiki-backlink-summary a:hover {
  border-color: #94a3b8;
}

.wiki-backlink-summary strong {
  color: #0f172a;
  font-size: 14px;
}

.wiki-backlink-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.wiki-backlink-groups {
  display: grid;
  gap: 14px;
}

.wiki-backlink-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wiki-backlink-group h3 {
  color: #334155;
  font-size: 15px;
  margin: 0;
}

.wiki-article-relations {
  gap: 12px;
}

.wiki-member-relation-hub {
  gap: 16px;
}

.wiki-member-relation-groups {
  border-top: 1px solid #dbe3ee;
  display: grid;
}

.wiki-member-relation-group {
  border-bottom: 1px solid #dbe3ee;
  display: grid;
  gap: 18px;
  grid-template-columns: 148px minmax(0, 1fr);
  min-width: 0;
  padding: 14px 0;
}

.wiki-member-relation-heading {
  align-content: start;
  display: grid;
  gap: 4px;
}

.wiki-member-relation-heading h3 {
  color: #263241;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.wiki-member-relation-heading span {
  color: #7a8697;
  font-size: 12px;
  font-weight: 800;
}

.wiki-member-relation-list {
  display: grid;
  min-width: 0;
}

.wiki-member-relation-body {
  display: grid;
  min-width: 0;
}

.wiki-member-relation-more {
  border-top: 1px solid #edf1f6;
}

.wiki-member-relation-more summary {
  color: #526174;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 40px;
  padding: 11px 2px;
}

.wiki-member-relation-more[open] summary {
  border-bottom: 1px solid #edf1f6;
}

.wiki-member-relation-link {
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  color: #1f2a3a;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 7px 2px;
}

.wiki-member-relation-link:last-child {
  border-bottom: 0;
}

.wiki-member-relation-link > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-member-relation-link strong {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wiki-member-relation-link small,
.wiki-member-relation-link > span {
  color: #718096;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.wiki-member-relation-link > span {
  white-space: nowrap;
}

.wiki-member-relation-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .wiki-member-mobile-profile {
    align-items: start;
    border-bottom: 1px solid #dbe3ee;
    display: grid;
    gap: 14px;
    grid-template-columns: 104px minmax(0, 1fr);
    margin-bottom: 20px;
    padding: 2px 0 18px;
  }

  .wiki-member-mobile-profile.no-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki-member-mobile-profile figure {
    background: #f1f5f9;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    margin: 0;
    overflow: hidden;
  }

  .wiki-member-mobile-profile img {
    aspect-ratio: 3 / 4;
    display: block;
    object-fit: cover;
    width: 100%;
  }

  .wiki-member-mobile-profile > div {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .wiki-member-mobile-profile dl {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    margin: 0;
  }

  .wiki-member-mobile-profile dt,
  .wiki-member-mobile-profile dd {
    border-bottom: 1px solid #edf1f6;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    padding: 5px 0;
  }

  .wiki-member-mobile-profile dt {
    color: #718096;
    font-weight: 800;
  }

  .wiki-member-mobile-profile dd {
    color: #263241;
    overflow-wrap: anywhere;
  }

  .wiki-member-mobile-profile a {
    color: #40556f;
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .wiki-member-mobile-profile .wiki-member-profile-links {
    gap: 0 12px;
  }

  .wiki-member-mobile-profile .wiki-member-profile-links a {
    font-size: 11px;
    padding: 2px 0;
  }

  .wiki-member-mobile-profile .wiki-image-credit.mobile {
    align-items: baseline;
    color: #7a8697;
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    font-weight: 650;
    grid-column: 1 / -1;
    line-height: 1.45;
    margin-top: -6px;
    overflow-wrap: anywhere;
  }

  .wiki-member-mobile-profile .wiki-image-credit.mobile a {
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
  }

  body[data-page="wiki"] .member-navigation-panel {
    display: none;
  }

  .wiki-member-relation-group {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki-member-relation-heading {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
  }
}

.wiki-article-relation-groups {
  display: grid;
  gap: 12px;
}

.wiki-article-relation-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wiki-article-relation-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.wiki-article-relation-heading span {
  color: #7a8697;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
}

.wiki-relation-table-wrap {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  overflow-x: auto;
  scrollbar-color: #b8c4d4 transparent;
  scrollbar-width: thin;
  width: 100%;
}

.wiki-relation-table {
  background: #fff;
  border-collapse: collapse;
  color: #263241;
  font-size: 13px;
  line-height: 1.5;
  min-width: 560px;
  width: 100%;
}

.wiki-relation-table.has-news {
  min-width: 760px;
}

.wiki-relation-table th,
.wiki-relation-table td {
  border-bottom: 1px solid #e5ebf3;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.wiki-relation-table th {
  background: #f6f8fb;
  color: #5b6675;
  font-size: 11px;
  font-weight: 800;
}

.wiki-relation-table tr:last-child td {
  border-bottom: 0;
}

.wiki-relation-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.wiki-relation-entry {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.wiki-relation-entry a {
  color: #1f2a3a;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 45%, #cbd5e1);
  text-underline-offset: 3px;
}

.wiki-relation-entry span {
  color: #7a8697;
  font-size: 11px;
  font-weight: 750;
}

.wiki-relation-table td:nth-child(2),
.wiki-relation-table td:nth-child(3) {
  color: #4f5c6d;
  white-space: nowrap;
}

.wiki-relation-news-cell {
  color: #647184;
  max-width: 360px;
}

.wiki-relation-news-links {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.wiki-relation-news-links a {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: #c5cfdd;
  text-underline-offset: 3px;
}

.wiki-relation-news-links a:hover {
  color: var(--group-color, var(--sakamichi-orange));
  text-decoration-color: currentColor;
}

.wiki-relation-evidence {
  display: grid;
  gap: 3px;
  max-width: 360px;
}

.wiki-relation-evidence strong {
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.wiki-relation-evidence span,
.wiki-relation-evidence small {
  color: #647184;
  font-size: 12px;
}

.wiki-relation-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 120px;
}

.wiki-relation-actions .btn.small {
  min-height: 32px;
  padding: 6px 10px;
}

.wiki-relation-actions span,
.wiki-relation-actions small {
  color: #7a8697;
  font-size: 11px;
  font-weight: 750;
}

.wiki-relation-action-status {
  flex-basis: 100%;
}

.wiki-source-list {
  display: grid;
  gap: 8px;
}

.wiki-source-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wiki-source-group h3 {
  color: #273449;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.wiki-source-link {
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.wiki-source-link strong {
  color: #1f2937;
  font-size: 13px;
}

.wiki-source-link span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.wiki-maintenance-status {
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  min-width: 0;
  padding: 14px;
}

.wiki-maintenance-status.needs-work {
  border-left-color: #d97706;
}

.wiki-maintenance-status.ok {
  border-left-color: #16a34a;
}

.wiki-maintenance-status-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.wiki-maintenance-status-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-maintenance-kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.wiki-maintenance-status-head strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.wiki-maintenance-status-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wiki-maintenance-status-metrics a {
  background: #f8fafc;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
}

.wiki-maintenance-status-metrics strong {
  color: #1f2937;
  font-size: 18px;
  line-height: 1;
}

.wiki-maintenance-status-metrics span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.wiki-maintenance-status-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.wiki-maintenance-status-list h2 {
  color: #334155;
  font-size: 13px;
  margin: 0;
}

.wiki-maintenance-status-row {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 8px 10px;
}

.wiki-maintenance-status-row.severity-high {
  background: #fff7f7;
}

.wiki-maintenance-status-row.severity-medium {
  background: #fffaf0;
}

.wiki-maintenance-status-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-maintenance-status-row strong {
  color: #1f2937;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-maintenance-status-row small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-maintenance-status-row .template-actions {
  justify-content: flex-end;
}

.wiki-archive-note {
  background: #f8fafc;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  padding: 10px 12px;
}

.wiki-edit-panel label {
  display: grid;
  gap: 6px;
}

.wiki-edit-panel label span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.wiki-edit-panel input,
.wiki-edit-panel select,
.wiki-edit-panel textarea {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.wiki-edit-panel textarea {
  line-height: 1.65;
  resize: vertical;
}

.wiki-gap-guidance {
  background: #f8fafc;
  border: 1.5px solid #dbe3ee;
  border-left: 4px solid var(--group-color, var(--sakamichi-orange));
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.wiki-gap-guidance.severity-high {
  border-left-color: #dc2626;
}

.wiki-gap-guidance.severity-medium {
  border-left-color: #d97706;
}

.wiki-gap-guidance-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.wiki-gap-guidance-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-gap-guidance-heading strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.wiki-gap-guidance-heading small,
.wiki-gap-guidance p,
.wiki-gap-guidance-list span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.wiki-gap-guidance p {
  margin: 0;
}

.wiki-gap-guidance-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-gap-guidance-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wiki-gap-guidance-list strong {
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.wiki-structured-edit-panel {
  border-block: 1px solid #dbe3ee;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
}

.wiki-structured-field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.wiki-structured-field-grid label {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 10px;
}

.wiki-structured-field-grid label.priority-field {
  border-color: color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 46%, #dbe3ee);
  box-shadow: inset 3px 0 0 var(--group-color, var(--sakamichi-orange));
}

.wiki-quick-edit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.wiki-quick-edit-card {
  background: #f8fafc;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.wiki-quick-edit-card h2 {
  color: #111827;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
}

.wiki-quick-edit-card small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.wiki-quick-existing-relations {
  border-top: 1px solid #e5ebf3;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
}

.wiki-quick-existing-relations h3 {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.wiki-quick-existing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.wiki-quick-existing-link {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-left: 3px solid color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 62%, #94a3b8);
  border-radius: 8px;
  display: grid;
  flex: 1 1 150px;
  gap: 1px;
  min-height: 44px;
  min-width: 0;
  padding: 7px 9px;
}

.wiki-quick-existing-link:hover {
  border-color: #94a3b8;
}

.wiki-quick-existing-link span,
.wiki-quick-existing-link small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.wiki-quick-existing-link strong {
  color: #172033;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-quick-relation-suggestion {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  min-width: 0;
  padding: 8px 9px;
}

.wiki-quick-relation-suggestion.active {
  background: color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 8%, #fff);
  border-color: color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 44%, #cbd5e1);
  color: #334155;
}

.wiki-quick-relation-suggestion.different {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.wiki-quick-candidate-panel {
  border-top: 1px solid #e5ebf3;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
}

.wiki-quick-candidate-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  min-width: 0;
  overflow: auto;
  padding-right: 2px;
}

.wiki-quick-candidate-item {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-left: 3px solid color-mix(in srgb, var(--group-color, var(--sakamichi-orange)) 58%, #94a3b8);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  min-width: 0;
  padding: 7px;
}

.wiki-quick-candidate-item:hover {
  border-color: #b8c4d4;
}

.wiki-quick-candidate-item.existing {
  border-left-color: #cbd5e1;
  opacity: .74;
}

.wiki-quick-candidate-main {
  background: transparent;
  border: 0;
  color: #263241;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 1px 2px;
  text-align: left;
}

.wiki-quick-candidate-main:hover {
  color: #111827;
}

.wiki-quick-candidate-main span,
.wiki-quick-candidate-main small {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.25;
}

.wiki-quick-candidate-main strong {
  color: #172033;
  font-size: 13px;
  font-weight: 880;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-quick-candidate-main em {
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-quick-candidate-save {
  align-self: center;
  min-height: 38px;
  white-space: nowrap;
}

.wiki-quick-candidate-state {
  align-self: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  padding: 8px 9px;
  white-space: nowrap;
}

.wiki-snippet-picker {
  border-top: 1px solid #e5ebf3;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
}

.wiki-snippet-picker h3 {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.wiki-snippet-list {
  display: grid;
  gap: 6px;
  max-height: 230px;
  min-width: 0;
  overflow: auto;
  padding-right: 2px;
}

.wiki-snippet-button {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #263241;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  text-align: left;
}

.wiki-snippet-button:hover {
  border-color: #b8c4d4;
  background: #fbfcfe;
}

.wiki-snippet-button span {
  color: #7a8697;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.wiki-snippet-button strong {
  color: #263241;
  display: -webkit-box;
  font-size: 12px;
  font-weight: 700;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  overflow: hidden;
}

.compact-actions {
  margin-top: 0;
}

.member-status-edit {
  align-items: end;
  border-top: 1px solid #e5ebf3;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 4px;
  padding-top: 8px;
}

.member-status-edit label {
  display: grid;
  gap: 4px;
}

.member-status-edit label span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.member-status-edit select {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #263241;
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
}

.member-status-edit small {
  color: #64748b;
  font-size: 11px;
}

.wiki-module-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiki-source-section {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
}

.wiki-source-section.empty {
  display: none;
}

.wiki-info-box {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
}

.wiki-info-box dt,
.wiki-info-box dd {
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  margin: 0;
  min-width: 0;
  padding: 10px 12px;
}

.wiki-info-box dt {
  color: var(--muted);
  font-weight: 700;
}

.wiki-info-box dd {
  background: #fff;
  overflow-wrap: anywhere;
}

.wiki-history-section {
  display: grid;
  gap: 10px;
}

.wiki-history-timeline {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-history-timeline li {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 138px minmax(0, 1fr);
  padding: 10px 12px;
}

.wiki-history-timeline time {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.wiki-history-timeline div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wiki-history-timeline strong {
  color: #1f2937;
  font-size: 13px;
}

.wiki-history-timeline span,
.wiki-history-timeline small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wiki-relation-panel {
  align-self: start;
  display: grid;
  gap: 12px;
  position: sticky;
  top: calc(var(--nav-h) + 14px);
}

.wiki-navigation-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

.wiki-side-section,
.wiki-relation-section {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.wiki-relation-section {
  min-width: 0;
}

.wiki-side-section h2,
.wiki-relation-section h2 {
  border-bottom: 1px solid #e5ebf3;
  color: #182235;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  margin: 0;
  padding-bottom: 7px;
}

.wiki-profile-card {
  background: #fbfcfe;
  border-top: 3px solid var(--group-color, var(--sakamichi-orange));
  gap: 11px;
}

.wiki-profile-image {
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  margin: 0;
  overflow: hidden;
}

.wiki-profile-image img {
  aspect-ratio: 3 / 4;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.wiki-profile-image figcaption {
  background: #fff;
  border-top: 1px solid #dbe3ee;
  color: #7a8697;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 6px 8px;
}

.wiki-image-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor, transparent 55%);
  text-underline-offset: 2px;
}

.wiki-image-credit a:hover {
  color: var(--group-color, var(--pink));
}

.wiki-profile-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wiki-profile-heading strong {
  color: #182235;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wiki-profile-heading span {
  color: #647184;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.wiki-profile-facts {
  border: 1px solid #e5ebf3;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
}

.wiki-profile-facts dt,
.wiki-profile-facts dd {
  border-bottom: 1px solid #e5ebf3;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  min-width: 0;
  padding: 7px 8px;
}

.wiki-profile-facts dt {
  background: #f8fafc;
  color: #647184;
  font-weight: 750;
}

.wiki-profile-facts dd {
  color: #263241;
  overflow-wrap: anywhere;
}

.wiki-profile-facts dt:nth-last-child(2),
.wiki-profile-facts dd:last-child {
  border-bottom: 0;
}

.wiki-parent-menu nav,
.wiki-page-toc nav {
  display: grid;
  gap: 2px;
}

.wiki-parent-menu a,
.wiki-page-toc a {
  border-left: 2px solid transparent;
  border-radius: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  padding: 6px 8px 6px 10px;
}

.wiki-parent-menu a:hover,
.wiki-page-toc a:hover {
  background: #f8fafc;
  border-left-color: var(--group-color, var(--sakamichi-orange));
}

.wiki-page-toc a.subitem {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 4px;
  padding-left: 20px;
  padding-top: 4px;
}

.wiki-page-toc a.subitem::before {
  color: #94a3b8;
  content: "└";
  margin-right: 6px;
}

.wiki-parent-menu a:hover,
.wiki-page-toc a:hover {
  background: #f1f5f9;
}

.wiki-relation-link {
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.wiki-relation-link span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.wiki-relation-link strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-workbench-panel {
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 16px;
}

.admin-workbench-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-mission-card {
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 12px;
  text-align: left;
}

.admin-mission-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.admin-mission-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.admin-mission-card span {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.admin-mission-card strong {
  font-size: 30px;
  line-height: 1;
}

.admin-mission-card small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-mission-card.tone-primary {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.admin-mission-card.tone-accent {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.admin-mission-card.tone-warn {
  background: #fff7ed;
  border-color: #fed7aa;
}

.admin-workbench-priority {
  display: grid;
  gap: 8px;
}

.admin-priority-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.admin-priority-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-priority-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-priority-row small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.template-builder {
  display: grid;
  gap: 12px;
}

.admin-curation-group,
.admin-relation-list {
  display: grid;
  gap: 10px;
}

.admin-check-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-check-item {
  align-items: start;
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 10px;
}

.admin-check-item span,
.admin-relation-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-check-item strong,
.admin-relation-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-check-item small,
.admin-relation-row small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-relation-row small.admin-review-evidence {
  color: #64748b;
  font-weight: 600;
  line-height: 1.45;
}

.admin-review-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.admin-review-context a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  min-height: 24px;
  padding: 0 9px;
}

.admin-review-context a:hover {
  border-color: #94a3b8;
  color: var(--ink);
}

.admin-relation-row {
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.template-builder label {
  display: grid;
  gap: 6px;
}

.template-builder label span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.template-builder input,
.template-builder select,
.template-builder textarea {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 40px;
  padding: 9px 11px;
  width: 100%;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-actions.inline {
  align-items: center;
}

.alias-conflict-actions {
  max-width: 100%;
}

.alias-conflict-actions .btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wanted-page-actions {
  max-width: 100%;
}

.wanted-page-target-input {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 1 1 220px;
  font: inherit;
  font-size: 13px;
  min-height: 34px;
  min-width: 180px;
  padding: 7px 12px;
}

.template-preview {
  background: #111827;
  border-radius: 16px;
  color: #f9fafb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 18px;
  }

  .modal-sheet {
    border-radius: 26px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 28px), 1040px);
  }

  .hero {
    padding: 56px 0 36px;
  }

  .hero-grid,
  .module-grid,
  .schedule-hero-grid,
  .home-dashboard,
  .wiki-detail,
  .news-detail {
    grid-template-columns: 1fr;
  }

  .home-taxonomy-panel,
  .home-priority-panel,
  .wiki-relation-panel,
  .news-detail-side {
    position: static;
  }

  .home-taxonomy-panel {
    order: 3;
  }

  .home-spotlight-panel {
    order: 1;
  }

  .home-priority-panel {
    order: 2;
  }

  .wiki-stat-grid,
  .wiki-card-grid,
  .admin-check-grid,
  .wiki-quick-edit-grid,
  .wiki-structured-field-grid,
  .wiki-module-grid,
  .admin-relation-row {
    grid-template-columns: 1fr;
  }

  .wiki-detail {
    gap: 18px;
  }

  .wiki-detail-main {
    border-left-width: 3px;
    padding: 4px 0 8px 14px;
  }

  .wiki-article-header {
    grid-template-columns: 1fr;
  }

  .wiki-article-header h1 {
    font-size: 34px;
  }

  .wiki-article-type {
    justify-self: start;
  }

  .wiki-article-digest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-template-grid {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .wiki-template-section {
    padding-top: 2px;
  }

  .wiki-release-edition-intro {
    gap: 10px;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .wiki-release-edition-intro.no-cover {
    grid-template-columns: 1fr;
  }

  .wiki-release-edition-intro .wiki-release-edition-meta {
    padding-top: 4px;
  }

  .wiki-history-timeline li {
    grid-template-columns: 1fr;
  }

  .wiki-index-panel {
    padding: 14px;
  }

  .wiki-index-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .wiki-index-metrics {
    border-left: 0;
    border-top: 1.5px solid #cbd5e1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    padding-left: 0;
    padding-top: 12px;
    width: 100%;
  }

  .wiki-index-toolbar {
    grid-template-columns: 1fr;
  }

  .wiki-maintenance-links {
    justify-content: start;
  }

  .wiki-stat-grid,
  .wiki-index-list.compact {
    grid-template-columns: 1fr;
  }

  .wiki-index-list.compact .wiki-index-row:nth-child(2) {
    border-top: 1px solid #e5eaf1;
  }

  .wiki-index-row {
    align-items: start;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 9px 10px;
  }

  .wiki-index-row-type {
    grid-column: 1;
    grid-row: 1;
  }

  .wiki-index-row-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .wiki-index-row-meta {
    grid-column: 1;
    grid-row: 3;
  }

  .wiki-index-row-count {
    grid-column: 2;
    grid-row: 1;
  }

  .wiki-category-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .wiki-special-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-maintenance-status-head {
    align-items: stretch;
    flex-direction: column;
  }

  .wiki-maintenance-status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-maintenance-status-row {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wiki-maintenance-status-row .btn,
  .wiki-maintenance-status-row .template-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    width: 100%;
  }

  .wiki-maintenance-status-row .template-actions .btn {
    flex: 1 1 0;
  }

  .wiki-special-list.two-column {
    grid-template-columns: 1fr;
  }

  .wiki-network-layout {
    grid-template-columns: 1fr;
  }

  .wiki-network-map {
    min-height: 520px;
  }

  .wiki-network-node {
    max-width: 132px;
    min-width: 92px;
    padding: 7px 8px;
  }

  .wiki-network-node strong {
    font-size: 12px;
  }

  .wiki-network-side {
    grid-template-columns: 1fr;
  }

  .home-filter-popover-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .home-filter-popover {
    border-radius: 24px 24px 0 0;
    width: 100%;
  }

  .hero-module-card {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 14px;
  }

  .section-head.split,
  .toolbar,
  .week-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .schedule-hero-actions {
    justify-content: stretch;
  }

  .segmented,
  .segmented button {
    width: 100%;
  }

  .segmented {
    display: flex;
    overflow: hidden;
  }

  .segmented button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .schedule-group-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
  }

  .schedule-group-tabs .chip {
    white-space: nowrap;
  }

  .member-toolbar,
  .member-toolbar .filter-row,
  .member-sort-control {
    align-items: stretch;
    width: 100%;
  }

  .member-toolbar {
    flex-direction: column;
  }

  .member-sort-control button {
    flex: 1 1 0;
  }

  .toolbar-actions,
  .filter-summary,
  .filter-summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-role-lists {
    grid-template-columns: 1fr;
  }

  .schedule-role-list {
    padding: 12px;
  }

  .schedule-role-list-head {
    align-items: center;
  }

  .schedule-role-mini-row {
    grid-template-columns: 8px 74px minmax(0, 1fr);
  }

  .schedule-card {
    padding: 13px 14px;
  }

  .schedule-card.with-image {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 10px;
  }

  .schedule-event-row {
    column-gap: 8px;
    row-gap: 6px;
    grid-template-columns: 8px 82px minmax(0, 1fr) 44px;
    padding: 10px;
  }

  .event-title {
    font-size: 13px;
  }

  .event-time {
    font-size: 13px;
  }

  .news-card.with-image {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .news-card.with-image .schedule-image {
    height: 60px;
    width: 60px;
  }

  .news-card.with-image .schedule-image img {
    height: 60px;
    max-height: 60px;
    width: 60px;
  }

  .news-card {
    border-left-width: 5px;
    padding: 9px;
  }

  .news-card .schedule-card-head {
    align-items: center;
    flex-wrap: nowrap;
  }

  .news-card .schedule-card-title,
  .news-card.featured .schedule-card-title {
    font-size: 13px;
  }

  .news-summary {
    display: none;
  }

  .news-card .wiki-chip-row,
  .news-card .related-market-link {
    margin-top: 2px;
  }

  .schedule-image {
    border-radius: 12px;
  }

  .image-credit {
    font-size: 10px;
    padding: 0 6px 6px;
  }

  .filter-drawer {
    width: 100%;
  }

  .filter-drawer-body {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .calendar-subscription-row {
    grid-template-columns: 1fr;
  }

  .copy-url-btn {
    min-height: 42px;
  }

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

@media (min-width: 761px) and (max-width: 980px) {
  .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* News Terminal redesign: compact, neutral, scan-first homepage lists. */
.home-dashboard {
  gap: 14px;
  grid-template-columns: 220px minmax(0, 1fr) 360px;
}

.home-taxonomy-panel,
.home-spotlight-panel,
.home-priority-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: none;
  padding: 12px;
}

.home-spotlight-panel,
.home-priority-panel {
  gap: 6px;
}

.taxonomy-section {
  gap: 6px;
  margin-top: 12px;
}

.taxonomy-list {
  gap: 4px;
}

.taxonomy-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #475569;
  font-size: 13px;
  min-height: 30px;
  padding: 5px 8px;
}

.taxonomy-button:hover {
  background: #f8fafc;
}

.taxonomy-button.active,
.taxonomy-button.nogizaka.active,
.taxonomy-button.sakurazaka.active,
.taxonomy-button.hinatazaka.active {
  background: #f8fafc;
  border-color: #dbe3ee;
  color: #111827;
}

.home-quick-links {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.home-quick-links a {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  justify-content: center;
  min-height: 30px;
  min-width: 0;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-links a:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.home-spotlight-panel .category-heading,
.home-priority-panel .category-heading,
.home-taxonomy-panel .category-heading {
  min-height: 26px;
}

.home-subsection-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card {
  --news-thumb-size: 56px;
  align-items: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 0;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: var(--news-thumb-size) minmax(0, 1fr);
  min-height: 80px;
  padding: 9px;
}

.news-card.with-image {
  grid-template-columns: var(--news-thumb-size) minmax(0, 1fr);
}

.news-card.featured {
  background: #fff;
}

.news-card:hover {
  background: #fcfcfd;
  border-color: #cbd5e1;
}

.news-thumbnail,
.news-card.with-image .news-thumbnail {
  align-self: start;
  background: transparent;
  border-radius: 10px;
  height: var(--news-thumb-size);
  margin: 0;
  overflow: hidden;
  width: var(--news-thumb-size);
}

.news-thumbnail img,
.news-card.with-image .news-thumbnail img {
  aspect-ratio: auto;
  background: transparent;
  display: block;
  height: var(--news-thumb-size);
  max-height: var(--news-thumb-size);
  object-fit: contain;
  object-position: center;
  padding: 3px;
  width: var(--news-thumb-size);
}

.news-card-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.news-meta {
  align-items: center;
  color: #64748b;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.news-group-dot {
  background: var(--group-color, #94a3b8);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

.news-group-dot.nogizaka {
  background: var(--nogizaka);
}

.news-group-dot.sakurazaka {
  background: var(--sakurazaka-strong);
}

.news-group-dot.hinatazaka {
  background: var(--hinatazaka);
}

.news-card .group-pill,
.news-card .event-tag,
.news-card .schedule-date {
  background: transparent;
  border-radius: 0;
  color: #64748b;
  flex: 0 1 auto;
  font-size: 12px;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card .schedule-card-title,
.news-card.featured .schedule-card-title {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-summary {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card .wiki-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.news-card .wiki-chip,
.news-wiki-row .wiki-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 2px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-schedule-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 0;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 8px 64px minmax(0, 1fr) 44px;
  min-height: 58px;
  padding: 8px;
}

.priority-schedule-row:hover {
  background: #fcfcfd;
  border-color: #cbd5e1;
}

.home-priority-panel .priority-schedule-row .event-dot {
  align-self: center;
  height: 6px;
  margin: 0;
  width: 6px;
}

.home-priority-panel .priority-schedule-row .event-time {
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
}

.home-priority-panel .priority-schedule-row .event-main {
  gap: 3px;
  min-width: 0;
}

.home-priority-panel .priority-schedule-row .event-title {
  color: #111827;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-priority-panel .priority-schedule-row .event-tags {
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.home-priority-panel .priority-schedule-row .event-tag {
  background: transparent;
  border-radius: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-event-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  position: relative;
  width: 44px;
}

.save-event-button::before {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  content: "";
  height: 28px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
}

.save-event-button.saved {
  color: #475569;
}

.save-event-button.saved::before {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.visitor-save-note {
  border-radius: 10px;
  font-size: 12px;
  margin-top: 2px;
  padding: 9px;
}

@media (min-width: 1280px) and (max-width: 1440px) {
  .home-dashboard {
    grid-template-columns: 210px minmax(0, 1fr) 340px;
  }
}

@media (min-width: 1680px) {
  body[data-page="home"] .wrap {
    max-width: 1560px;
    width: min(calc(100% - 48px), 1560px);
  }

  .home-dashboard {
    gap: 16px;
    grid-template-columns: 240px minmax(0, 1fr) 380px;
  }

  .home-filter-popover-overlay {
    padding-right: max(22px, calc((100vw - 1560px) / 2));
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .wrap {
    width: min(calc(100% - 28px), 1040px);
  }

  body[data-page="home"] .hero {
    padding: 34px 0 24px;
  }

  body[data-page="home"] .hero-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .home-dashboard {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .news-card {
    --news-thumb-size: 48px;
    grid-template-columns: var(--news-thumb-size) minmax(0, 1fr);
    min-height: 66px;
    padding: 8px;
  }

  .news-card.with-image {
    grid-template-columns: var(--news-thumb-size) minmax(0, 1fr);
  }

  .news-summary {
    display: none;
  }

  .news-card .schedule-card-title,
  .news-card.featured .schedule-card-title {
    font-size: 13px;
  }

  .priority-schedule-row {
    grid-template-columns: 8px 60px minmax(0, 1fr) 44px;
    min-height: 56px;
  }
}

.text-clamp-1,
.table-cell-clamp {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-clamp-2,
.text-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.text-clamp-2 {
  -webkit-line-clamp: 2;
}

.text-clamp-3 {
  -webkit-line-clamp: 3;
}

.news-index-panel,
.priority-view-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.news-filter-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.news-filter-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 52px minmax(0, 1fr);
}

.news-filter-row strong {
  color: #475569;
  font-size: 13px;
  line-height: 30px;
}

.news-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.news-filter-buttons .taxonomy-button {
  flex: 0 0 auto;
  min-height: 38px;
  min-width: 56px;
  text-align: center;
  white-space: nowrap;
}

.news-index-list {
  display: grid;
  gap: 8px;
}

.market-chip {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  max-width: max-content;
  min-width: 0;
  overflow: hidden;
  padding: 2px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-market-panel {
  display: grid;
  gap: 8px;
}

.related-market-panel h2 {
  font-size: 16px;
  margin: 0;
}

.related-market-list {
  display: grid;
  gap: 8px;
}

.related-market-link span,
.related-market-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-timeline-list {
  display: grid;
  gap: 8px;
}

.news-timeline-row {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
}

.news-timeline-row span,
.news-timeline-row strong,
.news-timeline-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-timeline-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.news-timeline-row strong {
  color: #111827;
  font-size: 13px;
}

.news-timeline-row small {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.schedule-preset-bar {
  align-items: center;
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.schedule-preset-bar.empty {
  display: none;
}

.schedule-preset-bar span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.preset-chip {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  max-width: 160px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-view-panel .schedule-event-list {
  margin-bottom: 8px;
}

.wiki-search-box {
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.wiki-search-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.wiki-search-box span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.wiki-search-box input {
  border: 0;
  color: #111827;
  font: inherit;
  font-size: 18px;
  min-height: 40px;
  outline: 0;
  padding: 0;
  width: 100%;
}

.wiki-small-card strong,
.wiki-small-card p,
.wiki-relation-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiki-small-card strong,
.wiki-relation-link strong {
  white-space: nowrap;
}

.wiki-small-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-detail-main h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.admin-review-panel {
  border-top: 1px solid #eef2f7;
  padding-top: 14px;
}

.admin-review-groups {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}

.admin-review-filter-panel {
  margin: 0 0 14px;
}

.admin-review-progress {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.wiki-stat-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wiki-stat-grid.compact .wiki-stat-card {
  padding: 10px 12px;
}

.wiki-stat-grid.compact .wiki-stat-card strong {
  font-size: 20px;
}

.admin-review-recent {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.admin-review-recent strong {
  color: var(--ink);
  font-size: 12px;
}

.admin-review-recent small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.admin-review-filter-buttons {
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-review-filter-buttons .taxonomy-button {
  flex: 0 0 auto;
  min-height: 34px;
}

.admin-review-search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.admin-review-search span,
.admin-review-search small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-review-search input {
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  min-height: 34px;
  outline: 0;
  width: 100%;
}

.admin-review-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-review-bulk-actions {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
}

.admin-review-bulk-actions span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  margin-right: auto;
}

.admin-review-toggle {
  justify-self: end;
  min-height: 28px;
  padding-inline: 10px;
}

@media (max-width: 760px) {
  body[data-page="admin"] .wrap {
    max-width: calc(100vw - 32px);
    overflow: hidden;
    width: calc(100vw - 32px);
  }

  .news-filter-row,
  .admin-review-groups {
    grid-template-columns: 1fr;
  }

  .admin-view,
  .admin-panel,
  .admin-workbench-grid,
  .admin-workbench-priority,
  .admin-review-filter-panel,
  .admin-review-progress,
  .admin-review-search,
  .admin-review-groups,
  .admin-review-group,
  .admin-relation-list,
  .admin-relation-row {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .admin-relation-row {
    align-items: stretch;
  }

  .admin-workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-mission-card {
    min-height: 118px;
  }

  .admin-priority-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-relation-row > .template-actions {
    justify-content: stretch;
  }

  .alias-conflict-actions .btn {
    flex: 1 1 128px;
  }

  .wanted-page-target-input {
    flex-basis: 100%;
    min-width: 0;
    width: 100%;
  }

  .wiki-stat-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-review-search {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-review-bulk-actions {
    align-items: stretch;
  }

  .admin-review-bulk-actions span {
    flex: 1 0 100%;
  }

  .admin-review-bulk-actions .btn {
    flex: 1 1 160px;
  }

  .news-filter-row strong {
    line-height: 1.4;
  }

  .news-filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .news-filter-buttons .taxonomy-button {
    flex: 0 0 auto;
    min-height: 38px;
    min-width: 56px;
  }

  .market-chip {
    max-width: 100%;
  }

  .wiki-timeline {
    margin-left: 2px;
    padding-left: 12px;
  }

  .wiki-timeline-year {
    gap: 6px;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .wiki-timeline li {
    font-size: 14px;
    line-height: 1.7;
  }

  .wiki-text-group li {
    font-size: 14px;
    line-height: 1.7;
  }

  .wiki-facts-grid {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .wiki-facts-grid dt,
  .wiki-facts-grid dd {
    font-size: 13px;
    padding: 8px 9px;
  }

  .wiki-content-table {
    font-size: 13px;
    min-width: 620px;
  }

  .wiki-work-section {
    padding: 10px;
  }

  .wiki-work-table {
    min-width: 560px;
  }

  .wiki-relation-map-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .wiki-relation-map-grid {
    grid-template-columns: 1fr;
  }

  .wiki-relation-map-link {
    flex: 1 1 148px;
  }

  .wiki-content-table th,
  .wiki-content-table td {
    padding: 8px 9px;
  }

  .wiki-content-table.grouped td:first-child {
    width: 38%;
  }

  .wiki-relation-table {
    font-size: 12px;
    min-width: 560px;
  }
}
/* 2026-07 editorial index refresh */
:root {
  --ink: #20242c;
  --muted: #626975;
  --faint: #8a929e;
  --line: #dfe3e8;
  --soft: #f5f6f8;
  --radius: 8px;
}

body {
  background: #f5f6f8;
  -webkit-font-smoothing: antialiased;
}

.top-nav {
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.985);
  border-bottom-color: #dfe3e8;
  box-shadow: 0 1px 0 rgba(31, 41, 55, 0.025);
}

.brand {
  color: #20242c;
  font-family: var(--font-serif);
  font-weight: 700;
}

.primary-nav {
  align-items: stretch;
  align-self: stretch;
  display: flex;
  gap: 4px;
}

.primary-nav a {
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #626975;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  min-width: 54px;
  padding: 0 10px;
  position: relative;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.primary-nav a.active {
  border-bottom-color: var(--pink);
  color: #20242c;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.site-search {
  position: relative;
  width: clamp(132px, 16vw, 232px);
}

.site-search-field {
  align-items: center;
  background: #f7f8fa;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  display: flex;
  gap: 7px;
  height: 36px;
  min-width: 0;
  padding: 0 10px;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.site-search.open .site-search-field,
.site-search-field:focus-within {
  background: #fff;
  border-color: #aeb6c2;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.site-search-symbol {
  color: #717985;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.site-search-input {
  background: transparent;
  border: 0;
  color: #20242c;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.site-search-input::placeholder {
  color: #7c8490;
  opacity: 1;
}

.site-search-popover {
  background: #fff;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.16);
  display: none;
  max-height: min(68vh, 560px);
  overflow: auto;
  position: fixed;
  right: 18px;
  top: calc(var(--nav-h) + 8px);
  width: min(440px, calc(100vw - 36px));
  z-index: 58;
}

.site-search.open .site-search-popover {
  display: block;
}

.site-search-heading {
  border-bottom: 1px solid #edf0f4;
  color: #737b87;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 14px 8px;
}

.site-search-list {
  display: grid;
}

.site-search-result {
  --group-color: #98a1ad;
  align-items: start;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 10px;
  grid-template-columns: 8px minmax(0, 1fr);
  min-height: 56px;
  padding: 10px 14px;
}

.site-search-result:last-child {
  border-bottom: 0;
}

.site-search-result.group-nogizaka46 {
  --group-color: var(--nogizaka);
}

.site-search-result.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
}

.site-search-result.group-keyakizaka46 {
  --group-color: var(--keyakizaka);
}

.site-search-result.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
}

.site-search-result-dot {
  background: var(--group-color);
  border-radius: 50%;
  height: 7px;
  margin-top: 7px;
  width: 7px;
}

.site-search-result-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.site-search-result-copy strong {
  color: #252a32;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-search-result-copy small {
  color: #79818d;
  font-size: 11px;
  line-height: 1.35;
}

.site-search-status {
  color: #717985;
  font-size: 13px;
  padding: 22px 16px;
  text-align: center;
}

@media (hover: hover) {
  .primary-nav a:hover {
    background: #f7f8fa;
    color: #20242c;
  }

  .site-search-result:hover {
    background: #f8f9fb;
  }
}

.nav-menu-btn,
.drawer-close {
  background: #f3f4f6;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  height: 36px;
  transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
  width: 36px;
}

.nav-menu-btn:active,
.drawer-close:active {
  transform: scale(0.96);
}

.panel,
.hero-module-panel,
.home-taxonomy-panel,
.home-spotlight-panel,
.home-priority-panel,
.schedule-role-list,
.member-card,
.news-card,
.schedule-card {
  border-radius: 8px;
}

.home-taxonomy-panel,
.home-spotlight-panel,
.home-priority-panel,
.schedule-role-list {
  border-width: 1px;
}

.schedule-role-mini-list {
  border-bottom: 1px solid #e7eaee;
}

.schedule-role-mini-row {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #e7eaee;
  padding-inline: 8px;
  transition: background-color 140ms ease;
}

@media (hover: hover) {
  .schedule-role-mini-row:not(:disabled):hover {
    background: #f7f8fa;
  }
}

body[data-page="wiki"] {
  background: #fff;
}

body[data-page="wiki"] .site-main > .section:first-of-type {
  padding-top: 28px;
}

body[data-page="wiki"] .wrap {
  max-width: 1120px;
  width: min(calc(100% - 48px), 1120px);
}

.wiki-index-panel {
  background: #fff;
  border: 0;
  border-radius: 0;
  gap: 24px;
  padding: 0;
}

.wiki-index-hero {
  align-items: center;
  border-bottom: 1px solid #dfe3e8;
  gap: 30px;
  padding: 10px 0 24px;
}

.wiki-index-hero h2 {
  color: #181c23;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 650;
  line-height: 1.08;
  margin-bottom: 12px;
}

.wiki-index-hero p:not(.section-label) {
  color: #59616d;
  line-height: 1.8;
}

.wiki-index-metrics {
  border-left: 0;
  gap: 0;
  min-width: 312px;
  padding-left: 0;
}

.wiki-index-metrics > div,
.wiki-index-metrics > a {
  min-width: 96px;
  padding: 3px 16px;
}

.wiki-index-metrics > div + div,
.wiki-index-metrics > a + a,
.wiki-index-metrics > div + a,
.wiki-index-metrics > a + div {
  border-left: 1px solid #dfe3e8;
}

.wiki-index-metrics dt {
  color: #747c88;
  font-size: 11px;
}

.wiki-index-metrics dd {
  color: #20242c;
  font-size: 24px;
}

.wiki-search-box {
  border: 1px solid #bfc6cf;
  border-radius: 6px;
  gap: 5px;
  padding: 10px 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.wiki-search-box input {
  font-size: 17px;
  min-height: 38px;
}

.wiki-index-toolbar {
  border-bottom: 1px solid #dfe3e8;
  gap: 14px;
  grid-template-columns: 1fr;
  padding-bottom: 20px;
}

.wiki-quick-links {
  gap: 6px;
}

.wiki-quick-links a {
  background: #f4f5f7;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #3f4752;
  min-height: 38px;
  padding: 9px 13px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

@media (hover: hover) {
  .wiki-quick-links a:hover {
    background: #fff;
    border-color: #bfc6cf;
    color: #20242c;
  }
}

.wiki-maintenance-links {
  border-top: 1px solid #e7eaee;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-content: stretch;
}

.wiki-maintenance-links a,
.wiki-maintenance-links > span {
  align-content: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e7eaee;
  border-radius: 0;
  border-right: 1px solid #e7eaee;
  min-height: 58px;
  min-width: 0;
  padding: 9px 12px;
  transition: background-color 140ms ease;
}

.wiki-maintenance-links a:nth-child(6n + 1),
.wiki-maintenance-links > span:nth-child(6n + 1) {
  border-left: 1px solid #e7eaee;
}

@media (hover: hover) {
  .wiki-maintenance-links a:hover {
    background: #f7f8fa;
    border-color: #e7eaee;
  }
}

.wiki-maintenance-links strong {
  color: #20242c;
  font-size: 17px;
}

.wiki-maintenance-links span {
  color: #737b87;
  font-size: 11px;
}

.wiki-stat-grid {
  border-block: 1px solid #dfe3e8;
  gap: 0;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.wiki-stat-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid #e7eaee;
  min-height: 66px;
  padding: 11px 12px;
  transition: background-color 140ms ease;
}

.wiki-stat-card:last-child {
  border-right: 0;
}

@media (hover: hover) {
  .wiki-stat-card:hover {
    background: #f7f8fa;
    border-color: #e7eaee;
  }
}

.wiki-stat-card strong {
  color: #20242c;
  font-size: 20px;
}

.wiki-type-section {
  gap: 8px;
  margin-top: 0;
}

.category-heading.compact {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dfe3e8;
  border-radius: 0;
  padding: 8px 0;
}

.wiki-index-list,
.wiki-index-list.compact {
  border: 0;
  border-bottom: 1px solid #dfe3e8;
  border-radius: 0;
}

.wiki-index-row {
  border-left: 0;
  min-height: 52px;
  padding-left: 28px;
  position: relative;
  transition: background-color 140ms ease;
}

.wiki-index-row::before {
  background: var(--group-color, var(--sakamichi-orange));
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 10px;
  position: absolute;
  top: 22px;
  width: 7px;
}

.wiki-index-row-count {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
}

.wiki-network-section {
  border-top-color: #dfe3e8;
  margin-top: 2px;
  padding-top: 22px;
}

.wiki-network-map,
.wiki-network-kpis div,
.wiki-network-list,
.wiki-side-section,
.wiki-relation-section {
  border-radius: 6px;
}

.wiki-network-node {
  border-left-width: 1px;
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.08);
}

.wiki-detail-main {
  border-left: 0;
  padding-left: 0;
}

.wiki-article-type {
  align-items: center;
  border-left: 0;
  display: inline-flex;
  gap: 7px;
  padding-left: 0;
}

.wiki-article-type::before,
.wiki-article-section h2::before,
.wiki-source-section h2::before {
  background: var(--group-color, var(--sakamichi-orange));
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}

.wiki-article-section h2::before,
.wiki-source-section h2::before {
  height: 8px;
  width: 8px;
}

.wiki-page-tabs a {
  border-radius: 6px 6px 0 0;
}

.wiki-profile-card {
  border-top-width: 1px;
}

@media (min-width: 761px) {
  .top-nav {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  }

  .nav-actions {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .top-nav {
    gap: 8px;
    padding-inline: 12px;
  }

  .primary-nav {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .site-search {
    width: clamp(112px, 38vw, 150px);
  }

  .site-search-input {
    font-size: 16px;
  }

  .site-search-popover {
    left: 12px;
    max-height: calc(100dvh - var(--nav-h) - 20px);
    right: 12px;
    width: auto;
  }

  body[data-page="wiki"] .site-main > .section:first-of-type {
    padding-top: 20px;
  }

  body[data-page="wiki"] .wrap {
    width: min(calc(100% - 28px), 1120px);
  }

  .wiki-index-panel {
    gap: 18px;
    padding: 0;
  }

  .wiki-index-hero {
    gap: 16px;
    padding: 4px 0 18px;
  }

  .wiki-index-hero h2 {
    font-size: 36px;
  }

  .wiki-index-metrics {
    border-top: 1px solid #dfe3e8;
    min-width: 0;
    padding-top: 12px;
  }

  .wiki-index-metrics > div,
  .wiki-index-metrics > a {
    min-width: 0;
    padding-inline: 10px;
  }

  .wiki-index-metrics > div:first-child,
  .wiki-index-metrics > a:first-child {
    padding-left: 0;
  }

  .wiki-maintenance-links {
    grid-template-columns: repeat(11, minmax(122px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .wiki-maintenance-links a:nth-child(6n + 1),
  .wiki-maintenance-links > span:nth-child(6n + 1) {
    border-left: 0;
  }

  .wiki-maintenance-links a,
  .wiki-maintenance-links > span {
    min-width: 122px;
    scroll-snap-align: start;
  }

  .wiki-maintenance-links a:first-child,
  .wiki-maintenance-links > span:first-child {
    border-left: 1px solid #e7eaee;
  }

  .wiki-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-stat-card {
    border-bottom: 1px solid #e7eaee;
  }

  .wiki-stat-card:nth-child(2n) {
    border-right: 0;
  }

  .wiki-stat-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .wiki-index-row {
    padding-left: 24px;
  }

  .wiki-index-row::before {
    left: 7px;
    top: 18px;
  }

  .wiki-detail-main {
    padding-left: 0;
  }
}

/* Keep the member editorial contract authoritative after shared Wiki rules. */
.wiki-pilot-article-header h1 {
  font-size: 46px;
}

@media (max-width: 760px) {
  .wiki-pilot-article-header h1 {
    font-size: 36px;
  }
}

/* Compact member penlight directory. Source Han Serif is intentionally scoped here. */
@font-face {
  font-display: swap;
  font-family: "SNYQ Source Han Serif";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/source-han-serif-cn-color-regular.woff2?v=20260716-support-colors-fonts") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SNYQ Source Han Serif";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/source-han-serif-cn-color-bold.woff2?v=20260716-support-colors-fonts") format("woff2");
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body[data-page="color"] {
  --support-serif: "SNYQ Source Han Serif", "Source Han Serif CN", "Source Han Serif SC", "Source Han Serif JP", "Noto Serif CJK SC", "Noto Serif CJK JP", "Songti SC", "STSong", serif;
  background: #fbfbfa;
  color: #252a31;
}

body[data-page="color"] .support-color-page input,
body[data-page="color"] .support-color-page select,
body[data-page="color"] .support-color-page button {
  font-family: inherit;
}

.support-color-page {
  font-family: var(--support-serif);
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.support-color-directory {
  margin: 0 auto;
  max-width: 1080px;
  padding: 38px 24px 72px;
}

.support-color-loading {
  color: #6d737d;
  margin: 0 auto;
  max-width: 1080px;
  padding: 72px 24px;
}

.support-color-loading.error {
  color: #9f3045;
}

.support-color-directory-header {
  align-items: end;
  border-bottom: 1px solid #d9dde2;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 22px;
}

.support-color-directory-header .section-label {
  color: #7a8088;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.support-color-directory-header h1 {
  color: #20242a;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.support-color-metrics {
  display: flex;
  margin: 0;
}

.support-color-metrics > div {
  --group-color: #7f8791;
  border-left: 1px solid #d9dde2;
  min-width: 104px;
  padding: 2px 16px;
}

.support-color-metrics > div.group-nogizaka46 {
  --group-color: var(--nogizaka);
}

.support-color-metrics > div.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
}

.support-color-metrics > div.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
}

.support-color-metrics dt,
.support-color-metrics dd {
  margin: 0;
}

.support-color-metrics dt {
  color: #737983;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.support-color-metrics dd {
  color: var(--group-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 3px;
}

.support-color-toolbar {
  align-items: center;
  background: rgba(251, 251, 250, 0.97);
  border-bottom: 1px solid #d9dde2;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  padding: 14px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 18;
}

.support-color-search {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd4da;
  display: flex;
  gap: 8px;
  height: 40px;
  min-width: 0;
  padding: 0 11px;
}

.support-color-search:focus-within,
.support-color-select:focus-within {
  border-color: #7f8894;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.07);
}

.support-color-search > span {
  color: #707783;
  font-family: inherit;
  font-size: 17px;
}

.support-color-search input {
  background: transparent;
  border: 0;
  color: #252a31;
  font-size: 14px;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.support-color-search input::placeholder {
  color: #858b94;
  opacity: 1;
}

.support-color-group-tabs {
  border: 1px solid #cfd4da;
  display: flex;
  height: 40px;
}

.support-color-group-tabs button {
  background: #fff;
  border: 0;
  border-right: 1px solid #d9dde2;
  color: #5f6670;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  min-width: 72px;
  padding: 0 12px;
}

.support-color-group-tabs button:last-child {
  border-right: 0;
}

.support-color-group-tabs button.active {
  background: #272c33;
  color: #fff;
}

.support-color-select {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd4da;
  display: flex;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
}

.support-color-select > span {
  color: #747b85;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}

.support-color-select select {
  background: transparent;
  border: 0;
  color: #30353c;
  font-size: 12px;
  outline: 0;
  width: 142px;
}

.support-color-result-bar {
  align-items: baseline;
  color: #747b85;
  display: flex;
  font-family: inherit;
  font-size: 11px;
  gap: 8px;
  padding: 15px 0 8px;
}

.support-color-result-bar strong {
  color: #343941;
  font-size: 12px;
}

.support-color-results {
  display: grid;
  gap: 30px;
}

.support-color-empty {
  border-block: 1px solid #d9dde2;
  color: #777e88;
  padding: 34px 4px;
}

.support-color-group {
  --group-color: #7f8791;
}

.support-color-group.group-nogizaka46 {
  --group-color: var(--nogizaka);
}

.support-color-group.group-sakurazaka46 {
  --group-color: var(--sakurazaka-strong);
}

.support-color-group.group-hinatazaka46 {
  --group-color: var(--hinatazaka);
}

.support-color-group-heading {
  align-items: baseline;
  border-bottom: 2px solid var(--group-color);
  display: flex;
  justify-content: space-between;
  padding: 0 2px 8px;
}

.support-color-group-heading h2 {
  color: #252a31;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.support-color-group-heading span {
  color: #7a8088;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.support-color-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.support-color-table th {
  border-bottom: 1px solid #dfe3e7;
  color: #7a818b;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  height: 35px;
  padding: 0 12px;
  text-align: left;
}

.support-color-table th:first-child {
  width: 44%;
}

.support-color-table th:last-child {
  width: 52px;
}

.support-color-row td {
  border-bottom: 1px solid #e5e8eb;
  height: 62px;
  padding: 7px 12px;
  vertical-align: middle;
}

.support-color-row td:first-child {
  border-left: 3px solid color-mix(in srgb, var(--group-color), transparent 34%);
  padding-left: 9px;
}

.support-color-member {
  align-items: center;
  color: #272c33;
  display: flex;
  gap: 11px;
  min-width: 0;
  width: fit-content;
}

.support-color-member img {
  background: #eff1f3;
  flex: 0 0 38px;
  height: 46px;
  object-fit: cover;
  object-position: top;
  width: 38px;
}

.support-color-member-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.support-color-member-copy strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.support-color-member-copy small {
  color: #7d848d;
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
}

.support-color-pair {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.support-color-token {
  align-items: center;
  color: #373c44;
  cursor: help;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  letter-spacing: 0;
  min-width: 78px;
  position: relative;
  white-space: nowrap;
}

button.support-color-token {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: inherit;
  margin: 0;
  min-height: 36px;
  padding: 5px 0;
  text-align: left;
}

button.support-color-token:focus-visible {
  outline: 2px solid var(--group-color, #4f5965);
  outline-offset: 3px;
}

.support-color-name {
  border-bottom: 1px dotted #b8bec5;
}

.support-color-dot {
  background: var(--support-color);
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  flex: 0 0 19px;
  height: 19px;
  width: 19px;
}

.support-color-token.light .support-color-dot {
  border-color: #b8bec5;
  box-shadow: none;
}

.support-color-pair.compact {
  gap: 4px 8px;
}

.support-color-token.compact {
  font-size: 10px;
  gap: 4px;
  min-width: 0;
}

.support-color-tooltip {
  background: #fff;
  border: 1px solid #cfd4da;
  bottom: calc(100% + 7px);
  box-shadow: 0 8px 22px rgba(30, 35, 42, 0.14);
  color: #2d333b;
  display: grid;
  font-family: inherit;
  gap: 3px;
  left: 50%;
  letter-spacing: 0;
  line-height: 1.4;
  max-width: min(248px, calc(100vw - 24px));
  min-width: 196px;
  opacity: 0;
  padding: 9px 11px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  visibility: hidden;
  white-space: normal;
  z-index: 95;
}

.support-color-tooltip-model {
  color: #737b85;
  font-size: 9px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.support-color-tooltip-operation {
  color: #242a31;
  font-size: 12px;
  font-weight: 750;
}

.support-color-tooltip-note {
  color: #626a74;
  font-size: 9px;
  font-weight: 600;
}

.support-color-token.tip-open > .support-color-tooltip,
.support-color-token:focus-visible > .support-color-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.support-color-token.compact .support-color-dot {
  flex-basis: 11px;
  height: 11px;
  width: 11px;
}

.support-color-source {
  text-align: right;
}

.support-color-source a {
  align-items: center;
  color: #69717c;
  display: inline-flex;
  font-family: inherit;
  font-size: 16px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.wiki-member-support-colors {
  color: inherit;
  display: inline-flex;
}

.wiki-member-support-colors:hover .support-color-token {
  color: var(--group-color, var(--member-page-accent));
}

.wiki-pilot-basic-item .wiki-member-support-colors .support-color-token {
  font-size: 12px;
  min-width: 0;
}

.wiki-pilot-basic-item .wiki-member-support-colors .support-color-dot {
  flex-basis: 15px;
  height: 15px;
  width: 15px;
}

.support-color-display-note {
  border-top: 1px solid #d9dde2;
  color: #777e87;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.6;
  margin: 34px 0 0;
  padding-top: 12px;
}

@media (hover: hover) {
  .support-color-token:hover > .support-color-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
  }

  .support-color-group-tabs button:hover:not(.active) {
    background: #f1f2f3;
    color: #252a31;
  }

  .support-color-row:hover td {
    background: #f7f7f6;
  }

  .support-color-member:hover,
  .support-color-source a:hover {
    color: var(--group-color);
  }
}

@media (max-width: 760px) {
  .support-color-directory {
    padding: 24px 14px 56px;
  }

  .support-color-loading {
    padding: 48px 14px;
  }

  .support-color-directory-header {
    align-items: stretch;
    display: grid;
    gap: 18px;
    padding-bottom: 17px;
  }

  .support-color-directory-header h1 {
    font-size: 31px;
  }

  .support-color-metrics > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
  }

  .support-color-metrics > div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .support-color-metrics dd {
    font-size: 20px;
  }

  .support-color-toolbar {
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) 132px;
    padding: 11px 0 13px;
    position: static;
  }

  .support-color-search input,
  .support-color-select select {
    font-size: 16px;
  }

  .support-color-search {
    grid-column: 1;
    grid-row: 1;
  }

  .support-color-select {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .support-color-select > span {
    display: none;
  }

  .support-color-select select {
    min-width: 0;
    width: 100%;
  }

  .support-color-group-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .support-color-group-tabs::-webkit-scrollbar {
    display: none;
  }

  .support-color-group-tabs button {
    flex: 0 0 auto;
    min-width: 78px;
  }

  .support-color-results {
    gap: 25px;
  }

  .support-color-group-heading h2 {
    font-size: 18px;
  }

  .support-color-table th {
    padding-inline: 7px;
  }

  .support-color-table th:first-child {
    width: 45%;
  }

  .support-color-table th:last-child {
    width: 44px;
  }

  .support-color-row td {
    height: 66px;
    padding: 7px;
  }

  .support-color-row td:first-child {
    padding-left: 6px;
  }

  .support-color-member {
    gap: 7px;
  }

  .support-color-member img {
    flex-basis: 32px;
    height: 40px;
    width: 32px;
  }

  .support-color-member-copy strong {
    font-size: 13px;
  }

  .support-color-combination {
    padding-inline: 5px;
  }

  .support-color-pair:not(.compact) {
    align-items: start;
    display: grid;
    gap: 5px;
  }

  .support-color-token {
    font-size: 11px;
    gap: 6px;
    min-width: 0;
  }

  .support-color-token.tip-open > .support-color-tooltip,
  .support-color-token:focus-visible > .support-color-tooltip {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
    min-width: 0;
    position: fixed;
    right: 12px;
    transform: none;
    width: auto;
  }

  .support-color-dot {
    flex-basis: 15px;
    height: 15px;
    width: 15px;
  }

  .support-color-source {
    padding-inline: 0 !important;
  }

  .support-color-source a {
    width: 44px;
  }

  .wiki-member-support-colors .support-color-pair.compact {
    display: flex;
  }
}

/* ------------------------------------------------------------------ */
/* Home EPG「今日节目表」(20260723-home-epg)                            */
/* ------------------------------------------------------------------ */
body[data-page="home"], body[data-page="schedule"], body[data-page="news"], body[data-page="member"], body[data-page="wiki"], body[data-page="blog"], body[data-page="sakumimi"], body[data-page="song"], body[data-page="color"] {
  --epg-ink: #17171c;
  --epg-ink2: #5c5a66;
  --epg-ink3: #9b98a5;
  --epg-line: #e6e3da;
  --epg-line2: #efede5;
  --epg-paper: #f7f6f1;
  --amber: #c77f0a;
  background: var(--epg-paper);
  font-variant-numeric: tabular-nums;
}
body[data-page="home"] .site-main {
  background: var(--epg-paper);
}
body[data-page="home"] .wrap {
  max-width: 1280px;
  width: min(calc(100% - 48px), 1280px);
}

/* 截止提醒灯带 */
.dlstrip {
  background: var(--epg-ink);
  color: #f3f1ea;
  overflow: hidden;
}
.dlstrip-in {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 1280px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}
.dlstrip-in::-webkit-scrollbar { display: none; }
.dl-label {
  background: var(--epg-ink);
  border-right: 1px solid rgba(255,255,255,.16);
  color: #f6c453;
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-right: 14px;
  padding: 11px 14px 11px 24px;
  position: relative;
  z-index: 2;
}
.dl-item {
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  gap: 8px;
  margin-right: 18px;
  padding: 11px 18px 11px 0;
  white-space: nowrap;
}
.dlstrip-in:not(.marquee) .dl-item:last-child { border-right: 0; }
.dl-track { align-items: center; display: flex; flex: 0 0 auto; }
.dl-set { align-items: center; display: flex; flex: 0 0 auto; }
.dlstrip-in.marquee { overflow-x: hidden; }
.dlstrip-in.marquee .dl-track {
  animation: dl-marquee var(--dl-duration, 40s) linear infinite;
  will-change: transform;
}
@keyframes dl-marquee { to { transform: translateX(-50%); } }
.dlstrip:hover .dl-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .dlstrip-in.marquee .dl-track { animation: none; }
}
.dl-item .dday { color: #f6c453; font-size: 13px; font-weight: 800; }
.dl-item .dday.hot { color: #ff7a72; }
.dl-item .gdot { border-radius: 50%; height: 7px; width: 7px; }
.dl-item .t { max-width: 340px; opacity: .92; overflow: hidden; text-overflow: ellipsis; }
.dl-item .role {
  background: rgba(246,196,83,.16);
  border-radius: 4px;
  color: #f6c453;
  font-size: 10.5px;
  letter-spacing: .05em;
  padding: 2px 6px;
}

/* Hero 头部 */
.epg-hero { padding: 30px 0 8px; }
.epg-hero-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 18px;
}
.today-date {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .95;
}
.today-date small {
  color: var(--epg-ink2);
  font-size: 16px;
  font-weight: 600;
  margin-left: 10px;
}
.hero-meta { color: var(--epg-ink2); font-size: 13px; line-height: 1.7; padding-bottom: 6px; }
.hero-meta strong { color: var(--epg-ink); font-size: 15px; }
.epg-legend {
  align-items: center;
  color: var(--epg-ink2);
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  gap: 14px;
  margin-left: auto;
  padding-bottom: 8px;
}
.epg-legend span { align-items: center; display: flex; gap: 6px; }
.epg-legend i { border-radius: 3px; display: inline-block; height: 9px; width: 9px; }
.epg-legend a { color: var(--epg-ink); font-weight: 600; }
.epg-loading { color: var(--epg-ink3); font-size: 13px; padding: 18px 4px; }

/* EPG 容器 */
.epg-shell {
  background: #fff;
  border: 1px solid var(--epg-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23,23,28,.05), 0 8px 24px -12px rgba(23,23,28,.18);
  overflow: hidden;
  position: relative;
}
.epg-scroll { overflow-x: auto; }
.epg-scroll::-webkit-scrollbar,
.dlstrip-in::-webkit-scrollbar,
.allday-cells::-webkit-scrollbar { height: 6px; }
.epg-scroll::-webkit-scrollbar-thumb,
.allday-cells::-webkit-scrollbar-thumb { background: #d4d0c4; border-radius: 3px; }
.epg-scroll::-webkit-scrollbar-track { background: transparent; }
.epg { min-width: 1500px; position: relative; }
.epg-grid-head { border-bottom: 1px solid var(--epg-line); display: grid; grid-template-columns: 110px 1fr; }
.axis-corner {
  align-items: center;
  background: #fff;
  border-right: 1px solid var(--epg-line);
  color: var(--epg-ink3);
  display: flex;
  font-size: 10.5px;
  justify-content: center;
  left: 0;
  letter-spacing: .1em;
  position: sticky;
  z-index: 5;
}
.axis { height: 34px; position: relative; }
.axis-tick {
  border-left: 1px solid var(--epg-line2);
  bottom: 0;
  color: var(--epg-ink3);
  font-size: 10.5px;
  padding: 9px 0 0 6px;
  position: absolute;
  top: 0;
}
.axis-tick.big { color: var(--epg-ink2); font-weight: 600; }

/* 全天事项行 */
.allday-row {
  background: #fcfbf7;
  border-bottom: 1px solid var(--epg-line);
  display: grid;
  grid-template-columns: 110px 1fr;
}
.allday-row .lane-label { background: #fcfbf7; }
.allday-cells {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 14px;
  scrollbar-width: none;
}
.allday-cells::-webkit-scrollbar { display: none; }
.allday-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--epg-line);
  border-radius: 99px;
  color: var(--epg-ink2);
  display: flex;
  flex: 0 0 auto;
  font-size: 12px;
  gap: 6px;
  max-width: 330px;
  padding: 4px 11px;
}
.allday-chip:hover { border-color: var(--epg-ink3); color: var(--epg-ink); }
.allday-chip i { border-radius: 50%; flex: 0 0 auto; height: 6px; width: 6px; }
.allday-chip .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allday-chip .cat { color: var(--epg-ink3); flex: 0 0 auto; font-size: 10.5px; }

/* 泳道 */
.lane { border-bottom: 1px solid var(--epg-line); display: grid; grid-template-columns: 110px 1fr; }
.lane:last-child { border-bottom: 0; }
.lane-label {
  align-items: flex-start;
  background: #fff;
  border-right: 1px solid var(--epg-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  left: 0;
  padding: 10px 14px;
  position: sticky;
  z-index: 5;
}
.lane-name { align-items: center; display: flex; font-size: 13.5px; font-weight: 700; gap: 6px; white-space: nowrap; }
.lane-name.muted { color: var(--epg-ink2); }
.lane-name i { border-radius: 50%; height: 8px; width: 8px; }
.lane-count { color: var(--epg-ink3); font-size: 10.5px; white-space: nowrap; }
.lane-track {
  background-image: repeating-linear-gradient(90deg, var(--epg-line2) 0 1px, transparent 1px calc(100%/24));
  position: relative;
}

/* 事件块 */
.ev {
  border: 1px solid rgba(23,23,28,.12);
  border-left: 3px solid;
  border-radius: 7px;
  color: var(--epg-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  gap: 1px;
  justify-content: center;
  line-height: 1.3;
  overflow: hidden;
  padding: 3px 8px;
  position: absolute;
  transition: transform .12s, box-shadow .12s;
}
.ev:hover {
  border-color: rgba(23,23,28,.28);
  box-shadow: 0 8px 18px -6px rgba(23,23,28,.35);
  min-width: max-content;
  overflow: visible;
  transform: translateY(-1px);
  z-index: 20 !important;
}
.ev .tm { align-items: center; display: flex; font-size: 10px; font-weight: 700; gap: 5px; opacity: .85; white-space: nowrap; }
.ev .ti { display: block; font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .badge { border-radius: 4px; display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; padding: 0 5px; }

/* “现在”竖线 */
.now-line { background: #e5484d; bottom: 0; pointer-events: none; position: absolute; top: 0; width: 2px; z-index: 15; }
.now-line::before { background: #e5484d; border-radius: 50%; content: ""; height: 10px; left: -4px; position: absolute; top: -1px; width: 10px; }
.now-tag {
  background: #e5484d;
  border-radius: 5px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  left: 6px;
  padding: 2px 7px;
  position: absolute;
  top: 34px;
  white-space: nowrap;
}

/* 跳转按钮 */
.epg-jump { bottom: 12px; display: flex; gap: 6px; position: absolute; right: 12px; z-index: 30; }
.epg-jump[hidden] { display: none; }
.epg-jump button {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--epg-line);
  border-radius: 99px;
  box-shadow: 0 1px 2px rgba(23,23,28,.05), 0 8px 24px -12px rgba(23,23,28,.18);
  color: var(--epg-ink2);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
}
.epg-jump button:hover { border-color: var(--epg-ink3); color: var(--epg-ink); }

/* 首页期间日程：按团体分组的长期活动甘特图 */
.home-gantt { padding: 14px 0 0; }
.hg-card {
  background: #fff;
  border: 1px solid var(--epg-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23,23,28,.05), 0 8px 24px -12px rgba(23,23,28,.18);
  overflow: hidden;
}
.hg-head {
  align-items: center;
  border-bottom: 1px solid var(--epg-line2);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 20px 13px;
}
.hg-eyebrow {
  color: var(--epg-ink3);
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 2px;
}
.hg-title-row { align-items: baseline; display: flex; flex-wrap: wrap; gap: 12px; }
.hg-title-row h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.hg-title-row span { color: var(--epg-ink3); font-size: 11.5px; }
.hg-head > a {
  color: var(--epg-ink2);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}
.hg-head > a:hover { color: var(--epg-ink); }
.hg-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #d4d0c4 transparent;
  scrollbar-width: thin;
}
.hg-scroll:focus-visible { box-shadow: inset 0 0 0 3px rgba(217,70,131,.18); outline: 0; }
.hg-chart { min-width: 1040px; }
.hg-axis-row,
.hg-lane {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}
.hg-axis-row { border-bottom: 1px solid var(--epg-line); }
.hg-axis-corner,
.hg-group {
  border-right: 1px solid var(--epg-line);
  left: 0;
  position: sticky;
  z-index: 8;
}
.hg-axis-corner {
  align-items: center;
  background: #fff;
  color: var(--epg-ink3);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .12em;
}
.hg-axis { background: #fff; height: 50px; position: relative; }
.hg-month {
  border-left: 1px solid var(--epg-line);
  color: var(--epg-ink2);
  font-size: 11.5px;
  font-weight: 800;
  height: 24px;
  padding: 7px 0 0 9px;
  position: absolute;
  top: 0;
}
.hg-week {
  bottom: 6px;
  color: var(--epg-ink3);
  font-size: 9px;
  position: absolute;
  transform: translateX(5px);
}
.hg-today-axis,
.hg-today-line {
  background: #e5484d;
  pointer-events: none;
  position: absolute;
  width: 1px;
  z-index: 6;
}
.hg-today-axis { bottom: 0; top: 0; }
.hg-today-axis span {
  background: #fff;
  color: #c7372f;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
  left: 5px;
  padding: 1px 4px;
  position: absolute;
  top: 25px;
  white-space: nowrap;
}
.hg-lane {
  --hg-fill: #615063;
  --hg-soft: #faf8fa;
  --hg-soft-border: #e5dce6;
  border-bottom: 1px solid var(--epg-line);
}
.hg-lane:last-child { border-bottom: 0; }
.hg-lane.nogizaka46 {
  --hg-fill: #65506f;
  --hg-soft: #fbf8fc;
  --hg-soft-border: #e5d9e9;
}
.hg-lane.sakurazaka46 {
  --hg-fill: #c14f7f;
  --hg-soft: #fff8fa;
  --hg-soft-border: #f0dbe3;
}
.hg-lane.hinatazaka46 {
  --hg-fill: #3b99c3;
  --hg-soft: #f6fbfd;
  --hg-soft-border: #d7eaf2;
}
.hg-group {
  align-items: flex-start;
  background: var(--hg-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
}
.hg-group strong { align-items: center; display: flex; font-size: 15px; gap: 8px; white-space: nowrap; }
.hg-group strong i { background: var(--hg-color); border-radius: 50%; height: 9px; width: 9px; }
.hg-group > span { color: var(--epg-ink3); font-size: 10.5px; margin: 3px 0 0 17px; }
.hg-track {
  background-color: var(--hg-soft);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 calc((100% / 15.1428) - 1px),
    var(--hg-soft-border) calc((100% / 15.1428) - 1px) calc(100% / 15.1428)
  );
  min-height: 60px;
  position: relative;
}
.hg-today-line { bottom: 0; top: 0; }
.hg-event {
  align-items: center;
  background: var(--hg-fill);
  border: 1px solid rgba(23,23,28,.08);
  border-radius: 7px;
  color: #fff;
  display: flex;
  gap: 5px;
  height: 30px;
  left: var(--hg-left);
  max-width: calc(100% - var(--hg-left) - 5px);
  min-width: 0;
  overflow: hidden;
  padding: 0 7px;
  position: absolute;
  top: calc(11px + var(--hg-row) * 38px);
  transition: box-shadow .14s, transform .14s;
  width: var(--hg-width);
  z-index: 3;
}
.hg-event:hover {
  box-shadow: 0 8px 18px -9px rgba(23,23,28,.55);
  transform: translateY(-1px);
  z-index: 7;
}
.hg-event:focus-visible { box-shadow: 0 0 0 3px rgba(23,23,28,.18); outline: 0; z-index: 7; }
.hg-event.application {
  background: #fffaf0;
  border: 1.5px dashed #dd8b00;
  color: var(--epg-ink);
}
.hg-event.performance { background: #68427b; }
.hg-event-name {
  font-size: 10.3px;
  font-weight: 750;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hg-event-date {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  opacity: .86;
  white-space: nowrap;
}
.hg-event.application .hg-event-date { color: #a66000; }
.hg-empty {
  color: var(--epg-ink3);
  font-size: 11px;
  left: 14px;
  position: absolute;
  top: 21px;
}
.hg-legend {
  align-items: center;
  border-top: 1px solid var(--epg-line2);
  color: var(--epg-ink2);
  display: flex;
  flex-wrap: wrap;
  font-size: 10.5px;
  gap: 18px;
  justify-content: center;
  padding: 9px 16px 10px;
}
.hg-legend span { align-items: center; display: flex; gap: 6px; }
.hg-legend i { border-radius: 3px; display: inline-block; height: 6px; width: 24px; }
.hg-legend i.application { background: #fffaf0; border: 1.5px dashed #dd8b00; }
.hg-legend i.activity { background: #65506f; }
.hg-legend small { color: var(--epg-ink3); font-size: 9.5px; }

/* 预测市场横幅 */
.predict-banner { padding: 14px 0 0; }
.pb-card {
  align-items: center;
  background: linear-gradient(100deg, #1b1b22 0%, #2a1e2e 55%, #3d2337 100%);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23,23,28,.05), 0 8px 24px -12px rgba(23,23,28,.18);
  color: #f3f1ea;
  display: flex;
  gap: 18px;
  padding: 20px 26px;
}
.pb-card:hover { filter: brightness(1.08); }
.pb-left { align-items: baseline; display: flex; flex-wrap: wrap; gap: 14px; }
.pb-left strong { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.pb-tag { border: 1px solid #f0a8c466; border-radius: 5px; color: #f0a8c4; font-size: 10.5px; letter-spacing: .12em; padding: 2px 7px; }
.pb-sub { color: #c9c4d4; font-size: 12.5px; }
.pb-cta { background: #d94683; border-radius: 99px; color: #fff; font-size: 13px; font-weight: 700; margin-left: auto; padding: 9px 18px; white-space: nowrap; }

/* 下方信息区 */
.home-below { padding: 22px 0 40px; }
.below-grid { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); min-width: 0; }
.he-card {
  background: #fff;
  border: 1px solid var(--epg-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23,23,28,.05), 0 8px 24px -12px rgba(23,23,28,.18);
  min-width: 0;
  overflow: hidden;
}
.he-card-head {
  align-items: baseline;
  border-bottom: 1px solid var(--epg-line2);
  display: flex;
  gap: 10px;
  padding: 16px 20px 12px;
}
.he-card-head h3 { font-size: 15px; font-weight: 800; }
.he-card-head .sub { color: var(--epg-ink3); font-size: 11px; letter-spacing: .08em; }
.he-card-head .more { color: var(--epg-ink2); font-size: 12.5px; margin-left: auto; }
.he-card-head .more:hover { color: var(--epg-ink); }
.he-placeholder { color: var(--epg-ink3); font-size: 13px; padding: 18px 20px; }
.rail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* 新闻 */
.news-feature { border-bottom: 1px solid var(--epg-line2); display: flex; gap: 16px; padding: 16px 20px; }
.news-feature img { background: var(--epg-line2); border-radius: 10px; height: 104px; object-fit: cover; width: 168px; }
.news-feature .nt { display: inline-block; font-size: 15.5px; font-weight: 700; line-height: 1.45; margin: 4px 0 8px; }
.news-feature .nt:hover { color: var(--sakurazaka-strong); }
.news-row { align-items: center; border-bottom: 1px solid var(--epg-line2); display: flex; gap: 12px; padding: 11px 20px; }
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: #fcfbf7; }
.news-row img { background: var(--epg-line2); border-radius: 7px; flex: 0 0 auto; height: 44px; object-fit: cover; width: 58px; }
.news-row .nt { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; }
.meta-row { align-items: center; color: var(--epg-ink3); display: flex; font-size: 11.5px; gap: 8px; }
.meta-row .gdot, .gdot { border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.cat-tag { background: #fcfbf7; border: 1px solid var(--epg-line); border-radius: 5px; color: var(--epg-ink2); font-size: 10.5px; padding: 1px 6px; }

/* 日程热力周轮播：每屏恰好一周（7 列），仅组件内横向滚动并整周吸附，页面不横向溢出 */
.week-carousel {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 0 8px 2px;
}
.week-nav {
  align-items: center;
  background: #fbfaf7;
  border: 1px solid var(--epg-line);
  border-radius: 7px;
  color: var(--epg-ink3);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 19px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  transition: background .12s, border-color .12s, color .12s;
  width: 28px;
}
.week-nav:hover:not(:disabled) { background: #fff; border-color: var(--epg-ink3); color: var(--epg-ink); }
.week-nav:disabled { cursor: default; opacity: .3; }
.week-nav:focus-visible { outline: 2px solid rgba(217,70,131,.25); outline-offset: 2px; }
.week-grid {
  display: grid;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  gap: 4px;
  grid-template-columns: 44px minmax(0, 1fr);
  min-width: 0;
}
.wg-labels {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-rows: 32px repeat(3, clamp(26px, 7vw, 32px));
  padding: 14px 0 16px;
}
.wg-viewport {
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.wg-viewport::-webkit-scrollbar { display: none; }
.wg-viewport.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.wg-pages { display: flex; width: 100%; }
.wg-week {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  padding: 14px 4px 16px 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.wg-table {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 32px repeat(3, clamp(26px, 7vw, 32px));
  width: 100%;
}
.wg-lane { align-items: center; display: flex; font-size: 10.5px; font-weight: 700; gap: 4px; white-space: nowrap; }
.wg-lane i { border-radius: 50%; height: 6px; width: 6px; }
.wg-day { color: var(--epg-ink3); font-size: 9.5px; padding-bottom: 2px; text-align: center; white-space: nowrap; }
.wg-day.today { color: var(--epg-ink); font-weight: 800; }
.wg-cell { align-items: center; border-radius: 6px; color: #fff; display: flex; font-size: 10.5px; font-weight: 700; height: 100%; justify-content: center; }
.wg-viewport.dragging .wg-cell { pointer-events: none; }
.wg-cell.empty { background: var(--epg-line2); color: var(--epg-ink3); font-weight: 500; }
.wg-cell.today-col { box-shadow: inset 0 0 0 2px var(--epg-ink); }
.wg-cell:focus-visible { outline: 3px solid rgba(217,70,131,.22); outline-offset: 1px; }

/* 近期节点 */
.rel-item { align-items: center; border-bottom: 1px solid var(--epg-line2); display: flex; gap: 14px; padding: 13px 20px; }
.rel-item:last-child { border-bottom: 0; }
.rel-item:hover { background: #fcfbf7; }
.rel-dd { color: var(--epg-ink); font-size: 22px; font-weight: 800; min-width: 56px; text-align: center; }
.rel-dd .word { font-size: 17px; }
.rel-dd small { color: var(--epg-ink3); display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.rel-item img { background: var(--epg-line2); border-radius: 8px; height: 52px; object-fit: cover; width: 52px; }
.rel-item .rt { font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; }

/* 页脚 */
.home-foot { border-top: 1px solid var(--epg-line); padding: 22px 0 46px; }
.foot-grid { align-items: center; color: var(--epg-ink2); display: flex; flex-wrap: wrap; font-size: 12.5px; gap: 26px; }
.foot-grid a { background: #fff; border: 1px solid var(--epg-line); border-radius: 99px; padding: 6px 13px; }
.foot-grid a:hover { border-color: var(--epg-ink3); color: var(--epg-ink); }
.foot-note { color: var(--epg-ink3); font-size: 11.5px; margin-left: auto; }

@media (max-width: 860px) {
  body[data-page="home"] .wrap { width: calc(100% - 28px); }
  .dl-label { padding-left: 14px; }
  .today-date { font-size: 40px; }
  .below-grid { grid-template-columns: 1fr; }
  .epg-legend { display: none; }
  .hg-head { align-items: flex-end; padding: 14px 15px 11px; }
  .hg-title-row { display: block; }
  .hg-title-row h2 { font-size: 18px; }
  .hg-title-row span { display: block; margin-top: 3px; }
  .hg-head > a { font-size: 11px; }
  .hg-chart { min-width: 980px; }
  .hg-axis-row, .hg-lane { grid-template-columns: 130px minmax(0, 1fr); }
  .hg-group { padding-left: 13px; }
  .hg-group strong { font-size: 13.5px; }
  .hg-legend { justify-content: flex-start; }
  .pb-left strong { font-size: 16px; }
  .pb-sub { width: 100%; }
  .news-feature img { height: 88px; width: 132px; }
}

/* ------------------------------------------------------------------ */
/* Schedule EPG「节目表」页 (20260724-schedule-epg)                     */
/* ------------------------------------------------------------------ */
body[data-page="schedule"] .sched-main { padding-bottom: 40px; }
body[data-page="schedule"] .sd-hero { padding: 30px 0 4px; }
body[data-page="schedule"] .sd-hero-top { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 24px; }
body[data-page="schedule"] .sd-title { font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: .95; }
body[data-page="schedule"] .sd-title small { color: var(--epg-ink3); display: block; font-size: 12px; font-weight: 700; letter-spacing: .3em; margin-bottom: 8px; }
body[data-page="schedule"] .sd-meta { color: var(--epg-ink2); font-size: 13px; line-height: 1.7; margin: 0 0 4px; }
body[data-page="schedule"] .sd-meta strong { color: var(--epg-ink); font-size: 16px; }
body[data-page="schedule"] .sd-actions { align-items: center; display: flex; gap: 8px; margin-left: auto; }
body[data-page="schedule"] .sd-btn { background: #fff; border: 1px solid var(--epg-line); border-radius: 99px; color: var(--epg-ink2); cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; padding: 7px 14px; }
body[data-page="schedule"] .sd-btn:hover { border-color: var(--epg-ink3); color: var(--epg-ink); }
body[data-page="schedule"] .sd-search { background: #fff; border: 1px solid var(--epg-line); border-radius: 99px; color: var(--epg-ink); font-family: inherit; font-size: 13px; outline: none; padding: 8px 16px; width: 220px; }
body[data-page="schedule"] .sd-search:focus { border-color: var(--epg-ink3); }

body[data-page="schedule"] .sd-label { align-items: baseline; color: var(--epg-ink3); display: flex; font-size: 11.5px; font-weight: 700; gap: 10px; letter-spacing: .18em; margin: 28px 0 12px; }
body[data-page="schedule"] .sd-label b { color: var(--epg-ink); font-size: 15px; letter-spacing: .02em; }
body[data-page="schedule"] .sd-label span { font-weight: 500; letter-spacing: 0; margin-left: auto; }

/* 截止与节点墙 */
body[data-page="schedule"] .sd-wall { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
body[data-page="schedule"] .sd-card { background: #fff; border: 1px solid var(--epg-line); border-left: 4px solid; border-radius: 10px; cursor: pointer; flex: 0 0 228px; font-family: inherit; padding: 12px 14px 11px; scroll-snap-align: start; text-align: left; transition: transform .12s, box-shadow .12s; }
body[data-page="schedule"] .sd-card:hover { box-shadow: 0 8px 18px -8px rgba(23,23,28,.3); transform: translateY(-2px); }
body[data-page="schedule"] .sd-card .dd { display: block; font-size: 21px; font-weight: 800; line-height: 1.1; }
body[data-page="schedule"] .sd-card .dd small { color: var(--epg-ink3); font-size: 11px; font-weight: 600; margin-left: 6px; }
body[data-page="schedule"] .sd-card .dd.hot { color: #c7372f; }
body[data-page="schedule"] .sd-card .tt { display: -webkit-box; font-size: 12.5px; font-weight: 600; line-height: 1.4; margin: 7px 0 9px; min-height: 35px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body[data-page="schedule"] .sd-card .ft { align-items: center; display: flex; font-size: 11px; gap: 6px; }
body[data-page="schedule"] .sd-card .gn { color: var(--epg-ink2); }
body[data-page="schedule"] .sd-card .role { border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; margin-left: auto; padding: 2px 7px; }
body[data-page="schedule"] .gdot { border-radius: 50%; display: inline-block; flex: 0 0 auto; height: 7px; width: 7px; }

/* 日期轨道 */
body[data-page="schedule"] .sd-rail { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
body[data-page="schedule"] .sd-day { background: #fff; border: 1px solid var(--epg-line); border-radius: 99px; cursor: pointer; flex: 0 0 auto; font-family: inherit; min-width: 74px; padding: 8px 14px 7px; text-align: center; transition: border-color .12s, background .12s; }
body[data-page="schedule"] .sd-day:hover { border-color: var(--epg-ink3); }
body[data-page="schedule"] .sd-day .wd { color: var(--epg-ink3); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
body[data-page="schedule"] .sd-day .md { display: block; font-size: 15px; font-weight: 800; margin: 1px 0 3px; }
body[data-page="schedule"] .sd-day .dots { align-items: center; display: flex; gap: 4px; justify-content: center; min-height: 7px; }
body[data-page="schedule"] .sd-day .dots i { border-radius: 50%; height: 6px; width: 6px; }
body[data-page="schedule"] .sd-day .dots .dlmark { color: #c7372f; font-size: 9px; font-style: normal; font-weight: 800; }
body[data-page="schedule"] .sd-day.today { background: var(--epg-ink); border-color: var(--epg-ink); color: #f3f1ea; }
body[data-page="schedule"] .sd-day.today .wd { color: #b9b6c4; }
body[data-page="schedule"] .sd-day.sel { box-shadow: inset 0 0 0 2px var(--epg-ink); }

/* 单日 EPG 容器 */
body[data-page="schedule"] .sd-shell { margin-top: 14px; }
body[data-page="schedule"] .epg-dayhead { align-items: baseline; border-bottom: 1px solid var(--epg-line); display: flex; gap: 12px; padding: 13px 18px; }
body[data-page="schedule"] .epg-dayhead .d { font-size: 18px; font-weight: 800; }
body[data-page="schedule"] .epg-dayhead .n { color: var(--epg-ink2); font-size: 12px; }
body[data-page="schedule"] .lane-track.plain { background-image: none; }
body[data-page="schedule"] .ev, body[data-page="schedule"] .allday-chip { font-family: inherit; text-align: left; }
body[data-page="schedule"] .allday-chip .tt { font-weight: 600; }

/* 全部日程 */
body[data-page="schedule"] .sd-filterbar { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
body[data-page="schedule"] .sd-fchip { background: #fff; border: 1px solid var(--epg-line); border-radius: 99px; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 14px; }
body[data-page="schedule"] .sd-fchip.on { background: var(--epg-ink); border-color: var(--epg-ink); color: #f3f1ea; }
body[data-page="schedule"] .sd-fselect { background: #fff; border: 1px solid var(--epg-line); border-radius: 99px; color: var(--epg-ink2); font-family: inherit; font-size: 12.5px; padding: 6px 12px; }
body[data-page="schedule"] .sd-list { background: #fff; border: 1px solid var(--epg-line); border-radius: 14px; margin-top: 10px; overflow: hidden; }
body[data-page="schedule"] .sd-ldate { align-items: baseline; background: #fcfbf7; border-bottom: 1px solid var(--epg-line); display: flex; gap: 10px; padding: 9px 18px; position: sticky; top: 0; z-index: 5; }
body[data-page="schedule"] .sd-ldate .d { font-size: 14px; font-weight: 800; }
body[data-page="schedule"] .sd-ldate .w { color: var(--epg-ink3); font-size: 11px; font-weight: 700; }
body[data-page="schedule"] .sd-ldate .n { color: var(--epg-ink3); font-size: 11px; margin-left: auto; }
body[data-page="schedule"] .sd-row { align-items: center; border-bottom: 1px solid var(--epg-line2); cursor: pointer; display: flex; gap: 12px; padding: 9px 18px; }
body[data-page="schedule"] .sd-row:hover { background: #fbfaf5; }
body[data-page="schedule"] .sd-row .ltime { color: var(--epg-ink); flex: 0 0 44px; font-size: 12.5px; font-weight: 700; }
body[data-page="schedule"] .sd-row .ltime.all { color: var(--epg-ink3); font-weight: 600; }
body[data-page="schedule"] .sd-row .lt { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.4; min-width: 0; }
body[data-page="schedule"] .sd-row .lt .zh { color: var(--epg-ink3); display: block; font-size: 11.5px; font-weight: 500; }
body[data-page="schedule"] .sd-row .lcat { color: var(--epg-ink2); flex: 0 0 auto; font-size: 11px; }
body[data-page="schedule"] .sd-row .lrole { border-radius: 4px; flex: 0 0 auto; font-size: 10px; font-weight: 700; padding: 2px 7px; }
body[data-page="schedule"] .sd-empty { color: var(--epg-ink3); font-size: 13px; padding: 26px 18px; text-align: center; }

@media (max-width: 860px) {
  body[data-page="schedule"] .sd-title { font-size: 38px; }
  body[data-page="schedule"] .sd-actions { margin-left: 0; width: 100%; }
  body[data-page="schedule"] .sd-search { flex: 1; width: auto; }
  body[data-page="schedule"] .sd-card { flex-basis: 200px; }
  body[data-page="schedule"] .epg-dayhead { flex-wrap: wrap; gap: 2px 12px; }
  body[data-page="schedule"] .epg-dayhead .n { flex-basis: 100%; }
  body[data-page="schedule"] .sd-row .lcat { display: none; }
}

/* ===== Wiki 索引页抛光（20260724-wiki-epg，body 前缀提权只作用于索引视觉，不改结构） ===== */

body[data-page="wiki"] .wk-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.52em;
  margin: 0 0 10px;
}

body[data-page="wiki"] .wk-title {
  color: var(--ink);
  font-family: var(--font-disp);
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0.08em;
  line-height: 1.05;
  margin: 0;
}

body[data-page="wiki"] .wk-sub {
  color: var(--sub);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin: 12px 0 0;
  max-width: 560px;
}

body[data-page="wiki"] .wiki-index-hero {
  align-items: end;
  background: transparent;
  border-bottom: 1px solid rgba(24, 24, 24, 0.14);
  padding: 8px 0 22px;
}

body[data-page="wiki"] .wiki-index-metrics {
  gap: 18px;
}

body[data-page="wiki"] .wiki-index-metrics dt {
  color: var(--sub);
  font-size: 10px;
  letter-spacing: 0.2em;
}

body[data-page="wiki"] .wiki-index-metrics dd {
  color: var(--ink);
  font-family: var(--font-disp);
  font-size: 30px;
  letter-spacing: 0.04em;
}

body[data-page="wiki"] .wiki-search-box {
  background: #fff;
  border: 1px solid rgba(24, 24, 24, 0.14);
  border-radius: 10px;
}

body[data-page="wiki"] .wiki-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 95, 0.12);
}

body[data-page="wiki"] .wiki-stat-card {
  background: #fff;
  border: 1px solid rgba(24, 24, 24, 0.1);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body[data-page="wiki"] .wiki-stat-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

body[data-page="wiki"] .wiki-stat-card strong {
  font-family: var(--font-disp);
  font-size: 24px;
  letter-spacing: 0.04em;
}

body[data-page="wiki"] .wiki-index-list {
  background: #fff;
  border: 1px solid rgba(24, 24, 24, 0.1);
  border-radius: 10px;
}

body[data-page="wiki"] .wiki-index-row {
  transition: background 0.12s ease;
}

body[data-page="wiki"] .wiki-index-row:hover {
  background: rgba(240, 235, 226, 0.45);
}

body[data-page="wiki"] .category-heading.compact strong {
  font-family: var(--font-disp);
  letter-spacing: 0.08em;
}

/* ===== 占位页与应援色页页头（20260724-small-epg） ===== */

.ph-hero {
  padding: 72px 0 40px;
}

.ph-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.52em;
  margin: 0 0 12px;
}

.ph-title {
  color: var(--ink);
  font-family: var(--font-disp);
  font-size: clamp(40px, 6.4vw, 72px);
  letter-spacing: 0.08em;
  line-height: 1.05;
  margin: 0;
}

.ph-sub {
  color: var(--sub);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  margin: 16px 0 26px;
  max-width: 520px;
}

body[data-page="color"] .support-color-directory-header h1 {
  font-family: var(--font-disp);
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: 0.08em;
  line-height: 1.05;
}

body[data-page="color"] .support-color-directory-header .section-label {
  letter-spacing: 0.52em;
}

@media (max-width: 860px) {
  .ph-hero {
    padding: 52px 0 30px;
  }

  .ph-title {
    font-size: 40px;
  }
}

/* ===== 日 / 周 / 月 / 列表日历（20260724-schedule-calendar） ===== */

body[data-page="schedule"] .sd-calendar {
  margin-top: 26px;
  padding-bottom: 64px;
}

body[data-page="schedule"] .sd-calbar {
  align-items: center;
  border-bottom: 1px solid var(--epg-line);
  border-top: 1px solid var(--epg-line);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px 0;
}

body[data-page="schedule"] .sd-calnav,
body[data-page="schedule"] .sd-viewtabs {
  align-items: center;
  display: flex;
}

body[data-page="schedule"] .sd-calnav {
  gap: 6px;
}

body[data-page="schedule"] .sd-iconbtn,
body[data-page="schedule"] .sd-todaybtn,
body[data-page="schedule"] .sd-viewtabs button {
  background: #fff;
  border: 1px solid var(--epg-line);
  color: var(--epg-ink2);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

body[data-page="schedule"] .sd-iconbtn {
  border-radius: 50%;
  font-size: 22px;
  height: 34px;
  line-height: 1;
  padding: 0 0 2px;
  width: 34px;
}

body[data-page="schedule"] .sd-todaybtn {
  border-radius: 8px;
  min-height: 34px;
  padding: 0 13px;
}

body[data-page="schedule"] .sd-iconbtn:disabled {
  cursor: default;
  opacity: .35;
}

body[data-page="schedule"] .sd-caltitle {
  color: var(--epg-ink);
  font-size: 16px;
  letter-spacing: .03em;
  min-width: 0;
  text-align: center;
}

body[data-page="schedule"] .sd-viewtabs {
  background: #fff;
  border: 1px solid var(--epg-line);
  border-radius: 8px;
  overflow: hidden;
}

body[data-page="schedule"] .sd-viewtabs button {
  border: 0;
  border-right: 1px solid var(--epg-line);
  min-height: 34px;
  min-width: 48px;
  padding: 0 12px;
}

body[data-page="schedule"] .sd-viewtabs button:last-child {
  border-right: 0;
}

body[data-page="schedule"] .sd-viewtabs button.on {
  background: var(--epg-ink);
  color: #f7f5ef;
}

body[data-page="schedule"] .sd-iconbtn:hover:not(:disabled),
body[data-page="schedule"] .sd-todaybtn:hover,
body[data-page="schedule"] .sd-viewtabs button:hover:not(.on) {
  border-color: var(--epg-ink3);
  color: var(--epg-ink);
}

body[data-page="schedule"] .sd-iconbtn:focus-visible,
body[data-page="schedule"] .sd-todaybtn:focus-visible,
body[data-page="schedule"] .sd-viewtabs button:focus-visible,
body[data-page="schedule"] .sd-whead:focus-visible,
body[data-page="schedule"] .sd-wevent:focus-visible,
body[data-page="schedule"] .sd-mdate:focus-visible,
body[data-page="schedule"] .sd-mevent:focus-visible,
body[data-page="schedule"] .sd-msummary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body[data-page="schedule"] .sd-panel[hidden] {
  display: none !important;
}

body[data-page="schedule"] .sd-week-scroll {
  border: 1px solid var(--epg-line);
  border-radius: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

body[data-page="schedule"] .sd-week {
  background: var(--epg-line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 980px;
}

body[data-page="schedule"] .sd-wday {
  background: #fff;
  min-height: 440px;
  min-width: 0;
}

body[data-page="schedule"] .sd-wday.today {
  background: #fcfbf7;
}

body[data-page="schedule"] .sd-whead {
  align-items: baseline;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--epg-line2);
  color: var(--epg-ink);
  cursor: pointer;
  display: grid;
  font-family: inherit;
  grid-template-columns: 1fr auto;
  min-height: 76px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

body[data-page="schedule"] .sd-whead span {
  color: var(--epg-ink3);
  font-size: 11px;
  font-weight: 700;
}

body[data-page="schedule"] .sd-whead strong {
  font-family: var(--font-disp);
  font-size: 30px;
  grid-row: span 2;
}

body[data-page="schedule"] .sd-whead small {
  color: var(--epg-ink3);
  font-size: 10px;
}

body[data-page="schedule"] .sd-wday.today .sd-whead {
  box-shadow: inset 0 3px 0 var(--accent);
}

body[data-page="schedule"] .sd-wevents {
  display: grid;
  gap: 5px;
  padding: 8px;
}

body[data-page="schedule"] .sd-wevent,
body[data-page="schedule"] .sd-mevent {
  align-items: center;
  background: #fff;
  border: 1px solid var(--epg-line2);
  border-left: 3px solid var(--event-group);
  color: var(--epg-ink);
  cursor: pointer;
  display: grid;
  font-family: inherit;
  min-width: 0;
  text-align: left;
}

body[data-page="schedule"] .sd-wevent {
  border-radius: 6px;
  gap: 5px;
  grid-template-columns: 36px 6px minmax(0, 1fr) auto;
  min-height: 46px;
  padding: 6px 7px;
}

body[data-page="schedule"] .sd-wevent.range {
  background: #f8f6ef;
}

body[data-page="schedule"] .sd-ce-time {
  color: var(--epg-ink3);
  font-size: 9.5px;
  font-weight: 700;
}

body[data-page="schedule"] .sd-ce-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="schedule"] .sd-ce-saved {
  color: #c77f0a;
  font-size: 11px;
}

body[data-page="schedule"] .sd-more {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 7px;
  text-align: left;
}

body[data-page="schedule"] .sd-wempty {
  color: var(--epg-ink3);
  font-size: 11px;
  margin: 0;
  padding: 18px 6px;
  text-align: center;
}

body[data-page="schedule"] .sd-month {
  border: 1px solid var(--epg-line);
  border-radius: 10px;
  margin-top: 14px;
  overflow: hidden;
}

body[data-page="schedule"] .sd-month-weekdays,
body[data-page="schedule"] .sd-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body[data-page="schedule"] .sd-month-weekdays {
  background: var(--epg-ink);
  color: #f4f2eb;
}

body[data-page="schedule"] .sd-month-weekdays span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 8px;
  text-align: center;
}

body[data-page="schedule"] .sd-month-grid {
  background: var(--epg-line);
  gap: 1px;
}

body[data-page="schedule"] .sd-mday {
  background: #fff;
  min-height: 142px;
  min-width: 0;
  padding: 6px;
}

body[data-page="schedule"] .sd-mday.outside {
  background: #f8f7f3;
}

body[data-page="schedule"] .sd-mday.unavailable {
  background: #f1f0ec;
}

body[data-page="schedule"] .sd-mdate {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--epg-ink);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 6px;
  height: 27px;
  padding: 0 2px;
}

body[data-page="schedule"] .sd-mdate strong {
  font-family: var(--font-disp);
  font-size: 18px;
}

body[data-page="schedule"] .sd-mdate span {
  background: var(--accent);
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
}

body[data-page="schedule"] .sd-mday.outside .sd-mdate,
body[data-page="schedule"] .sd-mdate:disabled {
  color: #aaa8a2;
}

body[data-page="schedule"] .sd-mevents {
  display: grid;
  gap: 3px;
}

body[data-page="schedule"] .sd-mevent {
  border-radius: 4px;
  gap: 4px;
  grid-template-columns: 31px 5px minmax(0, 1fr) auto;
  height: 25px;
  padding: 2px 5px;
}

body[data-page="schedule"] .sd-mevent.range-start,
body[data-page="schedule"] .sd-mevent.range-mid,
body[data-page="schedule"] .sd-mevent.range-end {
  background: #f4f1e8;
}

body[data-page="schedule"] .sd-mevent.range-mid {
  border-radius: 0;
  margin-left: -7px;
  margin-right: -7px;
}

body[data-page="schedule"] .sd-mevent.range-start {
  border-radius: 5px 0 0 5px;
  margin-right: -7px;
}

body[data-page="schedule"] .sd-mevent.range-end {
  border-radius: 0 5px 5px 0;
  margin-left: -7px;
}

body[data-page="schedule"] .sd-mevent .sd-ce-time {
  font-size: 8.5px;
}

body[data-page="schedule"] .sd-mevent .sd-ce-title {
  font-size: 9.5px;
}

body[data-page="schedule"] .sd-msummary {
  display: none;
}

@media (max-width: 760px) {
  body[data-page="schedule"] .sd-calendar {
    margin-top: 20px;
    padding-bottom: 44px;
  }

  body[data-page="schedule"] .sd-calbar {
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-page="schedule"] .sd-caltitle {
    font-size: 13px;
    text-align: right;
  }

  body[data-page="schedule"] .sd-viewtabs {
    grid-column: 1 / -1;
    width: 100%;
  }

  body[data-page="schedule"] .sd-viewtabs button {
    flex: 1;
  }

  body[data-page="schedule"] .sd-filterbar {
    flex-wrap: nowrap;
    margin-left: -2px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
  }

  body[data-page="schedule"] .sd-fchip,
  body[data-page="schedule"] .sd-fselect {
    flex: 0 0 auto;
  }

  body[data-page="schedule"] .sd-week {
    grid-template-columns: repeat(7, 168px);
    min-width: 1176px;
  }

  body[data-page="schedule"] .sd-wday {
    min-height: 390px;
  }

  body[data-page="schedule"] .sd-month-weekdays span {
    font-size: 9px;
    padding: 7px 1px;
  }

  body[data-page="schedule"] .sd-mday {
    min-height: 72px;
    padding: 4px;
  }

  body[data-page="schedule"] .sd-mdate {
    height: 25px;
  }

  body[data-page="schedule"] .sd-mdate strong {
    font-size: 15px;
  }

  body[data-page="schedule"] .sd-mdate span,
  body[data-page="schedule"] .sd-mevents {
    display: none;
  }

  body[data-page="schedule"] .sd-msummary {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--epg-ink3);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 9px;
    gap: 3px;
    justify-content: space-between;
    min-height: 26px;
    padding: 2px;
    width: 100%;
  }

  body[data-page="schedule"] .sd-mdots {
    display: flex;
    gap: 2px;
  }

  body[data-page="schedule"] .sd-mdots i {
    border-radius: 50%;
    height: 5px;
    width: 5px;
  }
}
