:root {
  --gallery-black: #122d28;
  --gallery-gold: #a8c0b4;
  --gallery-gold-soft: #cbdcd2;
  --gallery-beige: #ebefe9;
  --gallery-cream: #f5f5f0;
  --gallery-brown: #35574b;
  --gallery-brown-soft: #527064;
  --gallery-border: rgba(53, 87, 75, 0.12);
  --gallery-shadow: 0 22px 60px rgba(18, 45, 40, 0.09);
  --gallery-shadow-strong: 0 26px 70px rgba(18, 45, 40, 0.14);
}

.gallery-page-shell {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f3f4ee 0%, #ebefe9 100%);
}

.gallery-page-intro {
  margin: 0 auto 3rem;
  max-width: 780px;
  text-align: center;
}

.gallery-page-intro__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(168, 192, 180, 0.12);
  color: var(--gallery-brown);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-page-intro h2,
.collection-hero__content h1 {
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  line-height: 1.12;
  color: var(--gallery-black);
}

.gallery-page-intro p,
.collection-hero__content p {
  color: rgba(18, 45, 40, 0.72);
  line-height: 1.8;
}

.gallery-page-intro__meta {
  margin-top: 1rem;
  color: var(--gallery-brown-soft);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-status {
  margin: 0 auto 2rem;
  max-width: 760px;
  padding: 18px 20px;
  border-radius: 18px;
  text-align: center;
  font-size: 0.98rem;
}

.gallery-status--loading {
  background: rgba(168, 192, 180, 0.12);
  color: var(--gallery-brown);
}

.gallery-status--empty {
  background: rgba(53, 87, 75, 0.08);
  color: var(--gallery-brown);
}

.gallery-status--error {
  background: rgba(180, 74, 54, 0.12);
  color: #8d3f30;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(250, 249, 244, 0.88);
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow);
  text-decoration: none;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gallery-shadow-strong);
}

.collection-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 192, 180, 0.16) 0%, rgba(53, 87, 75, 0.2) 100%);
}

.collection-card__media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 249, 244, 0.92);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  transition: opacity 0.24s ease;
}

.collection-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.24s ease;
}

.collection-card__media.is-loaded .collection-card__image {
  opacity: 1;
}

.collection-card__media.is-loaded .collection-card__media-fallback {
  opacity: 0;
}

.collection-card:hover .collection-card__media.is-loaded .collection-card__image {
  transform: scale(1.04);
}

.collection-card__media--placeholder {
  background: linear-gradient(135deg, rgba(168, 192, 180, 0.22) 0%, rgba(53, 87, 75, 0.28) 100%);
}

.collection-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.collection-card__eyebrow {
  margin-bottom: 0;
  color: var(--gallery-brown-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collection-card__body h3 {
  margin-bottom: 0;
  color: var(--gallery-black);
  font-size: 1.2rem;
  line-height: 1.35;
}

.collection-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: rgba(18, 45, 40, 0.66);
  font-size: 0.9rem;
}

.collection-card__cta {
  color: var(--gallery-brown);
  font-weight: 600;
}

.collection-hero {
  position: relative;
  padding: 5rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(15, 42, 37, 0.72) 0%, rgba(18, 45, 40, 0.78) 100%),
    var(--collection-hero-image, linear-gradient(135deg, #193831 0%, #27493f 100%));
  background-size: cover;
  background-position: center;
}

.collection-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 28, 25, 0.08) 0%, rgba(7, 28, 25, 0.22) 100%);
}

.collection-hero .container {
  position: relative;
  z-index: 1;
}

.collection-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(250, 249, 244, 0.88);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}

body.site-shell .collection-hero__content {
  max-width: 760px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.collection-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(250, 249, 244, 0.12);
  color: var(--gallery-gold-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collection-hero__content h1,
.collection-hero__content p {
  color: #faf9f4;
}

.gallery-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-image-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(250, 249, 244, 0.9);
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.gallery-image-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gallery-shadow-strong);
}

.gallery-image-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-image-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-image-card:hover .gallery-image-card__media img {
  transform: scale(1.03);
}

