:root {
  --bg: #e5ecc6;
  --bg-soft: #f4f5e5;
  --surface: #f9f8ef;
  --surface-strong: #ffffff;
  --line: #bcc58f;
  --line-strong: #8c5531;
  --text: #2f2a1c;
  --muted: #64702f;
  --brown: #8a4c24;
  --brown-deep: #6c3418;
  --green: #7a9b1c;
  --green-deep: #64811c;
  --cream: #f7f5e9;
  --success: #3b714e;
  --warning: #9d6936;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Verdana", "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #edf2d2 0%, #e4ebc5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; }

h1,
h2 {
  font-family: "Georgia", "Cormorant Garamond", serif;
  line-height: 0.95;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2.35rem, 3.8vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3,
h4 { margin: 0 0 10px; }

.shell {
  width: min(1240px, calc(100% - 12px));
  margin: 0 auto;
  padding: 8px 0 30px;
}

.shell.narrow { width: min(760px, calc(100% - 20px)); }

.classic-site-bar {
  background: #5d2c14;
  border-bottom: 4px solid #8ea32b;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
}

.classic-site-bar-inner {
  display: grid;
  grid-template-columns: minmax(320px, 620px) 1fr;
  align-items: start;
  gap: 8px 16px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand {
  min-height: 72px;
}

.brand-textual {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-text-only {
  gap: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-kicker {
  color: #efe6cc;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.brand-name {
  color: #fff7e8;
  font-family: "Georgia", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.92;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-sub {
  color: #d9c4a0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.brand-mobile {
  display: none;
  color: #fff7e6;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.classic-main-nav,
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-content: start;
  padding-top: 6px;
}

.classic-main-nav a,
.main-nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff4e7;
  font-weight: 700;
  font-size: 0.94rem;
  background: linear-gradient(180deg, #b46e42 0%, #84431f 100%);
  border: 2px solid #d7b38e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.classic-main-nav a:hover,
.main-nav a:hover {
  filter: brightness(1.03);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brown);
}

.lede,
.muted,
.list span,
.rich-text,
.news-meta,
.classic-meta,
.portal-block p,
.gallery-mini-card figcaption span {
  color: var(--text);
  line-height: 1.55;
}

.panel-box,
.card,
.panel,
.hero,
.featured-banner {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.hero.compact,
.module-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: stretch;
}

.module-aside {
  display: grid;
  gap: 12px;
}

.classic-grid {
  display: grid;
  grid-template-columns: 292px 1fr 1fr 286px;
  grid-template-areas:
      "logo hero hero hero"
      "left1 crumb crumb crumb"
      "left2 sponsor sponsor sponsor"
      "left3 articles forum chat"
      "left4 news news chat";
  gap: 0;
  border: 3px solid #8ea32b;
  background: #dfe6bf;
}

.classic-logo-box,
.classic-left-panel,
.classic-breadcrumb,
.classic-hero,
.classic-column,
.classic-chat,
.classic-news {
  border-right: 3px solid #8ea32b;
  border-bottom: 3px solid #8ea32b;
  min-width: 0;
}

.classic-logo-box {
  grid-area: logo;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, #edf3cf 0%, #e3e9c1 100%);
  border-top-left-radius: 22px;
  overflow: hidden;
}



.classic-breadcrumb {
  grid-area: crumb;
  background: #7d9e20;
  color: #f7f8ee;
  font-weight: 700;
  padding: 10px 18px;
  min-height: 42px;
  display: flex;
  align-items: center;
}.classic-hero {
  grid-area: hero;
  position: relative;
  overflow: hidden;
  min-height: 176px;
}

.classic-column-articles { grid-area: articles; }
.classic-column-forum { grid-area: forum; }
.classic-sponsors { grid-area: sponsor; }
.classic-chat { grid-area: chat; }
.classic-news { grid-area: news; }
.classic-left-panel-community { grid-area: left1; }
.classic-left-panel-login { grid-area: left2; }
.classic-left-panel-calendar { grid-area: left3; }
.classic-left-panel-links { grid-area: left4; }

.classic-intro-box {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 220px;
}

.classic-intro-kicker {
  margin: 0;
  color: var(--brown-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.classic-intro-box h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: 2rem;
}

.classic-intro-box p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.97rem;
}

.topbar-card {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  min-height: 96px;
}

.classic-login-panel {
  display: grid;
  gap: 8px;
}

.topbar-card:last-child { border-right: 0; }
.topbar-card h3 { color: #4a4d36; font-size: 0.98rem; margin-bottom: 8px; }
.topbar-card p { margin: 0 0 4px; font-size: 0.95rem; }
.topbar-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: var(--green-deep); font-weight: 700; font-size: 0.95rem; }
.topbar-links a { color: var(--green-deep); }
.topbar-card input,
.topbar-card select,
.classic-login-panel input,
.classic-login-panel select {
  width: 100%;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #b8bca0;
  background: #fff;
  font: inherit;
  margin-bottom: 5px;
}

.search-mockup { display: grid; grid-template-columns: 1fr; gap: 5px; }
.search-link,
.enter-link { color: var(--green-deep); font-weight: 800; }

.classic-login-panel .enter-link {
  display: inline-flex;
  width: fit-content;
}
.login-name { font-weight: 800; color: var(--brown-deep); }

.classic-left-panel,
.classic-column,
.classic-chat,
.classic-news,
.section-card {
  padding: 10px 12px;
  background: #f8f8f0;
}

.classic-left-panel h3,
.classic-column h3,
.classic-chat h3,
.classic-news h3,
.section-card h2 {
  color: var(--green-deep);
}

.classic-left-panel h3,
.classic-column h3,
.classic-chat h3,
.classic-news h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.classic-left-panel p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.5; }

.calendar-card {
  border: 1px solid #b9b9aa;
  background: #fffdfa;
}

.calendar-header {
  background: #a9a99e;
  color: #fff;
  text-align: center;
  padding: 6px;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px;
  font-size: 0.8rem;
}


.event-highlight-card {
  display: grid;
  min-height: 180px;
}

.event-highlight-copy {
  display: grid;
  gap: 10px;
  padding: 12px;
}


.event-teaser-item {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(140, 85, 49, 0.14);
}

.event-teaser-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.event-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.classic-list,
.classic-links,
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.classic-list li,
.classic-links li,
.list li {
  padding: 6px 0;
  border-top: 1px solid rgba(140, 85, 49, 0.18);
}

.classic-list li:first-child,
.classic-links li:first-child,
.list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.classic-list li,
.classic-links li,
.list li {
  display: grid;
  gap: 3px;
}

.classic-list a,
.classic-links a,
.news-link,
.thread-link {
  color: var(--green-deep);
  font-weight: 800;
  font-size: 0.97rem;
}

.classic-list span { color: #52573b; font-size: 0.86rem; }

.classic-hero img {
  width: 100%;
  height: 176px;
  display: block;
  object-fit: cover;
}

.classic-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.22) 100%);
}

.classic-hero-overlay h1 {
  color: #fff;
  text-align: right;
  max-width: 700px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.article-preview-card,
.market-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.article-preview-media,
.market-card-media {
  min-height: 180px;
}

.article-preview-media img,
.market-card-media img,
.path-preview {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(140, 85, 49, 0.18);
  border-radius: 8px;
  background: #ebe7d5;
}

.path-preview {
  min-height: 120px;
  margin-top: 10px;
}

.article-preview-copy,
.market-card-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.media-fallback {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--brown-deep);
  border: 1px solid rgba(140, 85, 49, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ebe7d5 0%, #f7f5e8 100%);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-mini-card {
  margin: 0;
  display: grid;
  gap: 8px;
}

.gallery-mini-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(140, 85, 49, 0.18);
  background: #ebe7d5;
}

.gallery-mini-card figcaption {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}

.market-grid {
  align-items: start;
}

.chat-teaser {
  display: grid;
  gap: 10px;
}

.chat-teaser p { margin: 0; font-size: 0.95rem; }

.classic-news-row {
  padding: 14px 0;
  border-top: 1px solid rgba(140, 85, 49, 0.18);
}

.classic-news-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.classic-news-row h4 {
  margin: 0 0 7px;
  font-size: 1.12rem;
  color: var(--green-deep);
}

.classic-news-row p { margin: 0 0 7px; font-size: 0.96rem; }

.grid.two,
.grid.three,
.featured-strip {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.grid.two,
.featured-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero,
.card,
.panel,
.featured-banner { padding: 18px; border-radius: 14px; }
.list { display: grid; gap: 12px; }
.list li { display: grid; gap: 4px; }
.compact-list li { gap: 2px; }

.actions,
.form,
.stack { display: grid; gap: 14px; }
.actions,
.compact-actions { grid-auto-flow: column; justify-content: start; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary { background: linear-gradient(180deg, #b46e42 0%, #84431f 100%); color: #fff6ea; }
.button.secondary { background: linear-gradient(180deg, #8da62b 0%, #6d871f 100%); color: #fffdf6; }
.button.disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.notice { padding: 14px 16px; border-radius: 14px; }
.notice.success { background: rgba(59, 113, 78, 0.12); color: var(--success); }
.notice.warning { background: rgba(157, 105, 54, 0.12); color: var(--warning); }

.form label { display: grid; gap: 8px; font-weight: 700; }
.form input,
.form textarea,
.form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(67, 49, 28, 0.18);
  padding: 12px 14px;
  font: inherit;
  background: var(--surface-strong);
}

.form input { min-height: 44px; }
.form textarea { resize: vertical; }

.meta-row,
.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(122, 155, 28, 0.12);
  color: var(--green-deep);
  border: 1px solid rgba(122, 155, 28, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-body,
.article-detail-body,
.forum-body p { line-height: 1.7; }
.forum-post-list { gap: 16px; }
.forum-post-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(140, 85, 49, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 245, 0.86);
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 { margin-top: 24px; }
.compact-actions { gap: 10px; }
.compact-actions form { margin: 0; }
.moderator-list li { gap: 10px; }

.site-footer {
  margin-top: 18px;
  background: #5d2c14;
  border-top: 4px solid #8ea32b;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 22px;
}

.footer-inner p { margin: 0; color: #fff1de; }
.footer-inner .muted { max-width: 760px; color: #f0e3cf; }

@media (max-width: 1180px) {
  .classic-site-bar-inner {
    grid-template-columns: 1fr;
  }

  .classic-main-nav,
  .main-nav {
    justify-content: flex-start;
  }

  .classic-grid {
    grid-template-columns: 250px 1fr 1fr 260px;
  }
}

@media (max-width: 980px) {
  .classic-grid,
  .hero.compact,
  .module-hero,
  .article-preview-card,
  .market-card {
    grid-template-columns: 1fr;
  }

  .classic-grid {
    grid-template-areas:
        "logo"
        "hero"
        "crumb"
        "left1"
        "left2"
        "sponsor"
        "left3"
        "articles"
        "forum"
        "chat"
        "left4"
        "news";
  }

  .classic-logo-box,
  .classic-left-panel,
  .classic-breadcrumb,
  .classic-hero,
  .classic-column,
  .classic-chat,
  .classic-news {
    border-right: 0;
  }

  .grid.two,
  .grid.three,
  .featured-strip,
  .thumb-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .classic-sponsors { grid-template-columns: 1fr; }
  .brand-copy {
    display: none;
  }

  .brand-mobile { display: inline-flex; }
  .classic-main-nav,
  .main-nav { gap: 6px; }
  .classic-main-nav a,
  .main-nav a { padding: 0 14px; font-size: 0.86rem; }
  .actions,
  .compact-actions { grid-auto-flow: row; }
  .classic-hero-overlay { justify-content: flex-start; }
  .classic-hero-overlay h1 { text-align: left; }
}


.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat-chip {
  border: 1px solid rgba(90, 65, 38, 0.18);
  border-radius: 16px;
  padding: 14px 12px;
  background: rgba(255, 251, 241, 0.9);
}

.stat-chip strong {
  display: block;
  font-size: 1.5rem;
  color: var(--brown-deep);
}

.stat-chip span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--olive-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-users-grid {
  display: grid;
  gap: 16px;
}

.admin-user-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(90, 65, 38, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(247, 241, 226, 0.98));
}

.admin-user-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-user-head h3 {
  margin: 0;
}

.role-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(127, 155, 28, 0.12);
  color: var(--olive-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  background: rgba(90, 65, 38, 0.1);
  color: var(--brown-deep);
}

.inline-admin-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.inline-admin-form label {
  display: grid;
  gap: 6px;
}

.inline-admin-form span {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive-deep);
}

.classic-sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  background: #f8f8f0;
}

.sponsor-banner {
  min-height: 140px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(90, 65, 38, 0.16);
  display: grid;
  align-content: start;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sponsor-banner-primary {
  background: linear-gradient(135deg, rgba(98, 122, 44, 0.94), rgba(34, 54, 22, 0.96));
  color: #fff8ec;
}

.sponsor-banner-secondary {
  background: linear-gradient(135deg, rgba(123, 64, 31, 0.94), rgba(71, 37, 18, 0.96));
  color: #fff5e7;
}

.sponsor-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.84;
}

.sponsor-banner h3 {
  margin: 0;
  color: inherit;
  font-size: 1.3rem;
}

.sponsor-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sponsor-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}



:root {
  --olive-deep: #5f6c2f;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.cinghialaio-box {
  position: sticky;
  top: 12px;
}

.staff-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.staff-member-card {
  border: 1px solid rgba(90, 65, 38, 0.16);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.9);
  padding: 14px;
}

.staff-member-card h3 {
  margin: 0 0 6px;
  color: var(--brown-deep);
}

.users-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.users-filter-grid label {
  display: grid;
  gap: 6px;
}

.users-filter-grid span {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive-deep);
}

.admin-users-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-users-table th,
.admin-users-table td {
  border-top: 1px solid rgba(90, 65, 38, 0.16);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.admin-users-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.inline-admin-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-admin-row select {
  min-height: 34px;
  border: 1px solid rgba(90, 65, 38, 0.24);
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .cinghialaio-box {
    position: static;
  }

  .users-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Community / staff utilities
   ========================================================== */
:root {
  --olive-deep: #5f6c2f;
  --site-header-offset: 98px;
  --chat-fixed-width: 370px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.cinghialaio-box {
  position: sticky;
  top: 12px;
}

.staff-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.staff-member-card {
  border: 1px solid rgba(90, 65, 38, 0.16);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.9);
  padding: 14px;
}

.staff-member-card h3 {
  margin: 0 0 6px;
  color: var(--brown-deep);
}

.users-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.users-filter-grid label {
  display: grid;
  gap: 6px;
}

.users-filter-grid span {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive-deep);
}

.admin-users-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-users-table th,
.admin-users-table td {
  border-top: 1px solid rgba(90, 65, 38, 0.16);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.admin-users-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.inline-admin-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-admin-row select {
  min-height: 34px;
  border: 1px solid rgba(90, 65, 38, 0.24);
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================
   Fixed header + persistent chat clean layout
   ========================================================== */
.site-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body {
  padding-top: var(--site-header-offset);
}

body.has-persistent-chat main.shell {
  width: min(1320px, calc(100% - var(--chat-fixed-width) - 22px));
  margin: 0 auto 0 8px;
  padding-bottom: 28px;
}

body.has-persistent-chat .persistent-chat-sidebar {
  position: fixed;
  top: var(--site-header-offset);
  right: 0;
  bottom: 0;
  width: var(--chat-fixed-width);
  border-left: 3px solid #8ea32b;
  border-top: 3px solid #8ea32b;
  background: #dfe6bf;
  overflow: hidden;
  z-index: 900;
}

body.has-persistent-chat .persistent-chat-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.has-persistent-chat .persistent-chat-kicker,
body.has-persistent-chat .persistent-chat-status,
body.has-persistent-chat .persistent-chat-note {
  margin: 0;
}

body.has-persistent-chat .persistent-chat-stream {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

body.has-persistent-chat .persistent-chat-msg {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

body.has-persistent-chat .persistent-chat-msg header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body.has-persistent-chat .persistent-chat-msg p {
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.has-persistent-chat .persistent-chat-form {
  display: grid;
  gap: 8px;
  align-content: end;
  background: #dfe6bf;
}

body.has-persistent-chat .persistent-chat-form textarea {
  width: 100%;
  min-height: 86px;
  max-height: 140px;
  resize: vertical;
  box-sizing: border-box;
}

body.has-persistent-chat .persistent-chat-button {
  width: 100%;
  min-height: 42px;
}

.persistent-chat-emoji-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(106, 53, 25, 0.35);
  background: #fff7ea;
  color: #5d2c14;
  font-weight: 700;
  cursor: pointer;
}

.persistent-chat-emotions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.persistent-chat-emotions[hidden] {
  display: none !important;
}

.persistent-chat-emotions button {
  min-width: 40px;
  padding: 0 8px;
  height: 32px;
  border: 1px solid rgba(106, 53, 25, 0.35);
  border-radius: 8px;
  background: #fff9ef;
  cursor: pointer;
  font-size: 1rem;
}

/* Home with chat column */
body.has-persistent-chat .classic-grid {
  width: 100%;
  grid-template-columns: 292px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "logo hero hero"
    "left1 crumb crumb"
    "left2 sponsor sponsor"
    "left3 articles forum"
    "left4 news news";
}

body.has-persistent-chat .classic-chat {
  display: none;
}

body.has-persistent-chat .classic-hero,
body.has-persistent-chat .classic-sponsors,
body.has-persistent-chat .classic-news,
body.has-persistent-chat .classic-column {
  min-width: 0;
}

body.has-persistent-chat .classic-hero-overlay h1 {
  max-width: 520px;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 0.96;
}

/* Internal pages keep one readable content column */
body.has-persistent-chat .hero.compact,
body.has-persistent-chat .module-hero {
  grid-template-columns: 1fr;
}

body.has-persistent-chat .hero-copy,
body.has-persistent-chat .module-aside,
body.has-persistent-chat .panel,
body.has-persistent-chat .card {
  min-width: 0;
}

body.page-chat.has-persistent-chat .persistent-chat-sidebar {
  display: none;
}

body.page-chat.has-persistent-chat main.shell {
  width: min(1240px, calc(100% - 12px));
  margin: 0 auto;
}

@media (max-width: 1400px) {
  :root {
    --chat-fixed-width: 340px;
  }
}

@media (max-width: 1180px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .cinghialaio-box {
    position: static;
  }

  .users-filter-grid {
    grid-template-columns: 1fr;
  }

  body.has-persistent-chat main.shell {
    width: min(1240px, calc(100% - 12px));
    margin: 0 auto;
  }

  body.has-persistent-chat .persistent-chat-sidebar {
    position: static;
    width: min(1240px, calc(100% - 12px));
    margin: 8px auto 0;
    border-left: 0;
    border-top: 3px solid #8ea32b;
  }

  body.has-persistent-chat .persistent-chat-card {
    height: auto;
  }

  body.has-persistent-chat .persistent-chat-stream {
    min-height: 180px;
    max-height: 320px;
  }

  body.has-persistent-chat .classic-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "hero"
      "crumb"
      "left1"
      "left2"
      "sponsor"
      "articles"
      "forum"
      "left3"
      "left4"
      "news";
  }
}
body.has-persistent-chat .site-footer .shell {
  width: min(1320px, calc(100% - var(--chat-fixed-width) - 22px));
  margin: 0 auto 0 8px;
}

body.page-chat.has-persistent-chat .site-footer .shell {
  width: min(1240px, calc(100% - 12px));
  margin: 0 auto;
}

.persistent-chat-channel-picker {
  display: grid;
  gap: 6px;
}

.persistent-chat-channel-picker label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brown);
}

.persistent-chat-channel-picker select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #b8bca0;
  background: #fffef8;
  font: inherit;
}

.bottom-ad-strip {
  padding: 18px 0 0;
}

.bottom-ad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

body.has-persistent-chat .bottom-ad-strip .shell {
  width: min(1320px, calc(100% - var(--chat-fixed-width) - 22px));
  margin: 0 auto 0 8px;
}

.message-stack {
  display: grid;
  gap: 14px;
}

.message-card-row {
  border: 1px solid rgba(90, 65, 38, 0.16);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.92);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.message-card-row.is-unread {
  border-color: rgba(125, 158, 32, 0.6);
  box-shadow: inset 4px 0 0 #7d9e20;
}

.message-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.message-card-head h3 {
  margin: 0 0 4px;
  color: var(--brown-deep);
  font-size: 1.05rem;
}

.message-card-meta {
  margin: 0;
  color: #5e6440;
  font-size: 0.92rem;
}

.message-card-body {
  margin: 0;
  line-height: 1.6;
}

.sent-message-row {
  background: rgba(249, 248, 239, 0.96);
}

body.has-persistent-chat .classic-sponsors {
  display: none;
}

body.has-persistent-chat .classic-grid {
  grid-template-areas:
    "logo hero hero"
    "left1 crumb crumb"
    "left2 articles forum"
    "left3 news news"
    "left4 news news";
}

@media (max-width: 1180px) {
  .bottom-ad-grid {
    grid-template-columns: 1fr;
  }

  body.has-persistent-chat .bottom-ad-strip .shell {
    width: min(1240px, calc(100% - 12px));
    margin: 0 auto;
  }

  body.has-persistent-chat .classic-grid {
    grid-template-areas:
      "logo"
      "hero"
      "crumb"
      "left1"
      "left2"
      "articles"
      "forum"
      "left3"
      "left4"
      "news";
  }
}

.classic-hero-copy {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.classic-hero-kicker {
  margin: 0;
  color: #efe6cc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.classic-hero-overlay {
  align-items: flex-end;
}

.persistent-chat-channel-picker {
  position: relative;
  z-index: 2;
}

.persistent-chat-channel-picker select {
  margin: 0;
}

body.has-persistent-chat .persistent-chat-card {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

body.has-persistent-chat .persistent-chat-stream {
  border-top: 1px solid rgba(140, 85, 49, 0.16);
  padding-top: 10px;
}

.message-card-side-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #5e6440;
  font-size: 0.9rem;
  white-space: nowrap;
}

.compact-message-stack .message-card-row {
  padding: 14px;
}

body.has-persistent-chat .classic-grid {
  grid-template-areas:
    "logo hero hero"
    "left1 articles forum"
    "left2 news news"
    "left3 news news"
    "left4 news news";
}

.classic-breadcrumb {
  display: none;
}

@media (max-width: 1180px) {
  .message-card-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .message-card-side-meta {
    justify-items: start;
  }

  body.has-persistent-chat .classic-grid {
    grid-template-areas:
      "logo"
      "hero"
      "left1"
      "left2"
      "articles"
      "forum"
      "left3"
      "left4"
      "news";
  }
}

/* Home reset: left column merge + rotating hero banner */
body.has-persistent-chat .classic-grid {
  grid-template-areas:
    "logo hero hero"
    "left1 articles forum"
    "left2 news news"
    "left3 news news";
}

.classic-community-stack {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.classic-community-section {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.classic-community-section:first-child {
  min-height: 390px;
}

.classic-community-section + .classic-community-section {
  border-top: 3px solid #90a924;
}

.classic-community-stack h3,
.classic-left-panel-calendar h3,
.classic-left-panel-links h3 {
  margin: 0 0 6px;
}

.classic-community-stack p {
  margin: 0;
}

.classic-community-private .topbar-links {
  margin: 0;
}

.classic-community-private .single-link {
  display: flex;
}

.classic-community-private .stacked-links {
  display: grid;
  gap: 6px;
}

.classic-community-private .login-name {
  margin-top: 2px;
}

.classic-left-panel-calendar {
  grid-area: left2;
}

.classic-left-panel-links {
  grid-area: left3;
}

.classic-hero-rotator {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  padding: 0;
  background: #1f2a18;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-position: center center;
  background-size: cover;
  display: grid;
  align-items: end;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin-left: auto;
  padding: 34px 34px 30px;
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
}

.hero-slide-content h1 {
  margin: 0;
  color: #fff7ea;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: 0.94;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
}

.hero-slide-summary {
  margin: 0;
  max-width: 620px;
  color: #f8efd8;
  font-size: 1.02rem;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: #efe2c2;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-slide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 208, 0.45);
  background: rgba(132, 84, 44, 0.92);
  color: #fff7ea;
  font-weight: 800;
  text-decoration: none;
}

.hero-slide-link:hover {
  background: rgba(151, 96, 52, 0.98);
}

.hero-rotator-dots {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-rotator-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 244, 220, 0.36);
  border: 1px solid rgba(255, 244, 220, 0.6);
}

.hero-rotator-dot.is-active {
  background: #fff1d0;
}

@media (max-width: 1180px) {
  body.has-persistent-chat .classic-grid {
    grid-template-areas:
      "logo"
      "hero"
      "left1"
      "articles"
      "forum"
      "left2"
      "left3"
      "news";
  }
}

@media (max-width: 720px) {
  .classic-community-section {
    padding: 16px;
  }

  .classic-hero-rotator {
    min-height: 320px;
  }

  .hero-slide-content {
    width: 100%;
    padding: 24px 18px 24px;
    justify-items: start;
    text-align: left;
  }

  .hero-slide-content h1 {
    font-size: clamp(1.9rem, 9vw, 2.9rem);
  }

  .hero-slide-summary,
  .hero-slide-meta {
    max-width: 100%;
    justify-content: flex-start;
  }

  .hero-rotator-dots {
    left: 18px;
    bottom: 16px;
  }
}

.readonly-input {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(90, 65, 38, 0.22);
  border-radius: 16px;
  background: #fffef8;
  font: inherit;
  font-weight: 700;
  color: var(--brown-deep);
}

.classic-hero-rotator {
  display: grid;
  align-items: stretch;
}

.hero-slide-content {
  width: min(700px, 100%);
  padding: 32px 34px 108px;
}

.hero-slide-link {
  min-height: 46px;
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(178, 112, 61, 0.98), rgba(128, 75, 36, 0.98));
  box-shadow: 0 12px 24px rgba(38, 25, 10, 0.24);
}

.hero-news-nav {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-news-nav-item {
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(250, 244, 228, 0.14);
  border: 1px solid rgba(255, 238, 203, 0.34);
  backdrop-filter: blur(2px);
  color: #fff7ea;
  display: grid;
  gap: 5px;
  align-content: start;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-news-nav-item:hover,
.hero-news-nav-item.is-active {
  background: rgba(250, 244, 228, 0.24);
  border-color: rgba(255, 238, 203, 0.66);
  transform: translateY(-2px);
}

.hero-news-nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f4ddba;
}

.hero-news-nav-item strong {
  font-size: 0.86rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1180px) {
  .hero-news-nav {
    grid-template-columns: 1fr;
    right: auto;
    width: min(360px, calc(100% - 36px));
  }

  .hero-slide-content {
    padding-bottom: 220px;
  }
}

@media (max-width: 720px) {
  .hero-slide-content {
    padding: 24px 18px 220px;
  }

  .hero-news-nav {
    left: 18px;
    width: calc(100% - 36px);
    right: 18px;
  }

  .hero-news-nav-item {
    min-height: 66px;
  }
}

.article-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: start;
}

.article-hero-copy {
  min-width: 0;
}

.article-actions-box {
  align-self: start;
  justify-self: end;
  width: 100%;
  max-width: 248px;
  padding: 14px;
  gap: 10px;
}

.article-actions-box h2 {
  margin: 0;
  font-size: 1.45rem;
}

.article-actions-box .button {
  width: 100%;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.96rem;
}

@media (max-width: 900px) {
  .article-hero-layout {
    grid-template-columns: 1fr;
  }

  .article-actions-box {
    justify-self: stretch;
    max-width: none;
  }
}

/* Home guest/auth unified layout */
body.page-home .classic-grid {
  grid-template-columns: 292px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "logo hero hero"
    "left1 articles forum"
    "left2 news news"
    "left3 news news";
}

body.page-home .classic-hero-rotator {
  min-width: 0;
}

body.page-home .hero-slide-content {
  max-width: 100%;
}

body.page-home .hero-slide-content h1 {
  max-width: 640px;
}

@media (max-width: 1180px) {
  body.page-home .classic-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "hero"
      "left1"
      "articles"
      "forum"
      "left2"
      "left3"
      "news";
  }
}

/* Home hero overlap hard-fix */
body.page-home .classic-hero-rotator {
  min-height: 410px;
}

body.page-home .hero-slide {
  pointer-events: none;
  z-index: 0;
}

body.page-home .hero-slide.is-active {
  pointer-events: auto;
  z-index: 1;
}

body.page-home .hero-slide:not(.is-active) .hero-slide-content {
  display: none;
}

body.page-home .hero-slide-content {
  width: min(560px, calc(100% - 32px));
  padding: 26px 30px 116px;
  gap: 10px;
}

body.page-home .hero-slide-content h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-home .hero-slide-summary {
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-home .hero-slide-meta {
  font-size: 0.78rem;
  gap: 8px;
}

body.page-home .hero-slide-link {
  min-height: 40px;
  padding: 0 18px;
}

body.page-home .hero-news-nav {
  left: 20px;
  right: 20px;
  bottom: 14px;
  gap: 8px;
}

body.page-home .hero-news-nav-item {
  min-height: 70px;
  padding: 10px 12px;
}

body.page-home .hero-news-nav-item strong {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
}

body.page-home .hero-rotator-dots {
  left: 20px;
  bottom: 92px;
}

@media (max-width: 1180px) {
  body.page-home .classic-hero-rotator {
    min-height: 520px;
  }

  body.page-home .hero-slide-content {
    width: calc(100% - 32px);
    padding: 24px 18px 210px;
    justify-items: start;
    text-align: left;
  }

  body.page-home .hero-slide-content h1 {
    max-width: 100%;
  }

  body.page-home .hero-slide-summary,
  body.page-home .hero-slide-meta {
    max-width: 100%;
    justify-content: flex-start;
  }

  body.page-home .hero-news-nav {
    grid-template-columns: 1fr;
    left: 18px;
    right: 18px;
    width: auto;
  }

  body.page-home .hero-rotator-dots {
    left: 18px;
    bottom: 182px;
  }
}

.admin-users-table input,
.admin-users-table select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(90, 65, 38, 0.24);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font: inherit;
}

body.has-persistent-chat .persistent-chat-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.persistent-chat-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: center;
}

.persistent-chat-topline .persistent-chat-kicker {
  margin: 0;
}

.persistent-chat-channel-picker.inline-picker {
  display: block;
}

.persistent-chat-channel-picker.inline-picker select {
  width: 100%;
  min-height: 34px;
  margin: 0;
}

body.has-persistent-chat .persistent-chat-kicker,
body.has-persistent-chat .persistent-chat-note {
  padding: 0 16px;
}

@media (max-width: 1180px) {
  .persistent-chat-topline {
    grid-template-columns: 1fr;
  }
}
.compact-news-row {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(138, 157, 38, 0.18);
}

.compact-news-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

body.page-home .classic-hero-rotator {
  min-height: 350px;
}

body.page-home .hero-slide-content {
  width: min(640px, calc(100% - 32px));
  padding: 28px 30px 34px;
  gap: 12px;
}

body.page-home .hero-slide-content h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  max-width: 620px;
  -webkit-line-clamp: 2;
}

body.page-home .hero-slide-summary {
  max-width: 600px;
  font-size: 1rem;
  -webkit-line-clamp: 3;
}

body.page-home .hero-slide-meta {
  font-size: 0.82rem;
}

body.page-home .hero-rotator-dots,
body.page-home .hero-news-nav,
body.page-home .hero-slide-link {
  display: none !important;
}

@media (max-width: 1180px) {
  body.page-home .classic-hero-rotator {
    min-height: 380px;
  }

  body.page-home .hero-slide-content {
    width: calc(100% - 32px);
    padding: 24px 18px 28px;
  }
}
body.page-home .hero-slide-link.hero-slide-link-inline {
  display: inline-flex !important;
  margin-top: 8px;
}
.category-help-link {
  margin-top: 8px;
}
body.page-home .classic-hero-rotator {
  overflow: hidden;
}

body.page-home .hero-slide {
  background-position: center center;
  background-size: cover;
}

body.page-home .hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 34%, rgba(255, 244, 214, 0.10), transparent 32%), linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

body.page-home .hero-slide-content {
  position: relative;
  z-index: 2;
}
.article-hero-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.article-hero-copy h1 {
  font-size: clamp(2.45rem, 4.3vw, 4.2rem);
  line-height: 0.98;
  max-width: 920px;
  margin-bottom: 16px;
}

.article-hero-copy .lede {
  max-width: 760px;
  margin-bottom: 0;
}

.article-actions-box {
  margin-top: 6px;
  max-width: 320px;
  padding: 16px;
}

.article-actions-box h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

@media (max-width: 1180px) {
  .article-hero-layout {
    grid-template-columns: 1fr 280px;
  }

  .article-hero-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .article-hero-layout {
    grid-template-columns: 1fr;
  }

  .article-actions-box {
    margin-top: 0;
    max-width: none;
  }
}
h1 { font-size: clamp(2rem, 3.1vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.35vw, 2.25rem); }

.hero-copy h1,
.article-hero-copy h1 {
  line-height: 0.96;
  margin-bottom: 14px;
}

.panel h2,
.card h2,
.module-aside h2,
.article-actions-box h2 {
  line-height: 1;
  margin-bottom: 10px;
}

.hero.compact,
.module-hero {
  gap: 16px;
}

.lede {
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  h1 { font-size: clamp(1.8rem, 7vw, 2.55rem); }
  h2 { font-size: clamp(1.35rem, 5.3vw, 1.95rem); }
}
h1 { font-size: clamp(1.7rem, 2.45vw, 2.65rem); }
h2 { font-size: clamp(1.22rem, 1.95vw, 1.75rem); }

.hero-copy h1,
.article-hero-copy h1 {
  line-height: 0.98;
  margin-bottom: 12px;
}

.panel h2,
.card h2,
.module-aside h2,
.article-actions-box h2 {
  line-height: 1.02;
  margin-bottom: 8px;
}

.eyebrow {
  margin-bottom: 6px;
}

.lede {
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  h1 { font-size: clamp(1.55rem, 6vw, 2.15rem); }
  h2 { font-size: clamp(1.12rem, 4.7vw, 1.5rem); }
}
.hero-copy h1,
.article-hero-copy h1 {
  font-size: clamp(1.45rem, 2.05vw, 2.2rem) !important;
  line-height: 1.02 !important;
  max-width: 720px !important;
  margin-bottom: 10px !important;
}

.panel h2,
.card h2,
.module-aside h2,
.article-actions-box h2 {
  font-size: clamp(1.05rem, 1.35vw, 1.45rem) !important;
  line-height: 1.06 !important;
}

.lede {
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.article-hero-layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 18px !important;
}

@media (max-width: 900px) {
  .hero-copy h1,
  .article-hero-copy h1 {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    max-width: 100% !important;
  }

  .article-hero-layout {
    grid-template-columns: 1fr !important;
  }
}
.events-hero-compact {
  grid-template-columns: minmax(0, 1fr) 320px !important;
  align-items: start !important;
}

.events-hero-compact .hero-copy h1 {
  font-size: clamp(1.55rem, 2.3vw, 2.35rem) !important;
  max-width: 760px !important;
}

.events-management-panel {
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 320px;
  padding: 14px 16px !important;
  display: grid;
  gap: 10px;
}

.events-management-panel h2 {
  font-size: clamp(1.1rem, 1.45vw, 1.5rem) !important;
  margin-bottom: 4px !important;
}

.events-management-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.42;
}

.events-management-panel .actions {
  gap: 10px;
}

@media (max-width: 900px) {
  .events-hero-compact {
    grid-template-columns: 1fr !important;
  }

  .events-management-panel {
    max-width: none;
  }
}

.module-hero.compact-top-right {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  align-items: start !important;
}

.compact-top-right .module-aside {
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 360px;
  gap: 10px;
  padding: 14px 16px !important;
}

.compact-top-right .module-aside h2 {
  margin-bottom: 4px !important;
}

.compact-top-right .module-aside .actions {
  gap: 10px;
}

@media (max-width: 900px) {
  .module-hero.compact-top-right {
    grid-template-columns: 1fr !important;
  }

  .compact-top-right .module-aside {
    max-width: none;
  }
}
.button {
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.classic-main-nav a,
.main-nav a {
  min-height: 30px !important;
  padding: 0 15px !important;
  font-size: 0.88rem !important;
}

.actions,
.compact-actions {
  gap: 8px !important;
}

.compact-top-right .module-aside .actions,
.events-management-panel .actions,
.article-actions-box {
  gap: 8px !important;
}

.article-actions-box .button,
.compact-top-right .module-aside .button,
.events-management-panel .button {
  min-height: 30px !important;
  padding: 0 11px !important;
  font-size: 0.86rem !important;
}

@media (max-width: 900px) {
  .button {
    font-size: 0.86rem !important;
  }
}
.news-hero-compact .news-quick-panel {
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 340px;
  padding: 12px 14px !important;
}

.news-quick-panel h2 {
  margin-bottom: 4px !important;
}

.news-quick-actions {
  justify-content: flex-end !important;
  gap: 6px !important;
}

.news-quick-actions .button {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 0.8rem !important;
}

@media (max-width: 900px) {
  .news-hero-compact .news-quick-panel {
    max-width: none;
  }

  .news-quick-actions {
    justify-content: start !important;
  }
}
.compact-corner-panel {
  justify-self: end !important;
  align-self: start !important;
  width: 100%;
  max-width: 340px;
  padding: 12px 14px !important;
  gap: 8px !important;
}

.compact-corner-panel h2 {
  margin: 0 0 4px !important;
}

.corner-actions {
  justify-content: flex-end !important;
  gap: 6px !important;
}

.corner-actions .button {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 0.8rem !important;
}

.staff-hero-compact .staff-role-panel {
  justify-self: end !important;
  align-self: start !important;
  max-width: 300px;
}

.staff-role-panel p {
  margin: 0 0 6px;
}

@media (max-width: 900px) {
  .compact-corner-panel,
  .staff-hero-compact .staff-role-panel {
    max-width: none;
  }

  .corner-actions {
    justify-content: start !important;
  }
}
.news-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch !important;
  gap: 6px !important;
}

.news-quick-actions .button {
  width: 100%;
}

@media (max-width: 900px) {
  .news-quick-actions {
    grid-template-columns: 1fr;
  }
}
.compact-top-right .module-aside .actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch !important;
  gap: 6px !important;
}

.compact-top-right .module-aside .actions .button {
  width: 100%;
}

@media (max-width: 900px) {
  .compact-top-right .module-aside .actions {
    grid-template-columns: 1fr;
  }
}
.news-quick-actions,
.compact-top-right .module-aside .actions {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.news-quick-actions .button,
.compact-top-right .module-aside .actions .button {
  width: 100% !important;
  max-width: none !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

.news-quick-panel,
.compact-top-right .module-aside {
  overflow: hidden;
}

@media (max-width: 900px) {
  .news-quick-actions,
  .compact-top-right .module-aside .actions {
    grid-template-columns: 1fr !important;
  }
}
.article-access-actions,
.news-quick-actions-grid,
.events-management-actions-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 8px !important;
  width: 100%;
}

.article-access-actions .button,
.news-quick-actions-grid .button,
.events-management-actions-grid .button {
  width: 100% !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 0.8rem !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  text-align: center !important;
}

.article-access-panel,
.news-quick-panel,
.events-management-panel,
.staff-role-panel {
  justify-self: end !important;
  align-self: start !important;
  max-width: 340px !important;
  width: 100% !important;
  padding: 12px 14px !important;
  overflow: hidden !important;
}

.staff-role-panel {
  max-width: 300px !important;
}

.article-access-panel h2,
.news-quick-panel h2,
.events-management-panel h2,
.staff-role-panel h2 {
  margin: 0 0 6px !important;
}

.staff-role-panel p {
  margin: 0 0 6px !important;
}

@media (max-width: 900px) {
  .article-access-actions,
  .news-quick-actions-grid,
  .events-management-actions-grid {
    grid-template-columns: 1fr !important;
  }

  .article-access-panel,
  .news-quick-panel,
  .events-management-panel,
  .staff-role-panel {
    max-width: none !important;
  }
}

.event-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.event-inline-actions form {
  margin: 0;
}

.danger-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: #9c4f28;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-link:hover {
  text-decoration: underline;
}
.dashboard-account-card {
  overflow: visible;
}

.dashboard-account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.dashboard-account-head h2 {
  margin-bottom: 6px;
}

.dashboard-account-toggle {
  min-width: 260px;
}

.dashboard-account-toggle summary {
  list-style: none;
}

.dashboard-account-toggle summary::-webkit-details-marker {
  display: none;
}

.dashboard-account-toggle[open] {
  width: 100%;
}

.dashboard-account-toggle[open] summary {
  margin-left: auto;
  margin-bottom: 16px;
}

.dashboard-account-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.dashboard-account-block {
  border: 1px solid rgba(129, 150, 38, 0.35);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 252, 243, 0.75);
}

