/* Generated by scripts/build-assets.php from public/assets/src/css/. Edit those files, then rebuild. */
/* ==========================================================================
   Tokens — dark is the default, light comes from [data-theme="light"]
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #191b1f;
  --surface-2: #202329;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #30343b;
  --accent: #d97732;
  --accent-hover: #f08a40;
  --danger: #ef6b6b;
  --success: #62c38a;
  --link: #e3a06d;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #fff;
  --surface-2: #f8f8f8;
  --text: #202124;
  --muted: #626973;
  --line: #d8dce2;
  --accent: #a94b10;
  --accent-hover: #843b0d;
  --danger: #b42318;
  --success: #167144;
  --link: #8c3d0c;
}

/* ==========================================================================
   Base elements
   ========================================================================== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Site header, menu, shell and footer
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 5;
  min-height: 66px;
  padding: 0 max(22px, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text);
}
.site-header > .brand {
  padding: 0;
}
.brand span {
  color: var(--accent);
  margin-left: 8px;
}
.site-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-user {
  color: var(--muted);
}
.shell {
  width: min(100% - 40px, 1000px);
  min-height: calc(100vh - 130px);
  margin: 36px auto;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px max(22px, calc((100vw - 1100px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.site-menu {
  position: relative;
  margin-left: auto;
}
.site-menu summary {
  list-style: none;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.site-menu summary::-webkit-details-marker {
  display: none;
}
.site-menu summary::before {
  content: "";
  width: 16px;
  height: 12px;
  flex: 0 0 16px;
  background: linear-gradient(
    to bottom,
    var(--text) 0 2px,
    transparent 2px 5px,
    var(--text) 5px 7px,
    transparent 7px 10px,
    var(--text) 10px 12px
  );
}
.site-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}
.site-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 240px;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  display: grid;
  gap: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 10px 28px #0007;
}
.site-menu nav > .nav-user,
.site-menu nav > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  border-bottom: 1px solid var(--line);
}
.site-menu nav > a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.site-menu nav > a:last-of-type {
  border-bottom: 0;
}
.site-menu nav > .nav-user {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.site-menu nav form {
  display: block;
  margin: 3px 0 0;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}
.site-menu nav form button {
  min-height: 40px;
  margin-top: 5px;
}
.site-menu summary:focus-visible,
.site-menu nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.desktop-nav form {
  margin: 0;
}
.mobile-header-actions {
  display: none;
}
.mobile-header-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-2);
}
.mobile-header-icon:hover {
  background: var(--surface);
  text-decoration: none;
}
.mobile-header-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-header-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.live-indicator:not([hidden]) {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.mobile-header-icon .live-indicator:not([hidden]) {
  position: absolute;
  right: -5px;
  bottom: -5px;
  margin: 0;
  padding: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

/* ==========================================================================
   Page headings, cards and panels
   ========================================================================== */
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading h1,
.auth-card h1,
.error-card h1 {
  margin: 0.1em 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}
.page-heading p {
  color: var(--muted);
  margin: 0.4em 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent) !important;
}
.posts,
.thread-list,
.board-list {
  display: grid;
  gap: 12px;
}
.thread-row,
.post,
.panel,
.auth-card,
.error-card,
.empty-state,
.board-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}
.board-card,
.thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.thread-row h2,
.board-card h2 {
  margin: 0;
  font-size: 18px;
}
.thread-row p,
.board-card p {
  margin: 0.4em 0 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.thread-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  white-space: nowrap;
}
.tag {
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
}
.panel {
  margin: 18px 0;
}
.panel h2 {
  font-size: 18px;
  margin-top: 0;
}
.compose summary {
  cursor: pointer;
  color: var(--link);
  font-weight: 700;
}
.compose[open] summary {
  margin-bottom: 16px;
}
.auth-card,
.error-card {
  max-width: 520px;
  margin: 7vh auto;
  padding: 28px;
}
.narrow {
  max-width: 600px;
}
.error-card p {
  margin: 20px 0;
}
.empty-state {
  text-align: center;
  color: var(--muted);
}

/* ==========================================================================
   Forms, buttons and notices
   ========================================================================== */