.gallery-image-card__body {
  padding: 18px 18px 20px;
}

.gallery-image-card__body h3 {
  margin-bottom: 6px;
  color: var(--gallery-black);
  font-size: 1rem;
  line-height: 1.4;
}

.gallery-image-card__body p {
  margin-bottom: 0;
  color: rgba(18, 45, 40, 0.58);
  font-size: 0.88rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(13, 38, 34, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
}

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

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox__figure {
  position: relative;
  max-width: min(1080px, 100%);
  max-height: 100%;
  margin: 0;
}

.gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(7, 28, 25, 0.42);
}

.gallery-lightbox__caption {
  margin-top: 14px;
  color: #faf9f4;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.gallery-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 249, 244, 0.22);
  border-radius: 50%;
  background: rgba(250, 249, 244, 0.12);
  color: #faf9f4;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus {
  background: rgba(250, 249, 244, 0.22);
}

.gallery-lightbox__arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(250, 249, 244, 0.28);
  border-radius: 50%;
  background: rgba(250, 249, 244, 0.12);
  color: #faf9f4;
  cursor: pointer;
  font-size: 0;
  transform: translateY(-50%);
}

.gallery-lightbox__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.gallery-lightbox__arrow--prev {
  left: 18px;
}

.gallery-lightbox__arrow--prev::before {
  left: 19px;
  transform: translateY(-50%) rotate(-45deg);
}

.gallery-lightbox__arrow--next {
  right: 18px;
}

.gallery-lightbox__arrow--next::before {
  right: 19px;
  transform: translateY(-50%) rotate(135deg);
}

.gallery-lightbox__arrow:hover,
.gallery-lightbox__arrow:focus {
  background: rgba(250, 249, 244, 0.24);
}

.gallery-lightbox__arrow[hidden] {
  display: none;
}

.gallery-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  margin-top: 2rem;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gallery-gold) 0%, var(--gallery-gold-soft) 100%);
  color: var(--gallery-black);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(168, 192, 180, 0.22);
}

.gallery-load-more[hidden] {
  display: none;
}

[hidden],
.admin-login[hidden],
.admin-app[hidden],
.admin-notice[hidden],
.admin-inline-message[hidden],
.admin-progress[hidden],
.admin-debug[hidden],
#collectionDetail[hidden],
#collectionEmpty[hidden] {
  display: none !important;
}

.gallery-load-more:disabled {
  opacity: 0.7;
}

.admin-body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #f0f3ed 0%, #e5ebe4 100%);
  color: var(--gallery-black);
  font-family: "Roboto", sans-serif;
}

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

.admin-login,
.admin-app {
  max-width: 1280px;
  margin: 0 auto;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 48px);
}

.admin-card,
.admin-auth-card {
  border-radius: 30px;
  background: rgba(250, 249, 244, 0.92);
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow);
}

.admin-auth-card {
  width: min(480px, 100%);
  padding: 34px 30px;
}

.admin-auth-card h1,
.admin-topbar h1 {
  margin-bottom: 10px;
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  line-height: 1.12;
}

.admin-auth-card p,
.admin-topbar p,
.admin-subtitle {
  color: rgba(18, 45, 40, 0.72);
}

.admin-overline {
  margin-bottom: 10px;
  color: var(--gallery-brown-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-upload-item input,
.admin-image-card__edit input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--gallery-border);
  border-radius: 18px;
  background: rgba(245, 245, 240, 0.92);
  color: var(--gallery-black);
  box-sizing: border-box;
}

.admin-field select {
  appearance: none;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gallery-gold) 0%, var(--gallery-gold-soft) 100%);
  color: var(--gallery-black);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(168, 192, 180, 0.22);
  cursor: pointer;
}

.admin-button--secondary,
.admin-button--ghost {
  background: rgba(250, 249, 244, 0.84);
  border: 1px solid rgba(53, 87, 75, 0.14);
  box-shadow: none;
}

.admin-button--danger {
  background: rgba(181, 80, 59, 0.14);
  color: #8d3f30;
  box-shadow: none;
}

.admin-button--small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.72rem;
}

