:root {
  color-scheme: light;
  --paper: #f3efe7;
  --paper-deep: #e8e1d6;
  --surface: #fbf9f5;
  --surface-strong: #ffffff;
  --ink: #211d19;
  --ink-soft: #716961;
  --ink-faint: #a59d94;
  --line: rgba(40, 34, 29, 0.13);
  --line-strong: rgba(40, 34, 29, 0.24);
  --rail: #1d2421;
  --rail-soft: #29322e;
  --green: #315d55;
  --green-bright: #d5e4d3;
  --oxblood: #7a342e;
  --cream: #f2e5d0;
  --shadow-sm: 0 8px 30px rgba(31, 26, 22, 0.08);
  --shadow-lg: 0 28px 80px rgba(31, 26, 22, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --font-ui: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --font-display: Georgia, "Times New Roman", serif;
  --canvas-zoom: 0.82;
}

@font-face {
  font-family: "Chalk Craft";
  src: url("./assets/fonts/chalk-craft.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Playful Doodle";
  src: url("./assets/fonts/playful-doodle.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Sharp Gothic";
  src: url("./assets/fonts/sharp-gothic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Eternal Gold";
  src: url("./assets/fonts/eternal-gold.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

button:not(:disabled),
a {
  cursor: pointer;
}

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

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

:focus-visible {
  outline: 3px solid rgba(49, 93, 85, 0.38);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.global-rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 220px;
  flex-direction: column;
  padding: 25px 18px 20px;
  color: #f7f2e9;
  background:
    radial-gradient(circle at 25% 7%, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--rail);
}

.brand-lockup {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 4px 8px 18px;
  color: inherit;
  text-decoration: none;
}

.brand-lockup img {
  width: 158px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.global-nav {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.global-nav__item {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font-weight: 650;
  text-align: left;
  transition: 160ms ease;
}

.global-nav__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.global-nav__item.is-active {
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  background: var(--rail-soft);
  box-shadow: inset 3px 0 #b9d1bd;
}

.global-nav__icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
}

.global-nav__icon svg {
  width: 21px;
  height: 21px;
}

.rail-meta {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.rail-meta__label {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail-meta > strong {
  max-width: 145px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
}

.rail-account {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 6px 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.rail-account > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--rail);
  background: var(--green-bright);
  font-size: 11px;
  font-weight: 800;
}

.rail-account__copy {
  display: grid;
}

.rail-account__copy strong {
  font-size: 12px;
}

.rail-account__copy small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
}

.app-main {
  grid-column: 2;
  min-width: 0;
}

.context-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(24px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(18px);
}

.context-header__title {
  min-width: 0;
}

.context-header__title p {
  margin: 0 0 2px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.context-header__title h1 {
  overflow: hidden;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.quiet-button,
.primary-button,
.text-button,
.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.quiet-button {
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.46);
}

.quiet-button:hover {
  border-color: rgba(40, 34, 29, 0.35);
  background: #fff;
}

.quiet-button svg {
  width: 18px;
  height: 18px;
}

.quiet-button kbd {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--paper);
  font-family: inherit;
  font-size: 10px;
}

.primary-button {
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(49, 93, 85, 0.2);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #254d46;
}

.primary-button--light {
  color: var(--rail);
  background: #f4ebdc;
  box-shadow: none;
}

.primary-button--light:hover {
  background: #fff;
}

.text-button {
  gap: 10px;
  padding: 0 5px;
  background: transparent;
}

.text-button--light {
  color: rgba(255, 255, 255, 0.82);
}

.text-button--light:hover {
  color: #fff;
}

.icon-button {
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.icon-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.7);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.history-actions {
  display: flex;
  gap: 5px;
}

.save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cea743;
}

.section-view {
  display: none;
}

.section-view.is-active {
  display: block;
}

.store-view {
  padding: clamp(24px, 3vw, 52px);
}

.store-hero {
  position: relative;
  display: grid;
  min-height: 490px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #f9f4eb;
  background:
    radial-gradient(circle at 82% 20%, rgba(218, 235, 207, 0.13), transparent 27%),
    linear-gradient(135deg, #27352f 0%, #18221e 55%, #101614 100%);
  box-shadow: var(--shadow-lg);
}

.store-hero::before,
.store-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.store-hero::before {
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

.store-hero::after {
  right: -8%;
  bottom: -45%;
  width: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.018),
    0 0 0 90px rgba(255, 255, 255, 0.018);
}

.store-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 88px);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-hero h2 {
  margin: 25px 0 17px;
  max-width: 650px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 5.8vw, 86px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.mobile-break {
  display: none;
}

.store-hero__copy p {
  max-width: 530px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 33px;
}

.store-hero__specimen {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.store-hero__specimen span {
  margin-bottom: -2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.store-hero__specimen strong {
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(74px, 9.4vw, 150px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.82;
  overflow-wrap: anywhere;
  transform: rotate(-3deg);
}

.store-hero__specimen small {
  position: absolute;
  right: 45px;
  bottom: 35px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 38px 0 18px;
}

.search-field {
  display: flex;
  width: min(620px, 100%);
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.56);
  transition: border-color 150ms ease, background 150ms ease;
}

.search-field:focus-within {
  border-color: rgba(49, 93, 85, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 93, 85, 0.08);
}

.search-field svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--ink-soft);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-field input::placeholder {
  color: var(--ink-faint);
}

.search-field button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 20px;
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c9b73;
  box-shadow: 0 0 0 4px rgba(108, 155, 115, 0.12);
}

.category-tabs,
.asset-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-tabs {
  overflow-x: auto;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar,
.asset-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.category-tab:hover,
.category-tab.is-active {
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: 0 2px 12px rgba(32, 27, 23, 0.06);
}

.category-tab span {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 9px;
}

.store-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 38px 0 21px;
}

.store-section-heading p,
.panel-heading p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.08;
}

.store-section-heading > span {
  padding-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

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

.product-card {
  position: relative;
  min-width: 0;
}

.product-card__preview {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(47, 40, 35, 0.08);
  border-radius: 18px;
  background: #e8e1d4;
  box-shadow: 0 13px 32px rgba(40, 33, 28, 0.07);
  isolation: isolate;
}

.product-card__preview::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  background: rgba(16, 22, 20, 0.5);
  content: "";
  transition: opacity 180ms ease;
}

.product-card:hover .product-card__preview::after,
.product-card:focus-within .product-card__preview::after {
  opacity: 1;
}

.product-card__image {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.025);
}

.product-card__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.product-card__art strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4vw, 70px);
  font-weight: 400;
  line-height: 0.9;
}

.product-card__art--overlay {
  color: #493d34;
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(60, 49, 42, 0.06) 29px 30px),
    #e8daca;
}

.product-card__art--overlay span {
  position: absolute;
  font-family: var(--font-display);
  font-size: 100px;
  opacity: 0.35;
}

.product-card__art--overlay span:first-child {
  transform: translate(-42px, -24px) rotate(-12deg);
}

.product-card__art--overlay span:last-child {
  transform: translate(52px, 32px) rotate(9deg);
}

.product-card__art--paper {
  color: #8f7d6a;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(145deg, #ece4d5, #cfc0ac);
}

.product-card__art--midnight {
  color: #eadcc8;
  background:
    radial-gradient(circle at 70% 20%, rgba(111, 145, 128, 0.27), transparent 32%),
    linear-gradient(140deg, #2d3531, #111715);
}

.product-card__art--blush {
  color: #844a45;
  background: linear-gradient(145deg, #f0d7cd, #d9aaa0);
}

.product-card__art--frame {
  color: #3e483e;
  background: #e4e4d7;
}

.product-card__art--frame::before {
  position: absolute;
  inset: 27px;
  border: 2px solid currentColor;
  content: "";
}

.product-card__art--frame.gallery::before {
  inset: 20px;
  border-width: 7px;
  box-shadow: inset 0 0 0 2px #e4e4d7, inset 0 0 0 4px currentColor;
}

.product-card__art--frame.botanical::before {
  inset: 26px;
  border: 1px solid currentColor;
  border-radius: 45% 45% 12px 12px;
}

.product-card__badge {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(7px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__actions {
  position: absolute;
  z-index: 3;
  inset: auto 15px 15px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-card__actions--mobile {
  display: none;
}

.product-card:hover .product-card__actions,
.product-card:focus-within .product-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card__actions button {
  min-height: 42px;
  flex: 1;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.product-card__actions button:first-child {
  color: var(--rail);
  background: #f7f1e7;
}

.product-card__actions button:last-child {
  color: #fff;
  background: var(--green);
}

.product-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  padding: 15px 3px 2px;
}

.product-card__meta h3 {
  overflow: hidden;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__meta strong {
  font-size: 12px;
}

.product-card__meta p {
  grid-column: 1 / -1;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-results {
  padding: 70px 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
}

.empty-results strong {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
}

.empty-results p {
  color: var(--ink-soft);
}

.editor-view {
  height: calc(100vh - 82px);
  min-height: 620px;
}

.editor-shell {
  display: grid;
  height: 100%;
  min-width: 0;
  grid-template-columns: minmax(260px, 310px) minmax(410px, 1fr) minmax(270px, 310px);
}

.editor-panel {
  min-width: 0;
  overflow: auto;
  background: rgba(251, 249, 245, 0.7);
  scrollbar-color: rgba(33, 29, 25, 0.2) transparent;
  scrollbar-width: thin;
}

.asset-browser {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.inspector {
  border-left: 1px solid var(--line);
}

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

.panel-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 550;
  line-height: 1;
}

.panel-heading > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-heading--compact {
  align-items: center;
}

.editor-text-field {
  display: grid;
  gap: 7px;
  margin: 22px 0 16px;
}

.editor-text-field > span,
.control-label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.editor-text-field textarea {
  width: 100%;
  min-height: 71px;
  resize: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--surface-strong);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.25;
}

.editor-text-field textarea:focus {
  border-color: rgba(49, 93, 85, 0.6);
  box-shadow: 0 0 0 3px rgba(49, 93, 85, 0.08);
}

.asset-tabs {
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.asset-tab {
  min-height: 33px;
  flex: 0 0 auto;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.asset-tab.is-active {
  color: #fff;
  background: var(--rail);
}

.asset-list {
  display: grid;
  gap: 10px;
  padding: 15px 0 30px;
}

.asset-option {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.asset-option:hover {
  border-color: rgba(49, 93, 85, 0.45);
  background: #fff;
}

.asset-option.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(49, 93, 85, 0.12);
}

.asset-option__preview {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-option__preview.font-chalk {
  font-family: "Chalk Craft", sans-serif;
}

.asset-option__preview.font-doodle {
  font-family: "Playful Doodle", cursive;
}

.asset-option__preview.font-sharp {
  font-family: "Sharp Gothic", sans-serif;
}

.asset-option__preview.font-eternal {
  font-family: "Eternal Gold", serif;
  font-size: 39px;
}

.asset-option__preview.asset-swatch {
  height: 42px;
  border-radius: 7px;
}

.asset-option__preview.asset-swatch.background-paper {
  background: linear-gradient(145deg, #f4eee2, #d7cbb9);
}

.asset-option__preview.asset-swatch.background-midnight {
  background: linear-gradient(145deg, #3a4741, #121816);
}

.asset-option__preview.asset-swatch.background-blush {
  background: linear-gradient(145deg, #f1dcd3, #cd968d);
}

.asset-option__preview.frame-preview {
  display: grid;
  height: 52px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 13px;
  text-align: center;
}

.asset-option__preview.frame-preview.gallery {
  border-width: 4px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px currentColor;
}

.asset-option__preview.frame-preview.botanical {
  border-radius: 50% 50% 4px 4px;
}

.asset-option__preview.overlay-preview {
  letter-spacing: 0.15em;
}

.asset-option strong {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-option small {
  color: var(--ink-soft);
  font-size: 9px;
}

.canvas-stage {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.75), transparent 47%),
    var(--paper-deep);
}

.mobile-editor-tabs {
  display: none;
}

.stage-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 231, 0.72);
}

.stage-toolbar > div:first-child {
  display: grid;
}

.stage-toolbar__label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-toolbar strong {
  font-size: 11px;
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 3px;
}

.zoom-control button {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.65);
}

.zoom-control span {
  min-width: 44px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.canvas-workspace {
  display: grid;
  min-height: 0;
  overflow: auto;
  place-items: center;
  padding: 25px;
}

.design-canvas {
  position: relative;
  width: min(440px, calc((100vh - 250px) * 0.8));
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--ink);
  background: #eee3d2;
  box-shadow:
    0 22px 65px rgba(32, 27, 23, 0.2),
    0 0 0 1px rgba(45, 38, 32, 0.06);
  isolation: isolate;
  transform: scale(var(--canvas-zoom));
  transition: aspect-ratio 220ms ease, color 150ms ease, transform 150ms ease;
}

.design-canvas.aspect-square {
  width: min(480px, calc(100vh - 250px));
  aspect-ratio: 1;
}

.design-canvas.aspect-poster {
  width: min(405px, calc((100vh - 250px) * 0.7));
  aspect-ratio: 7 / 10;
}

.design-canvas.background-paper {
  background:
    radial-gradient(circle at 18% 11%, rgba(255, 255, 255, 0.75), transparent 25%),
    linear-gradient(145deg, #f2eadc, #d9cbb7);
}

.design-canvas.background-midnight {
  background:
    radial-gradient(circle at 75% 13%, rgba(107, 149, 128, 0.28), transparent 30%),
    linear-gradient(145deg, #334139, #111714);
}

.design-canvas.background-blush {
  background:
    radial-gradient(circle at 25% 16%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(145deg, #f1dbd2, #c98f87);
}

.canvas-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.canvas-frame {
  position: absolute;
  z-index: 3;
  inset: 7%;
  border: 1px solid currentColor;
  opacity: 0.72;
  pointer-events: none;
}

.canvas-frame.frame-gallery {
  inset: 5.5%;
  border-width: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    inset 0 0 0 3px currentColor;
}

.canvas-frame.frame-botanical {
  inset: 6%;
  border-radius: 48% 48% 8px 8px;
}

.canvas-frame.frame-botanical::before,
.canvas-frame.frame-botanical::after {
  position: absolute;
  bottom: -2px;
  width: 22%;
  height: 18%;
  border: 1px solid currentColor;
  border-radius: 100% 0;
  content: "";
}

.canvas-frame.frame-botanical::before {
  left: 8%;
  transform: rotate(15deg);
}

.canvas-frame.frame-botanical::after {
  right: 8%;
  transform: scaleX(-1) rotate(15deg);
}

.canvas-copy {
  position: absolute;
  z-index: 2;
  inset: 16% 12%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.canvas-copy.align-left {
  align-items: flex-start;
  text-align: left;
}

.canvas-copy.align-right {
  align-items: flex-end;
  text-align: right;
}

.canvas-kicker,
.canvas-caption {
  margin: 0;
  font-size: clamp(6px, 1vw, 9px);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.canvas-kicker {
  margin-bottom: 8%;
}

.canvas-caption {
  margin-top: 8%;
  opacity: 0.64;
}

.canvas-text {
  position: relative;
  z-index: 2;
  max-width: 100%;
  font-size: calc(var(--project-font-size, 92) * 0.055 * 1rem);
  font-weight: 400;
  letter-spacing: calc(var(--project-tracking, 2) * 0.02em);
  line-height: 0.85;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.canvas-text.font-chalk {
  font-family: "Chalk Craft", sans-serif;
  font-size: calc(var(--project-font-size, 92) * 0.045 * 1rem);
}

.canvas-text.font-doodle {
  font-family: "Playful Doodle", cursive;
  font-size: calc(var(--project-font-size, 92) * 0.045 * 1rem);
}

.canvas-text.font-sharp {
  font-family: "Sharp Gothic", sans-serif;
  font-size: calc(var(--project-font-size, 92) * 0.045 * 1rem);
}

.canvas-text.font-eternal {
  font-family: "Eternal Gold", serif;
}

.overlay-word {
  position: absolute;
  z-index: 1;
  inset: 20% 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  pointer-events: none;
}

.overlay-word span {
  display: inline-block;
  margin: 0 -1%;
  font-family: "Eternal Gold", serif;
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 400;
  line-height: 1;
}

.overlay-word span:nth-child(odd) {
  transform: translateY(-25%) rotate(-8deg);
}

.overlay-word span:nth-child(even) {
  transform: translateY(25%) rotate(10deg);
}

.overlay-word.overlay-gilded span {
  color: #9e713b;
}

.overlay-word.overlay-inked span {
  color: #302c28;
  font-family: "Sharp Gothic", sans-serif;
}

.quick-compare {
  display: flex;
  min-width: 0;
  min-height: 57px;
  align-items: center;
  gap: 11px;
  padding: 8px 18px;
  border-top: 1px solid var(--line);
  background: rgba(243, 239, 231, 0.72);
}

.quick-compare > span {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-compare > div {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-font {
  min-height: 35px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.quick-font.is-active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.quick-font.font-chalk {
  font-family: "Chalk Craft", sans-serif;
}

.quick-font.font-doodle {
  font-family: "Playful Doodle", cursive;
}

.quick-font.font-sharp {
  font-family: "Sharp Gothic", sans-serif;
}

.quick-font.font-eternal {
  font-family: "Eternal Gold", serif;
  font-size: 20px;
}

.inspector-section {
  padding: 24px 21px;
  border-bottom: 1px solid var(--line);
}

.selection-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(49, 93, 85, 0.1);
}

.range-control {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
}

.range-control output {
  color: var(--ink-soft);
  font-size: 10px;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: var(--green);
}

.control-group {
  display: grid;
  gap: 9px;
  margin-top: 23px;
}

.segmented-control,
.aspect-options {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
}

.segmented-control button,
.aspect-options button {
  min-height: 35px;
  flex: 1;
  border-radius: 7px;
  color: var(--ink-soft);
  background: transparent;
}

.segmented-control button.is-active,
.aspect-options button.is-active {
  color: #fff;
  background: var(--rail);
}

.segmented-control svg {
  width: 17px;
  height: 17px;
  margin: auto;
}

.aspect-options button {
  font-size: 10px;
  font-weight: 750;
}

.color-options {
  display: flex;
  gap: 9px;
}

.color-options button {
  position: relative;
  width: 35px;
  height: 35px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
}

.color-options button.is-active {
  box-shadow: 0 0 0 2px var(--green);
}

.layer-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.layer-item {
  display: grid;
  min-height: 48px;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.46);
}

.layer-item__icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  background: rgba(49, 93, 85, 0.09);
  font-family: var(--font-serif);
  font-weight: 700;
}

.layer-item__copy {
  display: grid;
  min-width: 0;
}

.layer-item__copy strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-item__copy small {
  color: var(--ink-soft);
  font-size: 8px;
}

.layer-visibility {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: transparent;
}

.layer-visibility svg {
  width: 16px;
  height: 16px;
}

.layer-item.is-hidden {
  opacity: 0.48;
}

.export-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border-radius: 13px;
  color: #fff;
  background: var(--rail);
}

.export-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--green-bright);
  background: rgba(255, 255, 255, 0.08);
}

.export-card__icon svg {
  width: 20px;
  height: 20px;
}

.export-card strong {
  font-family: var(--font-serif);
  font-size: 16px;
}

.export-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.export-card .primary-button {
  min-height: 39px;
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--rail);
  background: var(--green-bright);
  box-shadow: none;
}

.toast-region {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 330px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: #fff;
  background: var(--rail);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  font-weight: 650;
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.product-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(15, 18, 16, 0.42);
}

.product-dialog::backdrop {
  background: rgba(15, 18, 16, 0.65);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  font-size: 23px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.dialog-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--paper-deep);
}

.dialog-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.dialog-visual > div {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.dialog-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 65px 42px 40px;
}

.dialog-copy > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dialog-copy h2 {
  margin: 12px 0 5px;
  font-family: var(--font-serif);
  font-size: 43px;
  font-weight: 500;
  line-height: 1;
}

.dialog-copy .dialog-price {
  margin: 0 0 21px;
  font-size: 12px;
  font-weight: 800;
}

.dialog-copy .dialog-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.dialog-features {
  display: grid;
  width: 100%;
  gap: 9px;
  margin: 24px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.dialog-features span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 650;
}

.dialog-features span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.paypal-checkout {
  width: 100%;
  margin: 0 0 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.paypal-checkout__label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paypal-checkout__content {
  min-height: 42px;
}

.paypal-checkout__status,
.paypal-checkout__success p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.paypal-checkout__success {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
}

.paypal-checkout__success p {
  color: rgba(255, 255, 255, 0.7);
}

paypal-button {
  display: block;
  min-height: 42px;
}

.dialog-actions {
  display: grid;
  width: 100%;
  gap: 9px;
  margin-top: auto;
}

.dialog-actions a {
  min-height: 43px;
  text-decoration: none;
}

.dialog-actions .quiet-button {
  color: var(--ink);
}

@media (min-width: 1800px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .store-hero {
    min-height: 560px;
  }
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .global-rail {
    width: 84px;
    align-items: center;
    padding-inline: 12px;
  }

  .brand-lockup {
    width: 54px;
    justify-content: center;
    overflow: hidden;
    padding-inline: 0;
  }

  .brand-lockup img {
    width: 145px;
    max-width: none;
    object-position: left center;
    transform: translateX(53px);
  }

  .global-nav__item {
    width: 54px;
    justify-content: center;
    padding: 0;
  }

  .global-nav__item > span:last-child,
  .rail-meta__label,
  .rail-meta > strong,
  .rail-account__copy {
    display: none;
  }

  .rail-meta {
    justify-items: center;
    padding-inline: 0;
  }

  .app-main {
    grid-column: 2;
  }

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

  .store-hero__copy {
    padding: 50px;
  }

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

  .editor-shell {
    grid-template-columns: 265px minmax(390px, 1fr) 270px;
  }
}

@media (max-width: 980px) {
  .store-hero {
    grid-template-columns: 1fr;
  }

  .store-hero__copy {
    min-height: 450px;
  }

  .store-hero__specimen {
    min-height: 300px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .editor-shell {
    grid-template-columns: 245px minmax(370px, 1fr);
  }

  .asset-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .asset-tab {
    width: 100%;
    min-height: 37px;
  }

  .inspector {
    position: fixed;
    z-index: 22;
    top: 82px;
    right: 0;
    bottom: 0;
    width: 300px;
    display: none;
    box-shadow: -20px 0 60px rgba(33, 29, 25, 0.15);
  }

  body[data-mobile-panel="style"] .inspector,
  body[data-mobile-panel="layers"] .inspector,
  body[data-mobile-panel="export"] .inspector {
    display: block;
  }

  body[data-mobile-panel="style"] [data-inspector-section]:not([data-inspector-section="style"]),
  body[data-mobile-panel="layers"] [data-inspector-section]:not([data-inspector-section="layers"]),
  body[data-mobile-panel="export"] [data-inspector-section]:not([data-inspector-section="export"]) {
    display: none;
  }

  .mobile-editor-tabs {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    border-bottom: 1px solid var(--line);
    background: rgba(243, 239, 231, 0.9);
  }

  .mobile-editor-tabs button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    color: var(--ink-soft);
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-editor-tabs button.is-active {
    color: #fff;
    background: var(--rail);
  }
}

@media (max-width: 760px) {
  :root {
    --canvas-zoom: 0.76;
  }

  body {
    padding-bottom: 68px;
  }

  .quiet-button,
  .primary-button,
  .text-button {
    min-height: 44px;
  }

  .app-shell {
    display: block;
    min-height: calc(100vh - 68px);
  }

  .global-rail {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: block;
    width: 100%;
    height: 68px;
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    background: rgba(25, 33, 29, 0.97);
    backdrop-filter: blur(18px);
  }

  .brand-lockup,
  .rail-meta {
    display: none;
  }

  .global-nav {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin: 0;
  }

  .global-nav__item {
    width: 100%;
    min-height: 48px;
    flex-direction: column;
    gap: 1px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 10px;
  }

  .global-nav__item.is-active {
    box-shadow: inset 0 2px #b9d1bd;
  }

  .global-nav__item > span:last-child {
    display: block;
  }

  .global-nav__icon,
  .global-nav__icon svg {
    width: 20px;
    height: 20px;
  }

  .app-main {
    min-width: 0;
  }

  .context-header {
    min-height: 65px;
    gap: 9px;
    padding: 9px 14px;
  }

  .context-header__title p {
    font-size: 8px;
  }

  .context-header__title h1 {
    max-width: 58vw;
    font-size: 17px;
  }

  .context-actions .quiet-button {
    min-width: 42px;
    padding: 0 11px;
  }

  .context-actions--store .quiet-button {
    font-size: 0;
  }

  .context-actions--store .quiet-button svg {
    margin: 0;
  }

  .context-actions--store kbd,
  .history-actions,
  #saveButton {
    display: none;
  }

  #headerExportButton {
    min-height: 44px;
    padding: 0 13px;
    font-size: 11px;
  }

  .store-view {
    padding: 13px;
  }

  .store-hero {
    min-height: 0;
    border-radius: 19px;
  }

  .store-hero__copy {
    min-height: 420px;
    padding: 34px 25px 38px;
  }

  .eyebrow-pill {
    font-size: 7px;
  }

  .store-hero h2 {
    margin-top: 23px;
    font-size: clamp(42px, 13vw, 52px);
    line-height: 0.9;
  }

  .mobile-break {
    display: inline;
  }

  .store-hero__copy p {
    font-size: 13px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
  }

  .hero-actions .primary-button {
    width: 100%;
  }

  .store-hero__specimen {
    min-height: 250px;
    padding: 38px 20px;
  }

  .store-hero__specimen strong {
    font-size: clamp(67px, 27vw, 105px);
  }

  .store-hero__specimen small {
    right: 20px;
    bottom: 18px;
    font-size: 7px;
  }

  .store-toolbar {
    display: grid;
    gap: 12px;
    margin: 22px 0 13px;
  }

  .search-field {
    min-height: 48px;
  }

  .catalog-status {
    padding-left: 3px;
  }

  .category-tabs {
    margin-inline: -13px;
    padding-inline: 13px;
  }

  .category-tab {
    min-height: 44px;
  }

  .store-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin: 25px 0 15px;
  }

  .store-section-heading h2 {
    font-size: 30px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card__preview,
  .product-card__image {
    min-height: 330px;
  }

  .product-card__preview::after {
    opacity: 0;
  }

  .product-card__actions--overlay {
    display: none;
  }

  .product-card__actions--mobile {
    position: static;
    display: flex;
    grid-column: 1 / -1;
    opacity: 1;
    transform: none;
  }

  .product-card__meta {
    padding-top: 13px;
  }

  .product-card__actions--mobile button {
    min-height: 44px;
    border: 1px solid var(--line);
  }

  .product-card__actions--mobile button:first-child {
    background: rgba(255, 255, 255, 0.6);
  }

  .product-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 17px;
  }

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

  .dialog-visual,
  .dialog-visual img,
  .dialog-visual > div {
    min-height: 300px;
  }

  .dialog-copy {
    padding: 31px 23px 25px;
  }

  .dialog-copy h2 {
    padding-right: 35px;
    font-size: 36px;
  }

  .editor-view {
    height: calc(100dvh - 133px);
    min-height: 540px;
  }

  .editor-shell {
    position: relative;
    display: block;
    height: 100%;
  }

  .canvas-stage {
    height: 100%;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .stage-toolbar {
    min-height: 48px;
    padding: 6px 13px;
  }

  .stage-toolbar strong {
    font-size: 9px;
  }

  .canvas-workspace {
    padding: 14px;
  }

  .design-canvas,
  .design-canvas.aspect-square,
  .design-canvas.aspect-poster {
    width: min(86vw, calc((100dvh - 300px) * 0.8));
    min-width: 220px;
  }

  .design-canvas.aspect-square {
    width: min(86vw, calc(100dvh - 300px));
  }

  .design-canvas.aspect-poster {
    width: min(76vw, calc((100dvh - 300px) * 0.7));
  }

  .quick-compare {
    min-height: 50px;
    padding: 6px 11px;
  }

  .quick-compare > span {
    display: none;
  }

  .asset-browser,
  .inspector {
    position: fixed;
    z-index: 30;
    inset: 111px 8px 76px;
    display: none;
    width: auto;
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(251, 249, 245, 0.98);
    box-shadow: var(--shadow-lg);
  }

  body[data-mobile-panel="assets"] .asset-browser,
  body[data-mobile-panel="style"] .inspector,
  body[data-mobile-panel="layers"] .inspector,
  body[data-mobile-panel="export"] .inspector {
    display: block;
  }

  body[data-mobile-panel="style"] .inspector [data-inspector-section]:not([data-inspector-section="style"]),
  body[data-mobile-panel="layers"] .inspector [data-inspector-section]:not([data-inspector-section="layers"]),
  body[data-mobile-panel="export"] .inspector [data-inspector-section]:not([data-inspector-section="export"]) {
    display: none;
  }

  .mobile-editor-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 10px;
    scrollbar-width: none;
  }

  .mobile-editor-tabs button {
    min-width: 72px;
    min-height: 44px;
    flex: 1 0 auto;
  }

  .asset-tab {
    min-height: 44px;
  }

  .zoom-control button {
    width: 40px;
    height: 40px;
  }

  .segmented-control button,
  .aspect-options button {
    min-height: 44px;
  }

  .color-options button {
    width: 40px;
    height: 40px;
  }

  .dialog-close {
    width: 44px;
    height: 44px;
  }

  .asset-option {
    min-height: 102px;
  }

  .toast-region {
    right: 12px;
    bottom: 80px;
    left: 12px;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .context-header__title h1 {
    max-width: 49vw;
  }

  .store-hero__copy {
    padding-inline: 21px;
  }

  .mobile-editor-tabs button {
    min-width: 67px;
    padding-inline: 8px;
  }
}

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

/* Letterlays site frame: one bounded canvas with a persistent top switcher. */
.app-shell {
  display: block;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 231, 0.94);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  width: min(100% - 48px, 1440px);
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-inline: auto;
}

.site-header .brand-lockup {
  min-height: 0;
  padding: 0;
}

.site-header .brand-lockup img {
  width: 152px;
  max-height: 36px;
  filter: brightness(0);
}

.site-header .global-nav {
  display: flex;
  width: auto;
  gap: 5px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
}

.site-header .global-nav__item {
  width: auto;
  min-height: 38px;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.site-header .global-nav__item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.site-header .global-nav__item.is-active {
  color: #fff;
  background: var(--rail);
  box-shadow: none;
}

.site-header .global-nav__icon,
.site-header .global-nav__icon svg {
  width: 17px;
  height: 17px;
}

.app-main {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.context-header {
  position: static;
  min-height: 92px;
  padding: 20px 0 18px;
  background: transparent;
  backdrop-filter: none;
}

.context-header__title p,
.store-section-heading p,
.panel-heading p {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.context-header__title h1 {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.025em;
}

.store-view {
  padding-inline: 0;
}

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

.product-card__preview,
.product-card__image {
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.product-card__image {
  object-fit: cover;
}

.product-card__meta h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

@media (min-width: 1800px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .app-main,
  .site-header__inner {
    width: min(100% - 40px, 1120px);
  }

  .app-main {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .app-shell {
    min-height: 100vh;
  }

  .site-header__inner,
  .app-main {
    width: min(100% - 28px, 620px);
  }

  .site-header__inner {
    min-height: 62px;
    gap: 12px;
  }

  .site-header .brand-lockup img {
    width: 116px;
    max-height: 28px;
  }

  .site-header .global-nav {
    gap: 2px;
    padding: 3px;
  }

  .site-header .global-nav__item {
    min-height: 34px;
    gap: 5px;
    padding: 0 9px;
    font-size: 10px;
  }

  .site-header .global-nav__icon,
  .site-header .global-nav__icon svg {
    width: 14px;
    height: 14px;
  }

  .context-header {
    min-height: 74px;
    padding: 16px 0 12px;
  }

  .context-header__title h1 {
    max-width: 58vw;
    font-size: 19px;
  }

  .store-view {
    padding: 0;
  }

  .category-tabs {
    margin-inline: 0;
    padding-inline: 0;
  }

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

  .product-card__preview,
  .product-card__image {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}
