:root {
  --bg: #efe8db;
  --bg-soft: #f8f3ea;
  --surface: rgba(255, 250, 242, 0.8);
  --surface-strong: rgba(255, 248, 238, 0.95);
  --ink: #1f352b;
  --muted: #5f6d62;
  --accent: #b56d3a;
  --accent-deep: #864923;
  --line: rgba(42, 69, 55, 0.12);
  --shadow: 0 24px 60px rgba(54, 42, 23, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.6), transparent 40%),
    linear-gradient(180deg, #ebe2d3 0%, #f7f2e9 35%, #f2ece1 100%);
}

img,
video {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 24px auto 40px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.9), rgba(245, 239, 229, 0.82)),
    linear-gradient(180deg, rgba(80, 100, 77, 0.04), transparent 65%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 109, 58, 0.18), transparent 68%);
  pointer-events: none;
}

.topbar,
.hero-content,
.info-strip,
.story-section,
.weekly-section,
.special-section,
.homes-section,
.contact-section {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.topbar-main {
  flex: 1;
  min-width: 0;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-kicker,
.eyebrow,
.info-label,
.home-badge,
.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
}

.brand-kicker,
.eyebrow,
.info-label,
.nav-link,
.section-note,
.meta {
  color: var(--muted);
}

.brand-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nav-link {
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(560px, 1.15fr) minmax(500px, 0.85fr);
  gap: 18px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  margin: 10px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 5rem;
  line-height: 0.95;
  font-weight: 600;
}

.hero-copy h1 {
  max-width: 690px;
}

.lede,
.story-panel p,
.home-card p,
.contact-card p,
.info-card,
.feature-list li {
  font-size: 1rem;
  line-height: 1.75;
}

.home-photo-trigger {
  margin: -8px -8px 18px;
  width: calc(100% + 16px);
  overflow: hidden;
  border-radius: 18px;
}

.home-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9d1c5;
}

.home-card-clickable {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-card-clickable:hover,
.home-card-clickable:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(75, 64, 44, 0.14);
  outline: none;
}

.home-card-clickable.featured-home:hover,
.home-card-clickable.featured-home:focus-visible {
  transform: translateY(-14px);
}

.home-card-gallery {
  width: 100%;
  margin-top: 12px;
}

.lede {
  max-width: 52ch;
  margin: 18px 0 0;
  color: #2f493e;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.header-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff8f0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 28px rgba(134, 73, 35, 0.25);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.button-danger {
  color: #fff8f0;
  border: 0;
  background: linear-gradient(135deg, #b84a3b, #842b23);
  box-shadow: 0 12px 24px rgba(132, 43, 35, 0.18);
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  min-height: 44px;
  padding: 0 18px;
  box-shadow: 0 14px 28px rgba(134, 73, 35, 0.28);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  justify-content: center;
  gap: 14px;
  align-items: start;
  max-width: 520px;
  margin-left: auto;
}

.hero-media-stack {
  max-width: 520px;
  margin-left: auto;
}

.hero-media-stack .media-grid {
  max-width: 100%;
}

.park-gallery-link {
  width: 100%;
  margin-top: 14px;
}

.media-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 14px 40px rgba(34, 43, 31, 0.12);
  height: fit-content;
}

.media-card-feature {
  align-self: start;
}

.media-card img,
.media-card video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9d1c5;
}

.media-card-feature video {
  aspect-ratio: 16 / 10;
}

.media-card figcaption {
  padding: 12px 14px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.media-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.media-trigger:focus-visible {
  outline: 2px solid rgba(134, 73, 35, 0.5);
  outline-offset: -2px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.info-card,
.story-panel,
.home-card,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 18px 46px rgba(75, 64, 44, 0.08);
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card a {
  text-decoration: none;
}

.story-section,
.weekly-section,
.special-section,
.homes-section,
.contact-section {
  margin-top: 72px;
}

.section-heading {
  max-width: 100%;
}

.section-heading h2 {
  font-size: 4rem;
}

.single-line-heading {
  white-space: nowrap;
}

.story-grid,
.weekly-grid,
.special-grid,
.homes-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.story-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-list {
  margin: 0;
  padding-left: 20px;
}

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

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

.event-card,
.home-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 240, 228, 0.92));
}

.event-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 18px 46px rgba(75, 64, 44, 0.08);
}

.day-card {
  min-height: 230px;
}

.special-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(242, 235, 222, 0.94));
}

.featured-home {
  transform: translateY(-10px);
  background:
    linear-gradient(180deg, rgba(253, 245, 235, 0.98), rgba(244, 230, 208, 0.96));
}

.home-status-available-now {
  background:
    linear-gradient(180deg, rgba(249, 254, 250, 0.98), rgba(226, 240, 229, 0.92));
}

.home-status-new-listing {
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(226, 237, 246, 0.92));
}

