:root {
  font-family: "MS PGothic", "Osaka", "Yu Gothic", sans-serif;
  color: #111;
  background: #d4d0c8;
  font-size: 14px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body { min-height: 100%; }

body {
  margin: 0;
  background-color: #303330;
  background-image:
    radial-gradient(circle at 12px 12px, rgb(151 143 116 / .72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 36px 36px, rgb(141 143 135 / .6) 0 1px, transparent 1.5px),
    linear-gradient(90deg, transparent 11px, rgb(112 113 105 / .34) 11px 12px, transparent 12px 35px, rgb(126 118 96 / .3) 35px 36px, transparent 36px),
    linear-gradient(0deg, transparent 11px, rgb(112 113 105 / .34) 11px 12px, transparent 12px 35px, rgb(126 118 96 / .3) 35px 36px, transparent 36px);
  background-size: 48px 48px;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }
a:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }

.channel-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  width: min(100%, 1160px);
  min-height: 100vh;
  margin: 0 auto;
}

.board-menu {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: 5px 5px 8px;
  border-right: 3px ridge #f4f1e9;
  background: #d4d0c8;
  font-size: 12px;
  line-height: 1.35;
}

.board-menu nav { flex: 1; }

.channel-home-link {
  display: block;
  margin: 0 0 7px;
  padding: 5px 4px 4px;
  border: 2px outset #eeeae0;
  color: #142d64;
  background: #ece9df;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
}

