:root {
  color-scheme: light;
  --ink: oklch(20% 0.035 40);
  --muted: oklch(48% 0.026 45);
  --line: oklch(87% 0.018 63);
  --paper: oklch(95% 0.019 70);
  --panel: oklch(98% 0.012 72);
  --panel-alt: oklch(94% 0.018 72);
  --blue: oklch(25% 0.12 275);
  --blue-2: oklch(34% 0.16 275);
  --orange: oklch(67% 0.19 42);
  --orange-2: oklch(59% 0.15 47);
  --danger: oklch(45% 0.15 28);
  --success: oklch(48% 0.11 158);
  --shadow: 0 18px 42px rgba(24, 20, 18, 0.11);
  --shadow-soft: 0 10px 26px rgba(21, 27, 85, 0.08);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, oklch(97% 0.014 72), oklch(93% 0.021 70));
  overflow-x: hidden;
}

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

button,
a,
input,
select,
textarea {
  outline-color: var(--orange);
  outline-offset: 3px;
}

a {
  color: inherit;
}

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

.app-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in oklch, var(--panel), oklch(100% 0.01 74) 74%);
  min-width: 0;
}

.rail-brand {
  display: grid;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}

.rail-brand img {
  width: 132px;
  height: 48px;
  object-fit: contain;
}

.rail-brand span {
  font-size: 13px;
  font-weight: 880;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.rail-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.rail-link:hover,
.rail-link.is-active {
  border-color: color-mix(in oklch, var(--orange), var(--line) 44%);
  color: var(--ink);
  background: color-mix(in oklch, var(--orange), var(--panel) 91%);
}

.rail-status {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
}

.rail-status span {
  color: var(--success);
  font-size: 13px;
  font-weight: 860;
}

.rail-status small,
.muted-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-main {
  min-width: 0;
  padding: 18px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  margin: -18px -18px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--panel), oklch(100% 0.01 74) 74%);
  backdrop-filter: blur(16px);
}

.top-brand {
  display: none;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.top-brand img {
  width: 108px;
  height: 48px;
  object-fit: contain;
}

.top-title {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-topbar h1,
.surface h2 {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.12;
}

.app-topbar h1 {
  font-size: 24px;
}

.surface h2 {
  font-size: 21px;
}

.top-actions,
.inline-actions,
.tool-row,
.template-tabs,
menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: oklch(98% 0.01 74);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(21, 27, 85, 0.2);
}

.button-secondary,
.tool-button {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.button-secondary.accent {
  color: var(--orange-2);
  background: color-mix(in oklch, var(--orange), var(--panel) 89%);
  border-color: color-mix(in oklch, var(--orange), var(--line) 45%);
}

.tool-button.strong {
  color: oklch(98% 0.01 74);
  background: var(--blue);
  border-color: var(--blue);
}

.button-danger {
  color: var(--danger);
  background: color-mix(in oklch, var(--danger), var(--panel) 93%);
  border-color: color-mix(in oklch, var(--danger), var(--line) 66%);
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.view {
  display: none;
}

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

.surface,
.metric-card,
.catalog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.surface {
  padding: 16px;
  min-width: 0;
}

.surface + .surface,
.metric-grid + .surface {
  margin-top: 14px;
}

.studio-launch {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.launch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid color-mix(in oklch, var(--blue), var(--line) 68%);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 20%, color-mix(in oklch, var(--orange), transparent 73%), transparent 30%),
    linear-gradient(135deg, color-mix(in oklch, var(--blue), oklch(15% 0.03 40) 30%), var(--blue));
  color: oklch(98% 0.01 74);
  box-shadow: var(--shadow);
}

.launch-copy {
  align-self: center;
  max-width: 760px;
}

.launch-copy .eyebrow {
  color: color-mix(in oklch, var(--orange), oklch(98% 0.01 74) 28%);
}

.launch-copy h2 {
  max-width: 12ch;
  margin: 10px 0 0;
  font-size: 40px;
  line-height: .98;
  letter-spacing: -0.035em;
}

.launch-copy p:not(.eyebrow) {
  max-width: 64ch;
  margin: 14px 0 0;
  color: color-mix(in oklch, oklch(98% 0.01 74), transparent 14%);
  font-size: 15px;
  line-height: 1.55;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.launch-actions .button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: oklch(20% 0.035 40);
  box-shadow: 0 16px 30px rgba(255, 97, 38, .23);
}

.launch-actions .button-secondary {
  color: oklch(98% 0.01 74);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}

.launch-preview {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    color-mix(in oklch, var(--blue), oklch(8% 0.02 40) 26%);
}

.launch-preview img {
  position: absolute;
  inset: 6% 5% 10%;
  width: 90%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .24));
}

