@font-face {
  font-family: "Great Vibes";
  src: url("/assets/fonts/great-vibes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #041018;
  --ivory-deep: #071820;
  --ink: #e8f4fa;
  --muted: #8aa8b8;
  --gold: #3ec8ff;
  --gold-deep: #7ad4ff;
  --green: #7dffa8;
  --green-deep: #3dce7a;
  --green-soft: rgba(125, 255, 168, 0.14);
  --chocolate: #0b2430;
  --pink: #3ec8ff;
  --white: #f4f8fb;
  --line: rgba(62, 200, 255, 0.28);
  --shadow: 0 20px 60px rgba(2, 10, 16, 0.45);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --content: 1180px;
  --serif: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: Inter, ui-sans-serif, system-ui, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(62, 200, 255, 0.16), transparent 28rem),
    radial-gradient(ellipse at 8% 42%, rgba(125, 255, 168, 0.08), transparent 24rem),
    radial-gradient(ellipse at 88% 18%, rgba(20, 144, 200, 0.10), transparent 32rem),
    radial-gradient(circle at 50% 120%, rgba(8, 40, 52, 0.9), transparent 34rem),
    var(--ivory);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

main {
  width: 100%;
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-strip {
  padding: 0.52rem 1rem;
  color: var(--white);
  background: var(--ink);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(62, 200, 255, 0.16);
  background: rgba(4, 16, 24, 0.88);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.nav-shell {
  width: min(calc(100% - 1.5rem), 1400px);
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem 0.85rem;
  overflow: visible;
}

/* Social icons sit left of the brand; never shrink the logo/nav sizing */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.social-btn {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn svg {
  width: 26px;
  height: 26px;
  display: block;
  position: relative;
  z-index: 2;
}

/* Clean Facebook icon — blue + pink, no chocolate */
.social-facebook {
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.5) 0 14%, transparent 16%),
    linear-gradient(
      155deg,
      #9ec5ff 0%,
      #4b9bff 24%,
      #1877f2 50%,
      #f7a8c8 80%,
      #ff8fb8 100%
    );
  box-shadow:
    0 6px 16px rgba(24, 119, 242, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.social-facebook:hover {
  box-shadow:
    0 10px 22px rgba(247, 120, 170, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.social-facebook-glyph {
  position: relative;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.social-facebook svg {
  fill: #e8f4fa;
  filter: drop-shadow(0 1px 0 rgba(40, 70, 140, 0.25));
}

/* Hide any leftover chocolate markup if present in HTML */
.social-chocolate {
  display: none !important;
}

.social-instagram {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 30% 28%, #fff3c4 0 11%, transparent 12%),
    linear-gradient(135deg, #f9c74f, #f9844a 35%, #f72585 70%, #7209b7);
  box-shadow: 0 6px 16px rgba(247, 37, 133, 0.22);
}

.social-instagram:hover {
  box-shadow: 0 10px 22px rgba(247, 37, 133, 0.32);
}

.social-instagram svg {
  fill: none;
  stroke: #e8f4fa;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  flex: 0 0 auto;
}

.footer-logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}
.hero-logo-card img,
.art-frame.about-orb img {
  border-radius: 50%;
}
.brand-link img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 5px 18px rgba(2, 10, 16, 0.35);
}

.brand-wordmark {
  display: grid;
  line-height: 1.02;
}

.brand-wordmark strong {
  font-family: var(--script);
  font-size: 1.34rem;
  font-weight: 700;
}

.brand-wordmark span {
  color: var(--gold-deep);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  gap: 0.28rem;
  margin-left: auto; /* keep primary nav on the right like original layout */
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.45rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

/* Primary nav pills */
.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button) {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(62, 200, 255, 0.35);
  border-radius: 999px;
  color: #e8f4fa;
  white-space: nowrap;
  background: linear-gradient(145deg, #0d2834, #123040 62%, #0b2430);
  box-shadow: 0 6px 14px rgba(2, 10, 16, 0.28), inset 0 1px 0 rgba(62, 200, 255, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button)::before,
.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button)::after {
  content: none;
}

.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button):nth-child(2) {
  background: linear-gradient(145deg, #0d2834, #123040 62%, #0b2430);
  border-color: rgba(62, 200, 255, 0.35);
}

.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button):hover,
.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button)[aria-current="page"] {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 10px 20px rgba(20, 144, 200, 0.24), inset 0 2px 0 rgba(255,255,255,.6);
}

.site-nav a.nav-about,
a.nav-about {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border: 1.5px solid rgba(62, 200, 255, 0.35);
  border-radius: 999px;
  color: #e8f4fa;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(145deg, #0d2834 0%, #123040 48%, #0b2430 100%);
  box-shadow: 0 8px 18px rgba(2, 10, 16, 0.28), inset 0 1px 0 rgba(62, 200, 255, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.site-nav a.nav-about::before,
.site-nav a.nav-about::after,
a.nav-about::before,
a.nav-about::after {
  content: none !important;
  display: none !important;
}
.site-nav a.nav-about:hover,
.site-nav a.nav-about[aria-current="page"],
a.nav-about:hover,
a.nav-about[aria-current="page"] {
  transform: translateY(-2px);
  filter: saturate(1.06);
  border-color: rgba(62, 200, 255, 0.55);
  background: linear-gradient(145deg, #123040 0%, #1490c8 50%, #0b2430 100%);
  box-shadow: 0 12px 24px rgba(20, 144, 200, 0.24), inset 0 1px 0 rgba(154, 231, 255, 0.2);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/*
 * Gallery nav pill — built fresh. Pink only.
 * Class name is nav-gallery (NOT gallery-nav-button) so old cached chocolate CSS cannot stick.
 */
.site-nav a.nav-gallery,
a.nav-gallery {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border: 1.5px solid rgba(62, 200, 255, 0.4);
  border-radius: 999px;
  color: #e8f4fa;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(145deg, #0b2430 0%, #123040 45%, #0d2834 100%);
  box-shadow: 0 8px 18px rgba(20, 144, 200, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  overflow: visible;
}

/* Kill every pseudo-element on this control — no drips, no underline bars, no blobs */
.site-nav a.nav-gallery::before,
.site-nav a.nav-gallery::after,
a.nav-gallery::before,
a.nav-gallery::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  animation: none !important;
}

.site-nav a.nav-gallery:hover,
.site-nav a.nav-gallery[aria-current="page"],
a.nav-gallery:hover,
a.nav-gallery[aria-current="page"] {
  transform: translateY(-2px);
  filter: saturate(1.06);
  border-color: #3ec8ff;
  background: linear-gradient(145deg, #0d2834 0%, #3ec8ff 50%, #1490c8 100%);
  box-shadow: 0 12px 24px rgba(20, 144, 200, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Legacy class killed cold — if any page still has it, force pink + no drips */
.site-nav a.gallery-nav-button,
a.gallery-nav-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 0.72rem 1.15rem !important;
  border: 1.5px solid #2a6a80 !important;
  border-radius: 999px !important;
  color: #4a2030 !important;
  background: linear-gradient(145deg, #0d2834 0%, #123040 45%, #3ec8ff 100%) !important;
  background-image: linear-gradient(145deg, #0d2834 0%, #123040 45%, #3ec8ff 100%) !important;
  box-shadow: 0 8px 18px rgba(20, 144, 200, 0.18) !important;
  overflow: visible !important;
}
.site-nav a.gallery-nav-button::before,
.site-nav a.gallery-nav-button::after,
a.gallery-nav-button::before,
a.gallery-nav-button::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
  opacity: 0 !important;
}

/* Homepage CTA to gallery — pink, no chocolate */
a.button.gallery-cta,
.gallery-cta {
  border-color: #2a6a80 !important;
  color: #4a2030 !important;
  background: linear-gradient(145deg, #0d2834, #3ec8ff 55%, #1490c8) !important;
  box-shadow: 0 10px 22px rgba(20, 144, 200, 0.2) !important;
}
a.button.gallery-cta::before,
a.button.gallery-cta::after,
.gallery-cta::before,
.gallery-cta::after {
  content: none !important;
  display: none !important;
}

.gallery-page .brand-archive {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display {
  max-width: 18ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.display .script,
.script {
  color: var(--gold-deep);
  font-family: var(--script);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.alchemist-sig {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0.05rem 0 0.15rem;
  padding: 0.38em 0.95em 0.28em 0.45em;
  overflow: visible;
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.7rem, 4vw, 2.85rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  background-image: linear-gradient(105deg, #7dffa8 0%, #4ade80 22%, #c084fc 62%, #a855f7 88%, #7dffa8 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 6px rgba(125, 255, 168, 0.55))
    drop-shadow(0 0 14px rgba(168, 85, 247, 0.38));
}
.page-hero .alchemist-sig {
  margin-inline: auto;
  text-align: center;
}
.page-hero .alchemist-sig + .lede {
  margin-top: 0.25rem;
  color: #b7ebc8;
}
@media (prefers-reduced-motion: no-preference) {
  .alchemist-sig {
    animation: alchemist-neon 4s ease-in-out infinite;
  }
}
@keyframes alchemist-neon {
  0%, 100% {
    background-position: 0% 50%;
    filter:
      drop-shadow(0 0 5px rgba(125, 255, 168, 0.45))
      drop-shadow(0 0 12px rgba(168, 85, 247, 0.3));
  }
  50% {
    background-position: 100% 50%;
    filter:
      drop-shadow(0 0 11px rgba(125, 255, 168, 0.75))
      drop-shadow(0 0 22px rgba(168, 85, 247, 0.55));
  }
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 8rem) 0 5rem;
}
.hero .container {
  width: min(calc(100% - 2rem), 1320px);
}

.hero::before,
.hero::after {
  content: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 4.2vw, 3.6rem);
}

/* Full-width copy column again — no flex squeeze */
.hero-copy {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.hero-copy .lede {
  margin: 0.25rem 0 0;
  color: #b7ebc8;
}
.hero-copy .eyebrow {
  color: #8ee6b0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 20, 15, 0.18);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-gold {
  border-color: transparent;
  background: linear-gradient(135deg, #3ec8ff, #1490c8);
  color: #041018;
}

.hero-art {
  position: relative;
  z-index: 2;
  overflow: visible;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2.25rem;
  width: 100%;
  max-width: none;
  margin-left: 0;
  justify-self: stretch;
}

.hero-portrait {
  position: relative;
  width: min(372px, 34vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.about-portrait-wrap {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-portrait {
  overflow: visible;
}

.hero-pulse {
  display: none;
}

.hero-pulse-delay { animation-delay: 0.9s; }
.hero-pulse-late { animation-delay: 1.8s; }

@keyframes portrait-pulse {
  0% {
    transform: scale(0.86);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pulse {
    animation: none;
    opacity: 0.35;
  }
}

.hero-art::before,
.hero-art::after {
  content: none;
}

.hero-logo-card {
  width: min(360px, 34vw);
  max-width: 360px;
  margin-left: 0;
  padding: 0;
  border: 2px solid rgba(62, 200, 255, 0.55);
  border-radius: 50%;
  background: #071820;
  box-shadow: 0 0 0 10px rgba(62, 200, 255, 0.1), 0 16px 36px rgba(2, 10, 16, 0.35);
  transform: none;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-logo-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.hero-say {
  width: 100%;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(62, 200, 255, 0.48);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(10, 42, 62, 0.96) 0%, rgba(16, 22, 52, 0.96) 62%, rgba(48, 24, 78, 0.42) 100%);
  overflow: visible;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.hero-say[hidden] { display: none !important; }
.hero-say-label {
  margin: 0 0 0.35rem;
  color: #7ad4ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-say-body {
  margin: 0;
  color: #c084fc;
  font-size: 1.18rem;
  line-height: 1.58;
  white-space: pre-wrap;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.45) transparent;
}
.hero-say-body::-webkit-scrollbar {
  width: 8px;
}
.hero-say-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.4);
}
.hero-say-caret {
  display: inline-block;
  width: 0.11em;
  height: 1.05em;
  margin-left: 0.12em;
  background: #c084fc;
  vertical-align: -0.14em;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.7);
}
.hero-say.is-empty .hero-say-caret { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-say-caret {
    animation: say-caret 0.85s steps(1) infinite;
  }
}
@keyframes say-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-say {
    animation: none;
  }
}
@keyframes software-say-glow {
  0%, 100% {
    box-shadow: 0 0 16px rgba(125, 255, 168, 0.38), 0 0 32px rgba(168, 85, 247, 0.18);
    border-color: rgba(125, 255, 168, 0.55);
  }
  16% {
    box-shadow: 0 0 18px rgba(255, 64, 64, 0.42), 0 0 34px rgba(139, 0, 0, 0.18);
    border-color: rgba(255, 72, 72, 0.6);
  }
  33% {
    box-shadow: 0 0 18px rgba(255, 79, 200, 0.42), 0 0 34px rgba(138, 114, 255, 0.18);
    border-color: rgba(255, 79, 200, 0.6);
  }
  50% {
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.42), 0 0 34px rgba(134, 239, 172, 0.16);
    border-color: rgba(34, 211, 238, 0.62);
  }
  66% {
    box-shadow: 0 0 18px rgba(245, 215, 110, 0.36), 0 0 34px rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.58);
  }
  83% {
    box-shadow: 0 0 18px rgba(224, 242, 254, 0.4), 0 0 34px rgba(125, 211, 252, 0.2);
    border-color: rgba(186, 230, 253, 0.62);
  }
}

/*
 * "Made with love" — left open space beside "Small treat".
 * Outside the text column so original headline size is fully restored.
 */
.hero-badge {
  position: absolute;
  /* Sit in the left page margin, just left of the content / "Small treat" */
  left: max(0.65rem, calc((100% - min(100% - 2rem, var(--content))) / 2 - 12.75rem));
  top: clamp(7.5rem, 14vw, 12rem);
  width: 190px;
  max-width: 190px;
  padding: 1rem 1.1rem;
  border: 1px solid #2a6a80;
  border-radius: var(--radius-md);
  color: #e8f4fa;
  background: linear-gradient(145deg, #2a120d, #5a281b 68%, #35150f);
  box-shadow: 0 16px 30px rgba(55, 22, 12, .3), inset 0 1px 0 rgba(255,220,180,.2);
  font-family: var(--serif);
  font-weight: 700;
  text-align: center;
  z-index: 4;
}

/* When side margin is tight, place badge above the hero grid (still not shrinking type) */
@media (max-width: 1320px) and (min-width: 981px) {
  .hero-badge {
    position: relative;
    left: auto;
    top: auto;
    width: 190px;
    margin: 0 auto 1.25rem;
  }
}

.hero-badge {
  display: none !important;
}
.hero-badge::before,
.hero-badge::after {
  content: none !important;
  display: none !important;
}

.hero-badge::before { left: -28px; top: 28%; }
.hero-badge::after { right: -28px; top: 52%; animation-delay: .45s; }

@keyframes badge-heart-float {
  0%, 100% { transform: translateY(3px) scale(.82) rotate(-8deg); opacity: .65; }
  50% { transform: translateY(-8px) scale(1.12) rotate(8deg); opacity: 1; }
}

.hero-badge strong {
  display: block;
  color: #7ad4ff;
  font-family: var(--script);
  font-size: 1.35rem;
}

/*
 * Flavor photo fills the gold ring only.
 * Title, blurb, and Order now sit BELOW in a Made-with-love style card + hearts.
 */
.hero.has-flavor-week {
  /* Room for the Made-with-love style card sitting under the ring */
  padding-bottom: clamp(7rem, 12vw, 10rem);
}

.hero-flavor {
  position: absolute;
  z-index: 1;
  width: 480px;
  right: -180px;
  top: 20px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-flavor[hidden] {
  display: none !important;
}

.hero-flavor-orb {
  position: relative;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

.hero-flavor-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: block;
}

/* Same chocolate card language as .hero-badge — fully BELOW the ring photo */
.hero-flavor-card {
  position: relative;
  z-index: 3;
  width: min(220px, 86%);
  margin-top: 0.85rem;
  margin-right: 6.5rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid #2a6a80;
  border-radius: var(--radius-md);
  color: #e8f4fa;
  background: linear-gradient(145deg, #2a120d, #5a281b 68%, #35150f);
  box-shadow: 0 16px 30px rgba(55, 22, 12, .3), inset 0 1px 0 rgba(255,220,180,.2);
  font-family: var(--serif);
  font-weight: 700;
  text-align: center;
  pointer-events: auto;
}

.hero-flavor-card::before,
.hero-flavor-card::after {
  content: none !important;
  display: none !important;
}

.hero-flavor-card::before { left: -28px; top: 28%; }
.hero-flavor-card::after { right: -28px; top: 52%; animation-delay: .45s; }

.hero-flavor-eyebrow {
  margin: 0;
  color: #7ad4ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.hero-flavor-title {
  margin: 0.2rem 0 0.3rem;
  font-family: var(--script);
  font-size: 1.35rem;
  line-height: 1.15;
  color: #7ad4ff;
  font-weight: 600;
}

.hero-flavor-blurb {
  margin: 0 auto 0.85rem;
  max-width: 12.5rem;
  color: #e8f4fa;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 600;
  font-family: var(--serif);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-flavor-blurb[hidden] {
  display: none !important;
  margin: 0;
}

/* Sleek pink gallery-style pill — no cake-pop icon */
.flavor-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid #1490c8;
  background: linear-gradient(135deg, #3ec8ff, #1490c8 58%, #1490c8);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 144, 200, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.flavor-order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 144, 200, 0.3);
}

.building-dev-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 1.2rem 0 1.4rem;
  max-width: 22rem;
}
.building-dev-orb {
  position: relative;
  width: 220px;
  height: 220px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #06141c;
  box-shadow: 0 0 0 3px rgba(62, 200, 255, 0.35), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.building-dev-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.building-dev-orb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7ad4ff;
  font: 700 0.78rem/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.building-dev-card {
  margin-right: 0;
  width: min(220px, 100%);
  pointer-events: none;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.52);
}

.trust-item {
  padding: 1.25rem;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-head .lede {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-card,
.info-card,
.menu-category,
.form-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 28, 38, 0.82);
  box-shadow: 0 14px 36px rgba(2, 10, 16, 0.28);
}

.product-card {
  position: relative;
  min-height: 270px;
  padding: 1.6rem;
  overflow: visible;
  border: 1px solid rgba(62, 200, 255, 0.45);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(12, 36, 48, 0.96) 0%, rgba(7, 22, 30, 0.96) 70%, rgba(88, 40, 120, 0.28) 100%);
  box-shadow: 0 16px 34px rgba(2, 10, 16, 0.28), inset 0 1px 0 rgba(154, 231, 255, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card::before,
.product-card::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.product-card > * { position: relative; z-index: 1; }

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 42px rgba(62, 200, 255, 0.2), 0 0 28px rgba(168, 85, 247, 0.16);
}

.product-card:nth-child(1) {
  background: linear-gradient(155deg, rgba(18, 62, 44, 0.96) 0%, rgba(6, 22, 30, 0.96) 58%, rgba(90, 42, 130, 0.4) 100%);
  border-color: rgba(125, 255, 168, 0.45);
}
.product-card:nth-child(2) {
  background: linear-gradient(155deg, rgba(10, 48, 62, 0.96) 0%, rgba(6, 22, 30, 0.96) 55%, rgba(110, 48, 150, 0.42) 100%);
  border-color: rgba(62, 200, 255, 0.5);
}
.product-card:nth-child(2)::before,
.product-card:nth-child(2)::after { border-color: rgba(90, 210, 255, 0.55); }
.product-card:nth-child(3) {
  background: linear-gradient(155deg, rgba(16, 36, 72, 0.96) 0%, rgba(8, 20, 32, 0.96) 52%, rgba(130, 52, 168, 0.45) 100%);
  border-color: rgba(122, 160, 255, 0.5);
}
.product-card:nth-child(3)::before,
.product-card:nth-child(3)::after { border-color: rgba(140, 150, 255, 0.55); animation-delay: 0.4s; }
.product-card:nth-child(4) {
  background: linear-gradient(155deg, rgba(28, 28, 72, 0.96) 0%, rgba(10, 18, 32, 0.96) 50%, rgba(148, 58, 180, 0.5) 100%);
  border-color: rgba(192, 132, 252, 0.5);
}
.product-card:nth-child(4)::before,
.product-card:nth-child(4)::after { border-color: rgba(192, 132, 252, 0.5); animation-delay: 0.8s; }

.product-card h3,
.info-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  color: #7dffa8;
}

.product-card p,
.info-card p {
  color: #b7ebc8;
}
.product-card .text-link {
  color: #c084fc;
}

.text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--gold-deep);
  font-weight: 800;
  text-decoration: none;
}

.art-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,253,248,0.96), rgba(243,234,217,0.76));
  box-shadow: var(--shadow);
}

.art-frame {
  overflow: hidden;
  border: 10px solid var(--white);
  outline: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(55, 34, 9, 0.15);
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-copy {
  padding: clamp(1rem, 3vw, 3rem);
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.occasion-pill {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--serif);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 16px rgba(74, 42, 32, .08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.occasion-pill:nth-child(1), .occasion-pill:nth-child(5) { background: #f9d5e1; border-color: #d88aa8; }
.occasion-pill:nth-child(2), .occasion-pill:nth-child(4) { background: #f7e5b9; border-color: #d8ae5b; }
.occasion-pill:nth-child(3), .occasion-pill:nth-child(6) { background: #e6d8f4; border-color: #b493d0; }
.occasion-pill:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(74, 42, 32, .15); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
  background: rgba(255, 253, 248, 0.58);
}

.step h3 {
  margin: 0.35rem 0;
  font-family: var(--serif);
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  color: var(--white);
  border: 1px solid rgba(190, 108, 58, 0.7);
  background:
    radial-gradient(circle at 82% 18%, rgba(176, 89, 45, 0.48), transparent 27%),
    radial-gradient(circle at 18% 115%, rgba(116, 47, 25, 0.7), transparent 42%),
    linear-gradient(135deg, #160a07 0%, #32150e 42%, #542417 72%, #2a100b 100%);
  box-shadow: 0 22px 55px rgba(69, 27, 13, 0.28), inset 0 1px 0 rgba(255, 216, 177, 0.18);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 38px;
  opacity: 0.9;
  background:
    radial-gradient(ellipse at 8% 0, #8a4327 0 18px, transparent 19px),
    radial-gradient(ellipse at 26% 0, #6f301d 0 27px, transparent 28px),
    radial-gradient(ellipse at 48% 0, #9d4e2d 0 15px, transparent 16px),
    radial-gradient(ellipse at 72% 0, #71331f 0 24px, transparent 25px),
    radial-gradient(ellipse at 92% 0, #a85a34 0 17px, transparent 18px);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -96px;
  top: -150px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 31%, rgba(255, 205, 136, 0.18), transparent 10%),
    radial-gradient(circle at 42% 39%, rgba(184, 91, 42, 0.28), transparent 42%),
    radial-gradient(circle, rgba(116, 47, 25, 0.28), transparent 68%);
  transform: rotate(-12deg);
  pointer-events: none;
}

.cta-band .section-title,
.cta-band .lede,
.cta-band .button-row {
  position: relative;
  z-index: 1;
}

.cta-band .lede {
  color: rgba(255,255,255,0.72);
}

.cta-band .eyebrow {
  color: #f0b15c;
}

.page-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.page-hero .section-title,
.page-hero .lede {
  margin-inline: auto;
}

.menu-stack {
  display: grid;
  gap: 1.5rem;
}

.menu-category {
  position: relative;
  /* visible so heart-zoom orbs can expand past the card edge */
  overflow: visible;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-color: rgba(173, 107, 47, 0.35);
  background: linear-gradient(135deg, rgba(255,253,248,.98), rgba(246,232,210,.82));
  box-shadow: 0 18px 38px rgba(72, 39, 17, .12);
}
/* Decorative cake-pop graphics removed from weekly menu sections */
.menu-category::before,
.menu-category::after {
  content: none !important;
  display: none !important;
}

.menu-category > * { position: relative; z-index: 1; }
.menu-category:nth-child(2) { background: linear-gradient(135deg, rgba(255,253,248,.98), rgba(250,226,187,.86)); }
.menu-category:nth-child(3) { background: linear-gradient(135deg, rgba(255,253,248,.98), rgba(229,218,249,.84)); }
.menu-category:nth-child(4) { background: linear-gradient(135deg, rgba(255,253,248,.98), rgba(234,207,194,.84)); }

.menu-category-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.menu-category h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.price-list {
  min-width: min(100%, 310px);
  display: grid;
  gap: 0.4rem;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-weight: 800;
}

.price-line span:last-child {
  color: var(--gold-deep);
}

/* Bot honeypot — must stay off-screen and unfocused for real users */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.policy-page h2 {
  margin-top: 1.6rem;
}

.policy-page p,
.policy-page li {
  color: var(--ink-soft, #4a3a40);
  line-height: 1.55;
}

.policy-callout {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.9);
}

/* Section deals (menu) — only rendered when multi deals exist */
.deals-panel {
  min-width: min(100%, 280px);
  max-width: 320px;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  border: 1px solid #2a6a80;
  background: linear-gradient(145deg, #e8f4fa, #0d2834);
}

.deals-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c3f63;
}

.deals-list {
  display: grid;
  gap: 0.35rem;
}

.deal-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 800;
  color: #4a2030;
}

.deal-line-price {
  color: var(--gold-deep);
  font-family: var(--serif);
  white-space: nowrap;
}

.deal-line-hint {
  margin: -0.15rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f632e;
}

.menu-items {
  position: relative;
  z-index: 2;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 1rem;
}

.menu-item {
  padding: 1rem 1rem 1rem 0;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
}

.menu-item:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

/* Cute circle product photo (Flavor-of-the-Week tech, menu-scale) */
.menu-item-orb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid rgba(62, 200, 255, 0.85);
  box-shadow:
    0 0 0 7px rgba(62, 200, 255, 0.18),
    0 12px 24px rgba(92, 48, 20, 0.12);
  background:
    radial-gradient(circle at 32% 28%, #e8f4fa, #3ec8ff 72%, #123040);
  justify-self: start;
}
.menu-item-orb img,
.menu-item-orb .menu-heart-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.menu-item-orb.is-empty span {
  font-size: 1.35rem;
  color: #c45a86;
  line-height: 1;
}
.menu-item-orb.has-photo {
  border-color: #e8bb58;
  box-shadow:
    0 0 0 7px rgba(232, 187, 88, 0.2),
    0 14px 26px rgba(92, 48, 20, 0.14);
}

/* ── Heart pop-out HUD — big heart photo + soft pink glow (no reticle, no zoom) ── */
.menu-item {
  position: relative;
}
.menu-item-orb.menu-heart-zoom {
  position: relative;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  outline: none;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s ease, filter 0.22s ease;
}
.menu-item-orb.menu-heart-zoom:hover,
.menu-item-orb.menu-heart-zoom:focus-visible,
.menu-item-orb.menu-heart-zoom.is-heart-zoom {
  z-index: 6;
}
.menu-heart-zoom-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e8bb58;
  box-shadow:
    0 0 0 6px rgba(232, 187, 88, 0.18),
    0 10px 22px rgba(92, 48, 20, 0.14);
  background: radial-gradient(circle at 32% 28%, #e8f4fa, #3ec8ff 72%, #123040);
}
.menu-heart-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fixed floating heart — big pop-out, never clipped */
.menu-heart-zoom-layer[hidden] {
  display: none !important;
}
.menu-heart-zoom-layer {
  --hz-x: 50vw;
  --hz-y: 50vh;
  --hz-size: 280px;
  position: fixed;
  left: var(--hz-x);
  top: var(--hz-y);
  width: var(--hz-size);
  height: var(--hz-size);
  margin: 0;
  padding: 0;
  transform: translate(-50%, -52%) scale(0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 10050;
  transition:
    opacity 0.16s ease-out,
    transform 0.18s cubic-bezier(0.55, 0.05, 0.8, 0.25);
  will-change: transform, opacity;
  filter: drop-shadow(0 0 18px rgba(247, 160, 196, 0.75))
    drop-shadow(0 0 42px rgba(232, 120, 170, 0.45))
    drop-shadow(0 18px 36px rgba(92, 40, 60, 0.22));
}
.menu-heart-zoom-layer.is-open {
  display: block;
}
.menu-heart-zoom-layer.is-visible {
  opacity: 1;
  transform: translate(-50%, -52%) scale(1);
  transition:
    opacity 0.28s ease,
    transform 0.45s cubic-bezier(0.22, 1.28, 0.36, 1);
}
/* Soft pink glow halo */
.menu-heart-zoom-layer-glow {
  position: absolute;
  inset: -28%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 182, 214, 0.85) 0%, rgba(247, 160, 196, 0.45) 38%, transparent 68%),
    radial-gradient(circle at 50% 55%, rgba(255, 210, 230, 0.55), transparent 60%);
  filter: blur(14px);
  animation: menu-heart-glow-pulse 2.4s ease-in-out infinite;
}
.menu-heart-zoom-layer-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #3a1a28;
  /* Smooth curved heart (SVG mask) — no sharp polygon points */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M50 92 C22 70 8 52 8 34 C8 20 18 10 31 10 C40 10 46.5 15 50 24 C53.5 15 60 10 69 10 C82 10 92 20 92 34 C92 52 78 70 50 92 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M50 92 C22 70 8 52 8 34 C8 20 18 10 31 10 C40 10 46.5 15 50 24 C53.5 15 60 10 69 10 C82 10 92 20 92 34 C92 52 78 70 50 92 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  /* Soft pink rim glow — sits under the masked heart via parent drop-shadow */
  box-shadow: none;
}
/* Natural photo fill — no digital zoom crop */
.menu-heart-zoom-layer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: none;
}

@keyframes menu-heart-glow-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-heart-zoom-layer,
  .menu-heart-zoom-layer.is-visible,
  .menu-item-orb.menu-heart-zoom,
  .menu-heart-zoom-layer-glow {
    transition: none !important;
    animation: none !important;
  }
}

html.dessert-dark .menu-heart-zoom-frame,
body.dessert-dark .menu-heart-zoom-frame {
  border-color: #f0c070;
  box-shadow:
    0 0 0 6px rgba(232, 187, 88, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.35);
}
html.dessert-dark .menu-heart-zoom-layer,
body.dessert-dark .menu-heart-zoom-layer {
  filter: drop-shadow(0 0 20px rgba(255, 160, 200, 0.7))
    drop-shadow(0 0 48px rgba(232, 100, 160, 0.4))
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

.menu-item .menu-add-btn {
  justify-self: end;
}
@media (max-width: 640px) {
  .menu-item {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "orb copy"
      "orb btn";
    gap: 0.55rem 0.75rem;
  }
  .menu-item-orb {
    grid-area: orb;
    width: 68px;
    height: 68px;
    align-self: start;
  }
  .menu-item-copy { grid-area: copy; }
  .menu-item .menu-add-btn {
    grid-area: btn;
    justify-self: start;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
  }
}

.menu-item-copy {
  min-width: 0;
  flex: 1;
}

/* About Us page — hero + round portrait (Flavor of the Week circle tech) */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.25rem);
}
.about-hero::before {
  content: none;
}
.about-meet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.75rem);
  align-items: center;
}
.about-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.about-portrait-orb {
  position: relative;
  width: min(300px, 82vw);
  height: min(300px, 82vw);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(62, 200, 255, 0.9);
  box-shadow:
    0 0 0 14px rgba(62, 200, 255, 0.18),
    0 0 0 30px rgba(168, 85, 247, 0.12),
    0 22px 48px rgba(2, 10, 16, 0.28);
  background:
    radial-gradient(circle at 30% 25%, #e8f4fa, #3ec8ff 70%, #7dffa8);
}
.about-portrait-orb::before,
.about-portrait-orb::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  background: #3ec8ff;
  clip-path: polygon(50% 100%, 0 42%, 8% 18%, 28% 8%, 50% 25%, 72% 8%, 92% 18%, 100% 42%);
  filter: drop-shadow(0 4px 5px rgba(20, 144, 200, 0.28));
  animation: badge-heart-float 1.8s ease-in-out infinite;
  pointer-events: none;
}
.about-portrait-orb::before { left: 8%; top: 14%; }
.about-portrait-orb::after { right: 10%; bottom: 16%; animation-delay: 0.45s; }
.about-portrait-orb.has-photo {
  border-color: #e8bb58;
  box-shadow:
    0 0 0 14px rgba(232, 187, 88, 0.18),
    0 0 0 30px rgba(62, 200, 255, 0.12),
    0 24px 52px rgba(55, 34, 9, 0.18);
}
.about-portrait-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 2;
}
.about-portrait-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 12%;
}
.about-portrait-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.92;
}
.about-portrait-card {
  width: min(220px, 90%);
  padding: 0.75rem 1rem 0.85rem;
  border-radius: 18px;
  border: 1px solid #2a6a80;
  color: #e8f4fa;
  background: linear-gradient(145deg, #2a120d, #5a281b 68%, #35150f);
  box-shadow: 0 14px 28px rgba(55, 22, 12, 0.28), inset 0 1px 0 rgba(255, 220, 180, 0.2);
  text-align: center;
}
.about-portrait-card .eyebrow {
  margin: 0;
  color: #7ad4ff;
  font-size: 0.68rem;
}
.about-portrait-caption {
  margin: 0.15rem 0 0;
  font-family: var(--script);
  font-size: 1.35rem;
  color: #7ad4ff;
  font-weight: 600;
  line-height: 1.15;
}
.about-portrait-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 243, 230, 0.82);
  line-height: 1.35;
}
.about-copy .section-title {
  margin-top: 0.25rem;
}
.about-page {
  position: relative;
}
.about-page::before,
.about-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}
.about-page::before {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(62, 200, 255, 0.16), transparent 68%);
}
.about-page::after {
  width: 32rem;
  height: 32rem;
  right: -10rem;
  top: 28rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 70%);
}
.about-page > * { position: relative; z-index: 1; }
.about-meet {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  padding: 1.6rem 1.7rem 1.8rem;
}
.about-copy .about-voice p,
.about-life .about-voice p,
.about-now-card .about-voice p {
  margin: 0 0 0.85rem;
  color: #d8c4ff;
  font-size: 1.08rem;
  line-height: 1.65;
}
.about-copy .about-voice p:last-child,
.about-life .about-voice p:last-child,
.about-now-card .about-voice p:last-child {
  margin-bottom: 0;
}
.about-place:empty { display: none; }
.about-place {
  margin: 1rem 0 0;
  color: #7ad4ff;
}
.about-radiate {
  position: relative;
  overflow: visible;
  padding: 1.45rem 1.5rem 1.55rem;
  border: 1px solid rgba(125, 255, 168, 0.38);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(10, 42, 56, 0.96) 0%, rgba(8, 22, 34, 0.96) 58%, rgba(72, 32, 110, 0.32) 100%);
}
.about-radiate::before,
.about-radiate::after {
  content: none;
}
@media (prefers-reduced-motion: no-preference) {
  .about-radiate,
  .about-page .about-orb {
    animation: about-alchemy-glow 7.5s ease-in-out infinite;
  }
}
@keyframes about-alchemy-glow {
  0%, 100% {
    box-shadow:
      0 0 16px rgba(125, 255, 168, 0.42),
      0 0 34px rgba(168, 85, 247, 0.16);
    border-color: rgba(125, 255, 168, 0.52);
  }
  50% {
    box-shadow:
      0 0 20px rgba(168, 85, 247, 0.5),
      0 0 40px rgba(125, 255, 168, 0.16);
    border-color: rgba(192, 132, 252, 0.58);
  }
}
.about-life-chapters {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-life-chapter {
  --life-row: 22.5rem;
  display: grid;
  grid-template-columns: var(--life-row) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}
.about-life-photos {
  display: none;
}
.about-life-shot {
  margin: 0;
  width: 100%;
  height: var(--life-row);
  min-height: var(--life-row);
  max-height: var(--life-row);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(62, 200, 255, 0.48);
  background: linear-gradient(165deg, rgba(10, 42, 62, 0.72), rgba(8, 18, 28, 0.92));
  position: relative;
}
.about-page .hero-say.about-life-say {
  width: 100%;
  height: var(--life-row);
  min-height: var(--life-row);
  max-height: var(--life-row);
}
.about-life-shot.is-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: rgba(125, 255, 168, 0.4);
  box-shadow: 0 0 18px rgba(62, 200, 255, 0.1);
}
.about-life-empty {
  margin: 0;
  color: #7ad4ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-life-shot:not(.is-empty) .about-life-empty { display: none; }
.about-life-shot.is-empty img { display: none; }
.about-life-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-life-shot figcaption {
  display: none;
}
@media (max-width: 800px) {
  .about-life-chapter {
    --life-row: 14rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-life-shot {
    max-width: none;
  }
}
.about-now-grid,
.about-built-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.about-now-card h3,
.about-built-card h3 {
  margin: 0.2rem 0 0.55rem;
  color: #7dffa8;
  font-size: 1.35rem;
}
.about-built-card {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: 11rem;
}
.about-built-card p {
  margin: 0;
  color: #c5d8e2;
}
.about-built-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
@media (max-width: 900px) {
  .about-meet,
  .about-now-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait { justify-self: center; }
}
.about-copy .button-row {
  margin-top: 1.35rem;
}
@media (max-width: 760px) {
  .about-meet {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about-copy {
    text-align: left;
    width: 100%;
  }
  .about-copy .eyebrow {
    text-align: center;
  }
  .menu-item-orb {
    width: 64px;
    height: 64px;
  }
}

.menu-item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.menu-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.menu-item-price {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 101, 16, 0.28);
  background: rgba(255, 248, 230, 0.9);
  color: var(--gold-deep);
  font-weight: 900;
  font-size: 0.92rem;
}

.menu-item p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.menu-add-btn {
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border: 1px solid #2a6a80 !important;
  border-radius: 999px;
  color: #5a2038 !important;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.7) 0 12%, transparent 14%),
    linear-gradient(135deg, #0b2430 0%, #1a3a48 22%, #3ec8ff 55%, #1490c8 100%) !important;
  box-shadow:
    0 10px 22px rgba(20, 144, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease;
}

.menu-add-btn::before {
  content: "♡";
  position: absolute;
  right: 0.55rem;
  top: 0.15rem;
  z-index: 0;
  color: rgba(223, 130, 162, 0.35);
  font-size: 1.35rem;
  pointer-events: none;
  animation: menu-add-heart 1.8s ease-in-out infinite;
}

.menu-add-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: saturate(1.08);
  box-shadow:
    0 14px 28px rgba(20, 144, 200, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.menu-add-btn:active {
  transform: translateY(0) scale(0.98);
}

.menu-add-btn.menu-add-pulse {
  animation: menu-add-pop 450ms cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

@keyframes menu-add-heart {
  0%, 100% { transform: scale(0.9) translateY(0); opacity: 0.45; }
  50% { transform: scale(1.15) translateY(-2px); opacity: 0.85; }
}

@keyframes menu-add-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08) rotate(-2deg); }
  100% { transform: scale(1); }
}

.print-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.artwork-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.artwork-card a {
  display: block;
}

.artwork-card img {
  width: 100%;
  transition: transform 250ms ease;
}

.artwork-card:hover img {
  transform: scale(1.015);
}

.artwork-caption {
  padding: 1rem 1.15rem;
}

.artwork-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.artwork-caption span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Floating bubble gallery field ── */
.bubble-field {
  position: relative;
  width: 100%;
  min-height: min(62vh, 560px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(62, 200, 255, 0.45);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 180, 210, 0.35), transparent 42%),
    radial-gradient(ellipse at 85% 80%, rgba(232, 187, 88, 0.22), transparent 40%),
    linear-gradient(165deg, #2a1620 0%, #1a1016 48%, #24141c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 215, 232, 0.1),
    0 20px 50px rgba(40, 16, 28, 0.2);
}

/* Public page: full-page open sky — bounce across the whole stage */
.gallery-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 210, 225, 0.55), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 236, 190, 0.4), transparent 36%),
    linear-gradient(180deg, #e8f4fa 0%, #ffeef5 45%, #fff6ec 100%);
}

.gallery-page .gallery-main {
  padding: 0;
}

.gallery-page .gallery-sky-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 7.5rem);
  display: flex;
  flex-direction: column;
}

.gallery-page .gallery-sky-title {
  position: absolute;
  z-index: 5;
  top: clamp(1rem, 3vw, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 2rem));
  text-align: center;
  pointer-events: none;
}

.gallery-page .gallery-sky-title .section-title {
  margin: 0;
  padding: 0.65rem 1.25rem;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 248, 251, 0.92), rgba(255, 233, 242, 0.88));
  border: 1px solid rgba(62, 200, 255, 0.45);
  box-shadow:
    0 12px 30px rgba(20, 144, 200, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #4a2030;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.2;
}

.gallery-page .gallery-sky-title .section-title .script {
  color: #3ec8ff;
}

.gallery-page .gallery-sky-stage > .gallery-blurb {
  position: relative;
  z-index: 4;
  margin: 0 auto 1.25rem;
  width: min(40rem, calc(100% - 2rem));
}

.bubble-field.bubble-field-open {
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100vh - 7.5rem);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 200, 220, 0.5), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(255, 230, 170, 0.38), transparent 32%),
    radial-gradient(circle at 70% 88%, rgba(62, 200, 255, 0.32), transparent 38%),
    radial-gradient(circle at 28% 78%, rgba(255, 248, 220, 0.45), transparent 36%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(165deg, #e8f4fa 0%, #0d2834 40%, #fff0e4 75%, #fde8f0 100%);
  box-shadow: none;
}

.bubble-field.bubble-field-open::before,
.bubble-field.bubble-field-open::after {
  content: "♡";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: rgba(223, 130, 162, 0.2);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1;
  animation: gallery-heart-drift 5.5s ease-in-out infinite;
}

.bubble-field.bubble-field-open::before {
  top: 14%;
  left: 6%;
}

.bubble-field.bubble-field-open::after {
  right: 7%;
  bottom: 16%;
  animation-delay: 1.4s;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: rgba(232, 187, 88, 0.26);
}

@keyframes gallery-heart-drift {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-12px) scale(1.1);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-field.bubble-field-open::before,
  .bubble-field.bubble-field-open::after {
    animation: none;
  }
}

