/* ═══════════════════════════════════════════════════════════════
   TASK KANBAN — Enhanced Task Board (Full Insurance Form Edition)
   Customizable columns, user-specific boards, team switching
   Attachments, comments, search, sorting
   ═══════════════════════════════════════════════════════════════ */

/* Header */
.tk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tk-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tk-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin: 0;
}

.tk-board-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tk-board-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tk-board-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.tk-board-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tk-board-icon { font-size: var(--text-base); }
.tk-board-name { font-weight: var(--weight-medium); }

/* Team Dropdown */
.tk-team-dropdown {
  position: relative;
}

.tk-team-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tk-team-trigger:hover {
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.tk-chevron {
  font-size: 0.7rem;
  transition: transform var(--duration-fast);
}

.tk-team-dropdown.open .tk-chevron {
  transform: rotate(180deg);
}

.tk-team-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}

.tk-team-dropdown.open .tk-team-menu {
  display: block;
}

.tk-team-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: none;
  border: none;
  text-align: left;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.tk-team-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tk-team-avatar {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* Header Actions */
.tk-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tk-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tk-action-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.tk-action-btn.tk-action-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tk-action-btn.tk-action-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* Toolbar */
.tk-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.tk-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.tk-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-sm);
  pointer-events: none;
}

.tk-search {
  width: 100%;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-8);
  font-size: var(--text-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.tk-search:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Search Dropdown (Autocomplete) */
.tk-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
}

.tk-search-dropdown.open {
  display: block;
}

.tk-search-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.tk-search-item:hover {
  background: var(--bg-hover);
}

.tk-search-num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  min-width: 70px;
}

.tk-search-title {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-search-lob {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.tk-search-empty {
  padding: var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.tk-filter {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  min-width: 120px;
}

.tk-filter:focus {
  border-color: var(--accent);
  outline: none;
}

/* Board */
.tk-board-wrap {
  padding: var(--space-4) var(--space-6);
  overflow-x: auto;
  min-height: calc(100vh - 220px);
}

.tk-board {
  display: flex;
  gap: var(--space-4);
  min-width: max-content;
  align-items: flex-start;
}

/* Column */
.tk-column {
  width: 300px;
  min-width: 280px;
  max-width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 260px);
  flex-shrink: 0;
  transition: box-shadow var(--duration-normal), border-color var(--duration-normal);
  border-top: 3px solid var(--col-accent, var(--accent));
}

.tk-column.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-muted);
}

.tk-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.tk-col-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tk-col-icon { font-size: var(--text-base); }

.tk-col-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  min-width: 40px;
}

.tk-col-name[contenteditable="true"]:hover {
  background: var(--bg-hover);
}

.tk-col-name[contenteditable="true"]:focus {
  background: var(--bg-elevated);
  outline: 1px solid var(--accent);
}

.tk-col-count {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.tk-col-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  position: relative;
}

.tk-col-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tk-col-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Column Menu */
.tk-col-menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  right: 0;
  min-width: 160px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
  overflow: hidden;
}

.tk-col-menu.open {
  display: block;
}

.tk-col-menu button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: none;
  border: none;
  text-align: left;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.tk-col-menu button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tk-col-menu button.destructive {
  color: var(--error);
}

.tk-col-menu button.destructive:hover {
  background: var(--error-muted);
}

/* Sort Dropdown */
.tk-sort-dropdown {
  position: relative;
}

.tk-sort-menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  right: 0;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
  overflow: hidden;
}

.tk-sort-menu.open {
  display: block;
}

.tk-sort-menu button {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: none;
  border: none;
  text-align: left;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.tk-sort-menu button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Column Body */
.tk-col-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 100px;
}

.tk-col-body::-webkit-scrollbar { width: 4px; }
.tk-col-body::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 4px; }

.tk-empty {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  margin: var(--space-2);
}

/* Add Column Button */
.tk-add-column-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 200px;
  height: 120px;
  background: var(--bg-surface);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.tk-add-column-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.tk-add-column-btn span:first-child {
  font-size: 1.5rem;
}

/* Task Card */
.tk-card {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: grab;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast);
  overflow: hidden;
}

.tk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}

.tk-card:active { cursor: grabbing; }

.tk-card.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.tk-card-priority {
  width: 4px;
  flex-shrink: 0;
}

.tk-card-content {
  flex: 1;
  padding: var(--space-3);
  min-width: 0;
}

.tk-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.tk-card-number {
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  color: var(--accent);
  letter-spacing: 0.5px;
}

.tk-card-lob {
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--info-muted, rgba(59, 130, 246, 0.15));
  color: var(--info);
}

