/* Murmur, on top of Bootstrap 5.3 */

:root,
[data-bs-theme="light"] {
  --m-bg: #edf0f3;
  --m-card: #ffffff;
  --m-ink: #0f1a24;
  --m-muted: #5b6875;
  --m-line: #dbe1e7;
  --m-accent: #0e8c7f;
  --m-accent-hover: #0b7a6e;
  --m-accent-ink: #ffffff;
  --m-accent-soft: #dcf1ee;
  --m-hover: rgba(15, 26, 36, 0.045);
  --m-shadow: 0 1px 2px rgba(15, 26, 36, 0.05), 0 2px 8px -2px rgba(15, 26, 36, 0.06);
  --m-pop: 0 18px 50px -18px rgba(15, 26, 36, 0.35);
  --m-danger: #d6453a;
}

[data-bs-theme="dark"] {
  --m-bg: #0b1117;
  --m-card: #121a22;
  --m-ink: #e5ebf0;
  --m-muted: #8b98a5;
  --m-line: #212c37;
  --m-accent: #2ec4b2;
  --m-accent-hover: #4fd3c3;
  --m-accent-ink: #032420;
  --m-accent-soft: #0f2f2c;
  --m-hover: rgba(229, 235, 240, 0.055);
  --m-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --m-pop: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --m-danger: #f06d62;
}

:root,
[data-bs-theme] {
  --bs-body-bg: var(--m-bg);
  --bs-body-color: var(--m-ink);
  --bs-body-font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 15px;
  --bs-border-color: var(--m-line);
  --bs-secondary-color: var(--m-muted);
  --bs-tertiary-bg: var(--m-hover);
  --bs-link-color: var(--m-accent);
  --bs-link-color-rgb: 14, 140, 127;
  --bs-link-hover-color: var(--m-accent-hover);
  --bs-emphasis-color: var(--m-ink);
  --bs-danger: var(--m-danger);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--m-accent-soft);
}

:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: 2px;
}

a {
  text-decoration: none;
}

.min-w-0 {
  min-width: 0;
}

[data-bs-theme="dark"] .theme-dark-hide,
[data-bs-theme="light"] .theme-light-hide {
  display: none;
}

