:root {
  --ink: #233022;
  --muted: #5d6b58;
  --paper: #f4ecd8;
  --panel: #ffffff;
  --line: #d7c49d;
  --leaf: #2f4a2d;
  --leaf-dark: #1c2f1b;
  --sun: #d6672f;
  --sky: #eadfc8;
  --warm: #efe4cd;
  --shadow: 0 16px 34px rgba(30, 37, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dark-mode {
  --ink: #f4f8f6;
  --muted: #d0dbd5;
  --paper: #0a0f0d;
  --panel: #17201b;
  --line: #44574e;
  --leaf: #58b38d;
  --leaf-dark: #0b110e;
  --sky: #1f2e38;
  --warm: #101814;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(244, 236, 216, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.site-header.scrolled {
  background: rgba(244, 236, 216, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(24, 33, 29, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(210px, 24vw, 360px);
  min-width: 210px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 750;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e8, #f1e3c5);
  box-shadow: 0 6px 14px rgba(36, 47, 33, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  transform: translateY(-1px);
  border-color: #9c7b4d;
  box-shadow: 0 8px 18px rgba(36, 47, 33, 0.22);
  outline: none;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #314331;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease, stroke 0.18s ease;
}

.mobile-nav-toggle svg circle {
  fill: #d6672f;
  stroke: none;
}

.mobile-nav-toggle.is-open svg {
  transform: rotate(90deg);
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: #e6dbc2;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a:focus,
body.dark-mode .main-nav a[aria-current="page"] {
  color: #f4f8f6;
  background: #2b3c34;
}

.theme-switch-wrap {
  margin-left: 8px;
}

.mfa-header-indicator {
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.mfa-header-indicator.on {
  background: rgba(47, 134, 88, 0.14);
  border-color: rgba(47, 134, 88, 0.42);
  color: #1d6a43;
}

.mfa-header-indicator.off {
  background: rgba(166, 90, 49, 0.14);
  border-color: rgba(166, 90, 49, 0.42);
  color: #8f3f2d;
}

.member-card-badges {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill.mfa-pill-on {
  background: rgba(47, 134, 88, 0.14);
  border: 1px solid rgba(47, 134, 88, 0.42);
  color: #1d6a43;
}

.status-pill.mfa-pill-off {
  background: rgba(166, 90, 49, 0.14);
  border: 1px solid rgba(166, 90, 49, 0.42);
  color: #8f3f2d;
}

body.dark-mode .mfa-header-indicator.on {
  background: rgba(88, 179, 141, 0.2);
  border-color: rgba(88, 179, 141, 0.5);
  color: #9ee6c8;
}

body.dark-mode .mfa-header-indicator.off {
  background: rgba(235, 138, 104, 0.2);
  border-color: rgba(235, 138, 104, 0.5);
  color: #ffc0ad;
}

body.dark-mode .status-pill.mfa-pill-on {
  background: rgba(88, 179, 141, 0.2);
  border-color: rgba(88, 179, 141, 0.5);
  color: #9ee6c8;
}

body.dark-mode .status-pill.mfa-pill-off {
  background: rgba(235, 138, 104, 0.2);
  border-color: rgba(235, 138, 104, 0.5);
  color: #ffc0ad;
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 72px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch .switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.theme-switch .icon-sun,
.theme-switch .icon-moon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.theme-switch .icon-sun {
  border: 2px solid #c78e2b;
}

.theme-switch .icon-moon {
  border: 2px solid #5b6f8b;
}

body.dark-mode .theme-switch .switch-thumb {
  transform: translateX(34px);
  background: #dce8ff;
}

.home-hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  background: var(--leaf-dark);
}

.home-hero > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(34px, 6vw, 86px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.home-hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.hero-actions,
.form-footer,
.dashboard-head,
.toolbar,
.invoice-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--sun);
}

.button.primary:hover,
.button.primary:focus {
  background: #bf5526;
}

.button.secondary {
  color: var(--ink);
  background: #fff8e8;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus {
  background: #f6ecd8;
}

.button.danger {
  color: #fff;
  background: #9a4335;
}

.button.danger:hover,
.button.danger:focus {
  background: #7f3429;
}

.password-field-wrap {
  position: relative;
  display: block;
}

.password-field-wrap input[type="password"],
.password-field-wrap input[type="text"] {
  padding-right: 46px;
}

.password-toggle-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle-icon:hover,
.password-toggle-icon:focus {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.password-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-icon[data-visible="true"] .eye-slash {
  display: none;
}

.password-toggle-icon[data-visible="false"] .eye-slash {
  display: block;
}

.page-hero {
  padding: clamp(58px, 10vw, 122px) clamp(18px, 6vw, 80px);
  color: #fff;
  background:
    linear-gradient(135deg, #2f4a2d, #20351f 60%, #6a452b),
    repeating-linear-gradient(
      -30deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 16px,
      rgba(0, 0, 0, 0.06) 16px,
      rgba(0, 0, 0, 0.06) 32px
    );
}

.section {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 6vw, 80px);
}

.intro,
.notes-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.intro h2,
.notes-section h2,
.committee-panel h2,
.dashboard h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro > p,
.committee-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.68;
}

.quick-facts,
.home-links,
.facility-grid,
.contact-grid,
.booking-paths,
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-facts {
  padding-top: 0;
}

.quick-facts article,
.home-links a,
.facility-grid article,
.contact-grid article,
.booking-paths article,
.stat,
.booking-card,
.committee-panel,
.booking-form,
.invoice-preview,
.calendar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.quick-facts article,
.home-links a,
.facility-grid article,
.contact-grid article,
.booking-paths article,
.stat,
.calendar-card {
  padding: 22px;
}

.home-links {
  background: var(--warm);
}

.home-links a {
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.home-links a:hover,
.home-links a:focus {
  border-color: #6c834f;
  transform: translateY(-2px);
}

.facility-grid article {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.facility-grid article:hover,
.facility-grid article:focus-within {
  transform: translateY(-4px);
  border-color: #9c6f43;
  box-shadow: 0 22px 36px rgba(30, 37, 28, 0.2);
}

.quick-facts span,
.home-links span,
.contact-grid span,
.booking-paths span,
.stat span,
.calendar-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-facts strong,
.home-links strong,
.contact-grid strong,
.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.2;
}

.booking-paths {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 0;
}

.booking-paths article {
  display: grid;
  align-content: start;
  gap: 12px;
}

.booking-paths h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.booking-paths p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.booking-paths .button {
  width: max-content;
  margin-top: 8px;
}

.hipcamp-button {
  display: inline-flex;
  width: max-content;
  margin-top: 8px;
  border-radius: 8px;
}

.hipcamp-button img {
  display: block;
  width: 200px;
  height: 65px;
}

.quick-facts p,
.facility-grid p,
.contact-grid p,
.booking-card p,
.calendar-card p {
  color: var(--muted);
  line-height: 1.58;
}

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

.facility-grid h2 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
}

.icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--sky);
}

.icon::before,
.icon::after {
  position: absolute;
  content: "";
  border-radius: 3px;
  background: var(--leaf-dark);
}

.icon::before {
  inset: 11px 10px;
}

.icon::after {
  width: 18px;
  height: 4px;
  left: 12px;
  top: 8px;
  transform: rotate(35deg);
}

.notes-section {
  background: var(--warm);
}

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

.note-list p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.55;
  background: #fff;
  border: 1px solid #d9c8ac;
  border-radius: 8px;
}

.note-list strong {
  color: var(--ink);
}

.booking-section {
  background: var(--warm);
}

.booking-form,
.login-form {
  display: grid;
  gap: 18px;
}

.booking-form {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  gap: 20px;
}

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

.form-row:has(label:nth-child(3)) {
  grid-template-columns: 1fr 1fr 0.6fr;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd4cd;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(39, 98, 77, 0.16);
}

.form-footer {
  justify-content: space-between;
}

#bookingEstimate {
  margin: 0;
  color: var(--leaf-dark);
  font-weight: 900;
}

body.dark-mode #bookingEstimate {
  color: #9ce9ca;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--leaf-dark);
  font-weight: 850;
}

.committee-section {
  background: var(--warm);
}

.committee-panel,
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(20px, 4vw, 34px);
}

.login-form {
  align-content: start;
}

.hidden {
  display: none;
}

.ui-prompt-dialog .hidden {
  display: none !important;
}

.dashboard {
  grid-template-columns: 1fr;
}

.committee-home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.committee-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.committee-summary-cards article {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.camera-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.camera-card h3,
.camera-card p {
  margin: 0;
}

.camera-card p {
  color: var(--muted);
}

.camera-preview-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--warm);
  font-weight: 900;
  text-align: center;
}

