@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root,
html[data-theme="light"] {
  --brand: #7c1d1d;
  --brand-dark: #5a1414;
  --brand-deep: #3f0e0e;
  --cream: #eef2f7;
  --accent: #0e7490;
  --accent-dark: #155e75;
  --accent-light: #ecfeff;
  --ink: #0f172a;
  --ink2: #334155;
  --ink3: #64748b;
  --ink4: #94a3b8;
  --bg: #eef2f6;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 18px 40px -24px rgba(15, 23, 42, .35);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --header-bg: rgba(255, 255, 255, 0.62);
  --hero-overlay: linear-gradient(120deg, rgba(15, 23, 42, .62), rgba(124, 29, 29, .28));
  --font-ui: 'Manrope', 'Noto Sans', 'Noto Sans Telugu', system-ui, sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --brand: #c45a5a;
  --brand-dark: #efc4c4;
  --brand-deep: #7c1d1d;
  --cream: #1b2436;
  --accent: #22d3ee;
  --accent-dark: #67e8f9;
  --accent-light: rgba(34, 211, 238, 0.12);
  --ink: #e8eef7;
  --ink2: #cbd5e1;
  --ink3: #94a3b8;
  --ink4: #64748b;
  --bg: #0b1220;
  --surface: rgba(22, 32, 51, 0.7);
  --surface-solid: #162033;
  --border: rgba(232, 238, 247, 0.12);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .65);
  --glass: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(11, 18, 32, 0.72);
  --hero-overlay: linear-gradient(120deg, rgba(11, 18, 32, .78), rgba(124, 29, 29, .35));
  color-scheme: dark;
}

body.page-app {
  font-family: var(--font-ui);
  background:
    radial-gradient(1100px 480px at 0% -10%, rgba(124, 29, 29, .16), transparent 50%),
    radial-gradient(900px 420px at 100% 0%, rgba(14, 116, 144, .14), transparent 48%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.glass-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px -14px rgba(15, 23, 42, .45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--brand);
  flex-shrink: 0;
}

.glass-icon svg {
  width: 20px;
  height: 20px;
}

.theme-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-toggle .glass-icon {
  width: 38px;
  height: 38px;
}

html[data-theme="light"] .theme-toggle-moon,
html[data-theme="dark"] .theme-toggle-sun {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-dark);
  min-width: 0;
}

.site-logo {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-brand-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.site-nav-link {
  text-decoration: none;
  color: var(--ink2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  background: var(--surface-solid);
  color: var(--brand-dark);
}

.site-nav-link.is-donate {
  background: linear-gradient(135deg, var(--brand), #9a3838);
  color: #fff;
}

.site-nav-link.is-donate:hover,
.site-nav-link.is-donate.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

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

.site-user-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.site-menu-btn,
.site-menu-close {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.site-menu-backdrop,
.site-menu-panel {
  display: none;
}

.site-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  flex: 1 0 auto;
}

.page-narrow {
  width: min(760px, calc(100% - 32px));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-banner,
.panel-card,
.page-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-banner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-copy {
  padding: 32px;
}

.hero-visual {
  min-height: 280px;
  position: relative;
}

.hero-visual img,
.media-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 32px 28px;
}

.hero-stats article {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(12px);
}

.media-banner {
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.media-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.panel-head .icon-title {
  font-size: 18px;
  margin-bottom: 0;
}

.btn .glass-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.site-report-btn {
  gap: 8px;
}

.hero-copy h1,
.page-intro h1,
.panel-card h2 {
  font-family: var(--font-display);
  color: var(--brand-dark);
  letter-spacing: -.03em;
}

.hero-copy h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-lead,
.page-intro p,
.panel-card p {
  color: var(--ink2);
  line-height: 1.65;
}

.hero-actions,
.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-stats span {
  display: block;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 700;
}

.hero-stats strong {
  font-size: 28px;
  color: var(--brand-dark);
}

.home-hero {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 0;
}

.home-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  display: block;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 12, 12, .82) 0%, rgba(28, 12, 12, .52) 42%, rgba(28, 12, 12, .12) 70%, transparent 100%),
    linear-gradient(180deg, rgba(15, 23, 42, .12) 0%, transparent 28%, rgba(15, 23, 42, .28) 100%);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 40px 42px 72px;
}

.home-hero-copy {
  max-width: 540px;
}

.home-hero-copy .eyebrow {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.home-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  color: #fff;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.home-hero-copy .hero-lead {
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.home-hero .btn-outline {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}

.home-hero .btn-outline:hover {
  background: #fff;
  color: var(--brand-dark);
}

.home-hero .btn-ghost {
  color: #fff;
}

.home-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.home-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: calc(100% - 40px);
  margin: -42px auto 22px;
  position: relative;
  z-index: 4;
}

.home-stats-bar article {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.home-stats-bar span {
  display: block;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-stats-bar strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--brand-dark);
}

.home-develop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  margin-bottom: 16px;
}

