/* 썸네일 만들기 */
.thm-stage { padding: 12px; }
.thm-stage canvas { width: 100%; max-height: 66vh; object-fit: contain; height: auto; border-radius: 6px; box-shadow: var(--sh-sm); }
.thm-templates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.thm-tpl { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px; cursor: pointer; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .15s var(--ease); }
.thm-tpl span { text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
@media (hover: hover) { .thm-tpl:hover { transform: translateY(-2px); } }
.thm .ik-cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.thm-title, .thm textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; font-size: 17px; font-weight: 700; line-height: 1.5; resize: vertical; }
.thm-colors { gap: 10px 16px; margin-bottom: 14px; }
.thm-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.thm-pick input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
.thm-shadow, .thm-deco { margin-top: 12px; }
.thm-grads { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.thm-grad { position: relative; }
.thm-grad input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.thm-grad span { display: block; aspect-ratio: 1; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.thm-grad input:checked + span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.thm-grad input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.thm-photo-r { margin-top: 12px; }
@media (max-width: 520px) {
  .thm-templates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thm-grads { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
