/* [CSS-01] Shared base. The public and admin pages use the same variables,
 * form controls and responsive rules. See LEARNING-GUIDE.md, Styling. */
* {
  box-sizing: border-box;
}
html {
  background: #0b100e;
  color-scheme: dark;
}
body {
  margin: 0;
  background: #0b100e;
  color: #e6e5d9;
}
img,
video,
iframe,
audio {
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
a {
  color: #acd8af;
}
[hidden] {
  display: none !important;
}
.comment-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.markdown p,
.post-body p {
  margin: 0 0 1em;
}
.markdown img,
.post-body img {
  max-width: 100%;
  height: auto;
}
.markdown pre,
.post-body pre {
  overflow: auto;
  padding: 16px;
  background: #101914;
}
.markdown blockquote,
.post-body blockquote {
  margin-left: 0;
  padding-left: 20px;
  border-left: 2px solid #536054;
}
.markdown table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow: auto;
}
.markdown th,
.markdown td {
  padding: 8px;
  border: 1px solid #536054;
}
.text {
  white-space: pre-wrap;
}
.setting-thumbnail {
  display: block;
  max-width: 180px;
  max-height: 120px;
  margin: 12px 0;
  object-fit: contain;
}
.studio form {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #35483d;
}
.studio form form {
  border: 0;
  padding: 0;
}
.studio form input[type="file"] {
  height: auto;
}
.studio .buttons,
.sectionhead {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.studio .listrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #35483d;
}
.studio details > form {
  border: 0;
  padding: 0;
}
.studio details > summary {
  cursor: pointer;
}
.studio .hint {
  line-height: 1.65;
}
.previewbox {
  border: 1px dashed #7a9b82;
  padding: 20px;
  margin: 20px 0;
}
.demo-label {
  display: block;
  color: #d6b66a;
  font-size: 12px;
}
.about-blocks {
  max-width: 850px;
}
.about-block {
  margin-bottom: 30px;
}
.about-block img,
.about-admin-preview img {
  max-height: 450px;
  max-width: 100%;
  object-fit: contain;
}
.about-block.mixed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
}
.about-admin-card,
.moderation-comment {
  padding: 16px 0;
  border-bottom: 1px solid #35483d;
}
.about-admin-preview {
  max-height: 220px;
  overflow: auto;
}
@media (max-width: 650px) {
  .studio .listrow {
    align-items: flex-start;
    flex-direction: column;
  }
  .about-block.mixed {
    grid-template-columns: 1fr;
  }
}
/* v2.0 shared theme. The bbs class scopes this design to public routes; existing
   admin styling remains available. rem sizing follows the visitor's font size. */