.tk-card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.tk-card-carrier {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.tk-card-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}

.tk-card-tag {
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  color: var(--text-secondary);
}

.tk-card-owner {
  font-size: 0.6rem;
  font-weight: var(--weight-semibold);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--accent);
}

.tk-card-attach,
.tk-card-comments {
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  color: var(--text-tertiary);
}

.tk-card-due {
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  color: var(--text-tertiary);
  margin-left: auto;
}

.tk-card-due.overdue {
  background: var(--error-muted);
  color: var(--error);
}

/* Loading */
.tk-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  color: var(--text-secondary);
}

.tk-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-default);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════ Modal ═══════════ */
.tk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.tk-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.tk-modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  margin: var(--space-4);
}

.tk-modal.tk-modal-large {
  max-width: 720px;
}

.tk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.tk-modal-header h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  margin: 0;
}

.tk-modal-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tk-task-number-badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent);
  background: var(--accent-muted);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.tk-modal-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.tk-modal-close:hover {
  color: var(--text-primary);
}

.tk-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.tk-modal-body.tk-modal-tabs {
  padding: 0;
}

/* ═══════════ Tabs ═══════════ */
.tk-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--space-4);
  background: var(--bg-base);
}

.tk-tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tk-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.tk-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tk-tab-content {
  display: none;
  padding: var(--space-4);
  max-height: 50vh;
  overflow-y: auto;
}

.tk-tab-content.active {
  display: block;
}

/* ═══════════ Form Fields ═══════════ */
.tk-field {
  margin-bottom: var(--space-4);
}

.tk-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.tk-field input,
.tk-field textarea,
.tk-field select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.tk-field input:focus,
.tk-field textarea:focus,
.tk-field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.tk-field input:read-only,
.tk-field textarea:read-only {
  background: var(--bg-base);
  color: var(--text-secondary);
}

.tk-field textarea {
  min-height: 80px;
  resize: vertical;
}

.tk-field-row {
  display: flex;
  gap: var(--space-3);
}

.tk-field-row .tk-field {
  flex: 1;
}

.tk-muted {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
}

/* ═══════════ Attachments ═══════════ */
.tk-attach-upload {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.tk-attach-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.tk-attach-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tk-attach-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.tk-attach-icon {
  font-size: var(--text-base);
}

.tk-attach-name {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-attach-name[contenteditable="true"]:hover {
  background: var(--bg-hover);
}

.tk-attach-name[contenteditable="true"]:focus {
  background: var(--bg-base);
  outline: 1px solid var(--accent);
}

.tk-attach-size {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.tk-attach-download,
.tk-attach-delete {
  background: none;
  border: none;
  font-size: var(--text-sm);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}

.tk-attach-download:hover {
  background: var(--bg-hover);
}

.tk-attach-delete:hover {
  background: var(--error-muted);
}

/* ═══════════ Comments ═══════════ */
.tk-comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  max-height: 200px;
  overflow-y: auto;
}

.tk-comment {
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.tk-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.tk-comment-author {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.tk-comment-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.tk-comment-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.tk-mention {
  color: var(--accent);
  font-weight: var(--weight-medium);
  background: var(--accent-muted);
  padding: 0 4px;
  border-radius: var(--radius-sm);
}

.tk-comment-input {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tk-comment-input textarea {
  min-height: 60px;
  resize: none;
}

.tk-comment-input .tk-btn {
  align-self: flex-end;
}

/* ═══════════ Modal Footer ═══════════ */
.tk-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.tk-task-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.tk-modal-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tk-btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.tk-btn-primary:hover {
  background: var(--accent-hover);
}

.tk-btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tk-btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tk-btn-danger {
  background: var(--error-muted);
  border: 1px solid var(--error);
  color: var(--error);
}

.tk-btn-danger:hover {
  background: var(--error);
  color: #fff;
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 768px) {
  .tk-header {
    padding: var(--space-3);
  }
  
  .tk-toolbar {
    padding: var(--space-3);
  }
  
  .tk-filter {
    min-width: auto;
    flex: 1;
  }
  
  .tk-board-wrap {
    padding: var(--space-3);
  }
  
  .tk-column {
    width: 260px;
    min-width: 240px;
  }
  
  .tk-modal {
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .tk-modal.tk-modal-large {
    max-width: 100vw;
  }
  
  .tk-field-row {
    flex-direction: column;
    gap: 0;
  }
  
  .tk-tabs {
    overflow-x: auto;
    padding: 0 var(--space-2);
  }
  
  .tk-tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    white-space: nowrap;
  }
}
