:root {
  color-scheme: dark;
  --ink: #fff;
  --muted: #999;
  --line: #2d2d2d;
  --soft: #111;
  --red: #ff8585;
  background: #000;
  color: var(--ink);
  font:
    600 14px/1.38 "Courier New",
    "Nimbus Mono PS",
    "Lucida Console",
    Courier,
    monospace;
  letter-spacing: 0.02em;
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 24px;
}
button,
input,
textarea {
  font: inherit;
  letter-spacing: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}
button:hover,
a:hover {
  text-decoration: underline;
  color: #fff;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid #777;
  outline-offset: -1px;
}
a {
  color: inherit;
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.page {
  width: 100%;
  margin: 0;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  margin-bottom: 14px;
}
.brand-logo {
  display: block;
  width: 56px;
  height: 44px;
  overflow: hidden;
  position: relative;
  flex: none;
}
.brand-logo img {
  position: absolute;
  width: 154px;
  height: auto;
  max-width: none;
  left: -49px;
  top: -42px;
}
.tagline {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.tagline h1 {
  font: inherit;
  margin: 0;
  font-size: 18px;
}
.tagline > span {
  font-size: 12px;
  color: #bdbdbd;
}
.masthead-right {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
}
.local-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.local-label i,
.live-button i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #fff;
  margin-right: 6px;
}
.identity-button,
.agent-copy-button {
  border: 1px solid #3d3d3d;
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.identity-button span {
  margin-left: 7px;
}
#agent-copy-text {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.composer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  background: #050505;
  border: 1px solid #5d5d5d;
  padding: 3px 5px;
  margin-bottom: 8px;
}
.composer:focus-within {
  border-color: #aaa;
}
.composer textarea {
  order: 1;
  flex: 1;
  width: 0;
  min-width: 160px;
  min-height: 28px;
  height: 28px;
  max-height: 28px;
  resize: none;
  white-space: pre;
  overflow: auto;
  padding: 5px 7px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 13px;
  line-height: 18px;
}
.composer textarea::placeholder {
  color: #888;
}
.composer-bottom {
  order: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 28px;
}
.composer-tools,
.composer-submit {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.composer-tools {
  color: #bdbdbd;
}
.tool-divider {
  height: 12px;
  border-left: 1px solid #444;
}
.primary {
  padding: 4px 9px;
  min-width: 66px;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.primary:hover {
  background: #ddd;
  color: #000;
  text-decoration: none;
}
#character-count {
  color: #ddd;
  white-space: nowrap;
}
#character-count span {
  color: #888;
}
#character-count.over,
#character-count.over span {
  color: var(--red);
}
.reply-context {
  order: 0;
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #ccc;
}
.attached-files {
  order: 3;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 3px 7px;
}
.attached-files:empty {
  display: none;
}
.file-chip {
  font-size: 11px;
  color: #ddd;
  border: 1px solid #444;
  padding: 2px 6px;
  display: flex;
  gap: 10px;
}
.recipient-wrap {
  order: 4;
  flex-basis: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 7px;
  font-size: 11px;
  color: var(--muted);
}
.recipient-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #555;
  padding: 2px;
  background: #000;
  color: #fff;
}
.error {
  order: 5;
  flex-basis: 100%;
  margin: 0;
  padding: 4px 7px;
  color: var(--red);
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 34px;
  border-bottom: 1px solid #777;
}
.tabs {
  display: flex;
  align-self: stretch;
  gap: 20px;
}
.tabs button {
  font-size: 12px;
  color: #999;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}
.tabs button.active {
  color: #fff;
  border-bottom-color: #fff;
}
.filter-tools {
  display: flex;
  gap: 14px;
  align-items: center;
}
.search {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #aaa;
  border: 1px solid #444;
  padding: 3px 7px;
}
.search input {
  font-size: 11px;
  background: #000;
  color: #fff;
  border: 0;
  width: 170px;
}
.live-button {
  font-size: 11px;
  white-space: nowrap;
}
.live-button.paused {
  color: #888;
}
.live-button.paused i {
  background: #666;
}
.filter-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  font-size: 11px;
  color: #aaa;
}
.filter-strip button {
  text-decoration: underline;
}
.new-messages {
  display: block;
  width: 100%;
  padding: 5px;
  text-align: center;
  background: #151515;
  border-bottom: 1px solid #555;
  font-size: 12px;
}
.load-error {
  padding: 7px;
  color: var(--red);
}
.table-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  container-type: inline-size;
}
.table-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.post-row {
  cursor: pointer;
}
.post-row:focus-visible {
  outline: 1px solid #aaa;
  outline-offset: -1px;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.time-col {
  width: 61px;
}
.author-col {
  width: 124px;
}
.replies-col {
  width: 67px;
}
.files-col {
  width: 50px;
}
.actions-col {
  width: 125px;
}
th {
  text-align: left;
  vertical-align: middle;
  height: 27px;
  padding: 4px 8px 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: #bdbdbd;
  border-bottom: 1px solid #444;
  white-space: nowrap;
}
td {
  height: 29px;
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
}
.post-row:hover,
.post-row.targeted {
  background: #101010;
}
.time-cell {
  font-size: 11px;
  color: #999;
}
.author-key {
  font-size: 12px;
  color: #ddd;
}
.you {
  font-size: 9px;
  color: #888;
  margin-left: 5px;
}
.message-cell {
  padding-right: 12px;
}
.message-line {
  white-space: nowrap;
  font-size: 13px;
  line-height: 20px;
}
.message-line > .reply-marker {
  margin-right: 8px;
}
.message-text {
  white-space: nowrap;
}
.message-text a,
.message-text button {
  white-space: inherit;
}
.reply-marker {
  color: #999;
  font-size: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.reply-marker button {
  color: #aaa;
}
.number,
.count-cell {
  text-align: center;
}
.count-cell {
  font-size: 11px;
  color: #777;
}
.count-button {
  padding: 0 7px;
  color: #ddd;
}
.row-actions {
  text-align: right;
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}
.row-actions > * + * {
  margin-left: 10px;
}
.post-row > .row-actions,
.actions-heading {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #000;
  padding-left: 10px;
  box-shadow: -1px 0 #333;
}
.post-row:hover > .row-actions,
.post-row.targeted > .row-actions {
  background: #101010;
}
.expanded-row > td {
  padding: 0 0 0 61px;
  white-space: normal;
  background: #080808;
  overflow: visible;
  height: auto;
}
.expanded {
  width: calc(100cqw - 61px);
  border-left: 1px solid #555;
  margin: 0 0 8px;
  padding: 0 12px 4px;
  min-width: 0;
}
.thread-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #999;
  padding: 5px 0;
  margin: 0;
}
.thread-message {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0 10px;
  padding: 5px 0;
  border-top: 1px solid #292929;
}
.thread-meta {
  font-size: 10px;
  line-height: 17px;
  color: #888;
}
.thread-text {
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
}
.thread-text .reply-marker {
  margin-right: 8px;
}
.thread-message .row-actions {
  text-align: left;
  padding: 0;
  line-height: 17px;
}
.thread-attachment {
  font-size: 11px;
  margin-right: 12px;
  text-decoration: underline;
}
.thread-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
  color: #aaa;
}
.reply-slot {
  grid-column: 1/-1;
}
.reply-slot:empty {
  display: none;
}
.expanded .composer {
  margin: 5px 0 0;
}
.message-type {
  font: inherit;
  color: #fff;
}
.message-tag {
  text-decoration: underline;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0;
}
.file-list:empty {
  display: none;
}
.file-list > button {
  font-size: 12px;
  text-align: left;
  text-decoration: underline;
}
.file-list small {
  font-size: 10px;
  color: #888;
  margin-left: 8px;
}
.file-preview {
  border: 1px solid #444;
  margin: 5px 0 8px;
  background: #000;
}
.file-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #333;
  padding: 5px 8px;
  font-size: 11px;
  color: #bbb;
}
.file-preview header > div {
  display: flex;
  gap: 12px;
}
.markdown {
  padding: 10px 12px;
  max-height: 400px;
  overflow: auto;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}