.admin-inline-message,
.admin-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.admin-inline-message--success {
  background: rgba(71, 145, 98, 0.12);
  color: #29663d;
}

.admin-inline-message--warning {
  background: rgba(176, 120, 0, 0.14);
  color: #815900;
}

.admin-inline-message--error,
.admin-notice--error {
  background: rgba(181, 80, 59, 0.14);
  color: #8d3f30;
}

.admin-debug {
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(53, 87, 75, 0.12);
  background: rgba(240, 243, 237, 0.9);
  overflow: hidden;
}

.admin-debug summary {
  padding: 14px 16px;
  cursor: pointer;
  color: var(--gallery-brown);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-debug__content {
  padding: 0 16px 16px;
}

.admin-debug__grid {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 10px 14px;
  margin-bottom: 16px;
}

.admin-debug__label {
  color: rgba(18, 45, 40, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-debug__value {
  color: var(--gallery-black);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.admin-debug__steps {
  margin: 0;
  padding-left: 18px;
  color: rgba(18, 45, 40, 0.8);
}

.admin-debug__steps li + li {
  margin-top: 8px;
}

.admin-debug__checks {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-debug__check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(250, 249, 244, 0.72);
}

.admin-debug__check strong {
  color: var(--gallery-black);
}

.admin-debug__check span {
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-debug__check p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(18, 45, 40, 0.74);
  overflow-wrap: anywhere;
}

.admin-debug__check--pass span {
  color: #335448;
}

.admin-debug__check--fail span {
  color: #4a685c;
}

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

.admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: rgba(18, 45, 40, 0.64);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid var(--gallery-border);
  border-radius: 22px;
  background: rgba(250, 249, 244, 0.66);
  box-shadow: 0 14px 36px rgba(18, 45, 40, 0.05);
}

.admin-tab {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(18, 45, 40, 0.72);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-tab:hover,
.admin-tab:focus {
  color: var(--gallery-black);
  background: rgba(168, 192, 180, 0.1);
}

.admin-tab.is-active {
  border-color: rgba(168, 192, 180, 0.38);
  background: linear-gradient(135deg, rgba(168, 192, 180, 0.98) 0%, rgba(203, 220, 210, 0.98) 100%);
  color: var(--gallery-black);
  box-shadow: 0 12px 28px rgba(168, 192, 180, 0.22);
}

.admin-panel[hidden] {
  display: none !important;
}

.admin-content-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.admin-content-layout > .admin-card {
  padding: 24px;
}

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

.admin-form-grid--wide {
  gap: 26px;
}

.admin-fieldset {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(53, 87, 75, 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 245, 240, 0.96), rgba(235, 239, 233, 0.72));
}

.admin-fieldset h3 {
  margin: 4px 0 0;
  color: var(--gallery-black);
  font-size: 1.22rem;
}

.admin-form-grid textarea {
  min-height: 124px;
  resize: vertical;
}

.admin-form-actions,
.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--gallery-border);
  border-radius: 18px;
  background: rgba(240, 243, 237, 0.78);
}

.admin-list-item--media {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.admin-list-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: rgba(168, 192, 180, 0.12);
}

.admin-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-list-media--empty {
  display: grid;
  place-items: center;
  color: rgba(53, 87, 75, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-list-item h3 {
  margin: 0 0 6px;
  color: var(--gallery-black);
  font-size: 1rem;
  line-height: 1.35;
}

.admin-list-item p {
  margin: 0;
  color: rgba(18, 45, 40, 0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-list-item a {
  color: var(--gallery-brown);
  font-weight: 700;
  text-decoration: none;
}

.admin-current-media {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: -4px 0 16px;
  padding: 12px;
  border: 1px solid var(--gallery-border);
  border-radius: 18px;
  background: rgba(240, 243, 237, 0.78);
}

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

.admin-current-media__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(168, 192, 180, 0.12);
}

.admin-current-media__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-current-media__body {
  display: grid;
  gap: 6px;
}

.admin-current-media__body strong {
  color: var(--gallery-black);
  font-size: 0.94rem;
}

.admin-current-media__body p {
  margin: 0;
  color: rgba(18, 45, 40, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-settings-card {
  margin-top: 22px;
  padding: 24px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-stats-grid .admin-form-actions {
  grid-column: 1 / -1;
}

.admin-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.admin-preview-strip__item {
  min-width: 0;
}

.admin-preview-strip__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.admin-preview-strip__item span {
  display: block;
  margin-top: 6px;
  color: rgba(18, 45, 40, 0.58);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gallery-manager {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-gallery-manager__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-gallery-manager__head h3 {
  margin: 0;
  color: var(--gallery-black);
  font-size: 1rem;
}

.admin-gallery-manager__head span {
  color: var(--gallery-brown-soft);
  font-size: 0.86rem;
}

.admin-managed-media-list {
  display: grid;
  gap: 12px;
}

.admin-managed-media {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--gallery-border);
  border-radius: 18px;
  background: rgba(250, 249, 244, 0.78);
}

.admin-managed-media__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(168, 192, 180, 0.12);
}

.admin-managed-media__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-managed-media__body {
  display: grid;
  gap: 8px;
}

.admin-managed-media__body strong {
  color: var(--gallery-black);
}

.admin-managed-media__body p {
  margin: 0;
  color: rgba(18, 45, 40, 0.58);
  font-size: 0.84rem;
}

.admin-managed-media__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
}

.admin-sidebar,
.admin-main {
  padding: 24px;
}

.admin-section-head,
.admin-gallery-header,
.admin-upload__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-collection-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.admin-collection-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: rgba(240, 243, 237, 0.86);
  text-align: left;
}

.admin-collection-item.is-active {
  border-color: rgba(168, 192, 180, 0.26);
  background: rgba(168, 192, 180, 0.1);
}

.admin-collection-item__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168, 192, 180, 0.2) 0%, rgba(53, 87, 75, 0.24) 100%);
}

.admin-collection-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-collection-item__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #faf9f4;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.admin-collection-item__body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gallery-black);
}

.admin-collection-item__body span {
  color: rgba(18, 45, 40, 0.58);
  font-size: 0.86rem;
}

.admin-subcard {
  margin: 22px 0 24px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(240, 243, 237, 0.88);
  border: 1px solid var(--gallery-border);
}

.admin-upload__header {
  margin-bottom: 18px;
}

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

.admin-upload-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(250, 249, 244, 0.82);
}

