@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --chrome: #ffffff;
  --ink: #1c1c1c;
  --muted: #737373;
  --line: #e8e8e8;
  --board: #ececea;
  --dot: #d6d6d2;
  --yellow: #ffd200;
  --select: #2563eb;
  --select-soft: #e8efff;
  --good: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --ui: "Geist", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--board);
  color: var(--ink);
  font: 13px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app {
  display: grid;
  grid-template: "top top top" 48px "layers canvas props" 1fr / 232px 1fr 264px;
  height: 100dvh;
}

.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  border-radius: 6px;
}

.project {
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.tools {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #525252;
  cursor: pointer;
}

.tool:hover {
  background: #f5f5f5;
}

.tool[aria-pressed="true"] {
  background: #ececec;
  color: var(--ink);
}

.tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.history {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 10px;
  margin-right: auto;
  border-left: 1px solid var(--line);
}

.history button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #404040;
  cursor: pointer;
}

.history button:hover:not(:disabled) {
  background: #f2f2f2;
}

.history button:disabled {
  opacity: 0.35;
  cursor: default;
}

.history svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-count {
  min-width: 36px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.join {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #181b15;
  font-weight: 600;
  cursor: pointer;
}

.join:hover {
  background: #f5c900;
}

@media (min-width: 1200px) and (max-width: 1279px) {
  .app {
    grid-template-columns: 200px 1fr 236px;
  }

  .project-label,
  .safe-ratio {
    display: none;
  }
}

.panel {
  overflow: auto;
  background: var(--chrome);
  padding: 12px 10px 20px;
}

.layers {
  grid-area: layers;
  border-right: 1px solid var(--line);
}

.properties {
  grid-area: props;
  border-left: 1px solid var(--line);
}

.panel-title {
  margin: 4px 6px 8px;
  font-size: 12px;
  font-weight: 600;
}

.layer-tree {
  display: grid;
  gap: 1px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.row:hover {
  background: #f5f5f5;
}

.row[aria-pressed="true"] {
  background: var(--select-soft);
  color: #1d3fa8;
}

.row.child {
  padding-left: 28px;
  color: #404040;
}

.row svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.7;
}

.row .kind {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.props {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 6px 18px;
}

.props dt {
  color: var(--muted);
}

.props dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -2px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}

.checks {
  display: grid;
  gap: 6px;
  margin: 0 6px 18px;
  padding: 0;
  list-style: none;
}

.sheet-tabs {
  display: none;
}

.row .link,
.row .dot {
  display: inline-grid;
  place-items: center;
  margin-left: auto;
}

.row .link + .kind,
.row .dot + .link {
  margin-left: 6px;
}

.row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a900;
}

.scope {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px 14px;
}

.scope-switch {
  display: flex;
  flex: 1;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scope-switch button,
.scope-reset,
.override button {
  border: 0;
  background: none;
  cursor: pointer;
}

.scope-switch button {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  color: var(--muted);
}

.scope-switch button[aria-pressed="true"] {
  background: #f2f2f2;
  color: var(--ink);
  font-weight: 500;
}

.scope-reset {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #525252;
}

.scope-reset svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.scope-reset:disabled {
  opacity: 0.35;
  cursor: default;
}

.override {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -6px 6px 16px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff8d6;
}

.override button {
  color: #1d4ed8;
  font-weight: 500;
}

.scope[hidden] {
  display: none;
}

.checks-scope {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
}

.check-group {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.text-field {
  display: grid;
  gap: 6px;
  margin: 0 6px 14px;
  color: var(--muted);
}

.text-field[hidden] {
  display: none;
}

.text-field textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.text-field textarea:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 0;
}

.layer:focus {
  cursor: text;
}

.resize-box {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.resize-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid var(--select);
  border-radius: 2px;
  background: #fff;
  pointer-events: auto;
}

.resize-handle[data-handle="nw"] {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}
.resize-handle[data-handle="se"] {
  left: 100%;
  top: 100%;
  cursor: nwse-resize;
}
.resize-handle[data-handle="ne"] {
  left: 100%;
  top: 0;
  cursor: nesw-resize;
}
.resize-handle[data-handle="sw"] {
  left: 0;
  top: 100%;
  cursor: nesw-resize;
}
.resize-handle[data-handle="e"] {
  left: 100%;
  top: 50%;
  cursor: ew-resize;
}
.resize-handle[data-handle="w"] {
  left: 0;
  top: 50%;
  cursor: ew-resize;
}

.checks-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.checks-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
}

