:root {
  --bg: #efe4d6;
  --surface: rgba(255, 250, 243, 0.78);
  --ink: #2f241d;
  --muted: #7b6558;
  --line: rgba(74, 52, 39, 0.12);
  --accent: #ba5a57;
  --accent-deep: #7b2d33;
  --leaf: #567b54;
  --shadow: 0 24px 80px rgba(59, 37, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(186, 90, 87, 0.1), transparent 24%),
    linear-gradient(135deg, #f5ecdf 0%, #ebdecd 48%, #e2d1b9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 65, 45, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 65, 45, 0.024) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.page-shell {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(18px, 2.8vw, 32px) clamp(14px, 2vw, 20px) clamp(28px, 4vw, 48px);
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  position: relative;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(122, 101, 88, 0.12);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 249, 242, 0.94), rgba(251, 238, 219, 0.88)),
    rgba(255, 251, 242, 0.88);
  box-shadow: 0 18px 42px rgba(112, 84, 39, 0.09);
  backdrop-filter: blur(16px);
}

.site-header-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px, 1.4vw, 22px);
}

.site-nav a {
  color: rgba(47, 36, 29, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: #7c5b40;
  transform: translateY(-1px);
}

.site-nav-mobile-only {
  display: none;
}

.site-header-mark {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding: 10px 12px;
  border-radius: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header-mark-image {
  display: block;
  width: min(120px, 14vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(158, 132, 75, 0.14));
}

.site-header-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(122, 101, 88, 0.14);
  border-radius: 16px;
  background: rgba(255, 251, 246, 0.88);
  box-shadow: 0 10px 24px rgba(112, 84, 39, 0.08);
  cursor: pointer;
}

.site-header-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: rgba(47, 36, 29, 0.88);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .site-header-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .site-header-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .site-header-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 210, 168, 0.98), rgba(239, 194, 142, 0.94));
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 24px rgba(176, 125, 74, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.site-header-cta:hover,
.hero-primary-action:hover,
.daily-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(146, 98, 54, 0.18);
  filter: saturate(1.03);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.78fr);
  gap: clamp(16px, 1.5vw, 20px);
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.4);
  backdrop-filter: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.brand-mark-logo {
  width: 58px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(158, 132, 75, 0.18));
  flex: 0 0 auto;
}

.brand-mark-logo--full {
  width: min(260px, 31vw);
  max-width: 100%;
}

.brand-mark:hover,
.brand-mark:focus-visible,
.site-header-mark:hover,
.site-header-mark:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 251, 246, 0.72);
  box-shadow: 0 16px 28px rgba(112, 84, 39, 0.1);
  outline: none;
}

.brand-mark-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 244, 207, 0.9), rgba(243, 215, 126, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.brand-mark-svg {
  width: 100%;
  height: 100%;
  display: block;
  padding: 6px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-mark-copy {
  display: grid;
  gap: 2px;
}

.brand-mark-copy--signature {
  display: inline-flex;
  align-items: center;
}

.brand-mark-title {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
}

.brand-mark-wordmark {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 700;
  color: #6d4d34;
  letter-spacing: 0;
}

.brand-mark-sunflower {
  width: 20px;
  height: 20px;
  display: inline-flex;
  margin-bottom: 6px;
  transform: rotate(12deg);
}

.brand-mark-sunflower svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(187, 149, 53, 0.16));
}

.brand-mark-copy strong {
  font-size: 0.94rem;
}

.brand-mark-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy,
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border-radius: 32px;
}

.panel {
  padding: 22px;
  min-width: 0;
}

.hero-copy h1,
.section-heading h2,
.style-picker h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5.2vw, 4.65rem);
  max-width: 6.3ch;
}

.hero-text {
  max-width: 24ch;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(84, 63, 37, 0.84);
}

.hero-copy {
  display: block;
  min-height: clamp(400px, 42vw, 520px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.78), transparent 32%),
    radial-gradient(circle at 82% 74%, rgba(255, 232, 205, 0.78), transparent 34%),
    linear-gradient(145deg, rgba(255, 251, 245, 0.96), rgba(247, 236, 220, 0.86));
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 70px;
  bottom: 30px;
  width: clamp(220px, 28vw, 360px);
  height: clamp(220px, 28vw, 360px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 224, 196, 0.60) 0%,
    rgba(244, 224, 196, 0.26) 42%,
    rgba(244, 224, 196, 0) 76%
  );
  z-index: 1;
}

.hero-copy-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  max-width: min(54%, 420px);
  min-height: 100%;
}

.hero-copy-intro {
  display: grid;
  gap: 16px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(184, 140, 94, 0.12);
  background: linear-gradient(135deg, rgba(247, 226, 199, 0.86), rgba(251, 239, 220, 0.86));
  color: rgba(125, 93, 68, 0.9);
}

.hero-copy-actions {
  display: flex;
  align-items: flex-end;
}

.hero-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 210, 168, 0.98), rgba(239, 194, 142, 0.94));
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 16px 28px rgba(176, 125, 74, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hero-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  display: block;
}

.hero-art-orb {
  display: none;
}

.hero-bloom-illustration {
  position: absolute;
  right: -16px;
  bottom: -24px;
  width: clamp(360px, 40vw, 540px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  z-index: 2;
  filter:
    saturate(0.78)
    contrast(0.92)
    brightness(1.06)
    sepia(0.10)
    drop-shadow(0 22px 30px rgba(122, 94, 58, 0.12));
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  background:
    radial-gradient(circle at top right, rgba(245, 211, 165, 0.36), transparent 36%),
    radial-gradient(circle at bottom left, rgba(240, 221, 192, 0.44), transparent 38%),
    linear-gradient(150deg, rgba(255, 250, 243, 0.95), rgba(247, 232, 209, 0.92));
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 245, 222, 0.54), transparent 28%),
    radial-gradient(circle at 22% 80%, rgba(255, 255, 255, 0.32), transparent 34%);
  z-index: -1;
}

.hero-card-date {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: rgba(123, 101, 88, 0.86);
}

.hero-badges {
  display: grid;
  gap: 14px;
  flex: 1;
}

.hero-badges--single {
  flex: 1;
  min-height: 0;
}

