@charset "UTF-8";
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f6f8;
  color: #212127;
  font: 15.67px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #6d28d9;
  text-decoration: none;
}
a:hover {
  color: #5b21b6;
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3 {
  line-height: 1.25;
}

.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
}

img.emoji {
  width: 2em;
  height: 2em;
  vertical-align: -0.45em;
  object-fit: contain;
  cursor: pointer;
}

.sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  vertical-align: middle;
  flex: 0 0 auto;
}

.topnav {
  background: #ffffff;
  border-bottom: 1px solid #e3e3e8;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav .nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.topnav .nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #5c5c66;
  padding: 7px;
  border-radius: 3px;
  cursor: pointer;
}
.topnav .nav-burger:hover {
  color: #6d28d9;
  background: #f0f0f4;
}
.topnav .brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.topnav .brand:hover {
  text-decoration: none;
}
.topnav .brand .brand-logo {
  display: block;
  height: 30px;
  width: auto;
}
.topnav .search {
  flex: 0 1 480px;
}
.topnav .chips {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.topnav .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 3px;
  color: #5c5c66;
  border: 1px solid transparent;
  position: relative;
}
.topnav .chip:hover {
  background: #f0f0f4;
  color: #212127;
  text-decoration: none;
}
.topnav .chip.coins {
  color: #5c5c66;
}
.topnav .chip.primary {
  background: #6d28d9;
  color: #fff;
  font-weight: 600;
}
.topnav .chip.primary:hover {
  background: #5b21b6;
  color: #fff;
}
.topnav form.inline {
  display: inline-flex;
  margin: 0;
}
.topnav .logout {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: #8b8b96;
  padding: 7px;
  border-radius: 3px;
}
.topnav .logout:hover {
  color: #6d28d9;
  background: #f0f0f4;
}

.search {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f6f6f8;
  border: 1px solid #d8d8e0;
  border-radius: 999px;
  padding: 2px 4px 2px 6px;
  transition: border-color 0.12s;
}
.search:focus-within {
  border-color: #6d28d9;
}
.search .search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  background: none;
  border: none;
  border-radius: 50%;
  color: #8b8b96;
  cursor: pointer;
}
.search .search-btn:hover {
  color: #6d28d9;
  background: #f0f0f4;
}
.search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: none;
  color: #212127;
  border: none;
  padding: 7px 8px 7px 2px;
  font: inherit;
}
.search input:focus {
  outline: none;
}
.search input::placeholder {
  color: #8b8b96;
}

.notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: #6d28d9;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1.5px solid #ffffff;
}

.container {
  display: flex;
  gap: 20px;
  max-width: 1080px;
  margin: 22px auto;
  padding: 0 18px;
  align-items: flex-start;
}

main {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 290px;
  flex: 0 0 290px;
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar .card {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 16px;
}
.sidebar .card h3 {
  margin: 0 0 10px;
  font-size: 11.4px;
  text-transform: uppercase;
  color: #8b8b96;
  letter-spacing: 0.8px;
}
.sidebar .card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar .card li {
  padding: 4px 0;
}
.sidebar .card a:not(.btn) {
  color: #5c5c66;
}
.sidebar .card a:not(.btn):hover {
  color: #6d28d9;
}
.sidebar .card .blurb {
  color: #8b8b96;
  font-size: 12.82px;
  margin: 0 0 14px;
}
.sidebar .card .btn.block {
  margin-top: 2px;
}
.sidebar .marsey-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
}
.sidebar .sidebar-marsey {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: 240px;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}
.sidebar .contribute-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.88px;
  color: #8b8b96 !important;
}
.sidebar .contribute-link:hover {
  color: #6d28d9 !important;
}
.sidebar .rules {
  margin: 0;
  padding-left: 18px;
  color: #5c5c66;
  font-size: 12.35px;
  line-height: 1.5;
}
.sidebar .rules li {
  margin-bottom: 6px;
}
.sidebar .rules li:last-child {
  margin-bottom: 0;
}
.sidebar .online-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-head,
.drawer-nav,
.drawer-search,
.drawer-backdrop {
  display: none;
}

.drawer-head {
  align-items: center;
  justify-content: space-between;
}
.drawer-head .brand {
  font-weight: 700;
  font-size: 17.1px;
  color: #6d28d9;
}
.drawer-head .brand:hover {
  text-decoration: none;
  color: #5b21b6;
}
.drawer-head .drawer-close {
  display: inline-flex;
  background: none;
  border: none;
  color: #8b8b96;
  padding: 6px;
  border-radius: 3px;
  cursor: pointer;
}
.drawer-head .drawer-close:hover {
  color: #6d28d9;
  background: #f0f0f4;
}

.drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-nav li {
  padding: 2px 0;
}
.drawer-nav a:not(.btn),
.drawer-nav .drawer-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  color: #5c5c66;
  border-radius: 3px;
}
.drawer-nav a:not(.btn):hover,
.drawer-nav .drawer-logout:hover {
  color: #6d28d9;
  text-decoration: none;
  background: #f0f0f4;
}
.drawer-nav form.inline {
  display: block;
  margin: 0;
}
.drawer-nav .drawer-logout {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.drawer-nav .count-pill {
  margin-left: auto;
}

.online-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.online-list li {
  padding: 3px 0;
}
.online-list .online-user {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.82px;
  color: #5c5c66;
}
.online-list .online-user .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a7f5c;
  flex: none;
}
.online-list .online-user:hover {
  color: #6d28d9;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.user-chip:hover {
  text-decoration: none;
}
.user-chip:hover .uname {
  text-decoration: underline;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 11.4px;
  font-weight: 700;
  flex: 0 0 auto;
}
.avatar.big {
  width: 56px;
  height: 56px;
  font-size: 24.7px;
}

.uname {
  font-weight: 600;
}

.sidebar-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  color: #8b8b96;
  font-size: 11.4px;
}
.sidebar-legal a {
  color: #8b8b96;
}
.sidebar-legal a:hover {
  color: #6d28d9;
}

.legal-page p, .legal-page li {
  color: #5c5c66;
  line-height: 1.55;
}
.legal-page ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.tabs .tab {
  padding: 7px 14px;
  border-radius: 3px;
  color: #5c5c66;
  font-weight: 600;
  border: 1px solid transparent;
}
.tabs .tab:hover {
  background: #f0f0f4;
  text-decoration: none;
  color: #212127;
}
.tabs .tab.active {
  background: #ffffff;
  border-color: #e3e3e8;
  color: #6d28d9;
}

.top-windows {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: -6px 0 14px;
}
.top-windows .top-windows-label {
  color: #8b8b96;
  font-size: 12.35px;
  margin-right: 4px;
}
.top-windows .top-window {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.35px;
  color: #5c5c66;
}
.top-windows .top-window:hover {
  background: #f0f0f4;
  text-decoration: none;
  color: #212127;
}
.top-windows .top-window.active {
  background: #6d28d9;
  color: #fff;
}

.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 24px 0;
}
.pager .pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #8b8b96;
  font-size: 17.1px;
}
.pager .pager-btn:hover {
  color: #6d28d9;
  text-decoration: none;
}
.pager .pager-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pager .page-jump {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: 1;
}
.pager .page-current {
  width: 40px;
  margin: 0;
  padding: 1px 0;
  text-align: center;
  font-weight: 700;
  font-size: 15.2px;
  color: #212127;
  background: none;
  border: none;
  -moz-appearance: textfield;
}
.pager .page-current:focus {
  outline: none;
  color: #6d28d9;
}
.pager .page-current::-webkit-inner-spin-button, .pager .page-current::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pager .page-total {
  min-width: 40px;
  text-align: center;
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid #e3e3e8;
  color: #8b8b96;
  font-size: 13.3px;
}

.votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: 0;
  flex: 0 0 auto;
}
.votes button {
  background: none;
  border: none;
  color: #8b8b96;
  font-size: 14.25px;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 3px;
}
.votes button:hover {
  color: #6d28d9;
  background: #f0f0f4;
}
.votes button.down:hover {
  color: #c0262d;
}
.votes button.up.on {
  color: #6d28d9;
}
.votes button.down.on {
  color: #c0262d;
}
.votes .score {
  font-size: 12.35px;
  font-weight: 700;
  color: #212127;
  min-width: 18px;
  text-align: center;
}

.row {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 11px 14px;
  margin-bottom: 9px;
}
.row:hover {
  border-color: #c7c7d1;
}
.row .body-main {
  min-width: 0;
  flex: 1;
}
.row .row-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.row .title {
  font-weight: 650;
  font-size: 15.67px;
  color: #212127;
}
.row .title:hover {
  color: #6d28d9;
}
.row .domain {
  color: #8b8b96;
  font-size: 11.88px;
}
.row .meta {
  margin-top: 5px;
  font-size: 12.35px;
  color: #8b8b96;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.act {
  color: #8b8b96;
  font-size: 11.88px;
  background: none;
  border: none;
  padding: 0;
}
.act:hover {
  color: #212127;
  text-decoration: underline;
}
.act.danger:hover {
  color: #c0262d;
}
.act.mod {
  color: #6d28d9;
}
.act.mod:hover {
  color: #5b21b6;
  text-decoration: underline;
}