.checks-count[data-state="warning"] {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  text-align: center;
}

.checks-count[data-state="clear"] {
  color: var(--good);
}

.check {
  display: grid;
  gap: 1px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-name {
  font-weight: 500;
}

.check-message,
.check-place {
  color: var(--muted);
  font-size: 12px;
}

button.check {
  width: 100%;
  background: var(--chrome);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

button.check:hover {
  border-color: #c9c9c9;
  background: #fafafa;
}

.canvas {
  grid-area: canvas;
  position: relative;
  overflow: clip;
  container-type: size;
  background-color: var(--board);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
}

.formats {
  display: none;
}

.board {
  --bottom: 164px;
  --s: min(
    (100cqh - 64px - var(--bottom) - var(--reserve-right, 0px)) / 1920,
    (100cqh - 64px - var(--bottom) - var(--reserve-left, 0px)) / 1350,
    (100cqh - 130px - var(--bottom)) / 1920,
    (100cqw - 150px) / 3240
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  height: 100%;
  padding: 40px 24px var(--bottom);
}

.slot {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.frame {
  --w: 1080;
  position: relative;
  width: calc(var(--w) * var(--s));
  height: calc(var(--h) * var(--s));
  margin: 0;
  background: #d9cfc4;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 32px -14px rgb(60 30 10 / 0.35);
  cursor: default;
  transition: outline-color 120ms;
  outline: 2px solid transparent;
  outline-offset: 0;
}

[data-frame="square"] {
  --h: 1080;
}

[data-frame="post"] {
  --h: 1350;
}

[data-frame="story"] {
  --h: 1920;
}

.frame.is-selected {
  outline-color: var(--select);
}

.frame-label {
  position: absolute;
  bottom: 100%;
  left: 0;
  padding-bottom: 6px;
  color: #6b6b6b;
  font-size: 12px;
  white-space: nowrap;
}

.frame.is-selected .frame-label {
  color: #1d4ed8;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.layer {
  position: absolute;
  left: calc(var(--x) * var(--s));
  top: calc(var(--y) * var(--s));
  width: max-content;
  max-width: calc(var(--max, 900) * var(--s));
  min-width: max(24px, calc(40 * var(--s)));
  min-height: calc(var(--fs) * var(--s));
  margin: 0;
  font-size: calc(var(--fs) * var(--s));
  cursor: move;
  outline: 1px solid transparent;
  outline-offset: calc(6 * var(--s));
  caret-color: var(--select);
  overflow-wrap: anywhere;
  touch-action: none;
}

.layer:hover {
  outline-color: rgb(37 99 235 / 0.55);
}

.layer.is-selected {
  outline: 1.5px solid var(--select);
}


.headline {
  font-family: "Bodoni Moda", "Didot", Georgia, serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.badge,
.cta,
.details {
  font-family: "Jost", "Futura", "Helvetica Neue", sans-serif;
}

.layer.badge {
  --fs: 30;
  padding: 0.25em 0.85em;
  border-radius: 999px;
  background: #a8573f;
  color: #fff8f2;
  font-weight: 500;
}

.layer.cta {
  --fs: 34;
  padding: 0.55em 1.4em;
  border-radius: 999px;
  background: #a8573f;
  color: #fff8f2;
  font-weight: 500;
}

.layer.details {
  --fs: 38;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  background: rgb(74 23 48 / 0.82);
  color: #fffaf2;
}

.layer.price {
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  min-width: 0;
  border-radius: 50%;
  background: #fbe9dc;
  color: #4a1730;
  font-family: "Bodoni Moda", Georgia, serif;
}

[data-layer="square-badge"] {
  --x: 90;
  --y: 140;
}

[data-layer="square-price"] {
  --x: 860;
  --y: 860;
  --fs: 54;
}

[data-layer="square-headline"] {
  --x: 86;
  --y: 210;
  --fs: 84;
  --max: 520;
  color: #2b1710;
}

[data-layer="square-details"] {
  --x: 90;
  --y: 410;
}

[data-layer="square-button"] {
  --x: 90;
  --y: 500;
}

[data-layer="post-badge"] {
  --x: 92;
  --y: 1050;
}

[data-layer="post-headline"] {
  --x: 90;
  --y: 150;
  --fs: 104;
  --max: 680;
  color: #fffaf2;
  text-shadow: 0 1px 24px rgb(120 50 20 / 0.25);
}

[data-layer="post-details"] {
  --x: 94;
  --y: 372;
}

[data-layer="post-price"] {
  --x: 82;
  --y: 450;
  --fs: 64;
}

[data-layer="post-button"] {
  --x: 92;
  --y: 1120;
}

[data-layer="story-badge"] {
  --x: 478;
  --y: 100;
}

[data-layer="story-price"] {
  --x: 820;
  --y: 800;
  --fs: 64;
}

[data-layer="story-headline"] {
  --x: 0;
  --y: 175;
  --fs: 112;
  width: 100%;
  max-width: none;
  color: #3b1527;
  text-align: center;
}

[data-layer="story-details"] {
  --x: 333;
  --y: 1250;
}

.layer[data-layer="story-button"] {
  --x: 317;
  --y: 1350;
  --fs: 48;
}


.note {
  position: relative;
  max-width: 270px;
  margin: 0;
  padding: 9px 12px 9px 38px;
  border-radius: 12px;
  background: var(--chrome);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 6px 18px -8px rgb(0 0 0 / 0.25);
  font-size: 12.5px;
  line-height: 1.45;
}

.note::before {
  content: "O" / "";
  position: absolute;
  top: 9px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 600;
}

.note[data-done] {
  background: #f0fbf3;
}

.status:empty {
  display: none;
}

.status {
  max-width: 270px;
  margin: 0;
  font-weight: 500;
}

.status[data-state="done"] {
  color: var(--good);
}

.status[data-state="error"] {
  color: var(--bad);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.layer.is-linked-peer {
  outline: 1.5px dashed var(--select);
}

.layer.is-dragging {
  cursor: grabbing;
}

.board.is-camera {
  transform-origin: 0 0;
}

.board {
  position: relative;
}

.slot {
  z-index: 1;
}

.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.connector {
  fill: none;
  stroke: var(--select);
}

.connector-end {
  fill: var(--select);
}

.canvas.is-panning {
  cursor: grabbing;
}

.guide {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: 300px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.5);
}

.guide[hidden] {
  display: none;
}

.guide-step {
  margin: 0;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
}

.guide-text {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.guide-skip {
  grid-row: 1;
  grid-column: 2;
  padding: 0;
  border: 0;
  background: none;
  color: #bdbdbd;
  cursor: pointer;
}

.zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chrome);
  box-shadow: 0 6px 20px -8px rgb(0 0 0 / 0.25);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.zoom button {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
}

.zoom button:hover {
  background: #f2f2f2;
  color: var(--ink);
}

.zoom-level {
  min-width: 44px;
  text-align: center;
}

.snap-line {
  position: absolute;
  z-index: 3;
  background: var(--select);
  pointer-events: none;
}

.snap-line[data-axis="x"] {
  top: 0;
  bottom: 0;
  width: 1px;
}

.snap-line[data-axis="y"] {
  left: 0;
  right: 0;
  height: 1px;
}

.frame-label {
  cursor: grab;
  user-select: none;
}

.slot.is-dragging .frame-label {
  cursor: grabbing;
}

.frame-label {
  padding-bottom: calc(6px / var(--zoom, 1));
  font-size: calc(12px / var(--zoom, 1));
}

.frame.is-selected {
  outline-width: calc(2px / var(--zoom, 1));
}

.resize-handle {
  width: calc(9px / var(--zoom, 1));
  height: calc(9px / var(--zoom, 1));
  margin: calc(-5px / var(--zoom, 1)) 0 0 calc(-5px / var(--zoom, 1));
  border-width: calc(1.5px / var(--zoom, 1));
}

.slot > .note {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 220px;
  max-width: 300px;
  margin-top: 14px;
}

@container (max-width: 899px) {
  .slot > .note {
    display: none;
  }

  .board {
    --bottom: 56px;
  }
}

.resize-handle {
  margin: 0;
}

.resize-handle[data-handle="nw"] { transform: translate(-100%, -100%); }
.resize-handle[data-handle="ne"] { transform: translate(0, -100%); }
.resize-handle[data-handle="sw"] { transform: translate(-100%, 0); }
.resize-handle[data-handle="e"] { transform: translate(0, -50%); }
.resize-handle[data-handle="w"] { transform: translate(-100%, -50%); }

.project-switch {
  position: relative;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 6px;
  padding: 2px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.project:hover,
.project[aria-expanded="true"] {
  background: #f2f2f2;
}

.project-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.project-name {
  font-weight: 500;
}

.project svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.project-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  z-index: 20;
  display: grid;
  gap: 2px;
  width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chrome);
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.3);
}

.project-menu[hidden] {
  display: none;
}

.project-menu-title {
  margin: 0;
  font-weight: 600;
}

.project-menu-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.project-menu button {
  display: grid;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.project-menu button:hover,
.project-menu button[aria-pressed="true"] {
  background: var(--select-soft);
}

.project-meta {
  color: var(--muted);
  font-size: 12px;
}

.safe-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  color: #404040;
  cursor: pointer;
}

.safe-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--ink);
}

.safe-ratio {
  padding: 2px 7px;
  border-radius: 6px;
  background: #f2f2f2;
  color: #5c5c5c;
  font-size: 12px;
}

.safe-zone {
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--h) - var(--w)) / 2 * var(--s));
  height: calc(var(--w) * var(--s));
  z-index: 2;
  border-block: 1.5px dashed rgb(255 255 255 / 0.9);
  box-shadow: inset 0 1px 0 rgb(0 0 0 / 0.25), inset 0 -1px 0 rgb(0 0 0 / 0.25);
  pointer-events: none;
}

