.bbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.link-list {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.link-list a {
  color: #8fd6ff;
  text-decoration: none;
}

.link-list a:hover {
  color: #6effc9;
}

.archive-pre {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  color: #bed6ef;
  line-height: 1.45;
}

html.sero-ui-pending body {
  visibility: hidden;
}

body.serotonin-message {
  color: #d6e5f8;
}

.msg-page {
  max-width: 1160px;
  padding-top: 1rem;
}

.msg-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(125, 168, 202, 0.28);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  background: rgba(8, 19, 31, 0.82);
}

.msg-toolbar .title {
  color: #dff3ff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  margin-right: 0.5rem;
}

.msg-toolbar .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.msg-toolbar a {
  color: #87d7ff;
  text-decoration: none;
  border: 1px solid rgba(120, 175, 220, 0.33);
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  font-size: 0.83rem;
}

.msg-toolbar a:hover {
  color: #53ffc0;
  border-color: rgba(88, 250, 186, 0.45);
}

.msg-card {
  overflow-x: auto;
  padding: 1rem 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(113, 163, 201, 0.23);
  background: #02070d;
}

.msg-card,
.msg-card table,
.msg-card td,
.msg-card font,
.msg-card a {
  font-family: "Lucida Console", "DejaVu Sans Mono", "Courier New", monospace !important;
  font-size: 16px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.msg-card a {
  text-decoration: none;
}

.msg-card table,
.msg-card td {
  background: #000 !important;
}

.msg-card table:last-child {
  margin-top: 1rem;
}

.area-legacy-panel {
  border: 1px solid rgba(113, 163, 201, 0.23);
  background: rgba(5, 14, 23, 0.9);
  border-radius: 14px;
  padding: 1rem;
  overflow-x: auto;
}

.area-toolbar {
  position: sticky;
  top: 0;
  z-index: 25;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(120, 175, 220, 0.33);
  background: rgba(8, 19, 31, 0.82);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.area-toolbar .meta {
  color: #dff3ff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.93rem;
}

.area-toolbar .links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.area-toolbar a,
.area-toolbar button {
  color: #87d7ff;
  text-decoration: none;
  border: 1px solid rgba(120, 175, 220, 0.33);
  background: rgba(12, 28, 43, 0.66);
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  font-size: 0.83rem;
  cursor: pointer;
}

.area-toolbar a:hover,
.area-toolbar button:hover {
  color: #53ffc0;
  border-color: rgba(88, 250, 186, 0.45);
}

.area-toolbar button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

.serotonin-area-index table {
  width: 100% !important;
  max-width: 100%;
}

.serotonin-area-index td,
.serotonin-area-index span,
.serotonin-area-index a {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif !important;
}

.serotonin-area-index .title,
.serotonin-area-index .msgTitle {
  color: #9bd9ff !important;
}

.serotonin-area-index .heading a,
.serotonin-area-index a.msgBack,
.serotonin-area-index .msgBack a,
.serotonin-area-index a {
  color: #87d7ff !important;
}

.serotonin-area-index .heading a:hover,
.serotonin-area-index a.msgBack:hover,
.serotonin-area-index a:hover {
  color: #55ffc3 !important;
}

.retro-area-panel {
  padding: 0.85rem;
}

.retro-area-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.7rem;
  color: #9bd9ff;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.96rem;
}

.retro-bullet {
  color: #d9aa1e;
  font-size: 0.65rem;
}

.retro-title {
  color: #f0cb4f;
}

.retro-count {
  color: #89c7ea;
}

.retro-area-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(120, 175, 220, 0.33);
  background: #000;
}

.retro-area-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #000;
  font-family: "Lucida Console", "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 0.96rem;
}

.retro-area-table thead th {
  text-align: left;
  padding: 0.38rem 0.45rem;
  border-right: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  color: #d9aa1e;
  background: #050505;
  font-weight: 700;
}

.retro-area-table thead th:last-child {
  border-right: 0;
}

.retro-area-table tbody td {
  padding: 0.35rem 0.45rem;
  border-right: 1px solid #1c1c1c;
  border-bottom: 1px solid #1c1c1c;
  color: #00b8c6;
  vertical-align: top;
}

.retro-area-table tbody tr:last-child td {
  border-bottom: 0;
}

.retro-area-table tbody td:last-child {
  border-right: 0;
  color: #00b8c6;
}

.retro-area-table .icon-col {
  width: 2.05rem;
  text-align: center;
}

.retro-doc-icon {
  color: #d4d4d4;
  font-size: 0.82rem;
}

.retro-subject-link {
  color: #d43ad6;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.retro-subject-link:hover {
  color: #ff7df7;
}

@media (max-width: 700px) {
  .msg-page {
    padding-top: 0.7rem;
  }

  .msg-toolbar {
    position: static;
  }

  .area-legacy-panel {
    padding: 0.6rem;
  }

  .area-toolbar {
    position: static;
  }
}
