@import url("font-registry.css");
:root {
  color-scheme: dark;
  --ink: #07070a;
  --panel: #111118;
  --panel-soft: #1a1a22;
  --paper: #f4efe5;
  --muted: #aaa39a;
  --acid: #b6ff4d;
  --sky: #8bdfff;
  --hot: #ff5d86;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, rgba(182,255,77,.18), transparent 32%), linear-gradient(135deg, #050507, #12121a 55%, #07070a);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: cover; }
button, input, textarea, select { font: inherit; }
button, .button {
  border: 0;
  border-radius: 999px;
  background: var(--acid);
  color: #09090b;
  font-weight: 900;
  padding: .85rem 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.button.ghost, button.ghost { background: rgba(244,239,229,.12); color: var(--paper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: rgba(7, 7, 10, .78);
  backdrop-filter: blur(18px);
}
.brand { font-size: clamp(1.2rem, 3vw, 2.4rem); font-weight: 950; letter-spacing: -.06em; }
.nav { display: flex; gap: .5rem; align-items: center; }
.nav a { color: var(--muted); padding: .65rem .8rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); background: rgba(244,239,229,.10); }
.menu-toggle { display: none; }

main { max-width: var(--max); margin: 0 auto; padding: clamp(1rem, 3vw, 3rem); }
.spread, .section-grid, .copy-block, .dashboard, .admin-shell, .shop-shell, .form-grid, .cart-shell, .checkout-shell {
  margin: clamp(2rem, 6vw, 7rem) 0;
}
.hero {
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .72fr);
  gap: clamp(1.5rem, 4vw, 6rem);
  align-items: center;
}
.hero-copy { max-width: 880px; }
.eyebrow {
  color: var(--acid);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 900;
}
h1, h2, h3 { line-height: .95; letter-spacing: -.07em; margin: .2em 0; }
h1 { font-size: clamp(3.8rem, 10vw, 11rem); }
h2 { font-size: clamp(2.4rem, 6vw, 6rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.lede { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.55rem); max-width: 720px; }
.hero-media {
  min-height: 520px;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--panel-soft);
  transform: rotate(1deg);
}
.section-grid {
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.card-grid, .gallery-grid, .product-grid, .dash-grid, .totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.work-card, .gallery-card, .product-card, .dashboard article, .admin-shell article, .record, .cart-line, .checkout-panel {
  background: rgba(244,239,229,.08);
  border-radius: 1.5rem;
  padding: 1.2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.gallery-card img, .gallery-card video, .product-card img, .product-card video { aspect-ratio: 4 / 3; border-radius: 1rem; }
.copy-block { max-width: 1000px; margin-left: clamp(0rem, 12vw, 14rem); }
.copy-block p { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); }
.product-card { display: grid; grid-template-rows: 260px auto; gap: 1rem; }
.option-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.option-row label { display: grid; gap: .25rem; color: var(--muted); font-size: .85rem; }
input, textarea, select {
  width: 100%;
  color: var(--paper);
  background: rgba(244,239,229,.08);
  border: 1px solid rgba(244,239,229,.16);
  border-radius: 1rem;
  padding: .85rem 1rem;
}
textarea { min-height: 160px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
form { display: grid; gap: .85rem; }
.filter-row, .inline-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 2rem; }
.chip { background: rgba(244,239,229,.09); color: var(--paper); }
.chip.is-active { background: var(--sky); color: var(--ink); }
.cart-line { display: grid; grid-template-columns: 100px 1fr auto; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.cart-line img { width: 100px; height: 100px; border-radius: 1rem; }
.checkout-shell { display: grid; grid-template-columns: 1fr .45fr; gap: 2rem; }
#payment-element { margin: 1rem 0; }
.site-footer { padding: 3rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: .9rem 1.2rem;
  border-radius: 999px;
  font-weight: 900;
}
.live-edit-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .7rem;
  background: rgba(244,239,229,.92);
  color: var(--ink);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.live-edit-bar button { padding: .55rem .75rem; background: var(--ink); color: var(--paper); }
.editable-node { outline: 2px dashed rgba(182,255,77,.7); outline-offset: .2rem; }
.editable-media { cursor: pointer; box-shadow: 0 0 0 3px rgba(139,223,255,.5); }
.admin-shell { display: grid; gap: 1.5rem; }
.admin-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-tab { background: rgba(244,239,229,.1); color: var(--paper); }
.admin-tab.is-active { background: var(--hot); color: var(--ink); }
.record { margin-bottom: .75rem; }
.record summary { cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
pre { white-space: pre-wrap; overflow: auto; color: var(--sky); }
.media-placeholder { display: grid; place-items: center; min-height: 260px; background: rgba(244,239,229,.08); color: var(--muted); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 4.5rem 1rem auto 1rem; display: none; flex-direction: column; align-items: stretch; background: rgba(17,17,24,.96); border-radius: 1.2rem; padding: 1rem; }
  .nav.is-open { display: flex; }
  .hero, .section-grid, .form-grid, .checkout-shell { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .copy-block { margin-left: 0; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line button { grid-column: 1 / -1; }
  .live-edit-bar { left: .5rem; right: .5rem; flex-wrap: wrap; }
}

.admin-access {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, .42);
  background: rgba(244, 239, 229, .045);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 229, .07);
  opacity: .58;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
}

.nav a.admin-access-top {
  padding: .48rem .7rem;
}

.admin-access:hover,
.admin-access:focus-visible {
  color: rgba(244, 239, 229, .88);
  background: rgba(244, 239, 229, .10);
  opacity: 1;
  transform: translateY(-1px);
}

.admin-dot {
  width: .48rem;
  height: .48rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 rgba(182, 255, 77, 0);
}

.admin-session .admin-access {
  color: #b6ff4d;
  background: rgba(182, 255, 77, .14);
  box-shadow: 0 0 22px rgba(182, 255, 77, .36), inset 0 0 0 1px rgba(182, 255, 77, .46);
  opacity: 1;
}

.admin-session .admin-dot {
  box-shadow: 0 0 16px rgba(182, 255, 77, .85);
}

.site-footer .admin-access-footer {
  margin-left: auto;
  align-self: flex-end;
  padding: .45rem .7rem;
}

/* 004 expansion + admin session fixes */
.section-lead {
  position: sticky;
  top: 6.5rem;
}
.copy-block.loose {
  max-width: 1120px;
  margin-left: clamp(0rem, 8vw, 8rem);
}
.copy-block.loose p:not(.eyebrow) {
  max-width: 880px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}
.gallery-card img,
.gallery-card video,
.product-card img,
.product-card video,
.admin-thumb {
  background: linear-gradient(135deg, rgba(182,255,77,.16), rgba(139,223,255,.12));
}
.gallery-card img,
.gallery-card video {
  min-height: 260px;
  max-height: 460px;
  border-radius: 1rem;
}
.work-card,
.gallery-card,
.product-card,
.dashboard article,
.admin-shell article,
.record,
.cart-line,
.checkout-panel {
  border: 1px solid rgba(244,239,229,.045);
  box-shadow: 0 1rem 4rem rgba(0,0,0,.18);
}
.admin-access {
  opacity: .38;
  transition: opacity .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.admin-access .admin-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  opacity: .5;
}
body.admin-session .admin-access {
  opacity: 1;
  color: #09090b;
  background: var(--acid);
  box-shadow: 0 0 24px rgba(182,255,77,.62), inset 0 0 0 1px rgba(7,7,10,.35);
}
.public-admin-tools,
.live-edit-bar {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .6rem;
  border-radius: 999px;
  background: rgba(7,7,10,.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(182,255,77,.28);
  box-shadow: 0 0 32px rgba(182,255,77,.25);
}
.live-edit-bar {
  right: 1rem;
  bottom: 4.8rem;
}
.public-admin-tools span,
.live-edit-bar strong {
  color: var(--acid);
  font-weight: 900;
  padding: 0 .45rem;
}
.public-admin-tools a,
.public-admin-tools button,
.live-edit-bar button {
  padding: .55rem .75rem;
  min-height: auto;
  font-size: .82rem;
}
.admin-thumb {
  width: min(260px, 100%);
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  margin: 1rem 0;
}
.compact {
  margin: 0 0 1rem;
}
.compact-form {
  margin-top: 1rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .section-lead {
    position: static;
  }
  .public-admin-tools,
  .live-edit-bar {
    left: 1rem;
    right: 1rem;
    border-radius: 1.25rem;
  }
  .live-edit-bar {
    bottom: 6.5rem;
  }
}


/* 005 auth polish + password visibility */
.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  gap: clamp(1.25rem, 4vw, 5rem);
  align-items: stretch;
  margin: clamp(2rem, 7vw, 8rem) 0;
}
.auth-intro {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 15% 20%, rgba(182,255,77,.18), transparent 28%),
    radial-gradient(circle at 80% 85%, rgba(255,93,134,.14), transparent 34%),
    rgba(244,239,229,.045);
  border-radius: 2rem;
  overflow: hidden;
}
.auth-intro h1 {
  font-size: clamp(3.2rem, 7vw, 8.5rem);
  max-width: 980px;
}
.auth-combo {
  position: relative;
  display: grid;
  gap: .8rem;
  align-content: center;
  padding: .8rem;
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(244,239,229,.13), rgba(244,239,229,.035)),
    rgba(7,7,10,.48);
  box-shadow: 0 2rem 6rem rgba(0,0,0,.28), inset 0 0 0 1px rgba(244,239,229,.07);
}
.auth-panel {
  position: relative;
  display: grid;
  gap: .85rem;
  padding: clamp(1rem, 2.4vw, 2rem);
  border-radius: 1.5rem;
  background: rgba(7,7,10,.62);
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.07);
}
.auth-panel h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}
.auth-panel-signup {
  background:
    radial-gradient(circle at 95% 5%, rgba(182,255,77,.18), transparent 32%),
    rgba(7,7,10,.72);
}
.auth-divider {
  display: grid;
  place-items: center;
  color: rgba(244,239,229,.42);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
}
.auth-divider span {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: rgba(244,239,229,.075);
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.08);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 5.2rem;
}
.password-toggle {
  position: absolute;
  right: .45rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: auto;
  padding: .45rem .7rem;
  background: rgba(182,255,77,.16);
  color: var(--acid);
  box-shadow: inset 0 0 0 1px rgba(182,255,77,.2);
  font-size: .76rem;
}
.password-toggle[aria-pressed="true"] {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(182,255,77,.34);
}
.admin-auth-stage .auth-intro {
  min-height: 460px;
}
.admin-login-panel {
  align-self: center;
}
@media (max-width: 900px) {
  .auth-stage {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    min-height: auto;
  }
}

