.task-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .65rem 0; }
.task-tag { --tag-color: #4263eb; display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .2rem .55rem; border: 1px solid #e2e7ef; border-radius: 999px; background: #f8fafc; color: #344054; font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
.task-tag-dot { flex: 0 0 .5rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tag-color); box-shadow: inset 0 0 0 1px #00000015; }
.tag-editor { min-width: 0; padding: 1rem 0; margin: 1rem 0 0; border: 0; border-top: 1px solid #e4e7ec; }
.tag-editor legend { display: flex; align-items: center; gap: .6rem; padding: 0 .5rem 0 0; font-weight: 700; }
.tag-counter { font-size: .75rem; font-weight: 500; color: #667085; }
.tag-help, .tag-empty { margin: 0 0 .75rem; color: #667085; font-size: .8rem; }
.tag-editor-list { display: grid; gap: .5rem; margin-bottom: .75rem; }
.tag-add-row, .tag-edit-row { display: flex; align-items: center; gap: .5rem; }
.tag-edit-row { border-left: 4px solid var(--tag-color, #4263eb); padding-left: .55rem; }
.tag-editor input[type="text"] { min-width: 0; flex: 1; width: 100%; padding: .65rem .75rem; border: 1px solid #cbd3e1; border-radius: .6rem; background: #fff; color: #111827; font: inherit; }
.tag-editor input[type="color"] { flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; padding: .2rem; border: 1px solid #cbd3e1; border-radius: .6rem; background: #fff; cursor: pointer; }
.tag-editor input:focus-visible, .tag-remove:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.tag-add-row .button { white-space: nowrap; padding: .6rem .8rem; }
.tag-remove { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border: 1px solid #e4e7ec; border-radius: .6rem; color: #667085; background: #fff; font-size: 1.25rem; cursor: pointer; }
.tag-remove:hover { color: #b42318; background: #fff1f0; }
.tag-editor-error { margin: .45rem 0 0; color: #b42318; font-size: .8rem; }
.tag-editor-error:empty { display: none; }
.tag-editor:disabled .tag-add-row, .tag-editor:disabled .tag-remove { display: none; }
.tag-editor input:disabled, .tag-editor button:disabled { opacity: .6; cursor: default; }
@media (max-width: 460px) {
  .tag-add-row { flex-wrap: wrap; }
  .tag-add-row input[type="text"] { flex-basis: calc(100% - 3.2rem); }
  .tag-add-row .button { width: 100%; }
}
