.sg-tabs { margin-bottom: 12px; }
.sg-common { margin-bottom: 10px; }
.sg-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sg-lbl { font-weight: 700; font-size: 14px; margin-right: 2px; }
.sg-sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--card); background: var(--sw); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.sg-sw.on { box-shadow: 0 0 0 3px var(--c); }
.sg-custom input[type=color] { width: 40px; height: 40px; border-radius: 50%; padding: 2px; cursor: pointer; }
.sg-keep label, .sg-inline { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.sg-padwrap { position: relative; width: 100%; max-width: 820px; margin: 0 auto; }
.sg-pad { display: block; width: 100%; aspect-ratio: 2 / 1; height: auto; background: #fff; border: 2px dashed color-mix(in srgb, var(--c) 45%, #d1d5db); border-radius: 16px; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.sg-line { position: absolute; left: 6%; right: 6%; bottom: 24%; border-bottom: 1.5px solid #cbd5e1; pointer-events: none; }
.sg-line span { position: absolute; left: -2px; bottom: 2px; color: #94a3b8; font-size: 16px; }
.sg-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; font-weight: 600; pointer-events: none; text-align: center; padding: 0 20px; font-size: 15px; }
.sg-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.sg-thick { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; }
.sg-thick input { flex: 1; }
.sg-tools .btn { min-height: 44px; padding: 8px 16px; }
.sg-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
@media (max-width: 560px) { .sg-styles { grid-template-columns: 1fr 1fr; } }
.sg-style { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; padding: 10px; background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; min-width: 0; }
.sg-style canvas { max-width: 100%; max-height: 64px; height: auto; }
.sg-style span { font-size: 12px; color: #64748b; font-weight: 700; }
.sg-style.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.sg-style:focus-visible { outline: 3px solid color-mix(in srgb, var(--c) 45%, transparent); }
.sg-small { font-size: 13px; margin: 10px 0 0; }
.sg-upctl { margin-top: 4px; }
.sg-upbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sg-upbtns .btn { min-height: 44px; padding: 8px 14px; }
.sg-out { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.sg-outhead { margin-bottom: 8px; font-size: 15px; }
.sg-outhead .muted { font-size: 13.5px; }
.sg-preview { position: relative; min-height: 120px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); padding: 14px; background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 50% / 18px 18px; }
.sg-preview canvas { max-width: 100%; max-height: 220px; height: auto; width: auto; }
.sg-empty { color: #94a3b8; font-weight: 600; font-size: 14px; }