/* 006 reversible visual editing and friendlier dashboard */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page="admin"].admin-session .admin-access {
  opacity: 1;
  color: #09090b;
  background: var(--acid);
  box-shadow: 0 0 24px rgba(182,255,77,.62), inset 0 0 0 1px rgba(7,7,10,.35);
}

.public-admin-tools,
.live-edit-bar {
  background: rgba(7, 7, 10, .46);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(244,239,229,.14);
  box-shadow: 0 22px 80px rgba(0,0,0,.25), 0 0 28px rgba(182,255,77,.16);
  cursor: grab;
  user-select: none;
}
.public-admin-tools.is-dragging,
.live-edit-bar.is-dragging,
.movable-panel:active { cursor: grabbing; }
.live-edit-bar {
  border-radius: 1.25rem;
  max-width: min(720px, calc(100vw - 2rem));
}
.live-edit-bar strong,
.public-admin-tools span { cursor: grab; }
.live-edit-bar button,
.public-admin-tools button,
.public-admin-tools a {
  background: rgba(244,239,229,.12);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.1);
}
.live-edit-bar button:hover,
.public-admin-tools button:hover,
.public-admin-tools a:hover { background: var(--acid); color: var(--ink); }

.editable-section,
.editable-card { position: relative; }
.live-section-tools,
.live-card-tools {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .35rem;
  background: rgba(7, 7, 10, .62);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(182,255,77,.22), 0 12px 36px rgba(0,0,0,.25);
}
.live-section-tools { top: -.9rem; right: 1rem; }
.live-card-tools { top: .65rem; right: .65rem; }
.live-section-tools button,
.live-card-tools button {
  padding: .42rem .58rem;
  font-size: .72rem;
  background: rgba(244,239,229,.12);
  color: var(--paper);
}
.live-section-tools button:hover,
.live-card-tools button:hover { background: var(--acid); color: var(--ink); }
.editable-node:focus {
  outline: 2px solid rgba(182,255,77,.9);
  background: rgba(182,255,77,.06);
}
.editable-media {
  position: relative;
  border-radius: inherit;
}
.editable-media::after {
  content: "Replace media";
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  padding: .38rem .58rem;
  border-radius: 999px;
  background: rgba(7,7,10,.68);
  color: var(--acid);
  font-weight: 900;
  font-size: .72rem;
}

.admin-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .4fr);
  gap: 1rem;
  align-items: start;
}
.merch-builder,
.admin-form,
.record-body {
  background: rgba(244,239,229,.065);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.055);
}
.triple-fields,
.variant-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}
.variant-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  margin: .5rem 0;
}
.variant-row button,
.category-list button { padding: .52rem .65rem; }
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.category-list span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(244,239,229,.08);
}
.state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .28rem .55rem;
  background: rgba(255,93,134,.2);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 900;
}
.state-pill.good { background: rgba(182,255,77,.18); color: var(--acid); }
.record-body p { color: var(--muted); }
.admin-thumb-wrap {
  width: min(360px, 100%);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(244,239,229,.08);
}
.page-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}
.product-media-stack {
  min-height: 260px;
  display: grid;
  gap: .5rem;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .35rem;
  height: 64px;
}
.product-thumbs span {
  display: block;
  overflow: hidden;
  border-radius: .6rem;
  background: rgba(244,239,229,.08);
}

@media (max-width: 900px) {
  .admin-workbench,
  .triple-fields,
  .variant-row { grid-template-columns: 1fr; }
  .live-section-tools,
  .live-card-tools { position: static; margin-bottom: .75rem; border-radius: 1rem; }
}

