/* team_zoocrewclub — modern shell (intent from team.zoocrewclub.com) */
:root {
  --sidebar-width: 196px;
  --topbar-height: 56px;
  --zc-green: #1a6b4a;
  --zc-green-dark: #0f3d2c;
  --zc-green-mid: #22855c;
  --zc-gold: #e8a317;
  --zc-gold-dark: #c4890f;
  --sidebar-bg: #e8f2ec;
  --sidebar-bg-end: #dceee4;
  --sidebar-text: #1e3d30;
  --sidebar-muted: #5a7a68;
  --content-bg: #f0f4f2;
  --text: #1a2e26;
  --muted: #5c7268;
  --card: #ffffff;
  --border: #d8e4de;
  --radius: 0.85rem;
  --shadow: 0 1px 2px rgba(15, 61, 44, 0.04), 0 8px 24px rgba(15, 61, 44, 0.06);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
}

/* Shell only: lock outer page; content iframe scrolls independently */
html.shell-html,
body.shell-body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--content-bg);
  color: var(--text);
}

.app-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Mobile top bar */
.app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: var(--zc-green-dark);
  color: #fff;
  box-shadow: 0 2px 10px rgba(15, 61, 44, 0.2);
}

.topbar-title {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-user {
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 600;
}

/* Sidebar — narrow, light */
.sidebar {
  width: var(--sidebar-width);
  max-width: 88vw;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-end) 100%);
  color: var(--sidebar-text);
  border-right: 1px solid var(--border, #d8e4de);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  z-index: 1045;
}

@media (min-width: 992px) {
  .sidebar.offcanvas-lg {
    position: relative;
    transform: none !important;
    visibility: visible !important;
    width: var(--sidebar-width);
    height: 100%;
  }
}

@media (max-width: 991.98px) {
  .sidebar.offcanvas {
    height: 100%;
    height: 100dvh;
  }
}

.sidebar-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 0.5rem 5px 0;
  margin: 0;
  border-bottom: none;
  flex-shrink: 0;
  line-height: 0;
}

.sidebar-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  z-index: 2;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--zc-gold), #f5c542);
  color: #1a1405;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(232, 163, 23, 0.35);
}

.brand-logo {
  width: 9.25rem;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
  flex-shrink: 0;
  border-radius: 0;
  display: block;
  margin: 0.5rem auto 0.35rem;
  vertical-align: top;
}

