:root {
  color-scheme: light;
  --background: #f4f1ea;
  --surface: #ffffff;
  --surface-soft: #f8f5ef;
  --surface-deep: #e8eee6;
  --text: #162019;
  --text-soft: #5f6d64;
  --line: rgba(22, 32, 25, 0.12);
  --accent: #1f6a43;
  --accent-strong: #145332;
  --accent-soft: #dfece3;
  --warm: #c9894c;
  --danger: #a7443c;
  --shadow: 0 24px 70px rgba(24, 42, 31, 0.12);
  --shadow-soft: 0 12px 34px rgba(24, 42, 31, 0.08);
  --radius-large: 32px;
  --radius-medium: 22px;
  --radius-small: 14px;
}

.portal-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(31, 106, 67, 0.28);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    #173f2a;
  color: #ffffff;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(23, 63, 42, 0.16);
  transform: rotate(-2deg);
}
.portal-section {
  position: relative;
  margin: 2rem auto;
  width: min(100% - 2rem, 1200px);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--color-border, #dde5de);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(223, 236, 227, 0.26), transparent 42%),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.portal-section::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 8px;
  border-top: 1px solid rgba(31, 106, 67, 0.22);
  border-right: 1px solid rgba(31, 106, 67, 0.22);
  pointer-events: none;
}
.stream-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.public-stream-card { padding: 1rem; border-radius: 1rem; background: #f4f7f3; }
.public-stream-card { min-width: 0; overflow: hidden; }
.public-stream-card.primary { grid-column: 1 / -1; }
.public-stream-card > h3 { margin: 0 0 .35rem; text-transform: capitalize; }
.public-stream-card > p { margin: 0; color: #606b63; }
.public-stream-stage { display: grid; place-items: center; width: 100%; max-width: 960px; margin: 1rem auto; overflow: hidden; border-radius: .85rem; background: #101512; }
.public-stream-stage.platform-embed { position: relative; width: min(100%, 780px); aspect-ratio: 16 / 9; max-height: none; }
.public-stream-stage.platform-instagram { width: min(100%, 540px); aspect-ratio: 4 / 5; background: #fff; border: 1px solid var(--color-border, #dde5de); }
.public-stream-stage.platform-instagram.portrait { width: min(100%, 420px); aspect-ratio: 9 / 16; }
.public-stream-stage iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; border-radius: 0; }
.public-stream-stage video { display: block; width: 100%; max-width: 960px; height: auto; max-height: min(68vh, 720px); object-fit: contain; background: #101512; }
.public-stream-stage.portrait video { width: auto; max-width: 100%; min-height: min(52vh, 560px); }
.public-replay-card { grid-column: 1 / -1; }
.stream-source-history { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; min-width: 0; padding: .85rem; border-radius: .85rem; background: #f4f7f3; }
.stream-source-history h3 { flex: 1 0 100%; margin: 0; }
.stream-source-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin: .8rem 0 0; }
.stream-source-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: .55rem .8rem; border: 1px solid rgba(31, 106, 67, .25); border-radius: 999px; overflow-wrap: anywhere; font-weight: 750; background: #fff; }
.buyer-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.buyer-progress li {
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  padding: 0.65rem 0.4rem;
  border: 1px solid rgba(22, 32, 25, 0.06);
  border-radius: 0.7rem;
  background: #eef2ed;
  color: var(--text-soft);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.buyer-progress li[data-state="complete"] {
  background: #dcecdc;
  color: #315c3e;
}

.buyer-progress li[data-state="current"] {
  border-color: #173f2a;
  background: #173f2a;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(23, 63, 42, 0.16);
}

.buyer-progress li[data-state="terminal"] {
  border-color: rgba(167, 68, 60, 0.12);
  background: #f6e4dc;
  color: #7d3934;
}
.history-session-link { display: block; padding: .85rem 0; border-bottom: 1px solid #e1e7e1; color: inherit; }
.plant-checkout-explanation {
  margin: 0.75rem 0 0;
  padding-left: 11px;
  border-left: 2px solid rgba(31, 106, 67, 0.22);
  color: #606b63;
  font-size: 0.8rem;
  line-height: 1.5;
}
.studio-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 2rem, 1200px); margin: 1rem auto; padding: 1rem 1.25rem; border: 2px solid #9b6b21; border-radius: 1rem; background: #fff7df; }
.studio-preview-banner[hidden] { display: none; }
.studio-preview-banner > div { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.studio-preview-banner a, .history-current-link, .stream-replay-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 750; }
.public-analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; }
.public-analytics-grid > * { margin: 0; }
.public-analytics-grid div { padding: .75rem; }
.public-analytics-grid dt { color: #606b63; font-size: .8rem; }
.public-analytics-grid dd { font-size: 1.15rem; font-weight: 800; }

@media (max-width: 600px) {
  .buyer-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream-card-grid { grid-template-columns: 1fr; }
  .portal-section { width: min(100% - 1rem, 1200px); }
  .studio-preview-banner { align-items: flex-start; flex-direction: column; width: min(100% - 1rem, 1200px); }
  .public-stream-stage.platform-embed { width: 100%; }
  .public-stream-stage.platform-instagram { width: min(100%, 500px); }
  .public-stream-stage.platform-instagram.portrait { width: min(100%, 390px); }
  .public-stream-stage video { max-height: 62vh; }
  .public-stream-stage.portrait video { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(223, 236, 227, 0.95), transparent 34%),
    linear-gradient(180deg, #f9f7f2 0%, var(--background) 44%, #ece8df 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 100%;
  overflow-x: clip;
}

.buyer-claim-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100dvh - 2rem)); padding: 0; border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.buyer-claim-dialog::backdrop { background: rgba(16, 34, 23, 0.6); backdrop-filter: blur(3px); }
.buyer-claim-form { display: flex; max-height: min(44rem, calc(100dvh - 2rem)); flex-direction: column; background: var(--surface); }
.buyer-claim-form header,
.buyer-claim-form footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.buyer-claim-form h2 { margin: 4px 0 0; }
.buyer-claim-body { overflow-y: auto; padding: 0 20px 20px; }
.buyer-claim-body label { display: grid; gap: 6px; margin-top: 16px; font-weight: 700; }
.buyer-claim-body input,
.buyer-claim-body select { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.buyer-claim-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buyer-claim-status { min-height: 48px; margin-top: 16px; line-height: 1.5; }
#buyerPreferenceSection { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
#buyerPreferenceSection h3 { margin: 0 0 8px; }
#buyerPreferenceSection label { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; }
#buyerPreferenceSection input[type="checkbox"] { flex: 0 0 auto; width: 20px; min-height: 20px; margin: 1px 0 0; padding: 0; }
#buyerPreferenceSection p { margin: 8px 0 0 30px; color: var(--text-soft); }
#buyerSavePreferences { margin-top: 16px; }
#buyerPreferenceStatus { display: block; margin-top: 10px; color: var(--text-soft); }
.buyer-claim-close,
.buyer-claim-secondary,
.buyer-claim-primary { min-width: 44px; min-height: 44px; border-radius: 999px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.buyer-claim-close { border: 0; background: transparent; font-size: 24px; }
.buyer-claim-secondary { border: 1px solid var(--line); background: transparent; }
.buyer-claim-primary { border: 0; background: var(--accent); color: white; }
.buyer-claim-primary:disabled { cursor: wait; opacity: 0.6; }

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-nav a,
.filter-button,
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 32, 25, 0.08);
  background: rgba(249, 247, 242, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(24, 42, 31, 0.1);
}

.brand-copy {
  position: relative;
  display: grid;
  gap: 1px;
  padding-right: 8px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand-section {
  width: max-content;
  margin-left: 18px;
  color: var(--accent-strong);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav .admin-nav-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(22, 32, 25, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

.site-nav .admin-nav-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface);
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 56px) 72px;
}

.live-sale-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 620px;
  padding: clamp(34px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 237, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.live-sale-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.live-sale-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.live-sale-status,
.live-sale-session-code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-sale-status {
  background: var(--accent-strong);
  color: #ffffff;
}

.live-sale-session-code {
  border: 1px solid rgba(31, 106, 67, 0.18);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7vw, 6.9rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.live-sale-description {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.live-sale-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 430px;
}

.summary-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(22, 32, 25, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.summary-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1;
}

.summary-label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-sale-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 500px;
}

.collage-main,
.collage-secondary,
.collage-tertiary {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #dce5dc;
  box-shadow: var(--shadow-soft);
}

.collage-main {
  grid-row: 1 / 3;
}

.collage-main img,
.collage-secondary img,
.collage-tertiary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-card {
  overflow: hidden;
  background:
    linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.56) 48%, transparent 66%),
    linear-gradient(135deg, #d7e2d8, #eef2eb);
  background-size: 220% 100%, 100% 100%;
  animation: shimmer 1.7s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 180% 0, 0 0;
  }
  to {
    background-position: -40% 0, 0 0;
  }
}

.shopping-guide {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: 30px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.62);
}

.section-eyebrow {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 6px 0 0 rgba(31, 106, 67, 0.22);
}

.shopping-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopping-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-soft);
  line-height: 1.58;
  box-shadow: var(--shadow-soft);
}

.shopping-steps strong {
  color: var(--text);
  font-weight: 800;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

.live-sale-catalog {
  margin-top: 30px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(22, 32, 25, 0.08);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: end;
}

.catalog-controls {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.search-field {
  width: min(100%, 620px);
}

.search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(22, 32, 25, 0.13);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-field input::placeholder {
  color: #7c887f;
}

.search-field input:focus {
  border-color: rgba(31, 106, 67, 0.48);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 106, 67, 0.1);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-weight: 750;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.filter-button:disabled,
.search-field input:disabled {
  cursor: default;
  opacity: 0.72;
}

.catalog-status {
  margin: 24px 0 18px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

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

.plant-card {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(22, 32, 25, 0.09);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(24, 42, 31, 0.08);
}

.plant-card-placeholder {
  background:
    linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.62) 48%, transparent 66%),
    linear-gradient(180deg, #dfe7df 0 62%, #f5f3ee 62% 100%);
  background-size: 220% 100%, 100% 100%;
  animation: shimmer 1.7s linear infinite;
}

.collage-main,
.collage-secondary,
.collage-tertiary {
  color: #ffffff;
  text-decoration: none;
}

.collage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.collage-main:hover .collage-image,
.collage-secondary:hover .collage-image,
.collage-tertiary:hover .collage-image {
  transform: scale(1.025);
}

.collage-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 58px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 12, 0.78));
}

