/* css/v1/ft-tags.css — the Tags chip field of Start Flip and List Flip (js/v1/cards/ft-tags.js): classic's Tags card shown without its own card frame and heading,
   its one box and the line under it, each chip with a grip and its priority number, the chip being dragged, the colours a chip wears by the limits it is within (v1-tag-t1 the smallest, t2, t3), and the limit line's parts (under, at and over the limit). */
.v1-ft-tags .ft-tags-card, .lw-v1 #lw-ft-inner .v1-ft-tags .ft-tags-card { background: none; border: 0; box-shadow: none; padding: 0; }
.v1-ft-tags .ft-tags-card .card-title { display: none; }
.v1-ft-tags .ft-tags-box { position: relative; counter-reset: v1tag; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 32px; padding: 4px 26px 4px 8px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; cursor: text; transition: border-color .12s, box-shadow .12s; }
.v1-ft-tags .ft-tags-box:hover { border-color: #94a3b8; }
.v1-ft-tags .ft-tags-box:focus-within { border-color: #059669; box-shadow: 0 0 0 2px rgb(5 150 105 / .14); }
.ft-tags-chips { display: contents; }
.v1-ft-tags .ft-tags-new { flex: 1 1 90px; min-width: 0; height: 20px; padding: 0; border: 0; background: none; box-shadow: none; outline: none; color: inherit; font-size: 12px; }
.v1-ft-tags .ft-tags-clear { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 0 2px; border: 0; background: none; color: #64748b; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.v1-ft-tags .ft-tags-clear:hover { color: #e11d48; }
.ft-tags-chips:empty ~ .ft-tags-clear { display: none; }
.v1-ft-tags .ft-tags-hint { margin-top: 4px; color: #64748b; font-size: 11px; cursor: pointer; }
.v1-ft-tags .ft-tags-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 6px; border: 1px solid #a7f3d0; border-radius: 6px; background: #ecfdf5; color: #065f46; font-size: 11px; font-weight: 600; line-height: 1.35; cursor: grab; }
.v1-ft-tags .ft-tags-chip::before { content: "\22EE\22EE"; color: #059669; opacity: .55; font-size: 10px; letter-spacing: -1px; line-height: 1; }
.v1-ft-tags .ft-tags-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.v1-ft-tags .ft-tags-text::before { counter-increment: v1tag; content: counter(v1tag); display: inline-block; min-width: 14px; margin-right: 4px; padding: 0 3px; border-radius: 999px; background: rgb(6 95 70 / .12); font-size: 9.5px; font-weight: 800; line-height: 14px; text-align: center; }
.v1-ft-tags .pt-chip-remove { color: #059669; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; }
.v1-ft-tags .pt-chip-remove:hover { color: #e11d48; }
html[data-theme="dark"] .v1-ft-tags .ft-tags-box { border-color: #334155; background: #171c26; color: #e2e8f0; }
html[data-theme="dark"] .v1-ft-tags .ft-tags-box input.ft-tags-new { background: none !important; }
html[data-theme="dark"] .v1-ft-tags .ft-tags-chip { border-color: rgb(52 211 153 / .35); background: rgb(16 185 129 / .14); color: #6ee7b7; }
.v1-ft-tags .ft-tags-chip:focus-visible { outline: 2px solid #059669; outline-offset: 1px; }
.v1-ft-tags .ft-tags-chip.v1-tag-drag { opacity: .45; }
.v1-ft-tags .ft-tags-chip.v1-tag-t2 { border-color: #bae6fd; background: #f0f9ff; color: #075985; }
.v1-ft-tags .ft-tags-chip.v1-tag-t2 .ft-tags-text::before { background: rgb(7 89 133 / .12); }
.v1-ft-tags .ft-tags-chip.v1-tag-t2::before, .v1-ft-tags .v1-tag-t2 .pt-chip-remove { color: #0284c7; }
.v1-ft-tags .ft-tags-chip.v1-tag-t3 { border-color: #cbd5e1; background: #f8fafc; color: #334155; }
.v1-ft-tags .ft-tags-chip.v1-tag-t3 .ft-tags-text::before { background: rgb(51 65 85 / .12); }
.v1-ft-tags .ft-tags-chip.v1-tag-t3::before, .v1-ft-tags .v1-tag-t3 .pt-chip-remove { color: #64748b; }
.v1-ft-tag-lim { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f1f5f9; color: #334155; font-weight: 500; font-variant-numeric: tabular-nums; }
.v1-ft-tag-lim.is-at { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.v1-ft-tag-lim.is-over { border-color: #fcd34d; background: #fffbeb; color: #b45309; }
.v1-tag-len { opacity: .7; }
html[data-theme="dark"] .v1-ft-tags .ft-tags-chip.v1-tag-t2 { border-color: rgb(56 189 248 / .35); background: rgb(14 165 233 / .14); color: #7dd3fc; }
html[data-theme="dark"] .v1-ft-tags :is(.ft-tags-chip.v1-tag-t3, .v1-ft-tag-lim.is-under) { border-color: #475569; background: rgb(148 163 184 / .14); color: #cbd5e1; }
html[data-theme="dark"] .v1-ft-tags .v1-ft-tag-lim.is-at { border-color: rgb(52 211 153 / .35); background: rgb(16 185 129 / .14); color: #6ee7b7; }
html[data-theme="dark"] .v1-ft-tags .v1-ft-tag-lim.is-over { border-color: rgb(251 191 36 / .4); background: rgb(245 158 11 / .14); color: #fcd34d; }