.home-develop-copy {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-develop-copy h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 10px;
}

.home-develop-photo {
  min-height: 280px;
}

.home-develop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.home-pillars {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.home-pillars .glass-icon {
  width: 34px;
  height: 34px;
}

.donate-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 16px;
  margin-bottom: 14px;
  display: block;
}

.home-grid-3,
.home-split,
.meeting-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.home-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-split { grid-template-columns: 1.1fr .9fr; }
.meeting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel-card { padding: 18px; }

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

.panel-head a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.activity-list,
.meeting-list,
.plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-list a,
.meeting-list strong {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.activity-list span,
.meeting-list span,
.meeting-meta,
.empty-copy {
  display: block;
  color: var(--ink3);
  font-size: 13px;
  margin-top: 3px;
}

.plain-list li {
  padding-left: 14px;
  position: relative;
}

.plain-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  left: 0;
  top: 8px;
}

.donate-panel {
  background: linear-gradient(160deg, #fff7f2, #fff);
}

.home-meeting-next {
  padding: 14px 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-solid);
  margin-bottom: 12px;
}

.home-meeting-next .eyebrow {
  margin-bottom: 8px;
}

.home-meeting-next strong {
  display: block;
  font-size: 18px;
  color: var(--brand-dark);
  font-family: var(--font-display);
  line-height: 1.3;
}

.home-meeting-next > span {
  display: block;
  color: var(--ink3);
  font-size: 13px;
  margin-top: 4px;
}

.meeting-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  text-decoration: none;
}

.meeting-join .glass-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.home-meeting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.home-meeting-row .meeting-join {
  margin-top: 0;
  flex-shrink: 0;
}

.meeting-card-actions {
  margin-top: 14px;
}

.meeting-card.is-upcoming {
  border-color: rgba(14, 116, 144, .28);
}

.meeting-admin-card {
  margin-top: 12px;
}

.meeting-admin-url {
  margin: 6px 0 12px;
  font-size: 13px;
  word-break: break-all;
}

.meeting-admin-url a {
  color: var(--accent);
  font-weight: 700;
}

.meeting-admin-update .form-group {
  margin-bottom: 10px;
}

.meeting-admin-actions {
  margin-bottom: 10px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink3);
  font-size: 12px;
  line-height: 1.45;
}

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

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

.gallery-tile {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
}

.gallery-tile img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.gallery-tile span {
  display: block;
  padding: 8px 10px 10px;
  color: var(--ink2);
  font-size: 12px;
  font-weight: 700;
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 22px;
  margin-bottom: 16px;
}

.page-intro h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.chip.is-active,
.chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chip-soft.is-active,
.chip-soft:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.chip.is-static {
  cursor: default;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: transparent;
}

.feed-wide {
  max-width: 820px;
  margin: 12px auto 0;
}

.form-card { padding: 22px; }

