.lead { color: var(--text-2); max-width: 64ch; line-height: 1.55; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin: 16px 0; }
.seg button { border: 0; background: var(--surface); padding: 7px 16px; font-size: .88rem; cursor: pointer; color: var(--text); }
.seg button.on { background: var(--accent-bg); color: var(--accent-2); font-weight: 650; }

.sh-preview { display: grid; place-items: center; height: 180px; margin: 8px 0 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.sh-preview span { width: 120px; height: 60px; display: grid; place-items: center; background: var(--surface); border-radius: 8px; font-weight: 700; color: var(--text-2); }
.sh-preview.text { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--surface-2) 10px, var(--surface-2) 20px); }
.sh-preview.text span { background: none; font-size: 2rem; }

.sh-layers { display: grid; gap: 12px; margin-bottom: 8px; }
.sh-layer { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); }
.sh-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sh-f span { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-2); }
.sh-f b { font-variant-numeric: tabular-nums; color: var(--text); }
.sh-row2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sh-row2 input[type="color"] { width: 40px; height: 32px; padding: 2px; border: 1px solid var(--line-2); border-radius: 6px; }
.sh-row2 input[type="text"] { font-family: var(--mono); font-size: .8rem; max-width: 160px; }

.out-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 4px; }
.sh-css { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-family: var(--mono); font-size: .85rem; white-space: pre-wrap; word-break: break-all; }
.sh-import { margin-top: 16px; max-width: 520px; }
.sh-import input { font-family: var(--mono); font-size: .8rem; }

@media (max-width: 560px) { .sh-row { grid-template-columns: repeat(2, 1fr); } }