.preview-badge,
.preview-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 7px;
  background: rgba(20, 14, 10, .58);
  backdrop-filter: blur(12px);
}

.preview-badge {
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.preview-card {
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.preview-card span {
  color: rgba(255, 244, 238, .66);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-card strong {
  color: oklch(98% 0.01 74);
  font-size: 13px;
  line-height: 1.25;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-step,
.quick-start-card {
  text-align: left;
}

.flow-step {
  display: grid;
  gap: 7px;
  min-height: 134px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.flow-step:hover,
.flow-step.is-active {
  border-color: color-mix(in oklch, var(--orange), var(--line) 34%);
  background: color-mix(in oklch, var(--orange), var(--panel) 93%);
}

.flow-step span {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--orange-2);
  background: color-mix(in oklch, var(--orange), var(--panel) 88%);
  font-size: 11px;
  font-weight: 900;
}

.flow-step strong {
  font-size: 15px;
}

.flow-step small,
.quick-start-card small,
.readiness-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quick-start-card {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.quick-start-card:hover {
  border-color: color-mix(in oklch, var(--orange), var(--line) 42%);
  background: color-mix(in oklch, var(--orange), var(--panel) 94%);
}

.quick-start-card img {
  width: 100%;
  aspect-ratio: 1 / .82;
  border-radius: 6px;
  object-fit: cover;
  background: var(--panel-alt);
}

.quick-start-card span {
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quick-start-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.readiness-list div {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.readiness-list span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--orange), transparent 78%);
}

.readiness-list strong {
  font-size: 13px;
}

.surface-head,
.block-head,
.canvas-label-row,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.surface-head.compact {
  align-items: flex-start;
}

.surface-head p + h2 {
  margin-top: 4px;
}

.compact-input,
.search-box input,
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: color-mix(in oklch, var(--panel), oklch(100% 0.01 75) 45%);
}

textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

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

label span,
.control-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.metric-card strong {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.my-products-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.product-tile,
.catalog-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.catalog-card {
  grid-template-rows: auto 1fr auto auto auto;
}

.product-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.product-tile img,
.catalog-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 6px;
  object-fit: cover;
  background: var(--panel-alt);
}

.product-tile strong,
.catalog-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.product-tile span,
.catalog-card span,
.catalog-hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.catalog-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.catalog-card-meta span {
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in oklch, var(--panel-alt), var(--panel) 38%);
  font-size: 11px;
  font-weight: 780;
}

.catalog-card-meta strong {
  display: block;
  color: var(--blue);
  font-size: 13px;
}

.catalog-techniques {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-techniques span {
  width: auto;
  padding: 5px 8px;
  border: 1px solid color-mix(in oklch, var(--orange), var(--line) 54%);
  border-radius: 999px;
  color: var(--orange-2);
  background: color-mix(in oklch, var(--orange), var(--panel) 91%);
  font-size: 11px;
  font-weight: 850;
}

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

.tile-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.filter-chips {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.filter-chip.is-active {
  border-color: var(--orange);
  color: var(--orange-2);
  background: color-mix(in oklch, var(--orange), var(--panel) 90%);
}

.provider-stack {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.provider-card,
.publish-card {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.provider-card.is-active {
  border-color: color-mix(in oklch, var(--orange), var(--line) 44%);
  background: color-mix(in oklch, var(--orange), var(--panel) 93%);
}

.provider-card strong,
.publish-card strong {
  font-size: 14px;
}

.provider-card span,
.publish-card span,
.provider-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.creator-layout {
  display: grid;
  grid-template-columns: 270px minmax(540px, 1fr) 330px;
  gap: 12px;
}

.creator-left,
.creator-right {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow: auto;
  min-width: 0;
}

.creator-canvas-panel {
  min-width: 0;
  overflow: hidden;
}

.compact-product-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  width: 100%;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--panel), var(--panel-alt) 24%);
  cursor: pointer;
  text-align: left;
}

.product-card:hover,
.product-card.is-active {
  border-color: color-mix(in oklch, var(--orange), var(--line) 38%);
  background: color-mix(in oklch, var(--orange), var(--panel) 92%);
}

.product-card img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--panel-alt);
}

.product-card strong {
  display: block;
  margin: 2px 0 5px;
  font-size: 13px;
  line-height: 1.18;
}

.product-card small,
.product-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.variant-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.variant-chip.is-active {
  border-color: var(--orange);
  color: var(--orange-2);
  background: color-mix(in oklch, var(--orange), var(--panel) 90%);
}

.mini-action {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid color-mix(in oklch, var(--blue), var(--line) 70%);
  border-radius: 6px;
  color: var(--blue);
  background: color-mix(in oklch, var(--blue), var(--panel) 95%);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.swatch {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 5px color-mix(in oklch, var(--panel), transparent 28%);
}

.swatch.is-active {
  border-color: var(--orange);
  box-shadow:
    0 0 0 3px color-mix(in oklch, var(--orange), transparent 62%),
    inset 0 0 0 5px color-mix(in oklch, var(--panel), transparent 28%);
}

.creator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.template-tabs {
  overflow-x: auto;
}

.template-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.template-tab.is-active {
  border-color: var(--blue);
  color: var(--blue);
}

.canvas-label-row {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.canvas-label-row strong {
  color: var(--blue);
}

.mockup-canvas {
  position: relative;
  width: min(100%, 760px);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid color-mix(in oklch, var(--line), var(--blue) 10%);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(21, 27, 85, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 27, 85, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, oklch(97% 0.015 70), oklch(90% 0.018 76));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.product-base {
  position: absolute;
  inset: 8% 8% 12%;
  width: 84%;
  height: 78%;
  object-fit: contain;
  opacity: 0.42;
  mix-blend-mode: multiply;
  z-index: 1;
}

.fabric-tint {
  position: absolute;
  inset: 13% 20% 16%;
  border-radius: 34% 34% 22% 22%;
  background: var(--selected-color, #f8f3ec);
  box-shadow:
    inset 0 38px 80px rgba(255, 255, 255, 0.42),
    inset 0 -58px 90px rgba(24, 20, 18, 0.18),
    0 24px 44px rgba(24, 20, 18, 0.12);
  z-index: 0;
}

.fabric-shade {
  position: absolute;
  inset: 15% 22% 18%;
  border-radius: 32% 32% 22% 22%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 24%, rgba(255, 255, 255, 0.18) 52%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(25, 22, 20, 0.12));
  z-index: 2;
  pointer-events: none;
}

.print-guides {
  position: absolute;
  inset: 30% 29% 38%;
  z-index: 3;
  border: 2px dashed rgba(255, 97, 38, 0.72);
  border-radius: 8px;
  pointer-events: none;
}

.print-guides span:first-child {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 1px;
  height: calc(100% + 28px);
  background: rgba(255, 97, 38, 0.25);
}

.print-guides span:last-child {
  position: absolute;
  left: -14px;
  top: 50%;
  width: calc(100% + 28px);
  height: 1px;
  background: rgba(255, 97, 38, 0.25);
}

.layer-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.art-layer {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 34px;
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.art-layer.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.art-layer.is-active {
  outline: 2px solid var(--orange);
  outline-offset: 8px;
}

.art-layer.text-layer {
  color: var(--layer-color);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: 0 3px 0 rgba(248, 243, 236, 0.7);
  white-space: nowrap;
}

.art-layer.image-layer img {
  display: block;
  width: 150px;
  height: 92px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 8px 14px rgba(24, 20, 18, 0.18));
}

.canvas-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  color: oklch(98% 0.01 72);
  background: rgba(21, 27, 85, 0.78);
  backdrop-filter: blur(8px);
}

.canvas-meta span {
  font-size: 13px;
  font-weight: 780;
}

.canvas-meta strong {
  font-size: 18px;
}

.layer-limit,
.profit-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
}

.layer-limit span,
.profit-meter strong {
  color: var(--blue);
  font-size: 14px;
  font-weight: 880;
}

.layer-limit small,
.profit-meter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.layer-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.layer-row.is-active {
  border-color: var(--orange);
  background: color-mix(in oklch, var(--orange), var(--panel) 92%);
}

.layer-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.editor-strip,
.field-grid,
.action-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

input[type="color"] {
  padding: 4px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--orange);
}

.mockups-layout,
.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
}