body[data-safe-zone="off"] .safe-zone {
  display: none;
}

.waitlist-dialog {
  width: min(100% - 32px, 480px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--chrome);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.45);
}

.waitlist-dialog::backdrop {
  background: rgb(24 27 21 / 0.45);
}

.waitlist-dialog h2 {
  margin: 4px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.waitlist-dialog p {
  margin: 0 0 12px;
  color: #404040;
}

.dialog-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: #181b15 !important;
  font-size: 12px;
  font-weight: 600;
}

.dialog-points {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #404040;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.dialog-close:hover {
  background: #f2f2f2;
}

.dialog-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.dialog-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.dialog-row {
  display: flex;
  gap: 8px;
}

.dialog-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dialog-row button {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 600;
  cursor: pointer;
}

.waitlist-dialog .status {
  margin: 10px 0 0;
}

@media (max-width: 520px) {
  .dialog-row {
    flex-direction: column;
  }
}

.board[data-project="features"],
.board[data-project="how"] {
  --s: min(
    (100cqh - 64px - var(--bottom) - var(--reserve-left, 0px)) / 1080,
    (100cqh - 130px - var(--bottom)) / 1080,
    (100cqw - 150px) / 1920
  );
}

[data-frame="features"],
[data-frame="how"] {
  --w: 1920;
  --h: 1080;
}

