.tag-catalog-settings { min-width: 0; }
.tag-catalog-settings form { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: end; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line, #dbe4df); }
.tag-catalog-settings label { min-width: 0; }
.tag-catalog-settings form > label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tag-catalog-settings input[name="name"] { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.tag-color-swatches { display: flex; gap: 5px; border: 0; padding: 0; margin: 0; }
.tag-color-swatches legend { font-size: 12px; margin-bottom: 7px; color: #596b63; }
.tag-color-swatches label { position: relative; width: 27px; height: 32px; cursor: pointer; }
.tag-color-swatches input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.tag-color-swatches span { display: block; width: 22px; height: 22px; margin: 5px 2px; border: 2px solid white; border-radius: 50%; }
.tag-color-swatches input:checked + span { outline: 2px solid #263d33; }
.tag-color-swatches input:focus-visible + span { outline: 3px solid #286ecc; }
.task-planning-options { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin: 12px 0; }
.task-planning-options button { text-align: left; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 820px) { .tag-catalog-settings form { grid-template-columns: minmax(0, 1fr); gap: 10px; } .tag-catalog-settings button { justify-self: start; } }