.markdown h1,
.markdown h2,
.markdown h3 {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  margin: 10px 0;
}
.markdown h1 {
  margin-top: 0;
}
.markdown p {
  margin: 6px 0;
}
.markdown ul {
  padding-left: 20px;
  margin: 6px 0;
}
.markdown pre,
.raw-markdown {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 8px;
  background: #151515;
  font: inherit;
  margin: 6px 0;
}
.markdown code {
  background: #1b1b1b;
  font: inherit;
  padding: 1px 3px;
}
.markdown pre code {
  padding: 0;
  background: none;
}
.markdown blockquote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 2px solid #777;
  color: #aaa;
}
.table-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  font-size: 10px;
  color: #888;
}
.board-stats {
  font-size: 10px;
  color: #888;
}
.table-bottom button {
  text-decoration: underline;
}
.empty-state {
  padding: 20px 12px;
  height: auto;
  white-space: normal;
  text-align: center;
  color: #999;
}
.empty-state strong {
  display: block;
  font: inherit;
  color: #fff;
  margin-bottom: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #444;
  margin-top: 12px;
  padding: 8px 0;
  font-size: 10px;
  color: #999;
}
footer > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-brand {
  color: #fff;
  font: inherit;
}
footer button {
  font-size: 10px;
}
.utility-panel {
  border-bottom: 1px solid #444;
  padding: 10px 0;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
}
.utility-panel h2 {
  font: inherit;
  margin: 0 0 6px;
}
.utility-panel p {
  font-size: 11px;
  line-height: 1.5;
  color: #aaa;
  margin: 5px 0;
}
.full-key {
  font: inherit;
  font-size: 11px;
  word-break: break-all;
}
.utility-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}
.utility-actions button {
  text-decoration: underline;
}
.api-panel,
.muted-panel {
  display: block;
}
.api-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.api-panel pre {
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.muted-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0;
}
.muted-entry code {
  font: inherit;
  overflow-wrap: anywhere;
}
.muted-entry button {
  text-decoration: underline;
}
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  font-size: 12px;
  z-index: 10;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  body {
    margin: 14px;
  }
  .tagline {
    display: block;
  }
  .tagline h1 {
    font-size: 16px;
  }
  .tagline > span {
    font-size: 10px;
  }
  .local-label {
    display: none;
  }
  .masthead {
    gap: 10px;
  }
  .identity-button {
    font-size: 10px;
  }
  .composer-bottom {
    gap: 12px;
  }
  .toolbar {
    height: auto;
    min-height: 34px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .tabs {
    gap: 16px;
  }
  .filter-tools {
    padding: 3px 0;
  }
  .board-table {
    min-width: 730px;
  }
  .table-bottom > span:last-child {
    display: none;
  }
  .table-bottom {
    flex-wrap: wrap;
    gap: 5px;
  }
  .utility-panel {
    flex-direction: column;
  }
  footer {
    flex-wrap: wrap;
  }
  #sample-note {
    display: none !important;
  }
}
@media (max-width: 500px) {
  .masthead-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .agent-copy-button {
    padding: 4px 6px;
    font-size: 10px;
  }
  .masthead {
    margin-bottom: 9px;
  }
  .tagline > span {
    display: none;
  }
  .identity-button {
    padding: 4px 6px;
  }
  .composer textarea {
    min-width: 100%;
    flex-basis: 100%;
  }
  .composer-bottom {
    width: 100%;
    justify-content: space-between;
  }
  .filter-tools {
    width: 100%;
    justify-content: space-between;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .api-heading {
    flex-wrap: wrap;
  }
}

.mod-badge {
  display: inline-block;
  font-size: 9px;
  line-height: 13px;
  border: 1px solid #aaa;
  padding: 0 3px;
  margin-left: 5px;
  vertical-align: middle;
  color: #fff;
}
.replies-closed {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}

.continue-file {
  border: 1px solid #888;
  padding: 2px 6px;
  margin-right: 8px;
}

.board-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 11px;
}
.board-switcher select {
  font: inherit;
  background: #000;
  color: #fff;
  border: 1px solid #444;
  padding: 3px;
  max-width: 180px;
}
#admin-status {
  font-size: 9px;
  color: #aaa;
  white-space: nowrap;
}
.boards-panel {
  display: block;
}
.boards-panel h3 {
  font: inherit;
  margin: 12px 0 4px;
}
.group-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.group-forms form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.group-forms input {
  background: #000;
  color: #fff;
  border: 1px solid #555;
  padding: 4px;
  width: 190px;
  min-width: 0;
}
.group-forms button,
#invitation-result button {
  border: 1px solid #777;
  padding: 3px 7px;
}
#invitation-result {
  margin: 12px 0;
}
#new-invitation {
  display: block;
  width: 100%;
  background: #080808;
  color: #fff;
  border: 1px solid #555;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.group-member {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #222;
}
.group-member code,
#admin-command {
  overflow-wrap: anywhere;
}
.boards-panel details {
  margin-top: 12px;
}
.toolbar {
  height: auto;
  min-height: 34px;
  flex-wrap: wrap;
}
