:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --ink: #101827;
  --muted: #667085;
  --line: #d8dee8;
  --primary: #e83e63;
  --primary-dark: #b71944;
  --cyan: #0ea5b7;
  --gold: #e6a91a;
  --green: #198754;
  --shadow: 0 16px 44px rgba(16, 24, 39, 0.1);
  --header-height: 66px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-width: 320px;
}

body,
button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img,
video,
canvas,
model-viewer {
  display: block;
  max-width: 100%;
}

.ios-ar-launch {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ios-ar-launch img {
  height: 1px;
  width: 1px;
}

.auth-separator {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  gap: 12px;
  margin: 18px 0;
  text-transform: uppercase;
}

.auth-separator::before,
.auth-separator::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

/* Print-first AR postcards */
.print-home-page {
  background: #f5f7fa;
}

.print-hero {
  background: #152238;
  color: #fff;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  padding: clamp(52px, 8vw, 110px) clamp(22px, 7vw, 110px);
  position: relative;
}

.print-hero::after {
  background: #f3c846;
  bottom: 0;
  content: "";
  height: 12px;
  left: 0;
  position: absolute;
  width: 34%;
}

.print-hero__content {
  max-width: 690px;
  position: relative;
  z-index: 3;
}

.print-hero__content h1 {
  font-size: clamp(3.25rem, 7vw, 7.2rem);
  line-height: 0.94;
  max-width: 820px;
}

.print-hero__content > p:not(.eyebrow) {
  color: #d8e1eb;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  max-width: 610px;
}

.print-hero .eyebrow {
  color: #f3c846;
}

.print-hero__actions,
.print-product__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.print-hero__actions {
  margin-top: 32px;
}

.print-hero .button--quiet {
  background: transparent;
  border-color: #607087;
  color: #fff;
}

.print-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.print-hero__facts span {
  align-items: center;
  color: #c6d1de;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 8px;
}

.print-hero__facts svg {
  color: #f3c846;
  height: 17px;
  width: 17px;
}

.print-hero__art {
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
}

.print-hero__card {
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.32);
  object-fit: cover;
  position: absolute;
  width: min(30vw, 390px);
}

.print-hero__card--front {
  right: 17%;
  top: 12%;
  transform: rotate(5deg);
  z-index: 2;
}

.print-hero__card--back {
  right: 4%;
  top: 23%;
  transform: rotate(13deg);
}

.print-hero__phone {
  align-items: center;
  background: #0b1018;
  border: 7px solid #07090c;
  bottom: 6%;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4);
  display: flex;
  height: min(36vw, 510px);
  justify-content: center;
  overflow: hidden;
  position: absolute;
  right: 48%;
  transform: rotate(-5deg);
  width: min(18vw, 255px);
  z-index: 4;
}

.print-hero__phone img {
  object-fit: contain;
  width: 92%;
}

.print-hero__phone span {
  background: #fff;
  bottom: 18px;
  color: #111827;
  font-size: 0.72rem;
  font-weight: 800;
  left: 18px;
  padding: 9px 12px;
  position: absolute;
  right: 18px;
  text-align: center;
}

.section-heading--compact h2 {
  font-size: clamp(2.1rem, 4vw, 4.3rem);
}

.section-heading--compact > p:last-child {
  color: var(--muted);
  line-height: 1.6;
  max-width: 660px;
}

.print-catalog,
.print-flow,
.print-custom {
  padding: clamp(62px, 8vw, 112px) clamp(18px, 6vw, 92px);
}

.print-product-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
}

.print-product {
  background: #fff;
  border: 1px solid #d9e0e9;
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}

