.lead { color: var(--text-2); max-width: 64ch; line-height: 1.55; }
.cs-in { gap: 10px; margin: 16px 0; }
.cs-in input[type="color"] { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--line-2); border-radius: 6px; }
.cs-in input[type="text"] { font-family: var(--mono); max-width: 160px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.seg button { border: 0; border-right: 1px solid var(--line-2); background: var(--surface); padding: 7px 14px; font-size: .84rem; cursor: pointer; color: var(--text); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-bg); color: var(--accent-2); font-weight: 650; }
.cs-harm { max-width: 240px; margin: 8px 0 4px; }

.cs-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin: 14px 0; }
.cs-sw { height: 78px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: flex; align-items: flex-end; padding: 6px; }
.cs-sw span { font-family: var(--mono); font-size: .72rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.cs-sw.pale span { color: #12161c; text-shadow: none; }
.cs-actions { gap: 10px; }