.listing-layout {
  grid-template-columns: minmax(0, 1fr) 360px 300px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.mock-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
}

.mock-card.is-active {
  border-color: var(--orange);
}

.mock-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 6px;
  object-fit: cover;
}

.mock-card span {
  font-size: 13px;
  font-weight: 840;
}

.result-box {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
  font-size: 13px;
  line-height: 1.45;
}

.result-box a {
  color: var(--blue);
  font-weight: 850;
}

.info-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel-alt);
  font-size: 13px;
  line-height: 1.45;
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.price-card {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid color-mix(in oklch, var(--blue), var(--line) 74%);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--blue), var(--panel) 94%);
}

.price-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-card span {
  color: var(--muted);
  font-size: 13px;
}

.price-card strong {
  font-size: 15px;
}

.price-total {
  padding-top: 10px;
  border-top: 1px solid color-mix(in oklch, var(--blue), var(--line) 72%);
}

.price-total strong {
  color: var(--blue);
  font-size: 23px;
}

.minimum-warning {
  margin: 4px 0 0;
  color: var(--orange-2);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 780;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}

.check-row span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--panel-alt);
}

td strong {
  display: block;
  margin-bottom: 3px;
}

.status-select {
  min-width: 142px;
}

.integration-dialog {
  width: min(720px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.integration-dialog::backdrop {
  background: rgba(21, 27, 85, 0.28);
}

.integration-dialog form {
  display: grid;
  gap: 14px;
}

.dialog-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--panel-alt);
  cursor: pointer;
  font-weight: 820;
}