/* bootstrap components */

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-y: 0.55rem;
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-focus-box-shadow: 0 0 0 4px var(--m-accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-primary {
  --bs-btn-bg: var(--m-accent);
  --bs-btn-border-color: var(--m-accent);
  --bs-btn-color: var(--m-accent-ink);
  --bs-btn-hover-bg: var(--m-accent-hover);
  --bs-btn-hover-border-color: var(--m-accent-hover);
  --bs-btn-hover-color: var(--m-accent-ink);
  --bs-btn-active-bg: var(--m-accent-hover);
  --bs-btn-active-border-color: var(--m-accent-hover);
  --bs-btn-active-color: var(--m-accent-ink);
  --bs-btn-disabled-bg: var(--m-accent);
  --bs-btn-disabled-border-color: var(--m-accent);
  --bs-btn-disabled-color: var(--m-accent-ink);
}

.btn-danger {
  --bs-btn-bg: var(--m-danger);
  --bs-btn-border-color: var(--m-danger);
  --bs-btn-hover-bg: var(--m-danger);
  --bs-btn-hover-border-color: var(--m-danger);
}

.btn-ghost {
  --bs-btn-color: var(--m-ink);
  --bs-btn-border-color: var(--m-line);
  --bs-btn-hover-bg: var(--m-hover);
  --bs-btn-hover-border-color: var(--m-line);
  --bs-btn-hover-color: var(--m-ink);
  --bs-btn-active-bg: var(--m-hover);
  --bs-btn-active-border-color: var(--m-line);
}

.btn.is-loading {
  color: transparent !important;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--m-accent-ink);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-control {
  background-color: var(--m-card);
  border-color: var(--m-line);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  font-size: 15px;
  color: var(--m-ink);
}

.form-control:hover {
  border-color: color-mix(in srgb, var(--m-muted) 45%, var(--m-line));
}

.form-control:focus {
  background-color: var(--m-card);
  border-color: var(--m-accent);
  box-shadow: 0 0 0 4px var(--m-accent-soft);
  color: var(--m-ink);
}

.form-control::placeholder {
  color: var(--m-muted);
  opacity: 0.75;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-error {
  margin: 1rem 0 0;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 14px;
  color: var(--m-danger);
  background: color-mix(in srgb, var(--m-danger) 10%, transparent);
}

.modal {
  --bs-modal-bg: var(--m-card);
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 22px;
  --bs-modal-inner-border-radius: 22px;
  --bs-modal-padding: 1.5rem;
  --bs-modal-header-padding: 1.5rem 1.5rem 0;
  --bs-modal-header-border-width: 0;
  --bs-modal-footer-border-width: 0;
  --bs-modal-footer-gap: 0.5rem;
  --bs-modal-box-shadow: var(--m-pop);
  --bs-modal-width: 440px;
}

.modal-lg-narrow {
  --bs-modal-width: 540px;
}

.modal-backdrop {
  --bs-backdrop-bg: #0b1117;
  --bs-backdrop-opacity: 0.45;
}

.modal-title {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.modal-body {
  padding-top: 1rem;
}

.modal-body > p:first-child {
  margin-top: -0.25rem;
}

.modal-footer {
  padding-top: 0.5rem;
}

textarea.form-control {
  resize: none;
}

.modal-footer .switch {
  width: 100%;
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--m-muted);
}

.btn-close {
  border-radius: 50%;
  padding: 0.6rem;
}

[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.dropdown-menu {
  --bs-dropdown-bg: var(--m-card);
  --bs-dropdown-border-color: var(--m-line);
  --bs-dropdown-border-radius: 14px;
  --bs-dropdown-padding-x: 0.35rem;
  --bs-dropdown-padding-y: 0.35rem;
  --bs-dropdown-link-color: var(--m-ink);
  --bs-dropdown-link-hover-bg: var(--m-hover);
  --bs-dropdown-link-hover-color: var(--m-ink);
  --bs-dropdown-link-active-bg: var(--m-hover);
  --bs-dropdown-link-active-color: var(--m-ink);
  --bs-dropdown-item-border-radius: 9px;
  --bs-dropdown-item-padding-y: 0.55rem;
  --bs-dropdown-divider-bg: var(--m-line);
  --bs-dropdown-min-width: 13rem;
  box-shadow: var(--m-pop);
  font-size: 14px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  opacity: 0.75;
}

.dropdown-item.text-danger:hover {
  background: color-mix(in srgb, var(--m-danger) 10%, transparent);
  color: var(--m-danger);
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--m-accent);
}

.link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--m-muted);
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  background: var(--m-hover);
  color: var(--m-ink);
}

/* layout: icon rail, feed, side panel */

.app {
  min-height: 100dvh;
  padding-bottom: 88px;
}

.main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 0.75rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--m-ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--m-accent);
  color: var(--m-accent-ink);
  font-family: "Young Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1;
  padding-bottom: 4px;
}

.brand-word {
  font-family: "Young Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 0.75rem 0 1rem;
  background: color-mix(in srgb, var(--m-bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--m-line);
}

.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 1020;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 1.5rem env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--m-card) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--m-line);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--m-muted);
}

.tab i {
  font-size: 19px;
}

.tab.is-active {
  color: var(--m-accent);
}

.tab-new {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: var(--m-accent);
  color: var(--m-accent-ink);
  font-size: 20px;
  box-shadow: 0 8px 20px -8px var(--m-accent);
}

.rail,
.side {
  display: none;
}