/* 008 base-code hardening and admin usability */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(182,255,77,.055) 42% 43%, transparent 43% 100%),
    radial-gradient(circle at 78% 18%, rgba(139,223,255,.15), transparent 22%),
    radial-gradient(circle at 22% 84%, rgba(255,93,134,.12), transparent 25%);
}
main { max-width: none; }
main > *:not(.legal-hero):not(.legal-copy), main > [data-cms-page] > section:not(.hero) {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.hero.spread {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2rem, 4vw, 5rem);
  background:
    linear-gradient(100deg, rgba(7,7,10,.98) 0 35%, rgba(7,7,10,.74) 55%, rgba(7,7,10,.15) 100%),
    radial-gradient(circle at 18% 18%, rgba(182,255,77,.22), transparent 25%),
    radial-gradient(circle at 88% 68%, rgba(255,93,134,.16), transparent 28%);
}
.hero.spread .hero-media {
  border-radius: 0;
  min-height: clamp(360px, 70vh, 760px);
  transform: none;
  margin-right: calc(clamp(2rem, 4vw, 5rem) * -1);
}
.hero.spread .hero-media img,
.hero.spread .hero-media video,
.product-media-stack img,
.product-media-stack video,
.gallery-card figure img,
.gallery-card figure video,
.admin-thumb-wrap img,
.admin-thumb-wrap video {
  object-fit: cover;
  object-position: center;
}
.gallery-card figure,
.product-media-stack,
.admin-thumb-wrap {
  display: grid;
  min-height: 240px;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(182,255,77,.16), rgba(139,223,255,.09));
}
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .45rem; }
.product-thumbs span { display: block; aspect-ratio: 1; overflow: hidden; border-radius: .7rem; }
.live-edit-bar,
.public-admin-tools,
.live-section-tools,
.live-card-tools {
  background: rgba(7, 7, 10, .56) !important;
  color: var(--paper) !important;
  border: 1px solid rgba(244,239,229,.12);
  backdrop-filter: blur(16px);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.live-edit-bar.is-dragging,
.public-admin-tools.is-dragging { cursor: grabbing; }
.live-edit-bar .drag-handle,
.public-admin-tools .drag-handle { cursor: grab; color: var(--acid); }
.live-edit-bar button,
.public-admin-tools button,
.public-admin-tools a { background: rgba(244,239,229,.12); color: var(--paper); }
.captcha-box {
  display: grid;
  gap: .45rem;
  padding: .8rem;
  border-radius: 1rem;
  background: rgba(182,255,77,.08);
  color: var(--paper);
}
.footer-legal a { color: var(--acid); }
.legal-hero,
.legal-copy {
  max-width: 1100px;
  margin: clamp(2rem, 6vw, 6rem) auto;
  padding: clamp(1rem, 3vw, 3rem);
}
.legal-copy {
  background: rgba(244,239,229,.06);
  border-radius: 2rem;
}
.legal-copy h2 { font-size: clamp(1.8rem, 4vw, 3.8rem); }
.legal-copy p { color: var(--muted); font-size: 1.05rem; }
.message-copy,
.mini-list,
.check-grid,
.page-sort-list {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(244,239,229,.07);
  margin: .7rem 0;
}
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.check-grid label { display: flex; gap: .5rem; align-items: center; }
.check-grid input { width: auto; }
.page-sort-list { display: grid; gap: .5rem; }
.page-sort-list [data-menu-item] {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-radius: .9rem;
  background: rgba(7,7,10,.45);
  cursor: grab;
}
.inline-reply { margin: 1rem 0; }
@media (max-width: 860px) {
  .hero.spread { padding: 1.25rem; }
  .hero.spread .hero-media { margin-right: 0; min-height: 320px; }
}

/* 009 dashboard/live-edit/media base refinements */
main:has(.hero-overlay) {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
main:has(.hero-overlay) > :not([data-cms-page]),
main:has(.hero-overlay) [data-cms-page] > section:not(.hero-overlay) {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 3rem);
  padding-right: clamp(1rem, 3vw, 3rem);
}
.hero-overlay {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 20%, rgba(182,255,77,.32), transparent 28%),
    radial-gradient(circle at 88% 15%, rgba(139,223,255,.25), transparent 30%),
    linear-gradient(135deg, #040405, #17171f 52%, #09090d);
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,5,7,.68), rgba(5,5,7,.34) 45%, rgba(5,5,7,.05)),
    linear-gradient(0deg, rgba(5,5,7,.64), rgba(5,5,7,.06) 55%, rgba(5,5,7,.24));
  pointer-events: none;
}
.hero-media-full {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
  transform: none;
  opacity: .82;
}
.hero-media-full img,
.hero-media-full video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy-overlay {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 10rem) clamp(1rem, 5vw, 3rem);
  text-shadow: 0 2rem 5rem rgba(0,0,0,.72);
}
.gallery-card figure,
.product-media-stack,
[data-media-edit],
.media-placeholder {
  min-height: clamp(220px, 30vw, 420px);
  overflow: hidden;
  border-radius: 1.15rem;
  background: rgba(244,239,229,.07);
}
.product-media-stack img,
.product-media-stack video,
.gallery-card figure img,
.gallery-card figure video,
[data-media-edit] img,
[data-media-edit] video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumbs {
  position: absolute;
  inset: auto .8rem .8rem .8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
}
.product-media-stack { position: relative; }
.product-thumbs span {
  display: block;
  height: 64px;
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(244,239,229,.22);
}
.live-edit-bar,
.public-admin-tools,
.live-section-tools,
.live-card-tools {
  background: rgba(244,239,229,.72);
  backdrop-filter: blur(18px);
}
.drag-handle { cursor: grab; user-select: none; }
.is-dragging .drag-handle { cursor: grabbing; }
.editable-section,
.editable-card,
.editable-product {
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}
.editable-section.is-transforming,
.editable-card.is-transforming,
.editable-product.is-transforming {
  box-shadow: 0 0 0 3px rgba(182,255,77,.72), 0 34px 90px rgba(0,0,0,.36);
}
.live-section-tools,
.live-card-tools,
.merch-tools {
  position: absolute;
  z-index: 8;
  top: .75rem;
  right: .75rem;
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  padding: .35rem;
  border-radius: 999px;
}
.live-section-tools button,
.live-card-tools button,
.merch-tools button {
  padding: .35rem .55rem;
  font-size: .72rem;
}
.custom-option[hidden] { display: none; }

/* 010 God Mode / media library / shop layout repairs */
.product-grid {
  align-items: stretch;
}
.product-card {
  display: flex !important;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}
.product-card .product-media-stack {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  border-radius: 1rem 1rem .45rem .45rem;
}
.product-card .product-media-stack > img,
.product-card .product-media-stack > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .product-copy {
  display: grid;
  gap: .75rem;
  padding-top: .35rem;
  position: relative;
  z-index: 2;
}
.product-card h3,
.product-card p {
  overflow-wrap: anywhere;
}
.product-card .option-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .65rem;
}
.product-card .option-row label {
  display: grid;
  gap: .3rem;
}
.shop-editable-head {
  margin-bottom: 1.25rem;
}
.editable-category-row .chip[contenteditable="true"] {
  outline: 1px dashed rgba(182,255,77,.45);
}
.media-chooser-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3,3,5,.72);
  backdrop-filter: blur(10px);
}
.media-chooser-card {
  width: min(980px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 1.4rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(20,20,24,.96);
  border: 1px solid rgba(244,239,229,.16);
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
}
.media-picker-grid,
.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.media-picker-item,
.media-library-card {
  display: grid;
  gap: .55rem;
  text-align: left;
  border-radius: 1rem;
  padding: .7rem;
  background: rgba(244,239,229,.07);
  color: var(--paper);
  border: 1px solid rgba(244,239,229,.12);
}
.media-picker-item img,
.media-picker-item video,
.media-library-card img,
.media-library-card video,
.admin-thumb-wrap img,
.admin-thumb-wrap video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .75rem;
}
.media-input-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
}
.public-admin-tools,
.live-edit-bar {
  max-width: min(94vw, 900px);
}
.public-admin-tools button,
.public-admin-tools a,
.live-edit-bar button {
  white-space: nowrap;
}
.editable-node[contenteditable="true"],
[data-menu-title][contenteditable="true"] {
  outline: 1px dashed rgba(182,255,77,.45);
  outline-offset: .15rem;
  cursor: text;
}
.is-transforming {
  box-shadow: 0 0 0 3px rgba(182,255,77,.82), 0 24px 80px rgba(0,0,0,.4) !important;
  position: relative;
}
.site-footer .footer-legal,
.site-footer .footer-legal * {
  user-select: auto;
}
.admin-workbench.single {
  grid-template-columns: 1fr;
}
@media (max-width: 680px) {
  .media-input-line { grid-template-columns: 1fr; }
  .product-card .option-row { grid-template-columns: 1fr; }
}

/* 011 media lightbox, pages dashboard, and shop cleanup */
.shop-shell > .eyebrow,
.shop-shell > h2 {
  display: none !important;
}
.shop-shell {
  padding-top: clamp(1rem, 3vw, 2.5rem);
}
.product-grid {
  align-items: stretch;
}
.product-card {
  gap: 1rem !important;
  padding: 1rem !important;
  background: rgba(244,239,229,.075);
}
.product-card .product-media-stack {
  position: relative;
  height: auto;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .55rem;
  overflow: hidden;
  border-radius: 1.05rem;
}
.product-card .product-media-stack > img,
.product-card .product-media-stack > video {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: .95rem;
  background: rgba(244,239,229,.06);
}
.product-thumbs {
  height: auto !important;
  min-height: 54px;
}
.product-thumbs img,
.product-thumbs video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: .55rem;
}
.product-copy {
  min-width: 0;
}
.product-copy .eyebrow,
.product-copy h3,
.product-copy p,
.product-copy strong {
  margin: 0;
}
.is-expandable-media {
  cursor: zoom-in;
}
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
  background: rgba(2,2,4,.86);
  backdrop-filter: blur(14px);
}
.media-lightbox-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "close close close"
    "prev stage next"
    "count count count";
  gap: .75rem;
  align-items: center;
  width: min(1180px, 96vw);
  max-height: 94vh;
}
.media-lightbox-stage {
  grid-area: stage;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: min(70vh, 680px);
  overflow: hidden;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 35% 20%, rgba(182,255,77,.18), transparent 32%), rgba(244,239,229,.055);
  box-shadow: 0 30px 110px rgba(0,0,0,.6);
}
.media-lightbox-stage-media {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
}
.media-lightbox-close,
.media-lightbox-prev,
.media-lightbox-next {
  background: rgba(244,239,229,.12);
  color: var(--paper);
  border: 1px solid rgba(244,239,229,.18);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 900;
}
.media-lightbox-close {
  grid-area: close;
  justify-self: end;
}
.media-lightbox-prev { grid-area: prev; }
.media-lightbox-next { grid-area: next; }
.media-lightbox-count {
  grid-area: count;
  text-align: center;
  color: var(--muted);
  margin: 0;
}
.pages-workbench {
  grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr);
  margin-bottom: 1.25rem;
}
.pages-menu-form {
  min-height: 0;
}
.page-sort-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}
.page-sort-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: end;
  padding: .75rem;
  border-radius: 1rem;
  background: rgba(244,239,229,.075);
  border: 1px solid rgba(244,239,229,.09);
}
.page-sort-item label {
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.page-sort-item input {
  min-width: 0;
}
.drag-dots {
  color: var(--acid);
  font-weight: 900;
  line-height: 1;
  align-self: center;
  cursor: grab;
}
.pages-list-panel {
  margin-top: .5rem;
}
.page-record-list {
  margin-top: 1rem;
}
.editable-node[contenteditable="true"] {
  outline: 1px dashed rgba(182,255,77,.45);
  outline-offset: .15rem;
}
[data-menu-title][contenteditable="true"] {
  outline: none;
}
@media (max-width: 760px) {
  .media-lightbox-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "close close"
      "stage stage"
      "prev next"
      "count count";
  }
  .pages-workbench,
  .page-sort-item {
    grid-template-columns: 1fr;
  }
}