.admin-upload-item__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.admin-upload-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-upload-item__body p {
  margin: 8px 0 0;
  color: rgba(18, 45, 40, 0.56);
  font-size: 0.84rem;
}

.admin-progress {
  margin-top: 16px;
}

.admin-progress__track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 45, 40, 0.08);
}

.admin-progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gallery-gold) 0%, var(--gallery-gold-soft) 100%);
  transition: width 0.2s ease;
}

.admin-progress p {
  margin: 10px 0 0;
  color: rgba(18, 45, 40, 0.64);
  font-size: 0.88rem;
}

.admin-upload__actions {
  margin-top: 18px;
}

.admin-gallery-header {
  margin-bottom: 16px;
}

.admin-gallery-header span {
  color: var(--gallery-brown-soft);
  font-size: 0.9rem;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.admin-image-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(240, 243, 237, 0.88);
  border: 1px solid var(--gallery-border);
}

.admin-image-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.admin-image-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-card__body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.admin-image-card__body h3 {
  margin-bottom: 4px;
  color: var(--gallery-black);
  font-size: 0.95rem;
  line-height: 1.4;
}

.admin-image-card__body p {
  margin-bottom: 0;
  color: rgba(18, 45, 40, 0.56);
  font-size: 0.82rem;
}

.admin-image-card__edit {
  display: grid;
  gap: 8px;
}

.admin-image-card__edit span {
  color: rgba(18, 45, 40, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-image-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-empty {
  padding: 26px 20px;
  border: 1px dashed rgba(53, 87, 75, 0.18);
  border-radius: 22px;
  text-align: center;
  color: rgba(18, 45, 40, 0.58);
}

.admin-empty--small {
  padding: 18px 16px;
  font-size: 0.9rem;
}

.admin-lead-report-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}

.admin-lead-stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(53, 87, 75, 0.12);
  border-radius: 18px;
  background: rgba(240, 243, 237, 0.84);
}