pre {
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: color-mix(in oklch, var(--blue), var(--ink) 28%);
  background: oklch(94% 0.016 72);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

menu {
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(420px, calc(100% - 36px));
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid color-mix(in oklch, var(--blue), var(--line) 65%);
  border-radius: var(--radius);
  color: oklch(98% 0.01 72);
  background: var(--blue);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-session="public-store"] {
  --ink: oklch(18% 0.08 272);
  --muted: oklch(34% 0.055 270);
  --line: oklch(77% 0.05 55);
  --store-top-surface: oklch(20% 0.12 272);
  --store-copper-bg: oklch(90% 0.055 55);
  --store-panel-bg: oklch(93% 0.045 58);
  --store-panel-strong: oklch(86% 0.058 55);
  --store-ivory-text: oklch(95% 0.032 72);
  --paper: var(--store-copper-bg);
  --panel: var(--store-panel-bg);
  --panel-alt: var(--store-panel-strong);
  --blue: oklch(20% 0.12 272);
  --blue-2: oklch(27% 0.14 272);
  --orange: oklch(64% 0.2 39);
  --orange-2: oklch(56% 0.18 40);
  --shadow: 0 24px 60px rgba(14, 18, 64, 0.18);
  --shadow-soft: 0 16px 36px rgba(14, 18, 64, 0.08);
  font-family: Manrope, Arial, sans-serif;
  background: var(--store-copper-bg);
}

body[data-session="public-store"] .app-shell {
  display: block;
}

body[data-session="public-store"] .app-rail,
body[data-session="public-store"] #newProductBtn,
body[data-session="public-store"] #openIntegration,
body[data-session="public-store"] .readiness-panel,
body[data-session="public-store"] .metric-grid,
body[data-session="public-store"] .product-library-panel {
  display: none !important;
}

body[data-session="public-store"] .app-main {
  padding: 0;
  background: var(--store-copper-bg);
}

body[data-session="public-store"] .app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 86px;
  margin: 0;
  padding: 14px clamp(16px, 5vw, 72px);
  border-bottom: 1px solid color-mix(in oklch, var(--orange), transparent 58%);
  background: var(--store-top-surface);
  box-shadow: 0 14px 34px rgba(14, 18, 64, 0.18);
}

body[data-session="public-store"] .top-brand {
  display: flex;
}

body[data-session="public-store"] .top-brand img {
  display: none;
}