.dashboard-account-block h3 {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .dashboard-account-head {
    flex-direction: column;
  }

  .dashboard-account-toggle {
    width: 100%;
    min-width: 0;
  }

  .dashboard-account-toggle summary {
    width: 100%;
  }

  .dashboard-account-forms {
    grid-template-columns: 1fr;
  }
}
.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    'copy profile'
    'functions functions';
  align-items: start;
}

.dashboard-hero-copy {
  grid-area: copy;
}

.dashboard-profile-panel {
  grid-area: profile;
  align-self: start;
}

.dashboard-functions-panel {
  grid-area: functions;
}

.dashboard-profile-panel .dashboard-account-head {
  display: grid;
  gap: 10px;
}

.dashboard-account-head-compact h2 {
  margin-bottom: 0;
}

.dashboard-profile-panel .dashboard-account-toggle {
  min-width: 0;
  width: 100%;
}

.dashboard-profile-panel .dashboard-account-toggle summary {
  width: 100%;
  justify-content: center;
}

body.has-persistent-chat .dashboard-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas:
    'copy profile'
    'functions functions';
}

@media (max-width: 980px) {
  .dashboard-hero,
  body.has-persistent-chat .dashboard-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'profile'
      'functions';
  }
}
.dashboard-account-card {
  overflow: visible;
  background: linear-gradient(180deg, rgba(250, 248, 236, 0.98), rgba(244, 241, 225, 0.98));
}

