:root {
  --recore-green: #16875d;
  --recore-green-dark: #0d5c42;
  --recore-mint: #e8f6ef;
  --recore-ink: #17211d;
  --recore-muted: #64736d;
  --recore-line: #dbe5df;
  --recore-bg: #f6f8f5;
  --recore-card: #ffffff;
  --recore-shadow: 0 16px 38px rgba(23, 33, 29, 0.09);
  --recore-shadow-soft: 0 10px 26px rgba(23, 33, 29, 0.07);
}

html {
  font-size: 16px;
}

body {
  color: var(--recore-ink);
  background: var(--recore-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--recore-green-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  vertical-align: middle;
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.82rem;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 48px;
  padding: 0.68rem 1.18rem;
  font-size: 1rem;
}

.btn-primary {
  --bs-btn-bg: var(--recore-green);
  --bs-btn-border-color: var(--recore-green);
  --bs-btn-hover-bg: var(--recore-green-dark);
  --bs-btn-hover-border-color: var(--recore-green-dark);
}

.form-control {
  min-height: 46px;
  border-color: var(--recore-line);
  border-radius: 14px;
  font-size: 1rem;
}

.form-control:focus,
.form-check-input:focus,
.btn:focus {
  border-color: var(--recore-green);
  box-shadow: 0 0 0 0.22rem rgba(22, 135, 93, 0.16);
}

.brand-mark {
  color: var(--recore-ink);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.desktop-topbar {
  border-bottom: 1px solid var(--recore-line);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.04);
}

.mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(246, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 229, 223, 0.8);
}

.community-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px 16px calc(104px + env(safe-area-inset-bottom));
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h1 {
  margin: 2px 0 8px;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--recore-muted);
  font-weight: 650;
}

.feed-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0f6b4d, #22996a);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 107, 77, 0.2);
}