body[data-session="public-store"] .top-brand::before {
  content: "META";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 42px;
  border: 1px solid color-mix(in oklch, var(--orange), transparent 32%);
  border-radius: 5px;
  color: var(--orange);
  background: color-mix(in oklch, var(--orange), var(--blue) 78%);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
}

body[data-session="public-store"] .top-brand span {
  font-family: Piazzolla, serif;
  font-size: 18px;
  color: var(--store-ivory-text);
}

body[data-session="public-store"] .top-title .eyebrow {
  color: var(--orange-2);
}

body[data-session="public-store"] .top-title h1 {
  color: var(--store-ivory-text);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 30px;
  letter-spacing: 0;
}

body[data-session="public-store"] .top-actions {
  margin-left: auto;
}

body[data-session="public-store"] .top-actions .button-secondary {
  min-height: 44px;
  border-color: color-mix(in oklch, var(--orange), transparent 45%);
  color: var(--store-ivory-text);
  background: color-mix(in oklch, var(--orange), var(--blue) 76%);
}

body[data-session="public-store"] .studio-launch {
  gap: clamp(16px, 2vw, 24px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 28px) clamp(12px, 4vw, 56px) clamp(28px, 4vw, 64px);
  background: var(--store-copper-bg);
}

body[data-session="public-store"] .launch-hero {
  min-height: 520px;
  align-items: stretch;
  grid-template-columns: minmax(0, .98fr) minmax(310px, .52fr);
  padding: clamp(22px, 4vw, 58px);
  border-color: transparent;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 66, .9), rgba(8, 14, 66, .65) 43%, rgba(8, 14, 66, .2) 72%),
    linear-gradient(180deg, rgba(8, 14, 66, .12), rgba(8, 14, 66, .52)),
    url("/assets/hero-luxury.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

body[data-session="public-store"] .launch-copy {
  align-self: end;
  max-width: 680px;
}

body[data-session="public-store"] .launch-copy .eyebrow {
  color: var(--orange);
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: .07em;
}

body[data-session="public-store"] .launch-copy h2 {
  max-width: 16.5ch;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(48px, 7vw, 82px);
  line-height: .92;
  letter-spacing: 0;
}

body[data-session="public-store"] .launch-copy p:not(.eyebrow) {
  max-width: 55ch;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

body[data-session="public-store"] .launch-actions {
  gap: 12px;
  margin-top: 28px;
}

body[data-session="public-store"] .launch-actions .button {
  min-height: 50px;
  min-width: 180px;
  border-radius: 7px;
}

body[data-session="public-store"] .launch-actions .button-primary,
body[data-session="public-store"] .button-primary,
body[data-session="public-store"] .tool-button.strong {
  color: var(--store-ivory-text);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 18px 32px rgba(226, 80, 18, .24);
}

body[data-session="public-store"] .launch-actions .button-secondary {
  color: oklch(98% 0.01 74);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .42);
}

body[data-session="public-store"] .launch-preview {
  align-self: end;
  min-height: 310px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--store-panel-bg), var(--orange) 10%);
  box-shadow: 0 20px 44px rgba(8, 14, 66, .24);
}

body[data-session="public-store"] .launch-preview img,
body[data-session="public-store"] .quick-start-card img {
  background: var(--panel-alt);
  mix-blend-mode: multiply;
}

body[data-session="public-store"] .preview-badge,
body[data-session="public-store"] .preview-card {
  background: rgba(8, 14, 66, .86);
}

body[data-session="public-store"] .flow-strip {
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--orange), var(--panel-alt) 64%);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

body[data-session="public-store"] .flow-step {
  min-height: 112px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-session="public-store"] .flow-step:last-child {
  border-right: 0;
}

body[data-session="public-store"] .flow-step:hover,
body[data-session="public-store"] .flow-step.is-active {
  background: color-mix(in oklch, var(--orange), var(--panel) 91%);
}

body[data-session="public-store"] .launch-grid {
  grid-template-columns: 1fr;
}

body[data-session="public-store"] .surface {
  border-color: color-mix(in oklch, var(--orange), var(--panel-alt) 64%);
  background: var(--panel);
}

body[data-session="public-store"] .surface h2,
body[data-session="public-store"] .quick-start-card strong {
  color: var(--blue);
}

body[data-session="public-store"] .surface h2 {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 34px;
  letter-spacing: 0;
}