.hero-badge {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.84);
  border: 1px solid rgba(122, 101, 88, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.hero-badge--today {
  display: flex;
  flex-direction: column;
  flex: 1;
  background:
    linear-gradient(155deg, rgba(255, 253, 249, 0.9), rgba(252, 243, 231, 0.88)),
    rgba(255, 252, 248, 0.84);
}

.daily-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-title-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f7d45e 0 30%, transparent 31%),
    radial-gradient(circle at 50% 12%, #f7e7a3 0 23%, transparent 24%),
    radial-gradient(circle at 84% 30%, #f7e7a3 0 23%, transparent 24%),
    radial-gradient(circle at 84% 70%, #f7e7a3 0 23%, transparent 24%),
    radial-gradient(circle at 50% 88%, #f7e7a3 0 23%, transparent 24%),
    radial-gradient(circle at 16% 70%, #f7e7a3 0 23%, transparent 24%),
    radial-gradient(circle at 16% 30%, #f7e7a3 0 23%, transparent 24%);
  box-shadow: 0 8px 16px rgba(213, 168, 71, 0.18);
}

.daily-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.95rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #2f241d;
  font-weight: 600;
}

.daily-mood {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(84, 63, 37, 0.84);
}

.daily-quote {
  display: block;
  position: relative;
  margin: auto 0; /* <-- Change this to auto 0 */
  align-self: center;
  width: min(100%, 310px);
  padding: 18px 22px 16px;
  border-radius: 22px;
  border: 1px solid rgba(223, 202, 176, 0.65);
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.94), rgba(251, 241, 228, 0.9)),
    rgba(255, 250, 244, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 24px rgba(204, 168, 127, 0.08);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1.02;
  font-style: italic;
  letter-spacing: -0.03em;
  color: rgba(126, 95, 63, 0.94);
  text-align: center;
}

.daily-quote::before,
.daily-quote::after {
  position: absolute;
  font-family: "Cormorant Garamond", serif;
  font-style: normal;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: rgba(214, 178, 134, 0.44);
}

.daily-quote::before {
  content: "\201C";
  left: 12px;
  top: 8px;
}

.daily-quote::after {
  content: "\201D";
  right: 12px;
  bottom: -0.12em;
}

.daily-emoji-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px; /* <-- Revert this back to 28px */
  padding-top: 24px;
  border-top: 1px solid rgba(122, 101, 88, 0.1);
}

.daily-emoji-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* <-- Add this line */
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192, 160, 126, 0.22);
  background: rgba(255, 249, 242, 0.86);
  color: rgba(71, 50, 34, 0.92);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.daily-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 210, 168, 0.98), rgba(239, 194, 142, 0.94));
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 26px rgba(176, 125, 74, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.18fr) minmax(300px, 0.98fr) minmax(300px, 1fr);
  grid-template-areas: "builder preview form";
  gap: 24px;
  align-items: start;
}

.dedication-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(244, 214, 169, 0.34), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(255, 250, 244, 0.95), rgba(245, 231, 213, 0.9));
}

.dedication-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.dedication-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(244, 224, 196, 0.56), rgba(244, 224, 196, 0));
  filter: blur(8px);
}

.dedication-photo-shell {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 34px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(251, 238, 221, 0.9)),
    rgba(255, 249, 242, 0.9);
  border: 1px solid rgba(122, 101, 88, 0.1);
  box-shadow: 0 20px 36px rgba(112, 84, 39, 0.12);
}

.dedication-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 26px;
}

.dedication-copy {
  display: grid;
  gap: 14px;
  max-width: 56ch;
}

.dedication-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.dedication-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(84, 63, 37, 0.84);
}

.dedication-note strong,
.flowerhour-note strong,
.flowerhour-shot figcaption strong {
  color: rgba(47, 36, 29, 0.96);
  font-weight: 700;
}

.tribute-name {
  display: inline-block;
  font-family: "Dancing Script", cursive;
  font-size: 1.08em;
  line-height: 0.95;
  color: #9a6b7d;
  letter-spacing: 0;
}

.dedication-signoff {
  margin: 6px 0 0;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  color: #8e6671;
}

.flowerhour-page-main {
  display: grid;
  gap: 24px;
}

.flowerhour-tribute {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(240px, 0.78fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: center;
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(247, 214, 171, 0.34), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(255, 250, 244, 0.95), rgba(246, 232, 214, 0.9));
}

.flowerhour-tribute-copy {
  display: grid;
  gap: 14px;
  max-width: 60ch;
}

.flowerhour-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 4.8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.flowerhour-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(84, 63, 37, 0.84);
}

.flowerhour-signoff {
  margin: 4px 0 2px;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: #81606f;
}

.flowerhour-hero-mark {
  position: relative;
  display: flex;
  justify-content: center;
}

.flowerhour-hero-mark::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(242, 217, 188, 0.7), rgba(242, 217, 188, 0));
  filter: blur(10px);
}

.flowerhour-hero-mark-shell {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(251, 238, 221, 0.9)),
    rgba(255, 249, 242, 0.9);
  border: 1px solid rgba(122, 101, 88, 0.1);
  box-shadow: 0 20px 36px rgba(112, 84, 39, 0.12);
}

.flowerhour-hero-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.flowerhour-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.flowerhour-social {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(122, 101, 88, 0.12);
  background: rgba(255, 251, 246, 0.84);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(112, 84, 39, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.flowerhour-social:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 101, 88, 0.2);
  box-shadow: 0 16px 26px rgba(112, 84, 39, 0.12);
}

.flowerhour-social img {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.flowerhour-social span {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flowerhour-social small {
  color: var(--muted);
  font-size: 0.78rem;
}

.flowerhour-gallery-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.8vw, 32px);
}

.flowerhour-gallery-heading {
  display: grid;
  gap: 10px;
  max-width: 56ch;
}

.flowerhour-gallery-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.flowerhour-gallery-note {
  margin: 0;
  color: rgba(84, 63, 37, 0.84);
  line-height: 1.7;
}

.flowerhour-gallery {
  columns: 2 280px;
  column-gap: 16px;
}

.flowerhour-shot {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 240px;
  background: rgba(255, 250, 244, 0.76);
  box-shadow: 0 18px 32px rgba(112, 84, 39, 0.12);
}

.flowerhour-shot--memory {
  min-height: 320px;
}

.flowerhour-shot--tall {
  min-height: 100%;
}

.flowerhour-shot--wide {
  min-height: 280px;
}

.flowerhour-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flowerhour-shot figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 249, 242, 0.88);
  border: 1px solid rgba(122, 101, 88, 0.12);
  box-shadow: 0 12px 22px rgba(112, 84, 39, 0.12);
  color: rgba(71, 50, 34, 0.94);
  font-size: 0.88rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--muted);
}

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

.section-heading h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
}

.flower-grid,
.style-grid,
.bouquet-form {
  display: grid;
  gap: 10px;
}

.flower-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.flower-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  justify-items: center;
  align-content: start;
  text-align: center;
  min-height: 124px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.88);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.flower-card:hover,
.style-card:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 45, 51, 0.22);
  box-shadow: 0 14px 28px rgba(59, 37, 24, 0.08);
}

.flower-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.35rem;
  background: var(--flower-tint, rgba(186, 90, 87, 0.14));
}

.flower-copy strong,
.flower-copy p {
  display: block;
}

.flower-copy {
  width: 100%;
}

.flower-copy strong {
  font-size: 0.84rem;
  margin-bottom: 2px;
}

.flower-copy p {
  display: none;
}

.flower-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: auto;
}

.flower-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 0.92rem;
  cursor: pointer;
}

.flower-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.flower-controls output {
  width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.style-picker {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.88);
}

.style-picker h3 {
  margin: 4px 0 12px;
  font-size: 1.34rem;
}

.style-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px solid rgba(74, 52, 39, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.style-card.is-active {
  border-color: rgba(122, 45, 51, 0.42);
  box-shadow: 0 0 0 3px rgba(186, 90, 87, 0.14);
}

.style-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(74, 52, 39, 0.14);
  background:
    linear-gradient(160deg, var(--swatch-1), var(--swatch-2) 72%),
    linear-gradient(30deg, transparent 0, transparent 60%, var(--swatch-3) 60%, var(--swatch-3) 100%);
  grid-row: span 2;
}

.style-card strong {
  font-size: 0.86rem;
}

.style-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.selection-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 236, 0.92), rgba(238, 226, 212, 0.9));
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.selection-summary span:first-child {
  font-weight: 700;
}

.selection-summary span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-heading .section-heading {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.preview-panel {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  container-type: inline-size;
}

.preview-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  align-items: flex-start;
}