.site-footer {
  border-top: 1px solid var(--border);
  background: #fffaf6;
  margin-top: auto;
  flex-shrink: 0;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-copy {
  margin: 0;
  color: var(--ink3);
  font-size: 13px;
  font-weight: 600;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer-nav a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.site-footer-nav a:hover {
  color: var(--brand-dark);
}

body.page-app .auth-wrap {
  min-height: auto;
  padding: 0;
  flex: unset;
  align-items: stretch;
  background: none;
}

body.page-auth .site-main {
  display: flex;
  align-items: stretch;
  padding-top: 24px;
  padding-bottom: 48px;
}

.auth-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.auth-aside {
  position: relative;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-aside-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-aside-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .18) 0%, rgba(63, 14, 14, .72) 100%);
}

.auth-aside-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 560px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.auth-aside-copy .eyebrow {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  align-self: flex-start;
}

.auth-aside-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -.03em;
}

.auth-aside-copy > p {
  margin: 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, .9);
  line-height: 1.6;
  font-size: 15px;
}

.auth-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.auth-points li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.auth-points li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

body.page-auth .auth-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

body.page-auth .auth-card--tall {
  justify-content: flex-start;
}

body.page-auth .auth-brand {
  margin-bottom: 22px;
}

body.page-auth .auth-logo-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px -14px rgba(124, 29, 29, .55);
}

body.page-auth .auth-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-auth .auth-brand h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -.03em;
  margin: 0;
}

body.page-auth .auth-brand p {
  margin: 8px 0 0;
  color: var(--ink3);
  font-size: 14px;
  line-height: 1.5;
}

body.page-auth .auth-form .form-group {
  margin-bottom: 16px;
}

body.page-auth .form-control {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  padding: 10px 14px;
}

body.page-auth textarea.form-control {
  height: auto;
  min-height: 84px;
}

body.page-auth .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(124, 29, 29, .14);
  background: var(--surface-solid);
}

body.page-auth .auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

body.page-auth .auth-label-row label {
  margin-bottom: 0;
}

body.page-auth .auth-label-row a {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

body.page-auth .auth-label-row a:hover {
  text-decoration: underline;
}

body.page-auth .auth-submit {
  height: 48px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}

body.page-auth .auth-foot {
  margin-top: 18px;
  font-size: 14px;
}

body.page-auth .auth-foot a {
  color: var(--brand);
  font-weight: 800;
}

html[data-theme="dark"] body.page-auth .form-control {
  background: rgba(11, 18, 32, .55);
  border-color: var(--border);
  color: var(--ink);
}

html[data-theme="dark"] body.page-auth .form-control:focus {
  background: var(--surface-solid);
}

html[data-theme="dark"] .alert-error {
  background: rgba(220, 38, 38, .14);
  border-color: rgba(248, 113, 113, .35);
  color: #fecaca;
}

html[data-theme="dark"] .alert-success {
  background: rgba(22, 163, 74, .14);
  border-color: rgba(74, 222, 128, .35);
  color: #bbf7d0;
}

html[data-theme="dark"] .otp-inputs input {
  background: var(--surface-solid);
  border-color: var(--border);
  color: var(--ink);
}

.home-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-app .navbar,
body.page-app .category-sidebar,
body.page-app .mobile-nav-filter-btn,
body.page-app .top-actions-row {
  display: none !important;
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-report-btn { display: none; }
  .site-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(23, 20, 18, .42);
    opacity: 0;
    pointer-events: none;
    z-index: 400;
    transition: opacity .2s ease;
  }
  .site-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .site-menu-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: #fff;
    z-index: 410;
    padding: 16px;
    gap: 4px;
    transform: translateX(104%);
    transition: transform .22s ease;
    box-shadow: var(--shadow);
  }
  .site-menu-panel.open { transform: translateX(0); }
  .site-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .site-menu-close { display: inline-flex; align-items: center; justify-content: center; }
  .site-menu-link {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    padding: 12px 10px;
    border-radius: 12px;
  }
  .site-menu-link.is-active,
  .site-menu-link:hover {
    background: #f8efe6;
    color: var(--brand-dark);
  }
  .hero-banner,
  .home-grid-3,
  .home-split,
  .home-develop,
  .meeting-grid,
  .gallery-grid,
  .gallery-grid-full,
  .media-split,
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .home-hero,
  .home-hero-inner {
    min-height: 460px;
  }
  .home-hero-inner {
    padding: 28px 22px 64px;
    align-items: flex-end;
  }
  .home-stats-bar {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin: 14px 0 18px;
  }
  .home-develop-photo {
    min-height: 240px;
    order: -1;
  }
  .page-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-grid,
  .gallery-grid-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page-app { padding-bottom: 84px; }
  .auth-aside,
  .auth-aside-copy { min-height: 240px; }
  .auth-aside-copy { padding: 22px; }
  .auth-points { display: none; }
  body.page-auth .auth-card { order: -1; }
}

