:root {
  --bg: #f6f2ea;
  --paper: #fffaf1;
  --ink: #181614;
  --muted: #716a60;
  --black: #101010;
  --gold: #d7c489;
  --teal: #59b9a7;
  --teal-dark: #348d7d;
  --line: rgba(24,22,20,.13);
  --shadow: 0 18px 50px rgba(0,0,0,.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16,16,16,.96);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -.04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  opacity: .92;
}

.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(89,185,167,.28), transparent 28rem),
    linear-gradient(135deg, #111, #282725);
  color: white;
}

.hero-home {
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 84px 6vw;
  max-width: 1080px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  margin: 0 0 14px;
}

.hero h1,
.page-hero h1,
.item-hero h1 {
  font-size: clamp(3.2rem, 10vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.08em;
  margin: 0;
}

.hero-copy,
.page-hero p,
.item-hero p {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  line-height: 1.35;
  color: rgba(255,255,255,.86);
  max-width: 760px;
}

.hero-search {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 780px;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 10px;
  border-radius: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--teal);
  color: white;
  padding: 15px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(89,185,167,.25);
}

.button:hover,
button:hover {
  background: var(--teal-dark);
}

.button.ghost {
  background: rgba(255,255,255,.11);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.2);
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: white;
  color: var(--ink);
}

textarea { min-height: 160px; }

.section {
  padding: 64px 6vw;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.split-story h2,
.cta-band h2,
.item-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -.06em;
  line-height: .95;
  margin: 0;
}

.section-heading.row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.section-heading.row a {
  font-weight: 900;
  color: var(--teal-dark);
  text-decoration: none;
}