.shuffle-button {
  border: 1px solid rgba(123, 45, 51, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 251, 246, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.shuffle-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(123, 45, 51, 0.28);
  box-shadow: 0 10px 20px rgba(59, 37, 24, 0.08);
}

.shuffle-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bouquet-stage {
  position: relative;
  min-height: clamp(430px, 46vw, 540px);
  --bouquet-scale: 0.76;
  --tag-scale: 0.84;
  --wrap-center-x: 50%;
  --wrap-bottom: 54px;
  --wrap-width: 238px;
  --wrap-height: 328px;
  --preview-width: 214px;
  --preview-height: 340px;
  --preview-bottom: 92px;
  --tag-right: -24px;
  --tag-bottom: 94px;
  --wrap-back: #d7bb8f;
  --wrap-left: #c9a56e;
  --wrap-right: #be955f;
  --band-start: #e8c8c8;
  --band-end: #d59da2;
  --tag-bg: #fff8ef;
  --tag-border: #e2cdb3;
  --string: #d2bea2;
  --stage-glow: rgba(193, 149, 98, 0.14);
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 76%, var(--stage-glow), transparent 42%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(180deg, #fbf4ea 0%, #f3e6d5 60%, #ead7c1 100%);
}

.bouquet-stage[data-density="medium"] {
  --wrap-center-x: 47%;
}

.bouquet-stage[data-density="full"] {
  --bouquet-scale: 0.73;
  --tag-scale: 0.8;
  --wrap-center-x: 45%;
  --tag-right: -20px;
  --tag-bottom: 112px;
}

.builder-panel,
.form-panel {
  align-self: start;
  min-width: 0;
}

.builder-panel {
  grid-area: builder;
}

.preview-panel {
  grid-area: preview;
}

.form-panel {
  grid-area: form;
}

.bouquet-wrap {
  position: absolute;
  left: var(--wrap-center-x);
  bottom: var(--wrap-bottom);
  width: var(--wrap-width);
  height: var(--wrap-height);
  transform: translateX(-50%) scale(var(--bouquet-scale));
  transform-origin: center bottom;
  pointer-events: none;
}

.bouquet-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 108px;
  width: 176px;
  height: 156px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 0, rgba(82, 59, 38, 0.14), rgba(82, 59, 38, 0.03) 62%, transparent 76%);
  z-index: 5;
}

.bouquet-paper {
  position: absolute;
  filter: drop-shadow(0 18px 26px rgba(79, 53, 36, 0.12));
}

.bouquet-paper-back {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 174px;
  height: 196px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wrap-back) 88%, #fff 12%), var(--wrap-right));
  border-radius: 36px;
  transform: translateX(-50%) rotate(45deg);
  z-index: 1;
}

.bouquet-opening {
  position: absolute;
  left: 50%;
  top: 110px;
  width: 150px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(50, 30, 20, 0.14) 0%, transparent 65%);
  transform: translateX(-50%);
  box-shadow: none;
  z-index: 5;
}

.bouquet-preview {
  position: absolute;
  left: 50%;
  bottom: var(--preview-bottom);
  width: var(--preview-width);
  height: var(--preview-height);
  transform: translateX(-50%);
  z-index: 6;
}

.empty-preview {
  position: absolute;
  left: 50%;
  bottom: calc(var(--wrap-bottom) + 304px);
  width: min(240px, calc(100% - 56px));
  transform: translateX(-50%);
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  z-index: 2;
}

.bouquet-stage:not(.is-empty) .empty-preview {
  display: none;
}

.bouquet-stage.is-empty .bouquet-tag,
.bouquet-stage.is-empty .bouquet-string,
.bouquet-stage.is-empty .bouquet-band,
.bouquet-stage.is-empty .bouquet-string-anchor {
  display: none;
}

.bouquet-flower {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 74px;
  height: 280px;
  margin-left: -37px;
  transform: translate(var(--offset-x, 0px), var(--offset-y, 0px)) scale(var(--scale, 1));
  transform-origin: bottom center;
}

.flower-sprite {
  position: absolute;
  inset: 0;
  transform-origin: bottom center;
  transform: rotate(var(--stem-angle, 0deg));
}

.flower-stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: var(--stem-height, 160px);
  border-radius: 999px;
  background: linear-gradient(180deg, #9dc08f, #4e7f52);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(92, 125, 87, 0.08);
}

.flower-leaf {
  position: absolute;
  width: 24px;
  height: 12px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #8eb287, #4f7f53);
}

.flower-leaf-left {
  bottom: calc(var(--stem-height, 160px) * 0.34);
  left: calc(50% - 24px);
  transform: rotate(-32deg);
}

.flower-leaf-right {
  bottom: calc(var(--stem-height, 160px) * 0.5);
  left: calc(50% - 1px);
  transform: scaleX(-1) rotate(-28deg);
}

.flower-head {
  position: absolute;
  bottom: calc(var(--stem-height, 160px) - 34px);
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translateX(-50%) rotate(var(--bloom-tilt, 0deg));
  display: grid;
  place-items: center;
  overflow: visible;
}

.flower-head::before,
.flower-head::after {
  display: none;
}

.flower-head--tulip {
  width: 58px;
  height: 76px;
  bottom: calc(var(--stem-height, 160px) - 40px);
}

.flower-head--lily {
  width: 78px;
  height: 78px;
  bottom: calc(var(--stem-height, 160px) - 38px);
}

.flower-head--lavender {
  width: 54px;
  height: 86px;
  bottom: calc(var(--stem-height, 160px) - 54px);
}

.flower-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 14px rgba(79, 53, 36, 0.16));
}

.flower-art--lavender {
  filter: drop-shadow(0 8px 12px rgba(79, 53, 36, 0.12));
}

.flower-glyph {
  display: none;
}

.bouquet-paper-front {
  position: absolute;
  bottom: 64px;
  width: 136px;
  height: 180px;
  z-index: 14;
  box-shadow: 0 8px 24px rgba(59, 37, 24, 0.08);
  clip-path: none;
}

.bouquet-paper-front-left {
  left: 14px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--wrap-left) 85%, #fff 15%), var(--wrap-left));
  border-radius: 60px 0 100px 30px; 
  transform: rotate(-14deg);
  transform-origin: bottom right;
}