.dashboard-account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.dashboard-account-head h2 {
  margin-bottom: 6px;
}

.dashboard-profile-copy {
  display: grid;
  gap: 6px;
}

.dashboard-mini-copy {
  margin: 0;
  color: #625841;
  font-size: 0.93rem;
  line-height: 1.45;
}

.dashboard-account-toggle {
  min-width: 260px;
}

.dashboard-account-toggle summary {
  list-style: none;
}

.dashboard-account-toggle summary::-webkit-details-marker {
  display: none;
}

.dashboard-account-toggle[open] {
  width: 100%;
}

.dashboard-account-toggle[open] summary {
  margin-left: auto;
  margin-bottom: 16px;
}

.dashboard-account-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.dashboard-account-block {
  border: 1px solid rgba(129, 150, 38, 0.35);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 252, 243, 0.9);
}

.dashboard-account-block h3 {
  margin-bottom: 12px;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    'copy profile'
    'functions functions';
  align-items: start;
}

.dashboard-hero-copy {
  grid-area: copy;
}

.dashboard-profile-panel {
  grid-area: profile;
  align-self: start;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(75, 55, 22, 0.08);
}

.dashboard-functions-panel {
  grid-area: functions;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(75, 55, 22, 0.08);
}

.dashboard-profile-panel .dashboard-account-head {
  display: grid;
  gap: 10px;
}