.brand-logo-login {
  width: 12rem;
  height: 12rem;
  margin: 0 auto -8rem;
  border-radius: 0;
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  color: var(--zc-green-dark, #0f3d2c);
  font-size: 1rem;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--sidebar-muted, #5a7a68);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-greeting {
  padding: 0 0.75rem;
  margin: 0;
  line-height: 1;
}

.greeting-text {
  font-size: 0.75rem;
  color: var(--sidebar-muted, #5a7a68);
  font-weight: 600;
  line-height: 1.1;
  display: block;
}

.user-switch-wrap {
  padding: 0.5rem 0.65rem 0.35rem;
  margin-top: 0.35rem;
}

.user-switch-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sidebar-muted, #5a7a68);
  margin-bottom: 0.25rem;
}

.user-switch {
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--border, #d8e4de);
  color: var(--sidebar-text, #1e3d30);
  border-radius: 0.5rem;
}

.user-switch:focus {
  background: #fff;
  border-color: rgba(26, 107, 74, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(26, 107, 74, 0.15);
  color: var(--zc-green-dark, #0f3d2c);
}

.user-switch option {
  color: #1a1a1a;
  background: #fff;
}

.sidebar-nav {
  overflow-y: auto;
  padding: 1.75rem 0.5rem 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.user-switch-wrap + .sidebar-nav {
  padding-top: 1.25rem;
}

.nav-section-label {
  list-style: none;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-muted, #5a7a68);
  padding: 0.75rem 0.65rem 0.3rem;
  margin: 0;
}

.cal-nav .btn {
  cursor: pointer;
  pointer-events: auto;
}

.cal-nav .btn i {
  pointer-events: none;
}

.cal-grid.cal-month {
  gap: 0.4rem;
}

.cal-cell {
  min-height: 5.5rem;
  border: 1px solid var(--border, #d8e4de);
  border-radius: 0.5rem;
  padding: 0.3rem 0.35rem 0.4rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.cal-cell.empty {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.cal-cell.today {
  border-color: var(--zc-gold, #e8a317);
  box-shadow: inset 0 0 0 1px rgba(232, 163, 23, 0.35);
  background: #fffdf6;
}

.cal-cell .day {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--zc-green-dark, #0f3d2c);
  line-height: 1.2;
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 0;
  flex: 1;
}

/* Event chips: button-based for reliable HTML5 drag/drop */
.cal-event,
a.cal-event,
button.cal-event {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.15rem 0.3rem;
  border-radius: 0.3rem;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
  touch-action: none; /* allow pointer drag without scroll steal */
  -webkit-user-drag: none;
}

.cal-event.std,
a.cal-event.std,
button.cal-event.std {
  background: rgba(26, 107, 74, 0.12);
  color: #0f3d2c;
}

.cal-event.zoo,
a.cal-event.zoo,
button.cal-event.zoo {
  background: rgba(232, 163, 23, 0.22);
  color: #6b4a08;
}

.cal-event.muted,
a.cal-event.muted,
button.cal-event.muted {
  background: #eef1ef;
  color: #6b7a72;
}

.cal-event:hover,
a.cal-event:hover,
button.cal-event:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

.cal-event:active,
.cal-event.is-dragging,
a.cal-event:active,
a.cal-event.is-dragging,
button.cal-event:active,
button.cal-event.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.cal-grid.cal-dragging .cal-cell[data-date] {
  transition: background 0.1s ease, box-shadow 0.1s ease;
}

body.cal-pointer-dragging {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.cal-pointer-dragging .cal-event {
  pointer-events: none;
}

.cal-drag-ghost {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  max-width: 12rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--zc-green-dark, #0f3d2c);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 61, 44, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-cell.drag-over {
  background: rgba(26, 107, 74, 0.14) !important;
  box-shadow: inset 0 0 0 2px rgba(26, 107, 74, 0.45);
  outline: 2px solid rgba(26, 107, 74, 0.35);
}

.cal-more {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted, #5c7268);
  padding-left: 0.15rem;
}

@media (max-width: 575.98px) {
  .cal-cell {
    min-height: 4.25rem;
  }
  .cal-event,
  a.cal-event,
  button.cal-event {
    font-size: 0.58rem;
    padding: 0.1rem 0.2rem;
  }
}

.legal-content h1,
.legal-content h2 {
  color: var(--zc-green-dark, #0f3d2c);
  font-size: 1.15rem;
  margin-top: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--text, #1a2e26);
  font-size: 0.95rem;
}

.nav-divider {
  height: 1px;
  background: rgba(15, 61, 44, 0.1);
  margin: 0.55rem 0.35rem;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--sidebar-text, #1e3d30);
  border-radius: 0.55rem;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.12rem;
  font-weight: 600;
  font-size: 0.86rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar .nav-link i {
  font-size: 1.05rem;
  width: 1.15rem;
  text-align: center;
  color: var(--zc-green, #1a6b4a);
  flex-shrink: 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  background: rgba(26, 107, 74, 0.1);
  color: var(--zc-green-dark, #0f3d2c);
}

.sidebar .nav-link.active {
  background: var(--zc-gold);
  color: #1a1405;
  box-shadow: 0 2px 10px rgba(232, 163, 23, 0.28);
}

.sidebar .nav-link.active i {
  color: #1a1405;
}

.sidebar .nav-link-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.sidebar .nav-link-logout:hover i {
  color: #b91c1c;
}

.sidebar-footer {
  padding: 0.65rem 0.55rem 0.75rem;
  border-top: 1px solid rgba(15, 61, 44, 0.1);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 61, 44, 0.08);
}

button.user-chip-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

button.user-chip-btn:hover,
button.user-chip-btn:focus-visible {
  background: #fff;
  border-color: rgba(26, 107, 74, 0.28);
  outline: none;
  box-shadow: 0 0 0 0.12rem rgba(26, 107, 74, 0.12);
}

.user-chip-btn .user-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.user-chip-chevron {
  font-size: 0.75rem;
  color: var(--sidebar-muted, #5a7a68);
  flex-shrink: 0;
  opacity: 0.75;
}

.avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zc-green-mid), #14b8a6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar.has-photo {
  background: #fff;
  padding: 0;
}

.user-name {
  color: var(--zc-green-dark, #0f3d2c);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.user-role {
  font-size: 0.65rem;
  color: var(--sidebar-muted, #5a7a68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10.5rem;
}

/* Main content */
.app-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--content-bg);
}

@media (max-width: 991.98px) {
  .app-main {
    padding-top: var(--topbar-height);
    width: 100%;
  }
}

.content-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.content-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--content-bg);
  /* iframe document handles its own scroll */
}

/* ===== Inner pages (scroll when content overflows) ===== */
html.page-html {
  height: 100%;
  overflow: hidden;
}

.page-body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden; /* scroll lives in .page-scroll */
  display: flex;
  flex-direction: column;
  background: var(--content-bg, #f0f4f2);
  color: var(--text, #1a2e26);
  font-family: var(--font, "DM Sans", system-ui, sans-serif);
}

.page-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem 0.75rem 0 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .page-container {
    padding: 0.85rem 1rem 0 0.55rem;
  }
}

/* Locked heading — content scrolls underneath in .page-scroll */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 20;
  margin: 0;
  padding: 0 0 0.65rem;
  background: var(--content-bg, #f0f4f2);
  border-bottom: 1px solid var(--border, #d8e4de);
  position: relative;
}

.page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.75rem 0 1.25rem;
}

/* Tabbed pages: no top padding so sticky toolbars sit flush under fixed tabs */
.page-scroll:has(> .tab-content) {
  padding-top: 0;
}

.page-header h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  margin: 0;
  color: var(--zc-green-dark, #0f3d2c);
}

.page-header p {
  margin: 0.25rem 0 0;
  color: var(--muted, #5c7268);
  font-size: 0.92rem;
  font-weight: 500;
}

.card-soft {
  background: var(--card, #fff);
  border: 0;
  border-radius: var(--radius, 0.85rem);
  box-shadow: var(--shadow);
  height: 100%;
}

.card-soft .card-body {
  padding: 1rem 1.15rem;
}

@media (min-width: 768px) {
  .card-soft .card-body {
    padding: 1.15rem 1.35rem;
  }
}

/* Sub-tabs (Events: Events/Customers/Calendar/CCD, Templates: Forms/Email/Prizes) */
.subtabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border, #d8e4de);
}

/* Tabs pinned under page-header (outside .page-scroll) */
.subtabs-fixed {
  flex-shrink: 0;
  margin: 0;
  padding: 0.25rem 0 0;
  background: var(--content-bg, #f0f4f2);
  z-index: 18;
  position: relative;
  /* Continuous surface with page-header — no gap strip when scrolling */
  border-bottom: 1px solid var(--border, #d8e4de);
}

.subtabs-fixed.subtabs {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border, #d8e4de);
}

.subtabs .nav-link {
  white-space: nowrap;
  color: var(--muted, #5c7268);
  font-weight: 600;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.65rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.subtabs .nav-link:hover {
  color: var(--zc-green, #1a6b4a);
  background: rgba(26, 107, 74, 0.06);
}

.subtabs .nav-link.active {
  color: var(--zc-green-dark, #0f3d2c);
  border-bottom-color: var(--zc-gold, #e8a317);
  background: transparent;
}

.btn-zc {
  --bs-btn-bg: var(--zc-green);
  --bs-btn-border-color: var(--zc-green);
  --bs-btn-hover-bg: var(--zc-green-mid);
  --bs-btn-hover-border-color: var(--zc-green-mid);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--zc-green-dark);
  --bs-btn-active-border-color: var(--zc-green-dark);
  --bs-btn-active-color: #fff;
  font-weight: 700;
  border-radius: 0.6rem;
}

.btn-zc-gold {
  --bs-btn-bg: var(--zc-gold);
  --bs-btn-border-color: var(--zc-gold);
  --bs-btn-hover-bg: var(--zc-gold-dark);
  --bs-btn-hover-border-color: var(--zc-gold-dark);
  --bs-btn-color: #1a1405;
  --bs-btn-hover-color: #1a1405;
  font-weight: 700;
  border-radius: 0.6rem;
}

.btn-zc-outline {
  --bs-btn-color: var(--zc-green-dark);
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: #e8f2ed;
  --bs-btn-hover-border-color: var(--zc-green);
  --bs-btn-hover-color: var(--zc-green-dark);
  font-weight: 700;
  border-radius: 0.6rem;
}

/* Collapsible cards (event edit Location, etc.) */
.card-collapse-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.card-collapse-toggle:hover {
  background: rgba(15, 61, 44, 0.03);
}

.card-collapse-toggle .collapse-arrow {
  font-size: 1rem;
  color: var(--muted, #5c7268);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.card-collapse-toggle:not(.collapsed) .collapse-arrow {
  transform: rotate(180deg);
}

.card-collapse-toggle .section-label {
  margin-bottom: 0;
}

/* TinyMCE on purpose / info */
.tox-tinymce {
  border-radius: 0.5rem !important;
  border-color: var(--border, #d8e4de) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__primary {
  background: #f7faf8 !important;
}

/* Toggle switches (event edit Active, etc.) */
.zc-toggle .form-check-input {
  width: 2.75rem;
  height: 1.4rem;
  cursor: pointer;
  background-color: #c5d4cc;
  border-color: #b0c4ba;
}

.zc-toggle .form-check-input:checked {
  background-color: var(--zc-green, #1a6b4a);
  border-color: var(--zc-green, #1a6b4a);
}

.zc-toggle .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 107, 74, 0.2);
}

.zc-toggle .form-check-label {
  font-weight: 600;
  color: var(--muted, #5c7268);
  margin-left: 0.15rem;
  user-select: none;
}

/* Clickable event rows */
.event-row:hover {
  background: rgba(26, 107, 74, 0.06);
}

.event-row-link {
  color: var(--zc-green-dark, #0f3d2c);
}

.event-row:hover .event-row-link {
  color: var(--zc-green, #1a6b4a);
  text-decoration: underline !important;
}

.event-row:focus-visible {
  outline: 2px solid rgba(232, 163, 23, 0.55);
  outline-offset: -2px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  /* Stay flush under fixed tabs while list scrolls (no gap / peek-through) */
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0 0.55rem;
  background: var(--content-bg, #f0f4f2);
  border-bottom: 1px solid var(--border, #d8e4de);
  box-shadow: 0 4px 10px -6px rgba(15, 61, 44, 0.12);
}

.toolbar .form-control,
.toolbar .form-select {
  min-width: 0;
}

.form-control,
.form-select {
  border-radius: 0.6rem;
  border-color: var(--border, #d8e4de);
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--zc-green-mid);
  box-shadow: 0 0 0 0.2rem rgba(26, 107, 74, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #2a4036;
}

.table-modern {
  margin: 0;
  font-size: 0.9rem;
}

.table-modern thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  border-bottom-color: var(--border);
  white-space: nowrap;
}

.table-modern tbody td {
  vertical-align: middle;
  font-weight: 500;
}

.badge-status {
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
}

.badge-draft {
  background: #fef3c7;
  color: #92400e;
}

.badge-done {
  background: #e0e7ff;
  color: #3730a3;
}

.stat-tile {
  padding: 0.25rem 0;
}

.stat-tile .value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--zc-green-dark);
  line-height: 1.15;
}

.stat-tile .label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
}

.file-row:hover {
  background: #f5faf7;
  border-color: var(--border);
}

.file-row i {
  color: var(--zc-green);
  font-size: 1.15rem;
}

.folder-row i {
  color: var(--zc-gold);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  background: #fafcfb;
  color: var(--muted);
  font-weight: 600;
}

.dropzone:hover {
  border-color: var(--zc-green-mid);
  background: #f0f9f4;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.accordion-zc .accordion-button {
  font-weight: 700;
  color: var(--zc-green-dark);
  background: #fff;
  box-shadow: none !important;
}

.accordion-zc .accordion-button:not(.collapsed) {
  background: #eef7f2;
  color: var(--zc-green-dark);
}

.accordion-zc .accordion-item {
  border-color: var(--border);
  border-radius: 0.65rem !important;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* Login page */
.login-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(145deg, #0f3d2c 0%, #1a6b4a 55%, #0a2e21 100%);
  font-family: var(--font);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  padding: 1.75rem 1.5rem;
}

@media (min-width: 480px) {
  .login-card {
    padding: 2rem;
  }
}

.login-card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--zc-green-dark);
  margin: 0 0 0.25rem;
}

.login-card .lead-sm {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* Calendar grid (simple) */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.cal-head {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.35rem 0;
}

.cal-day {
  aspect-ratio: 1;
  min-height: 2.25rem;
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: #f7faf8;
  color: var(--text);
}

.cal-day.muted {
  color: #b0c0b8;
  background: transparent;
}

.cal-day.has-event {
  background: #dcfce7;
  color: #166534;
  box-shadow: inset 0 0 0 1px #86efac;
}

.cal-day.today {
  background: var(--zc-gold);
  color: #1a1405;
}

@media (min-width: 576px) {
  .cal-day {
    min-height: 2.75rem;
    font-size: 0.9rem;
  }
}

@supports (padding: max(0px)) {
  .app-topbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    height: calc(var(--topbar-height) + env(safe-area-inset-top));
  }

  @media (max-width: 991.98px) {
    .app-main {
      padding-top: calc(var(--topbar-height) + env(safe-area-inset-top));
    }

    .sidebar {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}
