* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  background: #fbfbfb;
  color: #151515;
  font-family: Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

.topbar {
  -webkit-align-items: center;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dcdcdc;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px;
  z-index: 10;
}

.brand {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: inherit;
  margin-right: 16px;
  padding: 0;
  text-align: left;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.brand:disabled {
  cursor: default;
  opacity: 1;
}

.session {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  min-width: 0;
  text-align: right;
}

.session > * + * {
  margin-left: 10px;
}

.guest-actions > * + * {
  margin-left: 12px;
}

.guest-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.guest-actions .button {
  min-width: 0;
}

.guest-actions .button.primary {
  margin-top: 0;
}

.main {
  margin: 0 auto;
  max-width: 1480px;
  padding-bottom: 78px;
}

.auth-grid,
.panel {
  margin: 16px;
}

.auth-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 0;
  margin-right: 0;
}

.panel {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 16px;
}

.auth-grid .panel {
  -webkit-flex: 1 1 280px;
  flex: 1 1 280px;
  margin: 0 16px 16px 0;
}

.login-field {
  min-width: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 14px;
}

h2 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 12px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 6px;
}

input,
textarea {
  background: #ffffff;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  color: #151515;
  display: block;
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.check-row {
  -webkit-align-items: flex-start;
  align-items: flex-start;
  display: -webkit-flex;
  display: flex;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 14px;
}

.check-row input {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  margin: 2px 9px 0 0;
  min-height: 0;
  width: auto;
}

.check-row a,
.footer a {
  color: #151515;
  text-decoration: underline;
}

.nsfw-check {
  -webkit-align-items: center;
  align-items: center;
  background: #fff5f7;
  border: 1px solid #e6a4ae;
  border-radius: 6px;
  margin: 0;
  padding: 6px 8px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus {
  outline: 3px solid #9bd2c8;
  outline-offset: 2px;
}

.button {
  border: 1px solid #151515;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  min-width: 86px;
  padding: 8px 13px;
  text-align: center;
}

.button.primary {
  background: #151515;
  color: #ffffff;
  margin-top: 14px;
}

.button.quiet {
  background: #ffffff;
  color: #151515;
}

.button.danger {
  background: #c21f32;
  border-color: #9c1725;
  color: #ffffff;
}

.button.smite-button {
  background: #00e5ff;
  border-color: #00e5ff;
  color: #ffffff;
}

.button:disabled {
  cursor: default;
  opacity: 0.55;
}

.form-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  margin: 14px 0 0 -10px;
}

.form-actions .button {
  margin: 0 0 0 10px;
}

.form-actions .button.primary {
  margin-top: 0;
}

.compose-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -14px;
}

.compose-grid > div {
  -webkit-flex: 1 1 180px;
  flex: 1 1 180px;
  margin: 0 0 14px 14px;
}

.compose .compose-grid > div {
  margin-bottom: 0;
}

.compose #imageStatus:empty {
  display: none;
}

.compose-main-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.compose-main-grid label:first-child {
  margin-top: 0;
}

.compose-side {
  min-width: 0;
}

.compose-side .nsfw-check {
  margin-top: 12px;
}

