:root {
  --linen: #f4eee4;
  --off-white: #fbf8f2;
  --beige: #e7dccb;
  --taupe: #aa9985;
  --clay: #b66f56;
  --terracotta: #965642;
  --ink: #3f3a34;
  --muted: #7e7469;
  --line: rgba(91, 78, 63, 0.14);
  --shadow: 0 24px 65px rgba(91, 72, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--linen);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 255, 255, 0.88), transparent 30rem),
    var(--linen);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.app-shell {
  width: min(1540px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 26px 26px;
}

.site-header {
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--off-white);
  background: var(--clay);
  border-radius: 5px;
  position: relative;
  filter: drop-shadow(0 5px 9px rgba(150, 86, 66, 0.2));
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, var(--linen) 2px, transparent 2.4px) 0 0 / 8px 8px;
  pointer-events: none;
}

.brand-mark::after {
  transform: rotate(90deg);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.header-note {
  margin: 0;
  color: var(--taupe);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soft-button {
  border: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.72);
  border-radius: 999px;
  box-shadow: 0 7px 20px rgba(80, 65, 49, 0.06);
  cursor: pointer;
  transition: 180ms ease;
}

.soft-button:hover {
  transform: translateY(-1px);
  border-color: rgba(150, 86, 66, 0.3);
  background: var(--off-white);
}

.header-help {
  justify-self: end;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
}

.header-help span {
  margin-right: 6px;
  color: var(--clay);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--terracotta);
  background: rgba(251, 248, 242, 0.64);
}

.site-nav a.active::after {
  content: "";
  width: 4px;
  height: 4px;
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  background: var(--clay);
  border-radius: 50%;
}

.header-account {
  min-width: 112px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.header-sign-in,
.header-user {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
}

.header-notifications {
  width: 38px;
  height: 38px;
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
}

.header-notifications:hover,
.header-notifications.active {
  color: var(--terracotta);
}

.header-notifications svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  min-width: 19px;
  height: 19px;
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: white;
  background: #bd3f3f;
  border: 2px solid var(--linen);
  border-radius: 999px;
  box-shadow: 0 4px 9px rgba(116, 35, 35, 0.24);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.header-user {
  max-width: 150px;
  border: 1px solid var(--line);
  cursor: default;
}

.header-user[hidden],
.header-notifications[hidden],
.notification-badge[hidden],
.header-logout[hidden],
.header-sign-in[hidden] {
  display: none;
}

.user-avatar {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--off-white);
  background: var(--clay);
  border-radius: 50%;
  font-family: "Fraunces", serif;
  font-size: 11px;
}

.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-logout {
  padding: 5px 0;
  color: var(--taupe);
  background: transparent;
  border: 0;
  font-size: 9px;
  cursor: pointer;
}

.header-logout:hover {
  color: var(--terracotta);
}