.print-product__preview {
  align-items: center;
  background: #e8edf3;
  display: flex;
  height: 500px;
  justify-content: center;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.print-product__preview img {
  box-shadow: 0 18px 38px rgba(23, 33, 46, 0.22);
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.print-product:hover .print-product__preview img {
  transform: translateY(-4px) rotate(1deg);
}

.print-product__ar {
  align-items: center;
  background: #111827;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  gap: 6px;
  padding: 9px 11px;
  position: absolute;
  right: 14px;
  top: 14px;
}

.print-product__ar svg {
  height: 15px;
  width: 15px;
}

.print-product__body {
  padding: 24px;
}

.print-product__meta {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 0.74rem;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.print-product__meta strong {
  color: #c32f55;
  font-size: 0.92rem;
}

.print-product__body h3 {
  font-size: 1.25rem;
  margin-bottom: 11px;
}

.print-product__body > p {
  color: #667085;
  line-height: 1.52;
  min-height: 70px;
}

.print-product__actions .button {
  flex: 1;
  white-space: nowrap;
}

.print-flow {
  background: #fff;
  border-bottom: 1px solid #d9e0e9;
  border-top: 1px solid #d9e0e9;
}

.print-flow__steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
}

.print-flow__steps li {
  border-left: 1px solid #d9e0e9;
  min-height: 250px;
  padding: 26px;
  position: relative;
}

.print-flow__steps li:last-child {
  border-right: 1px solid #d9e0e9;
}

.print-flow__steps li > span {
  color: #c32f55;
  font-size: 0.75rem;
  font-weight: 850;
}

.print-flow__steps li > svg {
  color: #147d76;
  display: block;
  height: 34px;
  margin: 42px 0 25px;
  width: 34px;
}

.print-flow__steps strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.print-flow__steps p {
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.55;
}

.print-custom {
  align-items: flex-end;
  background: #f3c846;
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.print-custom h2 {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  max-width: 720px;
}

.print-custom p:not(.eyebrow) {
  line-height: 1.55;
  max-width: 650px;
}

.print-custom__price {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.print-custom__price strong {
  font-size: 4rem;
}

.print-custom__price span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button-spinner {
  animation: print-spin 700ms linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  height: 17px;
  width: 17px;
}

@keyframes print-spin {
  to { transform: rotate(360deg); }
}

.print-sample {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: calc(100svh - var(--header-height));
}

.print-sample__stage,
.print-editor__preview {
  align-items: center;
  background: #dfe5ec;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 32px;
  position: relative;
}

.print-sample__details {
  align-self: center;
  padding: clamp(34px, 5vw, 76px);
}

.print-sample__details h1 {
  font-size: clamp(2.3rem, 4vw, 4.3rem);
}

.print-sample__details > p {
  color: #667085;
  font-size: 1.03rem;
  line-height: 1.6;
}

.print-sample__list {
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.print-sample__list li {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
}

.print-sample__list svg {
  color: #16866d;
  height: 18px;
  width: 18px;
}

.print-sample__price {
  align-items: baseline;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.print-sample__price strong {
  font-size: 2rem;
}

.print-sample__price span,
.print-sample__note {
  color: #667085;
  font-size: 0.72rem;
}

.print-sample__note {
  display: block;
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

.print-view-toggle {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd4df;
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
  padding: 4px;
  width: 260px;
}

.print-view-toggle button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  height: 36px;
}

.print-view-toggle button.is-active {
  background: #111827;
  color: #fff;
}

.print-card-frame {
  aspect-ratio: 5 / 7;
  box-shadow: 0 26px 56px rgba(20, 34, 52, 0.24);
  max-height: calc(100svh - 185px);
  max-width: 100%;
  overflow: hidden;
}

.print-card-frame img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.print-ar-simulation {
  aspect-ratio: 5 / 7;
  box-shadow: 0 26px 56px rgba(20, 34, 52, 0.24);
  max-height: calc(100svh - 185px);
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.print-ar-simulation > img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.print-ar-simulation model-viewer {
  height: 60%;
  left: 8%;
  position: absolute;
  top: 14%;
  width: 84%;
}

.print-ar-simulation > span,
.print-ar-simulation__badge {
  align-items: center;
  background: #111827;
  bottom: 18px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  gap: 7px;
  left: 18px;
  padding: 10px 12px;
  position: absolute;
}

.print-editor {
  background: #dfe5ec;
  height: 100svh;
  overflow: hidden;
}

.print-editor__bar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d4dce6;
  display: flex;
  height: 66px;
  justify-content: space-between;
  padding: 0 18px;
  position: relative;
  z-index: 20;
}

.print-editor__name {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.print-editor__name strong {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-editor__name span {
  color: #667085;
  font-size: 0.72rem;
}

.print-editor__name span.is-saving {
  color: #a15c00;
}

.print-editor__name span.is-error {
  color: #b42318;
}

.print-editor__name em {
  background: #e4f4ee;
  color: #08705b;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 850;
  padding: 6px 8px;
  text-transform: uppercase;
}

.print-editor__workspace {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(390px, 40fr);
  height: calc(100svh - 66px);
}

.print-editor__preview {
  min-height: 0;
  padding: 24px;
}

.print-preview-canvas {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.print-editor__preview .print-card-frame,
.print-editor__preview .print-ar-simulation {
  height: 100%;
  max-height: calc(100svh - 190px);
}

.print-preview-note {
  color: #5d6978;
  font-size: 0.72rem;
  margin: 14px 0 0;
}

.print-editor__controls {
  background: #fff;
  border-left: 1px solid #d4dce6;
  min-width: 0;
  overflow-y: auto;
}

.print-editor-tabs {
  background: #fff;
  border-bottom: 1px solid #d4dce6;
  display: grid;
  grid-auto-columns: minmax(72px, 1fr);
  grid-auto-flow: column;
  position: sticky;
  top: 0;
  z-index: 5;
}

.print-editor-tabs button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #667085;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 0.66rem;
  font-weight: 800;
  gap: 6px;
  height: 66px;
  justify-content: center;
}

.print-editor-tabs button svg {
  height: 18px;
  width: 18px;
}

.print-editor-tabs button.is-active {
  border-bottom-color: #d92d5b;
  color: #111827;
}

.print-editor__panel,
.print-result {
  padding: 30px;
}

.print-editor__panel .panel-heading h1 {
  font-size: 1.7rem;
  margin-bottom: 9px;
}

.print-editor__panel .panel-heading p:last-child {
  color: #667085;
  font-size: 0.85rem;
  line-height: 1.5;
}

.palette-options {
  display: grid;
  gap: 10px;
}

.palette-option {
  align-items: center;
  background: #fff;
  border: 1px solid #d4dce6;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  min-height: 64px;
  padding: 10px;
  text-align: left;
}

.palette-option.is-selected {
  border-color: #111827;
  box-shadow: inset 0 0 0 1px #111827;
}

.palette-option > span {
  display: grid;
  grid-template-columns: repeat(2, 22px);
}

.palette-option i {
  height: 22px;
  width: 22px;
}

.palette-option strong {
  font-size: 0.86rem;
}

.print-upload-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.print-upload {
  align-items: center;
  background: #f7f9fb;
  border: 1px dashed #adb9c7;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 130px;
  padding: 16px;
  text-align: center;
}

.print-upload:hover,
.print-upload.is-uploading {
  background: #edf8f6;
  border-color: #147d76;
}

.print-upload svg {
  color: #147d76;
  height: 25px;
  width: 25px;
}

.print-upload strong {
  font-size: 0.82rem;
}

.print-upload small {
  color: #667085;
  font-size: 0.68rem;
  line-height: 1.4;
}

.print-upload input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.print-media-status {
  color: #147d76;
  font-size: 0.8rem;
  font-weight: 750;
  margin-top: 12px;
}

.print-media-status span {
  align-items: center;
  display: flex;
  gap: 7px;
}

.print-media-status svg {
  height: 17px;
  width: 17px;
}

.print-media-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.print-media-row {
  align-items: center;
  border: 1px solid #d4dce6;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 1fr 38px;
  padding: 8px;
}

.print-media-row > svg {
  color: #147d76;
  height: 20px;
  width: 20px;
}

.print-media-row span {
  display: flex;
  flex-direction: column;
}

.print-media-row strong {
  font-size: 0.79rem;
  text-transform: capitalize;
}

.print-media-row small {
  color: #667085;
  font-size: 0.65rem;
}

.guest-add-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 120px;
}

.guest-add-form .field--full,
.guest-add-form .button {
  grid-column: 1 / -1;
}

.guest-import {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.guest-list-heading {
  align-items: center;
  border-bottom: 1px solid #d4dce6;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.guest-list-heading span {
  color: #667085;
  font-size: 0.75rem;
  font-weight: 800;
}

.guest-list {
  display: grid;
  margin-bottom: 26px;
}

.guest-list__empty {
  color: #667085;
  font-size: 0.82rem;
  padding: 22px 0;
}

.guest-row {
  align-items: end;
  border-bottom: 1px solid #e4e9ef;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 1.25fr) minmax(130px, 1fr) 72px 116px;
  padding: 12px 0;
}

.guest-row__field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.guest-row__field span {
  color: #667085;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guest-row__field input {
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font: inherit;
  min-width: 0;
  padding: 9px;
  width: 100%;
}

.guest-row__actions {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
}

.guest-pack {
  border-top: 4px solid #e8edf3;
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.guest-pack > div {
  display: grid;
  gap: 4px;
}

.guest-pack span {
  color: #667085;
  font-size: 0.75rem;
}

.print-ar-simulation__message {
  background: rgba(255, 255, 255, 0.94);
  bottom: 15%;
  color: #111827;
  font-size: clamp(0.66rem, 1.2vw, 0.95rem);
  font-weight: 750;
  left: 10%;
  line-height: 1.35;
  padding: 11px;
  position: absolute;
  right: 10%;
  text-align: center;
}

.print-result {
  border-top: 8px solid #e8edf3;
}

.print-result__success {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.print-result__success > svg {
  color: #16866d;
  height: 30px;
  width: 30px;
}

.print-result__success div {
  display: flex;
  flex-direction: column;
}

.print-result__success span {
  color: #667085;
  font-size: 0.72rem;
}

.print-result__files {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.print-result__files a {
  align-items: center;
  background: #f2f5f8;
  display: flex;
  font-size: 0.68rem;
  font-weight: 750;
  gap: 7px;
  min-width: 0;
  padding: 10px;
}

.print-result__files a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-result__files svg {
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.ar-postcard-page {
  background: #05070a;
  overflow: hidden;
}

.card-ar {
  background: #05070a;
  color: #fff;
  height: 100svh;
  overflow: hidden;
  position: relative;
  width: 100vw;
}

.card-ar__viewport {
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.card-ar__viewport video {
  max-width: none;
  position: absolute;
  z-index: 1 !important;
}

.card-ar__viewport canvas {
  background: transparent !important;
  height: 100% !important;
  inset: 0;
  position: absolute;
  width: 100% !important;
  z-index: 2 !important;
}

.card-ar__viewport > div {
  z-index: 3 !important;
}

.card-ar__scan-ui {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.card-ar__guest-name {
  background: rgba(8, 12, 18, 0.86);
  font-size: 0.82rem;
  font-weight: 850;
  left: 50%;
  max-width: calc(100vw - 36px);
  overflow: hidden;
  padding: 10px 14px;
  position: absolute;
  text-overflow: ellipsis;
  top: max(18px, env(safe-area-inset-top));
  transform: translateX(-50%);
  white-space: nowrap;
}

.card-ar__reticle {
  height: min(72vh, 112vw);
  left: 50%;
  max-height: 700px;
  max-width: 500px;
  position: absolute;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(76vw, 500px);
}

.card-ar--birthday-v2 .card-ar__reticle {
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 1px rgba(4, 7, 12, 0.45),
    inset 0 0 42px rgba(255, 255, 255, 0.08);
}

.card-ar--birthday-v2 .card-ar__reticle::after {
  background: rgba(255, 255, 255, 0.9);
  bottom: 18px;
  color: #111827;
  content: "5 × 7 CARD";
  font-size: 0.62rem;
  font-weight: 850;
  left: 50%;
  padding: 6px 8px;
  position: absolute;
  transform: translateX(-50%);
}

.card-ar--birthday-v2 .card-ar__reticle i {
  display: none;
}

.card-ar__reticle i {
  border-color: rgba(255, 255, 255, 0.92);
  border-style: solid;
  height: 52px;
  position: absolute;
  width: 52px;
}

.card-ar__reticle i:nth-child(1) { border-width: 3px 0 0 3px; left: 0; top: 0; }
.card-ar__reticle i:nth-child(2) { border-width: 3px 3px 0 0; right: 0; top: 0; }
.card-ar__reticle i:nth-child(3) { border-width: 0 0 3px 3px; bottom: 0; left: 0; }
.card-ar__reticle i:nth-child(4) { border-width: 0 3px 3px 0; bottom: 0; right: 0; }

.card-ar__hint {
  align-items: center;
  background: rgba(8, 12, 18, 0.84);
  bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  font-size: 0.9rem;
  font-weight: 780;
  gap: 10px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 13px 16px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.card-ar__hint svg {
  color: #f3c846;
  height: 20px;
  width: 20px;
}

.card-ar__found {
  align-items: center;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  justify-content: center;
  left: 12px;
  position: absolute;
  right: 12px;
  z-index: 8;
}

.card-ar__found > span {
  align-items: center;
  background: rgba(7, 13, 18, 0.82);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 7px;
  padding: 11px;
}

.button--light {
  background: #fff;
  color: #111827;
}

.card-ar__audio {
  background: #f3c846;
  color: #111827;
}

.card-ar__replay,
.card-ar__surface,
.card-ar__audio {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.card-ar__replay svg,
.card-ar__surface svg,
.card-ar__audio svg {
  height: 17px;
  width: 17px;
}

.card-ar__surface {
  background: #9fe3c2;
  color: #111827;
}

.card-ar__help,
.card-ar__browser-gate {
  background: rgba(7, 10, 14, 0.92);
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 16px;
  padding: 20px;
  position: absolute;
  right: 16px;
  z-index: 10;
}

.card-ar__help strong,
.card-ar__browser-gate strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 7px;
}

.card-ar__help p,
.card-ar__browser-gate p {
  color: #c5ced8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.card-ar__browser-gate {
  bottom: auto;
  left: 50%;
  max-width: 420px;
  right: auto;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
}

.card-ar__browser-gate > svg {
  color: #f3c846;
  height: 38px;
  margin-bottom: 16px;
  width: 38px;
}

.card-ar__fallback {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.card-ar__fallback > img {
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  width: 100%;
}

.card-ar__fallback model-viewer {
  height: 62%;
  left: 4%;
  position: absolute;
  top: 5%;
  width: 92%;
}

.card-ar__fallback > div {
  background: rgba(5, 8, 12, 0.88);
  bottom: 0;
  left: 0;
  padding: 24px 22px max(24px, env(safe-area-inset-bottom));
  position: absolute;
  right: 0;
}

.card-ar__fallback h1 {
  font-size: clamp(1.9rem, 9vw, 3.2rem);
  margin-bottom: 10px;
}

.card-ar__fallback p:not(.eyebrow) {
  color: #d2dae3;
  line-height: 1.5;
}

.card-ar__fallback .card-ar__fallback-guest {
  color: #f3c846;
  font-size: 0.85rem;
  font-weight: 850;
  margin-bottom: 5px;
}

.card-ar__desktop {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: absolute;
  text-align: center;
}

.card-ar__desktop h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.card-ar__desktop img {
  background: #fff;
  height: 250px;
  margin: 12px 0 22px;
  padding: 12px;
  width: 250px;
}

.card-ar__desktop > p:last-child {
  color: #c5ced8;
  line-height: 1.5;
  max-width: 480px;
}

.event-sheet {
  border: 0;
  border-radius: 8px 8px 0 0;
  margin: auto 0 0;
  max-height: 88svh;
  max-width: none;
  padding: 0;
  width: 100%;
}

.event-sheet::backdrop {
  background: rgba(4, 7, 10, 0.72);
}

.event-sheet__content {
  padding: 28px 20px max(28px, env(safe-area-inset-bottom));
  position: relative;
}

.event-sheet__close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.event-sheet h2 {
  font-size: 2.2rem;
  padding-right: 50px;
}

.event-sheet__guest {
  color: #147d76;
  font-size: 0.92rem;
  font-weight: 850;
  margin: 0 0 5px;
}

.event-sheet dl {
  border-bottom: 1px solid #d5dce4;
  border-top: 1px solid #d5dce4;
  display: grid;
  gap: 0;
  margin: 22px 0;
}

.event-sheet dl div {
  display: grid;
  gap: 12px;
  grid-template-columns: 80px 1fr;
  padding: 14px 0;
}

.event-sheet dt {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-sheet dd {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.event-sheet__choice {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}

.event-sheet__choice label {
  position: relative;
}

.event-sheet__choice input {
  opacity: 0;
  position: absolute;
}

.event-sheet__choice span {
  border: 1px solid #c5ced8;
  border-radius: 6px;
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 13px 8px;
  text-align: center;
}

.event-sheet__choice input:checked + span {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.ar-expired {
  margin: 0 auto;
  max-width: 680px;
  padding: 12vh 24px;
  text-align: center;
}

.ar-expired > svg {
  color: #c32f55;
  height: 46px;
  margin-bottom: 20px;
  width: 46px;
}

.ar-expired h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.ar-expired p:not(.eyebrow) {
  color: #667085;
  line-height: 1.6;
}

.ar-expired strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 24px;
}

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

  .print-hero__art {
    opacity: 0.52;
    width: 55%;
  }

  .print-hero__content {
    text-shadow: 0 2px 20px rgba(4, 9, 16, 0.5);
  }

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

  .print-flow__steps li:nth-child(2) {
    border-right: 1px solid #d9e0e9;
  }

  .print-flow__steps li:nth-child(n + 3) {
    border-top: 1px solid #d9e0e9;
  }
}

@media (max-width: 820px) {
  .print-hero {
    min-height: 820px;
    padding-top: 50px;
  }

  .print-hero__art {
    bottom: 0;
    height: 47%;
    opacity: 0.9;
    top: auto;
    width: 100%;
  }

  .print-hero__card {
    width: 190px;
  }

  .print-hero__card--front {
    right: 18%;
    top: 5%;
  }

  .print-hero__card--back {
    right: 2%;
    top: 15%;
  }

  .print-hero__phone {
    bottom: 3%;
    height: 270px;
    right: auto;
    left: 8%;
    width: 140px;
  }

  .print-hero__facts {
    gap: 10px 16px;
  }

  .print-product-grid {
    grid-template-columns: 1fr;
  }

  .print-product__preview {
    height: 450px;
  }

  .print-custom {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-custom__price {
    align-items: flex-start;
  }

  .print-sample {
    display: block;
  }

  .print-sample__stage {
    min-height: 70svh;
  }

  .print-sample__stage .print-card-frame,
  .print-sample__stage .print-ar-simulation {
    height: 56svh;
  }

  .print-editor {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .print-editor__bar {
    position: sticky;
    top: 0;
  }

  .print-editor__bar .button {
    min-width: 44px;
    padding: 10px;
  }

  .print-editor__bar .button span {
    display: none;
  }

  .print-editor__name {
    gap: 7px;
  }

  .print-editor__name strong {
    font-size: 0.78rem;
    max-width: 42vw;
  }

  .print-editor__name em {
    display: none;
  }

  .print-editor__workspace {
    display: block;
    height: auto;
  }

  .print-editor__preview {
    height: calc(100svh - 66px);
    padding: 16px;
  }

  .print-editor__preview .print-card-frame,
  .print-editor__preview .print-ar-simulation {
    height: calc(100% - 94px);
  }

  .print-editor__controls {
    border-left: 0;
    border-top: 1px solid #d4dce6;
    min-height: 70svh;
    overflow: visible;
  }

  .print-editor-tabs {
    overflow-x: auto;
  }

  .print-editor-tabs button {
    min-width: 78px;
  }

  .print-editor__panel,
  .print-result {
    padding: 24px 18px;
  }

  .print-upload-grid {
    grid-template-columns: 1fr;
  }

  .print-upload {
    min-height: 105px;
  }

  .guest-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .guest-row__field:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .guest-row__field:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .guest-row__actions {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 560px) {
  .print-hero__content h1 {
    font-size: 3.35rem;
  }

  .print-hero__actions .button {
    width: 100%;
  }

  .print-flow__steps {
    grid-template-columns: 1fr;
  }

  .print-flow__steps li,
  .print-flow__steps li:nth-child(2),
  .print-flow__steps li:last-child {
    border: 0;
    border-top: 1px solid #d9e0e9;
    min-height: 210px;
  }

  .print-product__preview {
    height: 400px;
  }

  .print-product__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .print-result__files {
    grid-template-columns: 1fr;
  }

  .card-ar__found {
    align-items: stretch;
    flex-wrap: wrap;
  }
}

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

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  margin-bottom: 18px;
}

/* Birthday Surprise V2 */
.birthday-v2-home {
  background: #f7f8fc;
}

.birthday-hero {
  background: #f7f8fc;
  min-height: min(820px, calc(100svh - var(--header-height) - 34px));
  overflow: hidden;
  padding: clamp(48px, 5vw, 82px) clamp(22px, 7vw, 108px);
  position: relative;
}

.birthday-hero::before {
  background: #f7cf4a;
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  top: 0;
  width: 37%;
}

.birthday-hero__content {
  max-width: 650px;
  position: relative;
  z-index: 4;
}

.birthday-hero .eyebrow,
.birthday-demo .eyebrow,
.birthday-personalize .eyebrow {
  color: #d72d53;
}

.birthday-hero h1 {
  color: #171c2c;
  font-size: clamp(3.2rem, 7.2vw, 7.3rem);
  line-height: 0.94;
  max-width: 840px;
}

.birthday-hero__content > p:not(.eyebrow) {
  color: #4e5668;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.55;
  max-width: 600px;
}

.birthday-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.birthday-hero__actions .button--quiet {
  background: #fff;
}

.birthday-hero__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  margin-top: 34px;
}

.birthday-hero__meta strong {
  color: #171c2c;
  font-size: 1.55rem;
}

.birthday-hero__meta span {
  border-left: 1px solid #cbd2dd;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 760;
  padding-left: 18px;
}

.birthday-hero__art {
  height: 100%;
  inset: 0 0 0 auto;
  pointer-events: none;
  position: absolute;
  width: 56%;
}

.birthday-hero__card {
  box-shadow: 0 34px 70px rgba(23, 28, 44, 0.22);
  height: min(73vh, 690px);
  object-fit: cover;
  position: absolute;
  right: 20%;
  top: 9%;
  transform: rotate(-5deg);
  width: auto;
}

.birthday-hero__phone {
  background: #151923;
  border: 7px solid #151923;
  border-radius: 30px;
  box-shadow: 0 34px 74px rgba(23, 28, 44, 0.32);
  height: min(64vh, 600px);
  overflow: hidden;
  position: absolute;
  right: 5%;
  top: 20%;
  transform: rotate(5deg);
  width: min(26vw, 310px);
  z-index: 2;
}

.birthday-hero__phone > img:first-of-type {
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  width: 100%;
}

.birthday-hero__scene {
  left: 3%;
  position: absolute;
  top: 24%;
  width: 94%;
}

.birthday-hero__phone > span {
  align-items: center;
  background: rgba(14, 19, 28, 0.86);
  bottom: 18px;
  color: #fff;
  display: flex;
  font-size: 0.67rem;
  font-weight: 800;
  gap: 6px;
  left: 50%;
  padding: 9px 11px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.birthday-hero__phone > span svg {
  color: #f7cf4a;
  height: 15px;
  width: 15px;
}

.birthday-hero__camera {
  background: #05070a;
  border-radius: 0 0 12px 12px;
  height: 17px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 80px;
  z-index: 3;
}

.birthday-hero__confetti {
  background: #e84667;
  height: 24px;
  position: absolute;
  width: 72px;
  z-index: 3;
}

.birthday-hero__confetti--one { right: 48%; top: 9%; transform: rotate(24deg); }
.birthday-hero__confetti--two { background: #2e78d6; right: 4%; top: 10%; transform: rotate(-17deg); }
.birthday-hero__confetti--three { background: #f7cf4a; bottom: 7%; right: 43%; transform: rotate(-31deg); }

.birthday-demo {
  background: #fff;
  padding: 82px clamp(22px, 7vw, 108px) 92px;
}

.birthday-demo__heading {
  max-width: 760px;
}

.birthday-demo__heading h2,
.birthday-personalize h2 {
  font-size: clamp(2.3rem, 4.4vw, 4.7rem);
  max-width: 800px;
}

.birthday-demo__heading > p:not(.eyebrow) {
  color: #667085;
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 650px;
}

.birthday-demo__stage {
  aspect-ratio: 16 / 9;
  background: #171c2c;
  margin-top: 44px;
  max-height: 720px;
  overflow: hidden;
  position: relative;
}

.birthday-demo__stage > img {
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  width: 100%;
}

.birthday-demo__stage model-viewer {
  height: 94%;
  inset: 0 3% auto;
  position: absolute;
  width: 94%;
}

.birthday-demo__message {
  background: #2e78d6;
  bottom: 12%;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 2rem);
  font-weight: 850;
  left: 50%;
  padding: 14px 38px;
  position: absolute;
  transform: translateX(-50%) rotate(-1deg);
  white-space: nowrap;
}

.birthday-demo__replay {
  background: #fff;
  bottom: 18px;
  color: #171c2c;
  position: absolute;
  right: 18px;
}

.birthday-demo__beats {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.birthday-demo__beats li {
  border-bottom: 1px solid #d8dee8;
  border-right: 1px solid #d8dee8;
  padding: 26px;
}

.birthday-demo__beats li:first-child {
  border-left: 1px solid #d8dee8;
}

.birthday-demo__beats span {
  color: #d72d53;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 12px;
}

.birthday-demo__beats strong {
  font-size: 1.18rem;
}

.birthday-demo__beats p {
  color: #667085;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 7px 0 0;
}

.birthday-personalize {
  background: #f7cf4a;
  padding: 82px clamp(22px, 7vw, 108px);
}

.birthday-personalize__features {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin: 38px 0 30px;
}

.birthday-personalize__features article {
  background: #fff;
  min-height: 190px;
  padding: 26px;
}

.birthday-personalize__features svg {
  color: #d72d53;
  height: 25px;
  margin-bottom: 28px;
  width: 25px;
}

.birthday-personalize__features strong {
  display: block;
  font-size: 1rem;
}

.birthday-personalize__features p {
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* Birthday editor */
.birthday-editor-page {
  background: #e9edf3;
  height: 100svh;
  overflow: hidden;
}

.birthday-editor {
  height: 100svh;
}

.birthday-editor__bar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d8dee8;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  height: 68px;
  padding: 0 18px;
}

.birthday-editor__title {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.birthday-editor__title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.birthday-editor__title span {
  color: #667085;
  font-size: 0.7rem;
}

.birthday-editor__title em {
  background: #e6f4ea;
  color: #13733b;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  padding: 5px 7px;
}

.birthday-editor__steps {
  align-items: stretch;
  display: flex;
  height: 68px;
}

.birthday-editor__steps button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #667085;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 780;
  gap: 7px;
  min-width: 112px;
  padding: 0 16px;
}

.birthday-editor__steps button span {
  align-items: center;
  border: 1px solid #c6ced9;
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.66rem;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.birthday-editor__steps button.is-active {
  border-bottom-color: #e84667;
  color: #171c2c;
}

.birthday-editor__steps button.is-active span {
  background: #e84667;
  border-color: #e84667;
  color: #fff;
}

.birthday-editor__workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(350px, 2fr);
  height: calc(100svh - 68px);
}

.birthday-editor__preview {
  min-width: 0;
  overflow: hidden;
  padding: 18px 28px 22px;
}

.birthday-preview__toolbar {
  align-items: center;
  display: flex;
  height: 38px;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.birthday-preview__views {
  background: #dfe4eb;
  display: flex;
  padding: 3px;
}

.birthday-preview__views button {
  background: transparent;
  border: 0;
  color: #667085;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
  min-width: 66px;
  padding: 8px 12px;
}

.birthday-preview__views button.is-active {
  background: #fff;
  color: #171c2c;
}

.birthday-preview__toolbar > .icon-button {
  position: absolute;
  right: 0;
}

.birthday-preview__canvas {
  height: calc(100% - 80px);
  min-height: 0;
  position: relative;
}

.birthday-card-preview,
.birthday-ar-preview {
  height: 100%;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  width: 100%;
  z-index: 0;
}

.birthday-card-preview.is-active,
.birthday-ar-preview.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.birthday-card-preview img {
  box-shadow: 0 18px 46px rgba(23, 28, 44, 0.18);
  height: 100%;
  margin: auto;
  object-fit: contain;
  width: 100%;
}

.birthday-ar-preview {
  background: #171c2c;
  overflow: hidden;
}

.birthday-ar-preview > #birthdayArCard {
  height: 100%;
  object-fit: cover;
  opacity: 0.47;
  width: 100%;
}

.birthday-ar-preview model-viewer {
  height: 92%;
  inset: 0 4% auto;
  position: absolute;
  width: 92%;
}

.birthday-ar-preview__ribbon {
  background: #2e78d6;
  bottom: 14%;
  clip-path: polygon(0 18%, 7% 0, 50% 12%, 93% 0, 100% 18%, 94% 88%, 51% 76%, 7% 100%);
  color: #fff;
  font-size: clamp(0.86rem, 1.8vw, 1.45rem);
  font-weight: 850;
  left: 50%;
  max-width: 78%;
  opacity: 0;
  padding: 15px 42px;
  position: absolute;
  text-align: center;
  transform: translate(-50%, 18px);
  transition: opacity 280ms ease, transform 360ms ease;
  white-space: nowrap;
}

.birthday-ar-preview__ribbon.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.birthday-ar-preview__photo {
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  height: 25%;
  opacity: 0;
  padding: 7px 7px 27px;
  position: absolute;
  right: 10%;
  top: 18%;
  transform: rotate(7deg) scale(0.7);
  transition: opacity 300ms ease, transform 400ms ease;
  width: 18%;
  z-index: 3;
}

.birthday-ar-preview__photo.is-visible {
  opacity: 1;
  transform: rotate(7deg) scale(1);
}

.birthday-ar-preview__photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.birthday-ar-preview__lock {
  align-items: center;
  background: rgba(8, 12, 18, 0.84);
  bottom: 14px;
  color: #fff;
  display: flex;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 6px;
  left: 14px;
  padding: 9px 10px;
  position: absolute;
}

.birthday-ar-preview__lock svg {
  color: #f7cf4a;
  height: 15px;
  width: 15px;
}

.birthday-preview__note {
  color: #667085;
  font-size: 0.72rem;
  margin: 10px 0 0;
  text-align: center;
}

.birthday-editor__sheet {
  background: #fff;
  border-left: 1px solid #d8dee8;
  overflow-y: auto;
  padding: 40px clamp(24px, 3.2vw, 52px);
}

.birthday-step {
  margin: 0 auto;
  max-width: 500px;
}

.birthday-step .panel-heading h1 {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
}

.birthday-palette {
  border: 0;
  margin: 26px 0;
  padding: 0;
}

.birthday-palette legend {
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.birthday-palette .palette-option {
  margin-bottom: 8px;
  width: 100%;
}

.birthday-cover-options {
  border: 0;
  margin: 24px 0 0;
  padding: 0;
}

.birthday-cover-options legend,
.birthday-palette legend {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.birthday-cover-options legend {
  color: #344054;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.birthday-cover-options legend small {
  color: #98a2b3;
  font-size: 0.65rem;
  font-weight: 700;
}

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

.birthday-composition {
  background: #fff;
  border: 1px solid #d8dee8;
  color: #344054;
  cursor: pointer;
  min-width: 0;
  padding: 7px;
  text-align: left;
}

.birthday-composition:hover {
  border-color: #e84667;
}

.birthday-composition.is-selected {
  border-color: #e84667;
  box-shadow: 0 0 0 2px rgba(232, 70, 103, 0.13);
}

.birthday-composition__mini {
  background: #fff8ee;
  display: block;
  height: 68px;
  overflow: hidden;
  position: relative;
}

.birthday-composition__mini::after {
  background: #e84667;
  bottom: 7px;
  content: "";
  height: 20px;
  left: calc(50% - 27px);
  position: absolute;
  width: 54px;
}

.birthday-composition__mini i,
.birthday-composition__mini b,
.birthday-composition__mini em {
  display: block;
  position: absolute;
}

.birthday-composition__mini i {
  background: #e84667;
  height: 5px;
  left: 23%;
  top: 12px;
  width: 54%;
}

.birthday-composition__mini b {
  background: #171c2c;
  height: 8px;
  left: 18%;
  top: 23px;
  width: 64%;
}

.birthday-composition__mini em {
  background: #2e78d6;
  height: 4px;
  left: 30%;
  top: 36px;
  width: 40%;
}

.birthday-composition__mini--big-wish i {
  left: 12%;
  width: 42%;
}

.birthday-composition__mini--big-wish b {
  height: 10px;
  left: 12%;
  top: 24px;
  width: 75%;
}

.birthday-composition__mini--big-wish em {
  left: 12%;
  width: 58%;
}

.birthday-composition__mini--party-label i {
  background: #e84667;
  height: 34px;
  left: 17%;
  top: 8px;
  width: 66%;
}

.birthday-composition__mini--party-label b {
  background: #fff;
  height: 5px;
  left: 28%;
  top: 17px;
  width: 44%;
}

.birthday-composition__mini--party-label em {
  background: #fff;
  left: 34%;
  top: 28px;
  width: 32%;
}

.birthday-composition > strong {
  display: block;
  font-size: 0.72rem;
  margin-top: 7px;
}

.birthday-composition > small {
  color: #7b8492;
  display: block;
  font-size: 0.6rem;
  line-height: 1.3;
  margin-top: 3px;
}

.birthday-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.birthday-sticker {
  align-items: center;
  background: #f2f4f7;
  border: 1px solid #d8dee8;
  color: #667085;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.birthday-sticker:hover {
  border-color: #e84667;
  color: #e84667;
}

.birthday-sticker.is-selected {
  background: #fff0f3;
  border-color: #e84667;
  color: #c9254d;
}

.birthday-sticker svg {
  height: 19px;
  width: 19px;
}

.birthday-color-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.birthday-color-control {
  align-items: center;
  border: 1px solid #d8dee8;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 8px;
}

.birthday-color-control input[type="color"] {
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.birthday-color-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.birthday-color-control input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(23, 28, 44, 0.18);
  border-radius: 50%;
}

.birthday-color-control > span {
  min-width: 0;
}

.birthday-color-control strong,
.birthday-color-control small {
  display: block;
}

.birthday-color-control strong {
  font-size: 0.72rem;
}

.birthday-color-control small {
  color: #7b8492;
  font-size: 0.62rem;
  margin-top: 2px;
}

.birthday-logo {
  align-items: center;
  border-bottom: 1px solid #e8ecf1;
  border-top: 1px solid #e8ecf1;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin: 24px 0;
  padding: 14px 0;
}

.birthday-logo > div strong,
.birthday-logo > div small {
  display: block;
}

.birthday-logo > div strong {
  font-size: 0.76rem;
}

.birthday-logo > div small {
  color: #7b8492;
  font-size: 0.64rem;
  margin-top: 3px;
}

.birthday-logo .button {
  min-height: 40px;
  padding: 9px 11px;
}

.birthday-logo input[type="file"] {
  display: none;
}

.birthday-logo.is-uploading {
  opacity: 0.62;
  pointer-events: none;
}

.birthday-message-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.birthday-message-presets button {
  background: #f2f4f7;
  border: 1px solid #d8dee8;
  color: #394150;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 760;
  padding: 9px 11px;
}

.birthday-message-presets button:hover {
  border-color: #e84667;
}

.birthday-upload-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 14px;
}

.birthday-voice-control {
  min-width: 0;
}

.birthday-voice-recorder {
  color: #171c2c;
  font: inherit;
  position: relative;
  width: 100%;
}

.birthday-voice-recorder:disabled {
  cursor: default;
  opacity: 0.78;
}

.birthday-voice-recorder__icon {
  align-items: center;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.birthday-voice-recorder__icon svg {
  height: 26px;
  width: 26px;
}

.birthday-voice-recorder[data-state="recording"] {
  background: #fff0f3;
  border-color: #d72d53;
  border-style: solid;
}

.birthday-voice-recorder[data-state="recording"] .birthday-voice-recorder__icon {
  animation: birthday-recording-pulse 1.15s ease-in-out infinite;
  color: #d72d53;
}

.birthday-voice-recorder[data-state="ready"] {
  background: #edf8f6;
  border-color: #147d76;
  border-style: solid;
}

.birthday-voice-recorder[data-state="error"] {
  background: #fff7ed;
  border-color: #d97706;
}

.birthday-voice-recorder__timer {
  color: #d72d53;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  min-width: 42px;
}

.birthday-voice-preview {
  height: 34px;
  margin-top: 8px;
  width: 100%;
}

@keyframes birthday-recording-pulse {
  50% {
    transform: scale(1.16);
  }
}

.birthday-media-list {
  margin-bottom: 14px;
}

.birthday-step .button--wide + .button--wide {
  margin-top: 9px;
}

.birthday-review {
  border-bottom: 1px solid #d8dee8;
  border-top: 1px solid #d8dee8;
  margin: 26px 0;
}

.birthday-review > div {
  align-items: baseline;
  border-bottom: 1px solid #e8ecf1;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 15px 0;
}

.birthday-review > div:last-child {
  border-bottom: 0;
}

.birthday-review span {
  color: #667085;
  font-size: 0.72rem;
}

.birthday-review strong {
  font-size: 0.82rem;
  text-align: right;
}

.birthday-prepare {
  min-height: 52px;
}

.birthday-prepare__note {
  color: #667085;
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 10px auto 0;
  max-width: 350px;
  text-align: center;
}

.birthday-result {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .birthday-hero {
    min-height: 830px;
    padding-bottom: 410px;
  }

  .birthday-hero__art {
    bottom: 0;
    height: 430px;
    top: auto;
    width: 100%;
  }

  .birthday-hero__card {
    height: 390px;
    left: calc(50% - 170px);
    right: auto;
    top: 12px;
  }

  .birthday-hero__phone {
    height: 350px;
    right: calc(50% - 235px);
    top: 62px;
    width: 180px;
  }

  .birthday-hero__confetti--one { left: 8%; right: auto; top: 24px; }
  .birthday-hero__confetti--two { right: 7%; top: 30px; }

  .birthday-personalize__features {
    grid-template-columns: 1fr 1fr;
  }

  .birthday-editor__bar {
    gap: 10px;
  }

  .birthday-editor__title strong,
  .birthday-editor__title em {
    display: none;
  }

  .birthday-editor__steps button {
    min-width: 94px;
    padding: 0 10px;
  }

  .birthday-editor__workspace {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 1fr);
  }
}

@media (max-width: 720px) {
  .birthday-hero {
    min-height: calc(100svh - var(--header-height) - 14px);
    padding-bottom: 248px;
    padding-top: 34px;
  }

  .birthday-hero__art {
    height: 300px;
  }

  .birthday-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .birthday-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .birthday-hero__actions .button {
    justify-content: center;
  }

  .birthday-hero__meta span {
    border-left: 0;
    padding-left: 0;
  }

  .birthday-hero__card {
    height: 240px;
    left: calc(50% - 100px);
    top: 46px;
  }

  .birthday-hero__phone {
    height: 215px;
    right: calc(50% - 142px);
    top: 70px;
    width: 110px;
  }

  .birthday-demo,
  .birthday-personalize {
    padding: 62px 18px;
  }

  .birthday-demo__stage {
    aspect-ratio: 4 / 5;
  }

  .birthday-demo__message {
    font-size: 0.92rem;
    padding: 11px 20px;
  }

  .birthday-demo__beats {
    grid-template-columns: 1fr;
  }

  .birthday-demo__beats li,
  .birthday-demo__beats li:first-child {
    border-left: 1px solid #d8dee8;
  }

  .birthday-personalize__features {
    grid-template-columns: 1fr;
  }

  .birthday-personalize__features article {
    min-height: 150px;
  }

  .birthday-editor__bar {
    grid-template-columns: auto 1fr;
    height: 62px;
    padding: 0 10px;
  }

  .birthday-editor__title {
    justify-content: flex-end;
  }

  .birthday-editor__steps {
    background: #fff;
    border-bottom: 1px solid #d8dee8;
    grid-column: 1 / -1;
    height: 48px;
    justify-content: stretch;
    left: 0;
    position: absolute;
    right: 0;
    top: 62px;
    z-index: 9;
  }

  .birthday-editor__steps button {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 0 5px;
  }

  .birthday-editor__workspace {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(310px, 51svh) minmax(0, 1fr);
    height: calc(100svh - 62px);
    padding-top: 48px;
  }

  .birthday-editor__preview {
    padding: 8px 12px 10px;
  }

  .birthday-preview__toolbar {
    height: 34px;
    margin-bottom: 6px;
  }

  .birthday-preview__canvas {
    height: calc(100% - 64px);
  }

  .birthday-preview__note {
    font-size: 0.62rem;
    margin-top: 6px;
  }

  .birthday-editor__sheet {
    border-left: 0;
    border-top: 1px solid #d8dee8;
    padding: 24px 18px max(32px, env(safe-area-inset-bottom));
  }

  .birthday-step .panel-heading h1 {
    font-size: 2rem;
  }

  .birthday-upload-grid {
    grid-template-columns: 1fr 1fr;
  }

  .birthday-composition > small {
    display: none;
  }
}

@media (max-width: 420px) {
  .birthday-editor__steps button {
    font-size: 0.68rem;
  }

  .birthday-editor__steps button span {
    display: none;
  }

  .birthday-upload-grid {
    grid-template-columns: 1fr;
  }

  .birthday-compositions {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }

  .birthday-composition {
    padding: 5px;
  }

  .birthday-composition__mini {
    height: 58px;
  }

  .birthday-color-controls {
    grid-template-columns: 1fr;
  }

  .birthday-logo {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .birthday-logo > .icon-button {
    grid-column: 2;
  }

  .birthday-ar-preview__ribbon {
    font-size: 0.72rem;
    max-width: 88%;
    padding: 10px 24px;
  }
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header {
  align-items: center;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  position: relative;
  width: 100%;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 10px;
}

.brand__mark {
  background: var(--ink);
  display: grid;
  height: 30px;
  place-items: center;
  position: relative;
  transform: rotate(8deg);
  width: 30px;
}

.brand__mark span {
  background: #fff;
  height: 3px;
  position: absolute;
  transform: rotate(-8deg);
  width: 14px;
}

.brand__mark span:last-child {
  transform: rotate(82deg);
}

.site-nav {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: clamp(10px, 2vw, 24px);
}

.site-nav > a:not(.button):hover {
  color: var(--primary-dark);
}

.site-nav__admin {
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
}

.site-nav__admin svg {
  height: 17px;
  width: 17px;
}

.button,
.icon-button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  transition:
    background 160ms ease,
    border 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button {
  border-radius: 6px;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
}

.button svg,
.icon-button svg {
  height: 18px;
  pointer-events: none;
  stroke-width: 2;
  width: 18px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button--primary {
  background: var(--primary);
  color: #fff;
}

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

.button--dark {
  background: var(--ink);
  color: #fff;
}

.button--dark:hover {
  background: #263244;
}

.button--quiet {
  background: var(--surface);
  border-color: var(--line);
}

.button--quiet:hover {
  border-color: #99a5b6;
}

.button--wide {
  width: 100%;
}

.icon-button {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 6px;
  height: 42px;
  padding: 0;
  width: 42px;
}

.back-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 7px;
}

.back-link svg {
  height: 16px;
  width: 16px;
}

.toast {
  background: var(--ink);
  border-radius: 6px;
  bottom: 22px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  left: 50%;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: 180ms ease;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Home */
.product-intro {
  align-items: stretch;
  background: #f8fafc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  min-height: calc(84vh - var(--header-height));
  overflow: hidden;
}

.product-intro__inner {
  align-self: center;
  max-width: 760px;
  padding: clamp(52px, 8vw, 118px) clamp(24px, 7vw, 112px);
}

.product-intro h1 {
  font-size: clamp(4rem, 9vw, 8.5rem);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.product-intro__copy {
  color: #344054;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.45;
  max-width: 580px;
}

.product-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.intro-scene {
  background: #17202a;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.intro-scene__model {
  animation: intro-float 4s ease-in-out infinite;
  height: 90%;
  left: -8%;
  object-fit: contain;
  position: absolute;
  top: 5%;
  width: 80%;
}

.intro-scene__card {
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 38px;
  position: absolute;
  right: 10%;
  top: 24%;
  transform: rotate(6deg);
  width: min(290px, 48%);
}

.intro-scene__card small {
  color: #c2255c;
  font-size: 0.62rem;
  font-weight: 900;
}

.intro-scene__card strong {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

@keyframes intro-float {
  50% {
    transform: translateY(-14px) rotate(-2deg);
  }
}

.product-band,
.flow-band__inner {
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading--row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

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

.section-heading--row > span {
  color: var(--muted);
  font-weight: 800;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.product-card__visual {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.product-card__visual img {
  height: 100%;
  object-fit: contain;
  padding: 12px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.product-card--magic .product-card__visual {
  background: #fff0f3;
}

.product-card--birthday .product-card__visual {
  background: #eaf4ff;
}

.product-card--wedding .product-card__visual {
  background: #eaf7ef;
}

.product-card__spark {
  background: var(--gold);
  height: 14px;
  position: absolute;
  transform: rotate(45deg);
  width: 14px;
}

.product-card__spark--one {
  left: 20%;
  top: 24%;
  z-index: 2;
}

.product-card__spark--two {
  right: 18%;
  top: 42%;
  z-index: 2;
}

.product-card__body {
  padding: 24px;
}

.product-card__meta {
  color: var(--muted);
  display: flex;
  font-size: 0.68rem;
  font-weight: 850;
  justify-content: space-between;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 1.45rem;
  margin-bottom: 9px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.5;
  min-height: 48px;
}

.product-card .button {
  margin-top: 10px;
  width: 100%;
}

.custom-setup {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 34px;
  padding: 30px 0;
}

.custom-setup h3 {
  font-size: 1.65rem;
  margin-bottom: 8px;
}

.custom-setup p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  max-width: 680px;
}

.custom-setup__offer {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.custom-setup__offer strong {
  font-size: 2.1rem;
}

.custom-setup__offer span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-band {
  background: #17202a;
  color: #fff;
}

.flow-band .eyebrow {
  color: #8ed9e3;
}

.flow-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
}

.flow-list li {
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 42px;
  min-height: 180px;
  padding: 22px 24px;
}

.flow-list span {
  color: #f7c948;
  font-size: 0.72rem;
  font-weight: 900;
}

.flow-list strong {
  font-size: clamp(1.2rem, 2.3vw, 2rem);
}

/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: calc(100vh - var(--header-height));
}

.auth-panel {
  align-self: center;
  margin: 0 auto;
  max-width: 540px;
  padding: 60px 30px;
  width: 100%;
}

.auth-panel h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.auth-panel > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.stack-form {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.stack-form label,
.field > span,
.editor-step > label,
.published-tools > label {
  color: #344054;
  font-size: 0.75rem;
  font-weight: 800;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid #bcc6d4;
  border-radius: 5px;
  color: var(--ink);
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  line-height: 1.5;
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 62, 99, 0.12);
}

.auth-result,
.rsvp-result {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 18px;
}

.auth-result a {
  color: var(--primary-dark);
  font-weight: 800;
}

.auth-visual,
.activation-visual {
  background: #17202a;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.auth-visual__ring {
  border: 30px solid #2f855a;
  border-radius: 50%;
  height: 440px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
}

.auth-visual__card {
  align-items: center;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  font-size: 3rem;
  font-weight: 900;
  height: 280px;
  justify-content: center;
  left: 50%;
  line-height: 0.8;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%) rotate(7deg);
  width: 230px;
}

.auth-visual__ribbon {
  background: #ef476f;
  height: 80px;
  left: 0;
  position: absolute;
  top: 12%;
  transform: rotate(-8deg);
  width: 100%;
}

.activation-visual {
  background: #0f766e;
  display: grid;
  place-items: center;
}

.activation-visual span {
  background: #fff;
  box-shadow: var(--shadow);
  height: 360px;
  position: absolute;
  transform: rotate(-5deg);
  width: 280px;
}

.activation-visual strong {
  color: #111827;
  font-size: 2.8rem;
  line-height: 0.9;
  position: relative;
  transform: rotate(-5deg);
  z-index: 2;
}

/* Dashboard */
.dashboard {
  margin: 0 auto;
  max-width: 1320px;
  padding: clamp(42px, 7vw, 90px) clamp(18px, 4vw, 52px);
}

.dashboard__header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dashboard__header h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  margin-bottom: 0;
}

.dashboard__actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dashboard-products {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 58px;
}

.dashboard-product {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px 1fr 20px;
  min-height: 84px;
  padding: 16px;
  transition: 160ms ease;
}

.dashboard-product:hover {
  border-color: #99a5b6;
  transform: translateY(-2px);
}

.dashboard-product__icon {
  align-items: center;
  border-radius: 6px;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.dashboard-product--magic .dashboard-product__icon {
  background: #fff0f3;
  color: #c2255c;
}

.dashboard-product--birthday .dashboard-product__icon {
  background: #eaf4ff;
  color: #1d4ed8;
}

.dashboard-product--wedding .dashboard-product__icon {
  background: #eaf7ef;
  color: #166534;
}

.dashboard-product strong,
.dashboard-product small {
  display: block;
}

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

.entitlement-strip {
  align-items: center;
  background: #fff7dc;
  border: 1px solid #e7c866;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -34px 0 52px;
  padding: 14px 16px;
}

.entitlement-strip a {
  color: #7a5100;
  font-weight: 800;
  text-decoration: underline;
}

.experience-table {
  border-top: 1px solid var(--line);
}

.experience-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  min-height: 132px;
  padding: 18px 0;
}

.experience-row__preview {
  align-items: flex-end;
  border-radius: 5px;
  color: #fff;
  display: flex;
  font-size: 0.62rem;
  font-weight: 850;
  height: 94px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.experience-row__preview::after {
  border: 9px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  content: "";
  height: 52px;
  position: absolute;
  right: 16px;
  top: 15px;
  width: 52px;
}

.experience-row__preview--magic {
  background: #c2255c;
}

.experience-row__preview--birthday {
  background: #1d4ed8;
}

.experience-row__preview--wedding {
  background: #166534;
}

.experience-row__main h3 {
  margin: 8px 0 4px;
}

.experience-row__main p {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0;
}

.experience-row__actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.status {
  border-radius: 99px;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.status--draft {
  background: #e9edf3;
  color: #475467;
}

.status--published,
.status--paid {
  background: #dcfce7;
  color: #166534;
}

.status--canceled,
.status--expired {
  background: #fee2e2;
  color: #b42318;
}

.empty-state {
  border: 1px dashed #aeb8c6;
  padding: 64px 24px;
  text-align: center;
}

.empty-state__icon {
  align-items: center;
  background: #fff0f3;
  border-radius: 50%;
  color: #c2255c;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 18px;
  width: 54px;
}

.empty-state p {
  color: var(--muted);
}

/* Template picker */
.template-picker {
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(36px, 5vw, 72px) clamp(18px, 4vw, 54px) 120px;
}

.template-picker__header {
  max-width: 700px;
}

.template-picker__header .back-link {
  margin-bottom: 52px;
}

.template-picker__header h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.template-picker__header > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.template-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.template-card {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.template-card.is-selected {
  border-color: var(--ink);
}

.template-card__visual {
  background: var(--c3);
  display: block;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.template-card__visual::before {
  border: 20px solid var(--c1);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
  bottom: 0;
  content: "";
  height: 75%;
  left: 20%;
  position: absolute;
  width: 60%;
}

.template-card__shape {
  background: var(--c2);
  bottom: 28px;
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.18);
  height: 78px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(-4deg);
  width: 90px;
}

.template-card__label {
  color: var(--c4);
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  left: 24px;
  position: absolute;
  top: 22px;
}

.template-card__copy {
  display: block;
  min-height: 116px;
  padding: 18px;
}

.template-card__copy strong,
.template-card__copy small {
  display: block;
}

.template-card__copy small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}

.template-card__check {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: none;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
}

.template-card.is-selected .template-card__check {
  display: flex;
}

.template-card__check svg {
  height: 16px;
  width: 16px;
}

.template-picker__footer {
  align-items: center;
  background: rgba(248, 250, 252, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 72px);
  position: fixed;
  right: 0;
  z-index: 20;
}

.template-picker__footer > span {
  font-weight: 850;
}

/* Editor */
.editor-page {
  height: 100vh;
  overflow: hidden;
}

.editor-page .site-header {
  display: none;
}

.editor {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: 100vh;
}

.editor-nav {
  background: #17202a;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
}

.editor-nav .back-link {
  color: #aab4c3;
}

.editor-nav__title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 10px;
  margin: 32px 0 18px;
  padding-bottom: 22px;
}

.editor-nav__title .status {
  justify-self: start;
}

.step-nav {
  display: grid;
  gap: 3px;
}

.step-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #aab4c3;
  cursor: pointer;
  display: flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 10px;
  min-height: 42px;
  padding: 7px 9px;
  text-align: left;
}

.step-nav button span {
  align-items: center;
  border: 1px solid #667085;
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.66rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.step-nav button.is-active {
  background: #fff;
  color: #17202a;
}

.step-nav button.is-active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.save-state {
  align-items: center;
  color: #8fd8a9;
  display: flex;
  font-size: 0.7rem;
  gap: 7px;
  margin-top: auto;
  padding: 10px;
}

.save-state.is-saving {
  color: #f7c948;
}

.save-state.is-error {
  color: #ff9e9e;
}

.save-state svg {
  height: 15px;
  width: 15px;
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
  height: 100vh;
  min-width: 0;
}

.editor-form {
  background: var(--bg);
  min-width: 0;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 58px);
}

.editor-step {
  display: none;
  margin: 0 auto;
  max-width: 680px;
  min-height: calc(100vh - 180px);
}

.editor-step.is-active {
  display: block;
}

.editor-step__heading {
  margin-bottom: 32px;
}

.editor-step__heading h1,
.editor-step__heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.editor-step > label {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

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

.compact-template {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  min-width: 0;
  padding: 8px;
  text-align: left;
}

.compact-template.is-selected {
  border-color: var(--ink);
}

.compact-template > span {
  background: var(--c3);
  display: block;
  height: 88px;
  overflow: hidden;
  position: relative;
}

.compact-template > span::before {
  background: var(--c1);
  content: "";
  height: 50px;
  left: 18%;
  position: absolute;
  top: 18px;
  transform: rotate(-5deg);
  width: 64%;
}

.compact-template strong {
  display: block;
  font-size: 0.75rem;
  margin-top: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.toggle-field {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
}

.toggle-field input {
  accent-color: var(--primary);
  flex: 0 0 auto;
  height: 20px;
  min-height: 20px;
  width: 20px;
}

.toggle-field strong,
.toggle-field small {
  display: block;
}

.toggle-field small {
  color: var(--muted);
  margin-top: 3px;
}

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

.upload-tile {
  align-items: center;
  background: #fff;
  border: 1px dashed #97a3b5;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 24px 12px;
  text-align: center;
}

.upload-tile:hover {
  border-color: var(--primary);
}

.upload-tile svg {
  color: var(--primary);
  height: 26px;
  margin-bottom: 16px;
  width: 26px;
}

.upload-tile small {
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 6px;
}

.upload-tile input {
  height: 1px;
  min-height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.media-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.media-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  gap: 12px;
  padding: 10px;
}

.media-item__thumb {
  background: var(--surface-muted);
  border-radius: 4px;
  display: grid;
  height: 50px;
  overflow: hidden;
  place-items: center;
  width: 50px;
}

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

.media-item__copy {
  min-width: 0;
}

.media-item__copy strong,
.media-item__copy small {
  display: block;
}

.media-item__copy small {
  color: var(--muted);
  margin-top: 3px;
}

.schedule-editor {
  margin-top: 26px;
}

.schedule-editor__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.schedule-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 110px minmax(0, 1fr) 42px;
  margin-bottom: 8px;
}

.publish-actions {
  display: grid;
  gap: 10px;
}

.published-tools {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 26px;
}

.copy-field {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) 42px;
  margin-top: 8px;
}

.download-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.analytics-line {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 18px;
}

.editor-controls {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 40px auto 0;
  max-width: 680px;
  padding-top: 18px;
}

.live-preview {
  background: #dce4ee;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}

.live-preview__toolbar {
  align-items: center;
  display: flex;
  font-size: 0.75rem;
  font-weight: 800;
  justify-content: space-between;
}

.segmented-control {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #b9c4d2;
  border-radius: 6px;
  display: flex;
  padding: 3px;
}

.segmented-control button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.segmented-control button.is-active {
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
}

.segmented-control svg {
  height: 16px;
  width: 16px;
}

.preview-device {
  align-self: center;
  background: #111827;
  border: 8px solid #111827;
  border-radius: 34px;
  box-shadow: 0 34px 70px rgba(16, 24, 39, 0.28);
  height: min(720px, calc(100vh - 110px));
  margin-top: 16px;
  overflow: hidden;
  transition: width 180ms ease;
  width: min(360px, 88%);
}

.preview-device.is-wide {
  border-radius: 15px;
  width: min(680px, 96%);
}

.preview-experience {
  align-items: center;
  background: #fff0f3;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  position: relative;
  text-align: center;
}

.preview-experience--birthday {
  background: #eaf4ff;
}

.preview-experience--wedding {
  background: #eaf7ef;
}

.preview-orbit {
  border: 16px solid #ef476f;
  border-radius: 50%;
  height: 250px;
  opacity: 0.28;
  position: absolute;
  top: 14%;
  width: 250px;
}

.preview-experience--birthday .preview-orbit {
  border-color: #2563eb;
}

.preview-experience--wedding .preview-orbit {
  border-color: #2f855a;
}

.preview-reveal-object {
  background: #ef476f;
  box-shadow: 0 22px 35px rgba(16, 24, 39, 0.2);
  height: 105px;
  margin-bottom: 54px;
  position: relative;
  transform: rotate(-4deg);
  width: 125px;
  z-index: 2;
}

.preview-experience--birthday .preview-reveal-object {
  background: #2563eb;
}

.preview-experience--wedding .preview-reveal-object {
  background: transparent;
  border: 20px solid #2f855a;
  border-bottom: 0;
  border-radius: 80px 80px 0 0;
  height: 130px;
}

.preview-experience small {
  color: #7f1d1d;
  font-size: 0.62rem;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  text-transform: uppercase;
}

.preview-experience h3 {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin-bottom: 10px;
  max-width: 90%;
  overflow-wrap: anywhere;
  position: relative;
}

.preview-experience p {
  color: #475467;
  line-height: 1.45;
  max-width: 85%;
  position: relative;
}

/* Recipient experience */
.recipient-page {
  background: var(--c3, #f8fafc);
  overflow-x: hidden;
}

.recipient {
  min-height: 100vh;
}

.reveal-stage {
  align-items: center;
  background: var(--c3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 48px 22px;
  position: relative;
  text-align: center;
}

.reveal-stage__ambient {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.reveal-stage__ambient span {
  background: var(--c2);
  height: 12px;
  position: absolute;
  transform: rotate(45deg);
  width: 12px;
}

.reveal-stage__ambient span:nth-child(1) {
  left: 15%;
  top: 18%;
}

.reveal-stage__ambient span:nth-child(2) {
  right: 13%;
  top: 28%;
}

.reveal-stage__ambient span:nth-child(3) {
  bottom: 20%;
  left: 22%;
}

.reveal-stage__ambient span:nth-child(4) {
  bottom: 14%;
  right: 20%;
}

.reveal-stage__eyebrow {
  color: var(--c1);
  font-size: 0.67rem;
  font-weight: 900;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.reveal-stage h1 {
  color: var(--c4);
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 8vw, 5.4rem);
  margin: 36px 0 12px;
  max-width: 880px;
  overflow-wrap: anywhere;
  position: relative;
}

.reveal-stage > p:last-child {
  color: var(--c1);
  font-size: 0.78rem;
  font-weight: 800;
  position: relative;
}

.reveal-object {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: min(280px, 34vh);
  padding: 0;
  position: relative;
  width: min(310px, 76vw);
}

.reveal-object__body,
.reveal-object__lid {
  background: var(--c1);
  box-shadow: 0 32px 50px rgba(16, 24, 39, 0.24);
  left: 15%;
  position: absolute;
  width: 70%;
}

.reveal-object__body {
  bottom: 7%;
  height: 58%;
}

.reveal-object__lid {
  bottom: 61%;
  height: 18%;
  left: 9%;
  transition: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 82%;
}

.reveal-object__ribbon {
  background: var(--c2);
  bottom: 7%;
  height: 72%;
  left: 44%;
  position: absolute;
  width: 12%;
}

.reveal-object:hover .reveal-object__lid {
  transform: translateY(-10px) rotate(3deg);
}

.reveal-object--memory-capsule .reveal-object__body,
.reveal-object--space-party .reveal-object__body,
.reveal-object--glass-garden .reveal-object__body {
  border-radius: 80px;
}

.reveal-object--scratch-reveal .reveal-object__body {
  background: #fff;
  border: 5px solid var(--c1);
}

.reveal-object--scratch-reveal .reveal-object__lid,
.reveal-object--scratch-reveal .reveal-object__ribbon {
  display: none;
}

.scratch-canvas {
  border-radius: 8px;
  height: 76%;
  left: 12%;
  position: absolute;
  top: 12%;
  touch-action: none;
  width: 76%;
  z-index: 5;
}

.reveal-stage.is-opening .reveal-object__lid {
  opacity: 0;
  transform: translate(-35px, -130px) rotate(-18deg);
}

.reveal-stage.is-opening .reveal-object__body {
  animation: reveal-pop 650ms ease both;
}

.reveal-stage.is-open {
  animation: reveal-exit 500ms ease 450ms forwards;
}

@keyframes reveal-pop {
  50% {
    transform: scale(1.08);
  }
}

@keyframes reveal-exit {
  to {
    min-height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    transform: translateY(-24px);
    visibility: hidden;
  }
}

.experience-content {
  background: #fff;
}

.experience-opening {
  background: #fff;
  padding: clamp(82px, 12vw, 170px) 22px;
}

.experience-opening__inner {
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
}

.experience-opening h2 {
  color: var(--c4);
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  overflow-wrap: anywhere;
}

.experience-opening__message {
  color: #475467;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 720px;
  white-space: pre-line;
}

.media-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 62px;
}

.media-gallery > * {
  background: #111827;
  border-radius: 6px;
  height: min(520px, 60vw);
  object-fit: cover;
  width: 100%;
}

.media-gallery > audio {
  background: #eef2f7;
  height: 74px;
  padding: 10px;
}

.media-gallery > :only-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 720px;
}

.gift-reveal-band {
  background: var(--c1);
  color: #fff;
  padding: 90px 22px;
  text-align: center;
}

.gift-reveal-band__inner {
  margin: 0 auto;
  max-width: 700px;
}

.gift-reveal-band .eyebrow {
  color: var(--c2);
}

.gift-reveal-band code {
  background: rgba(255, 255, 255, 0.14);
  border: 1px dashed rgba(255, 255, 255, 0.65);
  border-radius: 5px;
  display: block;
  font-size: clamp(1rem, 3vw, 1.6rem);
  margin: 24px auto;
  max-width: 420px;
  padding: 16px;
}

.event-details {
  background: #eef2f7;
  padding: clamp(76px, 10vw, 130px) 22px;
}

.event-details__inner {
  margin: 0 auto;
  max-width: 1040px;
}

.countdown {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 70px;
}

.countdown div {
  border-top: 2px solid var(--c1);
  padding: 18px 8px;
  text-align: center;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  color: var(--c1);
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.countdown span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.event-facts > div {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 13px;
  min-height: 100px;
  padding: 18px;
}

.event-facts svg {
  color: var(--c1);
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.event-facts strong,
.event-facts small {
  display: block;
}

.event-facts small {
  color: var(--muted);
  line-height: 1.4;
  margin-top: 5px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 34px;
}

.schedule-band {
  background: #fff;
  padding: 100px 22px;
}

.schedule-band__inner {
  margin: 0 auto;
  max-width: 760px;
}

.schedule-band ol {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
}

.schedule-band li {
  border-top: 1px solid var(--line);
  display: grid;
  font-size: 1.05rem;
  gap: 24px;
  grid-template-columns: 100px 1fr;
  padding: 20px 0;
}

.schedule-band time {
  color: var(--c1);
  font-weight: 900;
}

.ar-band {
  align-items: stretch;
  background: #17202a;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(440px, 1.22fr);
  min-height: 680px;
}

.ar-band__copy {
  align-self: center;
  padding: clamp(50px, 8vw, 110px);
}

.ar-band__copy .eyebrow {
  color: var(--c2);
}

.ar-band__copy p:not(.eyebrow) {
  color: #aeb8c6;
  line-height: 1.5;
}

.ar-band model-viewer {
  background: #dce4ee;
  height: 100%;
  min-height: 580px;
  width: 100%;
}

.rsvp-band {
  background: var(--c3);
  padding: 100px 22px;
}

.rsvp-band__inner {
  margin: 0 auto;
  max-width: 720px;
}

.rsvp-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
}

.attendance-control {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attendance-control label {
  cursor: pointer;
}

.attendance-control input {
  height: 1px;
  min-height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.attendance-control span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 10px;
  text-align: center;
}

.attendance-control input:checked + span {
  background: var(--c1);
  border-color: var(--c1);
  color: #fff;
}

.honeypot {
  left: -9999px;
  position: absolute;
}

.recipient-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 34px clamp(22px, 7vw, 100px);
}

.recipient-footer > a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.confetti-piece {
  animation: confetti-fall 1400ms cubic-bezier(0.15, 0.8, 0.25, 1) forwards;
  height: 14px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 42%;
  width: 9px;
  z-index: 20;
}

@keyframes confetti-fall {
  to {
    opacity: 0;
    transform: translate(var(--x), 55vh) rotate(var(--r));
  }
}

.share-sheet {
  align-items: flex-end;
  background: rgba(16, 24, 39, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 100;
}

.share-sheet[hidden] {
  display: none;
}

.share-sheet__panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 520px;
  padding: 18px;
  width: 100%;
}

.share-sheet__panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.share-sheet__grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.share-sheet__grid a,
.share-sheet__grid button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 92px;
  padding: 10px;
}

.share-sheet__grid svg {
  color: var(--primary);
  height: 22px;
  width: 22px;
}

/* Admin */
.admin-dashboard {
  max-width: 1440px;
  padding-top: clamp(38px, 4vw, 58px);
}

.admin-dashboard__header {
  align-items: center;
}

.admin-dashboard__header h1 {
  font-size: clamp(2.7rem, 4.5vw, 4rem);
}

.admin-dashboard__header > div > p:last-child {
  color: var(--muted);
  margin: 10px 0 0;
}

.admin-scene-upload {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(440px, 1.15fr);
  margin-bottom: 64px;
  min-height: 520px;
}

.admin-scene-upload__form {
  border-right: 1px solid var(--line);
  padding: 34px 38px 38px 0;
}

.admin-scene-upload__form h2,
.admin-scene-library h2,
.admin-scene-assign h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.admin-scene-upload__form form {
  display: grid;
  gap: 18px;
}

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

.admin-scene-file {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px dashed #aab5c4;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 154px;
  padding: 18px;
  position: relative;
  transition: 160ms ease;
}

.admin-scene-file:hover {
  background: #fff;
  border-color: #526174;
}

.admin-scene-file.has-file {
  background: #ecf8f1;
  border-color: #4b9d70;
  border-style: solid;
}

.admin-scene-file.has-error {
  background: #fff1f2;
  border-color: #d73a56;
}

.admin-scene-file svg {
  color: #2764bc;
  height: 22px;
  margin-bottom: 14px;
  width: 22px;
}

.admin-scene-file strong,
.admin-scene-file small,
.admin-scene-file span {
  display: block;
}

.admin-scene-file small {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 4px;
}

.admin-scene-file span {
  color: #174f9d;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: auto;
  max-width: 100%;
  overflow: hidden;
  padding-top: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-scene-file input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.admin-scene-upload__status {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  min-height: 22px;
}

.admin-scene-upload__status code {
  color: #182230;
  font-weight: 800;
}

.admin-scene-upload__preview {
  background: #111722;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.admin-scene-upload__preview model-viewer {
  height: 100%;
  min-height: 520px;
  width: 100%;
}

.admin-scene-preview__empty {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: absolute;
  text-align: center;
}

.admin-scene-preview__empty svg {
  color: #f3c846;
  height: 34px;
  margin-bottom: 16px;
  width: 34px;
}

.admin-scene-preview__empty span {
  color: #aeb9c8;
  font-size: 0.75rem;
  margin-top: 6px;
}

.admin-scene-library {
  margin-bottom: 68px;
}

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

.admin-scene-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
  overflow: hidden;
}

.admin-scene-card.is-default {
  border-color: #2f9361;
  box-shadow: inset 0 0 0 1px #2f9361;
}

.admin-scene-card model-viewer {
  background: #111722;
  height: 280px;
  width: 100%;
}

.admin-scene-card__body {
  padding: 18px;
}

.admin-scene-card__body > header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
}

.admin-scene-card h3 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.admin-scene-card header p {
  color: var(--muted);
  font-size: 0.7rem;
  margin: 0;
}

.admin-scene-card .status {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
}

.admin-scene-card .status svg {
  height: 13px;
  width: 13px;
}

.admin-scene-meta {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 15px 0;
}

.admin-scene-meta > div {
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 11px 0;
}

.admin-scene-meta > div + div {
  border-top: 1px solid var(--line);
}

.admin-scene-meta dt {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-scene-meta dd {
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-scene-card__actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.admin-scene-assign {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(560px, 1.28fr);
  margin-bottom: 54px;
  padding: 34px 0;
}

.admin-scene-assign p:last-child {
  color: var(--muted);
  margin: 7px 0 0;
}

.admin-operations {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.admin-operations > summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
  margin-bottom: 24px;
}

.admin-issue {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 50px;
  padding: 24px;
}

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

.admin-issue h2 {
  font-size: 1.3rem;
}

.inline-form {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 220px auto;
}

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

  .product-intro {
    grid-template-columns: 1fr 44%;
  }

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

  .product-card:last-child,
  .template-card:last-child {
    grid-column: 1 / -1;
  }

  .editor-workspace {
    grid-template-columns: minmax(390px, 1fr) minmax(360px, 0.8fr);
  }

  .preview-device {
    width: min(330px, 94%);
  }

  .ar-band {
    grid-template-columns: 1fr;
  }

  .ar-band model-viewer {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding: 0 16px;
  }

  .site-nav > a:not(.button) {
    display: none;
  }

  .site-nav__admin {
    height: 40px;
    padding: 0;
    width: 40px;
  }

  .site-nav__admin span {
    display: none;
  }

  .admin-scene-upload,
  .admin-scene-assign {
    grid-template-columns: 1fr;
  }

  .admin-scene-upload__form {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 28px 0;
  }

  .admin-scene-upload__preview,
  .admin-scene-upload__preview model-viewer {
    min-height: 440px;
  }

  .admin-scene-assign {
    gap: 22px;
  }

  .product-intro,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .product-intro {
    min-height: auto;
  }

  .product-intro__inner {
    padding: 64px 22px 56px;
  }

  .product-intro h1 {
    font-size: clamp(3.6rem, 19vw, 6.2rem);
  }

  .intro-scene {
    min-height: 420px;
  }

  .auth-visual,
  .activation-visual {
    min-height: 380px;
  }

  .dashboard-products {
    grid-template-columns: 1fr;
  }

  .experience-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .experience-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .editor-page {
    height: auto;
    overflow: auto;
  }

  .editor {
    display: block;
    height: auto;
  }

  .editor-nav {
    align-items: center;
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 64px;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .editor-nav__title {
    border: 0;
    margin: 0;
    padding: 0;
    text-align: right;
  }

  .editor-nav__title strong,
  .editor-nav .save-state {
    display: none;
  }

  .step-nav {
    background: #17202a;
    bottom: 0;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 6px;
    position: fixed;
    right: 0;
    z-index: 40;
  }

  .step-nav button {
    flex-direction: column;
    font-size: 0.58rem;
    gap: 3px;
    justify-content: center;
    min-height: 54px;
    padding: 3px;
  }

  .editor-workspace {
    display: block;
    height: auto;
  }

  .editor-form {
    overflow: visible;
    padding: 34px 18px 100px;
  }

  .editor-step {
    min-height: auto;
  }

  .live-preview {
    border-top: 1px solid var(--line);
    min-height: 620px;
    padding: 18px;
  }

  .preview-device {
    height: 540px;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  h2 {
    font-size: 2.3rem;
  }

  .custom-setup {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .custom-setup__offer {
    align-items: flex-start;
    text-align: left;
  }

  .product-grid,
  .template-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .product-card:last-child,
  .template-card:last-child {
    grid-column: auto;
  }

  .product-card__visual,
  .template-card__visual {
    height: 250px;
  }

  .flow-list li {
    min-height: 130px;
  }

  .dashboard {
    padding: 38px 16px 70px;
  }

  .dashboard__header {
    align-items: flex-start;
  }

  .dashboard__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dashboard__actions .button {
    min-height: 42px;
  }

  .dashboard__header h1 {
    font-size: 2.8rem;
  }

  .admin-dashboard__header {
    align-items: flex-start;
    gap: 22px;
  }

  .admin-scene-files,
  .admin-scene-grid {
    grid-template-columns: 1fr;
  }

  .admin-scene-upload__preview,
  .admin-scene-upload__preview model-viewer {
    min-height: 360px;
  }

  .admin-scene-card model-viewer {
    height: 250px;
  }

  .admin-scene-assign .inline-form,
  .admin-issue .inline-form {
    grid-template-columns: 1fr;
  }

  .experience-row {
    gap: 12px;
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .experience-row__preview {
    height: 78px;
  }

  .template-picker {
    padding-left: 16px;
    padding-right: 16px;
  }

  .template-picker__header .back-link {
    margin-bottom: 38px;
  }

  .template-picker__footer > span {
    display: none;
  }

  .template-picker__footer .button {
    width: 100%;
  }

  .compact-template-grid,
  .form-grid,
  .upload-grid,
  .download-grid,
  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .compact-template > span {
    height: 72px;
  }

  .upload-tile {
    min-height: 118px;
  }

  .schedule-row {
    grid-template-columns: 90px minmax(0, 1fr) 42px;
  }

  .editor-controls {
    bottom: 67px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 12px 18px;
    position: sticky;
    z-index: 20;
  }

  .media-gallery {
    grid-template-columns: 1fr;
  }

  .media-gallery > :only-child {
    grid-column: auto;
  }

  .countdown {
    margin-bottom: 48px;
  }

  .countdown strong {
    font-size: 2.7rem;
  }

  .attendance-control {
    grid-template-columns: 1fr;
  }

  .ar-band__copy {
    padding: 70px 22px;
  }

  .ar-band model-viewer {
    min-height: 420px;
  }

  .recipient-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

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

/* Preview-first editor */
.editor-page--preview-first {
  height: 100vh;
  overflow: hidden;
}

.editor-page--preview-first .site-header {
  display: none;
}

.preview-editor {
  background: #dce4ee;
  height: 100vh;
  overflow: hidden;
}

.preview-editor__topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  height: 66px;
  padding: 0 16px;
  position: relative;
  z-index: 60;
}

.preview-editor__identity {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.preview-editor__identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-mode-badge {
  background: #e9fff2;
  border: 1px solid #9bd8b2;
  color: #17693a;
  font-size: 0.64rem;
  font-weight: 850;
  padding: 5px 7px;
  text-transform: uppercase;
}

.preview-editor__topbar .save-state {
  color: #28794a;
  margin: 0;
  padding: 0 8px;
}

.preview-editor__commands {
  align-items: center;
  display: flex;
  gap: 8px;
}

.preview-editor__workspace {
  display: grid;
  grid-template-columns: minmax(520px, 3fr) minmax(390px, 2fr);
  height: calc(100vh - 66px);
}

.experience-preview-shell {
  align-items: center;
  background: #dce4ee;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.experience-preview-shell iframe {
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.2);
  height: min(790px, calc(100vh - 106px));
  width: min(430px, calc(100% - 20px));
}

.experience-preview-shell.is-guest-preview {
  inset: 0;
  padding: 0;
  position: fixed;
  z-index: 70;
}

.experience-preview-shell.is-guest-preview iframe {
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  width: 100%;
}

.guest-preview-exit {
  left: 18px;
  position: fixed;
  top: 16px;
  z-index: 80;
}

.editor-drawer {
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.editor-drawer__header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: 26px 30px 18px;
}

.editor-drawer__header h1 {
  font-size: 2rem;
}

.editor-drawer__close {
  display: none;
}

.editor-tabs {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px;
}

.editor-tabs button,
.mobile-editor-dock button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
}

.editor-tabs button {
  border-bottom: 3px solid transparent;
  min-height: 54px;
  padding: 8px 5px;
}

.editor-tabs button.is-active {
  border-color: var(--primary);
  color: var(--ink);
}

.editor-tabs svg,
.mobile-editor-dock svg {
  height: 18px;
  width: 18px;
}

.editor-drawer__content {
  overflow-y: auto;
  padding: 30px;
}

.editor-panel {
  display: none;
}

.editor-panel.is-active {
  display: block;
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading h2 {
  font-size: 1.55rem;
}

.panel-heading p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

.editor-drawer .upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-drawer .upload-tile {
  min-height: 132px;
  padding: 18px 8px;
}

.editor-drawer .compact-template-grid {
  grid-template-columns: 1fr;
}

.editor-drawer .compact-template {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 10px;
}

.editor-drawer .compact-template img {
  background: var(--c3);
  grid-row: 1 / 3;
  height: 78px;
  object-fit: contain;
  padding: 5px;
  width: 92px;
}

.editor-drawer .compact-template strong,
.editor-drawer .compact-template small {
  margin: 0;
  white-space: normal;
}

.editor-drawer .compact-template small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.editor-result-tools {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 28px;
}

.unlock-panel {
  align-items: center;
  background: #17202a;
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  margin-top: 34px;
  padding: 18px;
}

.unlock-panel__icon {
  align-items: center;
  background: var(--primary);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.unlock-panel p {
  color: #bec7d3;
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 4px;
}

.unlock-panel .button,
.unlock-panel .text-link {
  grid-column: 1 / -1;
  width: 100%;
}

.unlock-panel .text-link {
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
}

.mobile-editor-dock {
  display: none;
}

.claim-dialog {
  background: transparent;
  border: 0;
  max-width: 520px;
  padding: 0;
  width: calc(100% - 32px);
}

.claim-dialog::backdrop {
  background: rgba(17, 24, 39, 0.68);
}

.claim-dialog__panel {
  background: #fff;
  padding: 34px;
  position: relative;
}

.claim-dialog__panel h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.claim-dialog__panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.claim-dialog__close {
  position: absolute;
  right: 14px;
  top: 14px;
}

/* Shared sample and demo surfaces */
.sample-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.sample-toolbar nav {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.sample-toolbar nav a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 9px;
}

.sample-toolbar nav a.is-active {
  border-color: var(--primary);
  color: var(--ink);
}

.recipient-page--sample .experience-content {
  scroll-margin-top: 68px;
}

.demo-watermark {
  align-items: center;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  display: flex;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 14px;
  justify-content: space-between;
  left: 14px;
  padding: 9px 12px;
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 95;
}

.demo-watermark span {
  align-items: center;
  display: flex;
  gap: 7px;
}

.demo-watermark svg {
  height: 15px;
  width: 15px;
}

.demo-watermark a {
  color: #7de3ed;
}

.recipient-page--preview [data-edit-target] {
  cursor: pointer;
  position: relative;
}

.recipient-page--preview [data-edit-target]:hover {
  outline: 2px solid var(--c2);
  outline-offset: 7px;
}

.recipient-page--preview .recipient-footer {
  min-height: 30px;
}

@media (max-width: 980px) {
  .preview-editor__workspace {
    grid-template-columns: minmax(460px, 1.2fr) minmax(360px, 0.8fr);
  }

  .preview-editor__topbar .save-state {
    display: none;
  }
}

@media (max-width: 820px) {
  .editor-page--preview-first,
  .preview-editor {
    height: 100dvh;
  }

  .preview-editor__topbar {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    height: 60px;
    padding: 0 10px;
  }

  .preview-editor__identity .status,
  .test-mode-badge,
  .preview-editor__commands > .icon-button,
  #guestPreviewButton {
    display: none;
  }

  .preview-editor__commands .button {
    min-height: 40px;
    padding: 8px 11px;
  }

  .preview-editor__commands .button svg {
    display: none;
  }

  .preview-editor__workspace {
    display: block;
    height: calc(100dvh - 60px);
  }

  .experience-preview-shell {
    height: calc(100dvh - 126px);
    padding: 0;
  }

  .experience-preview-shell iframe {
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    width: 100%;
  }

  .experience-preview-shell.is-guest-preview {
    height: auto;
    inset: 0;
  }

  .guest-preview-exit {
    top: 14px;
  }

  .editor-drawer {
    border: 0;
    border-top: 1px solid var(--line);
    bottom: 66px;
    left: 0;
    max-height: min(72dvh, 720px);
    position: fixed;
    right: 0;
    transform: translateY(calc(100% + 12px));
    transition: transform 220ms ease;
    z-index: 55;
  }

  .editor-drawer.is-open {
    transform: translateY(0);
  }

  .editor-drawer__header {
    padding: 16px 18px 10px;
  }

  .editor-drawer__header h1 {
    font-size: 1.35rem;
  }

  .editor-drawer__close {
    display: inline-flex;
  }

  .editor-tabs {
    display: none;
  }

  .editor-drawer__content {
    padding: 18px 18px 28px;
  }

  .mobile-editor-dock {
    background: #fff;
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 66px;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 60;
  }

  .mobile-editor-dock button {
    flex-direction: column;
    gap: 3px;
  }

  .mobile-editor-dock button.is-active {
    color: var(--primary);
  }

  .sample-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sample-toolbar nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
  }

  .sample-toolbar nav a {
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .preview-editor__identity strong {
    font-size: 0.78rem;
  }

  .preview-editor__commands .button {
    font-size: 0.7rem;
  }

  .editor-drawer .form-grid,
  .editor-drawer .upload-grid {
    grid-template-columns: 1fr;
  }

  .editor-drawer .upload-tile {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 66px;
    padding: 12px;
    text-align: left;
  }

  .editor-drawer .upload-tile svg {
    margin: 0;
  }

  .sample-toolbar .brand > span:last-child {
    display: none;
  }

  .sample-toolbar .button {
    padding: 8px 10px;
  }
}

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