.row, .post-full {
  position: relative;
}

.pin-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  color: #6d28d9;
  z-index: 1;
}
.pin-tag .icon {
  width: 1.05em;
  height: 1.05em;
}

.page-h {
  margin: 4px 0 12px;
}

.post-full {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 18px;
}
.post-full .head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.post-full h1 {
  margin: 0;
  font-size: 21.85px;
  letter-spacing: -0.3px;
}
.post-full .outlink {
  display: inline-block;
  font-size: 12.35px;
  color: #6d28d9;
  word-break: break-all;
  margin: 8px 0 2px;
}
.post-full .meta {
  margin-top: 8px;
  font-size: 12.35px;
  color: #8b8b96;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-full .text {
  margin-top: 12px;
}

.text {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.text img {
  max-width: 100%;
  height: auto;
}
.text img.emoji {
  width: 2.1em;
  height: 2.1em;
  vertical-align: -0.5em;
}
.text p:first-child {
  margin-top: 0;
}
.text p:last-child {
  margin-bottom: 0;
}
.text pre {
  background: #f0f0f4;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
}
.text code {
  background: #f0f0f4;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}
.text blockquote {
  border-left: 3px solid #e3e3e8;
  margin: 0.6em 0;
  padding-left: 12px;
  color: #5c5c66;
}
.text a {
  word-break: break-word;
}

.edited {
  color: #8b8b96;
  font-style: italic;
  font-size: 11.4px;
}

.comment-box {
  margin-bottom: 14px;
}
.comment-box .editor {
  margin: 0;
}
.comment-box textarea {
  min-height: 84px;
  padding: 10px 12px;
}
.comment-box > p {
  color: #8b8b96;
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comments-h {
  margin: 0;
  font-size: 15.2px;
  color: #5c5c66;
}

.comment {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 10px 13px;
  margin-bottom: 8px;
  border-left: 2px solid #f0f0f4;
}
.comment .cmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.35px;
  color: #8b8b96;
  margin-bottom: 5px;
}
.comment .votes {
  flex-direction: row;
  gap: 4px;
}
.comment .text {
  font-size: 14.72px;
}
.comment .text img.emoji {
  width: 1.9em;
  height: 1.9em;
}
.comment .comment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
  font-size: 11.88px;
}
.comment textarea {
  width: 100%;
  margin-top: 6px;
  background: #ffffff;
  color: #212127;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  padding: 8px;
  font: inherit;
}

.reply summary {
  cursor: pointer;
  list-style: none;
  color: #8b8b96;
}
.reply summary::-webkit-details-marker {
  display: none;
}
.reply summary:hover {
  color: #6d28d9;
}
.reply[open] {
  flex: 1 1 100%;
  order: 5;
}
.reply[open] summary {
  color: #6d28d9;
  font-weight: 600;
  margin-bottom: 8px;
}
.reply .reply-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 560px;
}
.reply .reply-form .editor {
  width: 100%;
  margin: 0;
}
.reply .reply-form .btn.small {
  align-self: flex-start;
}

.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px dashed #d8d8e0;
  border-radius: 3px;
  background: #f0f0f4;
  color: #5c5c66;
  font-size: 13.3px;
}

.draft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}
.draft-row:not(:last-child) {
  border-bottom: 1px solid #e3e3e8;
}
.draft-row .draft-title {
  flex: 1;
  font-weight: 600;
  color: #212127;
}
.draft-row .draft-title:hover {
  color: #6d28d9;
}
.draft-row .draft-age {
  color: #8b8b96;
  font-size: 12.35px;
  flex: none;
}
.draft-row .draft-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.draft-row .act {
  color: #8b8b96;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.draft-row .act:hover {
  color: #6d28d9;
}
.draft-row .publish-act:hover {
  color: #1a7f5c;
}
.draft-row .danger-act:hover {
  color: #c0262d;
}

.btn {
  display: inline-block;
  background: #6d28d9;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 9px 18px;
  font-weight: 650;
}
.btn:hover {
  background: #5b21b6;
  color: #fff;
  text-decoration: none;
}
.btn.block {
  display: block;
  width: 100%;
  text-align: center;
}
.btn.small {
  padding: 6px 12px;
  font-size: 12.35px;
}
.btn.ghost {
  background: none;
  border: 1px solid #e3e3e8;
  color: #5c5c66;
}
.btn.ghost:hover {
  background: #f0f0f4;
  color: #212127;
}
.btn.danger {
  background: #c0262d;
  color: #fff;
}
.btn.danger:hover {
  background: #9e1f25;
}
.btn.danger-btn {
  background: #c0262d;
}
.btn.danger-btn:hover {
  background: #9e1f25;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 5px;
  border-radius: 3px;
  color: #8b8b96;
  line-height: 0;
}
.icon-btn:hover {
  color: #6d28d9;
  background: #f0f0f4;
}

