.design-tools { display: grid; gap: 14px; margin-bottom: 18px; }
.design-label { margin: 0 0 8px; font-size: 13px; color: var(--mist); }
.design-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.design-example { margin: 8px 0 0; color: var(--mist); font-size: 14px; line-height: 1.6; }
.design-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.design-chip.on { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.design-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.design-row .form-input { width: auto; min-width: 9rem; }
.design-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  max-height: 62vh;
  overflow: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}
.design-empty { color: var(--mist); margin: 8px 0 0; }
.design-msg { display: flex; }
.design-msg.user { justify-content: flex-end; }
.design-bubble {
  max-width: min(640px, 92%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.design-msg.user .design-bubble { background: #e8f1ff; }
.design-bubble p { margin: 0; white-space: pre-wrap; }
.design-bubble img {
  display: block;
  margin-top: 10px;
  border-radius: 12px;
  max-height: 460px;
  object-fit: contain;
  background: #f4f8fc;
}
.design-stage {
  position: relative;
  display: inline-block;
  width: min(100%, 720px);
  max-width: 100%;
  margin-top: 8px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f8fc;
}
.design-stage img { display: block; width: 100%; height: auto; }
.design-logo { margin-top: 14px; }
.design-logo-thumb {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-top: 8px;
  background: #f4f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.design-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.design-text-preview { margin: 8px 0 12px; }
#textBoxes { cursor: pointer; }
.design-compose { display: grid; gap: 10px; }
.design-compose textarea { min-height: 88px; resize: vertical; }
.design-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.design-actions .btn[disabled] { opacity: 0.55; cursor: wait; }
.design-file { position: relative; overflow: hidden; }
.design-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

@media (max-width: 800px) {
  .design-log { max-height: none; }
  .design-row .form-input { width: 100%; }
}