@media (min-width: 768px) {
  .app {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .topbar,
  .tabbar {
    display: none;
  }

  .main {
    padding: 2rem 1.5rem 4rem;
  }

  .rail {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    height: 100dvh;
    padding: 1.25rem 0;
    border-right: 1px solid var(--m-line);
  }

  .rail .brand {
    margin-bottom: 1.25rem;
  }

  .rail-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .rail-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--m-muted);
    font-size: 19px;
    transition: background-color 0.15s, color 0.15s;
  }

  .rail-link span {
    position: absolute;
    left: calc(100% + 10px);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: var(--m-ink);
    color: var(--m-bg);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-4px);
    transition: opacity 0.15s, transform 0.15s;
  }

  .rail-link:hover span {
    opacity: 1;
    transform: none;
  }

  .rail-link:hover {
    background: var(--m-hover);
    color: var(--m-ink);
  }

  .rail-link.is-active {
    background: var(--m-accent-soft);
    color: var(--m-accent);
  }

  .rail-new {
    width: 48px;
    height: 48px;
    margin-top: 0.5rem;
    border: 0;
    border-radius: 16px;
    background: var(--m-accent);
    color: var(--m-accent-ink);
    font-size: 18px;
    box-shadow: 0 8px 20px -10px var(--m-accent);
    transition: transform 0.15s, background-color 0.15s;
  }

  .rail-new:hover {
    background: var(--m-accent-hover);
    transform: translateY(-1px);
  }

  .rail-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .rail-avatar {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: none;
  }

  .rail-avatar:hover,
  .rail-avatar[aria-expanded="true"] {
    border-color: var(--m-accent);
  }
}

@media (min-width: 1140px) {
  .app {
    grid-template-columns: 84px minmax(0, 1fr) 340px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100dvh;
    padding: 2rem 1.5rem 2rem 0;
  }
}

.panel {
  padding: 1.25rem;
  border: 1px solid var(--m-line);
  border-radius: 20px;
  background: var(--m-card);
}

.panel-title {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.side-foot {
  margin: auto 0 0;
  font-size: 12px;
  color: var(--m-muted);
}

.page-head {
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0.25rem 1.25rem;
}

.page-head h2 {
  margin: 0;
  font-family: "Young Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.page-head span {
  color: var(--m-muted);
}

/* composer */

.composer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  border: 1px solid var(--m-line);
  border-radius: 20px;
  background: var(--m-card);
  box-shadow: var(--m-shadow);
}

.composer-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 1rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--m-hover);
  color: var(--m-muted);
  font-size: 15px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: background-color 0.15s;
}

.composer-input:hover {
  background: color-mix(in srgb, var(--m-hover) 100%, var(--m-hover));
  color: var(--m-ink);
}

/* posts */

.feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--m-hover);
}

.post {
  padding: 1.1rem 1.15rem 0.5rem;
  border: 1px solid var(--m-line);
  border-radius: 20px;
  background: var(--m-card);
  box-shadow: var(--m-shadow);
}

@media (min-width: 576px) {
  .post {
    padding: 1.35rem 1.5rem 0.6rem;
  }
}

.post.is-link {
  cursor: pointer;
  transition: border-color 0.15s;
}

.post.is-link:hover {
  border-color: color-mix(in srgb, var(--m-muted) 35%, var(--m-line));
}

.post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
}

.author-name {
  display: block;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-author:hover .author-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-meta {
  display: block;
  margin-top: 1px;
  font-size: 13.5px;
  color: var(--m-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-title {
  margin: 0.95rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.post-body {
  margin: 0.45rem 0 0;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.post-title + .post-body {
  color: color-mix(in srgb, var(--m-ink) 82%, var(--m-muted));
}

.post-head + .post-body {
  margin-top: 0.95rem;
}

.post-media {
  margin-top: 0.95rem;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: var(--m-hover);
}

.post-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--m-accent-soft);
  color: var(--m-accent);
  font-size: 13px;
  font-weight: 600;
}

.post-foot {
  display: flex;
  gap: 0.25rem;
  margin: 0.75rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid var(--m-line);
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--m-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.foot-btn:first-child {
  margin-left: -0.75rem;
}

.foot-btn:hover {
  background: var(--m-hover);
  color: var(--m-ink);
}

.feed-done {
  margin: 1.75rem 0 0.5rem;
  text-align: center;
  font-size: 14px;
  color: var(--m-muted);
}

#feed-end .post {
  margin-top: 1rem;
}

/* single post */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0.25rem;
  font-weight: 600;
  color: var(--m-muted);
}

.back-link:hover {
  color: var(--m-ink);
}

.comments {
  margin-top: 1rem;
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--m-line);
  border-radius: 20px;
  background: var(--m-card);
}

@media (min-width: 576px) {
  .comments {
    padding: 1.5rem;
  }
}

.comments-title {
  margin-bottom: 1rem;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.comments-title span {
  font-family: var(--bs-body-font-family);
  font-size: 15px;
  color: var(--m-muted);
}

.comment-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comment-form .form-control {
  border-radius: 999px;
}

.comment-form .btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
}

.comment-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: 14px;
  background: var(--m-hover);
  font-size: 14px;
  color: var(--m-muted);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.comment {
  display: flex;
  gap: 0.65rem;
}

.comment-bubble {
  min-width: 0;
  padding: 0.6rem 0.95rem 0.7rem;
  border-radius: 4px 16px 16px 16px;
  background: var(--m-hover);
}

.comment-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--m-ink);
}

