:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-soft: #faf9f7;
  --ink: #1c1c1a;
  --muted: #74716b;
  --faint: #9b9891;
  --line: #e6e2da;
  --line-strong: #d8d3c9;
  --accent: #df5f79;
  --accent-soft: #fff0f4;
  --teal: #0f766e;
  --teal-soft: #eaf7f4;
  --yellow: #e3a01f;
  --danger: #c23b2f;
  --shadow: 0 18px 45px rgba(35, 31, 24, 0.08);
  --radius: 8px;
  --shell: min(1220px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: light;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.app-shell {
  width: var(--shell);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 218px minmax(0, 680px) 280px;
  justify-content: center;
  gap: 24px;
}

.app-shell.admin-mode {
  width: min(1440px, calc(100vw - 40px));
  grid-template-columns: 218px minmax(0, 1fr);
}

.app-shell.admin-mode .right-rail {
  display: none;
}

.sidebar,
.right-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar,
.right-rail::-webkit-scrollbar {
  display: none;
}

.sidebar {
  padding: 28px 0 30px;
}

.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link,
.bottom-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #55524d;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.active,
.bottom-link.active {
  background: var(--surface);
  color: var(--ink);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.nav-spacer {
  height: 22px;
}

.side-account {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.side-account .user-line,
.rail-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-account p,
.rail-user p {
  min-width: 0;
  margin: 0;
}

.side-account strong,
.rail-user strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-account small,
.rail-user small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin: 14px 10px 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.main-column {
  min-width: 0;
  min-height: 100vh;
  border-inline: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.view {
  min-height: 100vh;
  padding-bottom: 40px;
}

.mobile-header {
  display: none;
}

.page-head {
  padding: 24px 22px 14px;
}

.page-head.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.page-subtitle {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.segment {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 16px 14px;
  border-radius: var(--radius);
  background: #ece9e3;
  overflow-x: auto;
  scrollbar-width: none;
}

.segment::-webkit-scrollbar {
  display: none;
}

.segment button {
  flex: 1 0 auto;
  min-width: 64px;
  height: 36px;
  padding: 0 13px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.segment button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(25, 22, 18, 0.08);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: #ece9e3;
}

.mode-switch button {
  min-height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.mode-switch button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(25, 22, 18, 0.08);
}

.chips {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.composer-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 36px);
  min-height: 76px;
  margin: 0 18px 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 1px 0 rgba(25, 22, 18, 0.02);
}

.composer-entry:hover {
  border-color: var(--line-strong);
}

.composer-copy {
  min-width: 0;
  flex: 1;
}

.composer-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.composer-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-media {
  display: flex;
  gap: 8px;
  color: var(--teal);
}

.avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #d7e5e2;
  color: #0a514c;
  font-weight: 800;
  text-transform: uppercase;
}

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

.avatar.sm {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.avatar.xs {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar.lg {
  width: 76px;
  height: 76px;
  font-size: 24px;
}

.post {
  padding: 18px 20px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.post:first-of-type {
  border-top: 0;
}

.post-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.post-author {
  min-width: 0;
  flex: 1;
}

.post-author a {
  display: inline-flex;
  max-width: 100%;
}

.post-author strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-mark {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  vertical-align: -1px;
}

.verified-mark .icon {
  width: 11px;
  height: 11px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.post-tools {
  display: flex;
  gap: 2px;
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.partition-label {
  color: var(--teal);
  font-weight: 700;
}

.post-body {
  margin: 12px 0 0 53px;
}

.post-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ebe8e2;
}

.media-grid.count-1 {
  grid-template-columns: 1fr;
}

.media-grid.count-3 .media-item:first-child {
  grid-row: span 2;
}

.media-item {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #e6e3dc;
}

.media-grid.count-1 .media-item {
  max-height: 520px;
  min-height: 220px;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 520px;
  object-fit: cover;
}

.media-grid.count-1 .media-item img,
.media-grid.count-1 .media-item video {
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #161616;
}

.media-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 15, 14, 0.58);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.video-center-toggle {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 16, 15, 0.58);
  color: #fff;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: background 140ms ease, opacity 180ms ease;
}

.video-center-toggle.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-center-toggle:hover {
  background: rgba(16, 16, 15, 0.78);
}

.video-center-toggle .icon {
  width: 21px;
  height: 21px;
}

.resource-panel {
  display: flex;
  flex-direction: column;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.resource-main {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
}

.resource-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
}

.resource-info {
  min-width: 0;
  flex: 1;
}

.resource-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.resource-title-row strong {
  font-size: 14px;
}

.resource-badge {
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.resource-url {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-open {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.resource-footer {
  min-height: 46px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.resource-footer.centered {
  justify-content: center;
}

.resource-code-area {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.resource-code-label,
.resource-no-code {
  color: var(--muted);
  font-size: 12px;
}

.resource-code-value {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 1px;
}

.resource-copy,
.resource-copy-link {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eeeae4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.resource-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.resource-panel[data-provider="baidu"] .resource-icon {
  background: #eaf1ff;
  color: #3568c9;
}

.resource-panel[data-provider="aliyun"] .resource-icon {
  background: #fff1e8;
  color: #d7691f;
}

.resource-panel[data-provider="quark"] .resource-icon {
  background: #f0edff;
  color: #6a52c9;
}

.resource-panel[data-provider="xunlei"] .resource-icon {
  background: #e8f2ff;
  color: #2876c7;
}

.resource-panel[data-provider="lanzou"] .resource-icon {
  background: #fff3e5;
  color: #d27b25;
}

.resource-panel[data-provider="other"] .resource-icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.resource-open:hover {
  background: #0b625b;
}

.resource-copy:hover,
.resource-copy-link:hover {
  background: #e3ded6;
  color: var(--ink);
}

.resource-footer .secondary-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 10px 0 0 45px;
}

.action-btn {
  min-height: 38px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.action-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.action-btn.active {
  color: var(--accent);
}

.action-btn.favorite.active {
  color: var(--yellow);
}

.action-btn .icon {
  width: 18px;
  height: 18px;
}

.right-rail {
  padding: 28px 0 32px;
}

.rail-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.rail-section + .rail-section {
  margin-top: 14px;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 14px;
}

.rail-title button {
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.trend-list {
  display: flex;
  flex-direction: column;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 12px;
}

.policy-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.trend-item {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.trend-item:first-child {
  border-top: 0;
}

.trend-item button {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0;
  background: transparent;
  text-align: left;
}

.trend-rank {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.trend-name {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-count {
  color: var(--muted);
  font-size: 11px;
}

.rail-user {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.rail-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.danger-btn:active {
  transform: translateY(1px);
}

.primary-btn {
  background: var(--ink);
  color: #fff;
}

.primary-btn:hover {
  background: #35332f;
}

.secondary-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-btn:hover {
  border-color: #b8b2a7;
}

.ghost-btn {
  background: transparent;
  color: var(--muted);
}

.danger-btn {
  background: #fff1ef;
  color: var(--danger);
}

.primary-btn.grow,
.secondary-btn.grow,
.ghost-btn.grow,
.danger-btn.grow {
  flex: 1;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
}

.icon-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.bottom-nav {
  display: none;
}

.profile-hero {
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.profile-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy h1 {
  margin: 0;
  font-size: 23px;
}

.profile-copy .handle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-bio {
  max-width: 520px;
  margin: 14px 0 0;
  color: #4d4a45;
}

.profile-stats {
  display: flex;
  gap: 22px;
  margin-top: 16px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.profile-stat strong {
  display: block;
  font-size: 17px;
}

.profile-stat span {
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 54px 28px;
  text-align: center;
  color: var(--muted);
}

.empty-state .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--teal);
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 17px;
}

.empty-state p {
  max-width: 360px;
  margin: 0 auto 16px;
}

.loading-list {
  padding: 12px 18px;
}

.skeleton {
  height: 150px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #eae7e1 20%, #f4f2ee 50%, #eae7e1 80%);
  background-size: 220% 100%;
  animation: shimmer 1.25s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(25, 23, 19, 0.46);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal.small {
  width: min(440px, 100%);
}

.modal-head {
  min-height: 58px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-size: 17px;
}

.modal-body {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 18px;
}

.field {
  display: block;
  margin-bottom: 15px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: #56524c;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface);
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row input {
  min-width: 0;
  flex: 1;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.auth-switch button {
  padding: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 750;
}

.auth-inline {
  margin: -6px 0 14px;
  text-align: right;
}

.auth-inline button {
  padding: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.dev-code {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.upload-zone {
  position: relative;
  min-height: 128px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  text-align: center;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--teal);
}

.upload-zone.dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px rgba(223, 95, 121, 0.08);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.upload-zone span {
  color: var(--muted);
  font-size: 12px;
}

.crop-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: var(--crop-ratio);
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #171614;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#video-cover-player {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius);
  background: #111;
}

.crop-stage.dragging {
  cursor: grabbing;
}

.crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
}

.crop-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.crop-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, 0.35) 33.3%, transparent 33.4%, transparent 66.5%, rgba(255, 255, 255, 0.35) 66.6%, transparent 66.7%),
    linear-gradient(to bottom, transparent 33.2%, rgba(255, 255, 255, 0.35) 33.3%, transparent 33.4%, transparent 66.5%, rgba(255, 255, 255, 0.35) 66.6%, transparent 66.7%);
}

.crop-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.crop-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.crop-ratios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: #ece9e3;
}

.crop-ratios button {
  min-height: 32px;
  padding: 0 4px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.crop-ratios button.active {
  background: var(--surface);
  color: var(--ink);
}

.crop-zoom {
  min-width: 0;
}

.crop-zoom input {
  width: 100%;
  accent-color: var(--teal);
}

.crop-tools > .ghost-btn {
  min-height: 38px;
  padding-inline: 10px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.upload-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #e6e3dc;
}

.upload-preview img,
.upload-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-media {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 16, 0.72);
  color: #fff;
}

.cover-edit {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(17, 17, 16, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.form-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff1ef;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.check-row input {
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.detail-back {
  padding: 18px 18px 0;
}

.comment-box {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.comment-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.comment-form textarea {
  min-height: 42px;
  max-height: 130px;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
  resize: vertical;
}

.comment-form textarea:focus {
  border-color: var(--teal);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 18px;
}

.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.reply-banner button {
  padding: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 800;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.comment-content {
  min-width: 0;
  flex: 1;
}

.comment-content strong {
  font-size: 13px;
}

.comment-content p {
  margin: 2px 0 0;
  word-break: break-word;
}

.reply-target {
  color: var(--teal);
  font-weight: 700;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}

.comment-meta button {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.comment-content time {
  color: var(--muted);
  font-size: 11px;
}

.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.notification-item.unread {
  background: var(--accent-soft);
}

.notification-item p {
  margin: 1px 0 3px;
}

.notification-item time {
  color: var(--muted);
  font-size: 11px;
}

.message-layout {
  min-height: calc(100vh - 1px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.conversation-list {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.conversation-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.conversation-item:hover,
.conversation-item.active {
  background: var(--surface);
}

.conversation-copy {
  min-width: 0;
  flex: 1;
}

.conversation-copy strong,
.conversation-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy span {
  color: var(--muted);
  font-size: 12px;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.chat-panel {
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
}

.chat-head {
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}

.message-list {
  min-height: 0;
  flex: 1;
  padding: 18px;
  overflow-y: auto;
}

.message-bubble {
  max-width: min(76%, 460px);
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(25, 22, 18, 0.06);
  word-break: break-word;
}

.message-bubble.mine {
  margin-left: auto;
  background: var(--teal);
  color: #fff;
}

.message-bubble time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.message-bubble.mine time {
  color: rgba(255, 255, 255, 0.72);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chat-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 16px;
  padding: 0 18px 18px;
}

.admin-nav {
  position: sticky;
  top: 18px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav button {
  min-height: 42px;
  padding: 0 11px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.admin-nav button:hover,
.admin-nav button.active {
  background: var(--surface);
  color: var(--ink);
}

.admin-nav button.active {
  box-shadow: 0 1px 0 rgba(25, 22, 18, 0.04);
}

.admin-nav em {
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.admin-main {
  min-width: 0;
}

.admin-panel {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-panel-head {
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 15px;
}

.admin-panel-head button {
  padding: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
}

.admin-panel-head > span {
  color: var(--muted);
  font-size: 12px;
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-list {
  display: flex;
  flex-direction: column;
}

.admin-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
}

.admin-list-item:first-child {
  border-top: 0;
}

.admin-list-item strong,
.admin-list-item p {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-item strong {
  font-size: 13px;
}

.admin-list-item p {
  color: var(--muted);
  font-size: 12px;
}

.admin-list-item time {
  color: var(--faint);
  font-size: 11px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-toolbar input,
.admin-toolbar select {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface);
  font-size: 13px;
}

.admin-toolbar input {
  flex: 1;
}

.admin-panel .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.admin-panel .table-actions a {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.audit-list {
  display: flex;
  flex-direction: column;
}

.audit-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.audit-item:first-child {
  border-top: 0;
}

.audit-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-item span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.audit-item time {
  color: var(--faint);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.setting-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.setting-row input {
  margin-top: 3px;
  accent-color: var(--teal);
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.system-info {
  display: flex;
  flex-direction: column;
}

.system-info div {
  min-height: 44px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.system-info div:first-child {
  border-top: 0;
}

.system-info span {
  color: var(--muted);
}

.site-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analytics-chart {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 14px;
  background: var(--surface-soft);
}

.chart-column {
  min-width: 5px;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.chart-column i {
  width: 100%;
  max-width: 14px;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--teal);
}

.chart-column span {
  color: var(--faint);
  font-size: 9px;
  writing-mode: vertical-rl;
}

.analytics-list {
  display: flex;
  flex-direction: column;
}

.analytics-list-item {
  min-height: 42px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.analytics-list-item:first-child {
  border-top: 0;
}

.analytics-list-item em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.analytics-list-item span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list-item strong {
  color: var(--muted);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 14px;
  padding: 0 18px 18px;
}

.account-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.avatar-edit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}

.avatar-edit {
  position: relative;
  cursor: pointer;
}

.avatar-edit input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.account-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
}

.account-links a {
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.stat-card {
  min-height: 90px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
}

.table-wrap {
  margin: 0 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.table-text {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 20px;
  background: #edf1ee;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.status-pill.pending {
  background: #fff2d8;
  color: #9a6400;
}

.status-pill.hidden,
.status-pill.banned {
  background: #fff0ee;
  color: var(--danger);
}

.table-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.table-actions button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-actions button:hover {
  background: #eeeae4;
  color: var(--ink);
}

.toast-root {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 7px;
  background: rgba(24, 23, 21, 0.94);
  color: #fff;
  box-shadow: 0 8px 28px rgba(20, 18, 15, 0.22);
  font-size: 13px;
  font-weight: 650;
  animation: toast-in 160ms ease-out;
}

.toast.error {
  background: rgba(162, 42, 33, 0.96);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.search-panel {
  padding: 0 18px 18px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface);
}

.search-results {
  margin-top: 14px;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  :root {
    --shell: min(940px, calc(100vw - 28px));
  }

  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: 100%;
  }

  body {
    background: var(--surface);
    font-size: 14px;
  }

  .app-shell {
    display: block;
    width: 100%;
  }

  .sidebar,
  .right-rail {
    display: none;
  }

  .main-column {
    min-height: calc(100vh - 62px);
    border: 0;
    background: var(--surface);
  }

  .view {
    padding-bottom: 78px;
  }

  .mobile-header {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 850;
  }

  .mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 15px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 3px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .bottom-link {
    min-height: 54px;
    padding: 3px 0;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
  }

  .bottom-link.active {
    background: transparent;
    color: var(--accent);
  }

  .bottom-link .icon {
    width: 21px;
    height: 21px;
  }

  .page-head {
    padding: 18px 15px 12px;
  }

  .page-title {
    font-size: 22px;
  }

  .segment {
    margin: 0 12px 12px;
  }

  .chips {
    padding: 0 12px 14px;
  }

  .composer-entry {
    width: calc(100% - 24px);
    min-height: 68px;
    margin: 0 12px 12px;
    padding: 12px;
  }

  .post {
    padding: 15px 14px 11px;
    background: var(--surface);
  }

  .post-body {
    margin-left: 0;
  }

  .post-actions {
    margin-left: -4px;
  }

  .media-grid {
    margin-inline: -1px;
  }

  .media-item {
    min-height: 128px;
  }

  .media-item img,
  .media-item video {
    min-height: 128px;
  }

  .modal-backdrop {
    padding: 0;
    place-items: end center;
  }

  .modal,
  .modal.small {
    width: 100%;
    max-height: 92vh;
    border: 0;
    border-radius: 14px 14px 0 0;
  }

  .modal-body {
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .profile-hero {
    padding: 22px 16px 18px;
  }

  .crop-tools {
    grid-template-columns: 1fr 1fr;
  }

  .crop-tools > div:first-child {
    grid-column: 1 / -1;
  }

  .profile-top {
    gap: 14px;
  }

  .avatar.lg {
    width: 64px;
    height: 64px;
  }

  .message-layout {
    min-height: calc(100vh - 120px);
    grid-template-columns: 1fr;
  }

  .message-layout.has-chat .conversation-list {
    display: none;
  }

  .message-layout:not(.has-chat) .chat-panel {
    display: none;
  }

  .conversation-list {
    border-right: 0;
  }

  .chat-panel {
    height: calc(100vh - 120px);
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-inline: 12px;
  }

  .admin-refresh-btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
    flex: 0 0 auto;
  }

  .admin-refresh-btn span {
    display: none;
  }

  .admin-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav button {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .admin-nav em {
    margin-left: 2px;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    flex-wrap: wrap;
  }

  .admin-toolbar input {
    flex-basis: 100%;
  }

  .audit-item {
    grid-template-columns: 1fr auto;
  }

  .audit-item span {
    grid-column: 1 / -1;
  }

  .account-grid {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .site-settings-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    margin-inline: 12px;
  }
}

@media (hover: none) {
  .nav-link:hover,
  .action-btn:hover,
  .icon-btn:hover,
  .conversation-item:hover {
    background: inherit;
  }
}