body:is(.bbs, .bbs-admin) {
  --ink: #e6e5d9;
  --muted: #acb9ae;
  --accent: #acd8af;
  background: #0b100e;
  color: var(--ink);
  font:
    16px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    "Liberation Mono",
    monospace;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 28px 0;
  overflow-wrap: anywhere;
}
:is(.bbs, .bbs-admin) *,
.network-admin * {
  box-sizing: border-box;
}
:is(.bbs, .bbs-admin)::before,
:is(.bbs, .bbs-admin)::after {
  display: none;
}
/* A small masthead and quiet status line replace the large multi-panel header. */
:is(.bbs, .bbs-admin) .site-header {
  padding: 0 0 22px;
  border: 0;
  background: none;
  display: block;
  min-height: 0;
  position: static;
}
.bbs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
:is(.bbs, .bbs-admin) .masthead {
  font:
    500 clamp(24px, 3vw, 32px)/1.3 ui-monospace,
    monospace;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  transform: none;
  display: block;
  white-space: normal;
}
.bbs-logo {
  max-height: 70px;
  max-width: 230px;
  object-fit: contain;
}
.bbs-status {
  font-size: 11px;
  color: #d6b66a;
  max-width: 400px;
  text-align: right;
}
.bbs-subtitle {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
:is(.bbs, .bbs-admin) nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  font: inherit;
}
:is(.bbs, .bbs-admin) nav a {
  font-size: 14px;
  letter-spacing: 0;
  white-space: normal;
  text-transform: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
:is(.bbs, .bbs-admin) a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
:is(.bbs, .bbs-admin) a:hover {
  color: #fff;
}
:is(.bbs, .bbs-admin) button,
:is(.bbs, .bbs-admin) .button,
:is(.bbs, .bbs-admin) select,
:is(.bbs, .bbs-admin) input,
:is(.bbs, .bbs-admin) textarea {
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid #56685a;
  background: #101914;
  color: var(--ink);
  border-radius: 2px;
  box-shadow: none;
  max-width: 100%;
}
:is(.bbs, .bbs-admin) button,
:is(.bbs, .bbs-admin) .button {
  padding: 8px 14px;
  min-height: 42px;
  cursor: pointer;
}
:is(.bbs, .bbs-admin) button:hover,
:is(.bbs, .bbs-admin) .button:hover {
  background: #243d2b;
  color: #fff;
  transform: none;
}
:is(.bbs, .bbs-admin) :focus-visible {
  outline: 2px solid #c6eac9;
  outline-offset: 4px;
}
:is(.bbs, .bbs-admin) input,
:is(.bbs, .bbs-admin) select,
:is(.bbs, .bbs-admin) textarea {
  padding: 9px;
  width: 100%;
  min-height: 44px;
}
:is(.bbs, .bbs-admin) input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: #acd8af;
}
:is(.bbs, .bbs-admin) label {
  display: block;
  margin: 12px 0;
  font: inherit;
  font-size: 14px;
}
:is(.bbs, .bbs-admin) .check {
  display: flex;
  gap: 12px;
  align-items: center;
}
:is(.bbs, .bbs-admin) .hint,
:is(.bbs, .bbs-admin) .meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
:is(.bbs, .bbs-admin) h1,
:is(.bbs, .bbs-admin) h2,
:is(.bbs, .bbs-admin) h3,
:is(.bbs, .bbs-admin) h4 {
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
  transform: none;
}
:is(.bbs, .bbs-admin) h1 {
  font-size: clamp(24px, 3.3vw, 36px);
  margin: 14px 0 24px;
}
:is(.bbs, .bbs-admin) h2 {
  font-size: 23px;
  margin: 22px 0 16px;
}
:is(.bbs, .bbs-admin) h3 {
  font-size: 19px;
}
:is(.bbs, .bbs-admin) p {
  max-width: 78ch;
}
:is(.bbs, .bbs-admin) main {
  padding: 26px 0 0;
  max-width: none;
  min-height: 360px;
}
:is(.bbs, .bbs-admin) footer {
  margin: 0;
  padding: 22px 0;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid #536054;
  color: var(--muted);
  font-size: 12px;
  background: none;
}
.socials {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
[hidden] {
  display: none !important;
}
/* One latest post and then a directory: no sidebar or repeated home columns. */
.featured-entry {
  padding: 10px 0 28px;
  border-bottom: 1px solid #536054;
}
.writing-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 20px 0 32px;
  align-items: start;
}
.writing-preview:has(img) {
  grid-template-columns: 180px minmax(0, 1fr);
}
.featured-entry .writing-preview:has(img) {
  grid-template-columns: minmax(0, 1fr) 34%;
}
.featured-entry .writing-preview > a {
  grid-column: 2;
  grid-row: 1;
}
.featured-entry .writing-preview > div {
  grid-column: 1;
  grid-row: 1;
}
.writing-preview img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #080c09;
}
.featured-entry .writing-preview img {
  height: 260px;
}
.writing-preview h2 {
  margin: 6px 0 18px;
}
.writing-preview h2 a {
  color: var(--ink);
  text-decoration: none;
}
.writing-preview .post-body {
  font: inherit;
  font-size: 14px;
  max-height: 140px;
  overflow: hidden;
  margin-bottom: 16px;
  line-height: 1.7;
}
:is(.bbs, .bbs-admin) .breadcrumbs {
  font-size: 12px;
  margin-bottom: 20px;
}
.folder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 45px;
  padding: 20px 0;
  border-bottom: 1px solid #536054;
}
.folder-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.folder-links span {
  font-size: 30px;
}
.directory-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 16px 0;
}
.directory-tools label {
  display: flex;
  gap: 12px;
  align-items: center;
}
.directory-tools select {
  width: auto;
}
.directory-tools button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  color: var(--accent);
}
.file-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 65px 135px 80px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #34483a;
  min-width: 0;
}
.file-row img {
  width: 65px;
  height: 55px;
  object-fit: contain;
}
.file-icon {
  font-size: 30px;
  color: var(--muted);
  text-align: center;
}
.file-title {
  font-size: 14px;
}
.file-open {
  font-size: 12px;
  text-align: right;
}
.file-list.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.file-list.gallery .file-row {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  min-width: 0;
}
.file-list.gallery .file-thumb,
.file-list.gallery img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}
.file-list.gallery .file-icon {
  height: 160px;
  padding-top: 50px;
  width: 100%;
}
.submission-link {
  margin: 30px 0;
}
.radio-status {
  color: #d6b66a;
  margin: 36px 0;
}
/* Detail pages keep real images at their aspect ratio; text is never cropped. */
:is(.bbs, .bbs-admin) .entry {
  max-width: 900px;
  margin: 0 auto 35px;
}
.entry figure {
  margin: 24px 0;
}
.entry-art {
  display: block;
  max-width: 100%;
  max-height: 650px;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}