.bouquet-paper-front-right {
  right: 14px;
  background: linear-gradient(205deg, color-mix(in srgb, var(--wrap-right) 85%, #fff 15%), color-mix(in srgb, var(--wrap-right) 80%, #000 15%));
  border-radius: 0 60px 30px 100px;
  transform: rotate(14deg);
  transform-origin: bottom left;
  z-index: 15;
}

.bouquet-paper-neck {
  left: 50%;
  bottom: 6px;
  width: 66px;
  height: 90px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wrap-back) 75%, #000 15%), var(--wrap-right));
  border-radius: 0 0 16px 16px;
  clip-path: none;
  transform: translateX(-50%) perspective(180px) rotateX(20deg);
  z-index: 13;
}

.bouquet-band {
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: 60px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--band-start) 92%, #fff 8%),
    color-mix(in srgb, var(--band-end) 95%, #000 5%)
  );
  border: 1px solid color-mix(in srgb, var(--band-end) 54%, #fff 46%);
  box-shadow: 0 6px 12px color-mix(in srgb, var(--band-end) 18%, transparent);
  transform: translateX(-50%);
  opacity: 1;
  z-index: 20;
}

.bouquet-string-anchor {
  position: absolute;
  left: calc(50% + 34px);
  bottom: 108px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-bg) 82%, #fff 18%);
  border: 1px solid color-mix(in srgb, var(--tag-border) 80%, #b99876 20%);
  box-shadow: 0 2px 6px rgba(79, 53, 36, 0.16);
  z-index: 35;
}

.bouquet-string {
  position: absolute;
  inset: 0;
  z-index: 36;
  pointer-events: none;
}

.bouquet-string path {
  fill: none;
  stroke: var(--string);
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: url(#viewer-string-shadow);
}

.bouquet-tag {
  position: absolute;
  right: var(--tag-right);
  bottom: var(--tag-bottom);
  width: min(118px, calc(100% - 152px));
  padding: 10px 11px 12px;
  border-radius: 16px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transform: rotate(-5deg) scale(var(--tag-scale));
  transform-origin: 16px 14px;
  z-index: 30;
}

.tag-hole {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--tag-border) 76%, #b89d7c 24%);
  background: color-mix(in srgb, var(--tag-bg) 86%, #fff 14%);
}

.bouquet-tag-meta {
  display: grid;
  gap: 2px;
  margin: 0 0 9px 16px;
}

.bouquet-tag-meta span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8a6c5d;
}

.bouquet-tag-meta strong {
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bouquet-tag-message {
  margin: 10px 0 0 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(74, 52, 39, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bouquet-form label {
  display: grid;
  gap: 8px;
}

.bouquet-form > label:last-of-type,
.form-footer,
.status-banner {
  grid-column: 1 / -1;
}

.bouquet-form span {
  font-weight: 700;
}

.bouquet-form input,
.bouquet-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(74, 52, 39, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bouquet-form input:focus,
.bouquet-form textarea:focus {
  outline: none;
  border-color: rgba(123, 45, 51, 0.42);
  box-shadow: 0 0 0 4px rgba(186, 90, 87, 0.14);
  transform: translateY(-1px);
}

.bouquet-form textarea {
  resize: vertical;
  min-height: 118px;
}

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

.form-footer p {
  margin: 0;
  color: var(--muted);
}

#submit-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 26px rgba(123, 45, 51, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

#submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(123, 45, 51, 0.28);
}

#submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status-banner {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.status-banner[data-tone="success"] {
  color: #295e35;
}

.status-banner[data-tone="error"] {
  color: #8a2130;
}

.floating-preview {
  display: none;
}

.viewer-shell {
  max-width: 1100px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.viewer-preview-panel .bouquet-stage {
  min-height: clamp(340px, 36vw, 460px);
  --wrap-center-x: 50%;
  --wrap-bottom: 84px;
  --preview-bottom: 122px;
  --tag-scale: 0.76;
  --tag-right: 0px;
  --tag-bottom: 112px;
}

.viewer-preview-panel .bouquet-stage[data-density="medium"],
.viewer-preview-panel .bouquet-stage[data-density="full"] {
  --wrap-center-x: 50%;
}

.viewer-message-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.viewer-envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 240, 220, 0.9), rgba(250, 226, 200, 0.66) 26%, rgba(238, 206, 210, 0.48) 46%, rgba(225, 204, 187, 0.3) 66%, rgba(201, 182, 168, 0.14) 82%, rgba(255, 255, 255, 0) 92%),
    linear-gradient(180deg, rgba(243, 229, 218, 0.98), rgba(231, 214, 203, 0.96));
  transition: opacity 240ms ease, visibility 240ms ease, background 240ms ease;
}

.viewer-envelope-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.viewer-envelope-gate.is-opening {
  background:
    radial-gradient(circle at center, rgba(255, 248, 237, 0.7), rgba(255, 244, 235, 0.18) 42%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.32), rgba(255, 248, 244, 0.18));
}

.viewer-envelope-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.64), transparent 14%),
    radial-gradient(circle at 38% 30%, rgba(255, 215, 222, 0.24), transparent 22%),
    radial-gradient(circle at 64% 32%, rgba(255, 230, 188, 0.2), transparent 24%);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.viewer-envelope-gate.is-opening::before {
  opacity: 0.2;
}

.viewer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.viewer-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 52, 39, 0.1);
  background: rgba(255, 252, 247, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
  text-align: center;
  line-height: 1.25;
}

.viewer-share-button:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 45, 51, 0.18);
  background: rgba(255, 248, 241, 0.98);
  box-shadow: 0 10px 18px rgba(79, 53, 36, 0.08);
}

.viewer-share-button--primary {
  background: linear-gradient(135deg, rgba(201, 112, 120, 0.14), rgba(244, 221, 192, 0.7));
  border-color: rgba(186, 111, 116, 0.18);
}

.viewer-share-button--story {
  display: none;
}

.viewer-share-button--story-exit {
  display: none;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.76rem;
}

.viewer-story-toolbar {
  display: none;
}

.viewer-creator-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(74, 52, 39, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(249, 238, 225, 0.94));
  box-shadow: 0 18px 34px rgba(79, 53, 36, 0.06);
}

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

.viewer-share-actions .viewer-share-button {
  flex: 1 1 calc(50% - 8px);
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.viewer-share-button--make {
  background: linear-gradient(135deg, rgba(245, 210, 168, 0.98), rgba(239, 194, 142, 0.94));
  border-color: rgba(201, 150, 97, 0.24);
  font-weight: 700;
}

.viewer-logo-cloud {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 4px 12px 0;
}

.viewer-credit-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 12px 10px;
  color: #8d7364;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.viewer-footer-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.34;
}

.viewer-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}

.viewer-footer-logo:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.viewer-footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer-credit-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.68);
  backdrop-filter: blur(8px);
}

.viewer-credit-footer a {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}

.viewer-credit-footer a:hover {
  color: var(--accent);
}

.viewer-style-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.92);
  border: 1px solid rgba(74, 52, 39, 0.1);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d5f4b;
}

.viewer-delivered-at {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.viewer-copy-block,
.viewer-note {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(74, 52, 39, 0.12);
  background: rgba(255, 252, 247, 0.82);
  min-width: 0;
}

.viewer-label {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.viewer-copy-block p,
.viewer-note p {
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.viewer-note p {
  white-space: pre-wrap;
}

#viewer-title,
#viewer-subject {
  max-width: 11ch;
  line-height: 0.98;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

#viewer-summary {
  max-width: 36ch;
}

.viewer-preview-panel .bouquet-tag {
  width: min(104px, calc(100% - 170px));
}

.viewer-preview-panel .bouquet-tag-meta strong,
.viewer-preview-panel .bouquet-tag-message {
  font-size: 0.76rem;
  line-height: 1.4;
}

.viewer-preview-footer {
  display: none;
  margin-top: 16px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(74, 52, 39, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(249, 239, 228, 0.94));
  box-shadow: 0 18px 30px rgba(79, 53, 36, 0.06);
}

.viewer-preview-footer-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.viewer-preview-footer h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.02;
}

.viewer-preview-footer p {
  margin: 10px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.viewer-preview-signoff {
  color: var(--muted);
}

.viewer-envelope {
  position: relative;
  width: min(240px, calc(100% - 56px));
  height: 158px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 1;
  opacity: 1;
  transition: opacity 320ms ease, transform 320ms ease, filter 320ms ease;
}

.viewer-envelope--gate {
  width: min(320px, calc(100vw - 48px));
  height: 206px;
  transform-origin: 50% 54%;
  filter:
    drop-shadow(0 34px 48px rgba(145, 112, 92, 0.18))
    drop-shadow(0 0 42px rgba(255, 230, 196, 0.72));
  animation: viewer-envelope-invite 1.9s ease-in-out infinite;
}

.viewer-envelope-back,
.viewer-envelope-flap,
.viewer-envelope-letter {
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.viewer-envelope-back {
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 1), rgba(244, 224, 198, 1)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0));
  border: 1px solid rgba(127, 97, 71, 0.16);
  box-shadow:
    0 22px 34px rgba(160, 123, 100, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.viewer-envelope-flap {
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  background: linear-gradient(180deg, #fff0df, #f0d7b4);
  transform-origin: top center;
  transition: transform 520ms ease;
}

.viewer-envelope-letter {
  inset: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(254, 249, 241, 0.98));
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(127, 97, 71, 0.08),
    0 10px 20px rgba(255, 236, 220, 0.4);
}

.viewer-envelope-letter::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 22px;
  height: 2px;
  background: rgba(170, 145, 121, 0.28);
  box-shadow: 0 18px 0 rgba(170, 145, 121, 0.2), 0 36px 0 rgba(170, 145, 121, 0.16);
}

.viewer-envelope-seal {
  position: absolute;
  left: 50%;
  top: 46px;
  transform: translateX(-50%);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c77f86, #a44d57);
  color: transparent;
  font-size: 0;
  box-shadow:
    0 10px 18px rgba(121, 53, 62, 0.24),
    0 0 28px rgba(255, 198, 214, 0.36);
  z-index: 2;
}

.viewer-envelope-seal::before {
  content: "\273F";
  font-size: 1.05rem;
  color: #fff6f1;
}

.viewer-envelope-sparkles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 3;
}