.gallery-page .gallery-hero-cute {
  padding-bottom: 1.25rem;
}

.gallery-page .gallery-hero-cute .section-title .script {
  color: #3ec8ff;
}

.gallery-page .gallery-bubble-section {
  padding-top: 0.5rem;
}

.gallery-page .bubble-gallery-wrap {
  max-width: none;
  width: 100%;
  padding: 0;
}

.bubble-field-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(62vh, 560px);
  min-height: 360px;
}

.bubble-field.bubble-field-open .bubble-field-stage {
  height: 100%;
  min-height: calc(100vh - 7.5rem);
}

.bubble-field-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  color: rgba(255, 215, 232, 0.72);
  padding: 1.5rem;
  font-weight: 650;
}

.bubble-field-open .bubble-field-empty {
  color: #8c5a6e;
}

.bubble-field-empty strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: #ffd7e8;
  font-weight: 700;
}

.bubble-field-open .bubble-field-empty strong {
  color: #8c3f63;
}

.gallery-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 1;
  will-change: left, top, transform;
}

.gallery-bubble-orb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 215, 232, 0.55);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(62, 200, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: #3a2430;
  transition:
    transform 240ms cubic-bezier(0.2, 0.85, 0.25, 1),
    box-shadow 240ms ease,
    border-radius 240ms ease,
    border-color 180ms ease;
}

.bubble-field-open .gallery-bubble-orb {
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 14px 32px rgba(20, 144, 200, 0.2),
    0 0 0 4px rgba(62, 200, 255, 0.35),
    0 0 24px rgba(232, 187, 88, 0.15);
}

/* Never show filename/title pills on the public bubble sky */
.bubble-field-open .gallery-bubble-caption {
  display: none !important;
}

.gallery-bubble-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 280ms ease;
}

.gallery-bubble-caption {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  min-width: max-content;
  max-width: 11rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 248, 251, 0.96);
  color: #6a2946;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: opacity 160ms ease, transform 160ms ease;
}

.gallery-bubble.is-hovered,
.gallery-bubble:hover,
.gallery-bubble:focus-visible {
  z-index: 30;
  outline: none;
}

.gallery-bubble.is-hovered .gallery-bubble-orb,
.gallery-bubble:hover .gallery-bubble-orb,
.gallery-bubble:focus-visible .gallery-bubble-orb {
  transform: scale(2.45);
  border-radius: 22%;
  border-color: #ffc0d8;
  border-width: 4px;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.85),
    0 0 0 14px rgba(62, 200, 255, 0.55),
    0 0 0 22px rgba(223, 130, 162, 0.28),
    0 0 36px 8px rgba(62, 200, 255, 0.75),
    0 0 70px 18px rgba(223, 130, 162, 0.45),
    0 0 100px 28px rgba(255, 180, 210, 0.35),
    0 28px 56px rgba(20, 144, 200, 0.4);
  filter: saturate(1.08);
}

.gallery-bubble.is-hovered .gallery-bubble-orb img,
.gallery-bubble:hover .gallery-bubble-orb img,
.gallery-bubble:focus-visible .gallery-bubble-orb img {
  transform: scale(1.08);
}

/* Extra pink bloom on public full-page sky */
.bubble-field-open .gallery-bubble.is-hovered .gallery-bubble-orb,
.bubble-field-open .gallery-bubble:hover .gallery-bubble-orb,
.bubble-field-open .gallery-bubble:focus-visible .gallery-bubble-orb {
  transform: scale(2.65);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.92),
    0 0 0 16px rgba(255, 192, 216, 0.65),
    0 0 0 26px rgba(62, 200, 255, 0.38),
    0 0 42px 12px rgba(62, 200, 255, 0.85),
    0 0 80px 24px rgba(223, 130, 162, 0.55),
    0 0 120px 36px rgba(255, 180, 210, 0.4),
    0 32px 64px rgba(20, 144, 200, 0.42);
}

.gallery-bubble.is-hovered .gallery-bubble-caption,
.gallery-bubble:hover .gallery-bubble-caption,
.gallery-bubble:focus-visible .gallery-bubble-caption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Pink love-note tray — per-photo blurb on hover */
.bubble-hover-blurb {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 40;
  max-width: min(34rem, calc(100% - 2rem));
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid #3ec8ff;
  background: linear-gradient(135deg, #0b2430 0%, #3ec8ff 45%, #123040 100%);
  color: #6a2946;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  box-shadow:
    0 14px 34px rgba(20, 144, 200, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.bubble-hover-blurb.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gallery-blurb {
  margin: 1.1rem auto 0;
  max-width: 42rem;
  text-align: center;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(62, 200, 255, 0.4);
  background: linear-gradient(145deg, #e8f4fa, #0d2834);
  color: #6a2946;
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(20, 144, 200, 0.1);
}

.gallery-blurb[hidden],
.gallery-blurb:not(.is-visible) {
  display: none !important;
}

.gallery-page .bubble-gallery-wrap {
  margin-top: 0.5rem;
}

.gallery-page .bubble-gallery-wrap .section-head {
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .bubble-field,
  .bubble-field-stage {
    min-height: 320px;
    height: 52vh;
  }

  .gallery-page .gallery-sky-stage,
  .bubble-field.bubble-field-open,
  .bubble-field.bubble-field-open .bubble-field-stage {
    min-height: calc(100vh - 6.5rem);
  }

  .gallery-page .gallery-sky-title .section-title {
    font-size: 1.35rem;
    padding: 0.55rem 0.95rem;
  }

  .gallery-bubble.is-hovered .gallery-bubble-orb,
  .gallery-bubble:hover .gallery-bubble-orb,
  .gallery-bubble:focus-visible .gallery-bubble-orb {
    transform: scale(2.05);
  }

  .bubble-field-open .gallery-bubble.is-hovered .gallery-bubble-orb,
  .bubble-field-open .gallery-bubble:hover .gallery-bubble-orb,
  .bubble-field-open .gallery-bubble:focus-visible .gallery-bubble-orb {
    transform: scale(2.2);
  }

  .bubble-hover-blurb {
    border-radius: 18px;
    font-size: 0.88rem;
    bottom: 0.65rem;
  }
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 1.5rem;
}

.form-card {
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.form-section + .form-section {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.form-section h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field-wide {
  grid-column: 1 / -1;
}
.field[hidden] {
  display: none !important;
}

.field label,
.field legend {
  font-weight: 800;
}

.field small,
.form-note {
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.76rem 0.88rem;
  border: 1px solid rgba(111, 102, 88, 0.35);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(213, 155, 39, 0.24);
  border-color: var(--gold-deep);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.6);
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.2rem;
}

/* ── Custom order flow (phone-first, cute stepped form) ── */
.order-hero {
  padding-bottom: 1.25rem;
}
.order-hero .lede {
  max-width: 38rem;
  margin-inline: auto;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.55;
}
.order-welcome {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 38rem;
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(62, 200, 255, 0.55);
  background: linear-gradient(145deg, #0d2834, #fff8e8);
  box-shadow: 0 8px 22px rgba(196, 90, 134, 0.1);
  text-align: left;
}
.order-welcome[hidden] {
  display: none !important;
}
.order-welcome-heart {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #1490c8;
}
.order-welcome p {
  margin: 0;
  color: #6a3048;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}
.order-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}
.order-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 200, 255, 0.45);
  background: rgba(255, 240, 246, 0.85);
  color: #7a3050;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.order-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #3ec8ff, #1490c8);
  color: #e8f4fa;
  font-size: 0.72rem;
}
.section-step {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c45a86;
}
.section-lede {
  margin: 0 0 1rem;
  color: #8c5a6e;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 40rem;
}
.form-section-submit .button-row {
  margin-top: 1.1rem;
}
.order-flow .form-section + .form-section {
  margin-top: 1.6rem;
  padding-top: 1.5rem;
}
@media (max-width: 760px) {
  .order-hero {
    padding-top: 2.5rem;
    padding-bottom: 0.75rem;
    text-align: left;
  }
  .order-hero .section-title,
  .order-hero .lede {
    margin-inline: 0;
    text-align: left;
  }
  .order-steps {
    justify-content: flex-start;
  }
  .order-welcome {
    margin-inline: 0;
  }
  .order-flow .form-card {
    padding: 1.1rem 1rem 1.5rem;
  }
  .order-flow .form-section h2 {
    font-size: 1.4rem;
  }
  .order-flow .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom cake-pop flavor box + custom cakes builder */
.cyber-custom-flavor-block {
  margin-top: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px dashed rgba(62, 200, 255, 0.65);
  background: linear-gradient(145deg, rgba(255, 240, 246, 0.9), rgba(255, 248, 232, 0.75));
}
.cyber-custom-flavor-list {
  display: grid;
  gap: 0.55rem;
}
.cyber-custom-flavor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(62, 200, 255, 0.35);
  background: rgba(255, 255, 255, 0.8);
}
.cyber-custom-flavor-row.is-on {
  border-color: rgba(232, 187, 88, 0.55);
  box-shadow: 0 6px 16px rgba(20, 144, 200, 0.1);
}
.cyber-custom-flavor-fields {
  min-width: 0;
}
.cyber-custom-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45a7d;
}
.cyber-custom-flavor-row input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 90, 134, 0.35);
  background: #fffdfb;
  font: inherit;
  font-weight: 700;
  color: #3a2030;
}
.cyber-custom-flavor-row input[type="text"].is-needed {
  border-color: #1490c8;
  outline: 2px solid rgba(62, 200, 255, 0.45);
}
.cyber-add-custom {
  margin-top: 0.65rem;
  min-height: 40px;
  width: 100%;
  border-radius: 999px;
  font-size: 0.88rem;
}
.cake-builder {
  display: grid;
  gap: 0.75rem;
}
.cake-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.cake-builder-grid .field-wide {
  grid-column: 1 / -1;
}
.cake-builder-grid .field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #7a3050;
}
.cake-builder-grid select,
.cake-builder-grid input[type="text"],
.cake-builder-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 90, 134, 0.35);
  background: #fffdfb;
  font: inherit;
  color: #3a2030;
}
.cake-builder-grid textarea {
  min-height: 72px;
  resize: vertical;
}
.cake-builder-grid small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8c5a6e;
  line-height: 1.35;
}
.cake-cupcake-qty {
  width: fit-content;
}
.cake-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.cake-photo-thumb {
  margin: 0;
  width: 88px;
}
.cake-photo-thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(62, 200, 255, 0.5);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.cake-photo-thumb figcaption {
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #8c5a6e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .cyber-custom-flavor-row {
    grid-template-columns: 1fr;
  }
  .cake-builder-grid {
    grid-template-columns: 1fr;
  }
}
html.dessert-dark .cyber-custom-flavor-block,
html.dessert-dark .cyber-custom-flavor-row,
html.dessert-dark .cake-builder-grid select,
html.dessert-dark .cake-builder-grid input,
html.dessert-dark .cake-builder-grid textarea,
body.dessert-dark .cyber-custom-flavor-block,
body.dessert-dark .cyber-custom-flavor-row,
body.dessert-dark .cake-builder-grid select,
body.dessert-dark .cake-builder-grid input,
body.dessert-dark .cake-builder-grid textarea {
  background: rgba(40, 22, 32, 0.95);
  border-color: rgba(62, 200, 255, 0.35);
  color: #fff4f8;
}
html.dessert-dark .cyber-custom-label,
html.dessert-dark .cake-builder-grid .field label,
body.dessert-dark .cyber-custom-label,
body.dessert-dark .cake-builder-grid .field label {
  color: #ffb7d0;
}