body[data-session="public-store"] .quick-start-grid {
  gap: 14px;
}

body[data-session="public-store"] .quick-start-card {
  border-color: color-mix(in oklch, var(--orange), var(--panel-alt) 64%);
  background: color-mix(in oklch, var(--panel), var(--orange) 5%);
}

body[data-session="public-store"] .quick-start-card img {
  aspect-ratio: 1 / .86;
}

@media (max-width: 1320px) {
  .creator-layout,
  .listing-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .creator-right,
  .publish-panel {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
  }

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

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

  .app-rail {
    position: static;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .rail-nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar {
    display: none;
  }

  .rail-link {
    flex: 0 0 auto;
  }

  .rail-status {
    display: none;
  }

  .app-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .inline-actions,
  .tool-row {
    flex-wrap: wrap;
    width: 100%;
  }

  .top-actions .button {
    flex: 1 1 180px;
  }

  .metric-grid,
  .catalog-layout,
  .creator-layout,
  .listing-layout,
  .launch-hero,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .flow-strip,
  .quick-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-left {
    position: static;
    max-height: none;
  }

  .compact-product-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-card {
    flex: 0 0 250px;
  }
}

@media (max-width: 560px) {
  .rail-brand img {
    width: 116px;
  }

  .rail-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .top-actions .button,
  .tool-button {
    flex: 1 1 132px;
  }

  .top-actions,
  .launch-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions .button,
  .launch-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
    white-space: normal;
  }

  .app-main {
    padding: 12px;
  }

  .app-topbar {
    margin: -12px -12px 12px;
    padding: 12px;
  }

  .surface {
    padding: 12px;
  }

  .metric-grid,
  .field-grid.two,
  .flow-strip,
  .quick-start-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card-meta {
    grid-template-columns: 1fr;
  }

  .launch-hero {
    padding: 14px;
  }

  .launch-copy h2 {
    max-width: 11ch;
    font-size: 31px;
  }

  .launch-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 14px;
  }

  .launch-preview {
    min-height: 210px;
  }

  .mockup-canvas {
    width: 100%;
  }

  .art-layer.text-layer {
    font-size: 20px;
  }

  .art-layer.image-layer img {
    width: 118px;
    height: 76px;
  }

  .canvas-meta {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
  }
}

@media (max-width: 980px) {
  body[data-session="public-store"] .app-topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 78px;
    padding: 10px 14px;
  }

  body[data-session="public-store"] .top-brand img {
    width: 92px;
    height: 42px;
  }

  body[data-session="public-store"] .top-brand span,
  body[data-session="public-store"] .top-title .eyebrow {
    display: none;
  }

  body[data-session="public-store"] .top-title h1 {
    margin: 0;
    font-size: 24px;
  }

  body[data-session="public-store"] .top-actions {
    display: none;
  }

  body[data-session="public-store"] .studio-launch {
    padding: 0 0 34px;
  }

  body[data-session="public-store"] .launch-hero {
    min-height: 690px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 14px;
    background:
      linear-gradient(180deg, rgba(8, 14, 66, .42), rgba(8, 14, 66, .86)),
      url("/assets/hero-luxury.jpg") 47% center / cover no-repeat;
  }

  body[data-session="public-store"] .launch-copy {
    align-self: center;
  }

  body[data-session="public-store"] .launch-copy h2 {
    max-width: 11.5ch;
    font-size: 52px;
  }

  body[data-session="public-store"] .launch-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  body[data-session="public-store"] .launch-preview {
    min-height: 230px;
  }

  body[data-session="public-store"] .flow-strip {
    margin: 14px;
    grid-template-columns: 1fr;
  }

  body[data-session="public-store"] .flow-step {
    min-height: 82px;
    border-width: 0 0 1px;
  }

  body[data-session="public-store"] .quick-start-panel {
    margin: 14px;
  }
}

@media (max-width: 560px) {
  body[data-session="public-store"] .app-topbar {
    min-height: 70px;
  }

  body[data-session="public-store"] .top-title h1 {
    font-size: 21px;
  }

  body[data-session="public-store"] .launch-hero {
    min-height: 660px;
  }

  body[data-session="public-store"] .launch-actions {
    grid-template-columns: 1fr;
  }

  body[data-session="public-store"] .launch-actions .button {
    width: 100%;
  }
}