.viewer-envelope-sparkle {
  position: absolute;
  display: block;
  color: transparent;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.45) rotate(0deg);
  animation: viewer-envelope-sparkle-twinkle 1.9s ease-in-out infinite;
}

.viewer-envelope-sparkle::before {
  content: "\2726";
  font-size: inherit;
  color: rgba(255, 251, 246, 0.95);
  text-shadow:
    0 0 12px rgba(255, 235, 187, 0.95),
    0 0 24px rgba(255, 211, 223, 0.72);
}

.viewer-envelope-sparkle--one {
  top: 14px;
  left: -10px;
  font-size: 1.3rem;
  animation-delay: 0.04s;
}

.viewer-envelope-sparkle--two {
  top: -8px;
  left: 54px;
  font-size: 0.95rem;
  animation-delay: 0.28s;
}

.viewer-envelope-sparkle--three {
  top: 10px;
  right: 18px;
  font-size: 1.12rem;
  animation-delay: 0.12s;
}

.viewer-envelope-sparkle--four {
  right: -6px;
  top: 72px;
  font-size: 0.88rem;
  animation-delay: 0.52s;
}

.viewer-envelope-sparkle--five {
  bottom: 24px;
  left: 18px;
  font-size: 1.02rem;
  animation-delay: 0.76s;
}

.viewer-envelope-sparkle--six {
  right: 42px;
  bottom: -6px;
  font-size: 1.18rem;
  animation-delay: 0.42s;
}

.viewer-envelope-copy {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  text-align: center;
  z-index: 2;
}

.viewer-envelope-kicker,
.viewer-envelope-copy strong,
.viewer-envelope-copy small {
  display: block;
}

.viewer-envelope-kicker {
  margin-bottom: 4px;
  font-family: "Dancing Script", cursive;
  font-size: 1.12rem;
  line-height: 1;
  color: #b76e77;
  text-shadow: 0 6px 18px rgba(255, 223, 214, 0.62);
}

.viewer-envelope-copy strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #3c2a24;
}

.viewer-envelope-copy small {
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8d6d5b;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.viewer-envelope:hover {
  transform: translateY(-3px) scale(1.01);
  filter:
    drop-shadow(0 42px 62px rgba(145, 112, 92, 0.22))
    drop-shadow(0 0 48px rgba(255, 230, 196, 0.84));
}

.viewer-envelope.is-opened {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px) scale(0.95);
  animation: none;
}

.viewer-envelope.is-opened .viewer-envelope-flap {
  transform: rotateX(180deg);
}

.viewer-stage-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 65;
  opacity: 0;
}

.viewer-stage-sparkles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 250, 218, 1), rgba(255, 220, 128, 0));
  box-shadow: 0 0 18px rgba(255, 224, 150, 0.85);
  opacity: 0;
}

.viewer-stage-sparkles span:nth-child(1) { left: 32%; top: 24%; animation-delay: 0.02s; }
.viewer-stage-sparkles span:nth-child(2) { left: 42%; top: 18%; animation-delay: 0.12s; }
.viewer-stage-sparkles span:nth-child(3) { left: 56%; top: 26%; animation-delay: 0.2s; }
.viewer-stage-sparkles span:nth-child(4) { left: 36%; top: 40%; animation-delay: 0.1s; }
.viewer-stage-sparkles span:nth-child(5) { left: 52%; top: 38%; animation-delay: 0.24s; }
.viewer-stage-sparkles span:nth-child(6) { left: 46%; top: 30%; animation-delay: 0.32s; }

.viewer-preview-panel .bouquet-stage.is-sparkling .viewer-stage-sparkles {
  opacity: 1;
}

.viewer-preview-panel .bouquet-stage.is-sparkling .viewer-stage-sparkles span {
  animation: viewer-sparkle 1.2s ease-out forwards;
}

@keyframes viewer-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  25% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.25);
  }
}

@keyframes viewer-envelope-invite {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  12% {
    transform: translateY(-2px) rotate(-1.8deg);
  }

  24% {
    transform: translateY(0) rotate(1.8deg);
  }

  36% {
    transform: translateY(-1px) rotate(-1.2deg);
  }

  48% {
    transform: translateY(0) rotate(1.2deg);
  }

  60% {
    transform: translateY(-3px) rotate(-0.9deg);
  }

  72% {
    transform: translateY(0) rotate(0.9deg);
  }

  84% {
    transform: translateY(-1px) rotate(0deg);
  }
}

@keyframes viewer-envelope-sparkle-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.45) rotate(0deg);
  }

  18% {
    opacity: 0.95;
    transform: translate3d(0, -2px, 0) scale(1) rotate(8deg);
  }

  38% {
    opacity: 0.75;
    transform: translate3d(2px, -7px, 0) scale(0.72) rotate(-6deg);
  }

  58% {
    opacity: 0.18;
    transform: translate3d(-1px, -12px, 0) scale(0.54) rotate(10deg);
  }
}

.viewer-page .site-header,
.viewer-page .viewer-preview-panel,
.viewer-page .viewer-message-panel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.viewer-page .viewer-preview-panel {
  transition-delay: 80ms;
}

.viewer-page .viewer-message-panel {
  transition-delay: 150ms;
}

.viewer-page .viewer-preview-panel .bouquet-stage {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: 180ms;
}