/* ── Pink treat pods (custom desserts) ── */
.cyber-section {
  position: relative;
}
.cyber-lede {
  margin: 0 0 1rem;
  color: #8c5a6e;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42rem;
}
.cyber-policy {
  margin: 0 0 1.1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(62, 200, 255, 0.65);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 182, 210, 0.45), transparent 50%),
    linear-gradient(145deg, #0d2834, #ffe8f0 55%, #fff6e8);
  box-shadow: 0 8px 22px rgba(196, 90, 134, 0.1);
}
.cyber-policy-title {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #9c3d64;
  font-weight: 700;
}
.cyber-policy ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #5a3040;
  font-size: 0.92rem;
  line-height: 1.5;
}
.cyber-policy li + li {
  margin-top: 0.35rem;
}
.fulfill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (max-width: 560px) {
  .fulfill-grid { grid-template-columns: 1fr; }
}
.fulfill-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 2px solid rgba(62, 200, 255, 0.45);
  background: linear-gradient(145deg, #fff9fc, #ffeef5);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.fulfill-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fulfill-card:hover {
  border-color: rgba(62, 200, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(62, 200, 255, 0.2);
}
.fulfill-card.is-on,
.fulfill-card:has(input:checked) {
  border-color: #e89bb8;
  background: linear-gradient(145deg, #0b2430, #0d2834);
  box-shadow: 0 0 0 3px rgba(62, 200, 255, 0.28), 0 8px 20px rgba(196, 90, 134, 0.12);
}
.fulfill-emoji { font-size: 1.45rem; line-height: 1; }
.fulfill-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: #7a3050;
}
.fulfill-note {
  font-size: 0.82rem;
  font-weight: 650;
  color: #8c5a6e;
  line-height: 1.35;
}
.cyber-mind {
  display: grid;
  gap: 0.85rem;
}
.cyber-pod {
  border-radius: 20px;
  border: 1.5px solid rgba(62, 200, 255, 0.55);
  background:
    linear-gradient(145deg, #e8f4fa, #ffeef5 55%, #fff6fa);
  box-shadow:
    0 10px 28px rgba(196, 90, 134, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.cyber-pod[data-open="true"] {
  border-color: rgba(232, 130, 170, 0.85);
  box-shadow:
    0 0 0 2px rgba(62, 200, 255, 0.45),
    0 0 32px rgba(62, 200, 255, 0.35),
    0 14px 34px rgba(196, 90, 134, 0.14);
}
.cyber-pod[data-active="true"] {
  border-color: rgba(232, 120, 165, 0.75);
}
.cyber-pod-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.05rem 1.05rem;
  border: 0;
  background:
    linear-gradient(105deg, rgba(255, 182, 210, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 236, 244, 0.35));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
  min-height: 76px;
}
.cyber-pod-trigger:hover {
  background:
    linear-gradient(105deg, rgba(255, 170, 205, 0.35), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 230, 240, 0.45));
}
.cyber-pod-trigger:focus-visible {
  outline: 3px solid rgba(232, 130, 170, 0.45);
  outline-offset: -3px;
}
.cyber-pod-glyph {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 900;
  color: #1a1410;
  background: linear-gradient(145deg, #3ec8ff, #3ec8ff 45%, #123040);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.65),
    0 0 16px rgba(62, 200, 255, 0.55),
    0 6px 14px rgba(196, 90, 134, 0.28);
  font-family: ui-monospace, Consolas, monospace;
}
.cyber-pod[data-active="true"] .cyber-pod-glyph {
  background: linear-gradient(145deg, #3ec8ff, #3ec8ff 40%, #e8bb58);
}
.cyber-pod-copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}
.cyber-pod-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.cyber-pod-meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cyber-pod[data-active="true"] .cyber-pod-meta {
  color: #9c3d64;
}
.cyber-pod-badge {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 200, 255, 0.55);
  background: #0b2430;
  color: #9c3d64;
  white-space: nowrap;
}
.cyber-pod[data-active="true"] .cyber-pod-badge {
  background: linear-gradient(135deg, #0b2430, #0d2834);
  border-color: #e8a0c0;
  color: #7a3050;
}
.cyber-pod-chevron {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #8c3f63;
  border: 1px solid rgba(196, 90, 134, 0.3);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 280ms cubic-bezier(0.2, 0.85, 0.25, 1);
}
.cyber-pod[data-open="true"] .cyber-pod-chevron {
  transform: rotate(180deg);
  background: linear-gradient(145deg, #0b2430, #0d2834);
}
.cyber-pod-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.2, 0.85, 0.25, 1);
}
.cyber-pod[data-open="true"] .cyber-pod-panel {
  grid-template-rows: 1fr;
}
.cyber-pod-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.cyber-pod-panel-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(62, 200, 255, 0.35);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 170, 205, 0.28), transparent 52%),
    radial-gradient(ellipse at 90% 20%, rgba(255, 214, 232, 0.35), transparent 48%),
    linear-gradient(180deg, rgba(255, 240, 246, 0.9), rgba(255, 252, 253, 0.95));
}
.cyber-pod[data-open="true"] .cyber-pod-panel-body {
  padding-top: 0.9rem;
}
.cyber-matrix-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c3f63;
}
.cyber-matrix-label span {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
}
.cyber-flavor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.cyber-flavor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 52px;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(62, 200, 255, 0.4);
  background: linear-gradient(145deg, #fff9fc, #ffeef5);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.cyber-flavor-row.is-on {
  border-color: rgba(232, 120, 165, 0.7);
  background: linear-gradient(145deg, #0b2430, #0d2834);
  box-shadow: 0 0 0 2px rgba(62, 200, 255, 0.25), 0 4px 14px rgba(196, 90, 134, 0.1);
}
.cyber-flavor-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #5a3040;
}
.cyber-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 200, 255, 0.55);
  background: #e8f4fa;
}
.cyber-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  color: #7a3050;
  background: linear-gradient(145deg, #0b2430, #123040);
}
.cyber-qty button:hover {
  filter: brightness(1.05);
}
.cyber-qty button:focus-visible {
  outline: 2px solid rgba(232, 130, 170, 0.55);
  outline-offset: 1px;
}
.cyber-qty input {
  width: 2.6rem;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 900;
  font-size: 1rem;
  color: #7a3050;
  font-variant-numeric: tabular-nums;
}
.cyber-qty input:focus {
  outline: none;
}
.cyber-pod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.cyber-pod-actions .button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.88rem;
}
.cyber-pod-actions .cyber-lock {
  background: linear-gradient(135deg, #3ec8ff, #e8bb58) !important;
  color: #1a1410 !important;
  border: none !important;
}
.cyber-summary {
  margin: 0.9rem 0 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px dashed rgba(196, 90, 134, 0.35);
  background: linear-gradient(135deg, rgba(255, 244, 248, 0.9), rgba(255, 248, 232, 0.75));
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.cyber-summary[data-empty="true"] {
  color: var(--muted);
  font-weight: 600;
  font-style: italic;
}
@media (max-width: 520px) {
  .cyber-pod-trigger {
    grid-template-columns: auto 1fr auto;
  }
  .cyber-pod-badge {
    display: none;
  }
  .cyber-pod-glyph {
    width: 3rem;
    height: 3rem;
    font-size: 1.4rem;
  }
  .cyber-flavor-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .cyber-qty {
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cyber-pod,
  .cyber-pod-panel,
  .cyber-pod-chevron,
  .cyber-chip,
  .cyber-chip .cyber-dot {
    transition: none;
  }
}

.form-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}
.contact-socials {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0.35rem;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(62, 200, 255, 0.28);
  border-radius: 18px;
  text-decoration: none;
  background: rgba(4, 16, 24, 0.45);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.contact-social:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 255, 168, 0.45);
  box-shadow: 0 0 18px rgba(62, 200, 255, 0.16), 0 0 24px rgba(168, 85, 247, 0.1);
}
.contact-social .social-btn {
  width: 48px;
  height: 48px;
}
.contact-social-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.contact-social-copy strong {
  color: #7dffa8;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.contact-social-copy span {
  color: #9ec0ce;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
#contact-links:not(:empty) {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(62, 200, 255, 0.16);
}

.hire-lede {
  max-width: 38rem;
}

.hire-pitch {
  max-width: 42rem;
  margin: 1.15rem auto 0;
  text-align: left;
}

.hire-pitch p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hire-hero-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.hire-proof .product-card {
  min-height: 0;
}

.hire-page .form-card .section-title {
  margin: 0.2rem 0 0.55rem;
}

.hire-page .form-note {
  margin: 0 0 1.15rem;
}

.hire-page .section-head {
  display: block;
}

.hire-page .section-head > * {
  min-width: 0;
  max-width: 100%;
}

.hire-page .section-title,
.hire-page .lede,
.hire-page .hire-pitch {
  max-width: 100%;
  overflow-wrap: break-word;
}

.hire-page .step {
  border: 1px solid rgba(62, 200, 255, 0.32);
  border-top: 3px solid #7dffa8;
  background: linear-gradient(180deg, rgba(8, 36, 48, 0.92), rgba(8, 24, 34, 0.92));
  box-shadow: 0 14px 32px rgba(2, 10, 16, 0.28), 0 0 18px rgba(62, 200, 255, 0.08);
}

.hire-page .step p {
  color: #9ec0ce;
}

@media (max-width: 640px) {
  .hire-page .section-title {
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
  }
  .hire-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hire-hero-actions .button {
    width: 100%;
    justify-content: center;
  }
}

.info-card {
  padding: 1.35rem;
}

.info-card ul {
  padding-left: 1.2rem;
}

.status-box {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.status-box[data-state="success"] {
  display: block;
  color: #173d1d;
  background: #e5f4e7;
}

.status-box[data-state="error"] {
  display: block;
  color: #6b1c16;
  background: #f7e4e1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-toolbar .field {
  min-width: min(100%, 320px);
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-card {
  padding: 1.25rem;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.order-id {
  color: var(--gold-deep);
  font-weight: 900;
}

.status-chip {
  display: inline-flex;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: var(--ivory-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}

.admin-meta div {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 5rem;
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.74);
  border-top: 5px solid #d987a5;
  background:
    radial-gradient(circle at 12% 0%, rgba(177, 86, 53, .26), transparent 26%),
    radial-gradient(circle at 88% 100%, rgba(218, 155, 55, .16), transparent 30%),
    linear-gradient(145deg, #160b08, #2d1510 58%, #1b0d0b);
  box-shadow: inset 0 1px 0 rgba(255,215,180,.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem;
  border: 1px solid rgba(245, 187, 104, .28);
  border-radius: 22px;
  background: rgba(255, 243, 230, .06);
}

.footer-logo img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #7ad4ff;
  box-shadow: 0 0 0 4px rgba(243,154,187,.18), 0 10px 24px rgba(0,0,0,.25);
}

.footer-logo strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: .8rem 1rem;
  border-left: 2px solid rgba(243, 154, 187, .42);
}

.footer-links strong {
  margin-bottom: 0.35rem;
  color: #7ad4ff;
  font-family: var(--serif);
}

.footer-links a {
  text-decoration: none;
  width: fit-content;
  color: rgba(255,247,240,.76);
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover { color: #f9b6cf; transform: translateX(4px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.84rem;
  color: rgba(255,247,240,.62);
}

dialog {
  width: min(94vw, 980px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0,0,0,0.35);
}

dialog::backdrop {
  background: rgba(16, 13, 9, 0.78);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 0.75rem;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 1.2rem;
}

.dialog-image {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .art-panel,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .display,
  .hero-copy .lede {
    margin-inline: auto;
  }

  .button-row {
    justify-content: center;
  }

  .hero-art {
    width: min(100%, 36rem);
    margin: 0 auto;
    justify-self: center;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  /* On tablet/phone, badge sits above the copy without shrinking type */
  .hero-badge {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(200px, 70vw);
    max-width: 200px;
    margin: 0 auto 1.25rem;
  }

  .hero-flavor {
    position: relative;
    right: auto;
    top: auto;
    width: min(300px, 78vw);
    margin: 1.5rem auto 0;
    z-index: 1;
    align-items: center;
  }

  .hero-flavor-orb {
    width: min(300px, 78vw);
    height: min(300px, 78vw);
  }

  .hero-flavor-card {
    margin-top: 0.85rem;
    margin-right: 0;
    width: min(240px, 92%);
  }

  .hero.has-flavor-week {
    padding-bottom: 4rem;
  }

  .hero-art {
    justify-self: center;
    max-width: min(36rem, 94vw);
  }
  .hero-art {
    gap: 1.8rem;
  }
  .hero-portrait {
    width: min(300px, 78vw);
  }
  .hero-logo-card {
    width: min(292px, 76vw) !important;
    max-width: 292px !important;
  }
  .hero-say {
    height: 14rem;
    min-height: 14rem;
    max-height: 14rem;
  }

  .card-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .occasion-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-aside {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-strip {
    font-size: 0.68rem;
  }

  .brand-wordmark {
    display: none;
  }

  .header-social {
    gap: 0.4rem;
  }

  .social-btn {
    width: 46px;
    height: 46px;
  }

  .social-btn svg,
  .social-facebook-glyph {
    width: 24px;
    height: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 122px 1rem auto;
    display: none;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav .button {
    width: 100%;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-badge {
    max-width: 165px;
    font-size: 0.86rem;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 4rem 0;
  }

  .section-head,
  .menu-category-head,
  .admin-card-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .process-grid,
  .print-grid,
  .gallery-grid,
  .form-grid,
  .checkbox-grid,
  .footer-grid,
  .form-aside {
    grid-template-columns: 1fr;
  }

  .menu-items {
    grid-template-columns: 1fr;
  }

  .menu-item,
  .menu-item:nth-child(even) {
    padding: 1rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .occasion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-wide {
    grid-column: auto;
  }

  .admin-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
.availability-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.availability-row strong,
.availability-row span {
  display: block;
}

.availability-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media print {
  .site-header,
  .site-strip,
  .admin-toolbar,
  #availability-admin,
  .site-footer,
  .button,
  select,
  [data-status-select] {
    display: none !important;
  }

  body {
    background: white;
  }

  .admin-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .cart-fab,
  .cart-drawer,
  .cart-modal {
    display: none !important;
  }
}

/* Weekly Order Menu cart — soft, fluid, loving */
.cart-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.72rem 1.05rem 0.72rem 0.9rem;
  border: 1px solid #2a6a80;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d2834, #0b2430 40%, #3ec8ff);
  color: #6a2946;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(20, 144, 200, 0.22);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20, 144, 200, 0.28);
}

.cart-fab-heart {
  color: #3ec8ff;
  font-size: 1.15rem;
  animation: cart-heart-soft 1.8s ease-in-out infinite;
}

.cart-fab-count {
  min-width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #5a2a36;
  color: #e8f4fa;
  font-size: 0.8rem;
}

.cart-fab-bounce {
  animation: cart-fab-pop 520ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

@keyframes cart-fab-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12) rotate(-3deg); }
  70% { transform: scale(0.96) rotate(2deg); }
  100% { transform: scale(1); }
}

@keyframes cart-heart-soft {
  0%, 100% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}

.cart-love-toasts {
  position: fixed;
  right: 1rem;
  bottom: 5.2rem;
  z-index: 85;
  display: grid;
  gap: 0.65rem;
  width: min(320px, calc(100vw - 2rem));
  pointer-events: none;
}

.cart-love-toast {
  pointer-events: auto;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid #2a6a80;
  border-radius: 20px;
  background: linear-gradient(145deg, #e8f4fa, #0d2834);
  color: #57243b;
  box-shadow: 0 16px 40px rgba(90, 40, 60, 0.2);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 280ms ease, transform 320ms cubic-bezier(0.2, 0.85, 0.3, 1.15);
}

.cart-love-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cart-love-toast.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.cart-love-hearts {
  display: flex;
  gap: 0.35rem;
  color: #e56d95;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.cart-love-hearts span {
  display: inline-block;
  animation: cart-bubble-heart 1.1s ease-in-out infinite;
}

.cart-love-hearts span:nth-child(2) { animation-delay: 0.12s; }
.cart-love-hearts span:nth-child(3) { animation-delay: 0.24s; }
.cart-love-hearts span:nth-child(4) { animation-delay: 0.36s; }

@keyframes cart-bubble-heart {
  0%, 100% { transform: translateY(4px) scale(0.8); opacity: 0.45; }
  50% { transform: translateY(-6px) scale(1.2); opacity: 1; }
}

.cart-love-title {
  margin: 0;
  font-family: var(--script);
  font-size: 1.25rem;
  color: #9c3d64;
}

.cart-love-copy {
  margin: 0.2rem 0 0.7rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.cart-love-open {
  width: 100%;
  min-height: 42px;
}

.cart-qty-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(40, 18, 28, 0.48);
}

.cart-qty-modal[hidden] {
  display: none !important;
}

.cart-qty-card {
  position: relative;
  width: min(380px, 100%);
  padding: 1.35rem 1.25rem 1.3rem;
  border: 1px solid #2a6a80;
  border-radius: 26px;
  background: linear-gradient(160deg, #fffdfb, #0d2834 55%, #ffe6ef);
  box-shadow: 0 24px 60px rgba(70, 25, 45, 0.28);
  text-align: center;
  animation: cart-card-in 320ms cubic-bezier(0.2, 0.85, 0.25, 1.15);
}

@keyframes cart-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-qty-hearts {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  color: #e56d95;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.cart-qty-hearts span {
  animation: cart-bubble-heart 1.15s ease-in-out infinite;
}

.cart-qty-hearts span:nth-child(2) { animation-delay: 0.15s; }
.cart-qty-hearts span:nth-child(3) { animation-delay: 0.3s; }

.cart-qty-card h2 {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: #4a2030;
}

.cart-qty-meta {
  margin: 0 0 0.9rem;
  color: #8c5a6e;
  font-size: 0.9rem;
}

.cart-qty-label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 800;
  color: #6a2946;
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #f1c3d8;
  margin-bottom: 1rem;
}

.cart-qty-step {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #0b2430, #3ec8ff);
  color: #6a2946;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.cart-qty-stepper input {
  width: 3.2rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #4a2030;
}

.cart-qty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  justify-items: end;
  background: rgba(40, 18, 28, 0.38);
  animation: cart-dim-in 220ms ease;
}

@keyframes cart-dim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-drawer[hidden] {
  display: none !important;
}

.cart-drawer-panel {
  width: min(460px, 100%);
  height: 100%;
  overflow: auto;
  padding: 1.15rem 1.15rem 2rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 180, 210, 0.28), transparent 34%),
    linear-gradient(180deg, #e8f4fa, #fbf6ec 40%);
  border-left: 1px solid rgba(62, 200, 255, 0.45);
  box-shadow: -18px 0 44px rgba(70, 25, 45, 0.16);
  animation: cart-slide-in 380ms cubic-bezier(0.16, 0.9, 0.22, 1);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

@keyframes cart-slide-in {
  from { transform: translateX(28px); opacity: 0.45; }
  to { transform: translateX(0); opacity: 1; }
}

.cart-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-drawer-head h2 {
  margin: 0.15rem 0 0;
  font-family: var(--script);
  font-size: 1.7rem;
  color: #8c3f63;
}

.cart-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #8c3f63;
}

.cart-lines {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.cart-line {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f1c3d8;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.92);
  box-shadow: 0 8px 20px rgba(20, 144, 200, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cart-line:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 144, 200, 0.1);
}

.cart-line-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: 0.55rem;
}

.cart-line-heart {
  color: #e56d95;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cart-line strong {
  display: block;
  font-family: var(--serif);
  color: #4a2030;
}

.cart-line small {
  display: block;
  color: #8c5a6e;
}

.cart-line-deal {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e5f4e7;
  color: #173d1d;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-line-price {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--gold-deep);
  white-space: nowrap;
  text-align: right;
  display: grid;
  gap: 0.1rem;
  justify-items: end;
}

.cart-line-was {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a07a8a;
  text-decoration: line-through;
}

.cart-line-now {
  font-size: 1.05rem;
}

.cart-totals {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1px solid #f1c3d8;
  background: linear-gradient(145deg, #e8f4fa, #0d2834);
  box-shadow: 0 10px 24px rgba(20, 144, 200, 0.07);
  transition: box-shadow 220ms ease;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0.3rem 0;
  font-weight: 800;
  color: #4a2030;
  font-size: 0.95rem;
}

.cart-totals-deal {
  color: #2f632e;
}

.cart-totals-hint {
  color: #8c5a6e;
  font-weight: 700;
  font-size: 0.88rem;
}

.cart-totals-grand {
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #2a6a80;
  font-size: 1.12rem;
}

.cart-totals-grand strong {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.35rem;
}

.cart-totals-note {
  margin: 0.6rem 0 0;
  color: #8c5a6e;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cart-qty-deal-hint {
  margin: 0 0 0.75rem;
  color: #2f632e;
  font-size: 0.88rem;
  font-weight: 800;
}

.cart-qty-preview {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #f1c3d8;
  color: #4a2030;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: background 180ms ease, border-color 180ms ease;
}

.cart-qty-preview-line strong,
.cart-qty-preview-deal strong {
  font-family: var(--serif);
  color: var(--gold-deep);
}

.cart-qty-preview-deal {
  color: #2f632e;
  font-weight: 700;
}

.cart-deal-note {
  display: block;
  margin: -0.2rem 0 0.65rem;
  color: #2f632e;
  font-weight: 800;
}

.cart-qty-step {
  transition: transform 140ms ease, background 180ms ease;
}

.cart-qty-step:active {
  transform: scale(0.92);
}

.cart-line-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.cart-qty-chip {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #0b2430, #3ec8ff);
  color: #6a2946;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, background 180ms ease;
}

.cart-qty-chip:active {
  transform: scale(0.9);
}

.cart-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 900;
  color: #4a2030;
}

.cart-remove {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: #fff0f4;
  color: #8b1f16;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.cart-empty {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #0d2834, #ffe8f0);
  border: 1px solid #f1c3d8;
  font-weight: 700;
  color: #6a2946;
}

.cart-help {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-checkout .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.cart-checkout .field-wide {
  grid-column: 1 / -1;
}

.cart-terms {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.9rem 0;
  font-size: 0.9rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cart-status {
  min-height: 1.4rem;
  margin-top: 0.7rem;
  font-weight: 800;
  color: #6b1c16;
}

/* Custom order: interactive “added to cart” base estimate popup */
.custom-estimate-tip {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 12, 18, 0.68);
  backdrop-filter: blur(5px);
}
.custom-estimate-tip[hidden] {
  display: none !important;
}
body.custom-estimate-open {
  overflow: hidden;
}
.custom-estimate-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 1.25rem 1.15rem 1.15rem;
  border-radius: 24px;
  border: 2px solid rgba(223, 130, 162, 0.55);
  background:
    radial-gradient(circle at 12% 0%, rgba(62, 200, 255, 0.35), transparent 42%),
    radial-gradient(circle at 95% 8%, rgba(213, 155, 39, 0.18), transparent 40%),
    #e8f4fa;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  text-align: center;
  color: var(--ink);
}
.custom-estimate-close {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #1a1410;
  color: #e8f4fa;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.custom-estimate-close:hover {
  background: #3a2030;
}
.custom-estimate-emoji {
  font-size: 2rem;
  line-height: 1;
  margin: 0.1rem 0 0.3rem;
}
.custom-estimate-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45a7d;
}
.custom-estimate-card h2 {
  margin: 0.3rem 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 4vw, 1.55rem);
  color: #1a1410;
  line-height: 1.25;
}
.custom-estimate-lede {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
.custom-estimate-highlight {
  margin: 0 0 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(125, 255, 168, 0.4);
  background: linear-gradient(145deg, #e8fff2, #e8f4fa);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f6b3d;
}
.custom-estimate-highlight[hidden] {
  display: none !important;
}
.custom-estimate-lines {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  text-align: left;
  max-height: 220px;
  overflow: auto;
}
.custom-estimate-empty {
  margin: 0;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 240, 246, 0.7);
  font-size: 0.88rem;
  font-weight: 700;
  color: #7a3050;
  text-align: center;
}
.custom-estimate-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(62, 200, 255, 0.4);
  background: rgba(255, 255, 255, 0.85);
}
.custom-estimate-line-copy {
  min-width: 0;
}
.custom-estimate-line-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #3a2030;
}
.custom-estimate-line-copy small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8c5a6e;
}
.custom-estimate-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 200, 255, 0.5);
  background: #0d2834;
}
.custom-estimate-stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #0b2430, #3ec8ff);
  color: #5a2038;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.custom-estimate-stepper button:hover {
  filter: brightness(1.05);
}
.custom-estimate-stepper span {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #3a2030;
  font-size: 0.9rem;
}
.custom-estimate-line-price {
  text-align: right;
  font-weight: 900;
  font-size: 0.92rem;
  color: #3a2030;
  white-space: nowrap;
}
.custom-estimate-was {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9c7a88;
  text-decoration: line-through;
}
.custom-estimate-totals {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 187, 88, 0.4);
  background: linear-gradient(145deg, #fff8e8, #0d2834);
  text-align: left;
}
.custom-estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4a3040;
  margin: 0.2rem 0;
}
.custom-estimate-row.muted {
  color: #8c6a78;
  font-weight: 600;
}
.custom-estimate-row.grand {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(196, 90, 134, 0.35);
  font-size: 1.05rem;
  color: #1a1410;
}
.custom-estimate-row.grand strong {
  color: #9c6510;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.custom-estimate-final-tag {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #b45a7d;
  line-height: 1.35;
}
.custom-estimate-min small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #7a3050;
}
.custom-estimate-min[data-met="true"] small {
  color: #1f6b3d;
}
.custom-estimate-min-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(196, 90, 134, 0.15);
  overflow: hidden;
}
.custom-estimate-min-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ec8ff, #e8bb58);
  transition: width 220ms ease;
}
.custom-estimate-min[data-met="true"] .custom-estimate-min-bar span {
  background: linear-gradient(90deg, #7dffa8, #e8bb58);
}
.custom-estimate-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(62, 200, 255, 0.45);
  background: #0d2834;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #5a3040;
}
.custom-estimate-note p {
  margin: 0;
}
.custom-estimate-actions {
  display: grid;
  gap: 0.45rem;
}
.custom-estimate-actions .button {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
}
@media (max-width: 420px) {
  .custom-estimate-line {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "copy price"
      "step price";
  }
  .custom-estimate-line-copy { grid-area: copy; }
  .custom-estimate-stepper { grid-area: step; justify-self: start; }
  .custom-estimate-line-price { grid-area: price; align-self: center; }
}
html.dessert-dark .custom-estimate-card,
body.dessert-dark .custom-estimate-card {
  background: linear-gradient(165deg, #3a2230, #24151c);
  border-color: rgba(62, 200, 255, 0.4);
  color: #fff4f8;
}
html.dessert-dark .custom-estimate-card h2,
html.dessert-dark .custom-estimate-line-copy strong,
html.dessert-dark .custom-estimate-row.grand,
body.dessert-dark .custom-estimate-card h2,
body.dessert-dark .custom-estimate-line-copy strong,
body.dessert-dark .custom-estimate-row.grand {
  color: #0b2430;
}
html.dessert-dark .custom-estimate-lede,
html.dessert-dark .custom-estimate-note,
html.dessert-dark .custom-estimate-line-copy small,
body.dessert-dark .custom-estimate-lede,
body.dessert-dark .custom-estimate-note,
body.dessert-dark .custom-estimate-line-copy small {
  color: rgba(255, 215, 232, 0.8);
}
html.dessert-dark .custom-estimate-line,
html.dessert-dark .custom-estimate-totals,
html.dessert-dark .custom-estimate-note,
body.dessert-dark .custom-estimate-line,
body.dessert-dark .custom-estimate-totals,
body.dessert-dark .custom-estimate-note {
  background: rgba(40, 22, 32, 0.95);
  border-color: rgba(62, 200, 255, 0.3);
}
html.dessert-dark .custom-estimate-stepper,
body.dessert-dark .custom-estimate-stepper {
  background: rgba(20, 12, 16, 0.75);
  border-color: rgba(62, 200, 255, 0.4);
}
html.dessert-dark .custom-estimate-stepper span,
html.dessert-dark .custom-estimate-line-price,
body.dessert-dark .custom-estimate-stepper span,
body.dessert-dark .custom-estimate-line-price {
  color: #0b2430;
}

/* Post-order: cute “check inbox + spam” popup */
.email-check-tip {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 12, 18, 0.68);
  backdrop-filter: blur(5px);
}
.email-check-tip[hidden] {
  display: none !important;
}
body.email-check-tip-open {
  overflow: hidden;
}
.email-check-tip-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 24px;
  border: 2px solid rgba(223, 130, 162, 0.55);
  background:
    radial-gradient(circle at 12% 0%, rgba(62, 200, 255, 0.35), transparent 42%),
    radial-gradient(circle at 95% 8%, rgba(213, 155, 39, 0.2), transparent 40%),
    #e8f4fa;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  text-align: center;
  color: var(--ink);
}
.email-check-tip-close {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #1a1410;
  color: #e8f4fa;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.email-check-tip-emoji {
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.15rem 0 0.35rem;
}
.email-check-tip-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45a7d;
}
.email-check-tip-card h2 {
  margin: 0.35rem 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  color: #1a1410;
  line-height: 1.25;
}
.email-check-tip-lede {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}
.email-check-tip-id {
  margin: 0 0 0.85rem;
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #9c6510;
}
.email-check-tip-steps {
  margin: 0 0 0.9rem;
  padding: 0.85rem 0.95rem 0.85rem 1.7rem;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(223, 130, 162, 0.4);
  background: linear-gradient(145deg, #e8f4fa, #fff6e8);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}
.email-check-tip-steps li {
  margin: 0.35rem 0;
}
.email-check-tip-steps li + li {
  margin-top: 0.55rem;
}
.email-check-tip-alert {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  text-align: left;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid #e8c48a;
  background: #fff6e8;
  color: #7a4e10;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 700;
}
.email-check-tip-alert p {
  margin: 0;
}
.email-check-tip-actions {
  display: grid;
  gap: 0.5rem;
}
.email-check-tip-actions .button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
}
.email-check-tip-foot {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.email-check-tip-foot a {
  color: #8c3f63;
  font-weight: 800;
}
@media (max-width: 420px) {
  .email-check-tip-card {
    padding: 1.15rem 1rem 1.05rem;
  }
  .email-check-tip-steps {
    padding-left: 1.4rem;
    font-size: 0.88rem;
  }
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 20, 15, 0.62);
}

.cart-modal[hidden] {
  display: none !important;
}

.cart-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid rgba(156, 101, 16, 0.3);
  border-radius: 24px;
  background: #fbf6ec;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.cart-modal-card .cart-close {
  position: absolute;
  right: 0.8rem;
  top: 0.6rem;
}

.cart-confirm-copy {
  color: var(--muted);
  line-height: 1.55;
}

.cart-confirm-id {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}

.cart-pay-card {
  padding: 0.9rem;
  border: 1px solid rgba(156, 101, 16, 0.25);
  border-radius: 16px;
  background: #e8f4fa;
  text-align: center;
}

.cart-pay-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.cart-pay-card p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-pay-card img {
  width: 160px;
  height: 160px;
  margin: 0 auto 0.7rem;
  border-radius: 12px;
  background: white;
}