.feed-hero h1,
.section-shell h1,
.auth-card h1 {
  margin: 4px 0 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.feed-hero p {
  max-width: 28rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  color: var(--recore-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feed-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.create-dropdown {
  align-self: flex-start;
}

.create-menu {
  min-width: 210px;
  padding: 8px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(23, 33, 29, 0.16);
}

.create-menu .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 800;
}

.create-menu .dropdown-item:active {
  background: var(--recore-green);
}

.filter-strip {
  position: sticky;
  top: 69px;
  z-index: 10;
  display: flex;
  gap: 10px;
  margin: 16px -16px 14px;
  padding: 0 16px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  background: linear-gradient(var(--recore-bg) 78%, rgba(246, 248, 245, 0));
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.primary-filter {
  align-items: center;
}

.feed-filter-panel {
  margin-top: 18px;
}

.dashboard-section {
  margin-top: 28px;
}

.dashboard-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-section-header h2 {
  margin: 2px 0 0;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-section-header a {
  color: var(--recore-green-dark);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.idea-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.idea-heading p {
  max-width: 42rem;
}

@media (max-width: 575.98px) {
  .idea-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .idea-heading .btn {
    width: 100%;
  }
}

.dashboard-scroll {
  display: grid;
  grid-auto-columns: minmax(260px, 82vw);
  grid-auto-flow: column;
  gap: 14px;
  margin-inline: -16px;
  padding: 2px 16px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.dashboard-scroll::-webkit-scrollbar {
  display: none;
}

.event-dashboard-card,
.poll-dashboard-card,
.dashboard-empty-card {
  position: relative;
  background: var(--recore-card);
  border: 1px solid rgba(219, 229, 223, 0.92);
  border-radius: 20px;
  box-shadow: var(--recore-shadow-soft);
}

.event-dashboard-card {
  display: grid;
  align-content: start;
  min-height: 246px;
  padding: 18px;
  border-width: 2px;
  border-color: rgba(35, 125, 83, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
  scroll-snap-align: start;
}

.event-dashboard-card h3,
.poll-dashboard-card h3 {
  margin: 8px 0 6px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.event-dashboard-card p,
.poll-dashboard-card p,
.dashboard-empty-card p {
  color: var(--recore-muted);
  font-weight: 700;
}

.poll-dashboard-grid {
  display: grid;
  gap: 16px;
}

.poll-dashboard-card {
  padding: 16px;
  border-color: rgba(90, 53, 111, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #fbf8fd 100%);
}

.dashboard-empty-card {
  min-height: 132px;
  padding: 16px;
}

.latest-section {
  margin-top: 28px;
  padding-top: 8px;
}

.feed-skeleton,
.dashboard-skeleton {
  display: none;
}

.community-loading .feed-stack,
.community-loading .feed-pagination,
.community-loading .dashboard-scroll,
.community-loading .poll-dashboard-grid {
  opacity: 0.32;
  pointer-events: none;
}

.community-loading .feed-skeleton,
.community-loading .dashboard-skeleton {
  display: grid;
}

.community-loading [data-feed-stack] {
  min-height: 180px;
}

.infinite-scroll-sentinel {
  width: 100%;
  height: 1px;
}

.js-enabled [data-feed-pagination] {
  display: none;
}

.feed-skeleton {
  gap: 14px;
  margin-top: 18px;
}

.dashboard-skeleton {
  gap: 14px;
  margin-top: 12px;
}

.skeleton-card,
.dashboard-skeleton span {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(219, 229, 223, 0.88);
  border-radius: 20px;
  box-shadow: var(--recore-shadow-soft);
}

.skeleton-card {
  min-height: 142px;
  padding: 18px;
}

.dashboard-skeleton span {
  min-height: 96px;
}

.skeleton-pill,
.skeleton-line {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e9efeb;
  border-radius: 999px;
}

.skeleton-pill {
  width: 92px;
  height: 32px;
  margin-bottom: 18px;
}

.skeleton-line {
  width: 100%;
  height: 14px;
  margin-top: 12px;
}

.skeleton-line-title {
  width: 72%;
  height: 22px;
  margin-top: 0;
}

.skeleton-line-short {
  width: 48%;
}

.skeleton-card::after,
.dashboard-skeleton span::after,
.skeleton-pill::after,
.skeleton-line::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.feed-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-chip,
.category-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.05;
}

.filter-chip {
  min-width: max-content;
  min-height: 44px;
  padding-inline: 16px;
  color: var(--recore-ink);
  background: #fff;
  border: 1px solid rgba(198, 213, 204, 0.9);
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.06);
}

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

.category-pill {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
}

.category-pill.active {
  color: #fff;
  background: var(--recore-green);
}

.category-pill.infrastructure {
  color: #664800;
  background: #fff2c4;
}

.category-default {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
}

.category-infrastructure,
.category-mobility {
  color: #664800;
  background: #fff2c4;
}

.category-blogpost,
.category-community {
  color: #31425d;
  background: #e7eefc;
}

.category-event,
.category-food {
  color: #6b3c00;
  background: #ffedd1;
}

.category-poll,
.category-idea {
  color: #5a356f;
  background: #f2e7fb;
}

.category-route,
.category-sustainability {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
}

.category-wellbeing {
  color: #22516a;
  background: #e3f3fb;
}

.category-pill.wellbeing {
  color: #22516a;
  background: #e3f3fb;
}

.pill-icon {
  width: 9px;
  height: 9px;
  margin-right: 7px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.72;
}

.status-pill {
  color: var(--recore-green-dark);
  background: #edf5f1;
}

.status-today {
  color: #6b3c00;
  background: #ffedd1;
}

.status-upcoming {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
}

.status-past {
  color: #4f5b56;
  background: #e7ece9;
}

.status-open {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
}

.status-closed {
  color: #4f5b56;
  background: #e7ece9;
}

.status-pending {
  color: #6a4815;
  background: #fff0c2;
}

.status-published {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
}

.status-draft {
  color: #31425d;
  background: #e7eefc;
}

.status-pendingreview {
  color: #6a4815;
  background: #fff0c2;
}

.status-archived {
  color: #4f5b56;
  background: #e7ece9;
}

.status-rejected {
  color: #9a2f2f;
  background: #fde5e5;
}

.status-idea {
  color: #5a356f;
  background: #f2e7fb;
}

.status-route {
  color: #22516a;
  background: #e3f3fb;
}

.feed-stack {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.feed-card,
.admin-card,
.auth-card,
.section-shell {
  background: var(--recore-card);
  border: 1px solid rgba(219, 229, 223, 0.92);
  border-radius: 20px;
  box-shadow: var(--recore-shadow-soft);
}

.feed-card {
  position: relative;
  padding: 18px;
}

.feed-card-featured {
  padding: 20px;
  border-width: 2px;
  box-shadow: 0 16px 38px rgba(23, 33, 29, 0.11);
}

.feed-card-event {
  border-color: rgba(35, 125, 83, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
}

.feed-card-poll {
  border-color: rgba(90, 53, 111, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #faf6fd 100%);
}

.feed-card-compact {
  padding: 16px;
  box-shadow: var(--recore-shadow-soft);
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.feature-event {
  background: var(--recore-green);
}

.feature-poll {
  background: #76508c;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.feed-card-featured .card-meta {
  margin-bottom: 14px;
}

.feed-card h2,
.admin-card h2 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0;
}

.feed-card-featured h2 {
  font-size: 1.28rem;
}

.event-card-date {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  width: fit-content;
  min-width: 138px;
  margin: 12px 0;
  padding: 9px 12px;
  color: var(--recore-green-dark);
  background: rgba(220, 241, 229, 0.78);
  border: 1px solid rgba(35, 125, 83, 0.16);
  border-radius: 16px;
}

.event-card-day {
  grid-row: span 2;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.event-card-month,
.event-card-time {
  font-weight: 900;
  line-height: 1.1;
}

.event-card-month {
  text-transform: uppercase;
  font-size: 0.82rem;
}

.event-card-time {
  color: var(--recore-muted);
  font-size: 0.9rem;
}

.feed-card-compact h2 {
  font-size: 1.08rem;
}

.feed-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 16px;
}

.feed-card p,
.admin-card p {
  color: var(--recore-muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.event-poll-modal {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(23, 33, 29, 0.2);
}

.event-poll-modal .modal-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.feed-foot {
  margin-bottom: 14px;
  color: var(--recore-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.feed-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: var(--recore-muted);
  font-weight: 800;
}

.attendance-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--recore-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.empty-state {
  text-align: left;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 1030;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 7px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--recore-line);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(23, 33, 29, 0.16);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

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

.bottom-nav a {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  border-radius: 14px;
  color: var(--recore-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.bottom-nav a:active {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
  transform: translateY(1px);
}

.bottom-nav span {
  font-size: 1rem;
  line-height: 1;
}

.create-fab {
  position: fixed;
  right: 20px;
  bottom: calc(104px + env(safe-area-inset-bottom));
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--recore-green);
  box-shadow: 0 18px 42px rgba(35, 125, 83, 0.34);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.create-action-sheet {
  height: auto;
  border: 0;
  border-radius: 26px 26px 0 0;
}

.create-action-sheet .offcanvas-header {
  padding: 20px 20px 8px;
}

.create-action-sheet .offcanvas-title {
  font-size: 1.25rem;
  font-weight: 900;
}

.create-action-sheet .offcanvas-body {
  padding: 8px 20px 28px;
}

.action-sheet-list {
  display: grid;
  gap: 10px;
}

.action-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px;
  color: var(--recore-ink);
  text-decoration: none;
  background: var(--recore-bg);
  border: 1px solid rgba(198, 213, 204, 0.8);
  border-radius: 18px;
}

.action-sheet-item span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--recore-green-dark);
  background: var(--recore-mint);
  border-radius: 14px;
  font-weight: 900;
}

.action-sheet-item strong {
  font-size: 1rem;
}

.compact-link {
  min-height: auto;
  padding: 0;
  color: var(--recore-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 520px);
  padding: 28px;
}

.stacked-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--recore-muted);
}

.settings-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 22px 16px calc(104px + env(safe-area-inset-bottom));
}

.settings-header {
  margin-bottom: 22px;
}

.settings-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1;
}

.settings-grid {
  display: grid;
  gap: 18px;
}

.settings-side {
  display: grid;
  gap: 18px;
}

.settings-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--recore-line);
  border-radius: 20px;
  box-shadow: var(--recore-shadow-soft);
}

.section-shell {
  padding: 20px;
}

.admin-body {
  min-height: 100vh;
  background: #f4f6f2;
}

.admin-shell {
  min-height: 100vh;
}

.admin-sidebar {
  display: none;
}

.admin-panel {
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--recore-line);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.admin-content {
  padding: 16px;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard-actions form {
  display: inline-flex;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-card {
  display: grid;
  gap: 7px;
  min-height: 136px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--recore-line);
  border-radius: 18px;
  box-shadow: var(--recore-shadow-soft);
}

.dashboard-card-link,
.dashboard-card-link:hover,
.dashboard-card-link:focus,
.activity-item,
.activity-item:hover,
.activity-item:focus {
  color: inherit;
  text-decoration: none;
}

.dashboard-card-link,
.activity-item {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-card-link:hover,
.activity-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(21, 76, 51, 0.12);
}

.dashboard-card strong {
  font-size: 1.82rem;
  line-height: 1;
  font-weight: 900;
}

.dashboard-card > span:last-child {
  color: var(--recore-muted);
  font-weight: 800;
}

.dashboard-panels {
  display: grid;
  gap: 16px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #f8faf7;
  border-radius: 14px;
}

.content-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.content-detail-grid div {
  padding: 14px;
  background: #f8fbf9;
  border: 1px solid rgba(219, 229, 223, 0.92);
  border-radius: 16px;
}

.content-detail-grid dt {
  color: var(--recore-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.content-detail-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.activity-item p {
  margin: 2px 0 0;
  color: var(--recore-muted);
}

.queue-health {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.queue-health div {
  display: grid;
  gap: 2px;
  padding: 14px;
  background: #f8faf7;
  border-radius: 14px;
}

.queue-health strong {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.queue-health span {
  color: var(--recore-muted);
  font-weight: 800;
}

.admin-card {
  padding: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-table-card,
.admin-form-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--recore-line);
  border-radius: 18px;
  box-shadow: var(--recore-shadow-soft);
}

.admin-form-card {
  width: min(100%, 820px);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.content-actions form {
  display: inline-flex;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.moderation-actions form {
  display: inline-flex;
}

.admin-mobile-list .moderation-actions {
  justify-content: stretch;
}

.admin-mobile-list .moderation-actions .btn,
.admin-mobile-list .moderation-actions form {
  flex: 1 1 calc(50% - 8px);
}

.admin-mobile-list .moderation-actions form .btn {
  width: 100%;
}

.btn-admin-action {
  min-height: 40px;
  padding: 0.48rem 0.88rem;
  border-radius: 14px;
  border-width: 1px;
  font-size: 0.92rem;
  font-weight: 850;
  box-shadow: none;
}

.btn-admin-neutral {
  --bs-btn-color: #243a32;
  --bs-btn-border-color: #cbd8d2;
  --bs-btn-bg: #ffffff;
  --bs-btn-hover-color: #073f2e;
  --bs-btn-hover-bg: #edf5f1;
  --bs-btn-hover-border-color: #9eb9ac;
}

.btn-admin-success {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--recore-green);
  --bs-btn-border-color: var(--recore-green);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--recore-green-dark);
  --bs-btn-hover-border-color: var(--recore-green-dark);
}

.btn-admin-muted {
  --bs-btn-color: #4f5d57;
  --bs-btn-bg: #f4f7f5;
  --bs-btn-border-color: #dbe5df;
  --bs-btn-hover-color: #243a32;
  --bs-btn-hover-bg: #e8efeb;
  --bs-btn-hover-border-color: #cbd8d2;
}

.btn-admin-danger {
  --bs-btn-color: #9a2f2f;
  --bs-btn-bg: #fff8f8;
  --bs-btn-border-color: #efc7c7;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #9a2f2f;
  --bs-btn-hover-border-color: #9a2f2f;
}

.rich-text-field {
  min-height: 260px;
  font-family: inherit;
}

.rich-text-preview {
  color: var(--recore-ink);
  line-height: 1.7;
}

.event-admin-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f8faf7;
  border: 1px solid var(--recore-line);
  border-radius: 18px;
}

.event-detail-shell {
  display: grid;
  gap: 16px;
}

.event-hero-card,
.rsvp-panel,
.attendance-summary,
.event-body,
.event-info-card {
  background: #fff;
  border: 1px solid var(--recore-line);
  border-radius: 20px;
  box-shadow: var(--recore-shadow-soft);
}

.event-hero-card {
  padding: 20px;
}

.event-hero-card h1 {
  margin: 8px 0;
  font-weight: 900;
}

.event-info-grid {
  display: grid;
  gap: 12px;
}

.event-info-card {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.rsvp-panel,
.attendance-summary,
.event-body {
  padding: 18px;
}

.rsvp-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.attendance-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.attendance-counts span,
.attendee-list span {
  padding: 12px;
  background: #f6f8f5;
  border-radius: 14px;
  font-weight: 800;
}

.attendee-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.poll-vote-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  background: #f6f8f5;
  border: 1px solid var(--recore-line);
  border-radius: 16px;
  font-weight: 800;
}

.poll-option-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.poll-option-preview span {
  padding: 8px 11px;
  background: #f6f8f5;
  border: 1px solid var(--recore-line);
  border-radius: 999px;
  color: var(--recore-muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.poll-results {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.poll-result-bar {
  height: 12px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 999px;
}

.poll-result-bar span {
  display: block;
  height: 100%;
  background: var(--recore-green);
  border-radius: inherit;
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.route-stats span {
  padding: 10px;
  background: #f6f8f5;
  border-radius: 14px;
  color: var(--recore-muted);
  font-weight: 800;
}

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

.album-tile {
  display: block;
  overflow: hidden;
  background: #e7ece9;
  border-radius: 14px;
  aspect-ratio: 1;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.album-tile:active img,
.album-tile:hover img {
  transform: scale(1.03);
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 18, 14, 0.86);
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-backdrop img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0.5rem 0.82rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
}

.btn-outline-danger {
  --bs-btn-border-color: #d9b6b6;
  --bs-btn-color: #9a2f2f;
  --bs-btn-hover-bg: #9a2f2f;
  --bs-btn-hover-border-color: #9a2f2f;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.admin-nav a,
.admin-nav span {
  display: block;
  padding: 10px 12px;
  color: var(--recore-muted);
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.admin-nav a {
  color: var(--recore-green-dark);
  background: var(--recore-mint);
}

@media (min-width: 992px) {
  .community-main {
    padding-top: 28px;
  }

  .feed-hero {
    border-radius: 28px;
  }

  .dashboard-scroll {
    grid-auto-columns: minmax(300px, 360px);
    margin-inline: 0;
    padding-inline: 0;
  }

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

  .bottom-nav {
    right: 50%;
    left: auto;
    width: min(720px, calc(100% - 48px));
    transform: translateX(50%);
  }

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

  .admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 24px;
    background: #fff;
    border-right: 1px solid var(--recore-line);
  }

  .admin-topbar,
  .admin-content {
    padding-right: 32px;
    padding-left: 32px;
  }

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

  .dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-panels {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  }

  .feed-search {
    grid-template-columns: minmax(0, 1fr) 140px;
  }

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

  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .rsvp-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
