.sg-pad-wrap { position: relative; }
#sg-pad { display: block; width: 100%; aspect-ratio: 1 / 0.36; touch-action: none; cursor: crosshair; border-radius: var(--r); border: 2px dashed var(--line-strong);
  background: linear-gradient(to bottom, transparent calc(74% - 1px), rgba(17, 26, 46, 0.22) calc(74% - 1px), rgba(17, 26, 46, 0.22) 74%, transparent 74%), #fdfdfb; }
#sg-pad-hint { position: absolute; left: 0; right: 0; top: 30%; margin: 0; padding: 0 12px; text-align: center; color: #8a93a8; pointer-events: none; font-weight: 600; font-size: 0.9rem; }
@media (max-width: 560px) { #sg-pad { aspect-ratio: 1 / 0.62; } }
.sg-x { position: absolute; left: 4%; top: calc(74% - 1.6em); color: #9aa3b5; font-weight: 700; pointer-events: none; }
.sg-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--glass-strong); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.sg-swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--accent); }
#sg-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sg-font { display: grid; gap: 2px; padding: 12px 14px; min-height: 86px; border-radius: var(--r); border: 1px solid var(--line-strong); background: #fdfdfb; cursor: pointer; text-align: left; overflow: hidden; }
.sg-font span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.sg-font small { color: #6b7385; font: 600 0.75rem var(--font); }
.sg-font[aria-pressed='true'] { border-color: var(--accent); box-shadow: var(--ring); }
.sg-preview { min-height: 140px; }
.sg-preview img { max-width: 100%; max-height: 220px; }
