/* ============================================================
   QWA — Roblox Script Hub
   Black & white only. Flat, 1px borders.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --raised: #141414;
  --border: #262626;
  --border-strong: #525252;
  --text: #ffffff;
  --muted: #a3a3a3;
  --faint: #8a8a8a;
  --accent: #ffffff;            /* white — CTAs / accent lines only */
  --radius: 8px;
  --radius-lg: 12px;
  --transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  display: block;
}

.wordmark {
  font-family: "Pirata One", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
  transition: var(--transition);
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 700;
}

.btn-icon:hover {
  border-color: var(--border-strong);
  background: var(--raised);
}

/* ============ Hero ============ */
.hero {
  border-bottom: 1px solid var(--border);
  /* thin white accent line at the very top of the hero */
  border-top: 2px solid var(--accent);
}

.hero-content {
  text-align: center;
  padding: 4.5rem 0 4rem;
}

.badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Pirata One", Georgia, serif;
  font-size: clamp(2.5rem, 6.5vw, 3.75rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--text);
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ============ Search ============ */
.search-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 0.75rem 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--text);
}

.search-box > svg {
  color: var(--muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.search-box input::placeholder {
  color: var(--faint);
}

#clear-search {
  display: none;
}

#clear-search.visible {
  display: inline-flex;
}

/* ============ Filter chips ============ */
.filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.filter-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-chip.active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

/* ============ Section headers ============ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

/* ============ Trending ============ */
.trending-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.trending-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: left;
  transition: var(--transition);
}

.trending-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.trending-rank {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.trending-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.trending-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ============ Scripts section ============ */
.scripts-section {
  padding: 3rem 0 4rem;
}

.sort-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sort-select {
  position: relative;
  width: max-content;
}

.sort-select select {
  appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 0.55rem 2.5rem 0.55rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.sort-select select:hover {
  border-color: var(--border-strong);
}

.sort-select select:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-color: var(--text);
}

/* ============ Script grid & cards ============ */
.script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 1rem;
}

.script-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}

.script-card:hover {
  border-color: var(--text);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.35;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.badge-pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  white-space: nowrap;
}

.badge-verified {
  border-color: var(--text);
  color: var(--text);
}

.badge-key {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.badge-patched {
  border-style: dashed;
  color: var(--faint);
}

.badge-trending {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.15rem 0.45rem;
}

/* ============ Card actions ============ */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-view {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-view:hover {
  background: var(--raised);
  border-color: var(--text);
}

.btn-game {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-game:hover:not(:disabled) {
  background: var(--raised);
  border-color: var(--text);
}

.btn-game:disabled {
  background: transparent;
  border-color: var(--border);
  border-style: dashed;
  color: var(--faint);
  cursor: not-allowed;
}

.btn-copy-card {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-copy-card:hover {
  background: #d4d4d4;
  border-color: #d4d4d4;
}

/* ============ Stats row ============ */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.stat-icon {
  font-size: 0.85rem;
}

.stat-val {
  color: var(--text);
}

.like-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.like-btn,
.dislike-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.like-btn:hover,
.dislike-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.like-btn.active,
.dislike-btn.active {
  border-color: var(--text);
  color: var(--text);
}

/* ============ Empty state ============ */
.empty-state {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state.visible {
  display: block;
}

.empty-icon {
  color: var(--faint);
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--text);
  margin: 0 0 0.5rem;
}

.empty-state p {
  margin: 0;
}

/* ============ About ============ */
.about {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.about-content {
  display: flex;
  justify-content: center;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 720px;
  width: 100%;
}

.about-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.about-card > p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-number {
  font-family: "Pirata One", Georgia, serif;
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* YouTube subscribe block */
.yt-subscribe {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--raised);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.yt-subscribe > svg {
  color: var(--accent);
  flex-shrink: 0;
}

.yt-text {
  min-width: 0;
  flex: 1;
}

.yt-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 0 0.15rem;
}

.yt-desc {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-subscribe:hover {
  background: #d4d4d4;
  border-color: #d4d4d4;
}

.disclaimer {
  background: var(--raised);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.disclaimer strong {
  color: var(--text);
}

/* ============ Footer ============ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  text-align: center;
}

footer .container > p:first-child {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.social-share {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  transition: var(--transition);
}

.share-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.not-affiliated {
  color: var(--faint);
  font-size: 0.7rem;
  margin: 0;
}

/* ============ Modal ============ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.modal-header h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-close {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  transition: var(--transition);
}

.btn-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 1.25rem;
}

.modal-body pre {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 0;
}

.modal-body code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d4d4d4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.modal-footer {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.btn-copy-modal {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  color: var(--bg);
  font-weight: 700;
  min-height: 44px;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-modal:hover {
  background: #d4d4d4;
  border-color: #d4d4d4;
}

.btn-download {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  min-height: 44px;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download:hover {
  border-color: var(--text);
  background: var(--raised);
}

/* ============ Toast ============ */
.toast {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.toast.visible {
  display: block;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============ Scroll to top ============ */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 105;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .script-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn-card {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat {
    padding: 0.75rem 0.5rem;
  }

  .yt-subscribe {
    flex-wrap: wrap;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn-copy-modal,
  .btn-download {
    width: 100%;
  }
}

/* ============ Card thumb ============ */
.card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0.5rem 0;
}

.trending-section .section-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.trending-section .section-header p {
  margin-top: -0.25rem;
}

/* ============ Footer admin entry ============ */
.admin-entry {
  opacity: 0.45;
  font-size: 0.75rem !important;
}
.admin-entry:hover { opacity: 0.9; }

/* ============ Admin modal ============ */
.admin-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.75);
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.admin-overlay[hidden] { display: none; }

.admin-panel {
  width: 100%;
  max-width: 560px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 1.25rem;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.admin-header h3 { margin: 0; font-size: 1.1rem; }

.admin-step { display: block; }
.admin-step[hidden] { display: none; }

.admin-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0 0 0.6rem;
}
.admin-note code { background: var(--bg); padding: 0 0.3em; border-radius: 4px; }

.admin-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}
.admin-input:focus { outline: none; border-color: var(--text); }
.admin-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  resize: vertical;
}

.admin-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
}

.admin-full { width: 100%; justify-content: center; }

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.admin-file {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.admin-file input[type="file"] {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  max-width: 100%;
}

.admin-image-hint {
  color: var(--faint);
  font-size: 0.75rem;
  margin: 0 0 0.6rem;
  overflow-wrap: anywhere;
}

.admin-list-wrap { margin-top: 1rem; }
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
}
.admin-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
}
.admin-item-title {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-item-btn {
  font-size: 0.75rem !important;
  padding: 0.35rem 0.6rem !important;
  min-height: auto !important;
}

.admin-discussions {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  opacity: 0.75;
}
.admin-discussions:hover { color: var(--text); opacity: 1; }