.form-page {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  max-width: 620px;
  padding: 22px;
}
.form-page.narrow {
  max-width: 380px;
}
.form-page h1 {
  margin-top: 0;
}
.form-page input, .form-page textarea {
  width: 100%;
  background: #ffffff;
  color: #212127;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  padding: 10px 12px;
  margin: 7px 0;
  font: inherit;
  resize: vertical;
}
.form-page input:focus, .form-page textarea:focus {
  outline: none;
  border-color: #6d28d9;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.auth-page {
  margin: 48px auto 0;
  padding: 28px;
}
.auth-page h1 {
  margin: 0 0 4px;
  font-size: 22.8px;
}
.auth-page .auth-sub {
  margin: 0 0 16px;
  color: #8b8b96;
  font-size: 13.3px;
}
.auth-page .auth-alt {
  margin: 14px 0 0;
  font-size: 12.82px;
  color: #5c5c66;
  text-align: center;
}
.auth-page .btn {
  margin-top: 6px;
}

.editor {
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  overflow: hidden;
  margin: 7px 0;
}
.editor:focus-within {
  border-color: #6d28d9;
}
.editor .editor-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  background: #f0f0f4;
  border-bottom: 1px solid #e3e3e8;
}
.editor textarea {
  display: block;
  width: 100%;
  border: none;
  margin: 0;
  border-radius: 0;
  resize: vertical;
}
.editor textarea:focus {
  outline: none;
  box-shadow: none;
}

.preview-wrap {
  margin: 7px 0;
}
.preview-wrap .preview-label {
  display: block;
  font-size: 10.45px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8b8b96;
  margin-bottom: 4px;
}
.preview-wrap .preview-pane {
  border: 1px solid #e3e3e8;
  border-radius: 3px;
  padding: 10px 12px;
  min-height: 60px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.preview-wrap .preview-pane:empty::after {
  content: "Nothing to preview yet.";
  color: #8b8b96;
  font-size: 12.35px;
}

.nsfw-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 3px;
  color: #8b8b96;
  line-height: 0;
  cursor: pointer;
}
.nsfw-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.nsfw-toggle:hover {
  color: #c0262d;
  background: #f0f0f4;
}
.nsfw-toggle input:checked ~ .icon {
  color: #c0262d;
}
.nsfw-toggle:has(input:checked) {
  background: #c0262d;
}
.nsfw-toggle:has(input:checked) .icon {
  color: #fff;
}
.nsfw-toggle:focus-within {
  outline: 2px solid rgba(192, 38, 45, 0.5);
  outline-offset: 1px;
}

.nsfw-tag {
  display: inline-flex;
  align-items: center;
  color: #c0262d;
  font-size: 0.82em;
  vertical-align: middle;
}

.error {
  color: #c0262d;
  font-weight: 600;
}

.empty {
  color: #8b8b96;
  text-align: center;
  padding: 56px 20px;
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha .captcha-img {
  display: block;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  background: #fff;
  max-width: 100%;
  height: auto;
}
.captcha .captcha-refresh {
  flex: 0 0 auto;
}

.emoji-ac {
  position: absolute;
  z-index: 60;
  width: 220px;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.16);
  padding: 4px;
}
.emoji-ac .emoji-ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 3px;
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-size: 12.35px;
  color: #212127;
}
.emoji-ac .emoji-ac-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}
.emoji-ac .emoji-ac-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emoji-ac .emoji-ac-item.on, .emoji-ac .emoji-ac-item:hover {
  background: #f0f0f4;
}

