.tag-editor { display: grid; gap: 8px; min-width: 0; }
.tag-editor-label { color: var(--ink-soft); font-size: 12px; }
.tag-editor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 42px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.tag-editor-chips { display: contents; }
.tag-editor-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 30px; padding: 2px 4px 2px 11px; border: 1px solid #d8cada; border-radius: 18px; background: #ede6ef; color: var(--pen); font-size: 13px; line-height: 1.5; }
.tag-editor-text { min-width: 0; overflow-wrap: anywhere; }
.tag-editor-remove { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #806f87; font: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.tag-editor-remove:hover { background: #ddcfe3; color: var(--pen); }
.tag-editor-remove:focus-visible { outline: 2px solid #9471a3; outline-offset: 1px; }
.writing-page .tag-editor .tag-editor-input { flex: 1 1 128px; min-width: 100px; width: auto; max-width: 100%; min-height: 32px; margin: 0; padding: 3px 2px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; box-shadow: none; }
.writing-page .tag-editor .tag-editor-input:focus-visible { outline: none; box-shadow: inset 0 -1px #9471a3; }
.tag-editor-error { margin: 0; color: #96384b; font-size: 12px; line-height: 1.6; }