/* 012 live-edit grid placement refinements */
body.admin-session main {
  background-image: none;
}
.live-section-tools,
.live-card-tools {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 720px);
  margin: 0 0 .85rem 0;
  border-radius: 1rem;
  background: rgba(7,7,10,.58) !important;
  box-shadow: 0 0 0 1px rgba(182,255,77,.22), 0 14px 38px rgba(0,0,0,.28);
}
.live-card-tools {
  margin: 0 0 .65rem 0;
}
.live-move-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  will-change: transform;
  transition: box-shadow .18s ease, transform .12s ease;
}
.live-move-wrap.is-inline-move {
  display: inline-block;
}
.live-move-wrap.is-block-move {
  display: block;
}
.live-move-wrap:has([data-media-edit]),
.live-move-wrap:has(figure),
.live-move-wrap:has(.hero-media) {
  display: block;
  width: 100%;
}
.live-move-wrap.is-at-rest {
  transform: none !important;
}

.live-move-wrap.is-transforming,
.live-move-wrap.is-free-dragging {
  z-index: 20;
  box-shadow: 0 0 0 2px rgba(182,255,77,.75), 0 24px 70px rgba(0,0,0,.32);
  border-radius: 1rem;
}
.live-move-handle {
  position: absolute;
  top: -.85rem;
  left: 0;
  z-index: 25;
  padding: .3rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(182,255,77,.35);
  background: rgba(7,7,10,.76);
  color: var(--acid);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: grab;
  user-select: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}
.live-move-handle:active,
.live-move-wrap.is-free-dragging .live-move-handle {
  cursor: grabbing;
}
.live-move-wrap .editable-node,
.live-move-wrap .editable-media {
  margin-top: 0;
}
.editable-section,
.editable-card {
  overflow: visible !important;
}
@media (max-width: 760px) {
  .live-section-tools,
  .live-card-tools {
    display: flex;
    width: 100%;
    border-radius: 1rem;
  }
}