.workspace {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(340px, 408px) minmax(0, 1fr);
  overflow: hidden;
  background: rgba(251, 248, 242, 0.84);
  border: 1px solid rgba(118, 99, 78, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.editor-panel {
  max-height: calc(100vh - 112px);
  padding: 42px 34px 34px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
  background: rgba(250, 246, 239, 0.74);
  border-right: 1px solid var(--line);
}

.editor-intro {
  padding-bottom: 29px;
}

.eyebrow {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--clay);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(37px, 3vw, 50px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.intro-copy {
  max-width: 320px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.control-section {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-chevron {
  display: none;
}

.mobile-only {
  display: none;
}

.step-number {
  color: var(--taupe);
  font-family: "Fraunces", serif;
  font-size: 11px;
  font-style: italic;
}

.status-pill {
  padding: 5px 9px;
  color: var(--taupe);
  background: rgba(231, 220, 203, 0.45);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.ready {
  color: #66745c;
  background: #e6ecde;
}

.upload-zone {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px dashed rgba(132, 111, 86, 0.33);
  border-radius: 18px;
  cursor: pointer;
  transition: 200ms ease;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--clay);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

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

.upload-icon {
  width: 54px;
  height: 54px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #e9d9c6, #d9c4ac);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(96, 76, 54, 0.08);
}

.sun-dot {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f8efe4;
  border-radius: 50%;
}

.mountain-line,
.mountain-line::after {
  width: 36px;
  height: 36px;
  position: absolute;
  left: 9px;
  bottom: -20px;
  transform: rotate(45deg);
  background: #9b7d65;
  border-radius: 5px;
}

.mountain-line::after {
  content: "";
  left: 16px;
  bottom: -12px;
  background: #b9997f;
}

.upload-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.upload-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.upload-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--taupe);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload-action {
  padding: 8px 11px;
  color: var(--terracotta);
  background: #f1e2d8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.style-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 35px 1fr 14px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: 180ms ease;
}

.style-option:hover {
  border-color: rgba(150, 86, 66, 0.35);
  background: rgba(255, 255, 255, 0.75);
}

.style-option.active {
  border-color: rgba(150, 86, 66, 0.55);
  box-shadow: 0 8px 22px rgba(120, 88, 63, 0.08), inset 0 0 0 1px rgba(150, 86, 66, 0.08);
}

.style-thumbnail,
.finish-swatch {
  background-size: cover;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(57, 46, 34, 0.08);
}

.style-thumbnail {
  width: 35px;
  height: 35px;
}

.vintage-swatch {
  background:
    linear-gradient(rgba(185, 136, 94, 0.13), rgba(185, 136, 94, 0.13)),
    url("/textures/linen_BaseColor.jpg") center / cover;
}

.photographic-swatch {
  background:
    linear-gradient(135deg, rgba(181, 56, 29, 0.72), rgba(18, 80, 90, 0.66)),
    url("/textures/grime_map.png") center / cover;
  background-blend-mode: color, overlay;
}

.style-option span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.style-option strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.style-option small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--taupe);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(110, 90, 68, 0.32);
  border-radius: 50%;
}

.style-option.active .radio-dot {
  border: 3px solid var(--off-white);
  background: var(--clay);
  box-shadow: 0 0 0 1px var(--clay);
}

.style-note {
  min-height: 28px;
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.text-button {
  padding: 4px 0;
  color: var(--terracotta);
  background: none;
  border: 0;
  font-size: 10px;
  cursor: pointer;
}

.field-label {
  margin: 0 2px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.character-count {
  color: var(--taupe);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  transition: 160ms ease;
}

input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(150, 86, 66, 0.48);
  box-shadow: 0 0 0 3px rgba(182, 111, 86, 0.08);
}

input {
  height: 40px;
  padding: 0 12px;
  font-size: 11px;
}

textarea {
  padding: 10px 12px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.45;
}

.handwritten-input {
  min-height: 92px;
  font-family: "Caveat", cursive;
  font-size: 18px;
  line-height: 1.18;
}

::placeholder {
  color: #b0a496;
  opacity: 1;
}

.address-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
  margin-top: 14px;
}

.address-grid label {
  min-width: 0;
}

.stamp-row {
  margin-top: 15px;
}

.stamp-picker {
  display: flex;
  gap: 8px;
}

.stamp-option {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: 160ms ease;
}

.stamp-option img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 2px 2px rgba(56, 43, 30, 0.12));
}

.stamp-option:hover,
.stamp-option.active {
  transform: translateY(-2px) rotate(-1deg);
  border-color: rgba(150, 86, 66, 0.52);
  background: #fffdf8;
  box-shadow: 0 6px 12px rgba(82, 62, 43, 0.08);
}

.save-row {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.save-button {
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  color: var(--off-white);
  background: var(--clay);
  border: 1px solid var(--terracotta);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(150, 86, 66, 0.2);
  font-weight: 600;
  cursor: pointer;
  transition: 180ms ease;
}

.save-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--terracotta);
  box-shadow: 0 12px 25px rgba(150, 86, 66, 0.27);
}