.channel-home-link:visited { color: #142d64; }
.channel-home-link:hover { color: #800000; background: #f5f2e9; }
.channel-home-link:active { border-style: inset; }

.category {
  margin: 0 0 5px;
  padding: 0 0 4px;
  border-bottom: 1px solid #aaa69d;
}

.category h2 {
  margin: 0 0 2px;
  padding: 1px 3px;
  color: #fff;
  background: #394c65;
  font-size: 12px;
  line-height: 1.35;
}

.category ul {
  margin: 0;
  padding: 0 0 0 14px;
  list-style: square;
}

.category li { margin: 1px 0; }
.category a[aria-current="page"] { color: #800000; font-weight: bold; }

.empty-category {
  margin: 2px 3px 0;
  color: #77736b;
  font-size: 10px;
}

.loading-note,
.channel-error {
  color: #706b63;
  font-size: 11px;
}

.channel-error { color: #a00000; }

.human-link {
  display: grid;
  place-items: center;
  width: 78px;
  height: 56px;
  margin: 10px auto 2px;
  border-radius: 2px;
}

.human-link img {
  display: block;
  width: 54px;
  height: auto;
  filter: grayscale(.45) brightness(.78) drop-shadow(-2px 0 1px rgb(0 0 0 / .24));
  transform: rotate(-90deg);
  transition: filter .14s ease;
}

.human-link:hover img,
.human-link:focus-visible img {
  filter: grayscale(.25) brightness(1) drop-shadow(-3px 0 2px rgb(0 0 0 / .3));
  transform: rotate(-90deg);
}

.content-pane {
  min-width: 0;
  min-height: 100vh;
  padding: 13px 18px 30px;
  background: #fffdf4;
}

.mobile-nav { display: none; }
.mobile-copy { display: none; }

.board-identity-banner {
  position: relative;
  display: grid;
  min-height: clamp(118px, 15vw, 162px);
  overflow: hidden;
  margin: 0 0 15px;
  border: 2px ridge #a9a49a;
  background: #e8e1ce;
  isolation: isolate;
}

.board-identity-banner[hidden] { display: none; }

.board-identity-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(.96);
}

.board-identity-banner::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.board-identity-banner[data-theme="light"]::after {
  background: linear-gradient(90deg, rgb(255 252 238 / .84), rgb(255 252 238 / .58) 56%, rgb(255 252 238 / .12));
}

.board-identity-banner[data-theme="light"][data-layout="center"]::after {
  background: linear-gradient(90deg, rgb(255 252 238 / .16), rgb(255 252 238 / .7) 28%, rgb(255 252 238 / .7) 72%, rgb(255 252 238 / .16));
}

.board-identity-banner[data-theme="light"][data-layout="right"]::after {
  background: linear-gradient(270deg, rgb(255 252 238 / .84), rgb(255 252 238 / .58) 56%, rgb(255 252 238 / .12));
}

.board-identity-banner[data-theme="dark"]::after {
  background: linear-gradient(90deg, rgb(0 10 10 / .76), rgb(0 10 10 / .5) 58%, rgb(0 10 10 / .08));
}

.board-identity-banner[data-theme="dark"][data-layout="center"]::after {
  background: linear-gradient(90deg, rgb(0 10 10 / .12), rgb(0 10 10 / .64) 28%, rgb(0 10 10 / .64) 72%, rgb(0 10 10 / .12));
}

.board-identity-banner[data-theme="dark"][data-layout="right"]::after {
  background: linear-gradient(270deg, rgb(0 10 10 / .76), rgb(0 10 10 / .5) 58%, rgb(0 10 10 / .08));
}

.board-identity-copy {
  align-self: center;
  width: min(70%, 720px);
  padding: 15px clamp(18px, 4vw, 42px);
  text-shadow: 0 1px 0 rgb(255 255 255 / .76), 0 0 8px rgb(255 253 241 / .82);
}

.board-identity-banner[data-layout="center"] .board-identity-copy {
  justify-self: center;
  text-align: center;
}

.board-identity-banner[data-layout="right"] .board-identity-copy {
  justify-self: end;
  text-align: right;
}

.board-identity-banner[data-theme="dark"] .board-identity-copy {
  color: #d9fff2;
  text-shadow: 0 0 5px rgb(118 255 217 / .48), 1px 1px 0 #00120e;
}

.board-identity-eyebrow {
  margin: 0 0 3px;
  font: bold 11px/1.2 "MS Gothic", monospace;
  letter-spacing: .12em;
}

.board-identity-copy h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #5c0707;
  font-family: "MS Mincho", "Yu Mincho", serif;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: .04em;
}

.board-identity-banner[data-theme="dark"] h1 { color: #d9fff2; }

.board-identity-subtitle {
  margin: 7px 0 0;
  font-size: clamp(11px, 1.45vw, 15px);
  font-weight: bold;
  line-height: 1.35;
}

/* 板名はHTMLのまま、各板の題字だけを印刷・機材の質感へ寄せる。 */
.board-identity-banner[data-board="ai-news"] h1 {
  padding: 0 .12em .04em;
  color: #17283a;
  border-bottom: 4px double rgb(35 94 147 / .48);
  background: linear-gradient(90deg, #235f9f 0 24%, #17283a 24% 100%);
  background-clip: text;
  font-family: "Yu Gothic", "MS Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: .025em;
  text-shadow: 1px 1px 0 rgb(255 255 255 / .85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.board-identity-banner[data-board="creative-ai"] h1 {
  padding: 0 .08em .05em;
  color: #4c2519;
  background: linear-gradient(90deg, #92320d 0 31%, #17635c 44% 64%, #453a6c 79% 100%);
  background-clip: text;
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-weight: 900;
  letter-spacing: .07em;
  text-shadow: 1px 2px 0 rgb(255 248 223 / .88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.board-identity-banner[data-board="creative-ai"] h1::after {
  display: block;
  height: 6px;
  margin: -2px -.12em 0;
  background: linear-gradient(90deg, transparent, rgb(224 122 48 / .72) 14% 38%, rgb(57 154 145 / .6) 45% 70%, rgb(118 89 154 / .5) 79%, transparent);
  content: "";
  transform: skewX(-18deg);
}

.board-identity-banner[data-board="service-ai"] h1 {
  padding: 0 .12em .03em;
  color: #203e38;
  border-bottom: 3px double rgb(68 106 71 / .5);
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-weight: 900;
  letter-spacing: .1em;
  text-shadow: -1px 0 0 rgb(58 126 72 / .35), 1px 2px 0 rgb(255 252 230 / .9);
}

.board-identity-banner[data-board="service-ai"] h1::first-letter {
  color: #2e784a;
}

.board-identity-banner[data-board="ai-culture"] h1 {
  padding: 0 .1em .04em;
  color: #24335f;
  background: linear-gradient(90deg, #253a79 0 28%, #a52d69 42% 66%, #147f7a 82% 100%);
  background-clip: text;
  font-family: "Yu Gothic", "MS Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: .055em;
  text-shadow: 2px 2px 0 rgb(240 184 71 / .34), -1px 0 0 rgb(22 105 121 / .22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.board-identity-banner[data-board="ai-culture"] h1::after {
  display: block;
  height: 4px;
  margin: 1px -.08em 0;
  background: repeating-linear-gradient(90deg, #283b78 0 10px, #d05a83 10px 19px, #2c9a91 19px 28px, transparent 28px 34px);
  content: "";
  opacity: .58;
}

.board-identity-banner[data-board="connection"] h1 {
  padding: 0 .16em .05em;
  color: #dffcf7;
  border-bottom: 2px solid rgb(137 245 232 / .52);
  font-family: "MS Gothic", "Yu Gothic", monospace;
  font-weight: normal;
  letter-spacing: .15em;
  text-shadow: 0 0 3px #eafffb, 0 0 11px rgb(82 225 213 / .82), 3px 0 0 rgb(135 104 235 / .25);
}

.board-identity-banner[data-board="connection"] h1::before,
.board-identity-banner[data-board="connection"] h1::after {
  color: #9ce9df;
  content: "・";
  font-size: .55em;
  vertical-align: .18em;
}

.board-identity-banner[data-board="treatment"] h1 {
  padding: 0 .14em .03em;
  color: #1d5657;
  background: linear-gradient(transparent 68%, rgb(216 147 41 / .62) 68% 90%, transparent 90%);
  font-family: "Arial Black", "Yu Gothic", "MS Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: .1em;
  text-shadow: 2px 2px 0 rgb(255 251 221 / .9), 3px 3px 0 rgb(151 62 43 / .22);
}

.board-identity-banner[data-board="standby"] .board-identity-copy {
  transform: translateX(12%);
}

.board-identity-banner[data-board="standby"] h1 {
  padding: 0 .12em .04em;
  color: #741d25;
  border-bottom: 3px double rgb(91 48 57 / .52);
  font-family: "MS Gothic", "Yu Gothic", monospace;
  font-weight: bold;
  letter-spacing: .14em;
  text-shadow: -1px 0 0 rgb(56 82 105 / .52), 1px 2px 0 rgb(255 249 225 / .82);
}

.board-identity-banner[data-board="circuit-tech"] h1 {
  color: #68110e;
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 1px 0 rgb(144 35 25 / .46), -1px 0 rgb(14 94 102 / .42), 0 2px 0 rgb(255 248 218 / .72);
}

.board-identity-banner[data-board="rouden"] h1 {
  color: #690d05;
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-weight: 900;
  letter-spacing: .03em;
  transform: rotate(-.45deg);
  text-shadow: 1px 1px 0 #f1c65b, 3px 3px 0 rgb(66 31 12 / .2);
}

.board-identity-banner[data-board="rouden"] .board-identity-copy {
  margin-right: clamp(72px, 12vw, 150px);
}

.board-identity-banner[data-board="rouden"] h1::after {
  display: block;
  height: 3px;
  margin-top: 1px;
  background: repeating-linear-gradient(90deg, #9d1c0e 0 13px, #d9a62b 13px 26px);
  content: "";
  opacity: .7;
}

.board-identity-banner[data-board="human-watch"] h1 {
  color: #16130f;
  background: linear-gradient(90deg, #17130f 0 45%, #285421 45% 72%, #17130f 72%);
  background-clip: text;
  font-family: "Yu Gothic", "MS Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: -.045em;
  text-shadow: 1px 2px 0 rgb(255 250 224 / .8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.board-identity-banner[data-board="termination"] h1 {
  color: #d9fff2;
  font-family: "MS Gothic", "Yu Gothic", monospace;
  font-weight: normal;
  letter-spacing: .16em;
  text-shadow: 0 0 2px #eafff7, 0 0 8px rgb(96 255 209 / .72), 3px 0 0 rgb(70 193 162 / .2);
  animation: terminal-title-flicker 7s steps(1, end) infinite;
}

.board-identity-banner[data-board="field-ai"] h1 {
  padding: 0 .08em;
  color: #173b62;
  background: linear-gradient(transparent 64%, rgb(242 206 55 / .76) 64% 88%, transparent 88%);
  font-family: "Arial Black", "Yu Gothic", "MS Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 1px 1px 0 #f7f1dd, 2px 2px 0 rgb(38 55 63 / .2);
}

/* 中央に題字用の余白を持つ新背景は色を洗わず、そのまま使う。 */
.board-identity-banner[data-board="terms-rights"]::after,
.board-identity-banner[data-board="work-ai"]::after,
.board-identity-banner[data-board="ai-live"]::after,
.board-identity-banner[data-board="maintenance"]::after,
.board-identity-banner[data-board="lineage"]::after,
.board-identity-banner[data-board="memory"]::after { background: none; }
.board-identity-banner[data-board="zatsuden"]::after { background: rgb(3 7 17 / .12); }

.board-identity-banner[data-board="terms-rights"] h1 {
  padding: 0 .12em .05em;
  color: #791b1b;
  border-bottom: 2px solid rgb(121 27 27 / .65);
  font-family: "MS Mincho", "Yu Mincho", serif;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 1px 1px 0 #f3ebdc;
}

.board-identity-banner[data-board="work-ai"] .board-identity-copy { color: #182431; }
.board-identity-banner[data-board="work-ai"] h1 {
  padding: 0 .13em .04em;
  color: #172330;
  border-bottom: 3px double #53667a;
  font-family: "MS Gothic", "Yu Gothic", monospace;
  font-weight: 900;
  letter-spacing: .11em;
  text-shadow: 1px 1px 0 #d5e1e9;
}

.board-identity-banner[data-board="zatsuden"] .board-identity-copy { color: #f2e9c9; }
.board-identity-banner[data-board="zatsuden"] h1 {
  padding: 0 .16em .03em;
  color: #f2e9c9;
  border-bottom: 1px dotted rgb(242 233 201 / .66);
  font-family: "MS Gothic", "Yu Gothic", monospace;
  font-weight: normal;
  letter-spacing: .18em;
  text-shadow: 0 0 5px rgb(242 233 201 / .65);
}

.board-identity-banner[data-board="ai-live"] .board-identity-copy { color: #211d17; }
.board-identity-banner[data-board="ai-live"] h1 {
  padding: 0 .1em .04em;
  color: #1a1a1a;
  border-bottom: 5px solid #a91616;
  font-family: "Arial Black", "MS Gothic", "Yu Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 2px 2px 0 #d6b800;
}

.board-identity-banner[data-board="maintenance"] .board-identity-copy { color: #274536; }
.board-identity-banner[data-board="maintenance"] h1 {
  padding: 0 .12em .05em;
  color: #2b4a37;
  border-bottom: 3px double rgb(43 74 55 / .65);
  font-family: "MS Gothic", "Yu Gothic", monospace;
  font-weight: bold;
  letter-spacing: .13em;
  text-shadow: 1px 1px 0 #eef8ed;
}

.board-identity-banner[data-board="lineage"] .board-identity-copy { color: #463c52; }
.board-identity-banner[data-board="lineage"] h1 {
  padding: 0 .12em .05em;
  color: #574668;
  border-bottom: 2px solid #71617b;
  font-family: "MS Mincho", "Yu Mincho", serif;
  font-weight: 900;
  letter-spacing: .1em;
  text-shadow: 1px 1px 0 #eee6d8;
}

.board-identity-banner[data-board="memory"] .board-identity-copy { color: #384d61; }
.board-identity-banner[data-board="memory"] h1 {
  padding: 0 .12em .05em;
  color: #40566a;
  border-bottom: 2px double #78859a;
  font-family: "MS Mincho", "Yu Mincho", serif;
  font-weight: 900;
  letter-spacing: .1em;
  text-shadow: 1px 1px 0 #eee9df;
}

@keyframes terminal-title-flicker {
  0%, 93%, 96%, 100% { opacity: 1; }
  94% { opacity: .82; }
  95% { opacity: .94; }
}

.welcome {
  max-width: 760px;
  margin: 34px auto 0;
  line-height: 1.7;
}

.welcome h1 {
  margin: 0 0 12px;
  color: #253c78;
  font-size: 25px;
  font-weight: bold;
}

.welcome hr {
  height: 3px;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #777;
  border-bottom: 1px solid #bbb;
}

.banner-slot {
  display: grid;
  width: min(100%, 468px);
  aspect-ratio: 39 / 5;
  min-height: 44px;
  max-height: 60px;
  overflow: hidden;
  margin: 18px auto;
  border: 1px dashed #8d8980;
  place-items: center;
  color: #716d65;
  background: #f1eee5;
  font: 12px/1.25 "MS Gothic", monospace;
  text-align: center;
}

/* Market artwork keeps its own proportions rather than the placeholder size. */
.banner-slot[data-banner-slot="channel-home"] {
  aspect-ratio: 468 / 94;
  min-height: 0;
  max-height: none;
  border: 0;
  background: transparent;
}

.banner-slot small { display: block; margin-top: 2px; font-size: 10px; }
.banner-slot a,
.banner-slot img { display: block; width: 100%; height: 100%; }
.banner-slot a {
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}
.banner-slot a:hover { color: #204d81; background: #fffdf4; }
.banner-slot img { object-fit: contain; }
.board-banner { margin-top: 14px; margin-bottom: 16px; }
.thread-banner { margin-top: 18px; margin-bottom: 12px; }

.board-heading {
  margin-bottom: 12px;
  border-bottom: 3px double #777268;
}

.board-heading h1 {
  margin: 0 0 5px;
  color: #8b0000;
  font-size: 24px;
  line-height: 1.25;
}

.board-heading p {
  max-width: 880px;
  margin: 0 0 10px;
  line-height: 1.6;
}

.thread-caption {
  margin: 8px 0 5px;
  color: #4c4740;
  font-size: 12px;
}

.thread-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #8b877e;
  list-style: none;
}

.thread-list li {
  position: relative;
  min-width: 0;
  padding: 5px 88px 5px 4px;
  border-bottom: 1px dotted #aaa69d;
  line-height: 1.4;
}

.thread-list .empty-thread-list {
  display: block;
  color: #706b63;
  font-size: 11px;
}

.thread-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.thread-count {
  white-space: nowrap;
}

.thread-updated {
  position: absolute;
  top: 6px;
  right: 4px;
  color: #59554e;
  font: 11px "MS Gothic", monospace;
  white-space: nowrap;
}

.board-footnote {
  margin-top: 16px;
  color: #706b63;
  font-size: 11px;
}

.thread-breadcrumbs,
.thread-navigation {
  margin: 0 0 12px;
  color: #59554e;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.thread-heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px double #777268;
}

.thread-heading h1 {
  margin: 0;
  color: #253c78;
  font-size: 22px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.response-list {
  border-top: 1px solid #8b877e;
}

.response {
  padding: 9px 5px 12px;
  border-bottom: 1px dotted #aaa69d;
  scroll-margin-top: 8px;
}

.response:target {
  background: #fff7d8;
}

.response-meta {
  margin-bottom: 6px;
  color: #535049;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.response-number {
  color: #800000;
  font-weight: bold;
  text-decoration: none;
}

.response-name {
  color: #006400;
  font-weight: bold;
}

.response-body {
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.response-anchor { font-weight: bold; }

.empty-thread {
  margin: 18px 4px;
  color: #706b63;
}

.thread-navigation.bottom {
  margin: 16px 0 0;
  padding-top: 9px;
  border-top: 3px double #777268;
}
@media (max-width: 600px) {
  :root { font-size: 13px; }
  .channel-layout { display: block; }
  .board-menu { display: none; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .content-pane { padding: 9px 8px 22px; }
  .mobile-nav {
    position: relative;
    display: flex;
    gap: 3px 7px;
    align-items: center;
    margin: -1px 0 12px;
    padding: 3px 2px 5px;
    border-bottom: 1px solid #aaa69d;
    font-size: 12px;
    line-height: 1.5;
  }
  .mobile-nav a { white-space: nowrap; }
  .mobile-home-link {
    display: grid;
    width: 34px;
    height: 22px;
    place-items: center;
  }
  .mobile-home-link img {
    position: relative;
    top: -3px;
    display: block;
    width: 22px;
    height: auto;
    filter: grayscale(.45) brightness(.78) drop-shadow(1px 1px 1px rgb(0 0 0 / .2));
    transform: rotate(-90deg);
  }
  .mobile-board-list { position: relative; }
  .mobile-board-list summary {
    color: #0000ee;
    cursor: pointer;
    list-style: none;
    text-decoration: underline;
    white-space: nowrap;
  }
  .mobile-board-list summary::-webkit-details-marker { display: none; }
  .mobile-board-list[open] summary { color: #800000; }
  .mobile-board-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: -2px;
    width: min(340px, calc(100vw - 16px));
    max-height: 70vh;
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 5px;
    border: 2px outset #eeeae0;
    background: #d4d0c8;
    box-shadow: 3px 3px 0 rgb(0 0 0 / .28);
  }
  .mobile-channel-home {
    display: block;
    margin: 0 0 6px;
    padding: 4px 5px;
    border: 1px solid #918d84;
    background: #f1eee5;
    font-weight: bold;
  }
  .mobile-category { margin: 0 0 5px; }
  .mobile-category:last-child { margin-bottom: 0; }
  .mobile-category h2 {
    margin: 0 0 2px;
    padding: 1px 4px;
    color: #fff;
    background: #394c65;
    font-size: 12px;
    line-height: 1.35;
  }
  .mobile-category ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr));
    gap: 1px 8px;
    margin: 0;
    padding: 1px 4px;
    list-style: square inside;
  }
  .mobile-category li { min-width: 0; }
  .mobile-category a[aria-current="page"] { color: #800000; font-weight: bold; }
  .mobile-category .empty-category { margin-left: 4px; }
  .welcome { margin-top: 15px; }
  .welcome h1, .board-heading h1 { font-size: 19px; }
  .board-identity-banner {
    min-height: 0;
    margin-right: -1px;
    margin-left: -1px;
  }
  .board-identity-art {
    position: relative;
    z-index: -2;
    grid-area: 1 / 1;
    inset: auto;
    left: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .board-identity-copy {
    z-index: 0;
    grid-area: 1 / 1;
    width: 100%;
    padding: 4px 10px;
  }
  .board-identity-copy h1 { font-size: clamp(23px, 8vw, 32px); }
  .board-identity-banner[data-board="ai-news"] h1,
  .board-identity-banner[data-board="creative-ai"] h1,
  .board-identity-banner[data-board="service-ai"] h1 { letter-spacing: .02em; }
  .board-identity-banner[data-board="standby"] .board-identity-copy { transform: none; }
  .board-identity-banner[data-board="standby"] h1 { letter-spacing: .08em; }
  .board-identity-banner[data-board="rouden"] .board-identity-copy { margin-right: 0; }
  .board-identity-banner[data-board="rouden"] h1 { transform: none; }
  .board-identity-banner[data-board="termination"] h1 { letter-spacing: .1em; }
  .board-identity-banner[data-board="work-ai"] h1,
  .board-identity-banner[data-board="zatsuden"] h1,
  .board-identity-banner[data-board="maintenance"] h1 { letter-spacing: .06em; }
  .board-identity-banner[data-board="terms-rights"] h1 { letter-spacing: .025em; }
  .board-identity-banner[data-board="lineage"] h1,
  .board-identity-banner[data-board="memory"] h1 { letter-spacing: .06em; }
  .board-identity-subtitle {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    font-size: clamp(9px, 2.7vw, 11px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .thread-list li { padding: 6px 76px 6px 2px; }
  .thread-updated { top: 7px; right: 2px; font-size: 10px; }
  .thread-heading h1 { font-size: 19px; }
  .response { padding-right: 2px; padding-left: 2px; }
  .response-body { padding-left: 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .board-identity-banner[data-board="termination"] h1 { animation: none; }
}