.comment-name span {
  font-weight: 400;
  color: var(--m-muted);
}

.comment-bubble p {
  margin: 0.15rem 0 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* profile */

.profile {
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1px solid var(--m-line);
  border-radius: 22px;
  background: var(--m-card);
}

.profile-cover {
  height: 130px;
  background-color: var(--m-accent);
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.profile-body {
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem;
}

@media (min-width: 576px) {
  .profile-body {
    padding: 0 1.75rem 1.5rem;
  }
}

.profile-avatar {
  display: block;
  width: 104px;
  height: 104px;
  margin-top: -52px;
  border: 4px solid var(--m-card);
  border-radius: 50%;
  object-fit: cover;
  background: var(--m-card);
}

.profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.profile-name {
  margin: 0;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.profile-handle {
  margin: 0.15rem 0 0;
  color: var(--m-muted);
}

.stats {
  display: flex;
  gap: 2rem;
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--m-line);
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
}

.stats dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--m-muted);
}

.stats dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.section-label {
  margin: 0 0.25rem 0.85rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-muted);
}

/* forms in modals */

.avatar-pick {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border: 1px dashed var(--m-line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.avatar-pick:hover {
  border-color: var(--m-accent);
  background: var(--m-hover);
}

.avatar-pick strong,
.avatar-pick small {
  display: block;
}

.avatar-pick small {
  color: var(--m-muted);
}

.drop {
  display: block;
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px dashed var(--m-line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.drop:hover {
  border-color: var(--m-accent);
  background: var(--m-hover);
}

.drop-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 64px;
  font-weight: 600;
  color: var(--m-muted);
}

.drop-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.danger-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--m-danger) 12%, transparent);
  color: var(--m-danger);
  font-size: 20px;
}

/* states */

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--m-accent-soft);
  color: var(--m-accent);
  font-size: 22px;
}

.empty-title {
  margin: 1rem 0 0.25rem;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.2rem;
}

.empty-text {
  margin: 0;
  font-size: 14px;
  color: var(--m-muted);
}

.feed > .empty,
#user-posts > .empty {
  border: 1px dashed var(--m-line);
  border-radius: 20px;
}

.sk {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--m-hover);
  animation: pulse 1.4s ease-in-out infinite;
}

.sk-circle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.sk-media {
  height: 220px;
  border-radius: 16px;
}

.sk.w-40 {
  width: 40%;
}

.skeleton {
  padding-bottom: 1.35rem;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

/* toasts and back-to-top */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .toasts {
    bottom: 28px;
  }
}

.toast-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(92vw, 420px);
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: var(--m-ink);
  color: var(--m-bg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--m-pop);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast-pill i {
  color: var(--m-accent);
}

.toast-pill.is-error i {
  color: var(--m-danger);
}

.toast-pill.is-in {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 92px;
  z-index: 1010;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--m-line);
  border-radius: 50%;
  background: var(--m-card);
  color: var(--m-ink);
  box-shadow: var(--m-pop);
}

.to-top[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .to-top {
    bottom: 1.5rem;
  }
}

/* scrollbars */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--m-muted) 35%, transparent) padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--m-muted) 60%, transparent);
}

@supports (-moz-appearance: none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--m-muted) 40%, transparent) transparent;
  }
}