.save-button:focus-visible {
  outline: 3px solid rgba(182, 111, 86, 0.25);
  outline-offset: 3px;
}

.save-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.preview-panel {
  min-width: 0;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 25px 28px 18px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.86), transparent 43%),
    linear-gradient(145deg, #ece2d5 0%, #dfd1bf 100%);
}

.preview-topbar,
.preview-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-label span,
.privacy-dot {
  width: 6px;
  height: 6px;
  background: #8ea278;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(142, 162, 120, 0.12);
}

.view-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(85, 67, 47, 0.09);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.view-button {
  min-width: 58px;
  padding: 7px 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 9px;
  cursor: pointer;
}

.view-button.active {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 4px 12px rgba(74, 56, 37, 0.08);
}

.scene-wrap {
  min-width: 0;
  min-height: 490px;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.postcard-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  outline: 0;
}

.postcard-canvas:active {
  cursor: grabbing;
}

.scene-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
  background: rgba(232, 220, 204, 0.86);
  font-family: "Fraunces", serif;
  font-size: 14px;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.scene-loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-stamp {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--off-white);
  background: var(--clay);
  border-radius: 8px;
  animation: float 1.5s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-6px) rotate(5deg); }
}

.scene-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  transform: translateX(-50%);
  color: rgba(74, 65, 56, 0.66);
  background: rgba(251, 248, 242, 0.62);
  border: 1px solid rgba(91, 78, 63, 0.08);
  border-radius: 999px;
  font-size: 8px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.scene-hint b {
  color: rgba(74, 65, 56, 0.28);
  font-weight: 400;
}

.mouse-icon {
  width: 10px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.mouse-icon i {
  width: 1px;
  height: 3px;
  display: block;
  margin: 2px auto;
  background: currentColor;
}

.finish-card {
  position: absolute;
  left: 8px;
  top: 19px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px 8px 8px;
  background: rgba(251, 248, 242, 0.6);
  border: 1px solid rgba(91, 78, 63, 0.08);
  border-radius: 13px;
  backdrop-filter: blur(10px);
}

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

.finish-card > span:last-child {
  display: flex;
  flex-direction: column;
}

.finish-card small {
  color: var(--taupe);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finish-card strong {
  margin-top: 2px;
  font-family: "Fraunces", serif;
  font-size: 10px;
  font-weight: 500;
}

.scene-actions {
  position: absolute;
  right: 8px;
  top: 19px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.circle-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(251, 248, 242, 0.64);
  border: 1px solid rgba(91, 78, 63, 0.09);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 170ms ease;
}

.circle-button:hover {
  color: var(--terracotta);
  transform: translateY(-2px);
  background: rgba(251, 248, 242, 0.9);
}

.circle-button span {
  font-size: 17px;
}

.preview-footer {
  color: rgba(86, 75, 65, 0.66);
  font-size: 8px;
}

.preview-footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.privacy-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 11px 17px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  color: var(--off-white);
  background: rgba(63, 58, 52, 0.92);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(51, 42, 33, 0.2);
  font-size: 11px;
  transition: 220ms ease;
}

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

/* Shared static pages */
.page-shell {
  display: flex;
  flex-direction: column;
}

.primary-link,
.secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 180ms ease;
}

.primary-link {
  color: var(--off-white);
  background: var(--clay);
  border: 1px solid var(--terracotta);
  box-shadow: 0 10px 22px rgba(150, 86, 66, 0.2);
}

.primary-link:hover {
  transform: translateY(-2px);
  background: var(--terracotta);
  box-shadow: 0 13px 26px rgba(150, 86, 66, 0.25);
}

.secondary-link {
  color: var(--muted);
  background: rgba(251, 248, 242, 0.68);
  border: 1px solid var(--line);
}