.plain-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.feedback-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.feedback-photo-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
}

.feedback-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.committee-summary-cards h3,
.committee-inline-section h3 {
  margin: 0;
  font-size: 1.25rem;
}

.committee-summary-cards p,
.committee-inline-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.committee-inline-section {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.property-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.pricing-table th,
.pricing-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.pricing-table th {
  color: #fff;
  background: var(--leaf-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
}

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

.members-form button {
  width: max-content;
}

.feature-description-field {
  grid-column: 1 / -1;
}

.feature-description-field textarea {
  min-height: 140px;
}

.feature-description-existing {
  grid-column: 1 / -1;
}

.feature-description-existing textarea {
  min-height: 120px;
}

.photo-upload-form {
  align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) minmax(110px, 0.35fr) minmax(190px, 0.65fr);
  gap: 10px;
}

.photo-upload-field {
  grid-column: 1;
}

.photo-drop-zone {
  display: grid;
  gap: 4px;
  min-height: 76px;
  margin-top: 6px;
  padding: 12px;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: var(--warm);
  border: 2px dashed #b99d70;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.photo-drop-zone strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.photo-drop-zone span {
  font-size: 0.82rem;
}

.photo-drop-zone.drag-over,
.photo-drop-zone:focus {
  outline: none;
  border-color: var(--leaf);
  background: #f0e4cf;
  transform: translateY(-1px);
}

.photo-file-input {
  display: none;
}

.photo-upload-message {
  grid-column: 1 / -1;
  min-height: 20px;
}

.photo-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.photo-bulk-actions .button {
  min-height: 38px;
  padding: 8px 12px;
}

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

.member-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.member-card-head,
.member-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.member-card h4,
.member-card p {
  margin: 0;
}

.copy-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.member-card p {
  color: var(--muted);
}

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

.photo-admin-card {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.photo-admin-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-admin-card .member-card-actions {
  grid-column: auto;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  min-width: 118px;
}

.photo-admin-card .member-card-actions .button {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
}

.photo-edit-grid {
  grid-template-columns: minmax(120px, 0.55fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(160px, 0.85fr) minmax(90px, 0.45fr);
  gap: 8px;
}

.photo-select-row {
  align-self: end;
  padding: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0;
  font-weight: 800;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.invoice-preview {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.invoice-preview h3 {
  margin: 0 0 8px;
}

.invoice-preview p {
  margin: 8px 0;
}

.invoice-view-section {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invoice-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(90vh, 1100px);
  padding: clamp(18px, 4vw, 30px);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 33, 29, 0.28);
}

.invoice-dialog::backdrop {
  background: rgba(24, 33, 29, 0.5);
}

.mfa-login-dialog {
  width: min(520px, calc(100% - 28px));
}

.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mfa-qr-wrap {
  display: grid;
  place-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: fit-content;
}

.mfa-qr-wrap img {
  width: 220px;
  height: 220px;
  display: block;
}

.mfa-manual-wrap {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
}

.ui-prompt-dialog {
  width: min(560px, calc(100% - 28px));
}

.ui-prompt-message {
  margin: 10px 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.ui-prompt-dialog label {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(24, 33, 29, 0.56);
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(18px, 4vw, 30px);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(24, 33, 29, 0.28);
}

.invoice-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.invoice-view-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.04;
}

.invoice-paper {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 54px);
  color: #232323;
  background: #fff;
  border: 1px solid #d9ded7;
  box-shadow: 0 14px 34px rgba(24, 33, 29, 0.12);
}

.invoice-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.invoice-topline img {
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.invoice-topline p,
.invoice-detail-grid p,
.invoice-footer-notes p {
  color: #4c5651;
  line-height: 1.55;
}

.invoice-title-block {
  text-align: right;
}

.invoice-title-block h3 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.9;
}

.invoice-title-block dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.invoice-title-block div,
.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.invoice-title-block dt,
.invoice-totals span,
.invoice-detail-grid span {
  color: #6a746f;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-title-block dd {
  margin: 0;
  font-weight: 800;
}

.balance-band {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 26px 0;
  padding: 16px 18px;
  color: #fff;
  background: var(--leaf-dark);
}

.balance-band span {
  text-transform: uppercase;
}

.balance-band strong {
  font-size: 1.25rem;
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.invoice-detail-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.invoice-table th {
  padding: 12px 10px;
  color: #fff;
  background: #2b2b2b;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.invoice-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #e1e5e2;
  vertical-align: top;
}

.invoice-table th:first-child,
.invoice-table td:first-child {
  width: 48px;
  text-align: center;
}

.invoice-table th:nth-child(3),
.invoice-table td:nth-child(3),
.invoice-table th:nth-child(4),
.invoice-table td:nth-child(4),
.invoice-table th:nth-child(5),
.invoice-table td:nth-child(5) {
  width: 72px;
  text-align: center;
}

.invoice-table th:nth-child(6),
.invoice-table td:nth-child(6) {
  width: 110px;
  text-align: right;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
  width: 120px;
  text-align: right;
}

.invoice-table td span {
  display: block;
  margin-top: 4px;
  color: #6a746f;
}

.invoice-totals {
  display: grid;
  gap: 8px;
  width: min(300px, 100%);
  margin-left: auto;
  padding: 8px 0 22px;
}

.invoice-totals div:last-child {
  padding-top: 10px;
  border-top: 2px solid #2b2b2b;
}

.invoice-footer-notes {
  padding-top: 18px;
  border-top: 1px solid #e1e5e2;
}

.dashboard-head,
.toolbar {
  justify-content: space-between;
}

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

.toolbar {
  padding: 16px;
  background: #f4ead4;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toolbar label {
  min-width: 220px;
}

.toolbar #manualBookingMessage {
  margin: 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

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

.booking-card {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.booking-card-body {
  display: grid;
  gap: 20px;
}

.booking-card-collapsed .booking-card-body {
  display: none;
}

.booking-paid-button {
  display: none;
}

.booking-card-collapsed .booking-paid-button {
  display: inline-flex;
}

.booking-card-paid.booking-card-collapsed {
  background: linear-gradient(90deg, rgba(92, 143, 89, 0.22), var(--panel) 58%);
  border-color: rgba(61, 122, 72, 0.58);
}

.booking-card-paid.booking-card-collapsed .invoice-pill {
  color: #173b22;
  background: #b9d5a9;
}

.booking-card-overdue.booking-card-collapsed {
  border-color: rgba(154, 67, 53, 0.72);
  animation: overdueBookingPulse 2.8s ease-in-out infinite;
}

.booking-card-overdue.booking-card-collapsed .invoice-pill {
  color: #fff;
  background: #9a4335;
}

.booking-card-clash {
  border-color: rgba(174, 77, 44, 0.72);
}

.booking-card-clash.booking-card-collapsed {
  background: linear-gradient(90deg, rgba(207, 116, 47, 0.18), var(--panel) 58%);
}

.clash-pill {
  color: #fff;
  background: #ae4d2c;
}

.booking-warning {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(174, 77, 44, 0.38);
  border-radius: 8px;
  color: #5a2d17;
  background: #fff0de;
}

.booking-warning strong {
  font-weight: 950;
}

.booking-warning span {
  color: #6b4128;
  line-height: 1.45;
}

@keyframes overdueBookingPulse {
  0%,
  100% {
    background: linear-gradient(90deg, rgba(154, 67, 53, 0.12), var(--panel) 58%);
    box-shadow: var(--shadow);
  }
  50% {
    background: linear-gradient(90deg, rgba(154, 67, 53, 0.26), var(--panel) 58%);
    box-shadow: 0 0 0 3px rgba(154, 67, 53, 0.18), var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-card-overdue.booking-card-collapsed {
    animation: none;
    background: linear-gradient(90deg, rgba(154, 67, 53, 0.2), var(--panel) 58%);
  }
}

.booking-card-locked {
  border-color: #8b9a92;
}

.booking-card-locked .booking-edit-grid,
.booking-card-locked .booking-email-panel {
  opacity: 0.72;
}

.booking-card-locked [data-action] {
  cursor: not-allowed;
}

.booking-card-head,
.booking-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.booking-card-head p {
  margin: 0;
  color: var(--muted);
}

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

.booking-edit-grid textarea {
  min-height: 86px;
}

.booking-edit-grid .invoice-notes-field {
  grid-column: 1 / -1;
}

.booking-edit-grid .invoice-notes-field textarea {
  min-height: 150px;
}

.toast-message {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 18px;
  color: #fff;
  background: #2d5b45;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  font-weight: 900;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-message-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.feedback-photo-upload {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(45, 91, 69, 0.08);
  border: 1px dashed #9b7a43;
  border-radius: 8px;
}

.feedback-photo-upload h2,
.feedback-photo-upload p {
  margin: 0;
}

.feedback-photo-upload input[type="file"] {
  min-height: auto;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

body.dark-mode .feedback-photo-upload {
  background: rgba(244, 246, 239, 0.06);
  border-color: #8d7a59;
}

body.dark-mode .feedback-photo-upload input[type="file"] {
  color: #f4f8f6;
  background: rgba(255, 255, 255, 0.06);
}

.booking-email-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f6f3ea;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-email-head,
.booking-email-grid,
.booking-template-grid {
  display: grid;
  gap: 14px;
}

.booking-email-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.booking-email-head h4 {
  margin: 4px 0 0;
  font-size: 1.22rem;
}

.email-timing-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.email-status-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-status-summary p {
  margin: 0;
}

.email-status-summary strong {
  color: var(--ink);
}

.instruction-schedule-card {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 14px;
  background: #fff8e8;
  border: 2px solid #d99a35;
  border-radius: 8px;
}

.instruction-schedule-card label {
  font-weight: 900;
}

.instruction-schedule-card input {
  border-color: #d99a35;
  box-shadow: 0 0 0 3px rgba(217, 154, 53, 0.14);
}

.instruction-schedule-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

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

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

.booking-template-grid textarea {
  min-height: 220px;
}

.email-actions {
  justify-content: flex-start;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #2d452e;
  background: #d7e0c8;
  font-size: 0.82rem;
  font-weight: 900;
}

.committee-role-badge {
  display: inline-flex;
  width: max-content;
  margin-top: 10px;
  padding: 6px 11px;
  border: 1px solid #c6d6ca;
  border-radius: 999px;
  color: #1f4a37;
  background: #e4f0e8;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-pill {
  color: #56391f;
  background: #edd4a8;
}

.private-calendar-section {
  background: var(--warm);
}

.private-notice,
.private-calendar {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.private-notice h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.private-notice p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.calendar-toolbar h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.calendar-feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.calendar-feed-row label {
  margin: 0;
}

.calendar-admin-stack,
.calendar-feed-panel {
  margin-top: 16px;
}

.calendar-admin-stack {
  display: grid;
  gap: 12px;
}

.calendar-admin-stack .committee-inline-section,
.calendar-feed-panel .committee-inline-section {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.icon-button-small {
  min-height: 44px;
  padding: 10px 14px;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.legend::before {
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 999px;
  background: var(--leaf);
}

.legend.pending::before {
  background: #d99a3d;
}

.legend.past::before {
  background: #7b8580;
}

.legend.cancelled::before {
  background: #a5423d;
}

.legend.blocked::before {
  background: #304f77;
}

.legend.hipcamp::before {
  background: #7a4f2a;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.weekday,
.month-day {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekday {
  padding: 10px;
  color: var(--muted);
  background: #efe4d1;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.month-day {
  min-height: 142px;
  padding: 10px;
  background: #fff;
}

.month-day.empty {
  background: var(--warm);
  border-right-color: var(--warm);
  border-bottom-color: var(--warm);
}

.day-number {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.mobile-day-label,
.mobile-calendar-empty {
  display: none;
}

.no-booking {
  color: #9aa49f;
  font-size: 0.82rem;
}

.booking-chip {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  padding: 7px 8px;
  color: #fff;
  background: var(--leaf);
  border-radius: 8px;
}

.booking-chip strong,
.booking-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-chip strong {
  font-size: 0.84rem;
}

.booking-chip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.booking-chip.pending {
  background: #d99a3d;
}

.booking-chip.past {
  background: #7b8580;
}

.booking-chip.cancelled {
  background: #a5423d;
}

.booking-chip.blocked {
  background: #304f77;
}

.booking-chip.hipcamp {
  background: #7a4f2a;
}

.config-panel {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f1e4;
}

.config-panel summary {
  cursor: pointer;
  font-weight: 850;
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px clamp(18px, 6vw, 80px);
  color: #fff;
  background:
    radial-gradient(circle at 12% 35%, rgba(77, 135, 224, 0.18) 0, rgba(77, 135, 224, 0) 24%),
    radial-gradient(circle at 20% 65%, rgba(77, 135, 224, 0.14) 0, rgba(77, 135, 224, 0) 20%),
    linear-gradient(180deg, #193328, #10231b);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer > div {
  display: grid;
  gap: 6px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.78);
}

.footer-social {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social span {
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-social a:hover,
.footer-social a:focus {
  color: #10231b;
  background: #f0bf67;
  border-color: #f0bf67;
}

.camp-gallery-section {
  display: grid;
  gap: 18px;
  background: var(--warm);
}

.image-band {
  width: 100%;
  margin: 0;
}

.image-band img {
  display: block;
  width: 100%;
  height: clamp(220px, 36vw, 420px);
  object-fit: cover;
}

.conditions-widget {
  display: grid;
  gap: 16px;
  background: var(--warm);
}

.conditions-widget h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

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

.conditions-grid article {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.conditions-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.conditions-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 1.2rem;
}

.condition-source-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.inline-help-text {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.weather-forecast-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.weather-day {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 6px;
  background: rgba(24, 61, 49, 0.06);
  border: 1px solid rgba(24, 61, 49, 0.08);
  border-radius: 8px;
  text-align: center;
}

.weather-day-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-day-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.weather-day-temps {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}

.camp-gallery-section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

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

.camp-gallery-grid figure {
  display: grid;
  gap: 8px;
  margin: 0;
}

.camp-gallery-grid img {
  width: 100%;
  height: clamp(180px, 30vw, 260px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.camp-gallery-grid figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

body.dark-mode .site-header {
  background: rgba(13, 19, 16, 0.96);
}

body.dark-mode .site-header.scrolled {
  background: rgba(11, 17, 14, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.dark-mode .home-hero {
  background: #0f1814;
}

body.dark-mode .home-links,
body.dark-mode .notes-section,
body.dark-mode .booking-section,
body.dark-mode .committee-section,
body.dark-mode .private-calendar-section {
  background: #0f1713;
}

body.dark-mode .page-hero {
  background: linear-gradient(135deg, #16251d, #0f1713 62%, #2d261d);
}

body.dark-mode .site-footer {
  background:
    radial-gradient(circle at 12% 35%, rgba(95, 149, 230, 0.2) 0, rgba(95, 149, 230, 0) 24%),
    radial-gradient(circle at 20% 65%, rgba(95, 149, 230, 0.16) 0, rgba(95, 149, 230, 0) 20%),
    linear-gradient(180deg, #0f1b16, #070d0a);
}

body.dark-mode .quick-facts article,
body.dark-mode .home-links a,
body.dark-mode .facility-grid article,
body.dark-mode .contact-grid article,
body.dark-mode .booking-paths article,
body.dark-mode .stat,
body.dark-mode .booking-card,
body.dark-mode .committee-panel,
body.dark-mode .booking-form,
body.dark-mode .calendar-card,
body.dark-mode .committee-inline-section,
body.dark-mode .private-notice,
body.dark-mode .private-calendar,
body.dark-mode .invoice-view-section,
body.dark-mode .toolbar,
body.dark-mode .booking-email-panel,
body.dark-mode .config-panel,
body.dark-mode .month-day {
  background: #18221d;
}

body.dark-mode .conditions-grid article {
  background: #1b2721;
  border-color: #495e53;
}

body.dark-mode .weather-day {
  background: #223028;
  border-color: #495e53;
}

body.dark-mode .weather-day-temps {
  color: #f5efe2;
}

body.dark-mode .committee-summary-cards article {
  background: #1d2822;
  border: 1px solid #4b6156;
}

body.dark-mode .camera-card {
  background: #18221d;
  border-color: #4b6156;
}

body.dark-mode .camera-card p,
body.dark-mode .plain-list {
  color: #d0dbd5;
}

body.dark-mode .camera-preview-placeholder {
  color: #d0dbd5;
  background: #101713;
  border-color: #4b6156;
}

body.dark-mode .feedback-photo-grid a {
  background: #101713;
  border-color: #4b6156;
}

body.dark-mode .dashboard {
  gap: 20px;
}

body.dark-mode .dashboard-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #3d5047;
}

body.dark-mode .dashboard-head h2 {
  color: #f4f8f6;
}

body.dark-mode .main-nav a {
  color: #dce7e1;
}

body.dark-mode .mobile-nav-toggle {
  border-color: #3d5248;
  background: linear-gradient(180deg, #1c2a24, #141f1a);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

body.dark-mode .mobile-nav-toggle svg {
  stroke: #dce7e1;
}

body.dark-mode .eyebrow {
  color: #f0bf67;
}

body.dark-mode .home-hero p:not(.eyebrow),
body.dark-mode .page-hero p:not(.eyebrow) {
  color: rgba(244, 248, 246, 0.9);
}

body.dark-mode .quick-facts strong,
body.dark-mode .home-links strong,
body.dark-mode .contact-grid strong,
body.dark-mode .stat strong,
body.dark-mode .booking-card h3,
body.dark-mode .committee-inline-section h3,
body.dark-mode .committee-summary-cards h3 {
  color: #f4f8f6;
}

body.dark-mode .quick-facts p,
body.dark-mode .facility-grid p,
body.dark-mode .contact-grid p,
body.dark-mode .booking-card p,
body.dark-mode .calendar-card p,
body.dark-mode .note-list p,
body.dark-mode .committee-inline-section p,
body.dark-mode .committee-summary-cards p {
  color: #d0dbd5;
}

body.dark-mode .committee-summary-cards .button {
  font-weight: 900;
}

body.dark-mode .committee-summary-cards .button.primary {
  color: #08130f;
  background: #79dfb6;
  border-color: #9ce9ca;
}

body.dark-mode .committee-summary-cards .button.primary:hover,
body.dark-mode .committee-summary-cards .button.primary:focus {
  background: #8de8c3;
}

body.dark-mode .committee-summary-cards {
  gap: 18px;
}

body.dark-mode .committee-summary-cards article {
  gap: 12px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body.dark-mode .committee-summary-cards p {
  line-height: 1.58;
}

body.dark-mode .committee-inline-section,
body.dark-mode .booking-card,
body.dark-mode .member-card,
body.dark-mode .toolbar,
body.dark-mode .private-notice,
body.dark-mode .private-calendar,
body.dark-mode .invoice-view-section {
  border-color: #4b6156;
}

body.dark-mode .form-message,
body.dark-mode label,
body.dark-mode .email-timing-note,
body.dark-mode .no-booking,
body.dark-mode .invoice-table td span {
  color: #d0dbd5;
}

body.dark-mode .note-list p,
body.dark-mode .member-card,
body.dark-mode .member-card p,
body.dark-mode .email-status-summary {
  color: #dce7e1;
  background: #1a241f;
  border-color: #40534a;
}

body.dark-mode .instruction-schedule-card {
  color: #f5faf6;
  background: #242014;
  border-color: #f1b857;
}

body.dark-mode .instruction-schedule-card input {
  color: #f5faf6;
  background: #101713;
  border-color: #f1b857;
}

body.dark-mode .instruction-schedule-card p {
  color: #e8d8b7;
}

body.dark-mode .photo-drop-zone {
  color: #d0dbd5;
  background: #101713;
  border-color: #4b6156;
}

body.dark-mode .photo-drop-zone strong {
  color: #f5faf6;
}

body.dark-mode .photo-drop-zone.drag-over,
body.dark-mode .photo-drop-zone:focus {
  background: #17271f;
  border-color: #8de8c3;
}

body.dark-mode .camp-gallery-grid figcaption {
  color: #d0dbd5;
}

body.dark-mode .month-day.empty {
  background: var(--warm);
  border-right-color: var(--warm);
  border-bottom-color: var(--warm);
}

body.dark-mode .mobile-calendar-empty {
  color: #d0dbd5;
  background: #18221d;
  border-color: #495e53;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  color: var(--ink);
  background: #101713;
  border-color: #3a4d43;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #a7b5ae;
}

body.dark-mode .weekday {
  color: #dbe6e0;
  background: #223029;
}

body.dark-mode .button.secondary {
  color: var(--ink);
  background: #13201a;
  border-color: #3a4d43;
}

body.dark-mode .button.secondary:hover,
body.dark-mode .button.secondary:focus {
  background: #1e2c25;
}

body.dark-mode .pricing-table {
  background: #121914;
}

body.dark-mode .pricing-table th {
  background: #24372f;
}

body.dark-mode .pricing-table td {
  color: #e2ebe6;
}

body.dark-mode .committee-home-links .button.secondary {
  color: #eff5f2;
  background: #1b2721;
  border-color: #4a5f54;
}

body.dark-mode .committee-home-links .button.secondary:hover,
body.dark-mode .committee-home-links .button.secondary:focus {
  background: #2a3a32;
}

body.dark-mode .committee-home-links .button.primary,
body.dark-mode .committee-summary-cards .button.primary {
  color: #08130f;
  background: #6bd2a8;
  border-color: #8be2bf;
}

body.dark-mode .committee-home-links .button.primary:hover,
body.dark-mode .committee-home-links .button.primary:focus,
body.dark-mode .committee-summary-cards .button.primary:hover,
body.dark-mode .committee-summary-cards .button.primary:focus {
  background: #7ae0b7;
}

body.dark-mode .dashboard-stats .stat {
  border-color: #4a5f54;
}

body.dark-mode .dashboard-stats .stat span {
  color: #d3dfd8;
}

body.dark-mode .dashboard-stats .stat strong {
  color: #f4f8f6;
}

body.dark-mode .status-pill {
  color: #122017;
  background: #9cc9a8;
}

body.dark-mode .committee-role-badge {
  border-color: #4f665b;
  color: #dff4ea;
  background: #1c3328;
}

body.dark-mode .invoice-pill {
  color: #2b1b08;
  background: #eec77d;
}

body.dark-mode .booking-card-paid.booking-card-collapsed {
  background: linear-gradient(90deg, rgba(88, 179, 141, 0.22), #18221d 62%);
  border-color: rgba(88, 179, 141, 0.62);
}

body.dark-mode .booking-card-paid.booking-card-collapsed .invoice-pill {
  color: #08130f;
  background: #9ee6c8;
}

body.dark-mode .booking-card-overdue.booking-card-collapsed {
  border-color: rgba(235, 138, 104, 0.72);
}

body.dark-mode .booking-card-overdue.booking-card-collapsed .invoice-pill {
  color: #1b0805;
  background: #ffb29c;
}

body.dark-mode .booking-card-clash {
  border-color: rgba(255, 178, 103, 0.72);
}

body.dark-mode .booking-card-clash.booking-card-collapsed {
  background: linear-gradient(90deg, rgba(255, 178, 103, 0.16), #18221d 62%);
}

body.dark-mode .clash-pill {
  color: #1b0d04;
  background: #ffb267;
}

body.dark-mode .booking-warning {
  color: #ffe1c3;
  background: #2b1d13;
  border-color: #8e5d35;
}

body.dark-mode .booking-warning span {
  color: #f2c69e;
}

body.dark-mode #manualBookingDialog {
  color: #e8f1ec;
  background: #16201b;
  border: 1px solid #42554b;
}

body.dark-mode #manualBookingDialog .invoice-view-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #3b4d43;
}

body.dark-mode #manualBookingDialog .invoice-view-head h2,
body.dark-mode #manualBookingDialog .invoice-view-head p {
  color: #e8f1ec;
}

body.dark-mode #manualBookingDialog label {
  color: #dce7e1;
  font-weight: 800;
}

body.dark-mode #manualBookingDialog input,
body.dark-mode #manualBookingDialog select,
body.dark-mode #manualBookingDialog textarea {
  color: #eef6f1;
  background: #0f1713;
  border-color: #495e53;
}

body.dark-mode #manualBookingDialog input::placeholder,
body.dark-mode #manualBookingDialog textarea::placeholder {
  color: #a7b5ae;
}

.install-app-banner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(24, 33, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.install-app-banner .button {
  min-height: 40px;
  padding: 9px 12px;
}

.install-app-banner-close {
  min-height: 40px;
  min-width: 40px;
  border: 1px solid #3f4d47;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .brand {
    width: min(280px, 100%);
    min-width: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: stretch;
    flex-wrap: nowrap;
    overflow: hidden;
    flex-direction: column;
    row-gap: 8px;
    column-gap: 0;
    padding-bottom: 0;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .theme-switch-wrap {
    display: none;
  }

  .site-header.mobile-nav-open .theme-switch-wrap {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    margin-top: 2px;
  }

  .main-nav a {
    width: 100%;
    text-align: left;
    white-space: normal;
    border-radius: 8px;
  }

  .home-hero,
  .intro,
  .notes-section,
  .committee-panel,
  .invoice-topline,
  .invoice-detail-grid {
    grid-template-columns: 1fr;
  }

  .invoice-title-block {
    text-align: left;
  }

  .home-hero > img {
    min-height: 300px;
  }

  .quick-facts,
  .home-links,
  .conditions-grid,
  .camp-gallery-grid,
  .facility-grid,
  .contact-grid,
  .booking-paths,
  .dashboard-stats,
  .camera-grid,
  .form-row,
  .form-row:has(label:nth-child(3)),
  .booking-edit-grid {
    grid-template-columns: 1fr;
  }

  .booking-email-head,
  .booking-email-grid,
  .booking-template-grid,
  .instruction-schedule-card,
  .members-form,
  .committee-summary-cards,
  .member-edit-grid,
  .photo-admin-card,
  .photo-edit-grid,
  .feedback-photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-admin-card .member-card-actions {
    grid-column: auto;
    flex-direction: row;
    min-width: 0;
  }

  .copy-field-row {
    grid-template-columns: 1fr;
  }

  .calendar-feed-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .page-hero,
  .committee-panel,
  .dashboard-head,
  .dashboard-stats,
  .toolbar,
  .booking-list,
  .invoice-view-head,
  .invoice-dialog .invoice-view-head,
  .site-footer {
    display: none !important;
  }

  .section,
  .committee-section,
  .dashboard,
  .invoice-view-section {
    display: block;
    padding: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .invoice-paper {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .calendar-page .page-hero {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .calendar-page .page-hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.8rem);
  }

  .calendar-page .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .section,
  .page-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-facts article,
  .home-links a,
  .facility-grid article,
  .contact-grid article,
  .booking-paths article,
  .stat,
  .calendar-card,
  .booking-card,
  .private-notice,
  .private-calendar,
  .invoice-view-section {
    padding: 16px;
  }

  .booking-card-actions .button,
  .member-card-actions .button {
    width: 100%;
  }

  .invoice-paper {
    padding: 16px;
  }

  .month-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border: 0;
    background: transparent;
  }

  .weekday,
  .month-day.empty,
  .month-day.is-available {
    display: none;
  }

  .month-day {
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .desktop-day {
    display: none;
  }

  .mobile-day-label {
    display: inline;
  }

  .calendar-toolbar {
    gap: 10px;
  }

  .calendar-toolbar h2 {
    width: 100%;
    order: -1;
    text-align: center;
    font-size: 2rem;
  }

  .calendar-toolbar .button {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .calendar-legend {
    gap: 8px 12px;
    margin-bottom: 12px;
  }

  .booking-chip {
    margin-bottom: 8px;
  }

  .booking-chip strong,
  .booking-chip span {
    white-space: normal;
  }

  .mobile-calendar-empty {
    display: block;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
  }
}

@media (max-width: 540px) {
  .site-header {
    gap: 12px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 0.92rem;
    white-space: normal;
  }

  .theme-switch-wrap {
    margin-left: 0;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: 2.25rem;
    line-height: 1.03;
  }

  .home-hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow),
  .intro > p,
  .committee-panel p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .password-toggle-icon {
    width: 30px;
    height: 30px;
  }

  .toolbar label,
  .toolbar .toolbar-actions,
  .toolbar .button {
    width: 100%;
  }

  .toolbar .toolbar-actions {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .install-app-banner {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }
}