@media (max-width: 640px) {
  .site-brand-text em { display: none; }
  .site-header-inner,
  .site-main,
  .page-narrow,
  .site-footer-inner {
    width: calc(100% - 20px);
  }
  .hero-banner,
  .page-intro,
  .panel-card {
    padding: 16px;
    border-radius: 18px;
  }
  .hero-copy h1,
  .page-intro h1 {
    font-size: 26px;
  }
  .auth-aside { display: none; }
  body.page-auth .auth-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
  body.page-auth .auth-brand h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .home-hero,
  .home-hero-inner { min-height: 420px; }
  .home-hero-copy h1 { font-size: 30px; }
  .donate-photo { height: 150px; }
  .gallery-tile img { height: 110px; }
  .home-meeting-row {
    flex-direction: column;
    align-items: stretch;
  }
  .home-meeting-row .meeting-join {
    width: 100%;
    justify-content: center;
  }
}

html[data-theme="dark"] .issue-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .data-table {
  background: var(--surface-solid);
  border-color: var(--border);
  color: var(--ink);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .site-menu-panel,
html[data-theme="dark"] .apa-share-popover {
  background: var(--surface-solid);
  color: var(--ink);
  border-color: var(--border);
}

html[data-theme="dark"] select,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] .issue-admin-status,
html[data-theme="dark"] .forum-sort select {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
  color-scheme: light;
}

html[data-theme="dark"] select option,
html[data-theme="dark"] select.form-control option,
html[data-theme="dark"] .issue-admin-status option,
html[data-theme="dark"] .forum-sort select option {
  color: #111827 !important;
  background-color: #ffffff !important;
}

html[data-theme="dark"] .card-foot,
html[data-theme="dark"] .inline-comments {
  background: rgba(11, 18, 32, .55) !important;
}

html[data-theme="dark"] .card-title,
html[data-theme="dark"] .news-card-title,
html[data-theme="dark"] .page-title {
  color: var(--brand-dark);
}

html[data-theme="dark"] .card-desc,
html[data-theme="dark"] body.page-dashboard .card-desc {
  color: var(--ink2);
}

html[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(11, 18, 32, .9);
  border-top-color: var(--border);
}

html[data-theme="dark"] .mobile-bottom-nav a.mobile-tab {
  color: var(--ink3);
}

html[data-theme="dark"] .site-footer {
  background: rgba(11, 18, 32, .92);
}

html[data-theme="dark"] .donate-panel,
html[data-theme="dark"] .home-meeting-next {
  background: linear-gradient(160deg, rgba(124, 29, 29, .22), var(--surface));
}

html[data-theme="dark"] .home-stats-bar article,
html[data-theme="dark"] .home-pillars li {
  background: var(--surface-solid);
}

html[data-theme="dark"] .home-hero .btn-outline {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

html[data-theme="dark"] .home-hero .btn-outline:hover {
  background: #fff;
  color: #3f0e0e;
}

html[data-theme="dark"] .site-menu-btn,
html[data-theme="dark"] .site-menu-close {
  background: var(--surface-solid);
  color: var(--ink);
}

/* —— Problems / public forum —— */
.forum-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.forum-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--brand-dark);
  letter-spacing: -.03em;
  margin: 0 0 8px;
}

.forum-hero p {
  margin: 0;
  max-width: 58ch;
  color: var(--ink2);
  line-height: 1.65;
}

.forum-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.forum-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.forum-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forum-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.forum-side-card h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
}

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

.forum-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.forum-stats span {
  color: var(--ink3);
  font-size: 13px;
  font-weight: 700;
}

