:root {
  --bg: #111111;
  --text: #ffffff;
  --header-bg: #252525;
  --btn-bg: #1f1f1f;
  --btn-text: #ffffff;
  --accent: #b93526;
  --border: #2c2c2c;
  --muted: #a0a0a0;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* Shared button styles */
.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.15);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* Outline pill button (popular tags, etc.) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn-icon {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

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

/* ---------- Pagination ---------- */
.paginator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.paginator-btn,
.paginator-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1;
}

.paginator-page.is-current {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.paginator-btn:hover,
.paginator-page:hover {
  filter: brightness(1.12);
}

.paginator-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.paginator-ellipsis {
  color: var(--muted);
  padding: 0 0.25rem;
}

.paginator-meta {
  text-align: center;
  margin: 0.65rem 0 0;
}

/* ---------- Auth forms ---------- */
.auth-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Full-viewport login / signup: brand + card centered, footer pinned */
body.auth-layout {
  min-height: 100vh;
}

body.auth-layout .app-shell--auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.auth-layout .main-col--auth {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.auth-layout .content--auth {
  flex: 1 1 auto;
  width: 100%;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.auth-layout .auth-stage {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

body.auth-layout .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
}

body.auth-layout .auth-brand .logo-mark {
  color: var(--accent);
  font-size: 1.25rem;
}

body.auth-layout .auth-section {
  margin: 0;
  width: 100%;
  min-height: auto;
  align-items: stretch;
}

body.auth-layout .auth-card {
  width: 100%;
  margin: 0 auto;
}

body.auth-layout .site-footer {
  margin-top: 0;
  flex: 0 0 auto;
  width: 100%;
}

/* Affiliate favicons in sidebar / drawer */
.affiliate-favicon-wrap {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.affiliate-favicon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  background: #fff;
}

.affiliate-favicon--lg {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

/* Live cams iframe host (script sizes the box) */
.live-iframe-wrap {
  width: 100%;
  min-height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.live-section .section-title {
  margin-bottom: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.35rem 1.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-label input {
  background: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  outline: none;
}

.auth-label input:focus {
  border-color: var(--accent);
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  text-align: center;
}

.auth-errors {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  list-style: disc;
  list-style-position: inside;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}

.auth-switch {
  margin: 1.1rem 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--accent);
  text-decoration: underline;
}

.auth-magic-link-wrap {
  margin: 1.25rem 0 0;
  text-align: center;
}

.auth-user {
  align-self: center;
  font-size: 0.9rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Site footer (bottom-left) ---------- */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  text-align: left;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.35rem 0.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-footer-nav a {
  color: var(--muted);
  padding: 0.15rem 0.45rem;
}

.site-footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer-sep {
  color: var(--border);
  user-select: none;
}

.site-footer-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
}

.site-footer-rta,
.age-gate-rta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--muted);
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Disclaimer removed from site chrome (kept for age-gate copy only if needed). */
.site-footer-disclaimer {
  display: none;
}

/* Upload button uses brand accent + btn_text */
.btn-upload {
  background: var(--accent);
  color: var(--btn-text);
  border: none;
  font-weight: 600;
}
.btn-upload:hover {
  filter: brightness(1.12);
}

.profile-icon {
  flex-shrink: 0;
}

/* eBay-style feedback stars */
.feedback-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  line-height: 1;
  vertical-align: middle;
}
.feedback-stars .star {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.feedback-stars .star--full {
  color: #f5a623; /* gold like eBay */
}
.feedback-stars .star--half {
  color: #f5a623;
  opacity: 0.65;
}
.feedback-stars .star--empty {
  color: #5a5a5a;
}
.feedback-stars .feedback-score {
  margin-left: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.feedback-stars--sm .star {
  font-size: 0.85rem;
}
.feedback-stars--sm .feedback-score {
  font-size: 0.75rem;
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.avatar-xl {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-display-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.profile-bio {
  margin: 0 0 1.5rem;
  line-height: 1.5;
  max-width: 40rem;
}
.profile-form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profile-form input,
.profile-form textarea,
.profile-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.profile-form input:focus,
.profile-form input:focus-visible,
.profile-form textarea:focus,
.profile-form textarea:focus-visible,
.profile-form select:focus,
.profile-form select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  outline: none;
}
.form-hint {
  font-size: 0.8rem;
}
.form-success {
  color: #3ecf8e;
  margin-bottom: 1rem;
}
.form-errors {
  color: #f87171;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

/* Comments */
.comments-block {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
  min-height: 4.5rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Brand accent on focus; suppress browser red/white :invalid ring on empty required fields. */
.comment-form textarea:focus,
.comment-form textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  outline: none;
}
.comment-form textarea:invalid,
.comment-form textarea:user-invalid {
  box-shadow: none;
}
.comment-form textarea:invalid:focus,
.comment-form textarea:invalid:focus-visible,
.comment-form textarea:user-invalid:focus,
.comment-form textarea:user-invalid:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.comment-author {
  font-weight: 600;
}
.comment-body {
  margin: 0;
  line-height: 1.45;
}
.comment-login-hint {
  margin: 0;
  font-size: 0.9rem;
}

.comment-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.comment-login-row .comment-login-hint {
  flex: 1 1 auto;
  min-width: 0;
}

.comment-login-row .comment-login-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Sound icon pair: only one glyph visible */
.icon-sound-on.is-hidden,
.icon-sound-off.is-hidden,
.feed-sound svg.is-hidden,
#soundToggle svg.is-hidden,
svg.is-hidden[hidden] {
  display: none !important;
}

#soundToggle svg,
.feed-sound svg {
  display: block;
}
#soundToggle svg[hidden],
.feed-sound svg[hidden] {
  display: none !important;
}

/* Watch actions */
.watch-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.watch-actions .player-action.is-active {
  color: var(--accent);
}
.inline-form {
  display: inline;
  margin: 0;
}
.player-overlay-actions {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.player-wrap {
  position: relative;
}

/* Search type tabs + duration filter */
.search-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0.75rem 0 1rem;
}
.search-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--surface, #161616);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0.88;
  white-space: nowrap;
}
.search-type-tab:hover {
  opacity: 1;
  background: var(--btn-bg);
}
.search-type-tab.is-active {
  opacity: 1;
  background: var(--btn-bg);
  box-shadow: inset 0 -3px 0 var(--accent);
  border-color: transparent;
}
.search-type-count {
  font-weight: 600;
  opacity: 0.75;
  font-size: 0.8rem;
}
.search-type-section {
  margin: 0 0 1.75rem;
}
.search-type-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  align-items: flex-end;
}
.search-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.search-filter-field select {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  min-width: 12rem;
}

/* Upload soon / upload page */
.upload-soon-card {
  max-width: 32rem;
  margin: 1rem 0 2rem;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--header-bg);
  text-align: center;
}
.upload-soon-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.upload-soon-card h2 {
  margin: 0 0 0.5rem;
}
.upload-soon-card p {
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
/* Single-row breadcrumbs */
.breadcrumbs {
  margin: 0 0 0.75rem;
  min-width: 0;
}
.breadcrumbs-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  min-width: 0;
  overflow: hidden;
}
.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  max-width: 100%;
}
.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--muted);
  opacity: 0.7;
  flex: 0 0 auto;
}
.breadcrumbs-item a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.breadcrumbs-item a:hover {
  color: var(--text);
}
.breadcrumbs-item.is-current {
  color: var(--text);
  font-weight: 700;
  min-width: 0;
  flex: 1 1 auto;
}
.breadcrumbs-item.is-current span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Gallery media prev/next */
.gallery-media-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}
.gallery-media-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--btn-bg, #1f1f1f);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.gallery-media-nav-btn:hover {
  border-color: var(--accent);
}
.gallery-media-nav-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.gallery-media-nav-meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Classifieds: continent tabs left, category filter right (same row) */
.classified-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
}
.classified-filter-toolbar .continent-tabs {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.classified-category-form {
  margin: 0;
  margin-left: auto;
  flex: 0 0 auto;
}
.classified-category-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted, #888);
}
.classified-category-label select {
  min-width: 10rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--btn-bg, #1f1f1f);
  color: var(--text, #fff);
  font: inherit;
}

/* Continent / filter tabs (classifieds etc.) */
.continent-tabs,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 0.75rem 0 1rem;
}
.continent-tab,
.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--surface, #161616);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0.88;
  white-space: nowrap;
}
.continent-tab:hover,
.filter-tab:hover {
  opacity: 1;
  background: var(--btn-bg);
}
.continent-tab.is-active,
.filter-tab.is-active {
  opacity: 1;
  background: var(--btn-bg);
  border-color: transparent;
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* Image watch page (video-like) */
.image-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.image-watch-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border, #2c2c2c);
}
.image-watch-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .image-watch-layout {
    grid-template-columns: 1fr;
  }
}