.category-strip {
  background: var(--paper);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 130px;
  padding: 22px;
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card span {
  font-weight: 950;
  font-size: 1.1rem;
}

.category-card small {
  color: var(--muted);
  font-weight: 800;
}

.split-story {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: stretch;
}

.split-story p {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.quote-card {
  background: var(--black);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 38px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

.quote-card p {
  color: var(--gold);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.06em;
}

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

.card {
  background: white;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.inventory-card img,
.photo-placeholder {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.photo-placeholder {
  background: linear-gradient(135deg, #222, #4b4945);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.photo-placeholder.large {
  min-height: 340px;
  border-radius: var(--radius);
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.4rem;
  letter-spacing: -.03em;
}

.card p {
  color: var(--muted);
  line-height: 1.45;
}

.price {
  font-weight: 950;
  color: var(--ink) !important;
  font-size: 1.1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eee8dc;
  color: #504a42;
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.status-available { background: #dff5ee; color: #12634f; }
.status-pending { background: #fff1ca; color: #7a5700; }
.status-sold { background: #eee; color: #666; }

.empty-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px dashed var(--line);
}

.latest-section {
  background: var(--paper);
}

.cta-band {
  margin: 36px 6vw 72px;
  padding: 48px;
  background:
    radial-gradient(circle at 90% 20%, rgba(89,185,167,.38), transparent 22rem),
    var(--black);
  color: white;
  border-radius: 30px;
  text-align: center;
}

.cta-band p {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
}

.page-hero,
.item-hero {
  padding: 76px 6vw;
  background: linear-gradient(135deg, #111, #292724);
  color: white;
}

.page-hero h1,
.item-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.item-hero .button {
  margin-top: 24px;
}

.inventory-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-panel {
  background: white;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  position: sticky;
  top: 110px;
}

.filter-panel form,
.form {
  display: grid;
  gap: 14px;
}

.filter-panel label {
  font-weight: 900;
  margin-top: 6px;
}

.clear-link {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}

.result-topline h2 {
  font-size: 2rem;
  margin: 0;
}

.result-topline p {
  color: var(--muted);
  margin: 0;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.item-meta span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 900;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.item-content {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 44px;
  background: var(--paper);
  align-items: start;
}

.item-content p,
.story {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted);
}

.item-content h2 {
  max-width: 680px;
  margin-bottom: 18px;
}

.item-eyebrow-spacer {
  visibility: hidden;
}

.item-description,
.story {
  max-width: 720px;
}

.story {
  margin-top: 18px;
  white-space: normal;
}

.story br {
  display: block;
  content: "";
  margin-top: .8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 34px rgba(0,0,0,.07);
  border: 1px solid var(--line);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(0,0,0,.07);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.form-notice,
.inquiry-item-note {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(89,185,167,.13);
  border: 1px solid rgba(89,185,167,.28);
  color: var(--teal-dark);
  font-weight: 850;
}

.form-notice.error {
  background: rgba(150,40,30,.09);
  border-color: rgba(150,40,30,.22);
  color: #8f2f24;
}

.inquiry-item-note {
  display: grid;
  gap: 4px;
}

.inquiry-item-note span {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-sidebar {
  grid-template-columns: 1fr;
}

.contact-email-direct p {
  color: var(--muted);
  line-height: 1.45;
}

.contact-email-button {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}

td, th {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

footer {
  background: #101010;
  color: white;
  text-align: center;
  padding: 38px 6vw;
  line-height: 1.55;
}

.danger { background: #b93838; margin-top: 20px; }
.error { color: #b93838; }

@media (max-width: 950px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-story,
  .inventory-layout,
  .item-content,
  .contact-page,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-inner {
    padding: 70px 6vw;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 46px 6vw;
  }

  .section-heading.row,
  .result-topline {
    display: block;
  }

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

  .cta-band {
    margin: 24px 4vw 48px;
    padding: 34px 22px;
  }
}

.hero-home {
  background:
    linear-gradient(90deg, rgba(16,16,16,.92), rgba(16,16,16,.70), rgba(16,16,16,.28)),
    url("/static/images/home-hero.jpg") center center / cover no-repeat;
}

.hero-inner {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 700px) {
  .hero-home {
    background:
      linear-gradient(180deg, rgba(16,16,16,.82), rgba(16,16,16,.68)),
      url("/static/images/home-hero.jpg") center center / cover no-repeat;
  }
}

.home-centered {
  text-align: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.brand-hero {
  color: var(--gold);
  text-shadow: 0 10px 40px rgba(0,0,0,.55);
  font-size: clamp(3.8rem, 13vw, 9rem) !important;
}

.hero-tagline {
  margin: 10px 0 34px;
  color: white;
  font-size: clamp(1.9rem, 6vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.06em;
  text-shadow: 0 8px 30px rgba(0,0,0,.6);
}

.home-centered .hero-search {
  width: min(780px, 100%);
}

.home-centered .hero-actions {
  justify-content: center;
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: #d7d0c2;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid var(--line);
}

.quick-categories a {
  background: var(--paper);
  padding: 18px 14px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}

.quick-categories span {
  font-weight: 950;
  font-size: .95rem;
}

.quick-categories small {
  background: var(--black);
  color: var(--gold);
  border-radius: 999px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.compact-inventory {
  padding-top: 48px;
  padding-bottom: 44px;
}

.homepage-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 22px;
}

.homepage-empty .button {
  margin-top: 12px;
}

.mini-story-band {
  margin: 0;
  padding: 42px 6vw;
  background: var(--black);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.mini-story-band h2 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.ghost-dark {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}

@media (max-width: 950px) {
  .quick-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .mini-story-band {
    display: block;
  }

  .mini-story-band .button {
    margin-top: 22px;
  }
}

@media (max-width: 700px) {
  .brand-hero {
    font-size: clamp(3rem, 15vw, 5.3rem) !important;
  }

  .hero-tagline {
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

  .quick-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-categories a {
    min-height: 58px;
    padding: 14px 12px;
  }

  .compact-inventory .section-heading h2 {
    font-size: 2.4rem;
  }
}

.footer-admin {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: 999px;
}

.footer-admin:hover {
  color: white;
  border-color: rgba(255,255,255,.45);
}

.photo-about {
  min-height: 42vh;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(16,16,16,.25), rgba(16,16,16,.88)),
    url("/static/images/about-volvo.jpg") center center / cover no-repeat;
}

.about-story-page {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
  background: #fffaf1;
}

.about-photo-card {
  position: sticky;
  top: 36px;
}

.about-photo-card img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-story-text {
  max-width: 820px;
}

.about-story-text h2 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .9;
  letter-spacing: -.07em;
  margin: 0 0 28px;
}

.about-story-text p {
  font-size: clamp(1.2rem, 3.5vw, 1.75rem);
  line-height: 1.45;
  color: #5f5a54;
  margin: 0 0 28px;
}

.about-story-text .about-closing {
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .about-story-page {
    grid-template-columns: 1fr;
  }

  .about-photo-card {
    position: static;
  }
}

.about-clean-hero {
  position: relative;
  min-height: 62vh;
  overflow: hidden;
  background: #111;
}

.about-clean-hero img {
  width: 100%;
  height: 62vh;
  object-fit: cover;
  display: block;
  opacity: .62;
}

.about-clean-overlay {
  position: absolute;
  inset: auto 6vw 7vh 6vw;
  color: white;
}

.about-clean-overlay h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 8rem);
  line-height: .88;
  letter-spacing: -.08em;
  text-shadow: 0 14px 45px rgba(0,0,0,.75);
}

.about-card-wrap {
  background:
    radial-gradient(circle at 50% 0%, rgba(89,185,167,.12), transparent 28rem),
    var(--bg);
  padding-top: 42px;
}

.about-story-card {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 22px 70px rgba(0,0,0,.12);
  border-radius: 32px;
  padding: clamp(28px, 6vw, 64px);
}

.about-story-card h2 {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.about-story-card p {
  color: #5c5750;
  font-size: clamp(1.12rem, 3.2vw, 1.45rem);
  line-height: 1.65;
  margin: 0 0 24px;
}

.about-story-card .about-closing {
  color: var(--ink);
  font-weight: 950;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -.04em;
  margin-top: 34px;
}

@media (max-width: 700px) {
  .about-clean-hero,
  .about-clean-hero img {
    min-height: 52vh;
    height: 52vh;
  }

  .about-clean-hero img {
    object-position: center top;
  }

  .about-clean-overlay {
    bottom: 5vh;
  }

  .about-card-wrap {
    padding: 24px 4vw 48px;
  }

  .about-story-card {
    border-radius: 24px;
  }
}

.floating-home {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  background: rgba(16,16,16,.72);
  color: var(--gold);
  text-decoration: none;
  font-weight: 950;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

.floating-home:hover {
  background: rgba(16,16,16,.92);
}

.home-logo {
  width: min(520px, 84vw);
  height: auto;
  display: block;
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 45px rgba(0,0,0,.65));
}

@media (max-width: 700px) {
  .home-logo {
    width: min(390px, 88vw);
    margin-bottom: 16px;
  }
}

.about-story-photo {
  width: min(420px, 80vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 40px;
  border: 8px solid rgba(255,255,255,.9);
  box-shadow:
    0 20px 60px rgba(0,0,0,.18),
    0 0 0 1px rgba(0,0,0,.06);
}

@media (max-width: 700px) {
  .about-story-photo {
    width: min(320px, 85vw);
    margin-bottom: 28px;
  }
}

.about-card-wrap {
  padding-top: 84px;
}

.about-story-photo {
  width: min(340px, 78vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 14px;
  border: 8px solid rgba(255,255,255,.95);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.photo-caption {
  text-align: center;
  color: #7b756d !important;
  font-size: .95rem !important;
  margin: 0 0 34px !important;
  line-height: 1.35 !important;
}

.about-main-title {
  text-align: center;
  margin: 0 0 34px;
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.about-story-card h2 {
  display: none;
}

@media (max-width: 700px) {
  .about-card-wrap {
    padding-top: 64px;
  }

  .about-story-photo {
    width: min(280px, 76vw);
  }

  .about-story-card p {
    font-size: 1.12rem;
    line-height: 1.55;
  }
}

.section-subtitle {
  margin: 10px 0 0;
  color: #706a61;
  font-size: 1.05rem;
  line-height: 1.45;
}

.compact-inventory .section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.story-soft {
  background:
    radial-gradient(circle at 15% 10%, rgba(89,185,167,.18), transparent 22rem),
    #101010;
}

.story-soft h2 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  max-width: 760px;
}

.story-soft p:not(.eyebrow) {
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 650px;
  margin: 16px 0 0;
}

.story-soft .button {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .compact-inventory .section-heading h2 {
    font-size: 2.5rem;
  }

  .story-soft h2 {
    font-size: 2.3rem;
  }
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(16,16,16,.90), rgba(16,16,16,.68), rgba(16,16,16,.38)),
    url("/static/images/inventory-header.jpg") center center / cover no-repeat;
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow {
  text-shadow: 0 10px 32px rgba(0,0,0,.65);
}

.inventory-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 72px 6vw;
}

.inventory-hero-card {
  max-width: 760px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(16,16,16,.72), rgba(16,16,16,.38));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.inventory-hero-card h1 {
  margin: 0;
  color: white;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.08em;
}

.inventory-hero-card p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 620px;
}

.inventory-hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 28px;
}

.inventory-hero-search input {
  border: 0;
}

.inventory-hero-search button {
  min-width: 130px;
}

@media (max-width: 700px) {
  .inventory-hero {
    min-height: 520px;
    padding: 88px 4vw 42px;
  }

  .inventory-hero-card {
    border-radius: 24px;
  }

  .inventory-hero-search {
    grid-template-columns: 1fr;
  }
}

.inventory-title-only {
  min-height: 210px;
  display: flex;
  align-items: center;
  padding: 64px 6vw 24px;
}

.inventory-title-card {
  max-width: min(900px, 88vw);
}

.inventory-title-card h1 {
  margin: 0;
  color: white;
  font-size: clamp(3.05rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -.06em;
  text-shadow: 0 14px 45px rgba(0,0,0,.75);
}

.inventory-hero-contact {
  margin-top: 24px;
}

.inventory-title-card p:not(.eyebrow) {
  margin: 14px 0 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 680px;
  text-shadow: 0 8px 28px rgba(0,0,0,.65);
}

body:has(.inventory-page-clean) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(.inventory-page-clean) main {
  flex: 1 0 auto;
}

body:has(.inventory-page-clean) footer {
  flex-shrink: 0;
  padding-top: 30px;
  padding-bottom: 30px;
}

.inventory-page-clean {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 26px;
  padding-bottom: 42px;
}

.inventory-top-search {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.07);
  margin-bottom: 28px;
}

.inventory-top-search .clear-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.clean-results-line {
  margin-bottom: 18px;
}

.inventory-grid-clean {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.clean-inventory-card {
  display: flex;
  flex-direction: column;
}

.clean-inventory-card img,
.clean-inventory-card .photo-placeholder {
  height: 205px;
}

.clean-inventory-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.clean-inventory-card h3 {
  font-size: 1.25rem;
}

.clean-inventory-card h3 a,
.inventory-card-media {
  color: inherit;
  text-decoration: none;
}

.card-actions {
  margin-top: auto;
  padding-top: 18px;
}

.inventory-contact-button {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .88rem;
  text-align: center;
}

.card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 850px) {
  .inventory-title-only {
    min-height: 170px;
    padding: 62px 6vw 22px;
  }

  .inventory-title-card h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
    line-height: 1;
  }

  .inventory-page-clean {
    padding-top: 22px;
    padding-bottom: 38px;
  }

  .inventory-top-search {
    grid-template-columns: 1fr;
  }
}

.inventory-page-clean {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 26px;
  padding-bottom: 42px;
}

.inventory-top-search {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.07);
  margin-bottom: 28px;
}

.inventory-top-search .clear-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.clean-results-line {
  margin-bottom: 18px;
}

.inventory-grid-clean {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.clean-inventory-card {
  display: flex;
  flex-direction: column;
}

.clean-inventory-card img,
.clean-inventory-card .photo-placeholder {
  height: 205px;
}

.clean-inventory-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.clean-inventory-card h3 {
  font-size: 1.25rem;
}

.card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 850px) {
  .inventory-title-only {
    min-height: 170px;
    padding: 62px 6vw 22px;
  }

  .inventory-title-card h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
    line-height: 1;
  }

  .inventory-page-clean {
    padding-top: 22px;
    padding-bottom: 38px;
  }

  .inventory-top-search {
    grid-template-columns: 1fr;
  }
}


/* Clean homepage hero */
.hero-home {
  min-height: auto;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.42), rgba(0,0,0,.18)),
    url("/static/images/home-hero.jpg") center top / cover no-repeat;
}

.home-centered {
  min-height: auto;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.home-logo {
  width: min(460px, 82vw);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(0,0,0,.7));
}

@media (max-width: 800px) {
  .hero-home {
    min-height: auto;
  }

  .home-centered {
    min-height: auto;
  }
}

/* Clean admin category page */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

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

.admin-category {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}

.admin-category summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 950;
  font-size: 1.1rem;
}

.admin-category summary::-webkit-details-marker {
  display: none;
}

.admin-category summary strong {
  background: #111;
  color: var(--gold);
  border-radius: 999px;
  padding: 5px 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.inquiry-list {
  display: grid;
  gap: 16px;
}

.inquiry-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}

.inquiry-card.status-new {
  border-left: 6px solid var(--teal);
}

.inquiry-card.status-contacted {
  border-left: 6px solid var(--gold);
}

.inquiry-card.status-archived {
  opacity: .72;
}

.inquiry-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.inquiry-card h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -.03em;
}

.inquiry-card time,
.inquiry-item,
.inquiry-contact-lines span {
  color: var(--muted);
  font-weight: 800;
}

.inquiry-item {
  margin: 8px 0 0;
}

.inquiry-contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.inquiry-contact-lines a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.inquiry-message {
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--ink);
}

.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inquiry-actions form {
  margin: 0;
}

/* Featured toggle */
.featured-toggle {
  margin: 18px 0;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.featured-toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-ui {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d8d5ca;
  position: relative;
  flex: 0 0 auto;
  transition: .18s ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
  transition: .18s ease;
}

.featured-toggle input:checked + .toggle-ui {
  background: var(--teal);
}

.featured-toggle input:checked + .toggle-ui::after {
  transform: translateX(24px);
}

.toggle-copy {
  display: grid;
  gap: 3px;
}

.toggle-copy small {
  color: var(--muted);
}

/* Marketplace-style photo upload */
.market-upload-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: start;
}

.market-upload-tile {
  min-height: 150px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: #f4f4f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  transition: .18s ease;
}

.market-upload-tile input {
  display: none;
}

.upload-plus {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #111;
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.market-upload-tile.drag-ready {
  background: #dff7f1;
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(91,190,174,.18), 0 18px 35px rgba(0,0,0,.14);
}

.market-new-preview,
.photo-sort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.photo-sort-card,
.market-preview-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: grab;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.photo-sort-card img,
.market-preview-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.photo-sort-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.photo-rank {
  font-weight: 950;
  color: var(--teal-dark);
}

.small-danger,
.market-remove {
  background: #c73535;
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
}

.page-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  background: rgba(17,17,17,.72);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.page-drop-overlay.show {
  display: grid;
}

.page-drop-overlay div {
  border: 3px dashed rgba(255,255,255,.75);
  border-radius: 30px;
  padding: 54px 70px;
  color: white;
  font-weight: 950;
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background: rgba(91,190,174,.22);
}

/* Matching edit-page bottom buttons */
.admin-edit-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.admin-edit-actions form {
  margin: 0;
  padding: 0;
}

.admin-edit-actions a,
.admin-edit-actions button {
  width: 145px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 13px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.admin-edit-actions .ghost-admin {
  background: #111;
  color: #fff4c4;
}

.admin-edit-actions .danger {
  background: #c73535;
  color: white;
}

@media (max-width: 700px) {
  .market-upload-grid {
    grid-template-columns: 1fr;
  }

  .admin-edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-edit-actions a,
  .admin-edit-actions button {
    width: 100%;
  }
}

/* Slightly shorter admin category boxes */
.admin-category summary {
  padding-top: 16px;
  padding-bottom: 16px;
}

.admin-table th,
.admin-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

/* Make admin content narrower on desktop */
.section:has(.admin-category-list),
.section:has(.admin-toolbar) {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .section:has(.admin-category-list),
  .section:has(.admin-toolbar) {
    max-width: calc(100% - 32px);
  }
}

/* Mobile homepage hero: simulate the desktop photo-follow effect better */
@media (max-width: 800px) {
  .hero-home {
    background-position: center top !important;
    min-height: auto;
  }
}

/* Mobile admin: keep cards wide enough but make table readable */
@media (max-width: 700px) {
  .section:has(.admin-category-list),
  .section:has(.admin-toolbar) {
    max-width: calc(100% - 28px);
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }

  .admin-table td {
    border: 0;
    padding: 4px 0;
  }

  .admin-table td:nth-child(1) {
    font-weight: 950;
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .admin-table td:nth-child(2)::before {
    content: "Status: ";
    font-weight: 900;
  }

  .admin-table td:nth-child(3)::before {
    content: "Price: ";
    font-weight: 900;
  }

  .admin-table td:nth-child(4) {
    margin-top: 10px;
  }

  .admin-table td:nth-child(4) a {
    display: inline-flex;
    background: var(--teal);
    color: white;
    padding: 10px 16px;
    border-radius: 11px;
    font-weight: 950;
    text-decoration: none;
  }
}

/* Social buttons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff4c4;
  text-decoration: none;
  font-weight: 950;
}

.footer-social a:hover {
  background: var(--teal);
  color: white;
}

footer a {
  color: inherit;
}

/* Clean home story/footer section */
.home-story,
.story-footer,
.home-about-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.home-story .button,
.story-footer .button,
.home-about-strip .button {
  align-self: center;
  justify-self: end;
}

@media (max-width: 800px) {
  .home-story,
  .story-footer,
  .home-about-strip {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .home-story .button,
  .story-footer .button,
  .home-about-strip .button {
    justify-self: start;
  }
}

/* Clean story band layout */
.mini-story-band {
  display: grid;
  grid-template-columns: minmax(0, 620px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.mini-story-band .ghost-dark {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .mini-story-band {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mini-story-band .ghost-dark {
    justify-self: start;
  }
}

/* Final home story section cleanup */
.mini-story-band.story-soft {
  display: flex !important;
  justify-content: center !important;
  padding: 70px 24px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(91,190,174,.16), transparent 42%),
    #101010 !important;
}

.mini-story-card {
  width: min(760px, 100%);
  text-align: center;
  padding: 42px 34px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
}

.mini-story-card .eyebrow {
  margin-bottom: 14px;
}

.mini-story-card h2 {
  max-width: 620px;
  margin: 0 auto 18px;
}

.mini-story-card p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto 28px;
}

.mini-story-card .ghost-dark {
  justify-self: center !important;
}

.settings-form {
  max-width: 760px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}

.settings-form label {
  font-weight: 900;
  margin-top: 12px;
}

.admin-photo-library {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.library-photo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.library-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.library-photo-card code {
  display: block;
  padding: 10px;
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.public-photo-page {
  max-width: 1240px;
  margin: 0 auto;
}

.public-photo-grid {
  columns: 4 230px;
  column-gap: 16px;
}

.public-photo-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.09);
  background: white;
}

.public-photo-card img {
  width: 100%;
  display: block;
}

/* Two-card story/gallery section */
.mini-story-band.story-soft {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 560px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 28px !important;
}

.mini-story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mini-story-band.story-soft .mini-story-card .ghost-dark {
  align-self: center;
  margin-top: auto;
}

@media (max-width: 850px) {
  .mini-story-band.story-soft {
    grid-template-columns: 1fr !important;
  }
}

.inline-form-row {
  display: flex;
  gap: 12px;
}

.inline-form-row input {
  flex: 1;
}

.album-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.album-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

.album-card summary {
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 950;
  font-size: 1.1rem;
}

.album-card summary strong {
  background: #111;
  color: var(--gold);
  border-radius: 999px;
  padding: 5px 12px;
}

.album-actions {
  padding: 0 20px 16px;
}

.album-actions form,
.library-photo-card form {
  margin: 0;
}

.album-actions .danger {
  background: #c73535;
  color: white;
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 950;
}

.library-photo-card {
  position: relative;
}

.library-photo-card .small-danger {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.photo-admin-tabs {
  display: flex;
  gap: 12px;
  margin: 12px 0 22px;
}

.photo-admin-tabs a {
  color: #111;
  font-weight: 950;
  text-decoration: none;
  border-bottom: 3px solid var(--teal);
  padding: 8px 4px;
}

.photo-big-drop {
  min-height: 190px;
  margin: 12px 0;
}

.fb-albums {
  display: grid;
  gap: 18px;
}

.fb-album-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.fb-album-card summary {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.fb-album-cover {
  aspect-ratio: 1.4 / 1;
  background: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.fb-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-album-card small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.fb-album-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

@media (max-width: 700px) {
  .fb-album-card summary {
    grid-template-columns: 1fr;
  }
}

/* Album grid layout like photo albums */
.fb-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.fb-albums-grid .fb-album-card {
  min-height: 260px;
}

.fb-albums-grid .fb-album-card summary {
  grid-template-columns: 1fr;
}

.fb-albums-grid .fb-album-cover {
  width: 100%;
  aspect-ratio: 1.25 / 1;
}

.album-drop-target.drag-album-ready,
.loose-drop-target.drag-album-ready {
  outline: 4px dashed var(--teal);
  outline-offset: 6px;
  background: rgba(91,190,174,.12);
}

/* Hide old photo upload box if any survived */
.photo-upload-form {
  display: none !important;
}

.admin-help {
  color: var(--muted);
  font-weight: 700;
  margin: -8px 0 22px;
}

.album-drop-target {
  transition: .16s ease;
}

.album-drop-target.drag-album-ready {
  outline: 5px dashed var(--teal) !important;
  outline-offset: 8px !important;
  background: rgba(91,190,174,.16) !important;
  transform: translateY(-2px);
}

/* Make photo drag overlay faint so albums stay visible */
.page-drop-overlay {
  background: rgba(17,17,17,.18) !important;
  backdrop-filter: blur(1px) !important;
}

.page-drop-overlay div {
  background: rgba(91,190,174,.18) !important;
  border: 2px dashed rgba(255,255,255,.55) !important;
  padding: 30px 44px !important;
  font-size: clamp(1.3rem, 3vw, 2.4rem) !important;
  box-shadow: 0 14px 45px rgba(0,0,0,.18) !important;
}

/* Make photo drag overlay faint so albums stay visible */
.page-drop-overlay {
  background: rgba(17,17,17,.18) !important;
  backdrop-filter: blur(1px) !important;
}

.page-drop-overlay div {
  background: rgba(91,190,174,.18) !important;
  border: 2px dashed rgba(255,255,255,.55) !important;
  padding: 30px 44px !important;
  font-size: clamp(1.3rem, 3vw, 2.4rem) !important;
  box-shadow: 0 14px 45px rgba(0,0,0,.18) !important;
}

/* Even fainter photo drag overlay */
.page-drop-overlay {
  background: rgba(17,17,17,.08) !important;
  backdrop-filter: blur(.5px) !important;
}

.page-drop-overlay div {
  background: rgba(91,190,174,.10) !important;
  border: 2px dashed rgba(255,255,255,.35) !important;
  color: rgba(255,255,255,.82) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.10) !important;
}

/* Photo Library v2 */
.album-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin: 14px 0 34px;
}

.album-tile-wrap {
  display: grid;
  gap: 8px;
}

.album-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  transition: .16s ease;
}

.album-tile:hover {
  transform: translateY(-2px);
}

.album-cover {
  aspect-ratio: 1.25 / 1;
  background: #e5e7eb;
  display: grid;
  place-items: center;
  font-size: 3rem;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-meta {
  padding: 12px 14px 16px;
}

.album-meta strong,
.album-meta small {
  display: block;
}

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

.album-delete {
  width: 100%;
  background: #c73535;
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 950;
}

.album-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: white;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(91,190,174,.23);
  margin-bottom: 22px;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.album-photo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.album-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.album-photo-actions {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.album-photo-actions form {
  margin: 0;
}

.album-photo-actions select,
.album-photo-actions button {
  width: 100%;
}

.upload-progress-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 16px 0 24px;
  box-shadow: 0 12px 34px rgba(0,0,0,.07);
}

.upload-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.upload-row:first-child {
  border-top: 0;
}

.upload-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #e5e7eb center / cover no-repeat;
}

.upload-info strong,
.upload-info small {
  display: block;
}

.upload-info small {
  color: var(--muted);
  margin: 4px 0 8px;
}

.upload-bar {
  height: 9px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}

.upload-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--teal);
  transition: width .12s ease;
}

.album-drop-target.drag-album-ready {
  outline: 5px dashed var(--teal) !important;
  outline-offset: 8px !important;
  background: rgba(91,190,174,.12) !important;
}

/* Desktop homepage hero control sizing */
@media (min-width: 1024px) {
  .home-centered .brand-hero {
    margin-bottom: 18px;
  }

  .home-centered .hero-search {
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .home-centered .hero-actions {
    margin-top: 18px;
  }
}


/* Cleaner album photo management */
.album-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px 0 22px;
}

.selectable-photo-card {
  position: relative;
  cursor: pointer;
}

.selectable-photo-card.is-selected {
  outline: 3px solid rgba(91,190,174,.85);
  outline-offset: 2px;
}

.photo-select-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.photo-select-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-select-pill span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 2px solid rgba(0,0,0,.20);
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
}

.photo-select-pill input:checked + span {
  background: var(--teal);
  border-color: white;
}

.photo-select-pill input:checked + span::after {
  content: "✓";
  display: block;
  color: white;
  font-weight: 950;
  line-height: 22px;
  text-align: center;
}

.photo-x-delete-form {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 5;
  margin: 0;
}

.photo-x-delete {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: rgba(0,0,0,.45);
  font-size: 20px;
  line-height: 22px;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.photo-x-delete:hover {
  background: rgba(210,52,52,.92);
  color: white;
}

.selectable-photo-card .album-photo-actions {
  display: none;
}


/* Photo/admin cleanup pass: softer X buttons, badges, and longer bulk move bar */

/* Make the album page top controls sit more level */
.album-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 22px;
}

.album-top-actions .album-upload-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Album overview card delete X and count badge */
.album-tile-wrap,
.album-dashboard-grid > .album-tile {
  position: relative;
}

.album-tile-wrap .album-delete {
  display: none !important;
}

.album-x-delete-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
  margin: 0;
}

.album-x-delete,
.photo-x-delete,
.inventory-photo-x-delete {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: rgba(0,0,0,.42);
  font-size: 21px;
  line-height: 24px;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}

.album-x-delete:hover,
.photo-x-delete:hover,
.inventory-photo-x-delete:hover {
  background: rgba(210,52,52,.92);
  color: white;
}

.album-count-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 7;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: rgba(0,0,0,.38);
  font-weight: 950;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  pointer-events: none;
}

.selectable-photo-card {
  position: relative;
}

.photo-faint-number {
  display: none;
}

/* Inventory photo order cleanup */
.photo-sort-card,
.inventory-photo-card-clean {
  position: relative;
  overflow: hidden;
}

.photo-sort-footer {
  display: none !important;
}

.photo-sort-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: rgba(0,0,0,.38);
  font-weight: 950;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

.inventory-photo-x-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
}

/* Make the old red buttons disappear if any old markup remains */
.photo-sort-card .small-danger:not(.inventory-photo-x-delete),
.album-photo-actions .small-danger {
  display: none !important;
}

/* Center all admin pages like the main Admin dashboard */
.admin-page,
.photo-admin-page,
.market-form-page {
  width: min(1000px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

/* Keep normal admin forms from stretching too wide */
.admin-page > form,
.admin-page .settings-card,
.admin-page .form,
.market-form-page > form {
  max-width: 760px;
}

/* Center common admin form cards */
.admin-page > form,
.admin-page .settings-card,
.market-form-page > form {
  margin-left: auto;
  margin-right: auto;
}

/* Photo Library can use a little more room, but still centered */
.photo-admin-page {
  max-width: 1100px;
}

/* Album photo pages should also center their grid */
.photo-admin-page .album-photo-grid,
.photo-admin-page .album-dashboard-grid {
  justify-content: flex-start;
}

/* Make the Photo Library create-album card line up nicely */
.photo-admin-page .album-create-card,
.photo-admin-page .create-album-card {
  max-width: 760px;
}

/* Add/Edit Inventory is wider because of long text fields and photo order */
.market-form-page,
section.market-form-page {
  max-width: 1100px;
}

/* If an admin page has a very wide save button, keep it inside the centered form */
.market-form-page button[type="submit"],
.admin-page button[type="submit"] {
  max-width: 100%;
}

@media (max-width: 760px) {
  .admin-page,
  .photo-admin-page,
  .market-form-page {
    width: min(100% - 22px, 100%);
  }

  .admin-page > form,
  .admin-page .settings-card,
  .admin-page .form,
  .market-form-page > form {
    max-width: 100%;
  }
}


/* Prevent existing uploaded photos from behaving like browser-draggable image files */
.album-photo-card img,
.album-photo-card a,
.photo-sort-card img,
.inventory-photo-card-clean img {
  -webkit-user-drag: none;
  user-select: none;
}

.photo-sort-card.dragging,
.inventory-photo-card-clean.dragging {
  opacity: .55;
  transform: scale(.98);
}


/* Photo Library drag-to-reorder */
.library-sort-card {
  cursor: grab;
}

.library-sort-card:active {
  cursor: grabbing;
}

.library-sort-card.dragging {
  opacity: .55;
  transform: scale(.98);
}

.library-sort-card img,
.library-sort-card a {
  -webkit-user-drag: none;
  user-select: none;
}


.ghost-mini {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-mini {
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.64);
}

.danger-mini {
  background: rgba(185,56,56,.10);
  color: #9f302d;
}

.photo-visibility-form {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 7;
  margin: 0;
}

.photo-public-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
  background: rgba(255,255,255,.70);
  color: rgba(0,0,0,.48);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  cursor: pointer;
}

.photo-public-badge.is-public {
  background: rgba(91,190,174,.88);
  color: white;
}

.photo-public-badge:hover,
.photo-public-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.public-album-section {
  margin-bottom: 34px;
}

.public-album-section h2 {
  margin: 0 0 14px;
}


/* =========================================================
   Clean Admin Layout Pass 1
   One admin header, one floating nav style, one mobile system.
   ========================================================= */

.admin-title-area {
  margin: 0 0 22px;
}

.admin-eyebrow {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0,0,0,.48);
}

.admin-title-area h1 {
  margin: 0;
  line-height: 1.03;
}

.admin-title-subtitle {
  margin: 8px 0 0;
  color: rgba(0,0,0,.58);
  font-weight: 800;
}

.admin-floating-pill {
  position: fixed;
  z-index: 999;
  height: 46px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  color: #f3df91;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  transition: opacity .18s ease, transform .18s ease;
}

.admin-floating-pill.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.floating-home {
  top: 18px;
  left: 18px;
}

.admin-floating-back {
  top: 18px;
  right: 18px;
}

.admin-floating-secondary {
  top: 74px;
  left: 18px;
}

.admin-dashboard-page .admin-title-area {
  margin-top: 0;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-toolbar .button,
.admin-toolbar .admin-logout-button {
  text-decoration: none;
}

.admin-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(0,0,0,.07);
  color: rgba(0,0,0,.72);
  font-weight: 950;
}

.admin-page,
.photo-admin-page,
.market-form-page {
  width: min(1000px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.market-form-page {
  max-width: 1100px;
}

.album-mobile-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 14px 0 18px;
}

.compact-upload-button {
  width: 100%;
  height: 56px;
  min-height: 56px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 950;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .admin-page,
  .photo-admin-page,
  .market-form-page {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    padding-top: 82px !important;
    box-sizing: border-box;
  }

  .album-admin-page {
    padding-top: 128px !important;
  }

  .admin-title-area h1 {
    font-size: 34px !important;
  }

  .admin-title-subtitle {
    display: none;
  }

  .admin-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-toolbar .button,
  .admin-toolbar .admin-logout-button {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
  }

  .floating-home {
    top: 18px;
    left: 26px;
  }

  .admin-floating-back {
    top: 18px;
    right: 18px;
  }

  .admin-floating-secondary {
    top: 74px;
    left: 26px;
  }

  .admin-floating-pill {
    height: 46px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .album-mobile-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .compact-upload-button {
    height: 54px;
    min-height: 54px;
    font-size: 14px;
  }

  .album-create-form {
    width: 100%;
    box-sizing: border-box;
  }

  .album-create-form .inline-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* Admin cleanup pass 2: equal floating buttons and closed category polish */
.admin-floating-pill {
  width: 156px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.floating-home {
  top: 18px !important;
  left: 18px !important;
}

.admin-floating-back {
  top: 18px !important;
  right: 18px !important;
}

.admin-floating-secondary {
  top: 74px !important;
  left: 18px !important;
}

@media (max-width: 760px) {
  .admin-floating-pill {
    width: 156px !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 14px !important;
  }

  .floating-home {
    top: 18px !important;
    left: 26px !important;
  }

  .admin-floating-back {
    top: 18px !important;
    right: 26px !important;
  }

  .admin-floating-secondary {
    top: 74px !important;
    left: 26px !important;
  }

  .album-admin-page {
    padding-top: 128px !important;
  }
}

@media (max-width: 390px) {
  .admin-floating-pill {
    width: 142px !important;
    font-size: 13px !important;
  }

  .floating-home,
  .admin-floating-secondary {
    left: 18px !important;
  }

  .admin-floating-back {
    right: 18px !important;
  }
}


/* Photo public/private cleanup: no clunky box */
.photo-only-toolbar {
  display: flex !important;
  justify-content: flex-start !important;
  margin: 12px 0 14px !important;
}

.photo-only-toolbar .compact-upload-button {
  width: auto !important;
  min-width: 190px !important;
  padding: 0 26px !important;
}

/* Final Photo Library selection UI cleanup */
.photo-selection-bar[hidden] {
  display: none !important;
}

.photo-selection-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 18px !important;
  padding: 8px 10px !important;
  width: fit-content !important;
  max-width: 100% !important;
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.06) !important;
}

.photo-selection-bar strong {
  font-weight: 950 !important;
  margin-right: 4px !important;
}

.photo-selection-bar button,
.photo-selection-bar select {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}

.photo-selection-bar button {
  width: auto !important;
  padding: 0 16px !important;
  background: rgba(0,0,0,.06) !important;
  color: rgba(0,0,0,.70) !important;
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,.08) !important;
}

.photo-selection-bar button:hover,
.photo-selection-bar button:focus-visible {
  background: rgba(0,0,0,.10) !important;
  color: rgba(0,0,0,.82) !important;
}

.photo-selection-bar button:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  background: rgba(0,0,0,.06) !important;
  color: rgba(0,0,0,.70) !important;
}

.photo-selection-bar select {
  width: auto !important;
  min-width: 160px !important;
  padding: 0 12px !important;
}

@media (max-width: 760px) {
  .photo-only-toolbar {
    justify-content: stretch !important;
  }

  .photo-only-toolbar .compact-upload-button {
    width: 100% !important;
  }

  .photo-selection-bar {
    gap: 7px !important;
    width: 100% !important;
    border-radius: 22px !important;
  }

  .photo-selection-bar strong {
    width: 100% !important;
    font-size: 16px !important;
  }

  .photo-selection-bar button {
    flex: 1 1 auto !important;
  }

  .photo-selection-bar select {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}
