.thread-picker { display: grid; gap: 12px; }
.thread-picker .dialog-copy, .thread-picker .dialog-actions { margin: 0; }
.thread-modes { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 0; border: 0; }
.thread-modes legend { padding: 0; color: var(--green); font-size: .9rem; font-weight: 640; }
.thread-modes label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: .9rem; cursor: pointer; }
.thread-modes input { margin: 0; accent-color: var(--rust); }
.thread-fields { display: flex; align-items: center; gap: 9px; }
.thread-fields input[type="color"] { flex: none; width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); cursor: pointer; }
.thread-swatch { display: inline-block; flex: none; width: 24px; height: 24px; border: 1px solid #766d645c; border-radius: 50%; }
.thread-preview { width: 34px; height: 34px; }
.thread-preview.unmatched { background-image: linear-gradient(135deg, transparent 48%, var(--line) 49% 51%, transparent 52%); }
.thread-error { color: var(--deep); font-size: .875rem; }
.thread-add { justify-self: start; }
.thread-list { display: grid; margin: 0; padding: 0; list-style: none; max-height: 240px; overflow: auto; }
.thread-list:empty { display: none; }
.thread-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid var(--line); }
.thread-list small { grid-column: 1 / -1; margin-bottom: 6px; color: var(--muted); }
.thread-change { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 4px 2px; border: 0; background: transparent; text-align: start; overflow-wrap: anywhere; font-size: .9rem; }
.thread-change:hover { color: var(--rust); text-decoration: underline; }