.upload-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1.25rem 0 1rem;
}
.upload-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--surface, #161616);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.88;
}
.upload-tab:hover {
  opacity: 1;
  background: var(--btn-bg);
}
.upload-tab.is-active {
  opacity: 1;
  background: var(--btn-bg);
  border-color: transparent;
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* Hide chrome footer on mobile vertical feed */
body.feed .site-footer {
  display: none;
}

/* ---------- Legal / policy pages ---------- */
.legal-page {
  max-width: 48rem;
}

.legal-page-title {
  font-size: 1.45rem;
}

.legal-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-body h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.65rem;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 0.9rem;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* Buttons inside legal copy must keep readable label colour (not accent-on-accent). */
.legal-body a.btn,
.legal-body a.btn-accent {
  color: #ffffff;
  text-decoration: none;
}

.legal-body a.btn:hover,
.legal-body a.btn-accent:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.12);
}

.legal-lead {
  font-size: 1rem;
  color: var(--text);
}

.legal-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--btn-bg);
  font-weight: 600;
}

.legal-table code {
  font-size: 0.85em;
}

.legal-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.legal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0 1.75rem;
  max-width: 40rem;
}

.legal-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.legal-form .form-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.legal-form input[type="text"],
.legal-form input[type="email"],
.legal-form input[type="date"],
.legal-form select,
.legal-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border, #333);
  background: var(--btn-bg, #222);
  color: var(--text, #fff);
  font: inherit;
}

.legal-form input:focus,
.legal-form select:focus,
.legal-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.legal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .legal-form-row {
    grid-template-columns: 1fr;
  }
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.legal-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.legal-fieldset {
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  padding: 0.75rem 1rem 1rem;
  margin: 0;
}

.legal-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.legal-fieldset .legal-check {
  margin: 0.35rem 0;
}

.legal-company-contact,
.legal-copyright-agent {
  line-height: 1.5;
}

.legal-toc {
  margin: 1.25rem 0 1.75rem;
  padding: 0.9rem 1rem;
  background: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
}

.legal-toc ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.legal-toc a {
  color: var(--accent);
}

.legal-body h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.55rem;
}