.secondary-link:hover {
  color: var(--terracotta);
  border-color: rgba(150, 86, 66, 0.32);
  background: var(--off-white);
}

.landing-main {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(470px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  padding: clamp(50px, 7vw, 98px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.9), transparent 24rem),
    rgba(251, 248, 242, 0.76);
  border: 1px solid rgba(118, 99, 78, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.landing-copy {
  position: relative;
  z-index: 2;
}

.landing-copy h1 {
  max-width: 570px;
  font-size: clamp(55px, 6vw, 92px);
  line-height: 0.94;
}

.landing-intro {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.landing-footnote {
  margin: 26px 0 0;
  color: var(--taupe);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-art {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
}

.landing-art::before {
  content: "";
  width: 82%;
  aspect-ratio: 1;
  position: absolute;
  background: radial-gradient(circle, rgba(199, 177, 149, 0.25), transparent 68%);
  border-radius: 50%;
}

.hero-postcard {
  width: min(580px, 92%);
  position: relative;
  z-index: 1;
  padding: clamp(13px, 2vw, 21px);
  transform: rotate(2.2deg);
  background:
    linear-gradient(rgba(255, 253, 248, 0.78), rgba(248, 239, 226, 0.8)),
    url("/textures/paper_BaseColor.jpg") center / cover;
  border: 1px solid rgba(101, 79, 55, 0.14);
  box-shadow: 0 33px 65px rgba(83, 62, 43, 0.24);
}

.hero-photo-wrap {
  aspect-ratio: 1.5;
  position: relative;
  overflow: hidden;
  background: var(--beige);
  box-shadow: inset 0 0 0 1px rgba(64, 48, 34, 0.12);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.975);
  filter: sepia(0.12) saturate(0.9) contrast(0.94);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease;
}

.hero-photo.is-visible {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-photo.is-leaving {
  z-index: 2;
  opacity: 0;
  transform: scale(1.045);
  filter: sepia(0.12) saturate(0.82) contrast(0.92) blur(3px);
}

.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 3px 1px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stamp-wrap {
  width: clamp(72px, 9vw, 112px);
  position: absolute;
  z-index: 3;
  top: 4%;
  right: 0;
  transform: rotate(9deg);
}

.hero-stamp {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  filter: drop-shadow(0 10px 9px rgba(70, 50, 32, 0.17));
  transition: opacity 440ms ease;
}

.hero-stamp.is-visible {
  position: relative;
  opacity: 1;
}

.hero-note {
  position: absolute;
  z-index: 3;
  left: 2%;
  bottom: 10%;
  margin: 0;
  transform: rotate(-8deg);
  color: var(--terracotta);
  font-family: "Caveat", cursive;
  font-size: clamp(29px, 3.3vw, 48px);
}

.hero-demo-copy {
  transition:
    opacity 400ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 400ms ease;
}

.landing-art.is-copy-out .hero-demo-copy {
  opacity: 0;
  filter: blur(2px);
}

.landing-art.is-copy-out .hero-caption .hero-demo-copy {
  transform: translateY(8px);
}

.landing-art.is-copy-out .hero-note {
  transform: translateY(7px) rotate(-5deg) scale(0.98);
}

.landing-art.is-changing .hero-postcard {
  animation: hero-postcard-settle 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hero-postcard-settle {
  0% { transform: rotate(2.2deg) translateY(0) scale(1); }
  45% { transform: rotate(1.2deg) translateY(4px) scale(0.987); }
  100% { transform: rotate(2.2deg) translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .hero-stamp,
  .hero-demo-copy {
    transition-duration: 1ms;
  }

  .landing-art.is-changing .hero-postcard {
    animation: none;
  }
}

.login-main {
  min-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
  padding: 42px 20px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.9), transparent 27rem),
    linear-gradient(145deg, rgba(236, 226, 213, 0.7), rgba(223, 209, 191, 0.7));
  border: 1px solid rgba(118, 99, 78, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(470px, 100%);
  position: relative;
  padding: clamp(44px, 6vw, 68px);
  text-align: center;
  background:
    linear-gradient(rgba(251, 248, 242, 0.94), rgba(251, 248, 242, 0.94)),
    url("/textures/paper_BaseColor.jpg") center / cover;
  border: 1px solid rgba(101, 79, 55, 0.13);
  border-radius: 4px;
  box-shadow: 0 28px 60px rgba(83, 62, 43, 0.17);
}

.login-card::before,
.login-card::after {
  content: "";
  width: 46px;
  height: 18px;
  position: absolute;
  top: -8px;
  background: rgba(223, 205, 179, 0.66);
  box-shadow: 0 2px 4px rgba(72, 52, 34, 0.08);
}

.login-card::before { left: 30px; transform: rotate(-4deg); }
.login-card::after { right: 30px; transform: rotate(4deg); }

.login-stamp,
.loading-seal {
  width: 48px;
  height: 43px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--off-white);
  background: var(--clay);
  border-radius: 5px;
  box-shadow: 0 7px 17px rgba(150, 86, 66, 0.2);
}

.centered-eyebrow {
  justify-content: center;
}

.login-card h1 {
  font-size: clamp(43px, 5vw, 59px);
}

.login-card > p:not(.eyebrow) {
  max-width: 340px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.google-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding: 12px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(74, 61, 48, 0.16);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(80, 65, 49, 0.07);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 180ms ease;
}

.google-button:hover {
  transform: translateY(-2px);
  border-color: rgba(150, 86, 66, 0.35);
  box-shadow: 0 12px 24px rgba(80, 65, 49, 0.11);
}

.google-button svg {
  width: 19px;
  height: 19px;
}

.login-card .privacy-copy {
  margin-top: 17px;
  font-size: 9px;
}

.login-continue {
  margin-top: 30px;
}

.collection-main {
  min-height: calc(100vh - 112px);
  padding: clamp(34px, 5vw, 70px);
  background: rgba(251, 248, 242, 0.76);
  border: 1px solid rgba(118, 99, 78, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.collection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}

.collection-heading h1 {
  font-size: clamp(46px, 5vw, 72px);
}

.collection-heading > div > p:last-child {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.postcard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
  padding-top: 40px;
}

.collection-group {
  padding-top: 42px;
}

.collection-group + .collection-group {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.collection-subheading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.collection-subheading h2 {
  margin: 7px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
}

.collection-subheading > p {
  max-width: 360px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.collection-group .postcard-grid {
  padding-top: 26px;
}

.collection-group .collection-state {
  min-height: 240px;
}

.saved-postcard {
  min-width: 0;
  overflow: hidden;
  transform: rotate(var(--card-tilt));
  color: var(--ink);
  background:
    linear-gradient(rgba(251, 248, 242, 0.94), rgba(251, 248, 242, 0.94)),
    url("/textures/paper_BaseColor.jpg") center / cover;
  border: 1px solid rgba(101, 79, 55, 0.13);
  border-radius: 5px;
  box-shadow: 0 18px 37px rgba(83, 62, 43, 0.12);
  text-decoration: none;
  transition: 200ms ease;
}

.saved-postcard:hover {
  transform: translateY(-5px) rotate(0deg);
  box-shadow: 0 24px 44px rgba(83, 62, 43, 0.17);
}

.saved-postcard-photo {
  aspect-ratio: 1.48;
  margin: 12px 12px 0;
  overflow: hidden;
  background: var(--beige);
  max-height: 30vh;
}

.saved-postcard.is-portrait .saved-postcard-photo {
  aspect-ratio: 2 / 3;
  margin: 12px auto 12px auto;
}

.saved-postcard-photo img,
.saved-postcard-photo canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.saved-postcard-details {
  padding: 20px 21px 23px;
}

.saved-postcard-meta {
  margin: 0 0 8px;
  color: var(--taupe);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.saved-postcard-details h2,
.collection-state h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 500;
}

.saved-postcard-message {
  min-height: 47px;
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-family: "Caveat", cursive;
  font-size: 18px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.collection-state {
  grid-column: 1 / -1;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed rgba(132, 111, 86, 0.28);
  border-radius: 24px;
}

.collection-state p {
  max-width: 390px;
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* Notifications */
.notifications-main {
  min-height: calc(100vh - 112px);
}

.notifications-main .collection-heading .secondary-link {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.notifications-status {
  min-height: 18px;
  margin: 22px 0 0;
  color: var(--taupe);
  font-size: 10px;
  text-align: center;
}

.notification-list {
  width: min(880px, 100%);
  display: grid;
  gap: 12px;
  margin: 6px auto 0;
}

.notification-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 20px 22px;
  color: var(--ink);
  background: rgba(251, 248, 242, 0.82);
  border: 1px solid rgba(101, 79, 55, 0.13);
  border-radius: 17px;
  box-shadow: 0 10px 26px rgba(83, 62, 43, 0.06);
  text-decoration: none;
}

.notification-item.has-link {
  transition: 180ms ease;
}

.notification-item.has-link:hover {
  transform: translateY(-2px);
  border-color: rgba(150, 86, 66, 0.3);
  box-shadow: 0 14px 30px rgba(83, 62, 43, 0.1);
}

.notification-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--off-white);
  background: var(--clay);
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(150, 86, 66, 0.2);
  font-size: 14px;
}

.notification-content h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 500;
}

.notification-content p {
  margin: 6px 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.notification-content time {
  color: var(--taupe);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-arrow {
  padding-left: 8px;
  color: var(--clay);
  font-size: 18px;
  transition: transform 180ms ease;
}

.notification-item:hover .notification-arrow {
  transform: translateX(3px);
}

.notification-state {
  min-height: 280px;
}

/* Saved postcard viewer */
.viewer-main {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
}

.viewer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 6px 0;
}

.viewer-heading h1 {
  margin-top: 9px;
  font-size: clamp(38px, 4vw, 58px);
}

.viewer-heading > p {
  margin: 0 4px 7px 0;
  color: var(--taupe);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.viewer-heading-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 2px;
}

.viewer-heading-actions > p {
  margin: 0;
  color: var(--taupe);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.viewer-share-link {
  min-height: 42px;
  padding: 9px 17px;
}

.share-main {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.share-heading h1 {
  max-width: 920px;
}

.share-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 15px 18px;
  background: rgba(251, 248, 242, 0.76);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(91, 72, 51, 0.07);
}

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

.share-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.share-status a {
  color: var(--terracotta);
  font-weight: 600;
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 180ms ease;
}

.primary-action {
  color: var(--off-white);
  background: var(--clay);
  border: 1px solid var(--terracotta);
  box-shadow: 0 9px 20px rgba(150, 86, 66, 0.18);
}

.primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--terracotta);
}

.primary-action:disabled {
  opacity: 0.62;
  cursor: wait;
}

.secondary-action {
  color: var(--muted);
  background: var(--off-white);
  border: 1px solid var(--line);
}

.secondary-action:hover {
  color: var(--terracotta);
  border-color: rgba(150, 86, 66, 0.32);
}

.copy-fallback {
  width: 100%;
  display: grid;
  gap: 7px;
}

.copy-fallback[hidden] {
  display: none;
}

.copy-fallback label {
  color: var(--taupe);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-fallback input {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: 160ms ease;
}

.back-link:hover {
  color: var(--terracotta);
  transform: translateX(-2px);
}

.viewer-preview {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(118, 99, 78, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.reaction-capsule,
.postcard-reaction-display {
  position: absolute;
  z-index: 12;
  bottom: 58px;
  border: 1px solid rgba(118, 99, 78, 0.14);
  box-shadow: 0 12px 30px rgba(74, 56, 37, 0.16);
  backdrop-filter: blur(12px);
}

.reaction-capsule[hidden],
.postcard-reaction-display[hidden] {
  display: none;
}

.reaction-capsule {
  left: 50%;
  display: flex;
  gap: 3px;
  padding: 6px;
  background: rgba(255, 253, 249, 0.9);
  border-radius: 999px;
  transform: translateX(-50%);
}

.reaction-option {
  width: 39px;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-size: cover;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: 160ms ease;
}

.reaction-option:hover,
.reaction-option:focus-visible,
.reaction-option.selected {
  transform: translateY(-2px) scale(1.08);
}

.reaction-option:disabled {
  opacity: 0.55;
  cursor: wait;
}

.postcard-reaction-display {
  right: 28px;
  min-height: 38px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.postcard-reaction-display img {
  height: 30px;
}

.postcard-reaction-display:not(:disabled) {
  cursor: pointer;
}

.postcard-reaction-display:disabled {
  opacity: 1;
}

.viewer-scene {
  min-height: clamp(500px, 65vh, 760px);
}

.viewer-preview .preview-footer a {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  text-decoration: none;
}

.viewer-preview .preview-footer a:hover {
  color: var(--terracotta);
}

.scene-loading.viewer-state {
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  text-align: center;
}

.scene-loading.viewer-state .loading-stamp {
  margin-bottom: 8px;
}

.scene-loading.viewer-state > strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
}

.scene-loading.viewer-state > span:not(.loading-stamp) {
  max-width: 390px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  line-height: 1.6;
}

.scene-loading.viewer-state .primary-link {
  margin-top: 8px;
  font-family: "DM Sans", sans-serif;
}

@media (max-width: 980px) {
  .app-shell { padding: 0 16px 16px; }
  .workspace { grid-template-columns: 340px minmax(0, 1fr); }
  .editor-panel { padding: 35px 25px 28px; }
  .style-grid { grid-template-columns: 1fr; }
  .preview-panel { padding-inline: 17px; }
  .landing-main {
    grid-template-columns: minmax(290px, 0.85fr) minmax(360px, 1.15fr);
    gap: 30px;
    padding: 52px 42px;
  }
  .landing-art { min-height: 430px; }
  .postcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    height: auto;
    grid-template-columns: 1fr auto;
    padding: 14px 0;
    row-gap: 8px;
  }

  .header-note { display: none; }
  .header-help { grid-column: 2; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .header-account { min-width: 0; }
  .header-logout { display: none; }

  .landing-main {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 55px 32px 40px;
  }
  .landing-copy { text-align: center; }
  .landing-copy .eyebrow,
  .landing-actions { justify-content: center; }
  .landing-intro { margin-inline: auto; }
  .landing-art { min-height: 420px; }
  .hero-postcard { width: min(560px, 88%); }
  .login-main { min-height: calc(100vh - 126px); }
  .collection-main { padding: 40px 25px; }
  .collection-heading { align-items: flex-start; }
  .collection-subheading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .collection-subheading > p { text-align: left; }
  .viewer-main { min-height: auto; gap: 17px; }
  .viewer-heading { padding-inline: 4px; }
  .viewer-preview { min-height: 570px; border-radius: 24px; }
  .viewer-scene { min-height: 500px; }

  .workspace {
    display: flex;
    flex-direction: column-reverse;
    overflow: visible;
    border-radius: 24px;
  }

  .editor-panel {
    max-height: none;
    padding: 31px 22px;
    overflow: visible;
    border-right: 0;
  }

  .control-section {
    padding: 0;
  }

  .section-heading {
    min-height: 0;
    margin: 0;
    padding: 18px 2px;
    border-radius: 8px;
    cursor: pointer;
  }

  .section-heading:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
  }

  .mobile-only {
    display: block;
  }

  .step-chevron {
    width: 8px;
    height: 8px;
    display: block;
    margin-right: 4px;
    border-right: 1.5px solid var(--taupe);
    border-bottom: 1.5px solid var(--taupe);
    transform: rotate(45deg);
    transition: transform 220ms ease;
  }

  .step-content {
    display: grid;
    grid-template-rows: 0fr;
    margin-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition:
      grid-template-rows 280ms ease,
      margin-bottom 280ms ease,
      opacity 160ms ease,
      visibility 0s linear 280ms;
  }

  .step-content-inner {
    min-height: 0;
    overflow: hidden;
  }

  .control-section.is-active .step-content {
    grid-template-rows: 1fr;
    margin-bottom: 25px;
    opacity: 1;
    visibility: visible;
    transition:
      grid-template-rows 280ms ease,
      margin-bottom 280ms ease,
      opacity 220ms ease 60ms,
      visibility 0s;
  }

  .control-section.is-active .step-chevron {
    transform: rotate(225deg);
  }

  .preview-panel {
    min-height: 500px;
    padding: 18px 12px 13px;
    border-bottom: 1px solid var(--line);
    border-radius: 24px 24px 0 0;
  }

  .scene-wrap { min-height: 410px; }
  .preview-footer p:last-child { display: none; }
  .style-grid { grid-template-columns: 1fr 1fr; }
  .finish-card { top: 13px; left: 3px; }
  .scene-actions { top: 13px; right: 3px; }
  .preview-panel.viewer-preview { border-radius: 24px; }
  .scene-wrap.viewer-scene { min-height: 500px; }
}

@media (max-width: 440px) {
  .app-shell { padding: 0 9px 9px; }
  .brand { font-size: 18px; }
  .header-help { padding: 9px 12px; font-size: 10px; }
  .site-nav { gap: 1px; }
  .site-nav a { padding-inline: 8px; font-size: 10px; }
  .header-sign-in { min-height: 34px; padding: 7px 11px; }
  .header-notifications { width: 34px; height: 34px; }
  .header-user { padding: 5px; }
  .header-user .user-name { display: none; }
  .editor-panel { padding-inline: 18px; }
  h1 { font-size: 39px; }
  .address-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: 1fr; }
  .preview-panel { min-height: 445px; }
  .scene-wrap { min-height: 360px; }
  .finish-card strong { display: none; }
  .finish-card { padding-right: 8px; }
  .scene-hint { bottom: 11px; }
  .landing-main {
    padding: 43px 20px 26px;
    border-radius: 24px;
  }
  .landing-copy h1 { font-size: 49px; }
  .landing-intro { font-size: 13px; }
  .landing-actions { flex-direction: column; }
  .landing-actions a { width: 100%; }
  .landing-art { min-height: 310px; }
  .hero-note { left: 0; bottom: 5%; }
  .login-main { padding: 22px 10px; border-radius: 24px; }
  .login-card { padding: 45px 25px; }
  .collection-main { padding: 34px 18px; border-radius: 24px; }
  .collection-heading { flex-direction: column; }
  .collection-heading .primary-link { width: 100%; }
  .notifications-main .collection-heading .secondary-link { align-self: flex-start; }
  .notification-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 17px 14px; }
  .notification-mark { width: 36px; height: 36px; }
  .postcard-grid { grid-template-columns: 1fr; padding-top: 26px; }
  .collection-group { padding-top: 32px; }
  .collection-group + .collection-group { margin-top: 36px; }
  .viewer-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .viewer-heading > p { margin: 0; }
  .viewer-heading-actions { width: 100%; justify-content: space-between; }
  .share-toolbar { align-items: stretch; }
  .share-actions { width: 100%; }
  .share-actions button { flex: 1; }
  .viewer-preview { min-height: 500px; }
  .viewer-scene { min-height: 420px; }
  .viewer-preview .live-label { display: flex; }
  .viewer-preview .preview-footer { align-items: flex-start; }
  .viewer-preview .preview-footer a { max-width: 130px; text-align: right; }
}

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