:is(.bbs, .bbs-admin) .post-body,
:is(.bbs, .bbs-admin) .text,
:is(.bbs, .bbs-admin) .markdown {
  font-family: inherit;
  line-height: 1.8;
  letter-spacing: 0;
}
:is(.bbs, .bbs-admin) .post-body {
  margin: 26px 0;
}
:is(.bbs, .bbs-admin) .entry video,
:is(.bbs, .bbs-admin) .entry iframe {
  max-width: 100%;
}
:is(.bbs, .bbs-admin) .post-comments {
  border-top: 1px solid #536054;
  padding: 20px 0;
  margin: 35px auto;
  max-width: 900px;
}
:is(.bbs, .bbs-admin) .post-comments form,
:is(.bbs, .bbs-admin) .submission form {
  max-width: 700px;
}
:is(.bbs, .bbs-admin) .about-page {
  max-width: 950px;
  margin: auto;
}
:is(.bbs, .bbs-admin) .about-block {
  background: none;
  border: 0;
  padding: 20px 0;
  border-bottom: 1px solid #34483a;
}
:is(.bbs, .bbs-admin) .about-block img {
  max-height: 500px;
  object-fit: contain;
  max-width: 100%;
}
/* A single player DOM lives outside main. Navigation does not recreate its audio.
   Official provider iframes have enough height and are never clipped/overlaid. */
#shared-player {
  border-top: 1px solid #536054;
  margin: 35px 0 0;
  padding: 20px 0;
}
.source-tabs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
:is(.bbs, .bbs-admin) .source-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 8px 0;
  margin-right: 14px;
}
:is(.bbs, .bbs-admin) .source-tabs .selected {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.source-picker {
  max-width: 650px;
}
.source-picker span {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted);
}
#media-host iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 180px;
  max-width: 100%;
}
#media-host audio {
  display: block;
  width: 100%;
  height: 54px;
  max-width: 700px;
}
#player-message {
  font-size: 13px;
  color: var(--muted);
}
@keyframes signal {
  50% {
    opacity: 0.4;
    transform: translateX(2px);
  }
}
/* Admin additions use flexible rows instead of raw JSON editing. */
.network-admin fieldset {
  min-width: 0;
  border: 1px solid #61735d;
  padding: 15px;
  margin: 15px 0;
}
.folder-admin-row,
.link-admin-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.folder-admin-row label,
.link-admin-row label {
  flex: 1;
  min-width: 150px;
}
.placement-admin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.inbox-item {
  border-top: 1px solid #63705b;
  padding: 20px 0;
  overflow-wrap: anywhere;
}
.network-feedback {
  color: #b7dfb1;
}
/* Mobile uses the same ordinary links and larger touch targets. Long titles
   wrap as complete words; folder/file layouts never force horizontal scrolling. */