.forum-stats strong {
  font-size: 18px;
  color: var(--brand-dark);
}

.forum-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 420px;
  overflow-y: auto;
}

.forum-cat-nav a {
  text-decoration: none;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.forum-cat-nav a:hover {
  background: var(--surface-solid);
  color: var(--ink);
}

.forum-cat-nav a.is-active {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: transparent;
}

.forum-guide ol {
  margin: 0;
  padding-left: 18px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.55;
}

.forum-guide li + li { margin-top: 8px; }

.forum-board {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: blur(16px);
}

.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 76px;
  z-index: 20;
  background: var(--surface-solid);
  margin: -14px -14px 12px;
  padding: 14px;
  border-radius: 24px 24px 0 0;
}

.forum-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.forum-tabs a {
  text-decoration: none;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
}

.forum-tabs a.is-active {
  background: var(--brand);
  color: #fff;
}

.forum-search {
  display: flex;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 180px;
}

.forum-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--surface-solid);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}

.forum-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 700;
}

.forum-sort select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 10px;
  background: var(--surface-solid);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
}

.forum-cat-mobile {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.forum-cat-mobile::-webkit-scrollbar { display: none; }

.forum-cat-mobile a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink2);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.forum-cat-mobile a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.forum-board-meta {
  color: var(--ink3);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 6px 12px;
}

.forum-board-meta strong { color: var(--ink); }
.forum-board-meta em { font-style: normal; color: var(--accent-dark); font-weight: 800; }

.forum-feed {
  max-width: none;
  margin: 0;
  gap: 12px;
}

.forum-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink3);
}

.forum-empty h3 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-family: var(--font-display);
}

.forum-empty .glass-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
}

body.page-forum .issue-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.page-forum .issue-card[data-status="IN_PROGRESS"] { border-left-color: var(--accent); }
body.page-forum .issue-card[data-status="RESOLVED"] { border-left-color: #059669; }
body.page-forum .issue-card[data-status="CLOSED"] { border-left-color: var(--ink4); }

body.page-forum .issue-card:hover,
body.page-forum .issue-card.is-selected {
  transform: none;
  border-color: rgba(124, 29, 29, .28);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, .45);
}

body.page-forum .issue-card.is-selected {
  box-shadow: 0 0 0 3px rgba(124, 29, 29, .12);
}

body.page-forum .card-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--brand-dark);
}

body.page-forum .card-head {
  background: transparent;
}

body.page-forum .card-foot {
  background: var(--cream);
}

body.page-forum .card-media-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

body.page-forum .card-media-image,
body.page-forum .card-media-video {
  max-height: 240px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 980px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { display: none; }
  .forum-cat-mobile { display: flex; }
  .forum-hero { flex-direction: column; align-items: flex-start; }
  .forum-toolbar { top: 64px; }
}