dialog.emoji-modal {
  width: min(520px, 100vw - 24px);
}
dialog.emoji-modal .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
dialog.emoji-modal .emoji-search {
  width: 100%;
}
dialog.emoji-modal .emoji-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #e3e3e8;
}
dialog.emoji-modal .emoji-tabs .tab {
  padding: 6px 10px;
  background: none;
  border: none;
  color: #5c5c66;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
dialog.emoji-modal .emoji-tabs .tab.on {
  color: #6d28d9;
  border-bottom-color: #6d28d9;
  font-weight: 600;
}
dialog.emoji-modal .emoji-pane {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}
dialog.emoji-modal .emoji-pane.hidden {
  display: none;
}
dialog.emoji-modal .emoji-pane[data-pane=legacy]:empty::after {
  content: "Loading…";
  font-size: 11.4px;
  color: #8b8b96;
  padding: 4px 6px;
}
dialog.emoji-modal .emoji-btn {
  background: none;
  border: none;
  padding: 5px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 0;
}
dialog.emoji-modal .emoji-btn:hover {
  background: #f0f0f4;
}
dialog.emoji-modal .emoji-btn img.emoji {
  width: 30px;
  height: 30px;
  display: block;
}
dialog.emoji-modal .emoji-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #e3e3e8;
  min-height: 76px;
}
dialog.emoji-modal .emoji-preview .emoji-preview-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  visibility: hidden;
  image-rendering: auto;
}
dialog.emoji-modal .emoji-preview .emoji-preview-name {
  font-family: ui-monospace, monospace;
  font-size: 12.35px;
  color: #5c5c66;
  overflow-wrap: anywhere;
}

dialog.emoji-info .modal-body {
  align-items: center;
  text-align: center;
}
dialog.emoji-info .emoji-info-img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  image-rendering: auto;
}
dialog.emoji-info .emoji-info-code {
  font-family: ui-monospace, monospace;
  font-size: 13.3px;
  color: #212127;
  overflow-wrap: anywhere;
}
dialog.emoji-info .emoji-info-pack {
  color: #8b8b96;
  font-size: 11.88px;
}
dialog.emoji-info .modal-actions {
  margin-top: 6px;
}

.media-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 4px;
  cursor: zoom-in;
}

.media-thumb {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
}
.media-thumb .media-img, .media-thumb .media-video-wrap, .media-thumb .media-audio {
  margin-top: 0;
}
.media-thumb .media-img, .media-thumb .media-video {
  max-height: 280px;
  border-radius: 0;
}

.row-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  align-self: flex-start;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f4;
}
.row-thumb .media-thumb {
  position: static;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 0;
}
.row-thumb img.media-img, .row-thumb .media-video, .row-thumb .media-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.row-thumb .media-audio {
  position: static;
  width: 100%;
}
.row-thumb .nsfw-reveal {
  border-radius: 0;
}
.row-thumb .nsfw-reveal span {
  display: none;
}
.row-thumb .nsfw-reveal .icon {
  width: 1.5em;
  height: 1.5em;
}

.media-nsfw .media-img, .media-nsfw .media-video-wrap, .media-nsfw .media-audio {
  filter: blur(20px);
  pointer-events: none;
}

.media-thumb:not(.media-nsfw) .nsfw-reveal {
  display: none;
}

.nsfw-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 4px;
  background: rgba(24, 24, 32, 0.45);
  color: #fff;
  font-size: 12.35px;
  font-weight: 600;
  cursor: pointer;
}
.nsfw-reveal .icon {
  width: 1.6em;
  height: 1.6em;
}
.nsfw-reveal:hover {
  background: rgba(24, 24, 32, 0.55);
}

dialog.lightbox {
  border: none;
  background: none;
  padding: 0;
  max-width: 96vw;
  max-height: 96vh;
}
dialog.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}
dialog.lightbox .lightbox-img {
  display: block;
  max-width: 96vw;
  max-height: 96vh;
  border-radius: 4px;
  cursor: zoom-out;
}
dialog.lightbox .lightbox-video {
  display: none;
  max-width: 96vw;
  max-height: 96vh;
  border-radius: 4px;
  background: #000;
}
dialog.lightbox.is-video .lightbox-img {
  display: none;
}
dialog.lightbox.is-video .lightbox-video {
  display: block;
}

.media-video {
  display: block;
  max-width: 100%;
  max-height: 540px;
  border-radius: 4px;
  background: #000;
}

.media-video-wrap {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  max-width: 100%;
}

.media-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}
.media-expand:hover {
  background: rgba(0, 0, 0, 0.8);
}

.media-audio {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-top: 10px;
}

.chat-body + .media-img,
.chat-main .media-img {
  max-height: 320px;
  margin-top: 6px;
}

.chat-main .media-video {
  max-height: 320px;
  margin-top: 6px;
}

.chat-main .media-audio {
  margin-top: 6px;
}

.media-field {
  cursor: pointer;
}
.media-field input[type=file] {
  display: none;
}

.media-name {
  display: none;
  font-size: 11.4px;
  color: #6d28d9;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-name.active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.media-name.active::before {
  content: "•";
  color: #6d28d9;
}

.chat-attach {
  position: relative;
  cursor: pointer;
}
.chat-attach input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chat-attach:hover {
  color: #6d28d9;
  background: #f0f0f4;
}
.chat-attach.has-file {
  color: #6d28d9;
}
.chat-attach.has-file::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d28d9;
  border: 1.5px solid #ffffff;
}

