* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f6f6f7;
  color: #1a1a1a;
}

.bar { display: flex; gap: 8px; margin-bottom: 16px; }

#url {
  flex: 1;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
}

.bar button {
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
}

.bar button:disabled { opacity: .4; cursor: default; }

.status {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  background: #fdeaea;
  color: #8b1a1a;
}

.status[data-kind="warn"] { background: #fdf4e3; color: #8a5a00; }
.status[data-kind="info"] { background: #eaf1fd; color: #1a3d8b; }

.swatches { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.swatch {
  width: 40px; height: 40px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.swatch[aria-pressed="true"] { border-color: #1a1a1a; }

/* The stage reserves layout space; JS sets --scale and the height to match. */
.stage { transform-origin: top left; }

.canvas {
  width: 1080px;
  height: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(var(--scale, 1));
  transform-origin: top left;
}

.card {
  width: 952px;
  height: 952px;
  padding: 72px;
  background: #fff;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
}

.stars { display: flex; gap: 8px; margin-bottom: 40px; }
.stars svg { width: 44px; height: 44px; display: block; }

/* Font size is set by the auto-shrink routine in app.js. */
.body {
  flex: 1;
  margin: 0;
  overflow: hidden;
  line-height: 1.45;
  color: #1a1a1a;
  font-weight: 400;
}

.meta { margin-top: 40px; padding-top: 32px; border-top: 1px solid #e3e3e6; }
.store { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.line { font-size: 24px; color: #6b6b73; line-height: 1.5; }