[data-layer="features-title"] {
  --x: 110;
  --y: 110;
  --fs: 104;
  --max: 1400;
  color: #2b1710;
}

.layer.tag {
  --fs: 30;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  color: #fff;
  font-family: "Jost", "Futura", sans-serif;
  font-weight: 500;
}

.tag-now {
  background: #2f6b45;
}

.tag-next {
  background: #a8573f;
}

.tag-later {
  background: #5b4a8a;
}

.item-later::before {
  background: #5b4a8a;
}

.layer.item {
  --fs: 32;
  --max: 580;
  padding-left: 1.1em;
  color: #2b1710;
  font-family: "Jost", "Futura", sans-serif;
}

.layer.item::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
}

.item-now::before {
  background: #2f6b45;
}

.item-next::before {
  background: #a8573f;
}

[data-layer="features-now"] {
  --x: 110;
  --y: 300;
}

[data-layer="features-canvas"] { --x: 110; --y: 380; }
[data-layer="features-type"] { --x: 110; --y: 472; }
[data-layer="features-shapes"] { --x: 110; --y: 564; }
[data-layer="features-safe"] { --x: 110; --y: 656; }
[data-layer="features-export"] { --x: 110; --y: 748; }
[data-layer="features-saved"] { --x: 110; --y: 840; }