.notif-list {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
}

.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #212127;
}
.notif:not(:last-child) {
  border-bottom: 1px solid #e3e3e8;
}
.notif:hover {
  text-decoration: none;
  background: #f0f0f4;
}
.notif .notif-kind {
  display: flex;
  color: #8b8b96;
  flex: none;
}
.notif .notif-text {
  flex: 1;
}
.notif .notif-age {
  color: #8b8b96;
  font-size: 11.88px;
}
.notif .notif-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  visibility: hidden;
}
.notif.unread {
  background: #f0f0f4;
}
.notif.unread .notif-kind {
  color: #6d28d9;
}
.notif.unread .notif-dot {
  visibility: visible;
  background: #6d28d9;
}

.mention {
  color: #6d28d9;
  font-weight: 600;
}

.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  min-height: 360px;
}

.chat-log {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  flex: 1;
  min-height: 0;
  padding: 14px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-log .empty {
  border: none;
  padding: 24px;
  margin: auto;
}

.chat-msg {
  display: flex;
  gap: 10px;
  border-radius: 3px;
}
.chat-msg .avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}
.chat-msg .chat-main {
  min-width: 0;
  flex: 1;
}
.chat-msg .chat-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.chat-msg .uname {
  font-weight: 600;
  font-size: 13.3px;
}
.chat-msg .uname:hover {
  text-decoration: underline;
}
.chat-msg .chat-age {
  color: #8b8b96;
  font-size: 10.92px;
}
.chat-msg .chat-body {
  margin-top: 2px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-msg .chat-body img.emoji {
  width: 2.2em;
  height: 2.2em;
  vertical-align: -0.55em;
}
.chat-msg .chat-reply-btn {
  align-self: center;
  margin-left: auto;
  padding: 4px 6px;
  border: none;
  background: none;
  color: #8b8b96;
  opacity: 0.35;
}
.chat-msg .chat-reply-btn:hover {
  color: #6d28d9;
}
.chat-msg:hover .chat-reply-btn {
  opacity: 1;
}
.chat-msg .chat-quote {
  display: flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  font-size: 11.88px;
  color: #8b8b96;
}
.chat-msg .chat-quote .icon {
  align-self: center;
}
.chat-msg .chat-quote .chat-quote-author {
  font-weight: 600;
  flex: none;
}
.chat-msg .chat-quote .chat-quote-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-msg a.chat-quote:hover {
  text-decoration: none;
  color: #6d28d9;
}
.chat-msg a.chat-quote:hover .chat-quote-author {
  color: #6d28d9;
}
.chat-msg:target {
  background: #f0f0f4;
  box-shadow: 0 0 0 6px #f0f0f4;
}

.chat-page:not(.can-post) .chat-reply-btn {
  display: none;
}

.chat-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chat-form .chat-replying {
  display: none;
  width: 100%;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e3e3e8;
  border-radius: 3px;
  background: #ffffff;
  color: #8b8b96;
  font-size: 12.35px;
}
.chat-form .chat-replying.show {
  display: flex;
}
.chat-form .chat-replying .chat-replying-name {
  font-weight: 600;
  color: #212127;
}
.chat-form .chat-replying .chat-replying-cancel {
  margin-left: auto;
  padding: 0 2px;
  border: none;
  background: none;
  color: #8b8b96;
}
.chat-form .chat-replying .chat-replying-cancel:hover {
  color: #c0262d;
}
.chat-form .chat-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 140px;
  padding: 10px 12px;
  background: #ffffff;
  color: #212127;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  font: inherit;
  resize: none;
  overflow-y: hidden;
}
.chat-form .chat-input:focus {
  outline: none;
  border-color: #6d28d9;
}
.chat-form .icon-btn {
  height: 44px;
  width: 44px;
  flex: 0 0 auto;
}
.chat-form .chat-send {
  color: #6d28d9;
}
.chat-form .chat-send:hover {
  color: #fff;
  background: #6d28d9;
}

.chat-locked {
  margin-top: 12px;
  color: #8b8b96;
}

.badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.badge {
  font-size: 9.975px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 3px;
}
.badge.admin {
  background: rgba(26, 127, 92, 0.12);
  color: #1a7f5c;
  border: 1px solid rgba(26, 127, 92, 0.35);
}
.badge.banned {
  background: rgba(192, 38, 45, 0.1);
  color: #c0262d;
  border: 1px solid rgba(192, 38, 45, 0.35);
}
.badge.coins-badge {
  background: #f0f0f4;
  color: #5c5c66;
  border: 1px solid #e3e3e8;
}