form {
  display: grid;
  gap: 12px;
}
form.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.captcha-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.captcha-field input {
  width: 70px;
}
.captcha-image-field input {
  width: 96px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.captcha-image {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #eee;
}
input,
textarea,
select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  font: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea {
  resize: vertical;
}
button,
.button {
  border: 0;
  border-radius: 4px;
  padding: 9px 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}
button:hover,
.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.button.secondary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.link-button {
  padding: 0;
  background: none;
  color: var(--link);
  font-weight: 600;
}
.link-button:hover {
  background: none;
  text-decoration: underline;
}
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 4px;
}
.notice-success {
  border-left-color: var(--success);
}
.notice-error {
  border-left-color: var(--danger);
}
.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;
}
.checkbox-setting {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox-setting input {
  width: 18px;
  height: 18px;
}
.realtime-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 13px;
}
.realtime-controls p {
  margin: 0;
}
.realtime-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.realtime-controls input {
  width: 72px;
  padding: 6px;
}
.realtime-controls [role="status"] {
  color: var(--muted);
}
.realtime-controls[hidden] {
  display: none;
}
.post-actions button:disabled,
.site-footer button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ==========================================================================
   Boards, thread listings and badges
   ========================================================================== */
.staff-badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -3px;
  margin-right: 4px;
}
.staff-badge-glyph {
  margin-right: 4px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
  color: var(--muted);
}
.thread-context {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -10px 0 18px;
}
.tag-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.tag[style*="--flair-color"] {
  border-color: var(--flair-color);
  color: var(--flair-color);
}
.staff-badge,
.age-badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--muted);
  vertical-align: middle;
}
.staff-badge {
  color: var(--accent);
  border-color: var(--accent);
}
.post-link {
  float: right;
}
.moderation-tools summary {
  cursor: pointer;
  color: var(--link);
  font-weight: 700;
}
.profile-post {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.profile-post p {
  margin: 5px 0;
}
.secondary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ==========================================================================
   Messages, notifications and the conversation page
   ========================================================================== */
.conversation-list,
.message-list,
.notification-list {
  display: grid;
  gap: 10px;
}
.conversation-row {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.conversation-row h2 {
  font-size: 17px;
  margin: 0;
}
.conversation-row p,
.message .message-body {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.message {
  max-width: 85%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.message-own {
  justify-self: end;
  border-color: var(--accent);
}
.message header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.unread-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.notification-row {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.notification-row > div {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}
.notification-unread {
  border-left: 3px solid var(--accent);
}
.notification-row time {
  margin-left: 12px;
}
.notification-row .muted,
.conversation-row time {
  white-space: nowrap;
}
.message-history {
  max-height: min(65vh, 720px);
  min-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  overflow-anchor: none;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.message-history-control {
  text-align: center;
  margin: 0 0 10px;
}
.message-history > [data-history-status]:empty {
  display: none;
}
.message-list {
  margin: 0;
}
.conversation-shell {
  width: min(calc(100% - 40px), 1000px);
}
.conversation-site-header {
  flex: 0 0 auto;
  min-height: 58px;
  padding: 8px max(22px, calc((100vw - 1100px) / 2));
  gap: 16px;
}
.conversation-footer,
.conversation-shell > .realtime-controls {
  display: none;
}
.conversation-page {
  gap: 14px;
}
.conversation-page > .page-heading {
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
}
.conversation-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}
.conversation-contact > div {
  min-width: 0;
}
.conversation-contact .eyebrow {
  margin: 0;
  font-size: 10px;
}
.conversation-contact h1 {
  overflow-wrap: anywhere;
}
.conversation-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.conversation-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}
.conversation-back span {
  font-size: 14px;
}
.conversation-refresh {
  white-space: nowrap;
}
.conversation-page > .message-history {
  background: var(--bg);
  border: 0;
  border-radius: 8px;
  padding: 14px clamp(12px, 3vw, 32px);
}
.conversation-page .message-list {
  width: min(100%, 960px);
  margin: 0 auto;
  gap: 12px;
}
.conversation-page .message {
  width: fit-content;
  min-width: min(180px, 85%);
  max-width: min(78%, 680px);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
  background: var(--surface);
  box-shadow: 0 2px 8px #0002;
}
.conversation-page .message-own {
  justify-self: end;
  border-color: var(--accent);
  border-radius: 16px 16px 5px 16px;
  background: var(--surface-2);
}
.conversation-page .message header {
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.conversation-page .message header strong {
  color: var(--text);
}
.conversation-page .message header time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.conversation-page .message .message-body {
  margin-top: 6px;
  line-height: 1.5;
}
.conversation-page .message-history-control .button {
  padding: 7px 12px;
  font-size: 13px;
}
.conversation-page > .conversation-composer {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.conversation-composer form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
}
.conversation-composer .composer-message {
  grid-column: 1/-1;
  color: var(--text);
  font-weight: 650;
}
.conversation-composer textarea {
  min-height: 58px;
  max-height: 120px;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--bg);
}
.composer-captcha {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}
.composer-captcha .captcha-field {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}
.composer-captcha .captcha-field input {
  width: 58px;
  padding: 6px 8px;
}
.composer-toolbar {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.composer-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.composer-attachment small {
  font-size: 11px;
}
.composer-attachment input {
  width: min(230px, 24vw);
  padding: 5px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.composer-toolbar button {
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 8px;
}
.conversation-composer [data-message-status] {
  grid-column: 1/-1;
  min-height: 0;
  font-size: 12px;
}
.conversation-composer [data-message-status]:empty {
  display: none;
}

/* ==========================================================================
   Thread page: Reddit-style comment threads
   Replies are not cards: they are plain text with a thin vertical rail per
   ancestor level. One shared reply box is moved under the comment you reply
   to (no per-comment form).
   ========================================================================== */
.posts {
  position: relative;
  --indent: 22px;
  --rail: color-mix(in srgb, var(--muted) 45%, transparent);
  gap: 0;
}
.post {
  margin-left: calc(min(var(--depth), 8) * 18px);
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px #0002;
}
.post-root {
  border-left: 3px solid var(--accent);
  margin-bottom: 14px;
}
.post-reply {
  position: relative;
  margin-left: calc(min(var(--depth), 5) * 18px);
  padding: 6px 0 8px 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.post header {
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.post header .muted {
  font-size: 12px;
}
.post-body {
  white-space: normal;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.post-reply .post-body {
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14.5px;
  line-height: 1.55;
}
.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  margin-top: 2px;
  padding-top: 0;
  border-top: 0;
}
.post-reply .post-actions {
  gap: 8px 14px;
  margin-top: 4px;
  border-top: 0;
  padding-top: 0;
}
.reply-details summary {
  cursor: pointer;
  color: var(--link);
}
.reply-details form {
  margin-top: 10px;
}
.reply-details > summary {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  list-style: none;
}
.reply-details > summary::-webkit-details-marker {
  display: none;
}
.reply-details[open] > summary {
  background: var(--surface);
}
.thread-delete-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  background: var(--surface);
}
.thread-delete-form p {
  margin: 0;
}
.post-deleted .post-body {
  color: var(--muted);
  font-style: italic;
}
.attachments {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 12px;
}
.post-attachment-image {
  display: block;
  max-width: min(100%, 640px);
  max-height: 480px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.post-attachment-video {
  display: block;
  max-width: min(100%, 640px);
  max-height: 480px;
  background: #000;
}
.attachment-link {
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.post-actions .danger,
.thread-delete-form .danger,
.approval-actions form:last-child button {
  background: var(--danger);
  color: #fff;
}
.post-actions .danger:hover,
.thread-delete-form .danger:hover,
.approval-actions form:last-child button:hover {
  background: #c84e4e;
}
.reply-connectors {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.post-reply header {
  gap: 2px 8px;
  margin-bottom: 2px;
  font-size: 12.5px;
}
.post[hidden] {
  display: none;
}
/* rails for replies and for the inline reply box */
.posts > :is(.post-reply, .reply-inline) {
  position: relative;
  margin-left: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 7px,
    var(--rail) 7px,
    var(--rail) 9px,
    transparent 9px,
    transparent var(--indent)
  );
  background-repeat: no-repeat;
}
.posts > .post-reply {
  --rails: calc(min(var(--depth), 8) - 1);
  padding: 6px 0 4px calc(var(--rails) * var(--indent) + 6px);
  background-size: calc(var(--rails) * var(--indent)) 100%;
}
.post-reply header strong {
  font-size: 13px;
}
.post-reply header .age-badge,
.post-reply header .staff-badge {
  font-size: 11px;
}
.post-reply .post-link {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.6;
}
.post-reply .attachments {
  margin-top: 6px;
}

/* collapse toggle: only usable (and shown) with JavaScript */
.post header .collapse-toggle {
  display: none;
  min-width: 0;
  margin: 0 -2px 0 0;
  padding: 0 2px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.js .post-reply header .collapse-toggle {
  display: inline-block;
}
.post header .collapse-toggle:hover,
.post header .collapse-toggle:focus-visible {
  background: none;
  color: var(--link);
}
.post.is-collapsed > :not(header) {
  display: none;
}
.post.is-collapsed header::after {
  content: attr(data-hidden-count);
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

/* compact action row: ▲ ▼ Reply Report Delete */
.post-root .post-actions {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.post-actions form.inline-form {
  display: inline-flex;
  gap: 0;
}
.post-actions .link-button,
.post-actions .reply-details > summary {
  padding: 2px 6px;
  border-radius: 3px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}
.post-actions .link-button:hover,
.post-actions .reply-details > summary:hover,
.post-actions .reply-details[open] > summary {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.post-actions .vote-button {
  padding: 2px 4px;
  font-size: 13px;
}
.post-actions form[data-vote-form]:first-of-type .vote-button:hover {
  color: var(--accent);
}
.post-actions form[data-vote-form] + form[data-vote-form] .vote-button:hover {
  color: var(--danger);
}
.post-actions .reply-details[open] {
  flex-basis: 100%;
  order: 10;
}
.post-actions .reply-details[open] form {
  max-width: 560px;
  margin-top: 6px;
}

/* the single shared reply box */
.posts > .reply-inline {
  margin: 0;
  --depth-cols: min(var(--reply-depth, 1), 8);
  padding: 4px 12px 10px calc(var(--depth-cols) * var(--indent) + 6px);
  background-size: calc(var(--depth-cols) * var(--indent)) 100%;
}
.reply-inline h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.posts > .reply-inline form {
  max-width: 640px;
  gap: 8px;
}
.posts > .reply-inline textarea {
  min-height: 90px;
}
.reply-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.reply-compose-actions [data-reply-cancel][hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   No-JavaScript reply picker
   Each "Reply" is a <label> for a hidden radio button, so choosing a comment
   needs no page load. The one shared reply box opens as a bottom sheet while
   any radio other than #rr-none is checked. With JavaScript the radios are
   removed and the box is moved under the comment instead.
   -------------------------------------------------------------------------- */
.reply-targets input {
  display: none;
}
.reply-targets .who {
  display: none;
}
.reply-targets input:checked + .who {
  display: inline;
  color: var(--text);
}
.reply-link,
[data-reply-cancel] {
  cursor: pointer;
}
html:not(.js) #thread-reply-box {
  display: none;
}
html:not(.js) body:has(.reply-targets input:checked:not(#rr-none)) #thread-reply-box {
  display: block;
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0;
  width: min(760px, 100%);
  max-height: 55vh;
  margin: 0;
  overflow: auto;
  transform: translateX(-50%);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 28px #0009;
}
html:not(.js) body:has(.reply-targets input:checked:not(#rr-none)) {
  padding-bottom: min(55vh, 460px);
}
@supports not selector(:has(*)) {
  /* very old browsers: keep the box visible at the bottom of the page */
  html:not(.js) #thread-reply-box {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Shared report box (same pattern as the shared reply box)
   -------------------------------------------------------------------------- */
.report-targets input {
  display: none;
}
.report-targets .who {
  display: none;
}
.report-targets input:checked + .who {
  display: inline;
  color: var(--text);
}
.report-link,
[data-report-cancel] {
  cursor: pointer;
}
[data-report-composer][hidden] {
  display: none;
}
html:not(.js) #thread-report-box {
  display: none;
}
html:not(.js) body:has(.report-targets input:checked:not(#rp-none)) #thread-report-box {
  display: block;
  position: fixed;
  z-index: 61;
  left: 50%;
  bottom: 0;
  width: min(760px, 100%);
  max-height: 55vh;
  margin: 0;
  overflow: auto;
  transform: translateX(-50%);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 28px #0009;
}
html:not(.js) body:has(.report-targets input:checked:not(#rp-none)) {
  padding-bottom: min(55vh, 460px);
}
@supports not selector(:has(*)) {
  html:not(.js) #thread-report-box {
    display: block;
  }
}

/* ==========================================================================
   Compact board and thread listings (board, feed, search)
   Collapsed "Start a thread" box: scoped to details.compose so it no longer
   overrides the conversation composer or the inline reply box padding.
   ========================================================================== */
.thread-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.thread-list > .thread-row {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  gap: 14px;
  flex-wrap: wrap;
}
.thread-list > .thread-row > div:first-child {
  flex: 1;
  min-width: 0;
}
.thread-row .report-control[open] {
  flex-basis: 100%;
}
.thread-list > .thread-row:last-child {
  border-bottom: 0;
}
.thread-list > .thread-row:hover {
  background: var(--surface-2);
}
.thread-list > .empty-state {
  border: 0;
  border-radius: 0;
}
.thread-row h2 {
  font-size: 16px;
  line-height: 1.3;
}
.thread-row p {
  margin-top: 2px;
}
.thread-row .eyebrow {
  margin: 0 0 2px;
}
.thread-row .tag-list {
  margin-top: 4px;
  gap: 6px;
}
.thread-row .tag {
  font-size: 12px;
  padding: 0 7px;
}
.thread-row .thread-meta {
  font-size: 13px;
  gap: 10px;
}
.rules {
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  margin: 12px 0;
}
.rules h2 {
  font-size: 14px;
  margin: 0 0 2px;
}
.rules p {
  margin: 0;
  color: var(--muted);
}
.page-heading + .notice,
.rules + .notice,
.rules + .compose,
.page-heading + .compose {
  margin: 12px 0;
}
details.compose:not([open]) {
  padding: 12px 16px;
}
.thread-list + .pagination {
  margin: 16px 0;
}

/* ==========================================================================
   Reports, staff, moderation and approvals
   ========================================================================== */
.report-control {
  font-size: 13px;
}
.report-control summary {
  cursor: pointer;
  color: var(--link);
}
.report-control form {
  min-width: min(330px, 80vw);
  margin-top: 8px;
}
.report-card blockquote {
  margin: 8px 0;
  padding: 10px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.staff-list {
  display: grid;
  gap: 8px;
}
.staff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.staff-row .muted {
  margin-left: 8px;
}
.staff-row:has(.staff-row-main) {
  display: block;
}
.staff-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.staff-badge[style*="--badge-color"] {
  color: var(--badge-color);
  border-color: var(--badge-color);
}
/* Vendor badges get a distinct default color; a per-member custom color still wins. */
.staff-badge.staff-vendor:not([style*="--badge-color"]) {
  color: #2f9e62;
  border-color: #2f9e62;
}
.staff-badge-editor {
  margin-top: 8px;
  font-size: 13px;
}
.staff-badge-editor summary {
  cursor: pointer;
  color: var(--link);
}
.staff-badge-editor form {
  max-width: 420px;
  margin-top: 10px;
}
.staff-badge-color {
  display: flex;
  align-items: center;
  gap: 12px;
}
.staff-badge-color input[type="color"] {
  width: 48px;
  height: 32px;
  padding: 2px;
  cursor: pointer;
}
.approval-list {
  display: grid;
  gap: 14px;
}
.approval-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.approval-card-content {
  min-width: 0;
}
.approval-card h2 {
  margin: 0;
  font-size: 18px;
}
.approval-card p {
  overflow-wrap: anywhere;
}
.approval-card-content > p:last-child {
  white-space: normal;
}
.approval-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}
.approval-actions form {
  margin: 0;
}
.approval-actions button {
  min-width: 110px;
}

/* ==========================================================================
   Site admin
   ========================================================================== */
.admin-body {
  background: var(--bg);
}
.admin-header {
  background: #111318;
  border-bottom: 1px solid var(--line);
  padding: 16px max(20px, calc((100vw - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.admin-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.admin-shell {
  width: min(100% - 36px, 1200px);
  margin: 30px auto 60px;
}
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px;
  margin: 16px 0;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}
.admin-stat {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.admin-stat strong {
  font-size: 28px;
}
.table-wrap {
  overflow-x: auto;
}
.admin-search {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.admin-transfer {
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: end;
}
.admin-card details summary {
  cursor: pointer;
  color: var(--link);
}

/* ==========================================================================
   Media queries
   Order matters: 650px rules come before the 700px rules that override
   them, and the short-viewport rules come last.
   ========================================================================== */
@media (max-width: 650px) {
  .site-header {
    padding: 12px 18px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .shell {
    width: calc(100% - 28px);
    margin: 22px auto;
  }
  .board-card,
  .thread-row,
  .page-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer {
    padding: 18px;
  }
  .thread-meta {
    white-space: normal;
  }
  .conversation-row,
  .notification-row,
  .notification-row > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .message {
    max-width: 100%;
  }
  .notification-row time {
    margin-left: 0;
  }
  .posts {
    --indent: 12px;
  }
  .post {
    padding: 14px;
  }
  .post-reply {
    margin-left: calc(min(var(--depth), 4) * 12px);
    padding: 6px 0 8px 16px;
  }
  .post-reply .post-body {
    font-size: 14px;
  }
  .thread-delete-form {
    align-items: flex-start;
    flex-direction: column;
  }
  .thread-list > .thread-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  .thread-row .thread-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
  }
  .page-heading {
    gap: 8px;
    margin-bottom: 16px;
  }
  .staff-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .staff-row-main {
    align-items: flex-start;
    flex-direction: column;
  }
  .approval-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .approval-actions {
    width: 100%;
    flex-direction: row;
  }
  .approval-actions form {
    flex: 1;
  }
  .approval-actions button {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .site-header {
    min-height: 60px;
    padding: 8px 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .brand {
    font-size: 15px;
    white-space: nowrap;
  }
  .desktop-nav {
    display: none;
  }
  /* .site-header nav (0,1,1) would otherwise keep it display: flex */
  .site-header .desktop-nav {
    display: none;
  }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-header-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }
  .site-menu {
    margin-left: 0;
  }
  .site-menu summary {
    min-width: 88px;
    min-height: 44px;
    justify-content: center;
    border-radius: 7px;
    font-size: 14px;
  }
  .site-menu nav {
    position: fixed;
    top: 68px;
    right: 12px;
    width: min(320px, calc(100vw - 24px));
    min-width: 0;
    max-height: calc(100dvh - 82px);
    padding: 10px;
    box-shadow: 0 12px 32px #0009;
  }
  .site-menu nav > a {
    min-height: 48px;
    font-size: 15px;
  }
  .site-menu nav > .nav-user {
    padding: 12px;
    font-size: 13px;
  }
  .site-menu nav form {
    padding: 10px 12px;
  }
  .site-menu nav form button {
    width: 100%;
    min-height: 44px;
    text-align: left;
    font-size: 14px;
  }
  .conversation-site-header .brand {
    font-size: 15px;
    white-space: nowrap;
  }
  .conversation-shell {
    width: calc(100% - 16px);
    margin: 6px auto;
  }
  .conversation-page {
    gap: 8px;
  }
  .conversation-page > .page-heading {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: 0 2px;
    padding: 0 2px 8px;
  }
  .conversation-page > .page-heading h1 {
    font-size: 20px;
  }
  .conversation-page > .page-heading .button {
    padding: 7px 10px;
  }
  .conversation-contact {
    gap: 9px;
  }
  .conversation-contact .eyebrow {
    font-size: 9px;
  }
  .conversation-back {
    font-size: 13px;
    padding: 6px 9px;
  }
  .conversation-back span {
    display: inline;
  }
  .conversation-page > .message-history {
    padding: 8px 4px;
  }
  .message-history-control .button {
    padding: 7px 10px;
  }
  .conversation-page .message-list {
    gap: 9px;
  }
  .conversation-page .message {
    max-width: 88%;
    min-width: min(155px, 82%);
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
  }
  .conversation-page .message-own {
    border-radius: 14px 14px 4px 14px;
  }
  .conversation-page .message header {
    gap: 12px;
    font-size: 11px;
  }
  .conversation-page .message header time {
    text-align: right;
  }
  .conversation-page > .compose form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
  }
  .conversation-page > .compose form > label:first-of-type {
    grid-column: 1/-1;
  }
  .conversation-page > .compose form > label:nth-of-type(2) {
    font-size: 12px;
  }
  .conversation-page > .compose form > [role="status"] {
    grid-column: 1/-1;
  }
  .conversation-page > .compose textarea {
    min-height: 64px;
  }
  .conversation-composer {
    padding: 10px !important;
  }
  .conversation-page > .conversation-composer form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .conversation-composer textarea {
    min-height: 54px;
    padding: 10px;
  }
  .composer-captcha {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .composer-captcha .captcha-field {
    font-size: 11px;
  }
  .composer-toolbar {
    grid-column: 1/-1;
    grid-row: 3;
    justify-content: space-between;
    gap: 8px;
  }
  .composer-attachment {
    display: grid;
    gap: 2px;
    font-size: 11px;
  }
  .composer-attachment input {
    width: min(200px, 50vw);
    padding: 2px 0;
    font-size: 11px;
  }
  .composer-attachment small {
    font-size: 10px;
  }
  .composer-toolbar button {
    padding: 8px 12px;
    font-size: 13px;
  }
  .conversation-page .post-attachment-image,
  .conversation-page .post-attachment-video {
    max-width: 100%;
  }
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-header nav {
    gap: 12px;
  }
  .admin-search {
    grid-template-columns: 1fr;
  }
  .admin-transfer {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px) {
  .site-header {
    padding-inline: 8px;
    gap: 4px;
  }
  .brand {
    font-size: 13px;
    letter-spacing: 0.02em;
  }
  .mobile-header-actions {
    gap: 5px;
  }
  .mobile-header-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .site-menu summary {
    min-width: 78px;
    padding-inline: 8px;
  }
  .site-menu nav {
    right: 8px;
    width: calc(100vw - 16px);
  }
  .conversation-refresh {
    padding: 6px 8px !important;
    font-size: 12px;
  }
  .composer-toolbar button {
    padding: 7px 9px;
  }
  .conversation-page > .message-history {
    padding-inline: 2px;
  }
}
@media (max-height: 560px) {
  .conversation-shell {
    margin: 6px auto;
  }
  .conversation-page > .compose textarea {
    min-height: 52px;
    max-height: 90px;
  }
  .conversation-page > .page-heading h1 {
    font-size: 20px;
  }
}

/* Audit log */
.table-scroll {
  overflow-x: auto;
}
.audit-table {
  width: 100%;
  font-size: 14px;
}
.audit-table td {
  vertical-align: top;
}
.audit-details span {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* PGP challenge messages */
.pgp-message {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre;
}
/* ==========================================================================
   Conversation page: fill the visible screen
   The page is a column the height of the viewport (dvh follows mobile browser bars and, with
   interactive-widget=resizes-content, the on-screen keyboard). Only the message history
   scrolls; the heading and the composer stay in view at every size.
   ========================================================================== */
body.conversation-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.conversation-layout > .conversation-site-header {
  flex: 0 0 auto;
}
body.conversation-layout > main.conversation-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 10px;
  margin-bottom: 10px;
}
body.conversation-layout > main.conversation-shell > .notice {
  flex: 0 0 auto;
  margin-bottom: 8px;
}
.conversation-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.conversation-page > .page-heading {
  flex: 0 0 auto;
  margin-bottom: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.conversation-contact,
.conversation-contact > div {
  min-width: 0;
}
.conversation-contact h1 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}
.conversation-profile-link {
  color: inherit;
  text-decoration: none;
}
.conversation-profile-link:hover,
.conversation-profile-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.conversation-heading-actions {
  flex: 0 0 auto;
}
.conversation-page > .message-history {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: none;
}
.conversation-page > .conversation-composer {
  flex: 0 0 auto;
}
.conversation-page .message .message-body {
  overflow-wrap: anywhere;
}
.conversation-page .message header {
  min-width: 0;
}
.conversation-page .message header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-captcha .captcha-image-field {
  flex-wrap: nowrap;
}

@media (max-width: 650px), (max-height: 520px) {
  body.conversation-layout > main.conversation-shell {
    margin-top: 6px;
    margin-bottom: 6px;
  }
  .conversation-page {
    gap: 6px;
  }
  .conversation-page > .page-heading {
    padding-bottom: 6px;
  }
  .conversation-page > .page-heading h1 {
    font-size: 18px;
  }
  /* Compact composer: the textarea, then captcha beside Send, then the attachment picker. */
  .conversation-composer .composer-message-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .conversation-page > .conversation-composer form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }
  .conversation-page > .conversation-composer textarea {
    height: 44px;
    min-height: 44px;
    max-height: 30dvh;
  }
  .composer-captcha {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .composer-captcha .captcha-image {
    width: 120px;
    height: 40px;
  }
  .composer-captcha .captcha-image-field .captcha-prompt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .composer-captcha .captcha-field input {
    width: 72px;
  }
  .composer-toolbar {
    display: contents;
  }
  .composer-toolbar button {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }
  .composer-attachment {
    grid-column: 1/-1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
  }
  .composer-attachment input {
    width: auto;
    max-width: 100%;
  }
}

/* Very short screens (landscape phones, open keyboards): keep the history usable. */
@media (max-height: 520px) {
  .conversation-page > .page-heading .eyebrow {
    display: none;
  }
  .conversation-page > .page-heading {
    padding-bottom: 4px;
  }
  .conversation-page > .page-heading h1 {
    font-size: 16px;
  }
  .conversation-page > .page-heading .button {
    padding: 4px 10px;
  }
  .conversation-page > .message-history {
    min-height: 80px;
  }
  .conversation-page > .conversation-composer textarea {
    height: 38px;
    min-height: 38px;
    padding: 8px 10px;
  }
  .conversation-page > .conversation-composer {
    padding: 8px 10px;
  }
}

/* Wide but short (landscape phones): captcha, attachment and Send share one row under the textarea. */
@media (max-height: 520px) and (min-width: 651px) {
  .conversation-page > .conversation-composer form {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .composer-captcha {
    grid-column: 1;
    grid-row: 2;
  }
  .composer-attachment {
    grid-column: 2;
    grid-row: 2;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .composer-attachment > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .composer-toolbar button {
    grid-column: 3;
    grid-row: 2;
  }
}

/* Header between the phone menu (up to 700px) and full desktop width: keep the links on screen. */
@media (min-width: 701px) and (max-width: 960px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
    min-width: 0;
  }
  .desktop-nav .nav-user {
    display: none;
  }
}
/* Character counters under message, reply and post boxes */
.char-counter {
  display: block;
  justify-self: end;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.char-counter-near {
  color: var(--accent);
}
.char-counter-full {
  color: #e5484d;
  font-weight: 650;
}
/* Settings: the account deletion panel */
.danger-zone {
  border-color: #e5484d66;
}
.danger-zone h2 {
  color: #e5484d;
}
button.danger {
  background: #c62f35;
  border-color: #c62f35;
  color: #fff;
}
button.danger:hover,
button.danger:focus-visible {
  background: #a8242a;
}


/* Formatted post and message text: **bold**, *italic*, `code`, code blocks and > quotes */
.post-body code,
.message-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.post-body pre,
.message-body pre {
  margin: 6px 0;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  white-space: pre;
}
.post-body pre code,
.message-body pre code {
  padding: 0;
  background: none;
  font-size: 13px;
}
.post-body blockquote,
.message-body blockquote {
  margin: 6px 0;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.message-body {
  overflow-wrap: anywhere;
}
.format-hint {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.format-hint code {
  font-size: 11px;
}