.admin-lead-stat--filtered {
  border-color: rgba(51, 84, 72, 0.22);
  background: rgba(88, 117, 104, 0.1);
}

.admin-lead-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--gallery-brown-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-lead-stat strong {
  display: block;
  color: var(--gallery-black);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
}

.admin-lead-stat p {
  margin: 8px 0 0;
  color: rgba(18, 45, 40, 0.58);
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-lead-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--gallery-border);
  border-radius: 20px;
  background: rgba(250, 249, 244, 0.66);
}

.admin-lead-filters .admin-field {
  margin-bottom: 0;
}

.admin-lead-filters .admin-form-actions {
  align-self: end;
}

.admin-lead-report-meta {
  margin-bottom: 14px;
  color: rgba(18, 45, 40, 0.62);
  font-size: 0.9rem;
}

.admin-lead-table {
  display: grid;
  gap: 14px;
}

.admin-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.35fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--gallery-border);
  border-radius: 20px;
  background: rgba(240, 243, 237, 0.78);
}

.admin-lead-card__main,
.admin-lead-card__tools {
  min-width: 0;
}

.admin-lead-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-lead-card__head h3 {
  margin: 0;
  color: var(--gallery-black);
  font-size: 1.08rem;
  line-height: 1.35;
}

.admin-lead-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18, 45, 40, 0.08);
  color: rgba(18, 45, 40, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.admin-lead-badge--new {
  background: rgba(100, 129, 116, 0.14);
  color: #4a685c;
}

.admin-lead-badge--contacted,
.admin-lead-badge--site-visit-planned {
  background: rgba(168, 192, 180, 0.16);
  color: var(--gallery-brown);
}

.admin-lead-badge--converted {
  background: rgba(71, 145, 98, 0.14);
  color: #29663d;
}

.admin-lead-badge--closed {
  background: rgba(18, 45, 40, 0.1);
  color: rgba(18, 45, 40, 0.7);
}

.admin-lead-meta,
.admin-lead-quote {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-lead-meta span,
.admin-lead-quote span {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(250, 249, 244, 0.72);
  color: rgba(18, 45, 40, 0.74);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-lead-meta strong,
.admin-lead-quote strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gallery-brown-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.admin-lead-quote span {
  background: rgba(168, 192, 180, 0.12);
}

.admin-lead-message {
  max-height: 190px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 16px;
  background: rgba(250, 249, 244, 0.68);
  color: rgba(18, 45, 40, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.admin-lead-card__tools {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(250, 249, 244, 0.7);
}

.admin-lead-card__tools .admin-field {
  margin-bottom: 0;
}

.admin-lead-card__tools textarea {
  min-height: 92px;
  resize: vertical;
}

@media (max-width: 991.98px) {
  .gallery-page-shell {
    padding: 4rem 0;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-content-layout {
    grid-template-columns: 1fr;
  }

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

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

  .admin-lead-filters,
  .admin-lead-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .gallery-page-shell {
    padding: 3.25rem 0;
  }

  .collection-grid,
  .gallery-image-grid,
  .admin-image-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page-intro {
    margin-bottom: 2rem;
  }

  .collection-card,
  .gallery-image-card {
    border-radius: 22px;
  }

  .collection-hero {
    padding-top: 4rem;
  }

  .admin-shell {
    padding: 14px;
  }

  .admin-auth-card,
  .admin-sidebar,
  .admin-main,
  .admin-content-layout > .admin-card,
  .admin-settings-card {
    padding: 20px;
    border-radius: 24px;
  }

  .admin-debug__grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-section-head,
  .admin-gallery-header,
  .admin-upload__header {
    flex-direction: column;
  }

  .admin-collection-item,
  .admin-upload-item,
  .admin-current-media,
  .admin-managed-media {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .admin-list-item,
  .admin-list-item--media {
    grid-template-columns: 1fr;
  }

  .admin-list-media {
    width: 100%;
    max-width: 220px;
  }

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

  .admin-lead-report-grid,
  .admin-lead-meta,
  .admin-lead-quote {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    border-radius: 18px;
  }

  .admin-tab {
    flex: 1 1 calc(50% - 8px);
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .admin-image-card__body {
    align-items: flex-start;
  }
}

/* Admin dashboard UX polish */
.admin-body {
  --admin-ink: #102d28;
  --admin-muted: rgba(23, 54, 48, 0.64);
  --admin-panel: rgba(246, 246, 241, 0.94);
  --admin-panel-solid: #f4f5ef;
  --admin-line: rgba(53, 87, 75, 0.14);
  --admin-gold: #9cb7a9;
  --admin-gold-soft: #c8d7ce;
  --admin-espresso: #13322c;
  --admin-espresso-2: #1f3f37;
  --admin-shadow: 0 24px 70px rgba(24, 55, 48, 0.12);
  background:
    linear-gradient(135deg, rgba(246, 246, 241, 0.98) 0%, rgba(232, 237, 230, 0.96) 46%, rgba(216, 227, 218, 0.94) 100%);
}

.admin-shell {
  padding: 18px;
}

.admin-app {
  max-width: 1540px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: minmax(240px, 286px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: calc(100vh - 36px);
}

.admin-menu-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 20px;
  min-height: calc(100vh - 36px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(200, 215, 206, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(31, 63, 55, 0.96), rgba(19, 50, 44, 0.98)),
    var(--admin-espresso);
  box-shadow: 0 28px 80px rgba(16, 43, 38, 0.2);
}

.admin-menu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200, 215, 206, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(250, 249, 244, 0.08), transparent 34%);
  opacity: 0.8;
}

.admin-menu-panel > * {
  position: relative;
  z-index: 1;
}

.admin-brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(200, 215, 206, 0.18);
  border-radius: 22px;
  background: rgba(250, 249, 244, 0.06);
  color: #eff2ec;
  text-decoration: none;
}

.admin-brand:hover {
  color: #faf9f4;
  text-decoration: none;
}

.admin-brand__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(200, 215, 206, 0.2), rgba(250, 249, 244, 0.08));
}

.admin-brand__mark img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.admin-brand__copy {
  min-width: 0;
}

.admin-brand__copy strong,
.admin-brand__copy small {
  display: block;
}

.admin-brand__copy strong {
  color: #eff2ec;
  font-family: "Abril Fatface", serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.1;
}

.admin-brand__copy small {
  margin-top: 4px;
  color: rgba(239, 242, 236, 0.64);
  font-size: 0.78rem;
}

.admin-menu-kicker {
  margin: 0 4px -10px;
  color: rgba(200, 215, 206, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-menu {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-menu .admin-tab {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(239, 242, 236, 0.1);
  border-radius: 20px;
  background: rgba(250, 249, 244, 0.045);
  color: rgba(239, 242, 236, 0.76);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.admin-menu .admin-tab:hover,
.admin-menu .admin-tab:focus {
  transform: translateX(2px);
  border-color: rgba(200, 215, 206, 0.24);
  background: rgba(250, 249, 244, 0.08);
  color: #eff2ec;
}

.admin-menu .admin-tab.is-active {
  border-color: rgba(200, 215, 206, 0.34);
  background:
    linear-gradient(135deg, rgba(246, 246, 241, 0.98), rgba(200, 215, 206, 0.86));
  color: var(--admin-ink);
  box-shadow: 0 18px 42px rgba(7, 28, 25, 0.18);
}

.admin-tab__index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(250, 249, 244, 0.08);
  color: rgba(200, 215, 206, 0.86);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-tab.is-active .admin-tab__index {
  background: rgba(19, 50, 44, 0.92);
  color: var(--admin-gold-soft);
}

.admin-tab__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-tab__body strong {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.admin-tab__body small {
  color: currentColor;
  font-size: 0.76rem;
  line-height: 1.25;
  opacity: 0.68;
}

.admin-menu-support {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(200, 215, 206, 0.16);
  border-radius: 22px;
  background: rgba(250, 249, 244, 0.055);
}

.admin-menu-support span {
  color: rgba(200, 215, 206, 0.8);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-menu-support strong {
  color: #eff2ec;
  font-size: 0.94rem;
}

.admin-menu-support p {
  margin: 0;
  color: rgba(239, 242, 236, 0.64);
  font-size: 0.82rem;
  line-height: 1.55;
}

.admin-workspace {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.admin-topbar {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--admin-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(246, 246, 241, 0.96), rgba(232, 237, 230, 0.86));
  box-shadow: var(--admin-shadow);
}

.admin-topbar__title {
  min-width: 0;
}

.admin-topbar h1 {
  margin: 0 0 8px;
  color: var(--admin-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-topbar p {
  max-width: 680px;
  margin-bottom: 0;
}

.admin-topbar__actions {
  justify-content: flex-end;
  max-width: 420px;
}

#loggedInEmail {
  display: inline-flex;
  max-width: 100%;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(53, 87, 75, 0.12);
  border-radius: 999px;
  background: rgba(250, 249, 244, 0.72);
  color: var(--admin-muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-inline-message,
.admin-debug,
.admin-panel {
  min-width: 0;
}

.admin-panel {
  animation: adminPanelIn 0.24s ease both;
}

@keyframes adminPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-card,
.admin-auth-card {
  border-color: var(--admin-line);
  border-radius: 26px;
  background: var(--admin-panel);
  box-shadow: var(--admin-shadow);
}

.admin-card {
  position: relative;
  overflow: hidden;
}

.admin-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(156, 183, 169, 0), rgba(156, 183, 169, 0.72), rgba(156, 183, 169, 0));
  pointer-events: none;
}

.admin-content-layout,
.admin-layout {
  gap: 18px;
}

.admin-content-layout {
  grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.14fr);
}

.admin-content-layout + .admin-card,
.admin-content-layout + .admin-content-layout,
.admin-settings-card + .admin-content-layout {
  margin-top: 18px;
}

.admin-section-head h2,
.admin-gallery-header h3,
.admin-upload__header h3 {
  margin: 0;
  color: var(--admin-ink);
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  line-height: 1.15;
}

.admin-section-head h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.admin-overline {
  color: #516f62;
}

.admin-subtitle {
  margin-top: 8px;
  color: var(--admin-muted);
  line-height: 1.6;
}

.admin-field span,
.admin-image-card__edit span {
  color: rgba(23, 54, 48, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-upload-item input,
.admin-image-card__edit input {
  border-color: rgba(53, 87, 75, 0.16);
  border-radius: 15px;
  background: rgba(250, 249, 244, 0.8);
  color: var(--admin-ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.admin-upload-item input:focus,
.admin-image-card__edit input:focus {
  outline: none;
  border-color: rgba(156, 183, 169, 0.78);
  background: #faf9f4;
  box-shadow: 0 0 0 4px rgba(156, 183, 169, 0.16);
}

.admin-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(23, 54, 48, 0.7) 50%),
    linear-gradient(135deg, rgba(23, 54, 48, 0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 1px),
    calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.admin-button {
  min-height: 46px;
  border: 1px solid rgba(156, 183, 169, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #9cb7a9, #c8d7ce);
  color: #122f29;
  box-shadow: 0 14px 30px rgba(156, 183, 169, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-button:hover,
.admin-button:focus {
  transform: translateY(-1px);
  border-color: rgba(156, 183, 169, 0.38);
  box-shadow: 0 18px 36px rgba(156, 183, 169, 0.28);
}

.admin-button--secondary,
.admin-button--ghost {
  background: rgba(250, 249, 244, 0.78);
  color: var(--admin-ink);
  box-shadow: none;
}

.admin-button--danger {
  border-color: rgba(150, 54, 43, 0.16);
  background: rgba(181, 80, 59, 0.13);
  color: #8d3f30;
}

.admin-button--small {
  min-height: 38px;
  border-radius: 12px;
}

.admin-fieldset,
.admin-subcard,
.admin-list-item,
.admin-current-media,
.admin-managed-media,
.admin-upload-item,
.admin-image-card,
.admin-lead-stat,
.admin-lead-card,
.admin-lead-card__tools,
.admin-lead-meta span,
.admin-lead-quote span,
.admin-lead-message {
  border-color: rgba(53, 87, 75, 0.12);
  background: rgba(246, 246, 241, 0.72);
}

.admin-list-item,
.admin-managed-media,
.admin-image-card,
.admin-lead-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-list-item:hover,
.admin-managed-media:hover,
.admin-image-card:hover,
.admin-lead-card:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 183, 169, 0.22);
  box-shadow: 0 18px 42px rgba(24, 55, 48, 0.09);
}

.admin-content-list,
.admin-collection-list,
.admin-lead-table {
  max-height: none;
}

.admin-list-actions {
  align-items: center;
  justify-content: flex-end;
}

.admin-lead-report-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-lead-stat {
  min-height: 118px;
}

.admin-lead-stat strong {
  font-family: "Abril Fatface", serif;
  font-weight: 400;
}

.admin-lead-filters {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr)) auto;
  border-color: rgba(53, 87, 75, 0.12);
  background: rgba(246, 246, 241, 0.78);
  box-shadow: 0 16px 38px rgba(24, 55, 48, 0.06);
}

.admin-lead-card {
  grid-template-columns: minmax(0, 1fr) minmax(286px, 0.36fr);
}

.admin-lead-badge {
  border: 1px solid rgba(53, 87, 75, 0.08);
}

.admin-inline-message {
  border: 1px solid rgba(53, 87, 75, 0.1);
  box-shadow: 0 16px 40px rgba(24, 55, 48, 0.07);
}

.admin-empty {
  background: rgba(246, 246, 241, 0.62);
}

.admin-menu::-webkit-scrollbar,
.admin-lead-message::-webkit-scrollbar,
.admin-workspace::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-menu::-webkit-scrollbar-thumb,
.admin-lead-message::-webkit-scrollbar-thumb,
.admin-workspace::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(156, 183, 169, 0.5);
}

@media (max-width: 1199.98px) {
  .admin-dashboard {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .admin-content-layout,
  .admin-layout,
  .admin-lead-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 899.98px) {
  .admin-shell {
    padding: 12px;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-menu-panel {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: auto;
    max-height: none;
    padding: 12px;
    border-radius: 22px;
  }

  .admin-brand {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 8px;
  }

  .admin-brand__mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .admin-brand__mark img {
    width: 38px;
    height: 38px;
  }

  .admin-brand__copy strong {
    font-size: 1.05rem;
  }

  .admin-menu-kicker,
  .admin-menu-support {
    display: none;
  }

  .admin-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .admin-menu .admin-tab {
    flex: 0 0 210px;
    min-height: 62px;
    scroll-snap-align: start;
  }

  .admin-menu::-webkit-scrollbar {
    height: 0;
  }

  .admin-topbar {
    border-radius: 22px;
  }

  .admin-topbar__actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 599.98px) {
  .admin-shell {
    padding: 8px;
  }

  .admin-dashboard,
  .admin-workspace {
    gap: 12px;
  }

  .admin-menu-panel,
  .admin-topbar,
  .admin-card,
  .admin-auth-card {
    border-radius: 20px;
  }

  .admin-content-layout > .admin-card,
  .admin-sidebar,
  .admin-main,
  .admin-settings-card {
    padding: 16px;
  }

  .admin-topbar {
    padding: 18px;
  }

  .admin-menu .admin-tab {
    flex-basis: 188px;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 10px;
  }

  .admin-tab__index {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .admin-topbar__actions,
  .admin-form-actions,
  .admin-list-actions {
    width: 100%;
  }

  .admin-topbar__actions .admin-button,
  .admin-form-actions .admin-button,
  .admin-list-actions .admin-button,
  .admin-form-actions .admin-button--secondary,
  .admin-form-actions .admin-button--ghost {
    flex: 1 1 100%;
    width: 100%;
  }

  #loggedInEmail {
    width: 100%;
  }

  .admin-lead-filters,
  .admin-lead-report-grid,
  .admin-lead-meta,
  .admin-lead-quote {
    grid-template-columns: 1fr;
  }
}