.dashboard-account-head-compact h2 {
  margin-bottom: 0;
}

.dashboard-profile-panel .dashboard-account-toggle {
  min-width: 0;
  width: 100%;
}

.dashboard-profile-panel .dashboard-account-toggle summary {
  width: 100%;
  justify-content: center;
}

.dashboard-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-section-head .eyebrow {
  margin-bottom: 4px;
}

.dashboard-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.dashboard-button-group .button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.dashboard-staff-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(129, 150, 38, 0.22);
}

.dashboard-logout-form .button {
  min-width: 120px;
}

body.has-persistent-chat .dashboard-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas:
    'copy profile'
    'functions functions';
}

@media (max-width: 980px) {
  .dashboard-account-head {
    flex-direction: column;
  }

  .dashboard-account-toggle {
    width: 100%;
    min-width: 0;
  }

  .dashboard-account-toggle summary {
    width: 100%;
  }

  .dashboard-account-forms {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  body.has-persistent-chat .dashboard-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'profile'
      'functions';
  }
}
.dashboard-hero-enhanced {
  gap: 20px;
}

.dashboard-hero-enhanced .dashboard-hero-copy {
  padding: 6px 2px 0;
}

.dashboard-hero-enhanced .hero-copy h1 {
  max-width: 760px !important;
}