[data-layer="features-next"] {
  --x: 720;
  --y: 300;
}

[data-layer="features-agent"] { --x: 720; --y: 380; }
[data-layer="features-scenes"] { --x: 720; --y: 472; }
[data-layer="features-repair"] { --x: 720; --y: 564; }

[data-layer="features-later"] {
  --x: 1330;
  --y: 300;
}

[data-layer="features-kits"] { --x: 1330; --y: 380; }
[data-layer="features-templates"] { --x: 1330; --y: 472; }
[data-layer="features-bulk"] { --x: 1330; --y: 564; }
[data-layer="features-review"] { --x: 1330; --y: 656; }
[data-layer="features-meta"] { --x: 1330; --y: 748; }

.slot[hidden] {
  display: none;
}

.layer.shape {
  width: calc(var(--sw) * var(--s));
  height: calc(var(--sh) * var(--s));
  max-width: none;
  min-width: 0;
  border-radius: calc(28 * var(--s));
  background: #a8573f;
}

.layer.picture {
  width: calc(var(--sw) * var(--s));
  height: auto;
  max-width: none;
  min-width: 0;
}

.layer.added-text {
  --fs: 64;
  color: #2b1710;
  font-family: "Jost", "Futura", sans-serif;
  font-weight: 500;
}

body[data-tool]:not([data-tool="select"]) .canvas,
body[data-tool]:not([data-tool="select"]) .layer {
  cursor: crosshair;
}

.intro {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: min(460px, max(300px, 100cqw - 360px));
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--chrome);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -12px rgb(0 0 0 / 0.3);
}

.intro p {
  margin: 0;
  font-size: 13px;
}

.intro-tag {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: #181b15;
  font-size: 11.5px;
  font-weight: 600;
}

.intro-actions {
  display: flex;
  flex: none;
  gap: 6px;
}