.give-form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.give-form input[type=number] {
  width: 80px;
  margin: 0;
}

.modlog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 9px 13px;
  margin-bottom: 6px;
  font-size: 12.82px;
}
.modlog-row .ml-kind {
  font-weight: 700;
  color: #6d28d9;
  font-family: ui-monospace, monospace;
}
.modlog-row .ml-mod {
  color: #8b8b96;
}
.modlog-row .ml-target {
  color: #212127;
}
.modlog-row .ml-age {
  color: #8b8b96;
  margin-left: auto;
  font-size: 11.88px;
}

.report {
  display: inline-block;
}
.report summary {
  cursor: pointer;
  list-style: none;
  color: #8b8b96;
  font-size: 11.88px;
}
.report summary::-webkit-details-marker {
  display: none;
}
.report summary:hover {
  color: #6d28d9;
}
.report form {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}
.report input {
  background: #ffffff;
  color: #212127;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12.35px;
  margin: 0;
}

.contrib-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.contrib-row .contrib-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 3px;
  background: #f0f0f4;
  flex: none;
}
.contrib-row .contrib-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contrib-row .contrib-kind {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.45px;
  letter-spacing: 0.5px;
  color: #6d28d9;
}
.contrib-row .contrib-name {
  font-family: ui-monospace, monospace;
  font-size: 12.35px;
  color: #212127;
}
.contrib-row .contrib-age {
  color: #8b8b96;
  font-size: 11.88px;
}
.contrib-row form.inline {
  margin: 0;
}

.count-pill {
  background: #6d28d9;
  color: #fff;
  font-size: 10.45px;
  font-weight: 700;
  border-radius: 3px;
  padding: 0 7px;
  margin-left: 6px;
}

.admin-card {
  border-color: rgba(109, 40, 217, 0.3);
}

.report-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  padding: 11px 14px;
  margin-bottom: 8px;
}
.report-row .report-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-row .report-target {
  font-weight: 600;
}
.report-row .report-reason {
  color: #212127;
}
.report-row .report-meta {
  color: #8b8b96;
  font-size: 11.88px;
}

dialog.modal {
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  background: #ffffff;
  color: #212127;
  padding: 0;
  width: min(420px, 100vw - 24px);
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.18);
}
dialog.modal::backdrop {
  background: rgba(24, 24, 32, 0.35);
}
dialog.modal .modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
dialog.modal .modal-body > form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
dialog.modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
dialog.modal h3 {
  margin: 0;
  font-size: 14.25px;
}
dialog.modal input, dialog.modal textarea {
  width: 100%;
  background: #ffffff;
  color: #212127;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  padding: 9px 11px;
  font: inherit;
}
dialog.modal input:focus, dialog.modal textarea:focus {
  outline: none;
  border-color: #6d28d9;
}

.avatar.has-img {
  background: #f0f0f4;
  overflow: hidden;
  padding: 0;
}

.avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-head {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.profile-head .avatar.big {
  width: 64px;
  height: 64px;
  font-size: 26.6px;
}
.profile-head .profile-id {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.profile-head h1 {
  margin: 0;
  font-size: 19.95px;
  font-weight: 700;
  color: #212127;
}
.profile-head .profile-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8b8b96;
  font-size: 12.82px;
}
.profile-head .profile-meta > span:not(.badge) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profile-head .profile-meta .badge {
  font-size: 9.5px;
}
.profile-head .profile-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-page {
  max-width: 560px;
}
.settings-page .settings-section {
  padding: 16px 0;
  border-top: 1px solid #e3e3e8;
}
.settings-page .settings-section:first-of-type {
  border-top: none;
}
.settings-page .settings-section h3 {
  margin: 0 0 10px;
  font-size: 14.25px;
}
.settings-page .settings-section .hint {
  margin: 0 0 10px;
  color: #8b8b96;
  font-size: 12.35px;
}

.settings-pfp {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.settings-pfp input[type=file] {
  margin: 0 0 10px;
  max-width: 100%;
}
.settings-pfp form {
  margin: 0;
}
.settings-pfp .settings-pfp-forms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 13.3px;
}
.settings-facts dt {
  color: #8b8b96;
}
.settings-facts dd {
  margin: 0;
  color: #212127;
}

.settings-bio, .settings-css, .settings-password input {
  width: 100%;
  background: #ffffff;
  color: #212127;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  padding: 10px 12px;
  font: inherit;
}
.settings-bio:focus, .settings-css:focus, .settings-password input:focus {
  outline: none;
  border-color: #6d28d9;
}

.settings-bio {
  resize: vertical;
}

.settings-css {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.88px;
  line-height: 1.5;
  white-space: pre;
}

.css-actions {
  align-items: center;
  flex-wrap: wrap;
}
.css-actions .css-saved-note {
  color: #1a7f5c;
  font-size: 12.35px;
  opacity: 0;
  transition: opacity 0.15s;
}
.css-actions .css-saved-note.show {
  opacity: 1;
}

.css-error {
  display: none;
  margin: 8px 0 0;
  color: #c0262d;
  font-size: 11.88px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.css-error.show {
  display: block;
}

.css-themes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.css-themes input[type=text], .css-themes select {
  background: #ffffff;
  color: #212127;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  padding: 8px 10px;
  font: inherit;
}
.css-themes input[type=text]:focus, .css-themes select:focus {
  outline: none;
  border-color: #6d28d9;
}
.css-themes input[type=text] {
  width: 160px;
}
.css-themes select {
  min-width: 140px;
}

.settings-password {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.profile-bio {
  padding: 14px 16px;
  margin-bottom: 18px;
  color: #212127;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.color-forms {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.color-forms .color-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.color-forms form {
  margin: 0;
}
.color-forms input[type=color] {
  width: 44px;
  height: 34px;
  padding: 2px;
  border: 1px solid #d8d8e0;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

.settings-msg {
  color: #6d28d9;
  font-weight: 600;
}

.api-token {
  display: block;
  padding: 8px 10px;
  background: #f0f0f4;
  border: 1px solid #e3e3e8;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 12.35px;
  overflow-wrap: anywhere;
  user-select: all;
}

.api-token-actions {
  display: flex;
  gap: 8px;
}

.api-docs .api-endpoint {
  padding: 12px 0;
}
.api-docs .api-endpoint:not(:last-child) {
  border-bottom: 1px solid #e3e3e8;
}
.api-docs .api-sig {
  display: flex;
  align-items: center;
  gap: 10px;
}
.api-docs .api-method {
  font-family: ui-monospace, monospace;
  font-size: 11.4px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
}
.api-docs .api-method.m-get {
  background: #1a7f5c;
}
.api-docs .api-method.m-post {
  background: #6d28d9;
}
.api-docs .api-path {
  font-family: ui-monospace, monospace;
  font-size: 13.3px;
  color: #212127;
  overflow-wrap: anywhere;
}
.api-docs .api-desc {
  margin: 6px 0 0;
  color: #5c5c66;
}
.api-docs .api-note {
  color: #8b8b96;
  font-size: 12.82px;
}
.api-docs .api-example {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #f0f0f4;
  border: 1px solid #e3e3e8;
  border-radius: 3px;
  overflow-x: auto;
}
.api-docs .api-example code {
  font-family: ui-monospace, monospace;
  font-size: 12.35px;
  color: #212127;
  white-space: pre;
}

.api-docs .rate-limits {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 4px;
  font-size: 13.3px;
}
.api-docs .rate-limits th, .api-docs .rate-limits td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid #e3e3e8;
}
.api-docs .rate-limits th {
  color: #8b8b96;
  font-weight: 600;
  font-size: 11.88px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.api-docs .rate-limits td {
  color: #5c5c66;
}
.api-docs .rate-limits td:first-child {
  color: #212127;
}
.api-docs .rate-limits tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 720px) {
  .container {
    flex-direction: column;
    align-items: stretch;
  }
  main {
    width: 100%;
  }
  .topnav .nav-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .topnav .nav-inner .nav-burger {
    display: inline-flex;
  }
  .topnav .nav-inner .brand {
    flex: 1;
    font-size: 16.15px;
  }
  .topnav .nav-inner .search {
    display: none;
  }
  .topnav .nav-inner .chips {
    display: none;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    flex: none;
    margin: 0;
    padding: 14px;
    overflow-y: auto;
    background: #f6f6f8;
    border-right: 1px solid #e3e3e8;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    z-index: 70;
  }
  .drawer-head {
    display: flex;
  }
  .drawer-search {
    display: flex;
  }
  .drawer-nav {
    display: block;
  }
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(18, 18, 30, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }
  html.drawer-open {
    overflow: hidden;
  }
  html.drawer-open .sidebar {
    transform: none;
  }
  html.drawer-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  dialog.modal, dialog.emoji-modal {
    width: calc(100vw - 16px);
  }
  .emoji-pane {
    max-height: 50vh;
  }
  .emoji-btn {
    min-width: 40px;
    min-height: 40px;
  }
  .votes button {
    min-width: 36px;
    min-height: 32px;
  }
  .btn, .act {
    min-height: 40px;
  }
  .act {
    display: inline-flex;
    align-items: center;
  }
}