.home-status-coming-soon {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 238, 220, 0.94));
}

.home-status-pending {
  background:
    linear-gradient(180deg, rgba(253, 249, 255, 0.98), rgba(238, 229, 242, 0.92));
}

.home-status-sold {
  background:
    linear-gradient(180deg, rgba(255, 250, 248, 0.98), rgba(241, 226, 220, 0.92));
}

.event-day,
.home-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(181, 109, 58, 0.12);
}

.event-card h3,
.home-card h3 {
  margin: 18px 0 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
}

.event-card h3 {
  font-size: 1.65rem;
  line-height: 1.08;
}

.event-time {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--ink);
}

.event-card p {
  line-height: 1.65;
}

.mini-event {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.weekly-event-item h3 {
  margin-top: 18px;
}

.mini-event span {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--ink);
}

.mini-event p {
  margin: 0;
}

.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

.meta {
  margin: 10px 0 16px;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
}

.contact-card h2 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.contact-card > p {
  max-width: 72ch;
  margin: 16px auto 0;
}

.contact-card .contact-actions {
  justify-content: center;
}

.contact-form {
  width: min(760px, 100%);
  margin: 28px auto 0;
  text-align: left;
}

.contact-form-actions {
  justify-content: center;
}

.contact-message-field {
  grid-column: 1 / -1;
}

.contact-messages {
  width: min(760px, 100%);
  margin: 24px auto 0;
  text-align: left;
}

.office-hours {
  display: grid;
  gap: 6px;
  width: min(520px, 100%);
  margin: 24px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.office-hours strong {
  font-size: 1.08rem;
}

.office-hours span:last-child {
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 20;
}

.listing-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 18;
}

.listing-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.listing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 43, 35, 0.56);
  backdrop-filter: blur(6px);
}