.intro button {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.intro button:hover {
  background: #333;
}

body:not([data-project="how"]) [data-intro="how"],
body:not([data-project="features"]) [data-intro="features"],
body[data-project]:not([data-project="velune"]) [data-intro="velune"] {
  display: none;
}

.intro button.secondary {
  background: #f2f2f2;
  color: var(--ink);
}

.intro button.secondary:hover {
  background: #e6e6e6;
}

.intro-pitch {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px 12px;
  max-width: min(560px, max(320px, 100cqw - 360px));
  padding: 16px 18px;
}

.intro-pitch .intro-tag {
  grid-column: 1 / -1;
  justify-self: start;
}

.intro-pitch h1 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.intro-pitch p {
  grid-column: 1 / -1;
  color: #404040;
  line-height: 1.5;
}

.intro-pitch .intro-actions {
  grid-column: 1 / -1;
}

h1.intro-tag {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
}

.intro {
  padding-right: 48px;
}

.intro .intro-collapse {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.intro .intro-collapse:hover {
  background: #f2f2f2;
  color: var(--ink);
}

.intro-collapse svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro .icon-expand,
.intro[data-collapsed] .icon-collapse {
  display: none;
}

.intro[data-collapsed] .icon-expand {
  display: inline;
}

.intro[data-collapsed] > p,
.intro[data-collapsed] .intro-actions {
  display: none;
}

.intro-pitch .intro-actions {
  justify-self: stretch;
}

.intro .intro-join {
  margin-left: auto;
  background: var(--yellow);
  color: #181b15;
  font-weight: 600;
}

.intro .intro-join:hover {
  background: #f5c900;
}

[data-layer="how-title"] {
  --x: 110;
  --y: 120;
  --fs: 104;
  --max: 1500;
  color: #2b1710;
}

.layer.step {
  --fs: 34;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: #2b1710;
  color: #fff8f2;
  font-family: "Jost", "Futura", sans-serif;
  font-weight: 500;
}

.layer.step-text {
  --fs: 32;
  --max: 300;
  color: #2b1710;
  font-family: "Jost", "Futura", sans-serif;
}

[data-layer="how-step-1"] { --x: 110; --y: 360; }
[data-layer="how-step-2"] { --x: 450; --y: 360; }
[data-layer="how-step-3"] { --x: 790; --y: 360; }
[data-layer="how-step-4"] { --x: 1130; --y: 360; }
[data-layer="how-step-5"] { --x: 1470; --y: 360; }
[data-layer="how-text-1"] { --x: 110; --y: 460; }
[data-layer="how-text-2"] { --x: 450; --y: 460; }
[data-layer="how-text-3"] { --x: 790; --y: 460; }
[data-layer="how-text-4"] { --x: 1130; --y: 460; }
[data-layer="how-text-5"] { --x: 1470; --y: 460; }

.layer[data-layer="how-note"] {
  --x: 110;
  --y: 820;
  --max: 1400;
}

body[data-tool]:not([data-tool="select"]) .frame,
body[data-tool]:not([data-tool="select"]) .scene {
  cursor: crosshair;
}

body[data-project="how"] .safe-toggle,
body[data-project="features"] .safe-toggle {
  display: none;
}

.board[data-project="privacy"] {
  --s: min(
    (100cqh - 64px - var(--bottom) - var(--reserve-left, 0px)) / 1080,
    (100cqh - 130px - var(--bottom)) / 1080,
    (100cqw - 150px) / 1920
  );
}

[data-frame="privacy"] {
  --w: 1920;
  --h: 1080;
}

[data-locked] .layer,
.layer[data-locked] {
  cursor: default;
}

[data-layer="privacy-title"] {
  --x: 110;
  --y: 90;
  --fs: 96;
  --max: 1500;
  color: #2b1710;
}

.layer.privacy-head {
  --fs: 36;
  color: #a8573f;
  font-family: "Jost", "Futura", sans-serif;
  font-weight: 500;
}

.layer.privacy-text {
  --fs: 30;
  --max: 780;
  color: #2b1710;
  font-family: "Jost", "Futura", sans-serif;
  line-height: 1.35;
}

.layer.privacy-contact {
  --x: 110;
  --y: 930;
  --fs: 34;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: #2b1710;
  color: #fff8f2;
  font-family: "Jost", "Futura", sans-serif;
}

[data-layer="privacy-what-h"] { --x: 110; --y: 270; }
[data-layer="privacy-what"] { --x: 110; --y: 325; }
[data-layer="privacy-why-h"] { --x: 110; --y: 480; }
[data-layer="privacy-why"] { --x: 110; --y: 535; }
[data-layer="privacy-where-h"] { --x: 110; --y: 690; }
[data-layer="privacy-where"] { --x: 110; --y: 745; }
[data-layer="privacy-time-h"] { --x: 1010; --y: 270; }
[data-layer="privacy-time"] { --x: 1010; --y: 325; }
[data-layer="privacy-rights-h"] { --x: 1010; --y: 480; }
[data-layer="privacy-rights"] { --x: 1010; --y: 535; }
[data-layer="privacy-page-h"] { --x: 1010; --y: 690; }
[data-layer="privacy-page"] { --x: 1010; --y: 745; }

.lock-badge {
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  color: var(--muted);
}

.lock-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.dialog-privacy {
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12.5px;
}

.dialog-privacy button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

body[data-project="privacy"] .safe-toggle,
body[data-project="privacy"] [data-safe-quick] {
  display: none;
}

body:not([data-project="privacy"]) [data-intro="privacy"] {
  display: none;
}

body[data-project]:not([data-project="velune"]) .guide {
  display: none;
}

.delete-layer {
  margin: 0 6px 16px;
  padding: 7px 12px;
  border: 1px solid #f1c4c4;
  border-radius: 8px;
  background: #fff5f5;
  color: var(--bad);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.delete-layer[hidden] {
  display: none;
}

.privacy-dialog h3 {
  margin: 14px 0 2px;
  font-size: 14px;
}

.privacy-dialog p {
  margin: 0;
}

@media (max-width: 1199px) {
  .app {
    grid-template: "top" 52px "canvas" 1fr "bar" auto / 100%;
  }

  .topbar {
    gap: 8px;
  }

  .slot .note {
    display: none;
  }

  .resize-handle {
    width: calc(18px / var(--zoom, 1));
    height: calc(18px / var(--zoom, 1));
  }

  .canvas {
    display: flex;
    flex-direction: column;
  }

  .intro {
    position: relative;
    top: auto;
    left: auto;
    z-index: 3;
    flex-wrap: wrap;
    max-width: none;
    margin: 10px 12px 0;
  }

  .intro p {
    font-size: 12px;
  }

  .intro-pitch {
    padding: 12px 14px;
  }

  .intro-pitch h1 {
    font-size: 16px;
  }

  .intro-more {
    display: none;
  }

  .formats {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 2px;
  }

  .formats button {
    min-width: 52px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--chrome);
    color: #525252;
    cursor: pointer;
  }

  .formats button[aria-current="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .board {
    --s: max(
      0.04px,
      min((100cqh - var(--reserve-left, 150px) - var(--bottom-space, 64px) - 60px) / 1920, (100cqw - 110px) / 3240)
    );
    flex: 1;
    gap: 24px;
    height: auto;
    min-height: 0;
    padding: 40px 12px var(--bottom-space, 64px);
  }

  .board[data-project="features"],
  .board[data-project="how"] {
    --s: max(
      0.04px,
      min((100cqh - var(--reserve-left, 150px) - var(--bottom-space, 64px) - 60px) / 1080, (100cqw - 60px) / 1920)
    );
  }

  .canvas {
    touch-action: none;
  }

  body[data-project]:not([data-project="velune"]) .formats {
    display: none;
  }

  .brand span,
  .project-label {
    display: none;
  }

  .project-switch {
    padding-left: 8px;
    min-width: 0;
  }

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

  .project-menu {
    left: 0;
  }

}

@media (max-width: 1199px) {
  .join {
    white-space: nowrap;
  }

  .join-more {
    display: none;
  }

  .tools,
  .safe-toggle {
    display: none;
  }

  .history {
    display: flex;
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .history-count {
    display: none;
  }

  .zoom {
    display: flex;
    bottom: 10px;
    right: 10px;
  }

  body:has(.guide:not([hidden])) .zoom {
    bottom: 132px;
  }

  body {
    touch-action: pan-x pan-y;
  }

  .dialog-row input,
  .text-field textarea {
    font-size: 16px;
  }
}

@media (max-width: 1199px) {
  .resize-handle::before {
    content: "";
    position: absolute;
    inset: calc(-12px / var(--zoom, 1));
  }

  body[data-pitch="compact"] .intro-pitch p {
    display: none;
  }
}

@media (max-width: 1199px) and (max-height: 520px) {
  .intro-pitch p,
  .formats {
    display: none;
  }

  .intro {
    margin-top: 6px;
    padding: 8px 12px;
  }
}

.mobile-bar,
.drawer-head {
  display: none;
}

@media (max-width: 1199px) {
  .mobile-bar {
    grid-area: bar;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--chrome);
  }

  .bar-group {
    display: flex;
    gap: 2px;
  }

  .bar-button {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 46px;
    padding: 5px 4px 3px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #525252;
    font-size: 10.5px;
    cursor: pointer;
  }

  .bar-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bar-button[aria-pressed="true"],
  .bar-button[aria-expanded="true"] {
    background: #ececec;
    color: var(--ink);
  }

  .bar-badge {
    position: absolute;
    top: 1px;
    right: 6px;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bad);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
  }

  .bar-badge[hidden] {
    display: none;
  }

  .layers,
  .properties {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    max-height: var(--drawer-height, 55dvh);
    padding: 0 12px calc(16px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 18px 18px 0 0;
    background: var(--chrome);
    box-shadow: 0 -12px 40px -12px rgb(0 0 0 / 0.35);
    overscroll-behavior: contain;
    transform: translateY(105%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    visibility: hidden;
  }

  body[data-drawer="layers"] .layers,
  body[data-drawer="properties"] .properties {
    transform: translateY(var(--drawer-drag, 0px));
    visibility: visible;
  }

  body[data-drawer-full] .layers,
  body[data-drawer-full] .properties {
    --drawer-height: 88dvh;
  }

  .layers .panel-title:first-of-type {
    display: none;
  }

  .drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin: 0 -12px 8px;
    padding: 18px 12px 8px;
    background: var(--chrome);
    touch-action: none;
    cursor: grab;
  }

  .drawer-grip {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #d4d4d4;
    transform: translateX(-50%);
  }

  .drawer-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
  }

  .drawer-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f2f2f2;
    cursor: pointer;
  }

  .drawer-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  .guide {
    position: absolute;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

}

@media (max-width: 1199px) and (prefers-reduced-motion: reduce) {
  .layers,
  .properties {
    transition: none;
  }
}

body[data-project="how"] [data-safe-quick],
body[data-project="features"] [data-safe-quick] {
  display: none;
}

@media (max-width: 1199px) {
  .bar-button span {
    white-space: nowrap;
  }

  .intro,
  .intro-pitch {
    padding-right: 46px;
  }

  .intro .intro-collapse,
  .history button {
    width: 40px;
    height: 40px;
  }

  .formats button {
    height: 36px;
  }

  .layers .row {
    min-height: 40px;
  }

  .scope-switch button {
    height: 34px;
  }
}

@media (max-width: 380px) {
  .bar-button {
    min-width: 40px;
    font-size: 9.5px;
  }

  .bar-group {
    gap: 0;
  }
}

@media (max-width: 1199px) and (max-height: 520px) {
  .intro {
    display: none !important;
  }

  .topbar {
    min-height: 44px;
  }
}

@media (max-width: 1199px) and (max-height: 520px) {
  .guide {
    display: none;
  }
}

@media (max-width: 1199px) and (max-height: 520px) {
  body .zoom {
    bottom: 10px;
  }
}