.dashboard-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dashboard-mini-card {
  display: grid;
  gap: 4px;
  padding: 16px 16px 15px;
  border: 1px solid rgba(129, 150, 38, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(145, 171, 45, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 251, 240, 0.95), rgba(246, 242, 225, 0.92));
  box-shadow: 0 10px 24px rgba(72, 55, 23, 0.08);
}

.dashboard-mini-card strong {
  font-size: 1rem;
  color: #312a1d;
}

.dashboard-mini-card span:last-child {
  color: #665b42;
  font-size: 0.9rem;
}

.dashboard-mini-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  color: #8d532e;
}

.dashboard-profile-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(155, 103, 49, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(251, 248, 238, 0.98), rgba(245, 241, 228, 0.98));
}

.dashboard-profile-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 54%);
  pointer-events: none;
}

.dashboard-profile-panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-profile-copy {
  display: grid;
  gap: 8px;
}

.dashboard-mini-copy {
  margin: 0;
  color: #625841;
  font-size: 0.93rem;
  line-height: 1.45;
}

.dashboard-profile-panel .dashboard-account-toggle summary {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  box-shadow: 0 12px 24px rgba(91, 53, 23, 0.16);
}

.dashboard-account-forms {
  margin-top: 6px;
}

.dashboard-account-block {
  border: 1px solid rgba(129, 150, 38, 0.24);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 252, 243, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.dashboard-functions-panel {
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(143, 168, 44, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(250, 248, 237, 0.98), rgba(244, 240, 224, 0.98));
}

.dashboard-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.dashboard-tile-link {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(129, 150, 38, 0.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(248,245,232,0.75)),
    linear-gradient(180deg, rgba(142, 171, 44, 0.12), rgba(142, 171, 44, 0.02));
  box-shadow: 0 12px 26px rgba(77, 59, 25, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-tile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(77, 59, 25, 0.12);
  border-color: rgba(129, 150, 38, 0.42);
}

.dashboard-tile-link strong {
  font-size: 1.08rem;
  color: #2f2a1d;
}

.dashboard-tile-link span:last-child {
  color: #655b42;
  line-height: 1.45;
  font-size: 0.92rem;
}

.dashboard-tile-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  color: #8d532e;
}

.dashboard-tile-link-staff {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.56), rgba(249,242,233,0.82)),
    linear-gradient(180deg, rgba(161, 95, 44, 0.12), rgba(161, 95, 44, 0.02));
}