@media (max-width: 700px) {
  body:is(.bbs, .bbs-admin) {
    padding: 20px 16px 0;
    font-size: 14px;
  }
  .bbs-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .bbs-status {
    text-align: left;
    font-size: 10px;
  }
  :is(.bbs, .bbs-admin) nav {
    gap: 6px 18px;
  }
  :is(.bbs, .bbs-admin) nav a {
    font-size: 13px;
  }
  .featured-entry .writing-preview:has(img),
  .writing-preview:has(img) {
    display: flex;
    flex-direction: column;
  }
  .featured-entry .writing-preview > div {
    order: -1;
  }
  .writing-preview > a {
    max-width: 100%;
    width: 100%;
  }
  .writing-preview img,
  .featured-entry .writing-preview img {
    height: 210px;
  }
  .file-row {
    grid-template-columns: 46px minmax(0, 1fr) 60px;
    gap: 10px;
  }
  .file-row .meta {
    grid-column: 2;
    font-size: 10px;
  }
  .file-row time {
    grid-column: 2;
  }
  .file-row .file-open {
    grid-column: 3;
    grid-row: 1;
  }
  .file-row img {
    width: 46px;
    height: 45px;
  }
  .file-list.gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .folder-links {
    gap: 12px 25px;
  }
  .directory-tools {
    align-items: start;
    gap: 5px;
    flex-wrap: wrap;
  }
  :is(.bbs, .bbs-admin) footer {
    flex-direction: column;
  }
  .placement-admin {
    grid-template-columns: 1fr;
  }
  :is(.bbs, .bbs-admin) .about-block {
    display: block;
  }
  :is(.bbs, .bbs-admin) .about-block figure {
    margin: 15px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.bbs, .bbs-admin) * {
    scroll-behavior: auto !important;
  }
}

/* Admin uses the public terminal design too. These overrides remove the old
   decorative header and print-poster typography; forms retain their handlers. */
.bbs-admin {
  --paper: #e6e5d9;
  --acid: #acd8af;
  --line: #405447;
  --muted: #acb9ae;
}
.bbs-admin .network-tree,
.bbs-admin .network-eye,
.bbs-admin #notice {
  display: none;
}
.bbs-admin .site-header {
  border-bottom: 1px solid #536054;
  padding-bottom: 22px;
}
.bbs-admin .masthead {
  margin: 0 0 12px;
  max-width: none;
  font-size: 28px;
}
.bbs-admin .masthead span,
.bbs-admin .masthead i {
  display: inline;
  background: none;
  color: inherit;
  transform: none;
  clip-path: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-shadow: none;
}
.bbs-admin .masthead.has-logo span {
  display: none;
}
.bbs-admin .logo-image {
  position: static;
  max-height: 65px;
  max-width: 230px;
  object-fit: contain;
}
.bbs-admin .topline {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
}
.bbs-admin .home-link {
  font: inherit;
  font-size: 13px;
  border: 0;
  padding: 0;
}
.bbs-admin .topline nav {
  flex: 1;
}
.bbs-admin .headernote {
  font: inherit;
  font-size: 12px;
  text-align: left;
  margin: 14px 0 0;
  color: #acb9ae;
  max-width: 80ch;
}
.bbs-admin main {
  padding-top: 28px;
}
.bbs-admin .studio {
  max-width: none;
  margin: 0;
}
.bbs-admin .sectionhead {
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bbs-admin .sectionhead h1 {
  font-size: 26px;
  margin: 0;
}
.bbs-admin .studio h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.bbs-admin .studio h3 {
  font-size: 17px;
  margin: 24px 0 12px;
}
.bbs-admin .studio h4 {
  font-size: 15px;
}
.bbs-admin .studio form {
  padding: 20px;
  background: #0e1712;
  border: 1px solid #34483a;
  margin: 22px 0;
  border-radius: 2px;
  box-shadow: none;
}
.bbs-admin .studio label {
  font-weight: 400;
  font-size: 13px;
  margin: 14px 0;
}
.bbs-admin textarea {
  min-height: 130px;
  resize: vertical;
}
.bbs-admin .copy-fields textarea {
  min-height: 90px;
}
.bbs-admin .studio summary {
  font:
    500 17px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0;
  color: #acd8af;
  padding: 18px 0;
  cursor: pointer;
  text-transform: none;
}
.bbs-admin details {
  border-top: 1px solid #405447;
  background: none;
  padding: 0;
  margin: 16px 0;
}
.bbs-admin .studio-settings {
  margin-top: 25px;
}
.bbs-admin fieldset {
  border: 1px solid #405447;
  min-width: 0;
}
.bbs-admin legend {
  font-size: 12px;
  color: #acb9ae;
  padding: 0 6px;
}
.bbs-admin .copy-fields,
.bbs-admin .labels-grid,
.bbs-admin .command-names-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bbs-admin .listrow {
  flex-wrap: wrap;
  gap: 14px;
}
.bbs-admin #login,
.bbs-admin #setup {
  max-width: 620px;
}
.bbs-admin .hint {
  max-width: 85ch;
}
.bbs-admin footer {
  margin-top: 28px;
}
@media (max-width: 700px) {
  .bbs-admin .topline {
    display: block;
  }
  .bbs-admin .topline nav {
    margin-top: 14px;
  }
  .bbs-admin .studio form {
    padding: 14px;
  }
  .bbs-admin .copy-fields,
  .bbs-admin .labels-grid,
  .bbs-admin .command-names-grid {
    grid-template-columns: 1fr;
  }
  .bbs-admin .folder-admin-row,
  .bbs-admin .link-admin-row {
    display: block;
  }
  .bbs-admin .sectionhead h1 {
    font-size: 22px;
  }
}

