.design-motifs { padding: 12px; display: grid; gap: 14px; }
.design-motif { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.design-motif > img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; background: white; }
.design-motif > div { min-width: 0; }
.design-motif strong { display: block; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.design-motif a { display: inline-block; font-size: 12px; color: var(--red, #85402f); margin-top: 5px; padding-block: 3px; text-decoration: underline; text-underline-offset: 3px; }
.design-viewer { width: min(1200px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line, #ddd); background: var(--surface, white); color: var(--ink, #26241f); overflow: auto; }
.design-viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.design-viewer::backdrop { background: #191814b8; }
.design-viewer .design-close { position: sticky; top: 12px; grid-column: 1 / -1; justify-self: end; z-index: 1; width: 38px; height: 38px; margin: 12px 12px -50px 0; border: 1px solid #ddd; background: white; font-size: 25px; cursor: pointer; }
.design-preview { padding: 24px; text-align: center; min-width: 0; }
.design-preview img { display: block; width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.design-preview-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.design-preview a { display: inline-block; color: var(--muted, #666); font-size: 13px; }
.design-download { min-height: 42px; padding: 9px 4px; border: 0; background: transparent; color: var(--color-muted, #666); font-size: 13px; font-weight: 400; }
.design-download:hover { color: var(--color-accent, #8d4b39); }
.design-favorite .favorite-button { width: 42px; height: 42px; border: 0; background: transparent; }
.design-favorite .favorite-button[aria-pressed="true"] { background: transparent; }
.design-feedback { text-align: left; }
.design-feedback .feedback-bar { justify-content: center; }
.design-viewer aside { padding: 48px 16px 24px; border-left: 1px solid var(--line, #ddd); }
.design-viewer h2 { font-size: 20px; margin: 8px 12px 20px; }
.design-copy-link { display: block; margin: 24px 12px 0; padding: 15px 18px; background: var(--color-accent, #8d4b39); color: white; text-decoration: none; text-align: center; font-weight: 600; }
.design-copy-link:hover { background: var(--color-ink, #29251f); }
.design-copy-note { margin: 9px 12px; color: var(--color-muted, #666); font-size: 12px; line-height: 1.6; text-align: center; }
body:has(.design-viewer[open]) { overflow: hidden; }
.reference-image { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: #f5f3ef; }
@media (max-width: 700px) {
  .design-viewer[open] { grid-template-columns: 1fr; }
  .design-viewer aside { padding: 16px; border-left: 0; border-top: 1px solid var(--line, #ddd); }
  .design-motif > img { width: 36px; height: 36px; flex-basis: 36px; }
}
.design-motif > .design-motif-image {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
}
.design-motif-image > img { display: block; width: 100%; height: 100%; object-fit: contain; }