.dashboard-staff-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(129, 150, 38, 0.2);
}

.dashboard-logout-form .button {
  min-width: 120px;
}

@media (max-width: 1100px) {
  .dashboard-feature-strip,
  .dashboard-tile-grid,
  .dashboard-tile-grid-staff {
    grid-template-columns: 1fr;
  }
}

.mailing-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.mailing-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(130, 155, 23, 0.12);
  border: 1px solid rgba(130, 155, 23, 0.34);
  color: #5d710f;
  font-size: 0.86rem;
  font-weight: 700;
}

.mailing-actions-stack {
  display: grid;
  gap: 8px;
}

.mailing-actions-stack form {
  margin: 0;
}

.online-users-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(125, 149, 30, 0.28);
}

.online-users-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c4a1f;
}

.online-users-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.online-users-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  align-items: baseline;
}

.online-user-name {
  font-weight: 800;
  color: #4a351f;
}

.online-user-role {
  font-size: 0.76rem;
  color: #6f7d28;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.classic-logo-box {
  position: relative;
  min-height: 244px;
}

.classic-logo-rotator {
  position: relative;
  min-height: 220px;
  height: 100%;
  overflow: hidden;
  border-radius: 18px 0 0 0;
}

.logo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.logo-slide.is-active {
  opacity: 1;
}

.logo-slide-overlay {
  min-height: 220px;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  color: #f6f0dc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.logo-slide-overlay .classic-intro-kicker {
  color: #f3d3b6;
}

.logo-slide-overlay h2 {
  margin: 0;
  color: #f7f1dd;
  font-size: 1.86rem;
  line-height: 0.94;
}

.logo-slide-overlay p:last-child {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 700;
}

.users-filter-grid-wide {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(170px, 0.95fr) auto;
  gap: 14px;
  align-items: end;
}