/* A simple vertical feed separates posts without reusing archive file rows. */
.home-feed .writing-preview {
  margin: 0;
  padding: 24px 0;
}
.home-feed .writing-preview + .writing-preview {
  border-top: 1px solid #536054;
}
.home-feed .writing-preview:first-of-type {
  padding-top: 0;
}

/* A small, readable footer link leads to the secondary feed. */
.bbs .other-business-link {
  font-size: 12px;
  color: var(--muted);
}
.bbs footer {
  flex-wrap: wrap;
}
.site-premise {
  border: 1px solid #536054;
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 0 0 26px;
}
.site-premise h2 {
  margin: 4px 0 12px;
}
.site-premise h2 a {
  color: var(--ink);
  text-decoration: none;
}
.site-premise p {
  font-size: 14px;
}

/* Imageboard-inspired conversations use the current restrained terminal colors. */
.bbs .discussion-comment {
  padding: 16px;
  margin: 12px 0;
  background: #111b15;
  border: 1px solid #3a5040;
  border-left: 3px solid #6f9876;
}
.bbs .discussion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 12px;
}
.bbs .discussion-meta strong {
  color: #b4d2a8;
}
.bbs .discussion-meta button,
.bbs .discussion-quote {
  padding: 2px 5px;
  min-height: 32px;
  font-size: 12px;
}
.discussion-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0;
  line-height: 1.7;
}
.discussion-greentext {
  color: #a7c78c;
}
.discussion-pages,
.discussion-target {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.discussion-target {
  padding: 12px;
  border: 1px solid #59735e;
}
.discussion-inline-preview {
  margin-top: 12px;
  padding: 10px;
  border-top: 1px dashed #6f9876;
}
.discussion-inline-preview .discussion-comment {
  margin-bottom: 0;
}
.discussion-backlinks {
  font-size: 12px;
  color: #acb9ae;
}
.discussion-target[hidden],
.discussion-inline-preview[hidden],
#comment-form[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .bbs .discussion-comment {
    padding: 12px;
  }
  .discussion-inline-preview {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Scope all workspace styles to the private portal; public pages keep their theme. */
.bbs-admin .department-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.bbs-admin [hidden] {
  display: none !important;
}
.bbs-admin .admin-tasks {
  display: grid;
  gap: 6px;
  position: sticky;
  top: 18px;
  border: 1px solid #35483d;
  padding: 12px;
}
.bbs-admin .admin-tasks button {
  text-align: left;
  background: transparent;
  color: #b8c6bb;
  border: 1px solid transparent;
  padding: 12px;
  font: inherit;
  cursor: pointer;
}
.bbs-admin .admin-tasks button[aria-pressed="true"] {
  background: #24372b;
  border-color: #7a9b82;
  color: #f0f0df;
}
.bbs-admin .admin-page {
  min-width: 0;
}
.bbs-admin .admin-page > h2 {
  margin-top: 0;
}
.bbs-admin .admin-page details {
  margin: 16px 0;
  border: 1px solid #35483d;
  padding: 16px;
}
.bbs-admin .admin-page summary {
  cursor: pointer;
  color: #c1d4bc;
  font-weight: 600;
}
.bbs-admin .admin-finder {
  margin: 24px 0;
}
.bbs-admin .admin-finder input {
  max-width: 650px;
}
.bbs-admin .admin-search-results {
  display: grid;
  gap: 5px;
  max-height: 260px;
  overflow: auto;
}
.bbs-admin .admin-search-results button {
  text-align: left;
}
.bbs-admin .admin-page .network-admin {
  border: 0;
  padding: 0;
}
.bbs-admin .admin-page .copy-fields {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bbs-admin .admin-page form {
  max-width: 100%;
}
.bbs-admin .admin-page .folder-admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bbs-admin .admin-page input,
.bbs-admin .admin-page select,
.bbs-admin .admin-page textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.bbs-admin button:focus-visible,
.bbs-admin summary:focus-visible {
  outline: 2px solid #b4d2a8;
  outline-offset: 4px;
}
@media (max-width: 800px) {
  .bbs-admin .department-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bbs-admin .admin-tasks {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bbs-admin .admin-page .folder-admin-row {
    grid-template-columns: 1fr;
  }
  .bbs-admin .admin-page .copy-fields {
    grid-template-columns: 1fr;
  }
}

/* [A11Y-01] Keyboard users can skip the repeated header. */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 20px;
  top: 10px;
  z-index: 100;
  background: #101914;
  padding: 12px;
}

/* The shop is visible in the main publication. The personnel link stays small
 * in the secondary footer, alongside the other supplementary links. */
.bbs .personnel-link {
  font-size: 12px;
  color: var(--muted);
}
.publication-nav {
  margin-top: 12px;
}

/* [CSS-LAYOUT] A tiny static band spans the footer. Wrapping prevents sideways
 * scrolling on phones. Noise and links share their resting color on purpose. */
.bbs .footer-corruption {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .5625rem;
  line-height: 1.65;
  letter-spacing: .08em;
  color: #353934;
  overflow-wrap: anywhere;
  user-select: none;
}
.bbs .footer-corruption a {
  display: inline;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  white-space: nowrap;
}
/* [CSS-ACCESS] Keyboard focus reveals the same link as hover. The outline helps
 * keyboard visitors find it; assistive technology reads the descriptive label. */
.bbs .footer-corruption a:hover,
.bbs .footer-corruption a:focus-visible {
  color: #b9a36d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bbs .footer-corruption a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
/* Touch has no hover: the actual words still work as ordinary one-tap links. */

/* [CSS-LAYOUT] Official notices and radio episodes stay within the reading column.
 * These additions use existing colors and spacing rather than another theme. */
.secondary-note { color: var(--muted); margin: 0 0 28px; }
.department-memo, .missing-document { max-width: 70ch; padding: 20px 0 40px; }
.department-memo .meta, .missing-document .meta { color: var(--muted); }
.episode-player { margin: 22px 0; border-block: 1px solid #353d35; padding: 16px 0; }
.episode-player iframe { display: block; max-width: 100%; border: 0; }
.episode-tracklist { margin-top: 16px; }
.episode-tracklist li { margin: 6px 0; overflow-wrap: anywhere; }