.collage-live-sale-id {
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collage-plant-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.collage-empty {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  min-height: 320px;
  padding: 30px;
  border: 1px dashed rgba(22, 32, 25, 0.18);
  border-radius: 24px;
  background: var(--surface-soft);
  color: var(--text-soft);
  text-align: center;
}

.plant-card {
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plant-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 106, 67, 0.22);
  box-shadow: 0 20px 48px rgba(24, 42, 31, 0.12);
}

.plant-card.sold {
  background: #f3f1ec;
}

.plant-card-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.plant-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dce5dc, #edf1eb);
}

.plant-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.plant-card:hover .plant-image {
  transform: scale(1.025);
}

.image-unavailable {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(223, 236, 227, 0.94), rgba(248, 245, 239, 0.96));
}

.image-unavailable::after {
  content: "Plant image unavailable";
  padding: 20px;
  color: var(--text-soft);
  font-size: 0.88rem;
  text-align: center;
}

.plant-live-sale-id,
.plant-status {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(8, 20, 12, 0.16);
}

.plant-live-sale-id {
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.plant-status {
  right: 14px;
}

.plant-status-available {
  background: var(--accent-strong);
  color: #ffffff;
}

.plant-status-sold {
  border: 1px solid rgba(137, 91, 18, 0.22);
  background: linear-gradient(135deg, #e7bd58, #c9952f);
  color: #33240d;
  box-shadow: 0 8px 20px rgba(137, 91, 18, 0.2);
}

.plant-status-held,
.plant-status-waitlisted { background: #fff1ce; color: #76521e; }

.plant-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.plant-card-metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plant-stock-id,
.plant-quantity {
  min-width: 0;
}

.plant-quantity {
  text-align: right;
}

.plant-name {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.plant-variant {
  margin-bottom: 24px;
  color: var(--text-soft);
  line-height: 1.5;
}

.plant-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.plant-price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.plant-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    var(--accent-strong);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 83, 50, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.plant-action:hover,
.plant-action:focus-visible {
  background: var(--accent);
  box-shadow: 0 11px 24px rgba(20, 83, 50, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.plant-action:focus-visible {
  box-shadow:
    0 0 0 4px rgba(31, 106, 67, 0.16),
    0 11px 24px rgba(20, 83, 50, 0.24);
}

.plant-action.sold {
  background: #767c77;
}

.catalog-empty,
.catalog-error {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  place-items: center;
  min-height: 260px;
  padding: 36px;
  border: 1px dashed rgba(22, 32, 25, 0.2);
  border-radius: 22px;
  background: var(--surface-soft);
  text-align: center;
}

.catalog-error {
  border-color: rgba(167, 68, 60, 0.22);
  background: rgba(167, 68, 60, 0.06);
}

.catalog-empty-title,
.catalog-error-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.catalog-empty-copy,
.catalog-error-copy {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 38px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .live-sale-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-sale-hero-copy {
    max-width: 820px;
  }

  .live-sale-collage {
    min-height: 440px;
  }

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

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.58);
  }

  main {
    padding-top: 18px;
  }

  .live-sale-hero {
    min-height: auto;
    padding: 28px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5.3rem);
  }

  .shopping-guide,
  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-controls {
    justify-items: stretch;
  }

  .search-field {
    width: 100%;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .buyer-claim-dialog { width: 100vw; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .buyer-claim-form { max-height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
  .buyer-claim-contact { grid-template-columns: 1fr; gap: 0; }
  .buyer-claim-form footer { position: sticky; bottom: 0; background: var(--surface); }
  .site-header {
    padding: 14px 16px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand {
    gap: 11px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-section {
    margin-left: 12px;
    font-size: 0.72rem;
  }

  .portal-badge {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 0.6rem;
  }

  main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .live-sale-hero,
  .shopping-guide,
  .live-sale-catalog {
    border-radius: 24px;
  }

  .live-sale-hero {
    padding: 22px;
  }

  .live-sale-summary {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .live-sale-collage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.56fr);
    min-height: 360px;
    gap: 10px;
  }

  .collage-main,
  .collage-secondary,
  .collage-tertiary {
    border-radius: 18px;
  }

  .shopping-guide,
  .live-sale-catalog {
    padding: 22px;
  }

  .shopping-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    min-height: 78px;
    padding: 14px;
  }

  .step-number {
    width: 38px;
    height: 38px;
  }

  .plant-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .plant-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .plant-action {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.site-nav a,
.filter-button,
.site-footer a { min-height: 44px; }

/* Shared vertical rhythm: sections size to their content instead of inherited margins. */
main {
  display: grid;
  align-content: start;
  gap: clamp(20px, 3vw, 30px);
}

main > :is(
  .studio-preview-banner,
  .live-sale-hero,
  .shopping-guide,
  .live-sale-catalog,
  .portal-section
) {
  margin-block: 0;
}

.live-sale-hero-copy {
  display: grid;
  align-content: center;
  gap: clamp(16px, 2vw, 20px);
}

.live-sale-hero-copy > :is(.live-sale-status-row, h1, .live-sale-description) {
  margin: 0;
}

.shopping-guide > div:first-child {
  display: grid;
  align-content: start;
  gap: 14px;
}

.shopping-guide > div:first-child > * {
  margin-block: 0;
}

.shopping-guide > div:first-child > .section-eyebrow {
  margin-bottom: -8px;
}

.live-sale-catalog {
  display: grid;
  align-content: start;
  gap: 18px;
}

.catalog-toolbar > div:first-child {
  display: grid;
  align-content: end;
  gap: 8px;
}

.catalog-toolbar > div:first-child > *,
.catalog-status {
  margin: 0;
}

.portal-section {
  display: grid;
  align-content: start;
  gap: 18px;
}

.portal-section[hidden] {
  display: none;
}

.portal-section > .section-eyebrow {
  margin-bottom: -12px;
}

.stream-card-grid {
  align-items: start;
}

.public-stream-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.public-stream-card > :is(h3, p),
.public-stream-stage,
.stream-source-actions {
  margin: 0;
}

#buyerReservationList {
  display: grid;
  align-content: start;
  gap: 10px;
}

#buyerReservationList > .plant-checkout-explanation {
  margin: 0;
}

.reserved-plants {
  scroll-margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(44, 108, 69, 0.2);
  background: linear-gradient(145deg, #ffffff, #f5faf6);
}

.reserved-plants-status:empty {
  display: none;
}

.reserved-plants-status {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e8f4eb;
  color: #1f5635;
  font-weight: 700;
}

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

.reserved-plant-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #dbe8dd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 61, 40, 0.06);
}

.reserved-plant-card > img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef3ee;
}

.reserved-plant-details {
  min-width: 0;
}

.reserved-plant-details > * {
  margin: 0;
}

.reserved-plant-details h3 {
  margin-bottom: 6px;
  color: #173f2a;
  font-size: 1.08rem;
  line-height: 1.25;
}

.reserved-plant-details p {
  color: #53665a;
}

.reserved-plant-meta {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.reserved-plant-state {
  margin-top: 8px !important;
  color: #277347 !important;
  font-weight: 750;
}

.reserved-waitlist-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed #a79b65;
  background: #fffdf2;
  color: #5a522d;
}

.reserved-waitlist-card span {
  font-size: 0.92rem;
}

.reserved-plants-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px;
  border-radius: 16px;
  background: #173f2a;
  color: #fff;
}

.reserved-plants-summary > div:first-child {
  display: grid;
  gap: 5px;
}

.reserved-plants-summary strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.reserved-plants-summary span {
  color: #eef8f0;
}

.reserved-plants-summary small {
  max-width: 48rem;
  color: #cde5d3;
  line-height: 1.45;
}

.reserved-plants-actions {
  display: grid;
  min-width: min(100%, 310px);
  gap: 8px;
}

.reserved-checkout-button,
.reserved-cancel-all,
.reserved-cancel-one,
.reserved-cancel-confirm {
  min-height: 46px;
  border-radius: 10px;
  border: 0;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reserved-checkout-button {
  background: #f4c75a;
  color: #17331f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.reserved-cancel-all {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.reserved-cancel-one {
  background: #fff4f2;
  color: #8b2f2f;
  border: 1px solid #e5c4bf;
}

.reserved-cancel-confirm {
  background: #8b2f2f;
  color: #fff;
}

:is(.reserved-checkout-button,.reserved-cancel-all,.reserved-cancel-one,.reserved-cancel-confirm):disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.buyer-cancellation-dialog {
  width: min(92vw, 520px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.buyer-cancellation-dialog::backdrop {
  background: rgba(16, 31, 21, 0.62);
}

.buyer-cancellation-dialog form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.buyer-cancellation-dialog :is(h2,p) {
  margin: 0;
}

.buyer-cancellation-dialog form > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.buyer-cancellation-warning {
  padding: 12px;
  border-radius: 10px;
  background: #fff4f2;
  color: #713027;
}

@media (max-width: 620px) {
  main {
    gap: 18px;
  }

  .live-sale-hero-copy {
    gap: 16px;
  }

  .live-sale-catalog,
  .portal-section {
    gap: 14px;
  }

  .reserved-plants {
    padding: 20px 16px;
  }

  .reserved-plants > .section-eyebrow {
    margin-bottom: 0;
  }

  .reserved-plants > h2 {
    margin-top: 2px;
    font-size: clamp(2rem, 10vw, 2.85rem);
    line-height: 0.98;
  }

  .reserved-plants-list {
    gap: 14px;
  }

  .reserved-plant-card {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .reserved-plant-card > img {
    width: 88px;
    height: 88px;
    border-radius: 11px;
  }

  .reserved-plant-details h3 {
    font-size: 1rem;
  }

  .reserved-plant-meta {
    font-size: 0.88rem;
  }

  .reserved-plant-state {
    font-size: 0.92rem;
  }

  .reserved-cancel-one {
    grid-column: 1 / -1;
    width: 100%;
  }

  .reserved-plants-summary {
    position: sticky;
    z-index: 5;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  }

  .reserved-plants-summary strong {
    font-size: 1.08rem;
  }

  .reserved-plants-summary small {
    font-size: 0.82rem;
  }

  .reserved-plants-actions {
    width: 100%;
    min-width: 0;
  }

  .reserved-checkout-button,
  .reserved-cancel-all {
    width: 100%;
  }
}