.listing-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.listing-modal-close {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.listing-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.listing-main-photo,
.listing-photo-placeholder {
  overflow: hidden;
  border-radius: 20px;
  background: #d9d1c5;
}

.listing-main-photo img,
.listing-photo-placeholder {
  aspect-ratio: 4 / 3;
}

.listing-main-photo img {
  object-fit: cover;
}

.listing-photo-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.listing-modal-media .gallery-trigger {
  width: 100%;
  margin-top: 12px;
}

.listing-modal-copy h2 {
  margin: 14px 0 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 0.95;
  font-weight: 600;
}

.listing-modal-copy p {
  line-height: 1.72;
}

.listing-address {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.listing-map-link {
  color: inherit;
  text-decoration-color: rgba(95, 109, 98, 0.4);
  text-underline-offset: 3px;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 21, 0.7);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 40px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(20, 22, 19, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-left: auto;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox-body {
  overflow: hidden;
  border-radius: 18px;
}

.lightbox-body img,
.lightbox-body video {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #0f100f;
}

.gallery-viewer {
  display: grid;
  gap: 14px;
}

.gallery-viewer-media {
  overflow: hidden;
  border-radius: 16px;
}

.gallery-viewer-image {
  border-radius: 16px;
}

.gallery-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  text-align: center;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}

.gallery-nav {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.gallery-counter {
  min-width: 72px;
  text-align: center;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}

.gallery-thumbnail {
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbnail.is-active {
  border-color: rgba(255, 255, 255, 0.82);
}

.gallery-thumbnail img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 980px) {
  .hero-content,
  .story-grid,
  .weekly-grid,
  .special-grid,
  .homes-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .featured-home {
    transform: none;
  }

  .home-card-clickable.featured-home:hover,
  .home-card-clickable.featured-home:focus-visible {
    transform: translateY(-4px);
  }

  .listing-modal-grid {
    grid-template-columns: 1fr;
  }

  .media-card-feature video {
    aspect-ratio: 4 / 3;
  }

  .section-heading h2 {
    font-size: 3.1rem;
  }

  .hero-copy h1 {
    font-size: 4.4rem;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .media-grid {
    max-width: 100%;
    margin-left: 0;
  }

  .hero-media-stack {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 10px;
  }

  .hero {
    padding: 18px;
    border-radius: 28px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .brand-name {
    font-size: 2rem;
    white-space: normal;
  }

  .header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-copy h1,
  .section-heading h2,
  .contact-card h2 {
    line-height: 1;
  }

  .section-heading h2 {
    font-size: 2.45rem;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .single-line-heading {
    white-space: normal;
  }

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

  .info-card,
  .story-panel,
  .home-card,
  .contact-card {
    padding: 20px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    min-height: 42px;
    padding: 0 16px;
  }
}

.dashboard-shell {
  width: min(calc(100% - 32px), 1120px);
  margin: 32px auto 48px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-header h1,
.dashboard-section h2,
.dashboard-subsection h2 {
  margin: 4px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
}

.dashboard-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.form-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-section,
.dashboard-form,
.dashboard-messages {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 18px 46px rgba(75, 64, 44, 0.08);
}

.dashboard-section + .dashboard-section {
  margin-top: 20px;
}

.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 248, 238, 0.7);
}

.dashboard-tab {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-tab.is-active {
  color: #fff8f0;
  border-color: rgba(134, 73, 35, 0.16);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 22px rgba(134, 73, 35, 0.18);
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.is-active {
  display: block;
}

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

.dashboard-section-heading h2,
.dashboard-subsection h2 {
  font-size: 2rem;
}

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

.dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.52);
  text-decoration: none;
}

.dashboard-row.is-filtered-out {
  display: none;
}

.dashboard-row strong,
.dashboard-row small {
  display: block;
}

.dashboard-row small {
  margin-top: 4px;
  color: var(--muted);
}

.inquiry-row {
  align-items: flex-start;
}

.inquiry-row small:last-child {
  max-width: 76ch;
  line-height: 1.5;
}

.inquiry-contact {
  display: grid;
  gap: 6px;
  min-width: 180px;
  font-weight: 800;
  text-align: right;
}

.inquiry-contact a {
  color: var(--accent-deep);
  text-decoration-color: rgba(134, 73, 35, 0.32);
  text-underline-offset: 3px;
}

.dashboard-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(181, 109, 58, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-row-badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-status-pill {
  color: var(--ink);
}

.home-status-pill-available-now {
  background: rgba(112, 153, 119, 0.18);
}

.home-status-pill-new-listing {
  background: rgba(93, 137, 174, 0.18);
}

.home-status-pill-coming-soon {
  background: rgba(181, 145, 76, 0.18);
}

.home-status-pill-pending {
  background: rgba(143, 112, 164, 0.18);
}

.home-status-pill-sold {
  background: rgba(177, 92, 75, 0.18);
}

.home-status-pill-featured {
  background: rgba(181, 109, 58, 0.16);
}

.status-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.status-filter {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.status-filter.is-active {
  color: #fff8f0;
  border-color: rgba(134, 73, 35, 0.18);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.listing-stats {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.stat-card span,
.stats-bar span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.stat-card strong {
  align-self: end;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.stats-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.stats-bar {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.stats-bar > div {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(42, 69, 55, 0.1);
}

.stats-bar > div > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.stats-bar strong {
  text-align: right;
}

.dashboard-empty,
.dashboard-message p {
  margin: 0;
}

.dashboard-help {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.dashboard-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-message button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.dashboard-messages.is-fading {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.dashboard-form-shell {
  max-width: 920px;
}

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

.form-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.form-field:has(textarea),
.form-field:has(input[type="file"]) {
  grid-column: 1 / -1;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.form-check span {
  order: 2;
}

.active-delete-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  min-height: 48px;
}

.active-delete-row .form-check {
  min-height: 0;
}

.delete-check {
  color: #9c2e24;
}

.dashboard-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

.login-form-grid input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

select.dashboard-input {
  appearance: auto;
}

textarea.dashboard-input {
  resize: vertical;
}

input[type="checkbox"].dashboard-input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.dashboard-subsection {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dashboard-subsection-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.image-form-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.image-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.form-error {
  color: #9c2e24;
  font-size: 0.82rem;
}

.weekly-settings-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}

.weekly-settings-form .form-field {
  min-width: 240px;
}

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

.weekly-dashboard-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.weekly-dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.weekly-dashboard-card-header h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.7rem;
}

.compact-dashboard-row {
  padding: 12px;
}

.compact-dashboard-form {
  margin: 0;
}

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

.featured-slot {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 14px;
  border: 1px dashed rgba(42, 69, 55, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.featured-slot.is-drag-over {
  border-color: var(--accent);
  background: rgba(181, 109, 58, 0.08);
}

.slot-label,
.slot-empty,
.gallery-pool-item small {
  color: var(--muted);
  font-size: 0.82rem;
}

.slot-label {
  font-weight: 800;
}

.slot-empty {
  align-self: center;
  justify-self: center;
}

.gallery-pick {
  display: grid;
  gap: 8px;
  align-self: stretch;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: grab;
}

.gallery-pick button {
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.gallery-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.gallery-pool-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  cursor: grab;
}

.gallery-thumb {
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  color: var(--muted);
  background: #d9d1c5;
}

.gallery-thumb img {
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .dashboard-header,
  .dashboard-section-heading,
  .dashboard-row {
    align-items: stretch;
    flex-direction: column;
  }

  .home-row-badges {
    justify-content: flex-start;
  }

  .form-grid,
  .image-form,
  .featured-slots,
  .dashboard-tabs,
  .weekly-dashboard-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .weekly-dashboard-card-header,
  .weekly-settings-form,
  .active-delete-row {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stats-bar strong,
  .inquiry-contact {
    text-align: left;
  }
}