/* ---------- Age gate (18+) ---------- */
body.age-gate-open {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  transition: opacity 0.18s ease;
}

.age-gate.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

.age-gate-card {
  width: 100%;
  max-width: 32rem;
  margin: auto;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.age-gate-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.age-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.age-gate-brand .logo-mark {
  color: var(--accent);
}

.age-gate-title-sep {
  font-weight: 700;
  opacity: 0.85;
}

.age-gate-title-text {
  font-weight: 700;
}

.age-gate-heading {
  margin: 0.9rem 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.age-gate-text {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.age-gate-text a {
  color: var(--accent);
  text-decoration: underline;
}

.age-gate-prefs {
  margin: 1.15rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.age-gate-prefs-legend {
  margin: 0 0 0.55rem;
  padding: 0;
}

.age-gate-pref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.age-gate-pref {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.75rem;
  padding: 0.65rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border, #333);
  background: var(--btn-bg, #222);
  color: var(--text, #fff);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.age-gate-pref:hover {
  border-color: var(--accent);
}

.age-gate-pref:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

.age-gate-pref.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--btn-bg, #222));
  box-shadow: 0 0 0 1px var(--accent);
  color: var(--text, #fff);
}

.age-gate-pref-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.95;
}

.age-gate-pref.is-selected .age-gate-pref-icon {
  color: var(--accent);
}

.age-gate-pref-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.1rem 0 1rem;
}

.age-gate-actions .btn {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.age-gate-help {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.45;
}

.age-gate-help a {
  color: var(--accent);
  text-decoration: underline;
}

.age-gate-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 520px) {
  .age-gate-actions {
    flex-direction: row;
  }

  .age-gate-actions .btn {
    flex: 1 1 0;
  }
}

/* ---------- Bookmark prompt (after age gate) ---------- */
body.bookmark-prompt-open {
  overflow: hidden;
}

.bookmark-prompt {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  transition: opacity 0.18s ease;
}

.bookmark-prompt[hidden] {
  display: none !important;
}

.bookmark-prompt.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

.bookmark-prompt-card {
  width: 100%;
  max-width: 22rem;
  margin: auto;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.bookmark-prompt-icon {
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bookmark-prompt-title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.bookmark-prompt-text {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.bookmark-prompt-hint {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.bookmark-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bookmark-prompt-actions .btn {
  width: 100%;
  text-align: center;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

@media (min-width: 420px) {
  .bookmark-prompt-actions {
    flex-direction: row;
  }

  .bookmark-prompt-actions .btn {
    flex: 1 1 0;
  }
}

/* ---------- Google SSO button ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1 1 0;
  height: 1px;
  background: var(--border);
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.auth-google-btn--first {
  margin-top: 1rem;
}

.auth-google-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: #1f1f1f;
}

.auth-google-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-google-icon {
  flex: 0 0 auto;
  display: block;
}


/* Votes on watch page */
.watch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
/* Vote chips: override tiny circular .btn-icon so thumbs + count stay readable */
.watch-actions .vote-form .vote-btn.btn-icon,
.watch-actions .vote-btn {
  width: auto;
  min-width: 3.5rem;
  height: 2.75rem;
  border-radius: 999px;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.watch-actions .vote-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}
.watch-actions .vote-count {
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 1.1rem;
  line-height: 1;
}
.admin-delete-video-btn {
  color: #f85149;
  border-color: rgba(248, 81, 73, 0.45);
  margin-left: 0.25rem;
}
.admin-delete-video-btn:hover {
  background: rgba(248, 81, 73, 0.12);
}
.comment-delete-btn {
  color: #f85149;
  margin-left: 0.35rem;
  font-size: 0.85em;
}
.watch-actions .vote-btn.is-active {
  color: var(--accent, #e11d48);
  background: color-mix(in srgb, var(--accent, #e11d48) 16%, var(--btn-bg));
}
.comment-report-form {
  display: inline;
  margin-left: 0.5rem;
}
.comment-report-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted, #888);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}
.comment-report-btn:hover {
  color: var(--text, #fff);
}

/* Online now */
.online-user-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.online-user-item {
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 10px;
  background: var(--surface, #161616);
}
.online-user-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
}
.online-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.online-user-name {
  font-weight: 600;
}
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex: 0 0 auto;
}

/* Media catalogue (images / galleries / shouts / groups) */
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.section-head-row .section-title {
  margin: 0;
}
.media-grid {
  margin-top: 1rem;
}
.media-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #161616);
  transition: border-color 0.15s ease;
}
.media-card:hover {
  border-color: var(--accent);
}
.media-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}
.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card-thumb--gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1f28, #0d1117);
}
.media-card-gallery-icon {
  font-size: 2rem;
  opacity: 0.55;
}
.media-type-badge {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}
.media-card-meta {
  padding: 0.65rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.media-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}
.media-viewer {
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #2c2c2c);
  background: #000;
}
.media-viewer-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}
.media-upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 12px;
  background: var(--surface, #161616);
  max-width: 520px;
}
.group-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.group-list-item {
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 12px;
  background: var(--surface, #161616);
}
.group-list-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}
.group-list-desc {
  font-size: 0.9rem;
  opacity: 0.85;
}
.shout-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.shout-item {
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface, #161616);
}
.shout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.shout-author {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.shout-body {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
}
.shout-media {
  display: block;
  margin-top: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  max-width: 480px;
}
.shout-media img {
  display: block;
  width: 100%;
  height: auto;
}
.shout-video-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 0.5rem;
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  max-width: 420px;
}
.shout-video-card img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}
.shout-report-form {
  margin-left: auto;
}

/* Admin */
.admin-subsection-title {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.admin-stat-note {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}
.admin-stat-card {
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface, #161616);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.admin-stat-label {
  color: var(--muted, #888);
  font-size: 0.85rem;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.admin-report-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.admin-report-item {
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface, #161616);
}
.admin-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.admin-filter-form {
  margin: 1rem 0;
}
.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

/* ---- Classifieds ---- */
.classified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.classified-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #161616);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.classified-card:hover {
  border-color: var(--accent, #3b82f6);
  transform: translateY(-1px);
}
.classified-card-photo {
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  overflow: hidden;
}
.classified-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.classified-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.9rem 0.9rem;
  font-size: 0.9rem;
}
.classified-card-cat {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent, #3b82f6);
}
.classified-card-body {
  opacity: 0.9;
  line-height: 1.35;
}
.classified-detail {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: start;
}
.classified-detail-photo {
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border, #2c2c2c);
}
.classified-detail-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.classified-body {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 0.75rem 0 0;
}
.classified-form fieldset,
.classified-location,
.classified-interests {
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 10px;
  padding: 0.75rem 1rem 1rem;
  margin: 0;
}
.classified-form legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem 0.75rem;
  margin-top: 0.35rem;
}
.interest-check {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.interest-check input {
  margin-top: 0.2rem;
}
.form-hint {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.messages-folder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0.75rem 0 1rem;
}
.messages-folder-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--surface, #161616);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0.88;
}
.messages-folder-tab:hover {
  opacity: 1;
  background: var(--btn-bg);
}
.messages-folder-tab.is-active {
  opacity: 1;
  background: var(--btn-bg);
  box-shadow: inset 0 -3px 0 var(--accent);
  border-color: transparent;
}
.messages-thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.topbar-link--messages {
  position: relative;
  white-space: nowrap;
}

/* ---- Messages ---- */
.messages-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  min-height: 420px;
}
.messages-inbox {
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 12px;
  background: var(--surface, #161616);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.messages-inbox-title {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border, #2c2c2c);
}
.messages-conv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 70vh;
}
.messages-conv-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border, #2c2c2c);
}
.messages-conv-item:hover,
.messages-conv-item.is-active {
  background: rgba(59, 130, 246, 0.12);
}
.messages-conv-preview {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.messages-conv-time {
  font-size: 0.75rem;
}
.messages-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.messages-thread {
  border: 1px solid var(--border, #2c2c2c);
  border-radius: 12px;
  background: var(--surface, #161616);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.messages-thread-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border, #2c2c2c);
}
.messages-thread-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.messages-thread-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  max-height: 55vh;
}
.messages-thread-placeholder {
  padding: 2rem 1rem;
  text-align: center;
}
.message-bubble {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: #222;
  align-self: flex-start;
}
.message-bubble.is-mine {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.25);
}
.message-meta {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}
.message-text {
  white-space: pre-wrap;
  line-height: 1.4;
}
.messages-compose {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border, #2c2c2c);
}
.messages-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 4rem;
}
@media (max-width: 800px) {
  .classified-detail {
    grid-template-columns: 1fr;
  }
  .messages-layout {
    grid-template-columns: 1fr;
  }
  .messages-inbox {
    max-height: 240px;
  }
  .messages-conv-list {
    max-height: 200px;
  }
}