.viewer-page.viewer-is-loaded .site-header,
.viewer-page.viewer-is-loaded .viewer-preview-panel,
.viewer-page.viewer-is-loaded .viewer-message-panel,
.viewer-page.viewer-is-loaded .viewer-preview-panel .bouquet-stage {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .viewer-page .site-header,
  .viewer-page .viewer-preview-panel,
  .viewer-page .viewer-message-panel,
  .viewer-page .viewer-preview-panel .bouquet-stage,
  .viewer-envelope,
  .viewer-envelope-gate,
  .viewer-envelope-sparkle {
    transition: none;
  }

  .viewer-envelope,
  .viewer-envelope-sparkle {
    animation: none;
  }

  .viewer-page .site-header,
  .viewer-page .viewer-preview-panel,
  .viewer-page .viewer-message-panel,
  .viewer-page .viewer-preview-panel .bouquet-stage {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1181px) {
  .preview-panel {
    position: sticky;
    top: 24px;
  }

  .bouquet-stage {
    --tag-scale: 0.78;
    --wrap-center-x: 46%;
    --tag-right: -28px;
    --tag-bottom: 118px;
  }

  .bouquet-tag {
    width: min(112px, calc(100% - 156px));
  }

  .bouquet-stage[data-density="full"] {
    --bouquet-scale: 0.7;
    --tag-scale: 0.74;
    --wrap-center-x: 43%;
    --tag-right: -22px;
    --tag-bottom: 132px;
  }

  .viewer-preview-panel .bouquet-stage {
    min-height: 430px;
    --wrap-center-x: 50%;
    --wrap-bottom: 94px;
    --preview-bottom: 134px;
    --tag-scale: 0.76;
    --tag-right: 0px;
    --tag-bottom: 124px;
  }

  .viewer-preview-panel .bouquet-stage[data-density="full"] {
    --wrap-center-x: 50%;
    --wrap-bottom: 100px;
    --preview-bottom: 140px;
    --tag-scale: 0.72;
    --tag-right: 0px;
    --tag-bottom: 130px;
  }
}

@container (max-width: 460px) {
  .bouquet-stage {
    --wrap-center-x: 47%;
    --tag-scale: 0.8;
    --tag-right: 8px;
    --tag-bottom: 98px;
  }

  .bouquet-stage[data-density="full"] {
    --bouquet-scale: 0.68;
    --tag-scale: 0.72;
    --wrap-center-x: 41%;
    --tag-right: 4px;
    --tag-bottom: 116px;
  }

  .bouquet-tag {
    width: min(118px, calc(100% - 146px));
    padding: 10px 11px 12px;
  }

  .bouquet-tag-meta strong,
  .bouquet-tag-message {
    font-size: 0.78rem;
  }
}

@container (max-width: 380px) {
  .bouquet-stage {
    --bouquet-scale: 0.72;
    --tag-scale: 0.8;
    --wrap-center-x: 50%;
    --wrap-bottom: 86px;
    --preview-bottom: 122px;
    --tag-right: 8px;
    --tag-bottom: 116px;
  }

  .bouquet-band {
    bottom: 104px;
    width: 46px;
    height: 7px;
  }

  .bouquet-string-anchor {
    left: calc(50% + 24px);
    bottom: 114px;
  }

  .bouquet-tag {
    width: min(122px, calc(100% - 140px));
    padding: 10px 11px 12px;
  }

  .bouquet-stage[data-density="full"] {
    --bouquet-scale: 0.64;
    --tag-scale: 0.68;
    --wrap-center-x: 39%;
    --tag-right: 2px;
    --tag-bottom: 126px;
  }

  .empty-preview {
    bottom: calc(var(--wrap-bottom) + 264px);
    font-size: 0.88rem;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }

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

  .hero-copy {
    min-height: 500px;
  }

  .hero-copy h1 {
    max-width: 6.8ch;
  }

  .hero-text {
    max-width: 24ch;
  }

  .hero-copy-content {
    max-width: min(56%, 420px);
  }

  .hero-copy-actions {
    align-items: flex-start;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "preview preview"
      "builder form";
  }

  .preview-panel {
    position: static;
  }

  .bouquet-stage {
    min-height: clamp(430px, 54vw, 520px);
  }

  .bouquet-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .bouquet-form > label:nth-of-type(3),
  .bouquet-form > label:nth-of-type(4),
  .form-footer,
  .status-banner {
    grid-column: 1 / -1;
  }
}

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

  .site-header-menu-toggle {
    display: inline-flex;
  }

  .brand-mark-logo--full {
    width: min(210px, 52vw);
  }

  .site-header-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(122, 101, 88, 0.12);
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(255, 249, 242, 0.98), rgba(251, 238, 219, 0.94)),
      rgba(255, 251, 242, 0.96);
    box-shadow: 0 18px 42px rgba(112, 84, 39, 0.14);
    z-index: 40;
  }

  .site-header.is-open .site-header-menu {
    display: grid;
  }

  .site-header.is-open {
    margin-bottom: 190px;
  }

  .site-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .site-nav-mobile-only {
    display: inline-flex;
  }

  .site-header-mark {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "builder"
      "form";
  }

  .bouquet-form {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 6.9ch;
  }

  .hero-copy,
  .hero-card {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-badge {
    padding: 18px;
  }

  .hero-copy {
    min-height: 520px;
  }

  .hero-copy-content {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-art {
    opacity: 0.9;
  }

  .hero-bloom-illustration {
    right: -20px;
    bottom: -20px;
    width: clamp(320px, 62vw, 500px);
  }

  .daily-title {
    font-size: clamp(1.7rem, 5.2vw, 2.2rem);
  }

  .daily-quote {
    font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  }

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

  .viewer-meta-row {
    align-items: flex-start;
  }

  .viewer-share-bar {
    margin-bottom: 18px;
  }

  #viewer-title,
  #viewer-subject {
    max-width: none;
  }

  .viewer-preview-panel .bouquet-stage,
  .viewer-preview-panel .bouquet-stage[data-density="medium"],
  .viewer-preview-panel .bouquet-stage[data-density="full"] {
    --wrap-center-x: 50%;
    --tag-right: 8px;
  }

  .dedication-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dedication-copy {
    max-width: none;
    justify-items: center;
  }

  .flowerhour-tribute {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .flowerhour-hero-mark {
    order: -1;
    margin-bottom: 4px;
  }

  .flowerhour-tribute-copy {
    max-width: none;
  }

  .flowerhour-socials {
    justify-content: center;
  }

  .flowerhour-gallery {
    columns: 1;
  }

  .flowerhour-shot--wide,
  .flowerhour-shot--tall {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .flower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    gap: 14px;
    padding: 14px;
  }

  .site-header.is-open {
    margin-bottom: 176px;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .site-header-mark-image {
    width: min(94px, 30vw);
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy {
    gap: 14px;
    min-height: 500px;
  }

  .hero-copy h1 {
    max-width: 6.8ch;
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .hero-text {
    max-width: 24ch;
    font-size: 0.92rem;
  }

  .hero-copy-content {
    max-width: none;
    min-height: auto;
    padding-right: 0;
  }

  .hero-art {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0.88;
  }

  .hero-bloom-illustration {
    right: -34px;
    bottom: -18px;
    width: clamp(280px, 82vw, 430px);
  }

  .hero-badge {
    padding: 16px;
    gap: 10px;
  }

  .daily-title-row {
    gap: 12px;
  }

  .daily-title-mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .daily-mood {
    font-size: 0.82rem;
  }

  .daily-emoji-row {
    gap: 8px 10px;
    margin-top: 22px; /* <-- Revert this back to 22px */
    padding-top: 18px;
  }

  .daily-emoji-pill {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .daily-cta,
  .hero-primary-action {
    width: 100%;
    min-height: 46px;
  }

  .preview-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-actions {
    width: 100%;
  }

  .shuffle-button {
    width: 100%;
  }

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

  .viewer-preview-panel .section-heading h2,
  .viewer-message-panel .section-heading h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 0.98;
  }

  .viewer-style-badge,
  .viewer-delivered-at {
    font-size: 0.74rem;
  }

  .dedication-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .dedication-photo-shell {
    width: min(100%, 230px);
    padding: 12px;
    border-radius: 26px;
  }

  .dedication-note {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .flowerhour-gallery {
    columns: 1;
  }

  .flowerhour-shot {
    min-height: 220px;
  }

  .flowerhour-shot figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 0.82rem;
  }

  .flowerhour-social {
    min-width: 0;
    width: 100%;
  }

  .viewer-share-actions .viewer-share-button {
    flex: 1 1 calc(50% - 8px);
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .viewer-share-actions .viewer-share-button--make {
    flex: 1 1 100%;
  }

  .viewer-envelope {
    width: min(216px, calc(100% - 48px));
    height: 146px;
  }

  .viewer-envelope--gate {
    width: min(216px, calc(100% - 48px));
    height: 146px;
  }

  .viewer-envelope-kicker {
    font-size: 0.96rem;
  }

  .viewer-envelope-copy strong {
    font-size: 1.18rem;
  }

  .viewer-envelope-copy small {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  #viewer-subject {
    max-width: 9ch;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #viewer-title {
    max-width: 10ch;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #submit-button {
    width: 100%;
  }

  .bouquet-stage {
    min-height: clamp(400px, 112vw, 500px);
    --bouquet-scale: 0.84;
    --tag-scale: 0.8;
    --wrap-center-x: 50%;
    --wrap-bottom: 94px;
    --wrap-width: 210px;
    --wrap-height: 288px;
    --preview-width: 172px;
    --preview-height: 286px;
    --preview-bottom: 130px;
    --tag-right: 6px;
    --tag-bottom: 86px;
  }

  .bouquet-paper-back {
    width: 158px;
    height: 170px;
    top: 12px;
  }

  .bouquet-wrap::before {
    top: 92px;
    width: 138px;
    height: 128px;
  }

  .bouquet-paper-front {
    width: 126px;
    height: 186px;
    bottom: 54px;
  }

  .bouquet-paper-neck {
    width: 72px;
    height: 104px;
  }

  .bouquet-band {
    bottom: 118px;
    width: 50px;
    height: 8px;
  }

  .bouquet-string-anchor {
    left: calc(50% + 27px);
    bottom: 126px;
  }

  .empty-preview {
    bottom: calc(var(--wrap-bottom) + 234px);
    font-size: 0.92rem;
  }

  .bouquet-tag {
    width: min(128px, calc(100% - 140px));
  }

  .bouquet-stage[data-density="full"] {
    --bouquet-scale: 0.72;
    --tag-scale: 0.72;
    --wrap-center-x: 43%;
    --tag-right: 2px;
    --tag-bottom: 104px;
  }

  .viewer-preview-panel .bouquet-stage,
  .viewer-preview-panel .bouquet-stage[data-density="medium"],
  .viewer-preview-panel .bouquet-stage[data-density="full"] {
    --wrap-center-x: 50%;
    --wrap-bottom: 76px;
    --preview-bottom: 108px;
    --tag-scale: 0.74;
    --tag-right: 2px;
    --tag-bottom: 78px;
  }

  .viewer-share-button--story {
    display: inline-flex;
  }

  .viewer-creator-card {
    padding: 16px;
  }

  .viewer-credit-footer {
    padding-top: 6px;
    font-size: 0.9rem;
  }

  .viewer-footer-logos {
    gap: 12px;
  }

  .viewer-footer-logo {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding-bottom: 232px;
  }

  .viewer-page .page-shell {
    padding-bottom: 22px;
  }

  .floating-preview {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: block;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .floating-preview.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .floating-preview-inner {
    min-height: 184px;
  }

  .floating-preview .bouquet-stage {
    min-height: 184px;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(59, 37, 24, 0.16);
    --bouquet-scale: 0.56;
    --tag-scale: 0.72;
    --wrap-bottom: 26px;
    --preview-bottom: 62px;
    --tag-right: 10px;
    --tag-bottom: 48px;
  }

  .floating-preview .bouquet-stage[data-density="full"] {
    --bouquet-scale: 0.48;
    --tag-scale: 0.62;
    --wrap-center-x: 41%;
    --tag-right: 4px;
    --tag-bottom: 38px;
  }

  .floating-preview .bouquet-stage::after {
    content: "Live preview";
    position: absolute;
    top: 12px;
    left: 14px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 252, 248, 0.92);
    border: 1px solid rgba(122, 101, 88, 0.12);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 50;
  }

  .floating-preview .bouquet-string,
  .floating-preview .bouquet-string-anchor {
    display: none;
  }

  .floating-preview .bouquet-tag {
    right: 10px;
    bottom: 36px;
    width: min(124px, calc(100% - 144px));
  }

  .floating-preview .bouquet-stage[data-density="full"] .bouquet-tag {
    width: min(108px, calc(100% - 150px));
    padding: 8px 9px 10px;
  }

  .floating-preview .bouquet-stage[data-density="full"] .bouquet-tag-meta {
    margin-bottom: 7px;
  }

  .floating-preview .bouquet-stage[data-density="full"] .bouquet-tag-meta span {
    font-size: 0.54rem;
  }

  .floating-preview .bouquet-stage[data-density="full"] .bouquet-tag-meta strong,
  .floating-preview .bouquet-stage[data-density="full"] .bouquet-tag-message {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .floating-preview .tag-hole {
    display: none;
  }

  .floating-preview .bouquet-tag-meta,
  .floating-preview .bouquet-tag-message {
    margin-left: 0;
  }
}

@media (max-width: 460px) {
  .flower-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 14px 10px 22px;
  }

  .site-header {
    padding: 12px;
    border-radius: 20px;
  }

  .site-header.is-open {
    margin-bottom: 168px;
  }

  .brand-mark-logo--full {
    width: min(188px, 56vw);
  }

  .site-nav a {
    font-size: 0.86rem;
  }

  .site-header-mark-image {
    width: min(82px, 32vw);
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 16px;
    border-radius: 20px;
  }

  .hero-copy {
    min-height: 460px;
  }

  .brand-mark {
    gap: 0;
    padding-right: 0;
  }

  .brand-mark-logo {
    width: 46px;
  }

  .brand-mark-logo--full {
    width: min(154px, 42vw);
  }

  .brand-mark-icon {
    width: 40px;
    height: 40px;
  }

  .brand-mark-wordmark {
    font-size: 1.55rem;
  }

  .brand-mark-sunflower {
    width: 16px;
    height: 16px;
    margin-bottom: 4px;
  }

  .brand-mark-svg {
    width: 30px;
    height: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 12.6vw, 3rem);
    max-width: 6.5ch;
  }

  .hero-text {
    font-size: 0.86rem;
  }

  .hero-bloom-illustration {
    right: -42px;
    bottom: -14px;
    width: clamp(250px, 86vw, 340px);
  }

  .hero-badge {
    padding: 16px;
  }

  .daily-title {
    font-size: clamp(1.55rem, 10vw, 2rem);
  }

  .daily-quote {
    padding-inline: 14px;
    font-size: clamp(1.2rem, 8.6vw, 1.6rem);
  }

  .daily-cta,
  .hero-primary-action {
    min-height: 42px;
    font-size: 0.88rem;
  }

  .dedication-title {
    font-size: clamp(2.05rem, 12vw, 2.7rem);
  }

  .dedication-signoff {
    font-size: 1.85rem;
  }

  .flowerhour-title {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .flowerhour-signoff {
    font-size: 1.95rem;
  }

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

  .flower-card {
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
    align-items: center;
    text-align: left;
    min-height: auto;
    padding: 10px;
    gap: 10px;
  }

  .flower-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .flower-copy p {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .flower-controls {
    width: auto;
    margin-top: 0;
    justify-content: flex-end;
  }

  .style-card {
    grid-template-columns: 30px 1fr;
  }

  .style-swatch {
    width: 30px;
    height: 30px;
  }

  .bouquet-stage {
    min-height: 420px;
    --bouquet-scale: 0.82;
    --tag-scale: 0.78;
    --wrap-bottom: 92px;
    --wrap-width: 194px;
    --wrap-height: 266px;
    --preview-width: 160px;
    --preview-height: 260px;
    --preview-bottom: 126px;
    --tag-right: 6px;
    --tag-bottom: 82px;
  }

  .bouquet-paper-back {
    width: 148px;
    height: 158px;
    top: 14px;
  }

  .bouquet-opening {
    top: 88px;
    width: 118px;
    height: 20px;
  }

  .bouquet-wrap::before {
    top: 88px;
    width: 128px;
    height: 118px;
  }

  .bouquet-paper-front {
    width: 120px;
    height: 168px;
    bottom: 60px;
  }

  .bouquet-paper-neck {
    width: 66px;
    height: 96px;
  }

  .bouquet-band {
    bottom: 112px;
    width: 44px;
    height: 8px;
  }

  .bouquet-string-anchor {
    left: calc(50% + 24px);
    bottom: 120px;
  }

  .bouquet-tag {
    width: min(120px, calc(100% - 142px));
    padding: 10px 11px 12px;
  }

  .bouquet-stage[data-density="full"] {
    --bouquet-scale: 0.68;
    --tag-scale: 0.68;
    --wrap-center-x: 40%;
    --tag-right: 2px;
    --tag-bottom: 112px;
  }

  .viewer-preview-panel .bouquet-stage,
  .viewer-preview-panel .bouquet-stage[data-density="medium"],
  .viewer-preview-panel .bouquet-stage[data-density="full"] {
    min-height: clamp(360px, 92vw, 430px);
    --bouquet-scale: 0.74;
    --wrap-center-x: 50%;
    --wrap-bottom: 66px;
    --wrap-width: 188px;
    --wrap-height: 254px;
    --preview-width: 146px;
    --preview-height: 234px;
    --preview-bottom: 96px;
    --tag-scale: 0.64;
    --tag-right: -2px;
    --tag-bottom: 92px;
  }

  .bouquet-tag-message {
    padding-top: 8px;
  }

  .viewer-preview-panel .bouquet-tag {
    width: min(96px, calc(100% - 176px));
    padding: 9px 10px 11px;
  }

  .viewer-preview-panel .bouquet-tag-meta {
    margin: 0 0 8px 14px;
  }

  .viewer-preview-panel .bouquet-tag-meta strong,
  .viewer-preview-panel .bouquet-tag-message {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .viewer-preview-panel .bouquet-string-anchor {
    left: calc(50% + 22px);
    bottom: 102px;
  }
}

@media (max-width: 460px) {
  .viewer-preview-panel .bouquet-stage,
  .viewer-preview-panel .bouquet-stage[data-density="medium"],
  .viewer-preview-panel .bouquet-stage[data-density="full"] {
    min-height: 350px;
    --bouquet-scale: 0.7;
    --wrap-bottom: 48px;
    --wrap-width: 176px;
    --wrap-height: 238px;
    --preview-width: 136px;
    --preview-height: 220px;
    --preview-bottom: 76px;
    --tag-scale: 0.6;
    --tag-right: -4px;
    --tag-bottom: 72px;
  }

  .viewer-preview-panel .bouquet-tag {
    width: min(92px, calc(100% - 178px));
  }

  .viewer-preview-panel .bouquet-string-anchor {
    left: calc(50% + 20px);
    bottom: 84px;
  }

  .viewer-credit-footer {
    padding-top: 4px;
    font-size: 0.86rem;
  }

  .viewer-footer-logos {
    gap: 10px;
  }

  .viewer-footer-logo {
    width: 30px;
    height: 30px;
  }

  .viewer-credit-copy {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-inline: 14px;
  }
}

@media (min-width: 401px) and (max-width: 460px) {
  .viewer-preview-panel .bouquet-stage,
  .viewer-preview-panel .bouquet-stage[data-density="medium"],
  .viewer-preview-panel .bouquet-stage[data-density="full"] {
    min-height: 368px;
    --bouquet-scale: 0.76;
    --wrap-bottom: 54px;
    --wrap-width: 188px;
    --wrap-height: 252px;
    --preview-width: 146px;
    --preview-height: 232px;
    --preview-bottom: 82px;
    --tag-scale: 0.64;
    --tag-right: -2px;
    --tag-bottom: 76px;
  }

  .viewer-preview-panel .bouquet-tag {
    width: min(98px, calc(100% - 172px));
  }

  .viewer-preview-panel .bouquet-string-anchor {
    left: calc(50% + 21px);
    bottom: 88px;
  }
}

.viewer-story-mode .site-header,
.viewer-story-mode .viewer-message-panel,
.viewer-story-mode .viewer-meta-row .viewer-delivered-at,
.viewer-story-mode .viewer-logo-cloud,
.viewer-story-mode .viewer-credit-footer {
  display: none;
}

.viewer-story-mode .viewer-shell {
  max-width: 460px;
  padding-top: 16px;
}

.viewer-story-mode .viewer-layout {
  grid-template-columns: 1fr;
}

.viewer-story-mode .viewer-preview-panel {
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(246, 233, 220, 0.94));
}

.viewer-story-mode .viewer-story-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.viewer-story-mode .viewer-share-button--story-exit {
  display: inline-flex;
}

.viewer-story-mode .viewer-preview-panel .section-heading {
  margin-bottom: 10px;
}

.viewer-story-mode .viewer-preview-panel .section-heading .eyebrow {
  margin-bottom: 8px;
}

.viewer-story-mode #viewer-title {
  max-width: none;
  font-size: clamp(2.6rem, 10vw, 4rem);
  text-wrap: balance;
}

.viewer-story-mode .viewer-meta-row {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.viewer-story-mode .viewer-preview-panel .bouquet-stage {
  min-height: min(74vh, 680px);
}

.viewer-story-mode .viewer-preview-footer {
  display: block;
  margin-top: 14px;
}

.viewer-story-mode .viewer-preview-footer h3 {
  font-size: 1.8rem;
}

.viewer-story-mode .viewer-preview-footer p {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .viewer-story-mode .page-shell {
    padding-top: 14px;
  }

  .viewer-story-mode .viewer-preview-panel {
    padding: 16px;
  }

  .viewer-story-mode .viewer-story-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .viewer-story-mode .viewer-preview-panel .bouquet-stage {
    min-height: clamp(380px, 88vw, 500px);
    --wrap-bottom: 76px;
    --preview-bottom: 108px;
  }

  .viewer-story-mode .viewer-preview-footer h3 {
    font-size: 1.6rem;
  }
}

@media (min-width: 401px) and (max-width: 460px) {
  .viewer-story-mode .viewer-preview-panel .bouquet-stage,
  .viewer-story-mode .viewer-preview-panel .bouquet-stage[data-density="medium"],
  .viewer-story-mode .viewer-preview-panel .bouquet-stage[data-density="full"] {
    min-height: 410px;
    --bouquet-scale: 0.82;
    --wrap-width: 202px;
    --wrap-height: 274px;
    --wrap-bottom: 64px;
    --preview-width: 160px;
    --preview-height: 252px;
    --preview-bottom: 94px;
    --tag-scale: 0.68;
    --tag-right: 2px;
    --tag-bottom: 84px;
  }

  .viewer-story-mode .viewer-preview-panel .bouquet-tag {
    width: min(102px, calc(100% - 168px));
    padding: 10px 10px 12px;
  }

  .viewer-story-mode .viewer-preview-panel .bouquet-string-anchor {
    left: calc(50% + 23px);
    bottom: 96px;
  }
}
