/* Task form (Zoho-style underline inputs), kanban drag & drop, task badges */
.tf-form { display: flex; flex-direction: column; gap: 10px; }
.tf-section { font-weight: 700; font-size: var(--fs-sm); padding: 8px 0 4px; margin-top: 6px; border-bottom: 1px solid var(--color-border); }
.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding-top: 6px; }
.tf-field { display: flex; flex-direction: column; gap: 2px; position: relative; min-width: 0; }
.tf-field > label { font-size: var(--fs-xs); color: var(--color-text-muted, #6b7280); }
.tf-field .req { color: #d93025; }
.tf-wide { grid-column: 1 / -1; }
.tf-input { border: 0; border-bottom: 1px solid var(--color-border); background: transparent; padding: 6px 2px; font: inherit; color: inherit; outline: none; width: 100%; border-radius: 0; }
.tf-input:focus { border-bottom-color: var(--color-primary); box-shadow: 0 1px 0 var(--color-primary); }
textarea.tf-input { border: 1px solid var(--color-border); border-radius: 4px; padding: 6px; resize: vertical; }
.tf-inline { display: flex; gap: 10px; align-items: flex-end; }
.tf-narrow { flex: 0 0 110px; width: 110px; }
.tf-error { color: #d93025; font-size: var(--fs-xs); }
.tf-check { justify-content: flex-end; }
.tf-toggle { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; padding: 4px 0; }
.tf-sub { background: var(--color-surface-alt); border-radius: var(--radius-md); padding: 8px 14px 14px; }
.tf-chips { display: flex; gap: 6px; }
.tf-chip { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--color-border); background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
.tf-chip.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-contrast); }
.tf-lookup { position: relative; flex: 1; min-width: 0; }
.tf-lookup-clear { position: absolute; right: 2px; top: 6px; border: 0; background: transparent; cursor: pointer; color: inherit; opacity: .6; }
.tf-lookup-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--color-surface, #fff); border: 1px solid var(--color-border); border-radius: 4px; max-height: 200px; overflow-y: auto; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.tf-lookup-opt { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.tf-lookup-opt:hover { background: var(--color-surface-alt); }
.tf-lookup-empty { padding: 8px 10px; color: var(--color-text-muted, #6b7280); font-size: var(--fs-sm); }
@media (max-width: 640px) { .tf-grid { grid-template-columns: 1fr; } }

.task-flags { display: inline-flex; gap: 4px; margin-left: 6px; opacity: .75; font-size: var(--fs-xs); }
.kb-col.drop-over { outline: 2px dashed var(--color-primary); outline-offset: -2px; background: rgba(84, 100, 242, .08); }
.kb-card { cursor: grab; }
.kb-card.dragging { opacity: .45; }
.badge-prio-highest { background: #b3261e; color: #fff; }
.badge-prio-lowest { background: #e5e7eb; color: #4b5563; }