@media (max-width: 640px) {
  .forum-hero,
  .forum-board {
    padding: 16px;
    border-radius: 18px;
  }
  .forum-toolbar {
    margin: -16px -16px 12px;
    border-radius: 18px 18px 0 0;
  }
  .forum-search { flex: 1 1 100%; }
  body.page-forum .card-title { font-size: 17px; }
  body.page-forum .card-media-wrap {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

html[data-theme="dark"] .forum-hero,
html[data-theme="dark"] .forum-side-card,
html[data-theme="dark"] .forum-board,
html[data-theme="dark"] .forum-toolbar {
  background: var(--surface);
}

html[data-theme="dark"] .forum-stats li,
html[data-theme="dark"] .forum-search input,
html[data-theme="dark"] .forum-cat-mobile a {
  background: var(--surface-solid);
  color: var(--ink);
  border-color: var(--border);
}

html[data-theme="dark"] .forum-sort select {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

html[data-theme="dark"] body.page-forum .issue-card:hover,
html[data-theme="dark"] body.page-forum .issue-card.is-selected {
  border-color: rgba(196, 90, 90, .45);
}

/* —— Classifieds directory —— */
.cl-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.cl-hero h1 {
  font-family: var(--font-display);
  color: var(--brand-dark);
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 8px;
}

.cl-hero p { margin: 0; color: var(--ink2); max-width: 58ch; line-height: 1.6; }
.cl-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cl-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cl-tabs a {
  text-decoration: none;
  color: var(--ink2);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
}
.cl-tabs a.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cl-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cl-search input[type="search"] {
  flex: 1;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--surface-solid);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.cl-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.cl-cats::-webkit-scrollbar { display: none; }
.cl-cats a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink2);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
}
.cl-cats a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cl-count { color: var(--ink3); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.cl-count strong { color: var(--ink); }

.cl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 132px;
}
.cl-card:hover { border-color: rgba(124, 29, 29, .35); }

.cl-card-media {
  position: relative;
  background: var(--cream);
  min-height: 132px;
}
.cl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cl-card-fallback {
  width: 100%;
  height: 100%;
  min-height: 132px;
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 29, 29, .18), transparent 50%),
    linear-gradient(160deg, #f4e4d6, #d9e8ee);
}
.cl-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 3px 8px;
}
.cl-card-media .cl-card-cat {
  position: absolute;
  left: 8px;
  top: 8px;
}
.cl-card-body { padding: 14px 16px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.cl-card-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand-dark);
  line-height: 1.25;
}
.cl-card-body p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.cl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 700;
}

.cl-empty { text-align: center; padding: 40px 20px; }
.cl-empty h2, .cl-empty h1 { font-family: var(--font-display); color: var(--brand-dark); margin-bottom: 8px; }

.cl-crumb { color: var(--ink3); font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.cl-crumb a { color: var(--accent); text-decoration: none; }

.cl-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 20px;
  margin-bottom: 18px;
}
.cl-gallery img#cl-gallery-main,
.cl-gallery-empty {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.cl-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.cl-thumb {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
}
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cl-detail-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--brand-dark);
  margin: 10px 0 6px;
}
.cl-by, .cl-desc { color: var(--ink2); line-height: 1.65; }
.cl-status-off {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  background: #fffbeb;
  border-radius: 999px;
  padding: 3px 8px;
}
.cl-contact-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cl-manage { margin-top: 12px; }

.cl-place {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 18px;
}
.cl-place h2 { font-family: var(--font-display); color: var(--brand-dark); margin: 0 0 8px; }
.cl-map {
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cl-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; }

.cl-items-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}
.cl-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cl-item-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.cl-item-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cl-item-card > div { padding: 12px 14px 16px; }
.cl-item-card h3 { margin: 8px 0 4px; font-size: 18px; color: var(--ink); }
.cl-price { color: var(--brand); font-size: 15px; }
.cl-specs { margin: 10px 0 0; }
.cl-specs > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; }
.cl-specs dt { color: var(--ink3); font-weight: 700; }
.cl-specs dd { margin: 0; color: var(--ink); font-weight: 700; }

.cl-bookmark {
  display: inline-flex;
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.cl-bookmark.is-on {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: transparent;
}

.cl-item-editor {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--surface-solid);
}
.cl-form h2 { font-size: 18px; margin: 8px 0 12px; color: var(--brand-dark); }
.cl-form-actions { display: flex; gap: 8px; margin-top: 18px; align-items: center; }

.cl-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.cl-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 980px) {
  .cl-hero { flex-direction: column; align-items: flex-start; }
  .cl-card { grid-template-columns: 110px minmax(0, 1fr); }
  .cl-card-body h3 { font-size: 18px; }
  .cl-detail-main,
  .cl-place { grid-template-columns: 1fr; }
  .cl-gallery img#cl-gallery-main,
  .cl-gallery-empty { height: 220px; }
}

html[data-theme="dark"] .cl-search input,
html[data-theme="dark"] .cl-tabs a,
html[data-theme="dark"] .cl-cats a,
html[data-theme="dark"] .cl-card,
html[data-theme="dark"] .cl-item-card,
html[data-theme="dark"] .cl-item-editor {
  background: var(--surface-solid);
  color: var(--ink);
  border-color: var(--border);
}