body.cart-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .menu-item {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-add-btn {
    width: 100%;
  }

  .cart-checkout .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Custom order step boxes (same cute language as Step 1 all the way down) ── */
.order-form-steps {
  display: grid;
  gap: 1.15rem;
  padding: clamp(0.85rem, 2.5vw, 1.35rem) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.order-form-steps .form-section + .form-section,
.order-flow .form-section + .form-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.order-step-box,
.form-section-contact {
  position: relative;
  margin: 0;
  padding: 1.2rem 1.2rem 1.35rem;
  border-radius: 24px;
  border: 1.5px solid rgba(62, 200, 255, 0.65);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 182, 210, 0.42), transparent 48%),
    radial-gradient(circle at 95% 20%, rgba(255, 214, 232, 0.35), transparent 42%),
    linear-gradient(155deg, #fff5f9, #ffe8f1 55%, #e8f4fa);
  box-shadow:
    0 14px 34px rgba(196, 90, 134, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.order-step-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, #3ec8ff, #e8bb58 55%, #1490c8);
  opacity: 0.95;
  pointer-events: none;
}
.order-step-box:hover {
  box-shadow:
    0 18px 40px rgba(196, 90, 134, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Soft rainbow of dessert moods — still one family */
.order-step-1 {
  border-color: rgba(62, 200, 255, 0.7);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 182, 210, 0.45), transparent 48%),
    radial-gradient(circle at 95% 20%, rgba(255, 214, 232, 0.35), transparent 42%),
    linear-gradient(155deg, #fff5f9, #ffe8f1 55%, #e8f4fa);
}
.order-step-2 {
  border-color: rgba(232, 187, 88, 0.55);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 220, 160, 0.4), transparent 46%),
    radial-gradient(circle at 92% 18%, rgba(255, 214, 232, 0.28), transparent 40%),
    linear-gradient(155deg, #fffaf0, #fff0e0 55%, #fff8f4);
}
.order-step-2::before {
  background: linear-gradient(180deg, #f0c98a, #e8bb58 50%, #3ec8ff);
}
.order-step-3 {
  border-color: rgba(62, 200, 255, 0.75);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 170, 200, 0.48), transparent 50%),
    radial-gradient(circle at 100% 30%, rgba(232, 187, 88, 0.18), transparent 40%),
    linear-gradient(155deg, #0d2834, #0b2430 50%, #e8f4fa);
}
.order-step-3::before {
  background: linear-gradient(180deg, #3ec8ff, #1490c8 55%, #e8bb58);
}
.order-step-4 {
  border-color: rgba(180, 150, 220, 0.5);
  background:
    radial-gradient(circle at 12% 0%, rgba(230, 210, 255, 0.45), transparent 48%),
    radial-gradient(circle at 95% 15%, rgba(255, 214, 232, 0.28), transparent 42%),
    linear-gradient(155deg, #faf6ff, #f3e8ff 55%, #fff8fc);
}
.order-step-4::before {
  background: linear-gradient(180deg, #d4b0f0, #c9a9ed 50%, #3ec8ff);
}
.order-step-5 {
  border-color: rgba(232, 160, 175, 0.55);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 200, 190, 0.4), transparent 46%),
    radial-gradient(circle at 90% 25%, rgba(255, 220, 170, 0.28), transparent 40%),
    linear-gradient(155deg, #fff7f4, #ffe9e4 55%, #fff9f5);
}
.order-step-5::before {
  background: linear-gradient(180deg, #f0a898, #e8bb58 55%, #3ec8ff);
}
.order-step-6 {
  border-color: rgba(232, 187, 88, 0.6);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 230, 170, 0.5), transparent 48%),
    radial-gradient(circle at 95% 20%, rgba(255, 190, 210, 0.3), transparent 42%),
    linear-gradient(155deg, #fff9ec, #0d2834 50%, #fff6ee);
}
.order-step-6::before {
  background: linear-gradient(180deg, #e8bb58, #f0c98a 45%, #3ec8ff);
}

.order-step-box .step-eyebrow,
.order-step-box .contact-eyebrow,
.order-step-box .section-step {
  margin: 0 0 0.35rem;
  padding-left: 0.15rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c45a86;
}
.order-step-2 .step-eyebrow { color: #b07a20; }
.order-step-4 .step-eyebrow { color: #7a5098; }
.order-step-5 .step-eyebrow { color: #b05a58; }
.order-step-6 .step-eyebrow { color: #9c6510; }

.order-step-box h2,
.form-section-contact h2 {
  margin: 0 0 0.4rem;
  padding-left: 0.1rem;
  color: #9c3d64;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
}
.order-step-2 h2 { color: #8a5a12; }
.order-step-4 h2 { color: #5a3878; }
.order-step-5 h2 { color: #8a4038; }
.order-step-6 h2 { color: #8a5a10; }

.order-step-box .step-lede,
.order-step-box .contact-lede,
.order-step-box .section-lede,
.order-step-box .cyber-lede {
  margin: 0 0 1.05rem;
  padding-left: 0.1rem;
  font-size: 0.94rem;
  font-weight: 650;
  color: #8c5a6e;
  line-height: 1.5;
  max-width: 42rem;
}

.order-step-box .field label,
.order-step-box .field legend {
  color: #8c3f63;
}
.order-step-2 .field label { color: #8a5a28; }
.order-step-4 .field label { color: #6a4888; }

.order-step-box input,
.order-step-box select,
.order-step-box textarea {
  border-color: rgba(232, 140, 175, 0.42);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
}
.order-step-box input:focus,
.order-step-box select:focus,
.order-step-box textarea:focus {
  border-color: #e89bb8;
  outline: 3px solid rgba(62, 200, 255, 0.35);
}
.order-step-2 input:focus,
.order-step-2 select:focus {
  border-color: #e8bb58;
  outline-color: rgba(232, 187, 88, 0.35);
}
.order-step-4 input:focus,
.order-step-4 select:focus {
  border-color: #c9a9ed;
  outline-color: rgba(201, 169, 237, 0.35);
}

.order-step-box .check {
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(62, 200, 255, 0.35);
  background: rgba(255, 255, 255, 0.55);
}
.order-step-box .button-row {
  margin-top: 1.15rem;
}
.order-step-6 .button-gold {
  min-height: 52px;
  font-size: 1.02rem;
  box-shadow: 0 12px 28px rgba(20, 144, 200, 0.22);
}

/* Nested pieces stay readable inside the pastel boxes */
.order-step-box .cyber-policy {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.55), transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 252, 0.88));
}
.order-step-box .fulfill-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
}
.order-step-box .cyber-summary {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(62, 200, 255, 0.4);
  background: rgba(255, 255, 255, 0.65);
  font-weight: 750;
  color: #7a3050;
}

@media (max-width: 760px) {
  .order-form-steps {
    gap: 0.95rem;
    padding: 0.65rem 0.35rem 1rem !important;
  }
  .order-step-box,
  .form-section-contact {
    padding: 1.05rem 0.95rem 1.15rem;
    border-radius: 20px;
  }
  .order-step-box::before {
    width: 4px;
  }
}

/* Dark dessert mode for step boxes */
html.dessert-dark .order-step-box,
html.dessert-dark .form-section-contact,
body.dessert-dark .order-step-box,
body.dessert-dark .form-section-contact {
  background:
    radial-gradient(circle at 12% 0%, rgba(62, 200, 255, 0.18), transparent 48%),
    linear-gradient(155deg, #3a2230, #2a1824 55%, #24151c);
  border-color: rgba(62, 200, 255, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
html.dessert-dark .order-step-box h2,
html.dessert-dark .order-step-box .step-eyebrow,
html.dessert-dark .order-step-box .step-lede,
html.dessert-dark .order-step-box .field label,
body.dessert-dark .order-step-box h2,
body.dessert-dark .order-step-box .step-eyebrow,
body.dessert-dark .order-step-box .step-lede,
body.dessert-dark .order-step-box .field label {
  color: #0b2430;
}
html.dessert-dark .order-step-box .step-lede,
html.dessert-dark .order-step-box .contact-lede,
html.dessert-dark .order-step-box .cyber-lede,
body.dessert-dark .order-step-box .step-lede,
body.dessert-dark .order-step-box .contact-lede,
body.dessert-dark .order-step-box .cyber-lede {
  color: rgba(255, 215, 232, 0.78);
}
html.dessert-dark .order-step-box .check,
html.dessert-dark .order-step-box .cyber-summary,
html.dessert-dark .order-step-box .fulfill-card,
body.dessert-dark .order-step-box .check,
body.dessert-dark .order-step-box .cyber-summary,
body.dessert-dark .order-step-box .fulfill-card {
  background: rgba(20, 12, 16, 0.55);
  border-color: rgba(62, 200, 255, 0.3);
  color: #fff4f8;
}

/* ── Dessert mode toggle (public site) ── */
.dessert-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 90, 134, 0.35);
  background: linear-gradient(135deg, #0b2430, #0d2834);
  color: #7a3050;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(196, 90, 134, 0.12);
  flex: 0 0 auto;
}
.dessert-theme-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.dessert-theme-btn:focus-visible {
  outline: 3px solid rgba(62, 200, 255, 0.5);
  outline-offset: 2px;
}
.dessert-theme-btn .theme-ico {
  font-size: 1rem;
  line-height: 1;
}
.nav-shell .dessert-theme-btn {
  margin-left: auto;
}
@media (max-width: 720px) {
  .nav-shell .dessert-theme-btn {
    margin-left: 0;
    order: 3;
  }
}

/* ── Dark dessert mode — whole public website ── */
html.dessert-dark {
  color-scheme: dark;
}
html.dessert-dark,
html.dessert-dark body,
body.dessert-dark {
  --ivory: #1a1218;
  --ivory-deep: #24151c;
  --ink: #fff4f8;
  --muted: rgba(255, 215, 232, 0.72);
  --gold: #e8bb58;
  --gold-deep: #f0d080;
  --green: #9dffc0;
  --green-deep: #7dffa8;
  --chocolate: #3a2030;
  --pink: #3ec8ff;
  --white: #2a1820;
  --line: rgba(62, 200, 255, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
html.dessert-dark body,
body.dessert-dark {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(180, 70, 120, 0.28), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(232, 187, 88, 0.1), transparent 40%),
    #120c10;
}

/* Chrome */
html.dessert-dark .site-strip,
body.dessert-dark .site-strip {
  background: linear-gradient(90deg, #3a2030, #2a1520);
  color: rgba(255, 230, 240, 0.88);
  border-bottom: 1px solid rgba(62, 200, 255, 0.2);
}
html.dessert-dark .site-header,
body.dessert-dark .site-header {
  background: rgba(28, 16, 24, 0.94);
  border-bottom-color: rgba(62, 200, 255, 0.22);
  backdrop-filter: blur(18px);
}
html.dessert-dark .brand-wordmark strong,
html.dessert-dark .brand-wordmark span,
body.dessert-dark .brand-wordmark strong,
body.dessert-dark .brand-wordmark span {
  color: #0b2430;
}
html.dessert-dark .brand-wordmark span,
body.dessert-dark .brand-wordmark span {
  color: #f0d080;
}
/* Keep pastel nav pills readable — do not force light text on light pills */
html.dessert-dark .site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button),
body.dessert-dark .site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button) {
  color: #3b201d;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
html.dessert-dark .site-nav a.nav-about,
body.dessert-dark .site-nav a.nav-about {
  color: #2a1830;
}
html.dessert-dark .site-nav a.button-gold,
body.dessert-dark .site-nav a.button-gold {
  color: #1a1410;
}
html.dessert-dark .nav-toggle,
body.dessert-dark .nav-toggle {
  color: #0b2430;
  border-color: rgba(62, 200, 255, 0.4);
  background: rgba(255, 227, 239, 0.1);
}
html.dessert-dark .dessert-theme-btn,
body.dessert-dark .dessert-theme-btn {
  background: linear-gradient(135deg, #4a2838, #3a2030);
  border-color: rgba(62, 200, 255, 0.5);
  color: #0b2430;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
@media (max-width: 760px) {
  html.dessert-dark .site-nav,
  body.dessert-dark .site-nav {
    background: linear-gradient(165deg, #2a1820, #1a1218);
    border-color: rgba(62, 200, 255, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

/* Type */
html.dessert-dark .page-hero .section-title,
html.dessert-dark .section-title,
html.dessert-dark .display,
html.dessert-dark .script,
html.dessert-dark h1,
html.dessert-dark h2,
html.dessert-dark h3,
html.dessert-dark h4,
html.dessert-dark .hero-copy h1,
html.dessert-dark .hero-title,
body.dessert-dark .page-hero .section-title,
body.dessert-dark .section-title,
body.dessert-dark .display,
body.dessert-dark .script,
body.dessert-dark h1,
body.dessert-dark h2,
body.dessert-dark h3,
body.dessert-dark h4,
body.dessert-dark .hero-copy h1,
body.dessert-dark .hero-title {
  color: #0b2430;
}
html.dessert-dark .eyebrow,
body.dessert-dark .eyebrow {
  color: #3ec8ff;
}
html.dessert-dark .lede,
html.dessert-dark p,
html.dessert-dark li,
html.dessert-dark .hero-copy p,
html.dessert-dark .menu-item-desc,
html.dessert-dark .card p,
html.dessert-dark .product-card p,
html.dessert-dark .info-card p,
html.dessert-dark .trust-item span,
html.dessert-dark .field label,
html.dessert-dark .form-note,
html.dessert-dark .text-link,
body.dessert-dark .lede,
body.dessert-dark p,
body.dessert-dark li,
body.dessert-dark .hero-copy p,
body.dessert-dark .menu-item-desc,
body.dessert-dark .card p,
body.dessert-dark .product-card p,
body.dessert-dark .info-card p,
body.dessert-dark .trust-item span,
body.dessert-dark .field label,
body.dessert-dark .form-note,
body.dessert-dark .text-link {
  color: rgba(255, 215, 232, 0.8);
}
html.dessert-dark .alchemist-sig,
body.dessert-dark .alchemist-sig {
  color: transparent !important;
}
html.dessert-dark .hero-copy .lede,
body.dessert-dark .hero-copy .lede,
html.dessert-dark .page-hero .alchemist-sig + .lede,
body.dessert-dark .page-hero .alchemist-sig + .lede {
  color: #b7ebc8 !important;
}
html.dessert-dark a:not(.button):not(.social-btn):not(.site-nav a),
body.dessert-dark a:not(.button):not(.social-btn):not(.site-nav a) {
  color: #ffc8dc;
}
html.dessert-dark .text-link,
body.dessert-dark .text-link {
  color: #f0d080;
}

/* Surfaces */
html.dessert-dark .form-card:not(.order-form-steps),
html.dessert-dark .info-card,
html.dessert-dark .artwork-card,
html.dessert-dark .menu-card,
html.dessert-dark .panel,
html.dessert-dark .card,
html.dessert-dark .feature-card,
html.dessert-dark .process-card,
html.dessert-dark .story-card,
html.dessert-dark .about-card,
html.dessert-dark .policy-card,
html.dessert-dark .policy-callout,
html.dessert-dark .status-card,
html.dessert-dark .hero-panel,
html.dessert-dark .split-card,
html.dessert-dark .content-card,
html.dessert-dark .admin-card,
html.dessert-dark .art-panel,
html.dessert-dark .step,
html.dessert-dark .trust-row,
html.dessert-dark .form-section:not(.order-step-box):not(.form-section-contact),
html.dessert-dark .form-aside,
body.dessert-dark .form-card:not(.order-form-steps),
body.dessert-dark .info-card,
body.dessert-dark .artwork-card,
body.dessert-dark .menu-card,
body.dessert-dark .panel,
body.dessert-dark .card,
body.dessert-dark .feature-card,
body.dessert-dark .process-card,
body.dessert-dark .story-card,
body.dessert-dark .about-card,
body.dessert-dark .policy-card,
body.dessert-dark .policy-callout,
body.dessert-dark .status-card,
body.dessert-dark .hero-panel,
body.dessert-dark .split-card,
body.dessert-dark .content-card,
body.dessert-dark .admin-card,
body.dessert-dark .art-panel,
body.dessert-dark .step,
body.dessert-dark .trust-row,
body.dessert-dark .form-section:not(.order-step-box):not(.form-section-contact),
body.dessert-dark .form-aside {
  background: linear-gradient(165deg, rgba(50, 28, 40, 0.96), rgba(32, 18, 26, 0.98));
  border-color: rgba(62, 200, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: #fff4f8;
}
html.dessert-dark .art-frame,
body.dessert-dark .art-frame {
  border-color: #3a2230;
  outline-color: rgba(62, 200, 255, 0.3);
}

/* Home product cards + occasions */
html.dessert-dark .product-card,
body.dessert-dark .product-card {
  background: linear-gradient(155deg, #3a2230 0%, #2a1824 55%, #24151c 100%);
  border-color: rgba(62, 200, 255, 0.4);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(62, 200, 255, 0.12);
  color: #fff4f8;
}
html.dessert-dark .product-card:nth-child(1),
body.dessert-dark .product-card:nth-child(1) {
  background: linear-gradient(155deg, rgba(18, 62, 44, 0.96) 0%, rgba(6, 22, 30, 0.96) 58%, rgba(90, 42, 130, 0.4) 100%);
}
html.dessert-dark .product-card:nth-child(2),
body.dessert-dark .product-card:nth-child(2) {
  background: linear-gradient(155deg, rgba(10, 48, 62, 0.96) 0%, rgba(6, 22, 30, 0.96) 55%, rgba(110, 48, 150, 0.42) 100%);
}
html.dessert-dark .product-card:nth-child(3),
body.dessert-dark .product-card:nth-child(3) {
  background: linear-gradient(155deg, rgba(16, 36, 72, 0.96) 0%, rgba(8, 20, 32, 0.96) 52%, rgba(130, 52, 168, 0.45) 100%);
}
html.dessert-dark .product-card:nth-child(4),
body.dessert-dark .product-card:nth-child(4) {
  background: linear-gradient(155deg, rgba(28, 28, 72, 0.96) 0%, rgba(10, 18, 32, 0.96) 50%, rgba(148, 58, 180, 0.5) 100%);
}
html.dessert-dark .product-card h3,
html.dessert-dark .info-card h3,
body.dessert-dark .product-card h3,
body.dessert-dark .info-card h3 {
  color: #7dffa8;
}
html.dessert-dark .product-card p,
html.dessert-dark .info-card p,
body.dessert-dark .product-card p,
body.dessert-dark .info-card p {
  color: #b7ebc8;
}
html.dessert-dark .occasion-pill,
body.dessert-dark .occasion-pill {
  color: #fff4f8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
html.dessert-dark .occasion-pill:nth-child(1),
html.dessert-dark .occasion-pill:nth-child(5),
body.dessert-dark .occasion-pill:nth-child(1),
body.dessert-dark .occasion-pill:nth-child(5) {
  background: #4a2838;
  border-color: #e89bb8;
}
html.dessert-dark .occasion-pill:nth-child(2),
html.dessert-dark .occasion-pill:nth-child(4),
body.dessert-dark .occasion-pill:nth-child(2),
body.dessert-dark .occasion-pill:nth-child(4) {
  background: #3a3020;
  border-color: #e8bb58;
}
html.dessert-dark .occasion-pill:nth-child(3),
html.dessert-dark .occasion-pill:nth-child(6),
body.dessert-dark .occasion-pill:nth-child(3),
body.dessert-dark .occasion-pill:nth-child(6) {
  background: #322848;
  border-color: #c9a9ed;
}

/* Hero / home */
html.dessert-dark .hero,
html.dessert-dark .page-hero,
html.dessert-dark .section,
html.dessert-dark .section-tight,
body.dessert-dark .hero,
body.dessert-dark .page-hero,
body.dessert-dark .section,
body.dessert-dark .section-tight {
  color: #fff4f8;
}
html.dessert-dark .hero-logo-card,
body.dessert-dark .hero-logo-card {
  background: rgba(40, 22, 32, 0.75);
  border-color: rgba(62, 200, 255, 0.3);
}
html.dessert-dark .hero-badge,
html.dessert-dark .pill,
html.dessert-dark .chip,
body.dessert-dark .hero-badge,
body.dessert-dark .pill,
body.dessert-dark .chip {
  /* hero-badge already chocolate; keep text soft */
  color: #0b2430;
}
html.dessert-dark .hero-flavor-card,
body.dessert-dark .hero-flavor-card {
  background: linear-gradient(145deg, #3a2230, #2a1824);
  border-color: rgba(62, 200, 255, 0.35);
  color: #fff4f8;
}
html.dessert-dark .hero-flavor-title,
html.dessert-dark .hero-flavor-eyebrow,
body.dessert-dark .hero-flavor-title,
body.dessert-dark .hero-flavor-eyebrow {
  color: #ffb7d0;
}
html.dessert-dark .hero-flavor-blurb,
body.dessert-dark .hero-flavor-blurb {
  color: rgba(255, 215, 232, 0.8);
}
html.dessert-dark .flavor-order-button,
body.dessert-dark .flavor-order-button {
  color: #1a1410;
}
html.dessert-dark .trust-item strong,
body.dessert-dark .trust-item strong {
  color: #0b2430;
}

/* Menu */
html.dessert-dark .menu-item,
html.dessert-dark .menu-category,
html.dessert-dark .menu-board,
html.dessert-dark .menu-category:nth-child(2),
html.dessert-dark .menu-category:nth-child(3),
html.dessert-dark .menu-category:nth-child(4),
body.dessert-dark .menu-item,
body.dessert-dark .menu-category,
body.dessert-dark .menu-board,
body.dessert-dark .menu-category:nth-child(2),
body.dessert-dark .menu-category:nth-child(3),
body.dessert-dark .menu-category:nth-child(4) {
  background: linear-gradient(135deg, rgba(50, 28, 40, 0.98), rgba(32, 18, 26, 0.96));
  border-color: rgba(62, 200, 255, 0.28);
  color: #fff4f8;
}
html.dessert-dark .menu-item-orb.is-empty,
body.dessert-dark .menu-item-orb.is-empty {
  background: radial-gradient(circle at 32% 28%, #4a2838, #2a1820 75%);
}
html.dessert-dark .about-portrait-caption,
body.dessert-dark .about-portrait-caption {
  color: #ffb7d0;
}
html.dessert-dark .about-portrait-orb,
body.dessert-dark .about-portrait-orb {
  box-shadow:
    0 0 0 14px rgba(62, 200, 255, 0.12),
    0 0 0 28px rgba(232, 187, 88, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.4);
}
html.dessert-dark .menu-item strong,
html.dessert-dark .menu-item-name,
html.dessert-dark .menu-price,
html.dessert-dark .menu-item-price,
html.dessert-dark .price-line,
body.dessert-dark .menu-item strong,
body.dessert-dark .menu-item-name,
body.dessert-dark .menu-price,
body.dessert-dark .menu-item-price,
body.dessert-dark .price-line {
  color: #0b2430;
}
html.dessert-dark .menu-add-btn,
body.dessert-dark .menu-add-btn {
  color: #1a1410;
}
html.dessert-dark .deals-panel,
body.dessert-dark .deals-panel {
  background: linear-gradient(145deg, #3a2230, #2a1824);
  border-color: rgba(62, 200, 255, 0.4);
}
html.dessert-dark .deals-eyebrow,
body.dessert-dark .deals-eyebrow {
  color: #ffb7d0;
}
html.dessert-dark .deal-line,
body.dessert-dark .deal-line {
  color: #0b2430;
}
html.dessert-dark .deal-line-price,
body.dessert-dark .deal-line-price {
  color: #f0d080;
}
html.dessert-dark .deal-line-hint,
body.dessert-dark .deal-line-hint {
  color: #9dffc0;
}
html.dessert-dark .availability-row,
html.dessert-dark .availability-list,
body.dessert-dark .availability-row,
body.dessert-dark .availability-list {
  background: rgba(40, 22, 32, 0.9);
  border-color: rgba(62, 200, 255, 0.28);
  color: #fff4f8;
}

/* Gallery */
html.dessert-dark .gallery-frame,
html.dessert-dark .gallery-card,
html.dessert-dark .gallery-tile,
html.dessert-dark .bubble,
html.dessert-dark .gallery-bubble-caption,
html.dessert-dark .bubble-hover-blurb,
html.dessert-dark .gallery-cta,
body.dessert-dark .gallery-frame,
body.dessert-dark .gallery-card,
body.dessert-dark .gallery-tile,
body.dessert-dark .bubble,
body.dessert-dark .gallery-bubble-caption,
body.dessert-dark .bubble-hover-blurb,
body.dessert-dark .gallery-cta {
  background: rgba(40, 22, 32, 0.92);
  border-color: rgba(62, 200, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #fff4f8;
}
html.dessert-dark .gallery-page .gallery-sky-title .section-title,
body.dessert-dark .gallery-page .gallery-sky-title .section-title {
  color: #0b2430;
  background: rgba(28, 16, 24, 0.72);
}

/* Forms / cart */
html.dessert-dark input,
html.dessert-dark select,
html.dessert-dark textarea,
body.dessert-dark input,
body.dessert-dark select,
body.dessert-dark textarea {
  background: rgba(20, 12, 16, 0.8);
  border-color: rgba(62, 200, 255, 0.35);
  color: #fff4f8;
}
html.dessert-dark input::placeholder,
html.dessert-dark textarea::placeholder,
body.dessert-dark input::placeholder,
body.dessert-dark textarea::placeholder {
  color: rgba(255, 215, 232, 0.45);
}
html.dessert-dark .button:not(.button-gold):not(.button-secondary),
body.dessert-dark .button:not(.button-gold):not(.button-secondary) {
  background: #0b2430;
  border-color: #3ec8ff;
  color: #1a1410;
}
html.dessert-dark .button-secondary,
body.dessert-dark .button-secondary {
  background: rgba(255, 227, 239, 0.1);
  border-color: rgba(62, 200, 255, 0.4);
  color: #0b2430;
}
html.dessert-dark .button-gold,
body.dessert-dark .button-gold {
  color: #1a1410;
}
html.dessert-dark .check,
html.dessert-dark .checkbox-grid label,
html.dessert-dark .cart-drawer-panel,
html.dessert-dark .cart-modal-card,
html.dessert-dark .cart-line,
html.dessert-dark .cart-qty-modal,
html.dessert-dark .cart-qty-card,
html.dessert-dark .cart-totals,
html.dessert-dark .cart-pay-card,
html.dessert-dark .cart-checkout,
body.dessert-dark .check,
body.dessert-dark .checkbox-grid label,
body.dessert-dark .cart-drawer-panel,
body.dessert-dark .cart-modal-card,
body.dessert-dark .cart-line,
body.dessert-dark .cart-qty-modal,
body.dessert-dark .cart-qty-card,
body.dessert-dark .cart-totals,
body.dessert-dark .cart-pay-card,
body.dessert-dark .cart-checkout {
  background: rgba(40, 22, 32, 0.95);
  border-color: rgba(62, 200, 255, 0.3);
  color: #fff4f8;
}
html.dessert-dark .cart-drawer,
body.dessert-dark .cart-drawer {
  background: rgba(10, 6, 10, 0.72);
}
html.dessert-dark .cart-fab,
body.dessert-dark .cart-fab {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
html.dessert-dark .cart-line-was,
html.dessert-dark .cart-totals-hint,
html.dessert-dark .cart-help,
html.dessert-dark .cart-terms,
body.dessert-dark .cart-line-was,
body.dessert-dark .cart-totals-hint,
body.dessert-dark .cart-help,
body.dessert-dark .cart-terms {
  color: rgba(255, 215, 232, 0.65);
}
html.dessert-dark .cart-line-now,
html.dessert-dark .cart-totals-grand,
body.dessert-dark .cart-line-now,
body.dessert-dark .cart-totals-grand {
  color: #f0d080;
}

/* Contact + cyber order */
html.dessert-dark .form-section-contact,
body.dessert-dark .form-section-contact {
  border-color: rgba(62, 200, 255, 0.45);
  background:
    radial-gradient(circle at 12% 0%, rgba(62, 200, 255, 0.22), transparent 48%),
    linear-gradient(155deg, #3a2230, #2a1824 55%, #24151c);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
html.dessert-dark .form-section-contact h2,
html.dessert-dark .form-section-contact .contact-eyebrow,
body.dessert-dark .form-section-contact h2,
body.dessert-dark .form-section-contact .contact-eyebrow {
  color: #ffb7d0;
}
html.dessert-dark .form-section-contact .contact-lede,
html.dessert-dark .form-section-contact .field label,
body.dessert-dark .form-section-contact .contact-lede,
body.dessert-dark .form-section-contact .field label {
  color: rgba(255, 215, 232, 0.8);
}
html.dessert-dark .form-section-contact input,
body.dessert-dark .form-section-contact input {
  background: rgba(20, 12, 16, 0.85);
  border-color: rgba(62, 200, 255, 0.4);
  color: #fff4f8;
}
html.dessert-dark .cyber-pod,
html.dessert-dark .cyber-policy,
html.dessert-dark .fulfill-card,
html.dessert-dark .cyber-flavor-row,
html.dessert-dark .cyber-summary,
html.dessert-dark .cyber-pod-panel,
html.dessert-dark .cyber-pod-panel-inner,
body.dessert-dark .cyber-pod,
body.dessert-dark .cyber-policy,
body.dessert-dark .fulfill-card,
body.dessert-dark .cyber-flavor-row,
body.dessert-dark .cyber-summary,
body.dessert-dark .cyber-pod-panel,
body.dessert-dark .cyber-pod-panel-inner {
  background: linear-gradient(145deg, #3a2230, #2a1824);
  border-color: rgba(62, 200, 255, 0.35);
  color: #fff4f8;
}
html.dessert-dark .cyber-pod-title,
html.dessert-dark .cyber-flavor-name,
html.dessert-dark .fulfill-title,
html.dessert-dark .cyber-policy-title,
html.dessert-dark .cyber-matrix-label,
html.dessert-dark .section-lede,
html.dessert-dark .section-step,
html.dessert-dark .order-welcome p,
html.dessert-dark .order-steps li,
body.dessert-dark .cyber-pod-title,
body.dessert-dark .cyber-flavor-name,
body.dessert-dark .fulfill-title,
body.dessert-dark .cyber-policy-title,
body.dessert-dark .cyber-matrix-label,
body.dessert-dark .section-lede,
body.dessert-dark .section-step,
body.dessert-dark .order-welcome p,
body.dessert-dark .order-steps li {
  color: #0b2430;
}
html.dessert-dark .order-welcome,
body.dessert-dark .order-welcome {
  background: linear-gradient(145deg, #3a2230, #2a1824);
  border-color: rgba(62, 200, 255, 0.4);
}
html.dessert-dark .order-steps li,
body.dessert-dark .order-steps li {
  background: rgba(62, 200, 255, 0.12);
  border-color: rgba(62, 200, 255, 0.35);
}
html.dessert-dark .cyber-pod-meta,
html.dessert-dark .fulfill-note,
html.dessert-dark .cyber-lede,
html.dessert-dark .cyber-policy li,
body.dessert-dark .cyber-pod-meta,
body.dessert-dark .fulfill-note,
body.dessert-dark .cyber-lede,
body.dessert-dark .cyber-policy li {
  color: rgba(255, 215, 232, 0.78);
}
html.dessert-dark .cyber-qty,
body.dessert-dark .cyber-qty {
  background: rgba(20, 12, 16, 0.75);
  border-color: rgba(62, 200, 255, 0.4);
}
html.dessert-dark .cyber-qty button,
body.dessert-dark .cyber-qty button {
  background: linear-gradient(145deg, #5a3048, #4a2838);
  color: #123040;
}
html.dessert-dark .cyber-qty input,
body.dessert-dark .cyber-qty input {
  color: #0b2430;
}

/* Order status */
html.dessert-dark .status-pill,
body.dessert-dark .status-pill {
  background: rgba(62, 200, 255, 0.2);
  color: #0b2430;
  border: 1px solid rgba(62, 200, 255, 0.35);
}
html.dessert-dark .bubble.owner,
body.dessert-dark .bubble.owner {
  border-color: rgba(62, 200, 255, 0.45);
  background: rgba(60, 32, 48, 0.95);
}
html.dessert-dark .pay-card,
body.dessert-dark .pay-card {
  border-color: rgba(62, 200, 255, 0.4);
  background: rgba(40, 22, 32, 0.95);
  color: #fff4f8;
}

/* Footer / misc */
html.dessert-dark .site-footer,
html.dessert-dark footer,
body.dessert-dark .site-footer,
body.dessert-dark footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(177, 86, 53, 0.18), transparent 26%),
    linear-gradient(145deg, #10090c, #1a0e12 58%, #120a0e);
  color: rgba(255, 215, 232, 0.72);
  border-top-color: rgba(62, 200, 255, 0.35);
}
html.dessert-dark .status-box[data-state="success"],
html.dessert-dark #form-status[data-state="success"],
body.dessert-dark .status-box[data-state="success"],
body.dessert-dark #form-status[data-state="success"] {
  background: rgba(61, 206, 122, 0.12);
  border-color: rgba(125, 255, 168, 0.35);
  color: #9dffc0;
}
html.dessert-dark .status-box[data-state="error"],
html.dessert-dark #form-status[data-state="error"],
body.dessert-dark .status-box[data-state="error"],
body.dessert-dark #form-status[data-state="error"] {
  background: rgba(255, 120, 140, 0.12);
  border-color: rgba(255, 154, 168, 0.4);
  color: #ffb0bc;
}
html.dessert-dark .email-check-tip-card,
html.dessert-dark .cart-modal-card,
body.dessert-dark .email-check-tip-card,
body.dessert-dark .cart-modal-card {
  background: linear-gradient(165deg, #3a2230, #24151c);
  border-color: rgba(62, 200, 255, 0.4);
  color: #fff4f8;
}
html.dessert-dark .email-check-tip,
html.dessert-dark .cart-modal,
body.dessert-dark .email-check-tip,
body.dessert-dark .cart-modal {
  background: rgba(12, 8, 12, 0.72);
}
html.dessert-dark dialog,
body.dessert-dark dialog {
  background: #2a1820;
  color: #fff4f8;
  border-color: rgba(62, 200, 255, 0.35);
}
html.dessert-dark .table,
html.dessert-dark table,
body.dessert-dark .table,
body.dessert-dark table {
  color: #fff4f8;
}
html.dessert-dark hr,
body.dessert-dark hr {
  border-color: rgba(62, 200, 255, 0.22);
}
html.dessert-dark .skip-link,
body.dessert-dark .skip-link {
  background: #0b2430;
  color: #1a1410;
}

/* ============================================================
   CUSTOM ORDER STEP BOXES � FINAL LOCK (must win all overrides)
   ============================================================ */
#order-form.order-form-steps {
  display: grid !important;
  gap: 1.2rem !important;
  padding: 0.75rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#order-form .order-step-box {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 1.25rem 1.25rem 1.4rem 1.4rem !important;
  border-radius: 24px !important;
  border: 2px solid rgba(62, 200, 255, 0.75) !important;
  box-shadow: 0 16px 36px rgba(196, 90, 134, 0.14), inset 0 1px 0 rgba(255,255,255,0.9) !important;
  overflow: hidden !important;
}
#order-form .order-step-box::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 6px !important;
  border-radius: 24px 0 0 24px !important;
  pointer-events: none !important;
}
#order-form .order-step-1 {
  background: linear-gradient(155deg, #0d2834 0%, #0b2430 45%, #e8f4fa 100%) !important;
  border-color: #f0a0c0 !important;
}
#order-form .order-step-1::after { background: linear-gradient(180deg, #3ec8ff, #1490c8) !important; }
#order-form .order-step-2 {
  background: linear-gradient(155deg, #fff8e8 0%, #ffefd0 45%, #fffaf2 100%) !important;
  border-color: #e8bb58 !important;
}
#order-form .order-step-2::after { background: linear-gradient(180deg, #e8bb58, #f0c98a) !important; }
#order-form .order-step-3 {
  background: linear-gradient(155deg, #ffe8f2 0%, #ffd6e8 45%, #0d2834 100%) !important;
  border-color: #e77f9f !important;
}
#order-form .order-step-3::after { background: linear-gradient(180deg, #1490c8, #3ec8ff) !important; }
#order-form .order-step-4 {
  background: linear-gradient(155deg, #f4ecff 0%, #e8d8ff 45%, #faf6ff 100%) !important;
  border-color: #c9a9ed !important;
}
#order-form .order-step-4::after { background: linear-gradient(180deg, #c9a9ed, #d4b0f0) !important; }
#order-form .order-step-5 {
  background: linear-gradient(155deg, #fff0ea 0%, #ffe0d6 45%, #fff7f3 100%) !important;
  border-color: #e8a090 !important;
}
#order-form .order-step-5::after { background: linear-gradient(180deg, #e8a090, #f0c98a) !important; }
#order-form .order-step-6 {
  background: linear-gradient(155deg, #fff6d8 0%, #ffe8b0 45%, #fffaf0 100%) !important;
  border-color: #e8bb58 !important;
}
#order-form .order-step-6::after { background: linear-gradient(180deg, #e8bb58, #3ec8ff) !important; }

#order-form .order-step-box .step-eyebrow,
#order-form .order-step-box .contact-eyebrow {
  margin: 0 0 0.35rem !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #c45a86 !important;
}
#order-form .order-step-2 .step-eyebrow { color: #9c6510 !important; }
#order-form .order-step-4 .step-eyebrow { color: #7a5098 !important; }
#order-form .order-step-6 .step-eyebrow { color: #9c6510 !important; }

#order-form .order-step-box h2 {
  margin: 0 0 0.4rem !important;
  color: #9c3d64 !important;
  font-size: clamp(1.4rem, 3.8vw, 1.75rem) !important;
}
#order-form .order-step-2 h2 { color: #8a5a12 !important; }
#order-form .order-step-4 h2 { color: #5a3878 !important; }
#order-form .order-step-5 h2 { color: #8a4038 !important; }
#order-form .order-step-6 h2 { color: #8a5a10 !important; }

#order-form .order-step-box .step-lede,
#order-form .order-step-box .contact-lede,
#order-form .order-step-box .cyber-lede,
#order-form .order-step-box .section-lede {
  margin: 0 0 1rem !important;
  color: #7a4560 !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

/* Dark mode: keep distinct tinted panels, not one flat slab */
html.dessert-dark #order-form .order-step-1,
body.dessert-dark #order-form .order-step-1 {
  background: linear-gradient(155deg, #4a2838, #3a2230 55%, #2a1824) !important;
  border-color: #3ec8ff !important;
}
html.dessert-dark #order-form .order-step-2,
body.dessert-dark #order-form .order-step-2 {
  background: linear-gradient(155deg, #3a3020, #2a2418 55%, #241c14) !important;
  border-color: #e8bb58 !important;
}
html.dessert-dark #order-form .order-step-3,
body.dessert-dark #order-form .order-step-3 {
  background: linear-gradient(155deg, #4a2030, #3a1828 55%, #2a1420) !important;
  border-color: #1490c8 !important;
}
html.dessert-dark #order-form .order-step-4,
body.dessert-dark #order-form .order-step-4 {
  background: linear-gradient(155deg, #322848, #281e38 55%, #1e162c) !important;
  border-color: #c9a9ed !important;
}
html.dessert-dark #order-form .order-step-5,
body.dessert-dark #order-form .order-step-5 {
  background: linear-gradient(155deg, #3a2420, #2a1a18 55%, #201412) !important;
  border-color: #e8a090 !important;
}
html.dessert-dark #order-form .order-step-6,
body.dessert-dark #order-form .order-step-6 {
  background: linear-gradient(155deg, #3a3020, #2a2418 55%, #241c14) !important;
  border-color: #e8bb58 !important;
}
html.dessert-dark #order-form .order-step-box h2,
html.dessert-dark #order-form .order-step-box .step-eyebrow,
html.dessert-dark #order-form .order-step-box .step-lede,
html.dessert-dark #order-form .order-step-box .contact-lede,
html.dessert-dark #order-form .order-step-box .cyber-lede,
body.dessert-dark #order-form .order-step-box h2,
body.dessert-dark #order-form .order-step-box .step-eyebrow,
body.dessert-dark #order-form .order-step-box .step-lede,
body.dessert-dark #order-form .order-step-box .contact-lede,
body.dessert-dark #order-form .order-step-box .cyber-lede {
  color: #0b2430 !important;
}

/* —— Jackson / Kamino overlay: keep geometry, fix contrast —— */
.brand-wordmark strong {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}
.brand-wordmark span {
  color: var(--gold);
  font-size: 0.68rem;
}
.site-nav {
  gap: 0.22rem;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}
.site-nav a:not(.button) {
  padding: 0.3rem 0.46rem;
}
.site-nav a.button,
.site-nav a.button-gold {
  min-height: 32px;
  padding: 0.32rem 0.62rem;
  font-size: 0.64rem;
  flex: 0 0 auto;
}
@media (max-width: 1280px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    inset: 122px 1rem auto;
    display: none;
    flex-wrap: wrap;
    flex: none;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(6, 22, 30, 0.96);
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .site-nav[data-open="true"] {
    display: grid;
    gap: 0.45rem;
  }
  .site-nav .button {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .site-nav {
    background: rgba(6, 22, 30, 0.96);
    color: var(--ink);
  }
}
.social-github,
.social-x {
  border: 1.5px solid rgba(62, 200, 255, 0.45);
  background: radial-gradient(circle at 30% 20%, rgba(154, 231, 255, 0.2), transparent 40%), #0b2430;
  box-shadow: 0 6px 16px rgba(20, 144, 200, 0.2);
}
.social-github svg,
.social-x svg {
  fill: #e8f4fa;
  stroke: none;
}
.hero-badge {
  background: rgba(8, 28, 38, 0.88);
  border: 1px solid rgba(62, 200, 255, 0.28);
  color: var(--ink);
}
.hero-flavor-card,
.hero-logo-card,
.art-frame,
.cta-band,
.menu-category,
.empty-state {
  background: rgba(8, 28, 38, 0.86);
  border: 1px solid var(--line);
  color: var(--ink);
}
.button-secondary {
  color: var(--ink);
  border-color: rgba(62, 200, 255, 0.45);
}
.button-gold {
  background: linear-gradient(135deg, #3ec8ff, #1490c8);
  color: #041018;
  border: none;
}
.trust-row {
  background: rgba(7, 22, 30, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item strong,
.section-title,
.display .script,
.script {
  color: var(--gold-deep);
  font-family: var(--sans);
}
.site-footer {
  background: #030c12;
  color: var(--ink);
}
input, textarea, select {
  background: rgba(4, 16, 24, 0.9);
  color: var(--ink);
  border: 1px solid var(--line);
}
.empty-state {
  padding: 1.4rem;
  border-radius: var(--radius-md);
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.listing-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 28, 38, 0.86);
}
.listing-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.meta-row { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.about-orb, .hero-flavor-orb {
  border: 2px solid rgba(62, 200, 255, 0.45);
  box-shadow: 0 0 0 8px rgba(62, 200, 255, 0.08);
}
.state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.state-chip[data-state="clean"] { background: #123040; color: #8aa8b8; }
.state-chip[data-state="dirty"] { background: #3a2a10; color: #f0b429; }
.state-chip[data-state="synced"] { background: #0d3c2a; color: #7dffa8; }
.state-chip[data-state="invalid"] { background: #3a1518; color: #ff9aa8; }

/* —— UI pass: kill bakery hearts, boxes, and leftover decorations —— */
.hero-badge,
.hero-badge::before,
.hero-badge::after,
.hero-flavor-card::before,
.hero-flavor-card::after,
.about-portrait-orb::before,
.about-portrait-orb::after,
.menu-heart-zoom-layer,
.menu-heart-zoom-layer-glow,
.cart-fab-heart,
.cart-love-hearts,
.cart-qty-hearts,
.cart-line-heart,
.order-welcome-heart,
.gallery-heart,
.social-chocolate {
  content: none !important;
  display: none !important;
  animation: none !important;
  background: none !important;
}

.hero-logo-card {
  width: min(360px, 34vw) !important;
  max-width: 360px !important;
  margin-left: 0 !important;
  padding: 0 !important;
  background: #071820 !important;
  box-shadow: 0 0 0 8px rgba(62, 200, 255, 0.12), 0 0 24px rgba(62, 200, 255, 0.22), 0 16px 36px rgba(2, 10, 16, 0.35) !important;
  transform: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.hero-logo-card img {
  border-radius: 50% !important;
  object-fit: cover !important;
}

.art-frame.about-orb {
  width: min(320px, 78vw);
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(62, 200, 255, 0.55);
  box-shadow: 0 0 0 10px rgba(62, 200, 255, 0.12), 0 0 28px rgba(62, 200, 255, 0.22);
  background: #071820;
  position: relative;
  z-index: 1;
}
.art-frame.about-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-gallery,
.gallery-nav-button,
.gallery-cta,
.flavor-order-button {
  background: linear-gradient(135deg, #3ec8ff, #1490c8) !important;
  border-color: rgba(62, 200, 255, 0.45) !important;
  color: #041018 !important;
}

.hero-flavor-card {
  background: rgba(8, 28, 38, 0.92) !important;
  border-color: rgba(62, 200, 255, 0.28) !important;
  color: #e8f4fa !important;
}
.hero-flavor-title,
.hero-flavor-eyebrow {
  color: #7ad4ff !important;
  font-family: var(--sans) !important;
}

/* —— Hard button/nav pass: no bakery pink, orange, or purple pills —— */
.site-nav a,
.site-nav a:not(.button),
.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button),
.site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button):nth-child(2),
.site-nav a.nav-about,
.site-nav a.nav-gallery,
a.nav-about,
a.nav-gallery,
.site-nav a.gallery-nav-button,
a.gallery-nav-button,
html.dessert-dark .site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button),
body.dessert-dark .site-nav a:not(.button):not(.nav-gallery):not(.nav-about):not(.gallery-nav-button),
html.dessert-dark .site-nav a.nav-about,
body.dessert-dark .site-nav a.nav-about {
  color: #e8f4fa !important;
  background: linear-gradient(145deg, #0d2834, #123040 58%, #0b2430) !important;
  background-image: linear-gradient(145deg, #0d2834, #123040 58%, #0b2430) !important;
  border: 1px solid rgba(62, 200, 255, 0.38) !important;
  box-shadow: 0 6px 14px rgba(2, 10, 16, 0.3), inset 0 1px 0 rgba(62, 200, 255, 0.12) !important;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav a.nav-about:hover,
.site-nav a.nav-about[aria-current="page"],
.site-nav a.nav-gallery:hover,
.site-nav a.nav-gallery[aria-current="page"] {
  color: #041018 !important;
  background: linear-gradient(145deg, #7ad4ff, #3ec8ff 50%, #1490c8) !important;
  background-image: linear-gradient(145deg, #7ad4ff, #3ec8ff 50%, #1490c8) !important;
  border-color: #3ec8ff !important;
}

.site-nav a.button,
.site-nav a.button-gold,
.button.button-gold,
a.button.button-gold,
html.dessert-dark .site-nav a.button-gold,
body.dessert-dark .site-nav a.button-gold {
  color: #041018 !important;
  background: linear-gradient(135deg, #3ec8ff, #1490c8) !important;
  background-image: linear-gradient(135deg, #3ec8ff, #1490c8) !important;
  border: none !important;
}

.button,
.button-secondary,
.gallery-cta,
a.button.gallery-cta,
.flavor-order-button {
  color: #e8f4fa !important;
  background: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(62, 200, 255, 0.45) !important;
}

.button.button-gold,
a.button.button-gold,
.site-nav a.button-gold,
.gallery-cta,
a.button.gallery-cta,
.flavor-order-button {
  color: #041018 !important;
  background: linear-gradient(135deg, #3ec8ff, #1490c8) !important;
  background-image: linear-gradient(135deg, #3ec8ff, #1490c8) !important;
  border: none !important;
}

.occasion-pill {
  background: #0d2834 !important;
  border-color: rgba(62, 200, 255, 0.28) !important;
  color: #e8f4fa !important;
}

.archive-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  margin: 1.35rem auto 0;
  max-width: 46rem;
}
.archive-metrics {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 1.35rem auto 0;
  max-width: 34rem;
  padding: 1rem 1.25rem 0.9rem;
  text-align: center;
  color: #7dffa8;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(125, 255, 168, 0.5);
  border-radius: 22px;
  background: rgba(13, 60, 42, 0.38);
  box-shadow:
    0 0 0 1px rgba(125, 255, 168, 0.14),
    0 0 28px rgba(125, 255, 168, 0.32),
    inset 0 0 18px rgba(125, 255, 168, 0.08);
}
.archive-hero-metrics .archive-metrics {
  margin: 0;
  flex: 1 1 16rem;
  max-width: 22rem;
}
.archive-intel-launch {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.35rem;
  flex: 1 1 13rem;
  max-width: 18rem;
  min-height: 7.5rem;
  padding: 1rem 1.2rem 0.95rem;
  border: 1px solid rgba(192, 132, 252, 0.6);
  border-radius: 22px;
  background: rgba(48, 18, 78, 0.46);
  color: #f3e8ff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.18),
    0 0 30px rgba(168, 85, 247, 0.48),
    inset 0 0 18px rgba(192, 132, 252, 0.14);
}
.archive-intel-launch strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9d5ff;
}
.archive-intel-launch > span:last-child {
  color: #c4b5fd;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.archive-intel-launch .archive-signal-lamp {
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc, 0 0 18px rgba(192, 132, 252, 0.7);
}
.archive-intel-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(216, 180, 254, 0.35), transparent 62%);
  animation: archive-intel-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.archive-intel-launch:hover,
.archive-intel-launch:focus-visible {
  border-color: rgba(233, 213, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(233, 213, 255, 0.28),
    0 0 38px rgba(192, 132, 252, 0.7),
    inset 0 0 22px rgba(192, 132, 252, 0.2);
  outline: none;
}
@keyframes archive-intel-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .archive-intel-glow { animation: none; }
}
.archive-metric-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.archive-metric strong {
  color: #9dffc0;
  font-size: 1.25rem;
  margin-right: 0.35rem;
}
.validation-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.35rem 0 0.7rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.validation-dims li span {
  color: var(--gold);
  margin-right: 0.35rem;
}
.evidence-chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.evidence-chip.evidence-pass { color: #9dffc0; border-color: rgba(125, 255, 168, 0.45); }
.evidence-chip.evidence-not_run,
.evidence-chip.evidence-stale { color: #e6c07b; border-color: rgba(230, 192, 123, 0.45); }
.evidence-chip.evidence-fail { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.45); }
.related-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.ext-desk {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 16, 24, 0.35);
}
.archive-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  color: #9dffc0;
  font-size: 0.82rem;
}
.archive-signal-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a6b52;
  box-shadow: none;
}
.archive-signal.is-live .archive-signal-lamp {
  background: #7dffa8;
  box-shadow: 0 0 10px #7dffa8, 0 0 18px rgba(125, 255, 168, 0.55);
}
.archive-signal.is-flash {
  animation: signal-flash 1.2s ease;
}
@keyframes signal-flash {
  0% { filter: brightness(1.8); }
  100% { filter: brightness(1); }
}
.archive-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}
.archive-chip {
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 28, 38, 0.8);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
}
.archive-chip em {
  font-style: normal;
  margin-left: 0.35rem;
  color: #7dffa8;
  font-weight: 800;
}
.archive-chip.is-on {
  border-color: #3ec8ff;
  color: #041018;
  background: linear-gradient(135deg, #3ec8ff, #1490c8);
}
.archive-chip.is-on em { color: #041018; }
.archive-chip.is-empty {
  opacity: 0.55;
}
.archive-group-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7ad4ff;
}
.archive-group-title em {
  font-style: normal;
  color: #7dffa8;
  margin-left: 0.4rem;
}
#archive-grid:has(.archive-group) {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.ext-decide {
  margin: 1rem 0 1.2rem;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid rgba(62, 200, 255, 0.28);
  border-radius: 18px;
  background: rgba(4, 16, 24, 0.55);
}
.ext-classify {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 800px) {
  .ext-classify { grid-template-columns: 1fr; }
}
.ext-edit {
  margin-top: 0.5rem;
}
.ext-edit summary {
  cursor: pointer;
  font-weight: 800;
  color: #7ad4ff;
}
.intel-dash-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.intel-dash .agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.intel-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
@media (max-width: 1100px) {
  .intel-board { grid-template-columns: 1fr; }
}
.intel-card {
  padding: 0.55rem 1rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 16, 24, 0.45);
}
.intel-card > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: #7ad4ff;
  padding: 0.45rem 0 0.55rem;
}
.intel-card > summary::-webkit-details-marker { display: none; }
.intel-card > summary::before {
  content: "▸ ";
  color: #8aa8b8;
}
.intel-card[open] > summary::before { content: "▾ "; }
.intel-help {
  margin: 0 0 0.75rem;
  color: #8aa8b8;
  font-size: 0.86rem;
  line-height: 1.5;
}
.intel-kpi {
  padding: 0.55rem 0.75rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 16, 24, 0.45);
}
.intel-kpi > summary {
  cursor: pointer;
  list-style: none;
}
.intel-kpi > summary::-webkit-details-marker { display: none; }
.intel-kpi strong { display: block; font-size: 1.35rem; }
.intel-kpi[data-tone="good"] strong { color: #9dffc0; }
.intel-kpi[data-tone="warn"] strong { color: #e6b84d; }
.intel-kpi[data-tone="bad"] strong { color: #ff8fab; }
.intel-kpi span { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.intel-kpi p { margin: 0.45rem 0 0.15rem; color: #8aa8b8; font-size: 0.8rem; line-height: 1.45; }
.intel-span { grid-column: 1 / -1; }
.intel-rings { display: flex; justify-content: space-around; gap: 0.5rem; flex-wrap: wrap; }
.intel-ring { text-align: center; font-size: 0.75rem; color: #8aa8b8; }
.intel-ring svg { width: 72px; height: 72px; display: block; margin: 0 auto 0.3rem; }
.intel-ring-track { fill: none; stroke: rgba(62, 200, 255, 0.16); stroke-width: 7; }
.intel-ring-value {
  fill: none;
  stroke: #3ec8ff;
  stroke-width: 7;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 36px 36px;
}
.intel-ring text { fill: #e8f4fa; font-size: 12px; font-weight: 800; text-anchor: middle; }
.intel-donut { display: grid; grid-template-columns: 110px 1fr; gap: 0.6rem; align-items: center; }
.intel-donut svg { width: 110px; height: 110px; }
.intel-donut ul { list-style: none; margin: 0; padding: 0; font-size: 0.82rem; }
.intel-donut li { display: flex; gap: 0.4rem; align-items: center; margin: 0.25rem 0; }
.intel-donut i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.intel-line-wrap { width: 100%; }
.intel-line { width: 100%; height: auto; max-height: 180px; display: block; }
.intel-line path { fill: none; stroke: #3ec8ff; stroke-width: 2.4; }
.intel-line-bench { stroke: rgba(138, 168, 184, 0.7); stroke-dasharray: 4 3; }
.intel-line-legend { margin: 0.35rem 0 0; color: #8aa8b8; font-size: 0.72rem; }
.intel-line-legend i {
  display: inline-block;
  width: 12px;
  height: 3px;
  background: #3ec8ff;
  vertical-align: middle;
  margin-right: 0.2rem;
}
.intel-line-legend i.bench { background: #8aa8b8; }
.intel-line-area { fill: rgba(62, 200, 255, 0.12); stroke: none; }
.intel-line circle { fill: #7ad4ff; }
.intel-line-grid { stroke: rgba(62, 200, 255, 0.18); stroke-width: 1; }
.intel-line-max { fill: #8aa8b8; font-size: 10px; }
.intel-line-axis {
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
  margin-top: 0.25rem;
  color: #8aa8b8;
  font-size: 0.7rem;
}
.intel-line-axis span { flex: 1; text-align: center; white-space: nowrap; }
.intel-rec { margin: 0 0 0.75rem; }
.intel-rec strong { display: block; margin: 0.15rem 0 0.25rem; }

.intel-bars { display: grid; gap: 0.45rem; }
.intel-bar {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr) 3rem;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.86rem;
}
.intel-bar i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f7fa8, #3ec8ff);
  box-shadow: 0 0 12px rgba(62, 200, 255, 0.25);
}
.intel-bar em { font-style: normal; color: #7ad4ff; font-weight: 800; text-align: right; }
.intel-log {
  margin-top: 0.85rem;
}
.intel-log-list {
  display: grid;
  gap: 0.4rem;
  max-height: 22rem;
  overflow: auto;
}
.intel-log-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 16, 24, 0.35);
  font-size: 0.82rem;
}
.intel-log-row b {
  color: #7ad4ff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.intel-log-row[data-kind="high"] b { color: #ff8fab; }
.intel-log-row[data-kind="medium"] b { color: #e6b84d; }
.intel-log-row[data-kind="low"] b { color: #3ec8ff; }
.intel-log-row[data-kind="quality"] b { color: #9dffc0; }
.intel-log-row[data-kind="finding"] b { color: #c084fc; }
.intel-log-row[data-kind="mesh"] b { color: #ffb86b; }
.intel-log-row[data-kind="audit"] b { color: #7ad4ff; }
.intel-weak-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(62, 200, 255, 0.12);
}
.intel-weak-row:last-child { border-bottom: 0; }
.intel-weak-row b { font-size: 1.05rem; }
.intel-weak-row p { margin: 0.15rem 0 0; color: #8aa8b8; font-size: 0.78rem; }
.intel-steer p { margin: 0.35rem 0; color: #cfe6f0; }
.intel-steer-mode[data-tone="good"] strong { color: #9dffc0; }
.intel-steer-mode[data-tone="warn"] strong { color: #e6b84d; }
.intel-steer-mode[data-tone="bad"] strong { color: #ff8fab; }
.tele-summary {
  padding: 1rem 1.15rem;
  margin: 0 0 1rem;
}
.tele-summary p { margin: 0 0 0.65rem; color: #cfe6f0; line-height: 1.55; }
.tele-summary p:last-child { margin-bottom: 0; }
.intel-log-row p { margin: 0.15rem 0 0; color: #8aa8b8; }

.notes-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(260px, 340px);
  min-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(4, 16, 24, 0.72);
}
@media (max-width: 1100px) {
  .notes-shell { grid-template-columns: 1fr; }
}
.notes-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(7, 20, 28, 0.92);
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}
.notes-sidebar-head {
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.notes-outline {
  overflow: auto;
  padding: 0.4rem 0 1rem;
}
.notes-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  cursor: pointer;
  color: #d7e6ee;
  font-size: 0.92rem;
}
.notes-row:hover { background: rgba(62, 200, 255, 0.08); }
.notes-row.is-on { background: rgba(255, 183, 197, 0.14); color: #ffe4ea; }
.notes-row.is-live { box-shadow: inset 2px 0 0 #3ec8ff; }
.notes-live-chip {
  margin-left: auto;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 200, 255, 0.4);
  color: #7ad4ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.notes-bloom {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe4ea, #ff8fab 70%);
  box-shadow: 0 0 8px rgba(255, 143, 171, 0.45);
  flex: 0 0 auto;
}
.notes-row.is-folder .notes-bloom {
  background: radial-gradient(circle at 35% 30%, #c9a227, #6b4a3a);
  box-shadow: none;
}
.notes-editor-pane {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1rem;
  background: #081820;
}
.notes-editor-pane input#notes-title {
  border: 0;
  background: transparent;
  color: #f4f8fb;
  font-size: 1.7rem;
  font-weight: 800;
  padding: 0.2rem 0;
}
.notes-editor-pane textarea#notes-body {
  flex: 1;
  min-height: 18rem;
  border: 0;
  background: transparent;
  color: #dceaf1;
  resize: none;
  line-height: 1.6;
  font-size: 1.02rem;
}
.notes-orchard {
  border-left: 1px solid var(--line);
  padding: 0.85rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 183, 197, 0.12), transparent 46%),
    #06141c;
}
.blossom-frame { min-height: 0; }
.blossom-frame.is-stage { min-height: 0; }
.notes-orchard .blossom-frame { min-height: 220px; }
.notes-grove {
  scroll-margin-top: 4.5rem;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(62, 200, 255, 0.07), transparent 46%),
    #041018;
  padding: 2rem 0 0;
}
.notes-grove-head {
  width: min(calc(100% - 2rem), 40rem);
  margin: 0 auto 0.4rem;
  text-align: center;
}
.notes-grove-head .lede {
  margin-inline: auto;
}
.notes-stage {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cherry-scene {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.cherry-wind { position: relative; display: block; }
.cherry-art {
  display: block;
  width: 100%;
  height: auto;
}
.cherry-blooms {
  position: absolute;
  inset: 0;
}
.cherry-fall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cherry-flake {
  position: absolute;
  top: var(--start, 0%);
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.68);
  opacity: 0;
}
.cherry-flake.is-petal {
  border-radius: 80% 0 70% 40%;
  background: linear-gradient(135deg, #fff1f4, #ff8fab 70%);
  box-shadow: 0 0 8px rgba(255, 143, 171, 0.35);
}
.cherry-flake.is-leaf {
  border-radius: 80% 8% 70% 20%;
  background: linear-gradient(135deg, #b6d36a, #4a7a32 68%, #2d4a22);
}
.lotus-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lotus {
  position: absolute;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.lotus.is-folder { width: 18px; height: 18px; }
.lotus-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 200, 255, 0.62), rgba(122, 212, 255, 0.22) 52%, transparent 74%);
  opacity: 0.55;
  pointer-events: none;
}
.lotus-photo {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 7px rgba(2, 10, 16, 0.45));
}
.lotus-photo.is-opened {
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
}
.lotus-photo.is-closed,
.lotus-photo.is-bud {
  opacity: 1;
}
.lotus-p.is-back .lotus-blade { fill: url(#jp-sakura); }
.lotus-p.is-mid .lotus-blade { fill: url(#jp-sakura); }
.lotus-p.is-inner .lotus-blade { fill: #ffe4ea; }
.lotus-p.is-bud .lotus-blade { fill: url(#jp-bud); }
.lotus-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0.55;
}
.lotus-core { fill: #ffe4ea; }
.lotus-seed { fill: rgba(80, 36, 28, 0.55); }
.lotus-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  min-width: 5rem;
  color: #f4fbff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px #041018;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.lotus:hover .lotus-label,
.lotus:focus-visible .lotus-label,
.lotus.is-on .lotus-label { opacity: 1; }
.lotus.is-on {
  z-index: 5;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
}
.lotus.is-on .lotus-glow {
  inset: -16px;
  background: radial-gradient(circle, rgba(62, 200, 255, 0.38), transparent 70%);
  opacity: 1;
}
.lotus.is-on .lotus-photo.is-opened {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: drop-shadow(0 0 10px rgba(80, 200, 255, 0.45)) drop-shadow(0 6px 10px rgba(2, 10, 16, 0.4));
}
.lotus.is-on .lotus-photo.is-closed {
  opacity: 0;
  transform: scale(1.15);
}
.lotus.is-on .lotus-p.is-back .lotus-blade { fill: url(#jp-lotus-back); }
.lotus.is-on .lotus-p.is-mid .lotus-blade { fill: url(#jp-lotus-mid); }
.lotus.is-on .lotus-p.is-inner .lotus-blade { fill: url(#jp-lotus-in); }
.lotus.is-on .lotus-shine { stroke: rgba(255, 255, 255, 0.8); opacity: 0.75; }
.lotus.is-on .lotus-core { fill: url(#jp-core); }
.lotus.is-on .lotus-seed { fill: rgba(92, 48, 8, 0.7); }
.lotus.is-hit::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1.5px solid rgba(62, 200, 255, 0.7);
  border-radius: 50%;
}
.notes-orchard .lotus { width: 22px; height: 22px; }
.notes-orchard .lotus.is-on { width: 44px; height: 44px; }
.notes-reader {
  position: relative;
  z-index: 2;
  width: auto;
  min-height: 0;
  margin-top: -3.4rem;
  padding: 3.4rem 1.4rem 2.1rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(4, 16, 24, 0) 0%, rgba(4, 16, 24, 0.55) 18%, rgba(6, 20, 28, 0.97) 58%);
  overflow: hidden;
}
.notes-reader.is-open {
  border: 0;
  box-shadow: none;
}
.notes-sheet {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid rgba(62, 200, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 44, 56, 0.55), rgba(6, 20, 28, 0.94));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(154, 231, 255, 0.12);
}
.notes-sheet .eyebrow {
  color: #7ad4ff;
  letter-spacing: 0.18em;
}
.notes-sheet .section-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin: 0.15rem 0 0.55rem;
}
.notes-sheet .lede {
  color: #c5d8e2;
}
.notes-prose {
  color: #e4f1f7;
  line-height: 1.75;
  font-size: 1.04rem;
}
.notes-grove-foot {
  padding: 0 1rem 2.6rem;
  text-align: center;
}
.notes-grove-foot .text-link { color: #7ad4ff; }
@media (prefers-reduced-motion: no-preference) {
  .notes-sheet {
    animation: notes-rise 0.55s ease both;
  }
}
@keyframes notes-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .cherry-wind {
    transform-origin: 50% 82%;
    animation: cherry-sway 7.2s ease-in-out infinite;
  }
  .cherry-flake {
    animation: cherry-fall var(--dur) linear var(--delay) infinite;
  }
  .lotus.is-note:not(.is-on) {
    animation: lotus-breathe 2.6s ease-in-out infinite;
  }
  .lotus.is-note:not(.is-on) .lotus-glow {
    animation: lotus-halo 2.6s ease-in-out infinite;
  }
  .lotus.is-note:not(.is-on) .lotus-photo.is-closed {
    animation: lotus-pulse-blur 2.6s ease-in-out infinite;
  }
  .lotus.is-note:not(.is-on):nth-child(2n) { animation-delay: 0.45s; }
  .lotus.is-note:not(.is-on):nth-child(2n) .lotus-glow,
  .lotus.is-note:not(.is-on):nth-child(2n) .lotus-photo.is-closed { animation-delay: 0.45s; }
  .lotus.is-note:not(.is-on):nth-child(3n) { animation-delay: 0.9s; }
  .lotus.is-note:not(.is-on):nth-child(3n) .lotus-glow,
  .lotus.is-note:not(.is-on):nth-child(3n) .lotus-photo.is-closed { animation-delay: 0.9s; }
  .lotus.is-note:not(.is-on):hover {
    animation: none;
    z-index: 6;
  }
  .lotus.is-note:not(.is-on):hover .lotus-glow {
    animation: none;
    opacity: 1;
    filter: blur(7px);
    transform: scale(1.25);
  }
  .lotus.is-note:not(.is-on):hover .lotus-photo.is-closed {
    animation: none;
    filter: drop-shadow(0 0 12px rgba(62, 200, 255, 0.9)) blur(0);
    transform: scale(1.12);
  }
  .lotus,
  .lotus-photo,
  .lotus-glow,
  .lotus-label {
    transition:
      width 0.55s cubic-bezier(0.2, 0.85, 0.2, 1),
      height 0.55s cubic-bezier(0.2, 0.85, 0.2, 1),
      transform 0.65s cubic-bezier(0.16, 0.84, 0.22, 1),
      filter 0.55s ease,
      opacity 0.35s ease;
  }
}
@keyframes cherry-sway {
  0%, 100% { transform: rotate(-0.32deg) translateX(-2px); }
  50% { transform: rotate(0.38deg) translateX(3px); }
}
@keyframes cherry-fall {
  0% { transform: translate3d(0, -20%, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.9; }
  86% { opacity: 0.55; }
  100% { transform: translate3d(var(--drift), 620%, 0) rotate(var(--spin)); opacity: 0; }
}
@keyframes lotus-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes lotus-halo {
  0%, 100% { opacity: 0.28; transform: scale(0.82); filter: blur(5px); }
  50% { opacity: 0.95; transform: scale(1.55); filter: blur(9px); }
}
@keyframes lotus-pulse-blur {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 7px rgba(2, 10, 16, 0.45)) blur(0);
  }
  50% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 14px rgba(62, 200, 255, 0.85)) blur(1.8px);
  }
}

.notes-wait {
  margin: -2.2rem auto 2.4rem;
  max-width: 28rem;
  text-align: center;
  color: #9bb4c2;
  font-size: 0.95rem;
}
.notes-wait[hidden] { display: none !important; }
.notes-stage.is-lifted .lotus.is-on {
  opacity: 0;
  pointer-events: none;
}
body.note-hud-lock { overflow: hidden; }

.note-hud {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.note-hud[hidden] { display: none !important; }
.note-hud.is-open { pointer-events: auto; }
.note-hud-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 120, 190, 0.16), transparent 42%),
    radial-gradient(ellipse at 50% 70%, rgba(62, 200, 255, 0.14), transparent 46%),
    rgba(3, 8, 14, 0.72);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 0.55s ease;
}
.note-hud.is-open .note-hud-veil { opacity: 1; }
.note-hud-stage {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 40rem);
  min-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4.5rem;
}
.note-hud-close {
  position: absolute;
  top: 0.4rem;
  right: 0;
  z-index: 3;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 160, 210, 0.45);
  background: linear-gradient(135deg, rgba(255, 130, 190, 0.28), rgba(62, 200, 255, 0.22));
  color: #f7fbff;
  font: 800 0.78rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.45s, transform 0.35s ease 0.45s, box-shadow 0.25s ease;
}
.note-hud.is-reading .note-hud-close,
.note-hud.is-bloomed .note-hud-close {
  opacity: 1;
  transform: none;
}
.note-hud-close:hover {
  box-shadow: 0 0 22px rgba(255, 130, 200, 0.35);
}

.note-hud-blossom {
  position: fixed;
  left: var(--hud-x, 50%);
  top: var(--hud-y, 34%);
  width: 188px;
  height: 188px;
  margin: 0;
  transform: translate(-50%, -50%) scale(var(--hud-s, 0.2));
  transform-origin: center center;
  z-index: 3;
  pointer-events: none;
  transition:
    left 0.68s cubic-bezier(0.16, 0.84, 0.22, 1),
    top 0.68s cubic-bezier(0.16, 0.84, 0.22, 1),
    transform 0.68s cubic-bezier(0.16, 0.84, 0.22, 1);
}
.note-hud.is-return .note-hud-blossom {
  transition:
    left 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19),
    top 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19),
    transform 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}
.note-hud-pulse {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 132, 196, 0.55), rgba(62, 200, 255, 0.22) 46%, transparent 72%);
  opacity: 0.7;
  filter: blur(6px);
}
.note-hud-petal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(4, 10, 18, 0.45));
}
.note-hud-petal.is-open {
  opacity: 0;
  transform: scale(0.72) rotate(-10deg);
}
.note-hud-petal.is-bud {
  opacity: 1;
  transform: scale(1);
}
.note-hud.is-bloomed .note-hud-petal.is-open {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter:
    drop-shadow(0 0 16px rgba(255, 130, 200, 0.45))
    drop-shadow(0 0 22px rgba(62, 200, 255, 0.35));
}
.note-hud.is-bloomed .note-hud-petal.is-bud {
  opacity: 0;
  transform: scale(1.18);
}
.note-hud-petal,
.note-hud.is-bloomed .note-hud-petal {
  transition: opacity 0.48s ease, transform 0.62s cubic-bezier(0.16, 0.84, 0.22, 1), filter 0.5s ease;
}

.note-hud-say {
  width: min(100%, 34rem);
  height: min(46vh, 360px);
  margin-top: 11.5rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(255, 150, 210, 0.5);
  border-radius: 24px;
  background: linear-gradient(
    165deg,
    rgba(92, 18, 68, 0.94) 0%,
    rgba(36, 24, 88, 0.95) 46%,
    rgba(14, 68, 128, 0.94) 100%
  );
  box-shadow:
    0 0 22px rgba(255, 120, 190, 0.28),
    0 0 36px rgba(62, 200, 255, 0.18),
    0 24px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.16, 0.84, 0.22, 1);
}
.note-hud.is-reading .note-hud-say {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.note-hud-say-label {
  margin: 0 0 0.35rem;
  color: #ffb3dc;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.note-hud-say-body {
  margin: 0;
  color: #d8f3ff;
  font-size: 1.16rem;
  line-height: 1.58;
  white-space: pre-wrap;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 150, 210, 0.45) transparent;
}
.note-hud-caret {
  display: inline-block;
  width: 0.11em;
  height: 1.05em;
  margin-left: 0.12em;
  background: linear-gradient(180deg, #ff9ad0, #7ad4ff);
  vertical-align: -0.14em;
  box-shadow: 0 0 8px rgba(255, 154, 208, 0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .note-hud.is-bloomed .note-hud-blossom {
    animation: note-hud-pulse 2.4s ease-in-out infinite;
  }
  .note-hud.is-bloomed .note-hud-pulse {
    animation: note-hud-halo 2.4s ease-in-out infinite;
  }
  .note-hud-caret {
    animation: say-caret 0.85s steps(1) infinite;
  }
  .note-hud.is-reading .note-hud-say {
    animation: note-hud-box 5.6s ease-in-out infinite;
  }
}
@keyframes note-hud-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.07); }
}
@keyframes note-hud-halo {
  0%, 100% { opacity: 0.42; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes note-hud-box {
  0%, 100% {
    box-shadow: 0 0 22px rgba(255, 120, 190, 0.28), 0 0 36px rgba(62, 200, 255, 0.16);
    border-color: rgba(255, 150, 210, 0.55);
  }
  50% {
    box-shadow: 0 0 26px rgba(62, 200, 255, 0.32), 0 0 40px rgba(255, 120, 190, 0.2);
    border-color: rgba(122, 212, 255, 0.62);
  }
}
@media (max-width: 720px) {
  .note-hud-stage { padding-top: 3.6rem; min-height: 0; }
  .note-hud-blossom { width: 148px; height: 148px; }
  .note-hud-say { margin-top: 8.6rem; height: min(48vh, 320px); }
}
@media (prefers-reduced-motion: reduce) {
  .note-hud-veil,
  .note-hud-blossom,
  .note-hud-say,
  .note-hud-petal,
  .note-hud-close { transition: none; }
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 0.8fr));
  gap: 0.65rem;
}
@media (max-width: 980px) {
  .archive-toolbar { grid-template-columns: 1fr 1fr; }
}
.archive-toolbar input,
.archive-toolbar select {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.archive-grid:has(.software-archive-card),
.archive-grid:has(.software-edit-card),
#work-list.archive-grid,
#work-editor.archive-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 1.6rem;
}
.lab-deck {
  display: grid;
  gap: 2.2rem;
}
.software-archive-card,
.software-edit-card {
  overflow: visible;
  padding: 1.55rem 1.6rem 1.7rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.software-archive-card:not(.is-vacant):hover {
  transform: translateY(-6px);
}
.software-head {
  margin: 0 0 0.85rem;
}
.software-archive-card h2 {
  margin: 0;
  font-size: clamp(2.05rem, 3.6vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  font-weight: 800;
  background-image: linear-gradient(105deg, #b8ffd4 0%, #7dffa8 42%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.software-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0.42rem 0 0;
  color: #9ec0ce;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.software-repo {
  color: #7ad4ff;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.software-summary {
  margin: 0 0 0.15rem;
  color: #d5e8ef;
  font-size: 1.02rem;
  line-height: 1.6;
}
.software-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.15rem;
  padding: 0;
  list-style: none;
}
.software-tags li {
  padding: 0.22rem 0.68rem;
  border: 1px solid rgba(125, 255, 168, 0.22);
  border-radius: 999px;
  background: rgba(125, 255, 168, 0.07);
  color: #b7ebc8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.software-photo {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 12px;
  border-radius: 22px;
  overflow: visible;
}
.software-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #02080c;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(125, 255, 168, 0.45);
}
.software-photo-glow {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}
.software-photo-empty {
  margin: 0;
  padding: 2.4rem 1rem;
  text-align: center;
  border: 1px dashed rgba(62, 200, 255, 0.28);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(4, 16, 24, 0.55);
}
.software-photo.is-empty .software-photo-glow,
.software-photo.is-empty img[hidden] {
  display: none;
}
.software-photo-dev {
  margin-bottom: 0.75rem;
}
@media (prefers-reduced-motion: no-preference) {
  .software-photo:not(.is-empty) img {
    animation: software-alchemy-glow 2.4s ease-in-out infinite;
  }
  .software-photo:not(.is-empty) .software-photo-glow {
    animation: software-alchemy-halo 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="red"]:not(.is-empty) img {
    animation: software-red-glow 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="red"]:not(.is-empty) .software-photo-glow {
    animation: software-red-halo 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="magenta"]:not(.is-empty) img {
    animation: software-magenta-glow 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="magenta"]:not(.is-empty) .software-photo-glow {
    animation: software-magenta-halo 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="ice"]:not(.is-empty) img {
    animation: software-ice-glow 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="ice"]:not(.is-empty) .software-photo-glow {
    animation: software-ice-halo 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="triad"]:not(.is-empty) img {
    animation: software-triad-glow 3.6s ease-in-out infinite;
  }
  .software-photo[data-glow="triad"]:not(.is-empty) .software-photo-glow {
    animation: software-triad-halo 3.6s ease-in-out infinite;
  }
  .software-photo[data-glow="frost"]:not(.is-empty) img {
    animation: software-frost-glow 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="frost"]:not(.is-empty) .software-photo-glow {
    animation: software-frost-halo 2.4s ease-in-out infinite;
  }
  .software-photo[data-glow="radar"]:not(.is-empty) img {
    animation: software-radar-glow 2.8s ease-in-out infinite;
  }
  .software-photo[data-glow="radar"]:not(.is-empty) .software-photo-glow {
    animation: software-radar-halo 2.8s ease-in-out infinite;
  }
  .software-photo[data-glow="pulse"]:not(.is-empty) img {
    animation: software-pulse-glow 2.6s ease-in-out infinite;
  }
  .software-photo[data-glow="pulse"]:not(.is-empty) .software-photo-glow {
    animation: software-pulse-halo 2.6s ease-in-out infinite;
  }
  .software-photo[data-glow="spatial"]:not(.is-empty) img {
    animation: software-spatial-glow 3.2s ease-in-out infinite;
  }
  .software-photo[data-glow="spatial"]:not(.is-empty) .software-photo-glow {
    animation: software-spatial-halo 3.2s ease-in-out infinite;
  }
  .software-photo[data-glow="kernel"]:not(.is-empty) img {
    animation: software-kernel-glow 3.0s ease-in-out infinite;
  }
  .software-photo[data-glow="kernel"]:not(.is-empty) .software-photo-glow {
    animation: software-kernel-halo 3.0s ease-in-out infinite;
  }
  .software-archive-card[data-glow="alchemy"] { animation: software-card-alchemy 2.8s ease-in-out infinite; }
  .software-archive-card[data-glow="red"] { animation: software-card-red 2.8s ease-in-out infinite; }
  .software-archive-card[data-glow="magenta"] { animation: software-card-magenta 2.8s ease-in-out infinite; }
  .software-archive-card[data-glow="ice"] { animation: software-card-ice 2.8s ease-in-out infinite; }
  .software-archive-card[data-glow="triad"] { animation: software-card-triad 3.6s ease-in-out infinite; }
  .software-archive-card[data-glow="frost"] { animation: software-card-frost 2.8s ease-in-out infinite; }
  .software-archive-card[data-glow="radar"] { animation: software-card-radar 2.8s ease-in-out infinite; }
  .software-archive-card[data-glow="pulse"] { animation: software-card-pulse 2.8s ease-in-out infinite; }
  .software-archive-card[data-glow="spatial"] { animation: software-card-spatial 3.2s ease-in-out infinite; }
  .software-archive-card[data-glow="kernel"] { animation: software-card-kernel 3.0s ease-in-out infinite; }
  .software-archive-card[data-glow="vacant"] { animation: software-card-vacant 3.2s ease-in-out infinite; }
}
.software-photo[data-glow="red"] img {
  border-color: rgba(255, 72, 72, 0.55);
}
.software-archive-card[data-glow="red"] h2 {
  background-image: linear-gradient(105deg, #ffb3b3 0%, #ff4d4d 48%, #8b0000 100%);
}
.software-photo[data-glow="magenta"] img {
  border-color: rgba(255, 79, 200, 0.55);
}
.software-archive-card[data-glow="magenta"] h2 {
  background-image: linear-gradient(105deg, #ffb3e8 0%, #ff4fc8 46%, #8a72ff 100%);
}
.software-photo[data-glow="ice"] img {
  border-color: rgba(34, 211, 238, 0.55);
}
.software-archive-card[data-glow="ice"] h2 {
  background-image: linear-gradient(105deg, #d9f7ff 0%, #22d3ee 48%, #86efac 100%);
}
.software-photo[data-glow="triad"] img {
  border-color: rgba(212, 175, 55, 0.5);
}
.software-archive-card[data-glow="triad"] h2 {
  background-image: linear-gradient(105deg, #f5d76e 0%, #2dd4bf 48%, #a78bfa 100%);
}
.software-photo[data-glow="frost"] img {
  border-color: rgba(186, 230, 253, 0.55);
}
.software-archive-card[data-glow="frost"] h2 {
  background-image: linear-gradient(105deg, #f0f9ff 0%, #7dd3fc 46%, #e0f2fe 100%);
}
.software-photo[data-glow="radar"] img {
  border-color: rgba(34, 211, 238, 0.58);
}
.software-archive-card[data-glow="radar"] h2 {
  background-image: linear-gradient(105deg, #d9f7ff 0%, #22d3ee 42%, #4ade80 72%, #fb7185 100%);
}
.software-photo[data-glow="pulse"] img {
  border-color: rgba(122, 212, 255, 0.58);
}
.software-archive-card[data-glow="pulse"] h2 {
  background-image: linear-gradient(105deg, #7ad4ff 0%, #ff754f 52%, #9dffc0 100%);
}
.software-photo[data-glow="spatial"] img {
  border-color: rgba(230, 195, 106, 0.58);
}
.software-archive-card[data-glow="spatial"] h2 {
  background-image: linear-gradient(105deg, #f5e6b8 0%, #e6c36a 38%, #7ad4ff 68%, #c4b5fd 100%);
}
.software-photo[data-glow="kernel"] img {
  border-color: rgba(186, 230, 253, 0.58);
}
.software-archive-card[data-glow="kernel"] h2 {
  background-image: linear-gradient(105deg, #f8fafc 0%, #94a3b8 42%, #67e8f9 100%);
}
.lab-why {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 1rem;
}
.lab-why p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.lab-why .software-thoughts-label {
  margin-top: 0.35rem;
}
@keyframes software-alchemy-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(125, 255, 168, 0.95),
      0 0 28px 8px rgba(125, 255, 168, 0.5),
      0 0 56px 16px rgba(168, 85, 247, 0.2);
    border-color: rgba(125, 255, 168, 0.9);
  }
  50% {
    box-shadow:
      0 0 10px 2px rgba(192, 132, 252, 1),
      0 0 28px 8px rgba(168, 85, 247, 0.62),
      0 0 56px 16px rgba(125, 255, 168, 0.2);
    border-color: rgba(192, 132, 252, 0.95);
  }
}
@keyframes software-alchemy-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(125, 255, 168, 0.38),
      inset 0 0 22px rgba(125, 255, 168, 0.08);
  }
  50% {
    box-shadow:
      0 0 22px 6px rgba(168, 85, 247, 0.44),
      inset 0 0 22px rgba(168, 85, 247, 0.1);
  }
}
@keyframes software-red-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(255, 64, 64, 0.95),
      0 0 28px 8px rgba(220, 20, 20, 0.55),
      0 0 56px 16px rgba(139, 0, 0, 0.28);
    border-color: rgba(255, 72, 72, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(255, 160, 160, 1),
      0 0 32px 10px rgba(255, 48, 48, 0.7),
      0 0 64px 18px rgba(90, 0, 0, 0.35);
    border-color: rgba(255, 120, 120, 1);
  }
}
@keyframes software-red-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(220, 20, 20, 0.42),
      inset 0 0 22px rgba(139, 0, 0, 0.16);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(255, 64, 64, 0.55),
      inset 0 0 26px rgba(255, 48, 48, 0.18);
  }
}
@keyframes software-magenta-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(255, 79, 200, 0.95),
      0 0 28px 8px rgba(184, 108, 255, 0.5),
      0 0 56px 16px rgba(103, 232, 249, 0.22);
    border-color: rgba(255, 79, 200, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(103, 232, 249, 0.95),
      0 0 32px 10px rgba(184, 108, 255, 0.62),
      0 0 64px 18px rgba(255, 79, 200, 0.28);
    border-color: rgba(138, 114, 255, 1);
  }
}
@keyframes software-magenta-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(255, 79, 200, 0.42),
      inset 0 0 22px rgba(184, 108, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(103, 232, 249, 0.4),
      inset 0 0 26px rgba(255, 79, 200, 0.16);
  }
}
@keyframes software-ice-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(34, 211, 238, 0.95),
      0 0 28px 8px rgba(125, 211, 252, 0.5),
      0 0 56px 16px rgba(134, 239, 172, 0.22);
    border-color: rgba(34, 211, 238, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(134, 239, 172, 0.95),
      0 0 32px 10px rgba(34, 211, 238, 0.62),
      0 0 64px 18px rgba(217, 247, 255, 0.28);
    border-color: rgba(134, 239, 172, 1);
  }
}
@keyframes software-ice-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(34, 211, 238, 0.42),
      inset 0 0 22px rgba(125, 211, 252, 0.12);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(134, 239, 172, 0.4),
      inset 0 0 26px rgba(34, 211, 238, 0.16);
  }
}
@keyframes software-triad-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(245, 215, 110, 0.95),
      0 0 28px 8px rgba(212, 175, 55, 0.5),
      0 0 56px 16px rgba(45, 212, 191, 0.2);
    border-color: rgba(245, 215, 110, 0.95);
  }
  33% {
    box-shadow:
      0 0 12px 3px rgba(45, 212, 191, 0.95),
      0 0 32px 10px rgba(20, 184, 166, 0.55),
      0 0 64px 18px rgba(167, 139, 250, 0.22);
    border-color: rgba(45, 212, 191, 1);
  }
  66% {
    box-shadow:
      0 0 12px 3px rgba(167, 139, 250, 0.95),
      0 0 32px 10px rgba(139, 92, 246, 0.55),
      0 0 64px 18px rgba(245, 215, 110, 0.22);
    border-color: rgba(167, 139, 250, 1);
  }
}
@keyframes software-triad-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(245, 215, 110, 0.4),
      inset 0 0 22px rgba(212, 175, 55, 0.12);
  }
  33% {
    box-shadow:
      0 0 26px 8px rgba(45, 212, 191, 0.42),
      inset 0 0 22px rgba(20, 184, 166, 0.12);
  }
  66% {
    box-shadow:
      0 0 26px 8px rgba(167, 139, 250, 0.42),
      inset 0 0 22px rgba(139, 92, 246, 0.12);
  }
}
@keyframes software-frost-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(224, 242, 254, 0.95),
      0 0 28px 8px rgba(125, 211, 252, 0.5),
      0 0 56px 16px rgba(186, 230, 253, 0.28);
    border-color: rgba(224, 242, 254, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(125, 211, 252, 1),
      0 0 32px 10px rgba(14, 165, 233, 0.5),
      0 0 64px 18px rgba(255, 255, 255, 0.22);
    border-color: rgba(125, 211, 252, 1);
  }
}
@keyframes software-frost-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(224, 242, 254, 0.4),
      inset 0 0 22px rgba(125, 211, 252, 0.12);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(125, 211, 252, 0.48),
      inset 0 0 26px rgba(186, 230, 253, 0.16);
  }
}
@keyframes software-card-alchemy {
  0%, 100% { box-shadow: 0 0 18px rgba(125, 255, 168, 0.22), 0 0 36px rgba(168, 85, 247, 0.12); }
  50% { box-shadow: 0 0 22px rgba(168, 85, 247, 0.28), 0 0 40px rgba(125, 255, 168, 0.14); }
}
@keyframes software-card-red {
  0%, 100% { box-shadow: 0 0 18px rgba(220, 38, 38, 0.28), 0 0 36px rgba(127, 29, 29, 0.16); }
  50% { box-shadow: 0 0 24px rgba(255, 64, 64, 0.38), 0 0 44px rgba(220, 38, 38, 0.18); }
}
@keyframes software-card-magenta {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 79, 200, 0.28), 0 0 36px rgba(138, 114, 255, 0.14); }
  50% { box-shadow: 0 0 24px rgba(184, 108, 255, 0.34), 0 0 44px rgba(255, 79, 200, 0.16); }
}
@keyframes software-card-ice {
  0%, 100% { box-shadow: 0 0 18px rgba(34, 211, 238, 0.28), 0 0 36px rgba(134, 239, 172, 0.14); }
  50% { box-shadow: 0 0 24px rgba(134, 239, 172, 0.32), 0 0 44px rgba(34, 211, 238, 0.16); }
}
@keyframes software-card-triad {
  0%, 100% { box-shadow: 0 0 18px rgba(245, 215, 110, 0.28), 0 0 36px rgba(45, 212, 191, 0.12); }
  33% { box-shadow: 0 0 22px rgba(45, 212, 191, 0.3), 0 0 40px rgba(167, 139, 250, 0.14); }
  66% { box-shadow: 0 0 22px rgba(167, 139, 250, 0.3), 0 0 40px rgba(245, 215, 110, 0.14); }
}
@keyframes software-card-frost {
  0%, 100% { box-shadow: 0 0 18px rgba(224, 242, 254, 0.28), 0 0 36px rgba(125, 211, 252, 0.16); }
  50% { box-shadow: 0 0 26px rgba(125, 211, 252, 0.38), 0 0 48px rgba(255, 255, 255, 0.12); }
}
@keyframes software-radar-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(34, 211, 238, 0.95),
      0 0 28px 8px rgba(74, 222, 128, 0.45),
      0 0 56px 16px rgba(251, 113, 133, 0.18);
    border-color: rgba(34, 211, 238, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(74, 222, 128, 0.95),
      0 0 32px 10px rgba(34, 211, 238, 0.6),
      0 0 64px 18px rgba(251, 113, 133, 0.24);
    border-color: rgba(74, 222, 128, 1);
  }
}
@keyframes software-radar-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(34, 211, 238, 0.42),
      inset 0 0 22px rgba(74, 222, 128, 0.1);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(74, 222, 128, 0.42),
      inset 0 0 26px rgba(251, 113, 133, 0.12);
  }
}
@keyframes software-card-radar {
  0%, 100% { box-shadow: 0 0 18px rgba(34, 211, 238, 0.3), 0 0 36px rgba(74, 222, 128, 0.14); }
  50% { box-shadow: 0 0 24px rgba(74, 222, 128, 0.34), 0 0 44px rgba(251, 113, 133, 0.14); }
}
@keyframes software-pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(122, 212, 255, 0.95),
      0 0 28px 8px rgba(255, 117, 79, 0.42),
      0 0 56px 16px rgba(157, 255, 192, 0.18);
    border-color: rgba(122, 212, 255, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(255, 117, 79, 0.95),
      0 0 32px 10px rgba(122, 212, 255, 0.58),
      0 0 64px 18px rgba(157, 255, 192, 0.22);
    border-color: rgba(255, 117, 79, 1);
  }
}
@keyframes software-pulse-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(122, 212, 255, 0.42),
      inset 0 0 22px rgba(255, 117, 79, 0.1);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(255, 117, 79, 0.4),
      inset 0 0 26px rgba(122, 212, 255, 0.14);
  }
}
@keyframes software-card-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(122, 212, 255, 0.3), 0 0 36px rgba(255, 117, 79, 0.14); }
  50% { box-shadow: 0 0 24px rgba(255, 117, 79, 0.32), 0 0 44px rgba(157, 255, 192, 0.14); }
}
@keyframes software-spatial-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(230, 195, 106, 0.95),
      0 0 28px 8px rgba(122, 212, 255, 0.42),
      0 0 56px 16px rgba(167, 139, 250, 0.2);
    border-color: rgba(230, 195, 106, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(122, 212, 255, 0.95),
      0 0 32px 10px rgba(196, 181, 253, 0.55),
      0 0 64px 18px rgba(230, 195, 106, 0.24);
    border-color: rgba(122, 212, 255, 1);
  }
}
@keyframes software-spatial-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(230, 195, 106, 0.42),
      inset 0 0 22px rgba(122, 212, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(122, 212, 255, 0.4),
      inset 0 0 26px rgba(167, 139, 250, 0.14);
  }
}
@keyframes software-card-spatial {
  0%, 100% { box-shadow: 0 0 18px rgba(230, 195, 106, 0.3), 0 0 36px rgba(122, 212, 255, 0.14); }
  50% { box-shadow: 0 0 24px rgba(122, 212, 255, 0.32), 0 0 44px rgba(167, 139, 250, 0.16); }
}
@keyframes software-kernel-glow {
  0%, 100% {
    box-shadow:
      0 0 10px 2px rgba(203, 213, 225, 0.95),
      0 0 28px 8px rgba(103, 232, 249, 0.42),
      0 0 56px 16px rgba(148, 163, 184, 0.2);
    border-color: rgba(203, 213, 225, 0.95);
  }
  50% {
    box-shadow:
      0 0 12px 3px rgba(103, 232, 249, 0.95),
      0 0 32px 10px rgba(226, 232, 240, 0.55),
      0 0 64px 18px rgba(14, 165, 233, 0.22);
    border-color: rgba(103, 232, 249, 1);
  }
}
@keyframes software-kernel-halo {
  0%, 100% {
    box-shadow:
      0 0 22px 6px rgba(203, 213, 225, 0.4),
      inset 0 0 22px rgba(103, 232, 249, 0.1);
  }
  50% {
    box-shadow:
      0 0 28px 10px rgba(103, 232, 249, 0.4),
      inset 0 0 26px rgba(148, 163, 184, 0.14);
  }
}
@keyframes software-card-kernel {
  0%, 100% { box-shadow: 0 0 18px rgba(203, 213, 225, 0.3), 0 0 36px rgba(103, 232, 249, 0.14); }
  50% { box-shadow: 0 0 24px rgba(103, 232, 249, 0.32), 0 0 44px rgba(148, 163, 184, 0.16); }
}
@keyframes software-card-vacant {
  0%, 100% { box-shadow: 0 0 12px rgba(62, 200, 255, 0.12); }
  50% { box-shadow: 0 0 20px rgba(125, 255, 168, 0.16); }
}
.archive-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 28, 38, 0.9);
}
.archive-card h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.35rem;
}
.archive-id {
  margin: 0 0 0.35rem;
  color: #7ad4ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.archive-teaser {
  margin: 0.7rem 0;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: rgba(4, 16, 24, 0.7);
  overflow-x: auto;
}
.archive-card .button { margin-top: 0.75rem; width: 100%; }
.archive-card.is-vacant { opacity: 0.72; border-style: dashed; }
.software-thoughts {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(62, 200, 255, 0.16);
}
.software-thoughts-label {
  margin: 0 0 0.3rem;
  color: #7ad4ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.software-thoughts-body {
  margin: 0;
  color: #c5d8e2;
  font-size: 0.92rem;
  line-height: 1.55;
}
.software-thoughts textarea {
  width: 100%;
  min-height: 3.4rem;
}
.software-edit-card .field { margin: 0 0 0.45rem; }
.software-edit-card .field label {
  display: block;
  margin-bottom: 0.2rem;
  color: #8aa8b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.software-edit-card input,
.software-edit-card textarea {
  width: 100%;
  min-height: 36px;
  padding: 0.4rem 0.55rem;
}
.soft-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.software-card-actions { margin-top: 0.55rem; }
@media (max-width: 640px) {
  .soft-inline { grid-template-columns: 1fr; }
}
.archive-hud {
  width: min(880px, 96vw);
  max-height: 90vh;
  overflow: auto;
  padding: 1.4rem 1.3rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #071820;
  color: #e8f4fa;
}
.archive-hud::backdrop { background: rgba(2, 8, 12, 0.72); }
.archive-hud h2 { margin: 0.15rem 0 0.45rem; }
.archive-hud h3 { margin: 1.2rem 0 0.4rem; color: #7ad4ff; }
.archive-hud h4 { margin: 0.7rem 0 0.25rem; }
.archive-hud pre {
  white-space: pre-wrap;
  background: #041018;
  border: 1px solid rgba(62, 200, 255, 0.18);
  border-radius: 14px;
  padding: 0.85rem;
  overflow-x: auto;
}
.archive-hud .dialog-close,
.archive-hud #hud-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #e8f4fa;
  font-size: 1.4rem;
}
@media (max-width: 760px) {
  .archive-hud {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    margin: 0;
  }
}
.signal-intel-hud {
  width: min(1080px, 96vw);
  border-color: rgba(192, 132, 252, 0.35);
  background:
    radial-gradient(circle at 12% 0, rgba(192, 132, 252, 0.16), transparent 42%),
    #071820;
}
.signal-intel-hud h2 { color: #e9d5ff; }
.signal-intel-hud h3 { color: #d8b4fe; margin: 0 0 0.35rem; }
.signal-intel-lede {
  max-width: 46rem;
  margin: 0 0 1.1rem;
  color: #b9c9d4;
  line-height: 1.55;
}
.signal-intel-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.15rem;
}
.signal-intel-kpi {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 16px;
  background: rgba(12, 8, 24, 0.45);
}
.signal-intel-kpi strong {
  display: block;
  font-size: 1.35rem;
  color: #e9d5ff;
}
.signal-intel-kpi span {
  color: #a78bfa;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.signal-intel-kpi small {
  display: block;
  margin-top: 0.3rem;
  color: #8aa8b8;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.signal-intel-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.signal-intel-card {
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 18px;
  background: rgba(4, 16, 24, 0.45);
}
.signal-intel-card.is-wide { grid-column: 1 / -1; }
.signal-intel-why {
  margin: 0 0 0.75rem;
  color: #9ab7c5;
  font-size: 0.88rem;
  line-height: 1.5;
}
.signal-intel-keys {
  display: grid;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  color: #8aa8b8;
  font-size: 0.8rem;
}
.signal-intel-keys b { color: #e8f4fa; font-weight: 700; }
.signal-intel-gap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.7rem;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(192, 132, 252, 0.12);
}
.signal-intel-gap:last-child { border-bottom: 0; }
.signal-intel-gap b { color: #d8b4fe; }
.signal-intel-gap p { margin: 0.15rem 0 0; color: #8aa8b8; font-size: 0.78rem; }
@media (max-width: 800px) {
  .signal-intel-board { grid-template-columns: 1fr; }
}

.software-hero .lede {
  max-width: 38rem;
}
.software-section {
  padding-top: 0.4rem;
}
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.15rem;
}
.software-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid rgba(62, 200, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 36, 48, 0.96), rgba(4, 16, 24, 0.98)),
    repeating-linear-gradient(
      180deg,
      rgba(62, 200, 255, 0.035) 0 1px,
      transparent 1px 7px
    );
  box-shadow:
    0 0 0 1px rgba(62, 200, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.38);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.software-card.is-live:hover,
.software-card.is-live:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(62, 200, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(62, 200, 255, 0.18),
    0 0 28px rgba(62, 200, 255, 0.22),
    0 22px 48px rgba(0, 0, 0, 0.45);
  outline: none;
}
.software-card.is-empty {
  min-height: 248px;
  border-style: dashed;
  border-color: rgba(62, 200, 255, 0.22);
  opacity: 0.82;
}
.software-hud {
  pointer-events: none;
  position: absolute;
  inset: 8px;
  z-index: 2;
}
.software-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(62, 200, 255, 0.7);
}
.software-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.software-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.software-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.software-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.software-og {
  position: relative;
  aspect-ratio: 2 / 1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62, 200, 255, 0.16), transparent 55%),
    #07141c;
  overflow: hidden;
}
.software-og img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.software-og-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(62, 200, 255, 0.55);
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 800;
}
.software-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
}
.software-path {
  margin: 0;
  color: #7ad4ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.software-card h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.software-blurb,
.software-why,
.software-host,
.software-vacant p {
  margin: 0;
}
.software-blurb {
  color: #c8dde8;
  font-size: 0.92rem;
}
.software-why {
  color: #8aa8b8;
  font-size: 0.84rem;
}
.software-host {
  margin-top: 0.2rem;
  color: rgba(122, 212, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.software-vacant {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  min-height: 248px;
  padding: 1.4rem 1rem;
  text-align: center;
}
.software-slot-id {
  color: #3ec8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}
.software-vacant strong {
  color: #e8f4fa;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.software-vacant p {
  color: #8aa8b8;
  font-size: 0.86rem;
}
.software-slot {
  display: grid;
  gap: 0.85rem;
}
.software-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.software-slot-head strong {
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #7ad4ff;
}
.software-slot-actions {
  display: flex;
  gap: 0.4rem;
}
.software-preview {
  overflow: hidden;
  border: 1px solid rgba(62, 200, 255, 0.28);
  border-radius: 14px;
  background: #07141c;
}
.software-preview img,
.software-preview-empty {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.software-preview-empty {
  display: grid;
  place-items: center;
  color: #8aa8b8;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .software-grid {
    grid-template-columns: 1fr;
  }
}

/* Alchemy theme: green letters, cyan radiation, purple fade */
.eyebrow { color: #8ee6b0; }
.section-title { color: #9dffc0; }
.display .script,
.script { color: #c084fc; }
.text-link { color: #c084fc; }
.listing-card,
.archive-card,
.info-card,
.step,
.menu-category {
  border-color: rgba(62, 200, 255, 0.38);
  box-shadow: 0 14px 32px rgba(2, 10, 16, 0.28), 0 0 18px rgba(62, 200, 255, 0.08);
}
.listing-card:nth-child(4n+1),
.archive-card:nth-child(4n+1) {
  border-color: rgba(125, 255, 168, 0.38);
  background: linear-gradient(180deg, rgba(12, 40, 32, 0.92), rgba(8, 28, 38, 0.92) 70%, rgba(80, 36, 110, 0.22));
}
.listing-card:nth-child(4n+2),
.archive-card:nth-child(4n+2) {
  border-color: rgba(62, 200, 255, 0.42);
  background: linear-gradient(180deg, rgba(8, 36, 48, 0.92), rgba(8, 28, 38, 0.92) 70%, rgba(100, 42, 140, 0.24));
}
.listing-card:nth-child(4n+3),
.archive-card:nth-child(4n+3) {
  border-color: rgba(140, 160, 255, 0.42);
  background: linear-gradient(180deg, rgba(14, 28, 56, 0.92), rgba(8, 24, 38, 0.92) 70%, rgba(120, 48, 160, 0.26));
}
.listing-card:nth-child(4n+4),
.archive-card:nth-child(4n+4) {
  border-color: rgba(192, 132, 252, 0.42);
  background: linear-gradient(180deg, rgba(24, 24, 56, 0.92), rgba(8, 20, 34, 0.92) 70%, rgba(148, 58, 180, 0.3));
}
.listing-card h3,
.archive-card h2,
.info-card h3,
.step h3 {
  color: #7dffa8;
}
.archive-id { color: #7ad4ff; }
.trust-item strong { color: #7dffa8; }
.cta-band {
  color: var(--ink);
  border: 1px solid rgba(62, 200, 255, 0.32);
  background:
    radial-gradient(circle at 82% 18%, rgba(62, 200, 255, 0.16), transparent 28%),
    radial-gradient(circle at 14% 110%, rgba(125, 255, 168, 0.1), transparent 40%),
    linear-gradient(135deg, #041018 0%, #082028 46%, #0a2434 74%, #041018 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(125, 255, 168, 0.08);
}
.cta-band::before,
.cta-band::after {
  display: none;
}
.cta-band .eyebrow { color: #7dffa8; }
.cta-band .lede { color: var(--muted); }
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(125, 255, 168, 0.12);
  background:
    radial-gradient(circle at 12% 0%, rgba(62, 200, 255, 0.1), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(168, 85, 247, 0.08), transparent 32%),
    linear-gradient(145deg, #030c12, #061820 58%, #041018);
  box-shadow: 0 -12px 40px rgba(168, 85, 247, 0.06);
}
.footer-logo {
  border-color: rgba(62, 200, 255, 0.28);
  background: rgba(8, 28, 38, 0.55);
}
.footer-links {
  border-left-color: rgba(62, 200, 255, 0.28);
}
.footer-links strong { color: #c084fc; }
.footer-links a { color: rgba(232, 244, 250, 0.76); }
.footer-links a:hover { color: #7ad4ff; }
.occasion-pill {
  border-color: rgba(125, 255, 168, 0.28);
  color: #b7ebc8;
}
.button.button-gold,
a.button.button-gold {
  box-shadow: 0 0 16px rgba(62, 200, 255, 0.28), 0 0 28px rgba(168, 85, 247, 0.12);
}

/* Alchetron Research corpus */
.research-hero .lede {
  max-width: 780px;
}
.research-toolbar {
  grid-template-columns: minmax(220px, 1.8fr) repeat(4, minmax(120px, 0.7fr));
}
.research-grid {
  align-items: stretch;
}
.research-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.research-card:hover,
.research-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(125, 255, 168, 0.72);
  box-shadow: 0 20px 46px rgba(2, 10, 16, .42), 0 0 26px rgba(62, 200, 255, .14);
}
.research-card.is-featured {
  box-shadow: 0 0 0 1px rgba(192, 132, 252, .34), 0 18px 42px rgba(80, 36, 110, .24);
}
.research-card .archive-card-body {
  flex: 1;
}
.research-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .85rem;
}
.research-card-tags span,
.research-file-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(125, 255, 168, .22);
  border-radius: 999px;
  color: #b7ebc8;
  padding: .22rem .5rem;
  font-size: .72rem;
  letter-spacing: .04em;
}
.research-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-top: 1.1rem;
}
.research-card-footer .button {
  white-space: nowrap;
}
.research-hud {
  width: min(1180px, 96vw);
  max-width: 1180px;
  max-height: 92vh;
  overflow: auto;
}
.research-hud-layout {
  display: grid;
  grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.research-hud-aside {
  align-self: start;
  position: sticky;
  top: 0;
  padding: 1rem;
  border: 1px solid rgba(62, 200, 255, .2);
  border-radius: 16px;
  background: rgba(3, 16, 25, .56);
}
.research-hud-aside h3 {
  margin-top: 0;
}
.research-contents {
  display: grid;
  gap: .35rem;
  margin-top: 1rem;
}
.research-contents a {
  color: #9ddcff;
  font-size: .86rem;
  text-decoration: none;
}
.research-contents a:hover,
.research-contents a:focus-visible {
  color: #7dffa8;
  text-decoration: underline;
}
.research-hud-document {
  min-width: 0;
  line-height: 1.75;
}
.research-hud-document > :first-child {
  margin-top: 0;
}
.research-abstract {
  padding: 1rem 1.1rem;
  border-left: 2px solid #7dffa8;
  background: rgba(12, 40, 32, .3);
  color: #d9f7e2;
}
.research-file-picker,
.research-related-links,
.research-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .75rem 0 1.25rem;
}
.research-file-picker button {
  cursor: pointer;
  border: 1px solid rgba(62, 200, 255, .3);
  border-radius: 999px;
  padding: .38rem .65rem;
  background: rgba(8, 36, 48, .5);
  color: #bfe8f5;
}
.research-file-picker button[aria-selected="true"] {
  border-color: #7dffa8;
  color: #7dffa8;
}
.research-hud pre {
  max-height: 480px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.research-artifact-link,
.research-related-link {
  display: inline-flex;
  padding: .45rem .65rem;
  border: 1px solid rgba(192, 132, 252, .3);
  border-radius: 10px;
  color: #d8b4fe;
  text-decoration: none;
}
.research-artifact-link:hover,
.research-related-link:hover {
  border-color: #c084fc;
  color: #fff;
}

/* Dev Mode Research review surface */
.research-dev-hero {
  border-color: rgba(125, 255, 168, .34);
}
.research-dev-hero p {
  max-width: 860px;
}
.research-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}
.research-stat {
  padding: .8rem;
  border: 1px solid rgba(62, 200, 255, .2);
  border-radius: 14px;
  background: rgba(4, 16, 24, .5);
}
.research-stat strong {
  display: block;
  color: #7dffa8;
  font-size: 1.5rem;
}
.research-stat span {
  color: #9ab7c5;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.research-dev-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: .65rem;
  align-items: end;
}
.research-dev-layout {
  display: grid;
  grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.research-candidate-list {
  display: grid;
  align-content: start;
  gap: .55rem;
  max-height: 720px;
  overflow: auto;
}
.research-candidate-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(62, 200, 255, .2);
  border-radius: 13px;
  padding: .75rem;
  background: rgba(4, 16, 24, .54);
  color: inherit;
}
.research-candidate-row:hover,
.research-candidate-row.is-active {
  border-color: rgba(125, 255, 168, .7);
  background: rgba(12, 40, 32, .45);
}
.research-candidate-row strong,
.research-candidate-row small {
  display: block;
}
.research-candidate-row small {
  margin-top: .25rem;
  color: #91afbe;
}
.research-state {
  display: inline-flex;
  margin-top: .5rem;
  border-radius: 999px;
  padding: .18rem .46rem;
  color: #b7ebc8;
  background: rgba(125, 255, 168, .11);
  font-size: .7rem;
  letter-spacing: .06em;
}
.research-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.research-review-grid .field-full {
  grid-column: 1 / -1;
}
.research-review-source {
  max-height: 420px;
  overflow: auto;
  margin-top: .75rem;
  padding: .8rem;
  border: 1px solid rgba(62, 200, 255, .18);
  border-radius: 12px;
  background: rgba(1, 9, 14, .65);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: .78rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.research-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.research-review-actions .button[data-research-action="reject"] {
  border-color: rgba(255, 125, 145, .45);
  color: #ffb2bd;
}
.research-invariant {
  margin: .75rem 0 0;
  padding: .7rem .85rem;
  border-left: 2px solid #c084fc;
  color: #d8c2eb;
  background: rgba(80, 36, 110, .18);
}
@media (max-width: 920px) {
  .research-toolbar,
  .research-dev-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .research-toolbar input,
  .research-dev-toolbar input {
    grid-column: 1 / -1;
  }
  .research-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .research-dev-layout {
    grid-template-columns: 1fr;
  }
  .research-candidate-list {
    max-height: 300px;
  }
}
@media (max-width: 640px) {
  .research-hud-layout,
  .research-review-grid {
    grid-template-columns: 1fr;
  }
  .research-hud-aside {
    position: static;
  }
  .research-toolbar,
  .research-dev-toolbar,
  .research-review-grid {
    grid-template-columns: 1fr;
  }
  .research-review-grid .field-full {
    grid-column: auto;
  }
}

/* Alchetron Nexus graph */
.nexus-type-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}
.nexus-type-button {
  cursor: pointer;
  border: 1px solid rgba(62, 200, 255, .26);
  border-radius: 999px;
  padding: .5rem .75rem;
  background: rgba(4, 16, 24, .54);
  color: #abd3df;
  font: inherit;
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.nexus-type-button em {
  color: #7ad4ff;
  font-style: normal;
  margin-left: .25rem;
}
.nexus-type-button:hover,
.nexus-type-button:focus-visible,
.nexus-type-button.is-active {
  border-color: #7dffa8;
  background: rgba(12, 40, 32, .62);
  color: #7dffa8;
  transform: translateY(-1px);
}
.nexus-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(130px, .7fr));
  gap: .7rem;
  align-items: end;
}
.nexus-toolbar label {
  display: grid;
  gap: .3rem;
  color: #8faebb;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nexus-toolbar input,
.nexus-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(62, 200, 255, .24);
  border-radius: 10px;
  padding: .65rem .75rem;
  background: rgba(3, 16, 25, .68);
  color: #def6ff;
  font: inherit;
}
.nexus-toolbar input:focus,
.nexus-toolbar select:focus {
  outline: 2px solid rgba(125, 255, 168, .5);
  outline-offset: 2px;
}
.nexus-subtitle {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1rem 0 0;
  color: #9ab7c5;
  font-size: .86rem;
}
.nexus-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffa8;
  box-shadow: 0 0 0 5px rgba(125, 255, 168, .1), 0 0 16px rgba(125, 255, 168, .8);
}
.nexus-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: 700px;
  overflow: hidden;
  border: 1px solid rgba(62, 200, 255, .24);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 48%, rgba(26, 75, 92, .32), rgba(3, 14, 23, .96) 58%);
  box-shadow: 0 24px 70px rgba(2, 10, 16, .42), inset 0 0 80px rgba(62, 200, 255, .06);
}
.nexus-graph-wrap {
  position: relative;
  min-width: 0;
  min-height: 700px;
  background-image: linear-gradient(rgba(125, 255, 168, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 200, 255, .035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.nexus-graph {
  display: block;
  width: 100%;
  height: 700px;
}
.nexus-edge {
  stroke: rgba(93, 188, 210, .22);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.nexus-node {
  cursor: pointer;
  outline: none;
}
.nexus-node circle:first-child {
  stroke: rgba(235, 255, 247, .72);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 7px rgba(125, 255, 168, .5));
  transition: r .2s ease, stroke-width .2s ease;
}
.nexus-node-ring {
  fill: none;
  stroke: rgba(125, 255, 168, .12);
  stroke-width: 1;
  transition: r .2s ease, stroke .2s ease;
}
.nexus-node text {
  fill: #b4d6df;
  font: 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  pointer-events: none;
  opacity: .78;
}
.nexus-node:hover circle:first-child,
.nexus-node:focus-visible circle:first-child {
  r: 17;
  stroke-width: 2;
}
.nexus-node:hover .nexus-node-ring,
.nexus-node:focus-visible .nexus-node-ring {
  r: 25;
  stroke: rgba(125, 255, 168, .72);
}
.nexus-node:hover text,
.nexus-node:focus-visible text {
  fill: #fff;
  opacity: 1;
}
.nexus-empty {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #9ab7c5;
}
.nexus-index {
  overflow: auto;
  border-left: 1px solid rgba(62, 200, 255, .2);
  background: rgba(2, 11, 18, .58);
}
.nexus-index-head {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(62, 200, 255, .16);
  color: #8faebb;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nexus-index-head strong {
  color: #7dffa8;
  font-size: .72rem;
}
.nexus-index-list {
  display: grid;
}
.nexus-index-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: .65rem;
  width: 100%;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid rgba(62, 200, 255, .1);
  padding: .75rem 1rem;
  text-align: left;
  background: transparent;
  color: inherit;
}
.nexus-index-row:hover,
.nexus-index-row:focus-visible {
  background: rgba(12, 40, 32, .48);
  outline: none;
}
.nexus-index-dot {
  align-self: start;
  width: 8px;
  height: 8px;
  margin-top: .3rem;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 10px var(--node-color);
}
.nexus-index-row strong,
.nexus-index-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nexus-index-row strong {
  color: #d8f4fb;
  font-size: .82rem;
}
.nexus-index-row small {
  margin-top: .2rem;
  color: #7798a8;
  font-size: .7rem;
}
.knowledge-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.2rem 0 1.5rem;
}
.knowledge-cluster {
  min-width: 0;
  padding: .85rem;
  border: 1px solid rgba(62, 200, 255, .17);
  border-radius: 13px;
  background: rgba(4, 20, 30, .48);
}
.knowledge-cluster.knowledge-primary {
  border-color: rgba(125, 255, 168, .36);
  background: rgba(12, 40, 32, .36);
}
.knowledge-cluster.knowledge-warning {
  border-color: rgba(255, 202, 122, .34);
}
.knowledge-cluster-head {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  color: #7ad4ff;
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.knowledge-cluster-head em {
  color: #7dffa8;
  font-style: normal;
}
.knowledge-cluster ul {
  display: grid;
  gap: .45rem;
  margin: .7rem 0 0;
  padding-left: 1rem;
}
.knowledge-cluster li {
  color: #c5e0e7;
  font-size: .84rem;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .nexus-shell {
    grid-template-columns: 1fr;
  }
  .nexus-index {
    max-height: 300px;
    border-top: 1px solid rgba(62, 200, 255, .2);
    border-left: 0;
  }
}
@media (max-width: 700px) {
  .nexus-toolbar,
  .knowledge-map {
    grid-template-columns: 1fr;
  }
  .nexus-toolbar .nexus-search {
    grid-column: auto;
  }
  .nexus-graph-wrap,
  .nexus-graph {
    min-height: 520px;
    height: 520px;
  }
}

/* Alchetron command dashboard */
.research-console-section {
  padding-top: 1.2rem;
}
.nexus-dashboard.container {
  width: min(1500px, calc(100% - 2rem));
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(62, 200, 255, .24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(6, 25, 35, .96), rgba(2, 11, 18, .98));
  box-shadow: 0 28px 90px rgba(0, 6, 12, .48), inset 0 1px rgba(255, 255, 255, .025);
}
.nexus-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 1.6rem 1.25rem;
  border-bottom: 1px solid rgba(62, 200, 255, .14);
  background: radial-gradient(circle at 12% 0, rgba(125, 255, 168, .07), transparent 36%);
}
.nexus-dashboard-head h2 {
  margin: .2rem 0 .3rem;
  color: #e9fbff;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.nexus-dashboard-head p:last-child {
  max-width: 760px;
  margin: 0;
  color: #88aab8;
}
.nexus-view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .3rem;
  border: 1px solid rgba(62, 200, 255, .2);
  border-radius: 12px;
  background: rgba(1, 9, 15, .55);
}
.nexus-view-switch button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: .65rem .95rem;
  background: transparent;
  color: #7e9fac;
  font: 700 .72rem/1 inherit;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nexus-view-switch button.is-active {
  background: rgba(125, 255, 168, .13);
  color: #7dffa8;
  box-shadow: inset 0 0 0 1px rgba(125, 255, 168, .24);
}
.nexus-command-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(4, minmax(120px, .65fr));
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(62, 200, 255, .14);
  background: rgba(2, 12, 19, .74);
}
.nexus-command-bar label {
  display: grid;
  gap: .32rem;
  color: #7193a1;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nexus-command-bar input,
.nexus-command-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(62, 200, 255, .2);
  border-radius: 9px;
  padding: .68rem .8rem;
  background: #03131d;
  color: #e5f8ff;
  font: inherit;
}
.nexus-command-bar input:focus,
.nexus-command-bar select:focus {
  outline: 1px solid #7dffa8;
  box-shadow: 0 0 0 3px rgba(125, 255, 168, .08);
}
.nexus-workspace {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 720px;
}
.nexus-navigator {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(62, 200, 255, .14);
  background: rgba(2, 12, 19, .64);
}
.nexus-panel-heading,
.nexus-stage-head,
.nexus-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(62, 200, 255, .13);
}
.nexus-panel-heading span,
.nexus-stage-head span,
.nexus-library-head span {
  display: block;
  color: #dff7ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nexus-panel-heading small,
.nexus-stage-head p,
.nexus-library-head p {
  margin: 0;
  color: #648593;
  font-size: .72rem;
}
.nexus-stage-head > div,
.nexus-library-head > div {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.nexus-stage-head strong,
.nexus-library-head strong {
  color: #7dffa8;
  font-size: .72rem;
  font-weight: 700;
}
.nexus-stage-tools {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nexus-stage-tools > span {
  margin-right: .35rem;
  color: #648593;
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.nexus-stage-tools button {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  cursor: pointer;
  border: 1px solid rgba(62, 200, 255, .2);
  border-radius: 7px;
  padding: 0 .5rem;
  background: rgba(3, 17, 25, .78);
  color: #90bdc9;
  font: 700 .75rem/1 inherit;
}
.nexus-stage-tools button:hover,
.nexus-stage-tools button:focus-visible {
  border-color: #7dffa8;
  color: #7dffa8;
  outline: none;
  box-shadow: 0 0 12px rgba(125, 255, 168, .1);
}
.nexus-navigator .nexus-type-bar {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: .8rem;
}
.nexus-navigator .nexus-type-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 9px;
  padding: .66rem .7rem;
  text-align: left;
  font-size: .68rem;
}
.nexus-navigator .nexus-type-button:hover,
.nexus-navigator .nexus-type-button:focus-visible,
.nexus-navigator .nexus-type-button.is-active {
  transform: none;
}
.nexus-navigator-note {
  display: flex;
  gap: .7rem;
  margin: auto .8rem .8rem;
  padding: .85rem;
  border: 1px solid rgba(125, 255, 168, .14);
  border-radius: 11px;
  background: rgba(12, 40, 32, .24);
}
.nexus-navigator-note .nexus-pulse { flex: 0 0 auto; margin-top: .25rem; }
.nexus-navigator-note p { margin: 0; color: #789aa6; font-size: .7rem; line-height: 1.45; }
.nexus-navigator-note strong { display: block; margin-bottom: .18rem; color: #bdeecb; }
.nexus-stage {
  min-width: 0;
  background: radial-gradient(circle at 50% 48%, rgba(26, 75, 92, .3), rgba(3, 14, 23, .97) 62%);
}
.nexus-graph-wrap {
  min-height: 656px;
}
.nexus-graph {
  height: 656px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.nexus-graph.is-manipulating { cursor: grabbing; }
.nexus-edge-type { stroke: rgba(93, 188, 210, .18); }
.nexus-edge-semantic { stroke: rgba(122, 212, 255, .32); stroke-width: 1.35; }
.nexus-edge-curated { stroke: rgba(125, 255, 168, .76); stroke-width: 2; filter: drop-shadow(0 0 3px rgba(125, 255, 168, .45)); }
.nexus-object-preview {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100% - 2rem));
  overflow: hidden;
  border: 1px solid rgba(62, 200, 255, .24);
  border-radius: 14px;
  background: rgba(2, 12, 19, .92);
  box-shadow: 0 16px 40px rgba(0, 5, 10, .48), inset 0 1px rgba(255, 255, 255, .03);
  backdrop-filter: blur(16px);
}
.nexus-preview-idle,
.nexus-preview-object { padding: 1rem; }
.nexus-preview-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: .75rem;
  border: 1px solid rgba(125, 255, 168, .35);
  border-radius: 50%;
  color: #7dffa8;
  box-shadow: 0 0 18px rgba(125, 255, 168, .15);
}
.nexus-preview-idle strong { display: block; color: #e2f7fc; }
.nexus-preview-idle p,
.nexus-preview-object p { margin: .4rem 0 0; color: #83a5b1; font-size: .76rem; line-height: 1.5; }
.nexus-preview-type {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .55rem;
  color: #82a7b3;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nexus-preview-type span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 9px var(--node-color);
}
.nexus-preview-object > strong { display: block; color: #edfaff; font-size: .95rem; }
.nexus-preview-object > div:nth-of-type(2) { display: flex; justify-content: space-between; gap: .7rem; margin-top: .8rem; color: #6f929f; font-size: .68rem; }
.nexus-preview-object em { color: #7dffa8; font-style: normal; }
.nexus-preview-object button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  margin-top: .85rem;
  border: 0;
  border-top: 1px solid rgba(62, 200, 255, .13);
  padding: .75rem 0 0;
  background: transparent;
  color: #7ad4ff;
  font: 700 .72rem/1 inherit;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nexus-library {
  min-width: 0;
  background: rgba(3, 15, 23, .66);
}
.nexus-library .nexus-index-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  max-height: 656px;
  overflow: auto;
  padding: 1rem;
}
.nexus-library .nexus-index-row {
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: .7rem;
  min-height: 116px;
  border: 1px solid rgba(62, 200, 255, .13);
  border-radius: 12px;
  padding: .85rem;
  background: rgba(4, 20, 30, .42);
}
.nexus-library .nexus-index-row:hover,
.nexus-library .nexus-index-row:focus-visible {
  border-color: rgba(125, 255, 168, .38);
  background: rgba(12, 40, 32, .4);
}
.nexus-index-row strong,
.nexus-index-row small,
.nexus-index-row em { display: block; }
.nexus-index-row small { color: #7ad4ff; font-size: .61rem; letter-spacing: .07em; text-transform: uppercase; }
.nexus-index-row strong { margin-top: .35rem; white-space: normal; color: #e1f6fc; line-height: 1.35; }
.nexus-index-row em { margin-top: .5rem; color: #668895; font-size: .67rem; font-style: normal; }
.nexus-index-row b { color: #4d7180; font-size: .8rem; }

/* Full-screen research operating workspace */
.research-workspace {
  width: calc(100vw - 32px);
  max-width: 1680px;
  height: calc(100vh - 32px);
  max-height: 1050px;
  overflow: hidden;
  margin: auto;
  border: 1px solid rgba(62, 200, 255, .32);
  border-radius: 20px;
  padding: 0;
  background: #031018;
  color: #dff5fa;
  box-shadow: 0 30px 100px rgba(0, 4, 8, .8), inset 0 1px rgba(255, 255, 255, .035);
}
.research-workspace::backdrop {
  background: rgba(0, 5, 9, .86);
  backdrop-filter: blur(8px);
}
.workspace-close {
  position: absolute;
  z-index: 20;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  border: 1px solid rgba(62, 200, 255, .24);
  border-radius: 9px;
  background: #071c27;
  color: #b9dce5;
  font-size: 1.25rem;
}
.workspace-close:hover,
.workspace-close:focus-visible { border-color: #7dffa8; color: #7dffa8; outline: none; }
.workspace-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  height: 100%;
}
.research-workspace #research-hud-body { position: relative; width: 100%; min-width: 0; height: 100%; overflow: hidden; }
.workspace-topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 86px;
  padding: 1rem 4.6rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(62, 200, 255, .15);
  background: linear-gradient(90deg, rgba(7, 29, 39, .98), rgba(3, 15, 23, .98));
}
.workspace-identity { display: flex; align-items: center; gap: .8rem; min-width: 0; margin-right: auto; }
.workspace-identity > div { min-width: 0; }
.workspace-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(125, 255, 168, .38);
  border-radius: 50%;
  color: #7dffa8;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(125, 255, 168, .08), 0 0 20px rgba(125, 255, 168, .08);
}
.workspace-identity p { margin: 0 0 .15rem; color: #6f95a3; font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; }
.workspace-identity h2 { overflow: hidden; margin: 0; color: #effcff; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.workspace-status { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.workspace-status strong,
.workspace-status small { display: block; }
.workspace-status strong { color: #aef2c2; font-size: .72rem; }
.workspace-status small { margin-top: .15rem; color: #62818d; font-size: .62rem; }
.workspace-source-link {
  flex: 0 0 auto;
  border: 1px solid rgba(62, 200, 255, .22);
  border-radius: 8px;
  padding: .65rem .8rem;
  color: #7ad4ff;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.workspace-tabs {
  display: flex;
  gap: .2rem;
  overflow-x: auto;
  padding: .55rem 1.2rem 0;
  border-bottom: 1px solid rgba(62, 200, 255, .14);
  background: #020d14;
}
.workspace-tabs button {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  border: 0;
  padding: .72rem .9rem .8rem;
  background: transparent;
  color: #648592;
  font: 700 .68rem/1 inherit;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.workspace-tabs button::after { content: ""; position: absolute; right: .9rem; bottom: 0; left: .9rem; height: 2px; background: transparent; }
.workspace-tabs button.is-active { color: #dff8ff; }
.workspace-tabs button.is-active::after { background: #7dffa8; box-shadow: 0 0 10px rgba(125, 255, 168, .7); }
.workspace-tabs small { margin-left: .35rem; color: #536f79; }
.workspace-grid {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr) 210px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.workspace-dossier,
.workspace-rail {
  overflow: auto;
  padding: 1.2rem;
  background: rgba(2, 12, 19, .72);
}
.workspace-dossier { border-right: 1px solid rgba(62, 200, 255, .13); }
.workspace-dossier h3 { margin: .35rem 0 .65rem; color: #e5f8fc; font-size: 1rem; line-height: 1.4; }
.workspace-summary { color: #87a7b2; font-size: .75rem; line-height: 1.55; }
.workspace-facts { display: grid; gap: 0; margin: 1.15rem 0; }
.workspace-facts div { padding: .65rem 0; border-top: 1px solid rgba(62, 200, 255, .1); }
.workspace-facts dt { color: #587784; font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; }
.workspace-facts dd { margin: .25rem 0 0; color: #c5e1e8; font-size: .72rem; line-height: 1.4; }
.workspace-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.workspace-tags span { border: 1px solid rgba(62, 200, 255, .15); border-radius: 999px; padding: .3rem .45rem; color: #7699a5; font-size: .6rem; }
.workspace-content {
  min-width: 0;
  overflow: auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  background-image: linear-gradient(rgba(125, 255, 168, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 200, 255, .018) 1px, transparent 1px);
  background-size: 36px 36px;
}
.workspace-panel[hidden] { display: none !important; }
.workspace-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(62, 200, 255, .13); }
.workspace-section-head h3 { margin: .25rem 0 0; color: #edfbff; font-size: clamp(1.25rem, 2vw, 1.8rem); }
.workspace-section-head > span { color: #7dffa8; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.workspace-content .research-abstract { margin: 0 0 1.2rem; padding: 1rem 1.1rem; border: 1px solid rgba(125, 255, 168, .18); border-left: 3px solid #7dffa8; border-radius: 0 10px 10px 0; background: rgba(12, 40, 32, .3); color: #cdebd6; line-height: 1.65; }
.workspace-content .knowledge-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-source-panel .research-hud-document { max-width: 920px; margin: 0 auto; }
.workspace-source-panel .research-file-picker { display: grid; min-width: 0; max-width: 100%; }
.workspace-source-panel .research-file-picker select { width: 100%; min-width: 0; max-width: 100%; }
.workspace-content h4 { margin: 1.3rem 0 .7rem; color: #7ad4ff; }
.workspace-content .research-code { width: 100%; max-width: 100%; max-height: calc(100vh - 290px); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid rgba(62, 200, 255, .16); border-radius: 10px; padding: 1rem; background: #020c12; }
.workspace-math { overflow-x: auto; padding: 1.5rem; border: 1px solid rgba(62, 200, 255, .16); border-radius: 12px; background: rgba(4, 20, 30, .55); }
.workspace-provenance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.workspace-provenance div { padding: 1rem; border: 1px solid rgba(62, 200, 255, .14); border-radius: 10px; background: rgba(4, 20, 30, .48); }
.workspace-provenance span,
.workspace-provenance strong { display: block; }
.workspace-provenance span { color: #648592; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.workspace-provenance strong { margin-top: .4rem; color: #d7edf3; font-size: .78rem; }
.workspace-governance-note { margin-top: 1rem; padding: 1rem; border-left: 2px solid #ffca7a; background: rgba(80, 52, 12, .2); color: #b9a98f; font-size: .78rem; line-height: 1.6; }
.workspace-governance-note span { display: block; margin-bottom: .25rem; color: #ffca7a; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.workspace-rail { display: flex; flex-direction: column; gap: .7rem; border-left: 1px solid rgba(62, 200, 255, .13); }
.workspace-rail > div { padding: .9rem; border: 1px solid rgba(62, 200, 255, .12); border-radius: 10px; background: rgba(4, 20, 30, .42); }
.workspace-rail span,
.workspace-rail strong,
.workspace-rail small { display: block; }
.workspace-rail > div span { color: #668794; font-size: .59rem; letter-spacing: .08em; text-transform: uppercase; }
.workspace-rail > div strong { margin: .35rem 0 .1rem; color: #7dffa8; font-size: 1.35rem; }
.workspace-rail > div small { color: #708f9b; font-size: .64rem; }
.workspace-rail button { display: flex; justify-content: space-between; gap: .5rem; cursor: pointer; border: 1px solid rgba(62, 200, 255, .14); border-radius: 8px; padding: .75rem; background: transparent; color: #8fc7d6; font: 700 .66rem/1.3 inherit; text-align: left; }
.workspace-rail button:hover { border-color: #7dffa8; color: #7dffa8; }
.workspace-content .research-artifacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-content .research-artifacts span { display: grid; gap: .2rem; border: 1px solid rgba(62, 200, 255, .14); border-radius: 9px; padding: .8rem; background: rgba(4, 20, 30, .4); }
.workspace-content .research-artifacts small { color: #708f9b; }

@media (max-width: 1120px) {
  .nexus-library .nexus-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid { grid-template-columns: 235px minmax(0, 1fr); }
  .workspace-rail { display: none; }
}
@media (max-width: 860px) {
  .nexus-dashboard-head { align-items: start; flex-direction: column; }
  .nexus-command-bar { grid-template-columns: repeat(3, 1fr); }
  .nexus-command-bar .nexus-search { grid-column: 1 / -1; }
  .nexus-workspace { grid-template-columns: 1fr; }
  .nexus-navigator { border-right: 0; border-bottom: 1px solid rgba(62, 200, 255, .14); }
  .nexus-navigator .nexus-type-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nexus-navigator-note { display: none; }
  .nexus-stage-head { align-items: flex-start; flex-direction: column; }
  .workspace-grid { grid-template-columns: 1fr; overflow: auto; }
  .workspace-dossier { overflow: visible; border-right: 0; border-bottom: 1px solid rgba(62, 200, 255, .13); }
  .workspace-dossier .workspace-summary { max-width: 720px; }
  .workspace-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workspace-facts div { padding-right: .65rem; }
  .workspace-content { overflow: visible; }
}
@media (max-width: 640px) {
  .nexus-dashboard.container { width: min(100% - 1rem, 1500px); border-radius: 16px; }
  .nexus-dashboard-head { padding: 1.1rem; }
  .nexus-command-bar { grid-template-columns: 1fr; padding: .8rem; }
  .nexus-command-bar .nexus-search { grid-column: auto; }
  .nexus-navigator .nexus-type-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nexus-stage-head { align-items: start; flex-direction: column; gap: .25rem; }
  .nexus-stage-tools { width: 100%; margin-top: .45rem; }
  .nexus-stage-tools > span { display: none; }
  .nexus-stage-tools button { flex: 1; }
  .nexus-graph-wrap,
  .nexus-graph { min-height: 540px; height: 540px; }
  .nexus-object-preview { right: .6rem; bottom: .6rem; width: calc(100% - 1.2rem); }
  .nexus-library .nexus-index-list { grid-template-columns: 1fr; max-height: none; }
  .research-workspace { width: 100vw; height: 100vh; max-height: none; border: 0; border-radius: 0; }
  .workspace-topbar { min-height: 76px; padding: .75rem 3.7rem .75rem .75rem; }
  .workspace-status,
  .workspace-source-link { display: none; }
  .workspace-tabs { padding-left: .5rem; }
  .workspace-tabs button { padding-right: .7rem; padding-left: .7rem; }
  .workspace-dossier { display: none; }
  .workspace-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-content { padding: 1rem; }
  .workspace-content .knowledge-map,
  .workspace-provenance,
  .workspace-content .research-artifacts { grid-template-columns: 1fr; }
  .workspace-section-head { align-items: start; flex-direction: column; }
}

/* Nexus relationship focus and refinement */
.nexus-stage {
  position: relative;
  isolation: isolate;
}
.nexus-stage::after {
  position: absolute;
  z-index: -1;
  inset: 18% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 190, 225, .055), transparent 68%);
  filter: blur(24px);
  content: "";
  pointer-events: none;
}
.nexus-edge {
  transition: opacity .22s ease, stroke .22s ease, stroke-width .22s ease, filter .22s ease;
}
.nexus-node {
  transition: opacity .22s ease, filter .22s ease;
}
.nexus-node circle,
.nexus-node text {
  transition: opacity .22s ease, fill .22s ease, stroke .22s ease, filter .22s ease;
}
.nexus-node.is-dimmed { opacity: .09; }
.nexus-edge.is-dimmed { opacity: .035; }
.nexus-node.is-neighbor { opacity: .9; }
.nexus-node.is-neighbor circle:first-child {
  stroke: rgba(220, 252, 255, .96);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 9px rgba(122, 212, 255, .72));
}
.nexus-node.is-neighbor text { fill: #dff8ff; opacity: .94; }
.nexus-node.is-focus { opacity: 1; filter: drop-shadow(0 0 8px rgba(125, 255, 168, .35)); }
.nexus-node.is-focus circle:first-child { stroke: #fff; stroke-width: 2.4; filter: drop-shadow(0 0 13px rgba(125, 255, 168, .95)); }
.nexus-node.is-focus .nexus-node-ring { stroke: rgba(125, 255, 168, .92); stroke-width: 2; }
.nexus-node.is-focus text { fill: #fff; opacity: 1; font-weight: 700; }
.nexus-edge.is-focus {
  opacity: 1;
  stroke: rgba(125, 255, 168, .9);
  stroke-width: 2.15;
  filter: drop-shadow(0 0 4px rgba(125, 255, 168, .55));
}
.nexus-object-preview {
  max-height: calc(100% - 2rem);
  overflow: auto;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nexus-object-preview:hover {
  border-color: rgba(125, 255, 168, .28);
  box-shadow: 0 18px 48px rgba(0, 5, 10, .55), 0 0 24px rgba(125, 255, 168, .055);
}
.nexus-preview-object > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.nexus-preview-relations {
  display: grid !important;
  gap: .35rem !important;
  margin-top: .75rem !important;
  padding-top: .7rem;
  border-top: 1px solid rgba(62, 200, 255, .12);
}
.nexus-preview-relations > small {
  color: #668895;
  font-size: .58rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nexus-preview-relations button {
  display: grid;
  gap: .15rem;
  width: 100%;
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  padding: .4rem .5rem;
  background: rgba(62, 200, 255, .035);
  color: #cbe8ee;
  text-align: left;
}
.nexus-preview-relations button:hover,
.nexus-preview-relations button:focus-visible {
  background: rgba(125, 255, 168, .08);
  color: #fff;
  outline: 1px solid rgba(125, 255, 168, .22);
}
.nexus-preview-relations button span {
  overflow: hidden;
  font-size: .7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nexus-preview-relations button em {
  overflow: hidden;
  color: #6f929f;
  font-size: .6rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nexus-index-row strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.nexus-type-button.is-active {
  box-shadow: inset 0 0 18px rgba(125, 255, 168, .05), 0 0 14px rgba(125, 255, 168, .045);
}
.workspace-panel:not([hidden]) {
  animation: nexus-panel-in .24s ease both;
}
.workspace-connection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.workspace-connection-list button {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: .7rem;
  min-width: 0;
  cursor: pointer;
  border: 1px solid rgba(62, 200, 255, .14);
  border-radius: 10px;
  padding: .8rem;
  background: rgba(4, 20, 30, .42);
  color: inherit;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.workspace-connection-list button:hover,
.workspace-connection-list button:focus-visible {
  border-color: rgba(125, 255, 168, .4);
  background: rgba(12, 40, 32, .36);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 7, 12, .22), 0 0 18px rgba(125, 255, 168, .04);
}
.workspace-connection-list small,
.workspace-connection-list strong,
.workspace-connection-list em { display: block; }
.workspace-connection-list small { color: #6f9eaa; font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; }
.workspace-connection-list strong { margin-top: .25rem; color: #e0f5fa; font-size: .76rem; line-height: 1.35; }
.workspace-connection-list em { margin-top: .35rem; color: #7dffa8; font-size: .62rem; font-style: normal; }
.workspace-connection-list b { color: #557783; font-size: .65rem; font-weight: 600; }
@keyframes nexus-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .workspace-connection-list { grid-template-columns: 1fr; }
  .nexus-preview-relations { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-panel:not([hidden]) { animation: none; }
  .nexus-edge,
  .nexus-node,
  .nexus-node circle,
  .nexus-node text,
  .workspace-connection-list button { transition: none; }
}

/* Alchetron Emergent private synthesis field */
.nexus-dashboard.is-emergent-view .nexus-command-bar,
.nexus-dashboard.is-emergent-view .nexus-navigator { display: none; }
.nexus-dashboard.is-emergent-view .nexus-workspace { grid-template-columns: minmax(0, 1fr); }
.emergent-dashboard {
  min-width: 0;
  background: radial-gradient(circle at 55% 0, rgba(192, 132, 252, .075), transparent 34%), #031019;
}
.emergent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgba(192, 132, 252, .16);
}
.emergent-head h3 { margin: .2rem 0 .35rem; color: #effcff; font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
.emergent-head p:last-child { max-width: 760px; margin: 0; color: #88aab8; }
.emergent-auth {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .65rem;
  border: 1px solid rgba(125, 255, 168, .2);
  border-radius: 11px;
  padding: .7rem .85rem;
  background: rgba(12, 40, 32, .3);
}
.emergent-auth strong,
.emergent-auth small { display: block; }
.emergent-auth strong { color: #bdf3cc; font-size: .72rem; }
.emergent-auth small { margin-top: .12rem; color: #678895; font-size: .61rem; }
.emergent-auth.is-locked { border-color: rgba(255, 202, 122, .22); background: rgba(62, 40, 12, .24); }
.emergent-auth.is-locked .nexus-pulse { background: #ffca7a; box-shadow: 0 0 0 5px rgba(255, 202, 122, .08), 0 0 14px rgba(255, 202, 122, .5); }
.emergent-auth.is-locked strong { color: #ffdaa0; }
.emergent-governance {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1.5rem;
  border-bottom: 1px solid rgba(62, 200, 255, .11);
  background: rgba(2, 11, 18, .72);
  color: #7696a2;
  font-size: .7rem;
}
.emergent-governance strong { color: #c9a7f5; letter-spacing: .08em; text-transform: uppercase; }
.emergent-grid {
  display: grid;
  grid-template-columns: 250px minmax(400px, 1fr) 310px;
  min-height: 680px;
}
.emergent-seeds,
.emergent-compose,
.emergent-log { min-width: 0; padding: 1rem; }
.emergent-seeds { border-right: 1px solid rgba(62, 200, 255, .12); background: rgba(2, 12, 19, .52); }
.emergent-compose { display: grid; align-content: start; gap: .75rem; }
.emergent-log { border-left: 1px solid rgba(62, 200, 255, .12); background: rgba(2, 12, 19, .52); }
.emergent-panel-title { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.emergent-panel-title > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(192, 132, 252, .34);
  border-radius: 50%;
  color: #c9a7f5;
  font: 700 .65rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow: 0 0 16px rgba(192, 132, 252, .07);
}
.emergent-panel-title strong,
.emergent-panel-title small { display: block; }
.emergent-panel-title strong { color: #def4fa; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.emergent-panel-title small { margin-top: .18rem; color: #648492; font-size: .62rem; }
.emergent-dashboard label { display: grid; gap: .3rem; color: #6e909d; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.emergent-dashboard input,
.emergent-dashboard select,
.emergent-dashboard textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(62, 200, 255, .17);
  border-radius: 8px;
  padding: .68rem .72rem;
  background: rgba(2, 13, 20, .86);
  color: #e1f5fa;
  font: 400 .76rem/1.45 inherit;
  letter-spacing: 0;
  text-transform: none;
  resize: vertical;
}
.emergent-dashboard input:focus,
.emergent-dashboard select:focus,
.emergent-dashboard textarea:focus { border-color: rgba(192, 132, 252, .6); outline: none; box-shadow: 0 0 0 3px rgba(192, 132, 252, .07), 0 0 18px rgba(192, 132, 252, .045); }
.emergent-selected-seeds { display: grid; gap: .35rem; margin: .7rem 0; }
.emergent-selected-seeds button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  cursor: pointer;
  border: 1px solid rgba(125, 255, 168, .2);
  border-radius: 8px;
  padding: .5rem .6rem;
  background: rgba(12, 40, 32, .28);
  color: #c9ebd2;
  text-align: left;
}
.emergent-selected-seeds button span { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.emergent-selected-seeds button b { color: #79a589; }
.emergent-seed-results { display: grid; gap: .3rem; max-height: 500px; overflow: auto; padding-right: .15rem; }
.emergent-seed-results > button {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: .55rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .55rem;
  background: rgba(62, 200, 255, .025);
  color: inherit;
  text-align: left;
}
.emergent-seed-results > button:hover,
.emergent-seed-results > button:focus-visible { border-color: rgba(125, 255, 168, .22); background: rgba(125, 255, 168, .055); outline: none; }
.emergent-seed-results small,
.emergent-seed-results strong { display: block; }
.emergent-seed-results small { color: #678a98; font-size: .55rem; letter-spacing: .07em; }
.emergent-seed-results strong { overflow: hidden; margin-top: .18rem; color: #cce5eb; font-size: .67rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.emergent-seed-results b { color: #7dffa8; font-size: .8rem; }
.emergent-form-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: .6rem; }
.emergent-form-row-compact { grid-template-columns: .8fr .5fr 1.2fr; }
.emergent-form-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.emergent-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(62, 200, 255, .1); padding-top: .75rem; }
.emergent-submit-row p { margin: 0; color: #708f9b; font-size: .68rem; }
.emergent-submit-row p.is-error { color: #ff9eb8; }
.emergent-submit-row p.is-success { color: #7dffa8; }
.emergent-submit-row button {
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid rgba(192, 132, 252, .5);
  border-radius: 8px;
  padding: .7rem .9rem;
  background: rgba(192, 132, 252, .1);
  color: #e6d4ff;
  font: 700 .66rem/1 inherit;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.emergent-submit-row button:hover { border-color: #7dffa8; color: #7dffa8; box-shadow: 0 0 18px rgba(125, 255, 168, .07); }
.emergent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-bottom: .7rem; }
.emergent-stats span { padding: .55rem; border: 1px solid rgba(62, 200, 255, .1); border-radius: 8px; background: rgba(4, 20, 30, .4); }
.emergent-stats strong,
.emergent-stats small { display: block; }
.emergent-stats strong { color: #c9a7f5; font-size: 1rem; }
.emergent-stats small { color: #648492; font-size: .55rem; text-transform: uppercase; }
.emergent-log-list { display: grid; gap: .4rem; max-height: 470px; overflow: auto; }
.emergent-entry { border: 1px solid rgba(62, 200, 255, .12); border-radius: 9px; background: rgba(4, 20, 30, .42); }
.emergent-entry summary { display: grid; gap: .22rem; cursor: pointer; padding: .7rem; list-style: none; }
.emergent-entry summary::-webkit-details-marker { display: none; }
.emergent-entry summary strong { color: #d9eef3; font-size: .72rem; line-height: 1.35; }
.emergent-entry summary small { color: #668793; font-size: .59rem; }
.emergent-kind { color: #c9a7f5; font-size: .55rem; letter-spacing: .08em; }
.emergent-entry-body { padding: 0 .7rem .7rem; border-top: 1px solid rgba(62, 200, 255, .08); }
.emergent-entry-body p { color: #91adb6; font-size: .68rem; line-height: 1.5; }
.emergent-entry-body pre { max-height: 170px; overflow: auto; white-space: pre-wrap; border: 1px solid rgba(192, 132, 252, .13); border-radius: 7px; padding: .6rem; background: #020c12; color: #c9dce1; font-size: .62rem; }
.emergent-entry-seeds { display: flex; flex-wrap: wrap; gap: .25rem; }
.emergent-entry-seeds span { border: 1px solid rgba(125, 255, 168, .12); border-radius: 999px; padding: .25rem .4rem; color: #78a288; font-size: .55rem; }
.emergent-review-actions { display: flex; gap: .3rem; margin-top: .65rem; }
.emergent-review-actions button { cursor: pointer; border: 1px solid rgba(62, 200, 255, .14); border-radius: 6px; padding: .35rem .48rem; background: transparent; color: #799aa5; font-size: .58rem; }
.emergent-review-actions button:hover { border-color: #c9a7f5; color: #d9c4f8; }
.emergent-contract { margin-top: .8rem; border-top: 1px solid rgba(62, 200, 255, .1); padding-top: .65rem; }
.emergent-contract summary { cursor: pointer; color: #7ad4ff; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.emergent-contract pre { max-height: 280px; overflow: auto; white-space: pre-wrap; border: 1px solid rgba(62, 200, 255, .12); border-radius: 8px; padding: .65rem; background: #020c12; color: #8faeb8; font-size: .58rem; line-height: 1.5; }
@media (max-width: 1200px) {
  .emergent-grid { grid-template-columns: 250px minmax(0, 1fr); }
  .emergent-log { grid-column: 1 / -1; border-top: 1px solid rgba(62, 200, 255, .12); border-left: 0; }
  .emergent-log-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 380px; }
}
@media (max-width: 760px) {
  .emergent-head { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .emergent-auth { width: 100%; }
  .emergent-governance { align-items: flex-start; flex-direction: column; }
  .emergent-grid { grid-template-columns: 1fr; }
  .emergent-seeds { border-right: 0; border-bottom: 1px solid rgba(62, 200, 255, .12); }
  .emergent-form-row,
  .emergent-form-row-compact,
  .emergent-form-split { grid-template-columns: 1fr; }
  .emergent-log { grid-column: auto; }
  .emergent-log-list { grid-template-columns: 1fr; max-height: none; }
  .emergent-submit-row { align-items: stretch; flex-direction: column; }
}

/* Emergent v2 — public, long-form model field journal */
.emergent-journal-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(3, 15, 24, .96) 0 310px, transparent 310px),
    radial-gradient(circle at 72% 12%, rgba(125, 255, 168, .045), transparent 34%);
}
.emergent-stream {
  min-width: 0;
  border-right: 1px solid rgba(62, 200, 255, .13);
  padding: 1.2rem;
  background: rgba(2, 12, 19, .7);
}
.emergent-public-list { display: grid; gap: .55rem; }
.emergent-public-list > button {
  display: grid;
  gap: .45rem;
  cursor: pointer;
  border: 1px solid rgba(62, 200, 255, .11);
  border-radius: 11px;
  padding: .9rem;
  background: rgba(5, 23, 34, .55);
  color: inherit;
  text-align: left;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.emergent-public-list > button:hover,
.emergent-public-list > button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 255, 168, .35);
  outline: none;
  background: rgba(8, 35, 42, .7);
}
.emergent-public-list > button.is-active {
  border-color: rgba(125, 255, 168, .42);
  background: linear-gradient(135deg, rgba(125, 255, 168, .08), rgba(192, 132, 252, .045));
  box-shadow: inset 3px 0 0 #7dffa8, 0 0 26px rgba(125, 255, 168, .05);
}
.emergent-public-list strong { color: #e7f8fb; font-size: .84rem; line-height: 1.4; }
.emergent-public-list p { margin: 0; color: #86a4ae; font-size: .7rem; line-height: 1.55; }
.emergent-public-list small { color: #5f808c; font-size: .6rem; }
.emergent-reader {
  min-width: 0;
  padding: clamp(2rem, 5vw, 5.5rem) clamp(1.4rem, 6vw, 6.5rem);
  background: linear-gradient(180deg, rgba(5, 20, 30, .42), rgba(2, 12, 18, .1));
}
.emergent-reader > * { width: min(100%, 940px); margin-right: auto; margin-left: auto; }
.emergent-reader-empty { display: grid; place-items: center; min-height: 520px; color: #7696a2; text-align: center; }
.emergent-reader-empty h3 { margin: 1rem 0 .35rem; color: #e2f4f8; font-size: 2rem; }
.emergent-article-head { padding-bottom: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid rgba(62, 200, 255, .13); }
.emergent-article-kicker { display: flex; flex-wrap: wrap; gap: .7rem; color: #ad8cdf; font: 700 .68rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
.emergent-article-kicker span + span { color: #5f8592; }
.emergent-article-head h1 {
  max-width: 880px;
  margin: 1.2rem 0 1.4rem;
  color: #f0fcff;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(62, 200, 255, .08);
}
.emergent-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; margin: 0; color: #6f929e; font-size: .72rem; }
.emergent-byline strong { color: #8fffb3; letter-spacing: .035em; }
.emergent-byline span { position: relative; }
.emergent-byline span:not(:last-child)::after { position: absolute; right: -.62rem; color: #35515b; content: "·"; }
.emergent-article-lede {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-left: 2px solid #7dffa8;
  padding: .25rem 0 .25rem clamp(1.2rem, 3vw, 2rem);
}
.emergent-article-lede > span { display: block; margin-bottom: .8rem; color: #7dffa8; font: 700 .68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.emergent-article-lede p {
  margin: 0 0 1.15rem;
  color: #d9edf1;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.55;
  letter-spacing: -.012em;
}
.emergent-article-section { padding-top: clamp(2.4rem, 6vw, 5rem); }
.emergent-article-section h2 {
  margin: 0 0 1.35rem;
  color: #e9f8fb;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.emergent-article-section > p {
  max-width: 820px;
  margin: 0 0 1.35rem;
  color: #a9c2ca;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.82;
}
.emergent-section-intro { color: #7698a3 !important; font-size: .9rem !important; }
.emergent-math pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(192, 132, 252, .24);
  border-radius: 14px;
  padding: clamp(1.2rem, 3vw, 2.1rem);
  background: linear-gradient(145deg, rgba(15, 14, 35, .82), rgba(2, 13, 20, .94));
  color: #e3d9f4;
  font: 500 clamp(.88rem, 1.4vw, 1.08rem)/1.75 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  box-shadow: 0 0 36px rgba(192, 132, 252, .04);
}
.emergent-source-lattice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.emergent-source-card {
  display: grid;
  gap: .45rem;
  border: 1px solid rgba(62, 200, 255, .13);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(4, 21, 31, .55);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.emergent-source-card:hover { border-color: rgba(125, 255, 168, .35); background: rgba(8, 34, 39, .68); box-shadow: 0 0 24px rgba(125, 255, 168, .04); }
.emergent-source-card small { color: #7dffa8; font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; }
.emergent-source-card strong { color: #dceff3; font-size: .86rem; line-height: 1.35; }
.emergent-source-card span { color: #74939e; font-size: .7rem; line-height: 1.55; }
.emergent-falsification,
.emergent-uncertainty { margin-top: clamp(2.2rem, 5vw, 4rem); border: 1px solid rgba(255, 202, 122, .16); border-radius: 14px; padding: clamp(1.2rem, 3vw, 2rem); background: rgba(46, 31, 13, .16); }
.emergent-uncertainty { border-color: rgba(62, 200, 255, .13); background: rgba(3, 24, 34, .4); }
.emergent-falsification h2,
.emergent-uncertainty h2 { font-size: 1.25rem; }
.emergent-falsification > p,
.emergent-uncertainty > p { margin-bottom: 0; font-size: .95rem; }
.emergent-article-foot { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid rgba(62, 200, 255, .13); padding-top: 1.2rem; }
.emergent-article-foot div { display: flex; flex-wrap: wrap; gap: .4rem; }
.emergent-article-foot span { border: 1px solid rgba(192, 132, 252, .18); border-radius: 999px; padding: .3rem .55rem; color: #b69bd9; font-size: .62rem; text-transform: uppercase; }
.emergent-article-foot p { margin: 1rem 0 0; color: #526f79; font-size: .65rem; }
.emergent-studio { border-top: 1px solid rgba(192, 132, 252, .2); background: rgba(4, 10, 20, .92); }
.emergent-studio > summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; cursor: pointer; padding: 1rem 1.5rem; color: #d8edf2; list-style: none; }
.emergent-studio > summary::-webkit-details-marker { display: none; }
.emergent-studio > summary span { color: #7dffa8; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.emergent-studio > summary strong { font-size: .86rem; }
.emergent-studio > summary small { color: #627f89; font-size: .65rem; }
.emergent-studio-grid { display: grid; grid-template-columns: 260px minmax(430px, 1fr) 300px; border-top: 1px solid rgba(62, 200, 255, .1); }
.emergent-studio .emergent-seeds,
.emergent-studio .emergent-compose,
.emergent-studio .emergent-log { padding: 1rem; }
.emergent-review-actions .is-publish { border-color: rgba(125, 255, 168, .4); color: #7dffa8; }
.emergent-auth.is-authorized { border-color: rgba(192, 132, 252, .28); background: rgba(33, 18, 49, .32); }

@media (max-width: 1100px) {
  .emergent-journal-layout { grid-template-columns: 260px minmax(0, 1fr); background-position: 0; }
  .emergent-studio-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .emergent-studio .emergent-log { grid-column: 1 / -1; border-top: 1px solid rgba(62, 200, 255, .1); border-left: 0; }
}
.lattice-findings {
  display: grid;
  gap: 1rem;
}
.lattice-finding {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(4, 16, 24, 0.45);
}
.lattice-finding h3 { margin: 0.2rem 0 0.6rem; }
.lattice-table { display: grid; gap: 0.65rem; }
.lattice-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.lattice-row p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.86rem; }

@media (max-width: 760px) {
  .emergent-journal-layout { grid-template-columns: 1fr; background: transparent; }
  .emergent-stream { border-right: 0; border-bottom: 1px solid rgba(62, 200, 255, .13); }
  .emergent-reader { padding: 2.2rem 1.2rem 3rem; }
  .emergent-article-head h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
  .emergent-article-lede p { font-size: 1.2rem; }
  .emergent-source-lattice { grid-template-columns: 1fr; }
  .emergent-studio > summary { grid-template-columns: 1fr; }
  .emergent-studio-grid { grid-template-columns: 1fr; }
  .emergent-studio .emergent-log { grid-column: auto; }
}