/* 014 hero/live-edit base layout repair */
.hero-overlay {
  width: 100vw;
  max-width: none;
  grid-template-columns: 1fr;
}
.hero-overlay .hero-media-full {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 0;
}
.hero-overlay .hero-media-full.live-move-self {
  display: block !important;
}
.hero-overlay .hero-media-full .live-move-handle {
  top: clamp(5.5rem, 9vw, 7rem);
  left: clamp(1rem, 4vw, 3rem);
}
.hero-overlay .hero-copy-overlay {
  align-self: end;
  justify-self: center;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none;
}
.hero-overlay .live-move-wrap:not(.hero-media-full) {
  max-width: 100%;
}
.hero-overlay .hero-copy-overlay .live-move-wrap {
  transform-origin: left center;
}
.hero-overlay [data-edit] {
  max-width: min(980px, 100%);
}
.hero-overlay [data-edit="hero.title"] {
  max-width: min(1120px, 100%);
}
.hero-media-full:empty::before,
.hero-media-full .media-placeholder {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  min-height: 86vh;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(182,255,77,.22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(139,223,255,.18), transparent 32%),
    linear-gradient(135deg, rgba(244,239,229,.10), rgba(244,239,229,.02));
}
.live-move-wrap.is-at-rest {
  transform: none !important;
}
.live-move-wrap.is-free-dragging,
.live-move-wrap.is-transforming {
  outline: 1px solid rgba(182,255,77,.62);
}
body.admin-session main {
  background-image: none !important;
}
@media (max-width: 760px) {
  .hero-copy-overlay {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  .hero-overlay .hero-media-full .live-move-handle {
    top: 5rem;
  }
}

/* 015 hero alignment, precise transforms, option contrast, and live merch options */
select,
select option,
option {
  color: #07070a;
  background: #f4efe5;
}
select {
  color: var(--paper);
  background-color: rgba(244,239,229,.12);
}
select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(182,255,77,.62);
  outline-offset: 2px;
}
.hero-overlay .hero-copy-overlay {
  width: min(var(--max), 100vw) !important;
  max-width: none !important;
  justify-self: center !important;
  align-self: end !important;
  margin: 0 auto !important;
  padding: clamp(6rem, 12vw, 12rem) clamp(1rem, 3vw, 3rem) clamp(3rem, 7vw, 7rem) !important;
  text-align: left;
}
.hero-overlay .hero-copy-overlay .live-move-wrap {
  margin-left: 0 !important;
  margin-right: auto !important;
  transform-origin: top left !important;
}
.hero-copy-overlay [data-edit] {
  text-align: inherit;
}
.live-move-wrap,
.is-transforming,
.live-move-wrap.is-transforming,
.live-move-wrap.is-free-dragging {
  transform-origin: top left !important;
}
.live-edit-bar select,
.public-admin-tools select {
  width: auto;
  min-width: 128px;
  padding: .55rem .75rem;
  border-radius: 999px;
  border-color: rgba(182,255,77,.28);
  color: var(--paper);
  background: rgba(7,7,10,.72);
}
.live-edit-bar select option,
.public-admin-tools select option {
  color: #07070a;
  background: #f4efe5;
}
.live-option-editor {
  margin: .85rem 0;
  padding: .8rem;
  border-radius: 1rem;
  background: rgba(7,7,10,.36);
  border: 1px solid rgba(182,255,77,.18);
}
.live-option-editor summary {
  cursor: pointer;
  color: var(--acid);
  font-weight: 900;
  margin-bottom: .65rem;
}
.live-option-editor label {
  display: grid;
  gap: .35rem;
  margin: .55rem 0;
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.live-option-editor input {
  color: var(--paper);
}
.product-card .option-row select option,
.form-grid select option,
.account-panel select option,
.cart-shell select option,
.checkout-shell select option,
.admin-shell select option {
  color: #07070a !important;
  background: #f4efe5 !important;
}
.product-card .option-row select,
.form-grid select,
.account-panel select,
.cart-shell select,
.checkout-shell select,
.admin-shell select {
  color: var(--paper) !important;
  background: rgba(244,239,229,.14) !important;
}
@media (max-width: 760px) {
  .hero-overlay .hero-copy-overlay {
    padding-top: 7rem !important;
    padding-bottom: 4rem !important;
  }
}

.category-builder,
.category-editor-list,
.live-category-create {
  align-self: stretch;
}

.category-editor-list {
  display: grid;
  gap: 0.75rem;
}

.category-preset-fields,
.live-category-preset-fields {
  margin-top: 0.7rem;
}

.live-category-create {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.live-category-create input {
  width: 100%;
}

/* 019 account dashboard polish */
.check-line {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.check-line input {
  width: auto;
  margin-top: .2rem;
  accent-color: var(--acid);
}
.check-line a { color: var(--acid); }
.account-dashboard-shell {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  margin-block: clamp(2rem, 6vw, 5rem);
}
.account-hero-card {
  background:
    radial-gradient(circle at 10% 10%, rgba(182,255,77,.2), transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(255,93,134,.12), transparent 32%),
    rgba(244,239,229,.08);
  border-radius: 2rem;
  padding: clamp(1.2rem, 4vw, 3rem);
  box-shadow: 0 2rem 7rem rgba(0,0,0,.32);
}
.account-summary-grid article,
.account-panel {
  background:
    linear-gradient(145deg, rgba(244,239,229,.12), rgba(244,239,229,.035)),
    rgba(7,7,10,.7);
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.08), 0 1.5rem 5rem rgba(0,0,0,.26);
}
.account-summary-grid h2 { color: var(--acid); }
.account-stack {
  display: grid;
  gap: 1rem;
}
.account-panel {
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.account-record {
  margin-top: .75rem;
  padding: .9rem;
  border-radius: 1.15rem;
  background: rgba(244,239,229,.075);
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.07);
}
.account-record summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.account-record summary::-webkit-details-marker { display: none; }
.account-record summary span {
  display: grid;
  gap: .25rem;
}
.account-record small { color: var(--muted); }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(182,255,77,.13);
  color: var(--acid);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.receipt-body,
.conversation-body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.receipt-head,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.receipt-items {
  display: grid;
  gap: .8rem;
}
.receipt-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: .9rem;
  align-items: center;
  padding: .75rem;
  border-radius: 1rem;
  background: rgba(0,0,0,.2);
}
.receipt-item img,
.receipt-thumb-placeholder {
  width: 88px;
  height: 88px;
  border-radius: .85rem;
  object-fit: cover;
  background: rgba(182,255,77,.12);
  display: grid;
  place-items: center;
  color: var(--acid);
  font-weight: 950;
}
.detail-grid > div {
  padding: .9rem;
  border-radius: 1rem;
  background: rgba(0,0,0,.18);
}
.conversation-note {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0,0,0,.2);
}
.conversation-note.reply {
  background: rgba(182,255,77,.1);
  box-shadow: inset 0 0 0 1px rgba(182,255,77,.18);
}
.danger-panel {
  box-shadow: inset 0 0 0 1px rgba(255,93,134,.22), 0 1.5rem 5rem rgba(0,0,0,.26);
}
.danger-button { color: #ff9aae; }
@media (max-width: 680px) {
  .receipt-item { grid-template-columns: 1fr; }
  .receipt-item img, .receipt-thumb-placeholder { width: 100%; height: 180px; }
}


.cookie-notice {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(7, 7, 10, .88);
  color: var(--paper);
  box-shadow: 0 1.5rem 5rem rgba(0,0,0,.45), inset 0 0 0 1px rgba(182,255,77,.18);
  backdrop-filter: blur(18px);
}
.cookie-notice p { margin: .25rem 0 0; color: var(--muted); max-width: 72ch; }
.cookie-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.cookie-actions a, .cookie-actions button {
  border: 0;
  border-radius: 999px;
  padding: .65rem .95rem;
  background: rgba(244,239,229,.08);
  color: var(--paper);
  text-decoration: none;
  font-weight: 850;
}
.cookie-actions button { background: var(--acid); color: #071006; cursor: pointer; }
@media (max-width: 720px) { .cookie-notice { flex-direction: column; align-items: flex-start; } }


/* 022 layout, menu, hero, and footer standardization */
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  width: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  transform: translateY(0);
  transition: transform .28s ease, background .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.site-header.is-hidden {
  transform: translateY(-110%);
}
.site-header.is-scrolled {
  background: rgba(7, 7, 10, .90);
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.18);
}
.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding: clamp(1.1rem, 2.4vw, 2.1rem) clamp(1rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: .65rem 1rem;
  background: rgba(7,7,10,.46);
  border-top: 1px solid rgba(244,239,229,.08);
}
.site-footer p {
  margin: 0;
  line-height: 1.35;
}
.site-footer .footer-legal {
  white-space: nowrap;
  justify-self: end;
}
.site-footer .admin-access-footer {
  margin-left: 0;
  align-self: center;
  justify-self: end;
}
.hero-overlay::after {
  background:
    linear-gradient(90deg, rgba(5,5,7,.68), rgba(5,5,7,.34) 45%, rgba(5,5,7,.05)),
    linear-gradient(0deg, rgba(5,5,7,.64), rgba(5,5,7,.06) 55%, rgba(5,5,7,.24)) !important;
}
.hero-media-full { opacity: .92; }
.admin-auth-stage,
body[data-page="admin"] .admin-shell {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
body[data-page="admin"] main {
  padding-top: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 860px) {
  .site-header {
    padding: .75rem 1rem;
  }
  .brand {
    font-size: clamp(1.1rem, 6vw, 1.55rem);
  }
  .nav {
    inset: 4.1rem .75rem auto .75rem;
    max-height: calc(100vh - 5.2rem);
    overflow: auto;
    z-index: 100;
  }
  .nav a {
    padding: .72rem .85rem;
  }
  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: .8rem 1rem;
    gap: .28rem .75rem;
    font-size: .76rem;
  }
  .site-footer p:first-child,
  .site-footer p:nth-child(2) {
    grid-column: 1 / 2;
  }
  .site-footer p:nth-child(2) {
    color: rgba(244,239,229,.58);
  }
  .site-footer .footer-legal {
    grid-column: 1 / 2;
    justify-self: start;
    white-space: normal;
    font-size: .74rem;
  }
  .site-footer .admin-access-footer {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    padding: .42rem .55rem;
  }
  .hero-overlay {
    min-height: min(82vh, 760px);
  }
  .hero-copy-overlay {
    padding-bottom: clamp(2.5rem, 10vw, 5rem) !important;
  }
}

/* 023 patch: clickable sections, unified God Mode, and emergency reset controls */
.is-clickable-section {
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.is-clickable-section:hover {
  filter: brightness(1.07);
}
.is-clickable-section:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 6px;
}
.live-edit-bar .god-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: rgba(244,239,229,.12);
  color: var(--paper);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 800;
}
.live-edit-bar .god-dashboard-link:hover {
  background: var(--acid);
  color: var(--ink);
}
.live-edit-bar input[data-link-custom] {
  max-width: 150px;
  min-height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(244,239,229,.18);
  background: rgba(8,9,11,.82);
  color: var(--paper);
  padding: .4rem .7rem;
}
.self-destruct-card {
  border: 1px solid rgba(255, 56, 92, .18) !important;
  background: linear-gradient(135deg, rgba(255,56,92,.045), rgba(8,9,11,.72)) !important;
  color: var(--paper);
  min-height: auto;
  opacity: .7;
  transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.self-destruct-card:hover,
.self-destruct-card[open] {
  opacity: 1;
  border-color: rgba(255, 56, 92, .42) !important;
  box-shadow: 0 0 22px rgba(255,56,92,.12);
}
.self-destruct-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
}
.self-destruct-card summary::-webkit-details-marker { display: none; }
.rollup-door {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(244,239,229,.08);
  color: rgba(244,239,229,.68);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.self-destruct-card[open] .rollup-door {
  background: rgba(255,56,92,.16);
  color: #ffd6dd;
}
.self-destruct-vault {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(244,239,229,.09);
}
.self-destruct-vault p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
  margin: 0 0 .75rem;
}
.self-destruct-button {
  margin-top: .2rem;
  width: 100%;
  background: #ff385c !important;
  color: #fff !important;
  box-shadow: 0 0 24px rgba(255,56,92,.35);
}
.hero-media-full.is-expandable-media {
  cursor: zoom-in;
}

