.st { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.st-form { display: grid; gap: 16px; }
.st-form input[type=text] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 18px;
}
.st-form input[type=text]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.st-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip {
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.st-chip:hover { border-color: var(--muted); }
.st-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.st-swatch { width: 34px; height: 34px; padding: 0; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.st-swatch.on { box-shadow: 0 0 0 2px var(--text); border-color: var(--surface); }
.st-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-colors input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.st-grid label.field > span { display: flex; justify-content: space-between; }
.st-grid label.field b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.st-grid input[type=range] { width: 100%; accent-color: var(--accent); }
.st-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.st-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.st-more > summary { cursor: pointer; font-weight: 700; margin-bottom: 4px; }
.st-more .st-grid { margin-top: 14px; }
.st-wearrow { display: flex; gap: 8px; align-items: end; grid-column: span 2; }
@media (max-width: 460px) { .st-wearrow { grid-column: auto; } }
.st-wearrow label { flex: 1; }
.st-wearrow .btn { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.st-right { position: sticky; top: 12px; }
.st-preview { text-align: center; }
.st-paper {
  position: relative; margin: 0 auto 12px; max-width: 320px; border-radius: 10px; border: 1px solid var(--line);
  background: #fbfaf5; background-image: linear-gradient(#0000 31px, #e9e6dc 32px); background-size: 100% 32px;
}
.st-paper canvas { display: block; width: 100%; height: auto; }
.st-loading { position: absolute; left: 0; right: 0; bottom: 6px; font-size: 12px; color: #8a877c; }
.st-dl { text-align: left; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.st-btns { gap: 6px; }
.st-btns .btn { padding: 9px 14px; font-size: 14px; }
.st-msg { min-height: 20px; margin: 0; font-size: 13px; color: var(--ok); }
.st-msg.bad { color: var(--bad); }
.st-info h2 { font-size: 17px; margin: 0 0 10px; }
.st-info ul, .st-info ol { margin: 6px 0 0; padding-left: 20px; }
.st-info li { margin: 4px 0; }
.st-faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.st-faq details:first-of-type { border-top: 0; }
.st-faq summary { cursor: pointer; font-weight: 700; }
.st-faq p { margin: 8px 0 0; color: var(--muted); }
.st-fonts { font-size: 13px; }
.st-fonts li { margin: 2px 0; }
@media (max-width: 820px) {
  .st { grid-template-columns: 1fr; }
  .st-right { position: static; order: -1; }
  .st-paper { max-width: 260px; }
}