.users-filter-grid-wide .button {
  min-width: 150px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.94rem;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .users-filter-grid-wide {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .users-filter-grid-wide .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .users-filter-grid-wide {
    grid-template-columns: 1fr;
  }
}


.admin-users-table {
  font-size: 0.9rem;
}

.admin-users-table th {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.admin-users-table td {
  font-size: 0.88rem;
  line-height: 1.25;
  padding-top: 10px;
  padding-bottom: 10px;
}

.admin-users-table td strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.admin-users-table input,
.admin-users-table select {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.admin-users-table td form .button,
.admin-users-table td .button {
  min-height: 36px !important;
  padding: 0 10px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  border-radius: 999px;
}

.admin-users-table td > div[style*="flex-direction: column"] {
  min-width: 100px !important;
}

.admin-users-table {
  table-layout: fixed;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  width: 14%;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  width: 16%;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  width: 17%;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  width: 12%;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  width: 11%;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
  width: 11%;
}

.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7) {
  width: 9%;
}

.admin-users-table td:nth-child(1) {
  white-space: normal;
  word-break: break-word;
}

.admin-users-table td:nth-child(7) > div[style*="flex-direction: column"] {
  min-width: 82px !important;
  max-width: 82px !important;
}

.admin-users-table td:nth-child(7) form .button,
.admin-users-table td:nth-child(7) .button {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 8px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

.online-users-list {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.online-users-list::-webkit-scrollbar {
  width: 8px;
}

.online-users-list::-webkit-scrollbar-track {
  background: rgba(125, 149, 30, 0.10);
  border-radius: 999px;
}

.online-users-list::-webkit-scrollbar-thumb {
  background: rgba(125, 149, 30, 0.42);
  border-radius: 999px;
}

.dashboard-profile-panel {
  max-width: 320px;
}

.dashboard-profile-panel .eyebrow {
  margin-bottom: 6px;
}

.dashboard-account-head-compact {
  gap: 8px !important;
}

.dashboard-profile-copy {
  gap: 4px;
}

.dashboard-profile-panel .dashboard-profile-copy h2 {
  font-size: 1.65rem !important;
  line-height: 1.05;
}

.dashboard-profile-panel .dashboard-mini-copy {
  font-size: 0.82rem;
  line-height: 1.3;
  max-width: 220px;
}

.dashboard-profile-panel .dashboard-account-toggle summary {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(91, 53, 23, 0.13);
}

.dashboard-account-forms {
  gap: 12px;
}

.dashboard-account-block {
  padding: 14px;
  border-radius: 16px;
}

.dashboard-account-block h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.dashboard-account-block .form label {
  font-size: 0.95rem;
}

.dashboard-account-block .form input {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 0.95rem;
}

.dashboard-account-block .button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .dashboard-profile-panel {
    max-width: none;
  }

  .dashboard-profile-panel .dashboard-mini-copy {
    max-width: none;
  }
}
/* Chat refresh marzo 2026 */
body.has-persistent-chat .persistent-chat-card {
  background: linear-gradient(180deg, rgba(247, 244, 225, 0.96) 0%, rgba(237, 243, 205, 0.96) 100%);
  border: 1px solid rgba(129, 147, 33, 0.45);
  box-shadow: 0 18px 40px rgba(64, 67, 25, 0.12);
  border-radius: 18px;
  padding: 16px 14px;
}

.persistent-chat-topline {
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.persistent-chat-kicker {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #5b2f14;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.persistent-chat-channel-picker.inline-picker select {
  min-width: 132px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(129, 147, 33, 0.42);
  background: rgba(255,255,255,0.82);
  padding: 0 10px;
  font-size: 0.92rem;
}

body.has-persistent-chat .persistent-chat-stream {
  background: rgba(255,255,255,0.36);
  border: 1px solid rgba(129, 147, 33, 0.18);
  border-radius: 14px;
  padding: 10px 10px 6px;
}

body.has-persistent-chat .persistent-chat-msg {
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(129, 147, 33, 0.14);
  border-radius: 12px;
  padding: 8px 9px;
  margin-bottom: 8px;
}

body.has-persistent-chat .persistent-chat-msg header strong {
  font-size: 0.94rem;
}

body.has-persistent-chat .persistent-chat-msg header span {
  font-size: 0.78rem;
  color: #6d7254;
}

body.has-persistent-chat .persistent-chat-msg p {
  font-size: 0.93rem;
  line-height: 1.35;
}

.persistent-chat-emoji-toggle {
  width: auto;
  min-width: 96px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(106, 53, 25, 0.28);
  background: linear-gradient(180deg, #fff8ec 0%, #f6e4c9 100%);
  color: #7b421f;
  font-size: 0.88rem;
  font-weight: 700;
}

.persistent-chat-emotions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  padding: 8px 0 4px;
}

.persistent-chat-emotions button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(106, 53, 25, 0.18);
  background: rgba(255,255,255,0.78);
  font-size: 1.22rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(64, 67, 25, 0.08);
}

.persistent-chat-form textarea {
  border-radius: 14px;
  border: 1px solid rgba(129, 147, 33, 0.24);
  background: rgba(255,255,255,0.92);
}

.persistent-chat-button {
  border-radius: 999px;
  min-height: 38px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
/* Chat textarea compatta */
body.has-persistent-chat .persistent-chat-form textarea {
  min-height: 56px;
  height: 56px;
  max-height: 120px;
  resize: vertical;
  overflow-y: auto;
  line-height: 1.35;
}


/* Banner sponsor rotativi */
.bottom-ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sponsor-rotator {
  position: relative;
  min-height: 206px;
}

.sponsor-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: translateY(10px);
}

.sponsor-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sponsor-banner {
  min-height: 206px;
}

.sponsor-banner:hover {
  filter: brightness(1.04);
}

.sponsor-theme-olive {
  background: linear-gradient(135deg, rgba(98, 122, 44, 0.94), rgba(34, 54, 22, 0.96));
  color: #fff8ec;
}

.sponsor-theme-brown {
  background: linear-gradient(135deg, rgba(123, 64, 31, 0.94), rgba(71, 37, 18, 0.96));
  color: #fff5e7;
}

.sponsor-theme-forest {
  background: linear-gradient(135deg, rgba(53, 86, 51, 0.96), rgba(20, 44, 30, 0.96));
  color: #f5f6ea;
}

.sponsor-theme-sand {
  background: linear-gradient(135deg, rgba(154, 133, 75, 0.94), rgba(110, 78, 36, 0.96));
  color: #fff7e7;
}

.sponsor-admin-form,
.sponsor-admin-item {
  gap: 12px;
}

.sponsor-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.sponsor-admin-grid-wide {
  grid-template-columns: 1fr 1.2fr 1.5fr 1fr 1.3fr;
}

.sponsor-admin-grid-half {
  grid-template-columns: 1fr 1.35fr;
}

.sponsor-admin-checkbox {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.sponsor-admin-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.sponsor-admin-list {
  display: grid;
  gap: 14px;
}

.sponsor-admin-item {
  padding: 16px;
  border: 1px solid rgba(140, 85, 49, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 245, 0.82);
}

@media (max-width: 980px) {
  .bottom-ad-grid,
  .sponsor-admin-grid,
  .sponsor-admin-grid-wide,
  .sponsor-admin-grid-half {
    grid-template-columns: 1fr;
  }

  .sponsor-rotator,
  .sponsor-banner {
    min-height: 220px;
  }
}

/* Chat sidebar compact fix */
body.has-persistent-chat .persistent-chat-card {
  padding: 10px 8px 8px !important;
  border-width: 1px !important;
  border-radius: 12px !important;
  gap: 8px !important;
}

body.has-persistent-chat .persistent-chat-topline {
  grid-template-columns: minmax(0, 1fr) 128px !important;
  gap: 6px !important;
  align-items: start !important;
}

body.has-persistent-chat .persistent-chat-kicker {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.02 !important;
  letter-spacing: 0.12em !important;
}

body.has-persistent-chat .persistent-chat-channel-picker.inline-picker select {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 28px 0 8px !important;
  font-size: 0.82rem !important;
  border-radius: 10px !important;
}

body.has-persistent-chat .persistent-chat-stream {
  padding-top: 6px !important;
  gap: 6px !important;
}

body.has-persistent-chat .persistent-chat-msg {
  padding: 8px 9px !important;
  border-radius: 10px !important;
  border-width: 1px !important;
}

body.has-persistent-chat .persistent-chat-msg header {
  margin-bottom: 4px !important;
}

body.has-persistent-chat .persistent-chat-msg header strong {
  font-size: 0.76rem !important;
}

body.has-persistent-chat .persistent-chat-msg header span {
  font-size: 0.72rem !important;
}

body.has-persistent-chat .persistent-chat-msg p {
  font-size: 0.88rem !important;
  line-height: 1.28 !important;
}

body.has-persistent-chat .persistent-chat-form {
  gap: 6px !important;
}

body.has-persistent-chat .persistent-chat-emoji-toggle {
  min-width: 82px !important;
  height: 30px !important;
  font-size: 0.82rem !important;
  padding: 0 12px !important;
}

body.has-persistent-chat .persistent-chat-emotions {
  gap: 6px !important;
  padding: 4px 0 2px !important;
}

body.has-persistent-chat .persistent-chat-emotions button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 9px !important;
  font-size: 1rem !important;
}

body.has-persistent-chat .persistent-chat-form textarea {
  min-height: 48px !important;
  height: 48px !important;
  max-height: 96px !important;
  padding: 8px 10px !important;
  font-size: 0.88rem !important;
  line-height: 1.28 !important;
  border-radius: 10px !important;
}

body.has-persistent-chat .persistent-chat-button {
  min-height: 34px !important;
  font-size: 0.88rem !important;
  padding: 0 12px !important;
}
/* Chat message typography refinement */
body.has-persistent-chat .persistent-chat-msg header strong {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}

body.has-persistent-chat .persistent-chat-msg p {
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  line-height: 1.24 !important;
}.gallery-moderation-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.gallery-moderation-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 10px;
  align-items: end;
  justify-content: end;
}

.gallery-moderation-filters label {
  display: grid;
  gap: 6px;
}

.gallery-moderation-filters label span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-dark);
}