/* 025 order dashboard, hero interaction, styled modal, and checkout totals */
.hero-overlay::after {
  background:
    linear-gradient(90deg, rgba(5,5,7,.50), rgba(5,5,7,.22) 45%, rgba(5,5,7,.02)),
    linear-gradient(0deg, rgba(5,5,7,.46), rgba(5,5,7,.04) 55%, rgba(5,5,7,.14)) !important;
}
.hero-overlay {
  grid-template-rows: 1fr auto;
  pointer-events: none;
}
.hero-overlay .hero-media-full {
  z-index: 0;
  pointer-events: auto;
}
.hero-overlay .hero-copy-overlay {
  grid-row: 2;
  align-self: end;
  pointer-events: none;
  max-width: 1120px;
}
.hero-overlay .hero-copy-overlay > *,
.hero-overlay .hero-copy-overlay [data-edit],
.hero-overlay .hero-copy-overlay .live-move-wrap {
  pointer-events: auto;
}
.hero-overlay .hero-copy-overlay {
  background: linear-gradient(90deg, rgba(7,7,10,.20), rgba(7,7,10,0));
  border-radius: 1.4rem;
}
.order-dashboard {
  display: grid;
  gap: 1.1rem;
}
.order-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.order-stats article {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(244,239,229,.07);
  border: 1px solid rgba(244,239,229,.09);
}
.order-stats span,
.order-stats small { display: block; color: var(--muted); }
.order-stats strong { display: block; font-size: clamp(1.35rem, 3vw, 2.1rem); color: var(--acid); }
.order-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.order-columns > section {
  padding: .85rem;
  border-radius: 1.2rem;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(244,239,229,.08);
}
.order-columns h3 { margin: .1rem 0 .85rem; }
.checkout-items,
.checkout-totals {
  display: grid;
  gap: .55rem;
  margin-bottom: 1rem;
}
.checkout-items p,
.checkout-totals p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(244,239,229,.08);
}
.checkout-totals .grand-total {
  font-size: 1.15rem;
  color: var(--acid);
  border-bottom: 0;
}
.receipt-totals-grid strong { color: var(--acid); }
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(14px);
}
.site-modal-card {
  width: min(520px, 100%);
  padding: clamp(1rem, 4vw, 1.6rem);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(22,22,28,.96), rgba(6,7,8,.96));
  border: 1px solid rgba(182,255,77,.22);
  box-shadow: 0 2rem 5rem rgba(0,0,0,.5);
}
.site-modal-card h2 { margin-top: .35rem; }
.site-modal-card.danger-modal { border-color: rgba(255,56,92,.45); }
.danger-button { background: #ff385c !important; color: white !important; }
@media (max-width: 760px) {
  .order-stats,
  .order-columns { grid-template-columns: 1fr; }
  .hero-overlay .hero-copy-overlay { border-radius: 0; }
}

/* 027 dashboard page/link/font controls and brand live editing */
.page-sort-item-rich {
  grid-template-columns: auto minmax(140px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  align-items: end;
  gap: .75rem;
}
.page-sort-item-rich label {
  margin: 0;
}
.page-sort-item-rich input,
.page-sort-item-rich select {
  width: 100%;
}
.admin-session .brand [data-global-edit] {
  cursor: text;
  outline-offset: .2rem;
}
.admin-session .brand [data-global-edit]:focus,
.admin-session .brand [data-global-edit]:hover {
  outline: 1px solid rgba(182, 255, 77, .65);
  text-decoration: none;
}
.lite-god-mode {
  max-width: min(95vw, 880px);
}
@media (max-width: 860px) {
  .page-sort-item-rich {
    grid-template-columns: 1fr;
  }
  .page-sort-item-rich .drag-dots {
    display: none;
  }
}

/* 029 God Mode style controls */
.live-edit-bar .style-mini {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.1rem;
  padding: .25rem .45rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(248,250,242,.9);
  font-size: .72rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.live-edit-bar .style-mini input[type="color"] {
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
}

.live-edit-bar .style-mini input[type="range"] {
  width: 5.4rem;
  accent-color: var(--acid);
}

.live-edit-bar [data-style-reset],
.live-edit-bar [data-style-copy],
.live-edit-bar [data-style-paste],
.live-edit-bar [data-global-style-reset],
.live-edit-bar [data-global-style-copy],
.live-edit-bar [data-global-style-paste] {
  background: rgba(182,255,77,.12);
  color: var(--acid);
  border-color: rgba(182,255,77,.3);
}

.editable-section.is-transforming,
.editable-card.is-transforming,
.live-move-wrap.is-transforming,
.editable-node.is-transforming {
  outline: 2px solid rgba(182,255,77,.8);
  outline-offset: .25rem;
}

@media (max-width: 760px) {
  .live-edit-bar .style-mini input[type="range"] {
    width: 4.25rem;
  }
}

/* 030 God Mode + Dashboard layout additions */
.live-style-handle {
  position: relative;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: .25rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(182, 255, 77, .35);
  border-radius: 999px;
  background: rgba(12, 14, 12, .72);
  color: #dfffaa;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.god-mode-bar.is-minimized {
  width: auto;
  max-width: min(92vw, 360px);
  overflow: hidden;
}

.god-mode-bar.is-minimized > *:not(.drag-handle):not([data-god-toggle]):not(.window-toggle):not([data-save-page]):not([data-exit-admin]) {
  display: none !important;
}

.layouts-workbench {
  grid-template-columns: minmax(280px, 420px) 1fr;
  align-items: start;
}

.layout-list {
  display: grid;
  gap: 1rem;
}

.layout-record summary small {
  color: rgba(247, 243, 234, .68);
}

.page-sort-item-rich input[type="color"] {
  min-height: 2.6rem;
  padding: .25rem;
  cursor: pointer;
}


/* 031 hero text alignment patch: saved God Mode alignment now wins in hero copy. */
.hero-overlay .hero-copy-overlay {
  text-align: left;
}
.hero-overlay .hero-copy-overlay [data-edit] {
  text-align: inherit;
}


/* 032 God Mode typography + object alignment upgrades */
.god-mode-bar .window-toggle {
  width: 2.1rem;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: .7rem;
  background: linear-gradient(135deg, rgba(182,255,77,.22), rgba(255,255,255,.08));
  color: var(--acid);
  border: 1px solid rgba(182,255,77,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 18px rgba(182,255,77,.12);
  font-weight: 950;
}
.god-mode-bar .window-toggle:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 24px rgba(182,255,77,.22);
}
.live-edit-bar .style-mini input[type="number"] {
  width: 4.4rem;
  min-height: 1.7rem;
  border-radius: 999px;
  padding: .2rem .5rem;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.live-edit-bar [data-apply-page-font],
.live-edit-bar [data-apply-site-font],
.live-edit-bar [data-align-mode],
.live-edit-bar [data-align-left],
.live-edit-bar [data-align-center],
.live-edit-bar [data-align-right],
.live-edit-bar [data-align-equal] {
  background: rgba(182,255,77,.11);
  color: #dfffaa;
  border-color: rgba(182,255,77,.28);
}
.live-align-pill {
  position: relative;
  z-index: 16;
  display: inline-flex;
  align-items: center;
  margin: .25rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(182,255,77,.42);
  background: rgba(12,14,12,.82);
  color: var(--acid);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  backdrop-filter: blur(10px);
}
.is-align-selected {
  outline: 2px solid rgba(182,255,77,.95) !important;
  outline-offset: .38rem !important;
  box-shadow: 0 0 0 .18rem rgba(182,255,77,.18), 0 0 28px rgba(182,255,77,.18) !important;
}
.page-sort-item-rich {
  overflow: hidden;
}
.page-sort-item-rich label {
  min-width: 0;
}
.page-sort-item-rich input,
.page-sort-item-rich select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .pages-workbench,
  .pages-list-panel,
  .pages-menu-form,
  .page-sort-list,
  .page-sort-item-rich {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-sort-item-rich {
    grid-template-columns: 1fr !important;
    padding: .85rem;
  }
  .page-sort-item-rich a,
  .page-sort-item-rich button {
    width: 100%;
    justify-content: center;
  }
  .live-edit-bar .style-mini input[type="number"] {
    width: 3.75rem;
  }
}


/* 033 patch: God Mode dock safety, public saved placement, and tighter header/hero load behavior */
main:has(.hero-overlay) {
  padding-top: 0 !important;
}
main > [data-cms-page] > .hero-overlay:first-child,
main > .hero-overlay:first-child {
  margin-top: 0 !important;
}
.site-header + main {
  margin-top: 0 !important;
}
.god-mode-bar {
  max-width: min(96vw, 980px);
}
.god-mode-bar.is-docked-left,
.god-mode-bar.is-docked-right,
.god-mode-bar.is-docked-bottom {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: auto !important;
  max-height: 220px;
  overflow: hidden;
  padding: .8rem .45rem !important;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: rgba(7, 7, 10, .86) !important;
  box-shadow: 0 0 0 1px rgba(182,255,77,.24), 0 1rem 3rem rgba(0,0,0,.45) !important;
}
.god-mode-bar.is-docked-left > :not(.drag-handle),
.god-mode-bar.is-docked-right > :not(.drag-handle),
.god-mode-bar.is-docked-bottom > :not(.drag-handle) {
  display: none !important;
}
.god-mode-bar.is-docked-left .drag-handle,
.god-mode-bar.is-docked-right .drag-handle,
.god-mode-bar.is-docked-bottom .drag-handle {
  display: block;
  color: var(--acid);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.god-mode-bar.is-docked-bottom {
  writing-mode: horizontal-tb;
  max-height: 44px;
  width: auto !important;
  min-width: 118px !important;
  max-width: 180px !important;
}
@media (max-width: 720px) {
  main:has(.hero-overlay) { padding-top: 0 !important; }
  .god-mode-bar { max-width: calc(100vw - 1rem); }
}


.admin-users-workbench .admin-user-create,
.admin-users-workbench .admin-user-body form {
  margin-top: 1rem;
}
.admin-users-workbench small {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-users-list .record summary {
  align-items: center;
}
.check-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  color: var(--paper);
}
.check-row input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
}

/* 036 styled text blocks, media-only blocks, and dashboard polish */
.text-block-section {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(1.8rem, 5vw, 5rem);
}
.text-block-section .standalone-text-block {
  margin: 0;
  max-width: 1000px;
}
.text-block-section .hero-style-text {
  max-width: 1100px;
  text-wrap: balance;
}
.text-block-section .button-style-text {
  display: inline-flex;
  width: fit-content;
  text-transform: uppercase;
  font-weight: 950;
}
.media-only-section {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(1.8rem, 5vw, 5rem);
}
.standalone-media-frame {
  margin: 0;
  min-height: clamp(260px, 52vw, 620px);
  border-radius: clamp(1rem, 3vw, 2.25rem);
  overflow: hidden;
  background: rgba(244,239,229,.07);
  box-shadow: 0 1.5rem 5rem rgba(0,0,0,.28);
}
.standalone-media-frame img,
.standalone-media-frame video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}
.text-block-picker select {
  max-width: 11rem;
}
.live-edit-bar .window-toggle-bottom {
  margin-left: auto;
  align-self: end;
}
.admin-login-preview {
  display: grid !important;
  margin: 1rem 0 2rem;
  outline: 1px dashed rgba(182,255,77,.32);
  outline-offset: .5rem;
}
.admin-login-preview .admin-login-panel {
  opacity: .82;
}
.admin-login-god-mode {
  left: auto;
  right: 1rem;
  top: auto;
  bottom: 1rem;
  max-width: min(92vw, 720px);
}
.admin-users-workbench {
  grid-template-columns: 1fr;
}
.admin-users-workbench .admin-user-create {
  width: 100%;
}
.admin-users-workbench .admin-user-create .triple-fields {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}
.admin-users-workbench .admin-user-create input,
.admin-users-workbench .admin-user-body input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.pages-mobile-stack {
  display: grid;
  gap: 1rem;
  align-self: start;
}
.dashboard-folder {
  border-radius: 1.25rem;
  background: rgba(244,239,229,.055);
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.08);
  overflow: hidden;
}
.dashboard-folder > summary {
  cursor: pointer;
  padding: .95rem 1rem;
  color: var(--acid);
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dashboard-folder .admin-form {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 760px) {
  .pages-workbench {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .pages-mobile-stack,
  .pages-menu-form,
  .pages-list-panel {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .pages-menu-form {
    padding: .85rem;
  }
  .pages-menu-form > h2,
  .pages-menu-form > p {
    max-width: 100%;
  }
  .page-sort-list {
    gap: .9rem;
  }
  .page-sort-item-rich {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: .55rem;
  }
  .page-sort-item-rich label,
  .page-sort-item-rich input,
  .page-sort-item-rich select {
    max-width: 100%;
  }
  .admin-login-god-mode {
    left: .5rem;
    right: .5rem;
    bottom: .5rem;
  }
}

/* 037 editor precision and dashboard mobile cleanup */
.live-edit-bar {
  cursor: grab;
}
.live-edit-bar:active {
  cursor: grabbing;
}
.live-edit-bar button,
.live-edit-bar a,
.live-edit-bar input,
.live-edit-bar textarea,
.live-edit-bar select,
.live-edit-bar label,
.live-edit-bar summary {
  cursor: auto;
}
.live-edit-bar .style-mini input[type="number"] {
  min-width: 4.75rem;
}
.page-menu-details {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.page-menu-details > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .35rem .75rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.page-menu-details > summary::-webkit-details-marker {
  display: none;
}
.page-menu-details > summary small {
  grid-column: 2;
  color: rgba(247,243,234,.64);
  overflow-wrap: anywhere;
  font-size: .74rem;
}
.page-menu-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding-top: .85rem;
}
.page-menu-fields label,
.page-menu-fields input,
.page-menu-fields select {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 760px) {
  .pages-workbench,
  .pages-mobile-stack,
  .pages-menu-form,
  .page-sort-list,
  .page-sort-item-rich,
  .page-menu-fields {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .page-sort-list {
    gap: .75rem;
  }
  .page-sort-item-rich {
    padding: .85rem;
  }
  .page-menu-details:not([open]) {
    max-height: none;
  }
  .page-menu-fields {
    grid-template-columns: 1fr;
  }
  .page-menu-details > summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .page-menu-details > summary strong,
  .page-menu-details > summary small {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .admin-login-god-mode {
    left: .5rem !important;
    right: .5rem !important;
    bottom: .5rem;
    max-width: calc(100vw - 1rem);
  }
}

/* 038 account-screen editor preview */
.account-edit-preview {
  padding: clamp(1rem, 3vw, 2rem);
}
.account-edit-preview[hidden] {
  display: none !important;
}
.preview-topbar {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(244,239,229,.07);
}
.account-preview-shell-inner {
  margin: 0;
}
.account-god-mode {
  z-index: 10000;
}

/* 040 final editing QA: stable moves, button text editing, and login/account undo bars */
.live-move-wrap.is-compact-move {
  display: inline-block !important;
  width: fit-content !important;
  max-width: max-content;
  vertical-align: top;
}
.live-move-wrap.is-compact-move .button-style-text,
.live-move-wrap.is-compact-move button,
.live-move-wrap.is-compact-move .button,
.live-move-wrap.is-compact-move a {
  width: fit-content;
  max-width: max-content;
  white-space: nowrap;
}
.live-move-wrap.is-live-size-locked:not(.is-compact-move) {
  box-sizing: border-box;
  flex: 0 0 auto;
}
.button-style-text[contenteditable="true"],
button[data-global-edit][contenteditable="true"],
.button[data-global-edit][contenteditable="true"] {
  cursor: text;
  user-select: text;
}
.admin-login-god-mode [data-login-undo],
.admin-login-god-mode [data-login-redo],
.account-god-mode [data-account-undo],
.account-god-mode [data-account-redo] {
  border-color: rgba(139, 223, 255, .35);
  color: #dff7ff;
}

/* v045 editor polish */
.choice-row {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  margin: .15rem 0 .55rem;
}
.choice-row input { width: auto; }
.form-note {
  margin-top: -.25rem;
  color: rgba(247, 243, 234, .62);
  font-size: .86rem;
}
.account-delete-rollup {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.account-delete-rollup summary {
  display: grid;
  gap: .2rem;
  cursor: pointer;
  padding: .85rem 1rem;
  list-style: none;
  color: rgba(247,243,234,.72);
}
.account-delete-rollup summary::-webkit-details-marker { display: none; }
.account-delete-rollup summary span {
  color: rgba(255,143,143,.9);
  font-size: .98rem;
}
.account-delete-rollup summary small {
  font-size: .76rem;
  color: rgba(247,243,234,.5);
}
.account-delete-vault {
  padding: .95rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(255,70,70,.08), rgba(0,0,0,.16));
}
.account-delete-vault p {
  font-size: .9rem;
  color: rgba(247,243,234,.72);
  max-width: 62ch;
}
.live-resize-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 32;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(182,255,77,.5);
  background: rgba(8, 12, 10, .86);
  color: #b6ff4d;
  font-size: .8rem;
  line-height: 1;
  cursor: nwse-resize;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
}
.live-move-wrap,
.editable-section,
.editable-card {
  touch-action: pan-x pan-y;
}
.live-move-wrap.is-free-resizing,
.editable-section.is-free-resizing,
.editable-card.is-free-resizing {
  outline: 1px dashed rgba(182,255,77,.7);
  touch-action: none;
}
@media (max-width: 720px) {
  .god-mode-bar {
    max-width: calc(100vw - 18px);
    width: min(420px, calc(100vw - 18px));
    max-height: 78vh;
    overflow: auto;
    padding: .55rem;
    gap: .38rem;
    font-size: .72rem;
  }
  .god-mode-bar strong,
  .god-mode-bar label,
  .god-mode-bar button,
  .god-mode-bar select,
  .god-mode-bar input {
    font-size: .72rem;
  }
  .god-mode-bar button {
    padding: .42rem .55rem;
    min-height: 30px;
  }
  .god-mode-bar input,
  .god-mode-bar select {
    min-height: 30px;
    padding: .34rem .45rem;
  }
  .god-mode-bar .style-mini {
    gap: .2rem;
  }
  .live-resize-handle {
    width: 30px;
    height: 30px;
    right: -10px;
    bottom: -10px;
  }
  .pages-mobile-stack,
  .pages-workbench,
  .pages-menu-form,
  .page-menu-fields {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* v051 safer transforms: object mode toggle + simple God Mode panel resize */
.god-mode-bar {
  position: fixed;
}
.god-panel-resize {
  position: absolute;
  z-index: 60;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(182,255,77,.55);
  background: rgba(8, 12, 10, .9);
  color: #b6ff4d;
  font-size: .78rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  cursor: nwse-resize;
}
.god-panel-resize-ne { top: -8px; right: -8px; }
.god-panel-resize-sw { bottom: -8px; left: -8px; }
.god-mode-bar.is-minimized .god-panel-resize,
.god-mode-bar.is-docked-left .god-panel-resize,
.god-mode-bar.is-docked-right .god-panel-resize,
.god-mode-bar.is-docked-bottom .god-panel-resize { display: none; }
.god-panel-resize:hover,
.god-panel-resize:focus-visible {
  background: rgba(182,255,77,.78);
  color: #08120a;
}
.live-resize-handle {
  opacity: .85;
}
.live-resize-n,
.live-resize-s,
.live-resize-e,
.live-resize-w,
.live-resize-ne,
.live-resize-nw,
.live-resize-sw {
  display: none;
}
.live-move-wrap.is-transforming > .live-resize-handle,
.live-move-wrap.is-free-resizing > .live-resize-handle,
.editable-section.is-transforming > .live-resize-handle,
.editable-section.is-free-resizing > .live-resize-handle,
.editable-card.is-transforming > .live-resize-handle,
.editable-card.is-free-resizing > .live-resize-handle {
  display: grid;
}
.live-resize-n { top: -8px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); cursor: ns-resize; }
.live-resize-s { bottom: -8px; left: 50%; right: auto; top: auto; transform: translateX(-50%); cursor: ns-resize; }
.live-resize-e { right: -8px; top: 50%; left: auto; bottom: auto; transform: translateY(-50%); cursor: ew-resize; }
.live-resize-w { left: -8px; top: 50%; right: auto; bottom: auto; transform: translateY(-50%); cursor: ew-resize; }
.live-resize-ne { top: -8px; right: -8px; left: auto; bottom: auto; cursor: nesw-resize; }
.live-resize-nw { top: -8px; left: -8px; right: auto; bottom: auto; cursor: nwse-resize; }
.live-resize-se { bottom: -8px; right: -8px; left: auto; top: auto; cursor: nwse-resize; }
.live-resize-sw { bottom: -8px; left: -8px; right: auto; top: auto; cursor: nesw-resize; }
[data-transform-mode][aria-pressed="true"] {
  background: rgba(182,255,77,.88);
  color: #08120a;
  box-shadow: 0 0 22px rgba(182,255,77,.28);
}
@media (max-width: 720px) {
  .god-panel-resize { width: 22px; height: 22px; }
}

/* v054: calmer God Mode docking. Docking only happens after the panel is deliberately pushed well past an edge. */
.god-mode-bar.is-docked-left,
.god-mode-bar.is-docked-right,
.god-mode-bar.is-docked-bottom {
  transition: box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.god-mode-bar.is-docked-left:hover,
.god-mode-bar.is-docked-right:hover,
.god-mode-bar.is-docked-bottom:hover {
  background: rgba(10, 16, 12, .96) !important;
  box-shadow: 0 0 0 1px rgba(182,255,77,.46), 0 1rem 3rem rgba(0,0,0,.55) !important;
}

/* v056: stable God Mode edge tabs and responsive saved placement */
.god-mode-bar.is-dock-ready-left,
.god-mode-bar.is-dock-ready-right,
.god-mode-bar.is-dock-ready-bottom {
  box-shadow: 0 0 0 2px rgba(182,255,77,.48), 0 0 36px rgba(182,255,77,.18), 0 1rem 3rem rgba(0,0,0,.55) !important;
}
.god-mode-bar.is-docked-left,
.god-mode-bar.is-docked-right,
.god-mode-bar.is-docked-bottom {
  position: fixed !important;
  z-index: 9999 !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: auto !important;
  min-height: 118px !important;
  max-height: 240px !important;
  padding: .78rem .42rem !important;
  overflow: hidden !important;
  cursor: pointer !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  border-radius: 0 18px 18px 0 !important;
  background: rgba(7, 8, 10, .94) !important;
  border: 1px solid rgba(182,255,77,.42) !important;
  box-shadow: 0 0 0 1px rgba(182,255,77,.26), 0 1rem 3rem rgba(0,0,0,.55) !important;
  transform: none !important;
}
.god-mode-bar.is-docked-right {
  border-radius: 18px 0 0 18px !important;
}
.god-mode-bar.is-docked-bottom {
  width: auto !important;
  min-width: 130px !important;
  max-width: 220px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: .42rem .9rem !important;
  writing-mode: horizontal-tb !important;
  border-radius: 18px 18px 0 0 !important;
}
.god-mode-bar.is-docked-left > :not(.drag-handle),
.god-mode-bar.is-docked-right > :not(.drag-handle),
.god-mode-bar.is-docked-bottom > :not(.drag-handle) {
  display: none !important;
}
.god-mode-bar.is-docked-left .drag-handle,
.god-mode-bar.is-docked-right .drag-handle,
.god-mode-bar.is-docked-bottom .drag-handle {
  display: block !important;
  color: var(--acid, #b6ff4d) !important;
  font-size: .72rem !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
.god-mode-bar.is-docked-left:hover,
.god-mode-bar.is-docked-right:hover,
.god-mode-bar.is-docked-bottom:hover {
  background: rgba(10, 15, 12, .98) !important;
  border-color: rgba(182,255,77,.74) !important;
}
@media (max-width: 720px) {
  .god-mode-bar.is-docked-left,
  .god-mode-bar.is-docked-right {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }
}


/* v060: desktop-only mobile transfer/cutoff guide for God Mode */
.mobile-safe-guides {
  --mobile-transfer-edge: clamp(44px, 4.5vw, 96px);
  position: fixed;
  inset: 0 var(--mobile-transfer-edge) auto var(--mobile-transfer-edge);
  width: auto;
  height: 100vh;
  transform: none;
  pointer-events: none;
  z-index: 7200;
  display: none;
  border-left: 2px solid rgba(0, 245, 255, .62);
  border-right: 3px solid rgba(0, 245, 255, .94);
  background:
    linear-gradient(90deg, rgba(0, 245, 255, .08), transparent 8%, transparent 92%, rgba(0, 245, 255, .12)),
    repeating-linear-gradient(0deg, rgba(0, 245, 255, .10) 0 1px, transparent 1px 54px);
  box-shadow:
    -8px 0 20px rgba(0, 245, 255, .10),
    14px 0 34px rgba(0, 245, 255, .20),
    inset 0 0 0 1px rgba(0, 245, 255, .13);
}
body.admin-session .mobile-safe-guides {
  display: block;
}
.mobile-safe-label,
.mobile-safe-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .28rem .55rem;
  color: #061012;
  background: rgba(0, 245, 255, .78);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: 0 0 18px rgba(0, 245, 255, .32);
  white-space: nowrap;
}
.mobile-safe-label-top {
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
}
.mobile-safe-label-left {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}
.mobile-safe-label-right {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%) rotate(90deg);
  background: rgba(0, 245, 255, .9);
}
.mobile-safe-note {
  bottom: 1.15rem;
  left: 50%;
  max-width: min(720px, calc(100% - 24px));
  transform: translateX(-50%);
  color: rgba(225, 255, 255, .96);
  background: rgba(0, 32, 36, .72);
  border-color: rgba(0, 245, 255, .48);
  backdrop-filter: blur(10px);
  white-space: normal;
  text-align: center;
}
.god-mode-bar,
.media-chooser-modal,
.site-modal,
.toast {
  z-index: 9000;
}
@media (max-width: 760px), (pointer: coarse) {
  .mobile-safe-guides {
    display: none !important;
  }
}

/* v058: responsive saved-edit guards */
:root { --mobile-transform-buffer: 96px; }
@media (max-width: 760px) {
  :root { --mobile-transform-buffer: 88px; }
  [style*="translate("] {
    max-width: calc(100vw - 2rem) !important;
    overflow-wrap: anywhere;
  }
}