.field-head {
  -webkit-align-items: baseline;
  align-items: baseline;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.field-head label {
  margin-right: 12px;
}

.limit-count {
  color: #666666;
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  white-space: nowrap;
}

.comment-limit-count {
  display: block;
  margin: 0 0 6px;
  text-align: right;
}

.upload-note {
  border-left: 3px solid #dcdcdc;
  line-height: 1.35;
  margin-top: 8px;
  padding-left: 9px;
  text-align: left;
}

.status,
.micro {
  color: #555555;
  font-size: 14px;
  margin: 8px 16px;
  min-height: 20px;
}

.turnstile-gate {
  align-items: center;
  background: var(--surface, #fff);
  box-shadow: 0 12px 40px rgb(0 0 0 / 24%);
  display: flex;
  justify-content: center;
  left: 50%;
  min-height: 76px;
  padding: 1rem;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 340px);
  z-index: 100;
}

.micro {
  margin: 7px 0 0;
}

.error {
  color: #c21f32;
}

.admin-counts {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 16px 0 -8px -8px;
}

.admin-counts div {
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  -webkit-flex: 1 1 120px;
  flex: 1 1 120px;
  margin: 0 0 8px 8px;
  padding: 10px;
}

.admin-counts dt {
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.admin-counts dd {
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0 0;
}

.admin-section {
  border-top: 1px solid #dcdcdc;
  margin-top: 16px;
  padding-top: 16px;
}

.nuke-form {
  margin-top: 14px;
  max-width: 520px;
}

.inline-actions {
  -webkit-align-items: flex-end;
  align-items: flex-end;
  display: -webkit-flex;
  display: flex;
}

.inline-actions input {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  margin-right: 8px;
}

.inline-actions .button {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.inline-actions .button.primary {
  margin-top: 0;
}

.angel-list,
.reaper-list {
  margin-top: 12px;
}

.angel-row,
.reaper-row {
  -webkit-align-items: center;
  align-items: center;
  border-top: 1px solid #dcdcdc;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 10px 0;
}

.angel-row .button,
.reaper-row .button {
  margin-left: 12px;
}

.role-sections {
  display: grid;
  gap: 0 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feed {
  width: 100%;
}

.feed-spacer {
  display: block;
  height: 0;
  overflow: hidden;
  width: 100%;
}

.post {
  background: #ffffff;
  border-top: 1px solid #dcdcdc;
  width: 100%;
}

.moderation-tombstone {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 16px;
  width: 100%;
}

.moderation-tombstone strong {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.moderation-tombstone-detail {
  font-size: 15px;
  margin-left: 0.35em;
  text-transform: lowercase;
}

.moderation-tombstone-suffix {
  text-transform: lowercase;
}

.moderation-tombstone.reapt {
  background: linear-gradient(to bottom, #c21f32 0%, #6e0d18 50%, #c21f32 100%);
  color: #ffffff;
}

.moderation-tombstone.smote {
  background: linear-gradient(to bottom, #00e5ff 0%, #8ff5ff 50%, #00e5ff 100%);
  color: #ffffff;
}

.post-shell {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  width: 100%;
}

.post-media {
  background: #f1f1f1;
  display: block;
  width: 100%;
}

.post-media img {
  display: block;
  height: auto;
  width: 100%;
}

.post-copy {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 18px 16px 20px;
}

.post-copy > * + * {
  margin-top: 14px;
}

.post-meta {
  -webkit-align-items: center;
  align-items: center;
  color: #4c4c4c;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: -8px;
}

.post-meta > * {
  margin: 0 14px 8px 0;
}

.post-meta strong {
  color: #151515;
}

.blessing-badge {
  border: 1px solid #8bbdb4;
  border-radius: 999px;
  color: #245c52;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
}

.nsfw-badge {
  background: #c21f32;
  border: 1px solid #9c1725;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
}

.description {
  font-size: 18px;
  margin: 0;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-actions {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: -10px;
}

.post-actions .button {
  margin: 0 10px 10px 0;
}

.kill-roll-form {
  border-top: 1px solid #dcdcdc;
  -webkit-flex: 1 0 100%;
  flex: 1 0 100%;
  margin: 2px 0 10px;
  padding-top: 12px;
}

.kill-roll-copy,
.kill-roll-status {
  margin: 0 0 8px;
}

.kill-roll-controls {
  -webkit-align-items: flex-end;
  align-items: flex-end;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.kill-roll-field {
  -webkit-flex: 1 1 150px;
  flex: 1 1 150px;
  margin: 0 10px 10px 0;
  max-width: 220px;
}

.kill-roll-field input {
  margin-bottom: 0;
}

.kill-roll-controls .button {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.comments {
  border-top: 1px solid #dcdcdc;
  padding-top: 14px;
}

.comment-form {
  margin-bottom: 14px;
}

.comment-form textarea {
  min-height: 84px;
}

.comment {
  border-left: 3px solid #8bbdb4;
  margin: 12px 0;
  padding: 2px 0 2px 12px;
}

.comment-head {
  color: #505050;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: -8px;
}

.comment-head > * {
  margin: 0 8px 8px 0;
}

.comment-body {
  margin: 6px 0 8px;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.inline-reply {
  margin: 10px 0 4px;
}

.feed-actions {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 74px;
  padding: 16px;
}

.feed-actions > * + * {
  margin-left: 12px;
}

.footer {
  border-top: 1px solid #dcdcdc;
  color: #555555;
  font-size: 14px;
  margin: 0 auto;
  max-width: 1480px;
  padding: 16px;
}

.sell-your-soul-link {
  display: block;
  margin-top: 7px;
  width: max-content;
}

.post-button {
  bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  left: 50%;
  min-width: 154px;
  position: fixed;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 20;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 14% 0, rgba(255, 31, 157, 0.13), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(252, 215, 0, 0.1), transparent 30%),
    radial-gradient(circle at 62% 82%, rgba(255, 42, 55, 0.08), transparent 34%),
    #07040c;
  color: #f8f3ff;
}

html[data-theme="dark"] .topbar {
  background: rgba(13, 7, 22, 0.96);
  border-bottom-color: #8a263f;
  box-shadow: 0 0 24px rgba(255, 31, 157, 0.18), 0 1px 12px rgba(255, 42, 55, 0.14);
}

html[data-theme="dark"] .brand {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 42, 55, 0.72), 0 0 18px rgba(255, 31, 157, 0.72), 0 0 28px rgba(252, 215, 0, 0.28);
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .post {
  background: rgba(15, 9, 25, 0.96);
  border-color: #4a243b;
}

html[data-theme="dark"] .nsfw-post {
  border-color: #ff1f9d;
  box-shadow: inset 0 1px 0 rgba(255, 31, 157, 0.38);
}

html[data-theme="dark"] .post-media {
  background: #030207;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  background: #0b0612;
  border-color: #5d3b70;
  color: #ffffff;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] button:focus {
  outline-color: #fcd700;
}

html[data-theme="dark"] .button.primary {
  background: linear-gradient(110deg, #ff293f, #ff1f9d 48%, #8b35ff);
  border-color: #ff586a;
  box-shadow: 0 0 16px rgba(255, 31, 157, 0.25), 0 0 10px rgba(255, 42, 55, 0.18);
  color: #ffffff;
}

html[data-theme="dark"] .button.quiet {
  background: #160b1d;
  border-color: #7c3e63;
  color: #f8f3ff;
}

html[data-theme="dark"] .comment-head,
html[data-theme="dark"] .status,
html[data-theme="dark"] .micro,
html[data-theme="dark"] .limit-count,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .admin-counts dt {
  color: #b9a9c9;
}

html[data-theme="dark"] .upload-note {
  border-left-color: #4a243b;
}

html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .post-meta strong {
  color: #ff586a;
}

html[data-theme="dark"] .usernumber,
html[data-theme="dark"] .minute-value,
html[data-theme="dark"] .comment-head {
  color: #ff586a;
}

html[data-theme="dark"] .blessing-badge {
  border-color: #fcd700;
  color: #fcd700;
}

html[data-theme="dark"] .nsfw-badge {
  background: #ff1f9d;
  border-color: #ff78c5;
  box-shadow: 0 0 12px rgba(255, 31, 157, 0.55);
}

html[data-theme="dark"] .nsfw-check {
  background: rgba(255, 31, 157, 0.08);
  border-color: #9d2c73;
}

html[data-theme="dark"] .admin-counts div,
html[data-theme="dark"] .admin-section,
html[data-theme="dark"] .angel-row,
html[data-theme="dark"] .reaper-row,
html[data-theme="dark"] .kill-roll-form,
html[data-theme="dark"] .comments,
html[data-theme="dark"] .footer {
  border-color: #4a243b;
}

html[data-theme="dark"] .comment {
  border-left-color: #ff1f9d;
}

html[data-theme="dark"] .check-row a,
html[data-theme="dark"] .footer a {
  color: #fcd700;
}

html[data-theme="dark"] .error {
  color: #c21f32;
}

@media (prefers-reduced-motion: no-preference) {
  body,
  .topbar,
  .panel,
  .post,
  .button,
  input,
  textarea {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  }
}

@media (orientation: landscape) and (min-width: 720px) {
  .post-shell {
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-flex-direction: row;
    flex-direction: row;
  }

  .post:nth-child(even) .post-shell {
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse;
  }

  .post-media,
  .post-copy {
    width: 50%;
  }

  .post-copy {
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    padding: 28px;
  }
}

@media (min-aspect-ratio: 11/16) {
  .login-fields {
    display: -webkit-flex;
    display: flex;
    margin-left: -14px;
  }

  .login-field {
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    margin-left: 14px;
  }
}

@media (max-width: 445px) {
  .compose-main-grid {
    display: block;
  }

  .compose-side {
    margin-top: 14px;
  }
}

@media (max-width: 520px) {
  .admin-counts {
    display: block;
    margin-left: 0;
  }

  .admin-counts div {
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    margin-right: 8px;
  }

  .guest-actions > * + * {
    margin-left: 8px;
  }

  .guest-actions .button {
    padding-left: 10px;
    padding-right: 10px;
  }
}