.gallery-moderation-filters select {
  min-width: 180px;
}

.gallery-moderation-bulk-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(140, 85, 49, 0.12);
  border-radius: 14px;
  background: rgba(255, 252, 240, 0.7);
}

.gallery-moderation-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brown-deep);
}

.gallery-moderation-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

@media (max-width: 980px) {
  .gallery-moderation-toolbar,
  .gallery-moderation-bulk-actions {
    grid-template-columns: 1fr;
  }

  .gallery-moderation-filters {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .gallery-moderation-filters select {
    min-width: 0;
  }
}
.pagination-advanced {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pagination-jump input[type="number"] {
  width: 84px;
  min-height: 38px;
  text-align: center;
}

.is-current-page {
  pointer-events: none;
}

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

@media (max-width: 900px) {
  .pagination-advanced {
    grid-template-columns: 1fr;
  }

  .pagination-jump {
    justify-content: flex-start;
  }
}

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

.gallery-album-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(140, 85, 49, 0.14);
  border-radius: 14px;
  background: rgba(255, 252, 240, 0.8);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.gallery-album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(48, 40, 18, 0.08);
}

.gallery-album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(140, 85, 49, 0.18);
  background: #ebe7d5;
}

.gallery-album-copy {
  display: grid;
  gap: 5px;
}

.gallery-album-copy strong {
  font-size: 1rem;
  color: var(--brown-deep);
}

.gallery-album-copy span,
.gallery-album-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.gallery-album-link {
  margin-top: 6px;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-dark) !important;
}

.gallery-mini-link {
  display: block;
}

.gallery-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-detail-card {
  margin: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(140, 85, 49, 0.14);
  border-radius: 14px;
  background: rgba(255, 252, 240, 0.82);
}

.gallery-detail-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(140, 85, 49, 0.18);
  background: #ebe7d5;
}

.gallery-detail-card figcaption {
  display: grid;
  gap: 6px;
}

.gallery-detail-card figcaption p,
.gallery-detail-card figcaption span {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gallery-aside-stats {
  align-self: start;
}

@media (max-width: 980px) {
  .gallery-album-grid,
  .gallery-detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery-album-card {
    grid-template-columns: 1fr;
  }
}
.gallery-user-link,
.gallery-mini-meta,
.gallery-detail-meta {
  font-size: 0.84rem;
  color: var(--olive-deep);
}

.gallery-image-tools {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(140, 85, 49, 0.14);
}

.gallery-edit-form,
.gallery-delete-form {
  display: grid;
  gap: 8px;
  margin: 0;
}

.gallery-edit-form label {
  display: grid;
  gap: 6px;
}

.gallery-edit-form label span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--olive-deep);
  font-weight: 700;
}

.gallery-edit-form input,
.gallery-edit-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(140, 85, 49, 0.18);
  background: #fff;
  padding: 9px 11px;
  font: inherit;
}

.gallery-edit-form input {
  min-height: 38px;
}

.gallery-edit-form textarea {
  resize: vertical;
  min-height: 78px;
}

.gallery-image-tools .button {
  min-height: 34px;
  font-size: 0.84rem;
  padding: 0 12px;
}

.sponsor-banner {
  position: relative;
  overflow: hidden;
}

.sponsor-banner-media,
.sponsor-banner-overlay,
.sponsor-banner-content {
  position: absolute;
  inset: 0;
}

.sponsor-banner-media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.sponsor-banner-overlay {
  background: linear-gradient(135deg, rgba(25, 20, 12, 0.26) 0%, rgba(25, 20, 12, 0.52) 55%, rgba(25, 20, 12, 0.68) 100%);
}

.sponsor-banner-content {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  z-index: 1;
}

.sponsor-banner-content .sponsor-label,
.sponsor-banner-content h3,
.sponsor-banner-content p,
.sponsor-banner-content .sponsor-cta {
  position: relative;
  z-index: 1;
}

.sponsor-admin-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.sponsor-admin-preview-wrap {
  display: grid;
  gap: 10px;
}

.sponsor-admin-preview {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(140, 85, 49, 0.18);
  background: rgba(255, 252, 240, 0.85);
}

.sponsor-admin-preview-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(140, 85, 49, 0.28);
  background: rgba(255, 252, 240, 0.72);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .sponsor-admin-media-row {
    grid-template-columns: 1fr;
  }
}

.pm-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  align-items: start;
}

.pm-compose-panel {
  gap: 16px;
}

.pm-compose-form textarea,
.pm-reply-form textarea {
  min-height: 120px;
}

.pm-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.pm-stat-strip {
  min-width: min(100%, 380px);
}

.pm-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pm-sidebar,
.pm-thread-card {
  min-height: 640px;
}

.pm-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.pm-sidebar-head h2,
.pm-thread-head h2,
.pm-overview-head h2,
.pm-empty-state h2,
.pm-compose-panel h2 {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.pm-conversation-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.pm-conversation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(121, 144, 25, 0.22);
  background: rgba(255, 253, 245, 0.9);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pm-conversation-row:hover,
.pm-conversation-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(121, 144, 25, 0.4);
  box-shadow: 0 10px 22px rgba(58, 46, 22, 0.08);
}

.pm-conversation-row.is-active {
  border-color: rgba(121, 144, 25, 0.55);
  box-shadow: inset 0 0 0 1px rgba(121, 144, 25, 0.18);
  background: linear-gradient(180deg, rgba(246, 248, 228, 0.98), rgba(255, 252, 242, 0.98));
}

.pm-conversation-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.pm-conversation-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-conversation-topline strong {
  font-size: 1rem;
}

.pm-conversation-subject {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--olive-deep);
}

.pm-conversation-preview {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pm-conversation-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 5px;
  color: rgba(66, 55, 36, 0.74);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-thread-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.pm-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.pm-thread-messages {
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.pm-bubble {
  max-width: min(100%, 760px);
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(140, 85, 49, 0.14);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 10px 20px rgba(58, 46, 22, 0.05);
}

.pm-bubble.is-mine {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(246, 248, 228, 0.98), rgba(255, 252, 242, 0.98));
  border-color: rgba(121, 144, 25, 0.26);
}

.pm-bubble-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 6px;
}

.pm-bubble-head strong {
  font-size: 0.96rem;
}

.pm-bubble-head span {
  color: rgba(66, 55, 36, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.pm-bubble-subject {
  margin: 0 0 8px;
  color: var(--olive-deep);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.pm-bubble-body {
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.98rem;
  word-break: break-word;
}

.pm-reply-form {
  border-top: 1px solid rgba(140, 85, 49, 0.14);
  padding-top: 16px;
}

.pm-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 300px;
  gap: 12px;
}

@media (max-width: 1100px) {
  .pm-hero,
  .pm-layout {
    grid-template-columns: 1fr;
  }

  .pm-sidebar,
  .pm-thread-card {
    min-height: 0;
  }

  .pm-conversation-list,
  .pm-thread-messages {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .pm-overview-head,
  .pm-thread-head,
  .pm-conversation-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .pm-thread-head {
    gap: 12px;
  }

  .pm-conversation-meta {
    justify-items: start;
  }

  .pm-bubble {
    max-width: 100%;
  }
}
