/* Center styles (finalized from v2 migration)
   Source sync: 2026-03-25 */

/* ============================================================
   CENTER COLUMN: task list, toolbar, filters
============================================================ */
/* Ownership: center list area only (cards + list toolbar + list filters). */

/* Middle column task cards (reference-like order and hover) */
body.theme-material .task-card {
  border: 1px solid var(--color-border-strong);
  border-radius: 16px;
  background: var(--color-bg-surface-alt);
  box-shadow: none;
  padding: 0 20px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

body.theme-material .task-card:hover {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
  background: var(--color-bg-surface-alt);
}

body.theme-material .task-card.active {
  border-color: var(--color-brand-accent);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
  background: var(--color-bg-surface-alt);
}

body.theme-material .task-card.task-card-completed-view {
  border-color: #e5e7eb;
  background: #fafbfc;
  color: #94a3b8;
}

body.theme-material .task-card.task-card-completed-view:hover {
  border-color: #d9dee7;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.1);
  background: #f7f9fb;
}

body.theme-material .task-card.task-card-completed-view.active {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.14);
  background: #f7f9fb;
}

body.theme-material .task-card.task-card-completed-view .task-title,
body.theme-material .task-card.task-card-completed-view .task-card-created {
  color: #7c8da3;
}

body.theme-material .task-card.task-card-completed-view .task-card-category,
body.theme-material .task-card.task-card-completed-view .task-tag {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

body.theme-material .task-card.task-card-completed-view .task-card-content-right,
body.theme-material .task-card.completed .task-card-content-right {
  display: none;
  min-width: 0;
  margin: 0;
}

body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-completed-view .task-card-content,
body.theme-material .app-container:not(.tasks-compact-view) .task-card.completed .task-card-content {
  gap: 0;
}

body.theme-material .task-card.task-card-new {
  animation: taskCardNew 2.5s ease-out;
}

body.theme-material .task-card-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: auto;
  padding: 16px 0 12px;
  gap: 12px;
  align-items: center;
}
body.theme-material .task-card-content-body {
  min-width: 0;
}
body.theme-material .task-card-content-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 58px;
}

/* Detailed mode: stable left-side done checkbox (works with/without subtitle) */
body.theme-material .app-container:not(.tasks-compact-view) .task-card-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.theme-material .app-container:not(.tasks-compact-view) .task-card-content-right {
  order: 1;
  min-width: 44px;
  justify-content: flex-start;
  align-self: center;
}

body.theme-material .app-container:not(.tasks-compact-view) .task-card-content-body {
  order: 2;
  flex: 1 1 auto;
}
body.theme-material .task-card-footer-right {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  justify-self: end;
}
body.theme-material .task-card-right-extra {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-material .task-card.task-card-network .task-card-right-extra {
  margin-left: 14px;
}
body.theme-material .task-card-footer .task-card-created {
  justify-self: end;
}

body.theme-material .task-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
}
body.theme-material .task-card-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.theme-material .task-card-done-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, color 0s ease;
}
body.theme-material .task-card-done-btn:hover {
  color: var(--color-success);
  transform: scale(1.08);
}
body.theme-material .task-card-done-btn svg,
body.theme-material .task-card-done-icon {
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.2s ease;
}
body.theme-material .task-card-done-icon-check {
  opacity: 0;
}
body.theme-material .task-card-done-btn:hover .task-card-done-icon-empty {
  opacity: 0;
}
body.theme-material .task-card-done-btn:hover .task-card-done-icon-check {
  opacity: 1;
}

/* Priority color by left checkbox/done button (desktop + mobile) */
body.theme-material .task-card .task-card-done-btn {
  color: var(--color-text-muted);
}

body.theme-material .task-card.task-card-priority-2 .task-card-done-btn {
  color: #3b82f6;
}

body.theme-material .task-card.task-card-priority-1 .task-card-done-btn {
  color: #f97316;
}

body.theme-material .task-card.task-card-priority-4 .task-card-done-btn {
  color: #ef4444;
}

body.theme-material.dark-theme .task-card .task-card-done-btn {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .task-card.task-card-priority-2 .task-card-done-btn {
  color: #60a5fa;
}

body.theme-material.dark-theme .task-card.task-card-priority-1 .task-card-done-btn {
  color: #fb923c;
}

body.theme-material.dark-theme .task-card.task-card-priority-4 .task-card-done-btn {
  color: #ef4444;
}

body.theme-material .task-title.task-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.theme-material .task-title.task-title-with-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.72;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,60a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,60Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,124Zm0-112a92.1,92.1,0,0,0-92,92c0,77.36,81.64,135.4,85.12,137.83a12,12,0,0,0,13.76,0,259,259,0,0,0,42.18-39C205.15,170.57,220,136.37,220,104A92.1,92.1,0,0,0,128,12Zm31.3,174.71A249.35,249.35,0,0,1,128,216.89a249.35,249.35,0,0,1-31.3-30.18C80,167.37,60,137.31,60,104a68,68,0,0,1,136,0C196,137.31,176,167.37,159.3,186.71Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,60a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,60Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,124Zm0-112a92.1,92.1,0,0,0-92,92c0,77.36,81.64,135.4,85.12,137.83a12,12,0,0,0,13.76,0,259,259,0,0,0,42.18-39C205.15,170.57,220,136.37,220,104A92.1,92.1,0,0,0,128,12Zm31.3,174.71A249.35,249.35,0,0,1,128,216.89a249.35,249.35,0,0,1-31.3-30.18C80,167.37,60,137.31,60,104a68,68,0,0,1,136,0C196,137.31,176,167.37,159.3,186.71Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .task-title.task-title-trash-restore::before {
  opacity: 0.9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,48v56a8,8,0,0,1-16,0V67.31L195.31,80A88,88,0,1,1,155.79,17.32,8,8,0,1,1,148.84,31.73,72,72,0,1,0,181,86.55L163.31,104A8,8,0,0,1,152,92.69l32-32a8,8,0,0,1,11.31,0l32,32A8,8,0,0,1,216,104L200,88l-3.08,3.08A87.65,87.65,0,0,1,224,48Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,48v56a8,8,0,0,1-16,0V67.31L195.31,80A88,88,0,1,1,155.79,17.32,8,8,0,1,1,148.84,31.73,72,72,0,1,0,181,86.55L163.31,104A8,8,0,0,1,152,92.69l32-32a8,8,0,0,1,11.31,0l32,32A8,8,0,0,1,216,104L200,88l-3.08,3.08A87.65,87.65,0,0,1,224,48Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .task-card-trash {
  cursor: pointer;
}

body.theme-material .task-card-trash-wrap {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body.theme-material .task-card-trash-body {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
}

body.theme-material .task-card-trash-body .task-card-content,
body.theme-material .task-card-trash-body .task-card-footer {
  grid-column: 1 / -1;
}

body.theme-material .task-card-trash-body .task-card-content {
  min-height: 58px;
}

body.theme-material .task-card-trash-body .task-card-content-body {
  padding-left: 10px;
}

body.theme-material .task-title-trash-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-material .task-card-trash-restore-btn {
  width: 32px;
  height: 32px;
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.theme-material .task-card-trash-restore-btn svg {
  width: 18px;
  height: 18px;
}

body.theme-material .task-card-trash-restore-btn:hover,
body.theme-material .task-card-trash-restore-btn:focus-visible {
  color: var(--color-success);
  outline: none;
  transform: scale(1.08);
}

body.theme-material.dark-theme .task-card-trash-restore-btn {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .task-card-trash-restore-btn:hover,
body.theme-material.dark-theme .task-card-trash-restore-btn:focus-visible {
  color: var(--color-brand-primary);
}

body.theme-material .task-card-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: auto;
  border-top: 1px solid var(--color-border-default);
  padding: 10px 0 12px;
  align-items: center;
}
body.theme-material .task-card.active .task-card-footer {
  border-top-color: var(--color-brand-accent-soft);
}

body.theme-material .task-card-due-bar {
  border-radius: 0 0 8px 8px;
}

body.theme-material .task-card-footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

body.theme-material .task-card-due-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
}

body.theme-material .task-card-due-inline-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.76;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24a104,104,0,1,0,104,104A104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm8-88V72a8,8,0,0,0-16,0v64a8,8,0,0,0,8,8h40a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24a104,104,0,1,0,104,104A104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm8-88V72a8,8,0,0,0-16,0v64a8,8,0,0,0,8,8h40a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .task-card-due-inline-overdue {
  color: #ef4444;
}

body.theme-material .task-card-due-inline-overdue .task-card-due-inline-icon {
  opacity: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Ccircle cx='128' cy='128' r='96' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpolyline points='184 128 128 128 168 168' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Ccircle cx='128' cy='128' r='96' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpolyline points='184 128 128 128 168 168' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .task-card-due-inline-mobile-overdue {
  gap: 6px;
}

body.theme-material .task-card-assignees,
body.theme-material .task-card-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.theme-material .task-card-tags {
  margin-top: 0;
}

body.theme-material .task-card-created {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
}
body.theme-material .task-card-priority-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
body.theme-material .task-card-priority-icon {
  width: 20px;
  height: 20px;
}
body.theme-material .task-card-priority-high {
  color: #f97316;
}
body.theme-material .task-card-priority-medium {
  color: #3b82f6;
}
body.theme-material .task-card-priority-low {
  color: var(--color-text-muted);
}
body.theme-material .task-card-priority-urgent {
  color: #ef4444;
}
body.theme-material .task-subtitle {
  margin-top: 4px;
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-material .task-card-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-bg-muted);
  padding: 2px 8px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 10px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-material .task-card-category-icon {
  display: none;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: currentColor;
}

body.theme-material .task-card-category-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
body.theme-material .task-tag {
  font-size: var(--text-xs);
  color: var(--color-brand-primary);
  background: var(--color-brand-primary-soft);
  padding: 2px 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact task cards (single-row like Figma): address | assignees | priority | done | due */
body.theme-material .app-container.tasks-compact-view .task-card {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 0 12px;
  min-height: 54px;
}

body.theme-material .app-container.tasks-compact-view .task-card-content,
body.theme-material .app-container.tasks-compact-view .task-card-footer,
body.theme-material .app-container.tasks-compact-view .task-card-footer-left,
body.theme-material .app-container.tasks-compact-view .task-card-footer-right {
  display: contents;
}

body.theme-material .app-container.tasks-compact-view .task-card-content-body {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

body.theme-material .app-container.tasks-compact-view .task-card-assignees {
  order: 3;
  gap: 0;
  margin-left: 12px;
}

body.theme-material .app-container.tasks-compact-view .task-card-priority-footer {
  order: 4;
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
}

body.theme-material .app-container.tasks-compact-view .task-card-right-extra {
  order: 6;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-network .task-card-right-extra {
  margin-left: 16px;
  margin-right: 6px;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-vpn .task-card-right-extra {
  margin-left: 16px;
  margin-right: 6px;
}

body.theme-material .app-container.tasks-compact-view .task-card-content-right {
  order: 1;
  min-width: auto;
  gap: 0;
  margin-left: 0;
  margin-right: 12px;
}

body.theme-material .app-container.tasks-compact-view .task-card-due-inline {
  order: 5;
  white-space: nowrap;
  font-size: 12px;
  margin-left: 12px;
  margin-right: 8px;
}

body.theme-material .app-container.tasks-compact-view .task-card-due-inline-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

body.theme-material .app-container.tasks-compact-view .task-title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-material .app-container.tasks-compact-view .task-title.task-title-with-icon {
  display: block;
}

body.theme-material .app-container.tasks-compact-view .task-title.task-title-with-icon::before {
  display: none;
}

body.theme-material .app-container.tasks-compact-view .task-subtitle,
body.theme-material .app-container.tasks-compact-view .task-card-tags,
body.theme-material .app-container.tasks-compact-view .task-card-created,
body.theme-material .app-container.tasks-compact-view .task-card-category {
  display: none !important;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-staff-view .task-card-category {
  display: inline-flex !important;
  order: 6;
  margin-left: 12px;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-my-view .task-card-category {
  display: inline-flex !important;
  order: 6;
  margin-left: 12px;
}

body.theme-material .app-container.tasks-compact-view .task-card .task-card-category {
  align-items: center;
  justify-content: center;
  order: 6;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-trash .task-card-trash-wrap,
body.theme-material .app-container.tasks-compact-view .task-card.task-card-trash .task-card-trash-body,
body.theme-material .app-container.tasks-compact-view .task-card.task-card-trash .task-card-content {
  display: contents;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-trash .task-card-content-body {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-trash .task-card-content-right {
  order: 8;
  min-width: 24px;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-trash .task-card-trash-restore-btn {
  width: 24px;
  height: 24px;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-trash .task-card-trash-restore-btn svg {
  width: 16px;
  height: 16px;
}

body.theme-material .app-container.tasks-compact-view .task-card-priority-icon {
  width: 16px;
  height: 16px;
}

body.theme-material .app-container.tasks-compact-view .task-card-avatar,
body.theme-material .app-container.tasks-compact-view .task-card-avatar-more {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 10px !important;
  line-height: 14px !important;
}

body.theme-material .app-container.tasks-compact-view .task-card-assignees .task-card-avatar + .task-card-avatar,
body.theme-material .app-container.tasks-compact-view .task-card-assignees .task-card-avatar + .task-card-avatar-more,
body.theme-material .app-container.tasks-compact-view .task-card-assignees .task-card-avatar-more + .task-card-avatar {
  margin-left: -7px !important;
}

body.theme-material .app-container.tasks-compact-view .task-card-done-btn {
  width: 24px;
  height: 24px;
}

body.theme-material .app-container.tasks-compact-view .task-card-done-btn .task-card-done-icon {
  width: 16px;
  height: 16px;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-content-right {
  order: 1 !important;
  margin-right: 10px;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-content-body {
  order: 2 !important;
  flex: 1 1 0;
  min-width: 0;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-content {
  order: 1 !important;
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-footer {
  order: 2 !important;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  border-top: none !important;
  padding-top: 0 !important;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-footer-left {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-creator {
  order: 2 !important;
  flex: 0 0 auto;
  margin-left: 10px;
  margin-right: 0;
  white-space: nowrap;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-creator-avatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 9px;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-meta {
  order: 1 !important;
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-meta {
  display: none;
  order: 4;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  margin-left: 0;
  white-space: nowrap;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-value {
  display: inline-flex;
  align-items: center;
  max-width: 86px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-brand-primary);
  background: var(--color-brand-primary-soft);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 2px 6px;
}

body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-switch .task-switch-compact-meta {
  display: none;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-title-full {
  display: inline;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-title-compact {
  display: none;
}

body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-switch .task-switch-title-compact {
  display: none;
}

body.theme-material .task-card.task-card-switch .task-switch-mobile-compact-text {
  display: none;
}

body.theme-material .task-card.task-card-switch .task-switch-compact-desktop-row {
  display: none;
}

body.theme-material .task-card.task-card-switch .task-switch-compact-mobile-row {
  display: none;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-link-wrap {
  flex-wrap: wrap;
  min-width: 0;
  overflow: visible;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-link-label {
  display: inline;
}

body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-link-tag {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

@media (min-width: 901px) {
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch {
    display: block;
    padding: 0 12px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch > .task-card-content,
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch > .task-card-footer {
    display: none !important;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-desktop-row {
    min-height: 54px;
    width: 100%;
    display: grid;
    grid-template-columns: 24px minmax(220px, 1fr) auto 28px;
    align-items: center;
    gap: 12px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-desktop-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-desktop-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.25;
    color: var(--color-text-primary);
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-desktop-row .task-switch-meta {
    display: inline-flex;
    min-width: 0;
    white-space: nowrap;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-desktop-row .task-switch-link-wrap {
    flex-wrap: nowrap;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-desktop-row .task-card-creator {
    margin: 0;
    justify-self: end;
  }
}

body.theme-material .task-card-avatar,
body.theme-material .assignee-chip-avatar {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 999px;
  font-family: var(--font-family-body);
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-brand-accent-soft);
  color: var(--color-brand-primary);
}
body.theme-material .task-card-avatar,
body.theme-material .task-card-avatar-more {
  border-radius: 999px;
}

body.theme-material .task-card-avatar-more {
  width: 22px;
  height: 22px;
  min-width: 22px;
  font-family: var(--font-family-body);
  font-size: 8px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .task-card {
  border-color: var(--color-border-default);
  background: var(--color-bg-surface);
}

body.theme-material.dark-theme .task-card:hover {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
  background: var(--color-bg-surface);
}

body.theme-material.dark-theme .task-card.active {
  border-color: var(--color-brand-accent);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
  background: var(--color-bg-surface);
}

body.theme-material.dark-theme .task-card.task-card-completed-view {
  border-color: #374151;
  background: #111827;
  color: #94a3b8;
}

body.theme-material.dark-theme .task-card.task-card-completed-view:hover {
  border-color: #4b5563;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.14);
  background: #172033;
}

body.theme-material.dark-theme .task-card.task-card-completed-view.active {
  border-color: #64748b;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.18);
  background: #172033;
}

body.theme-material.dark-theme .task-card.task-card-completed-view .task-title,
body.theme-material.dark-theme .task-card.task-card-completed-view .task-card-created {
  color: #94a3b8;
}

body.theme-material.dark-theme .task-card.task-card-completed-view .task-card-category,
body.theme-material.dark-theme .task-card.task-card-completed-view .task-tag {
  background: #1f2937;
  color: #cbd5e1;
  border-color: #374151;
}

body.theme-material.dark-theme .task-card-footer {
  border-top-color: var(--color-border-default);
}
body.theme-material.dark-theme .task-card.active .task-card-footer {
  border-top-color: var(--color-border-default);
}

body.theme-material.dark-theme .task-card-due-inline {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .task-card-due-inline-icon {
  background-color: currentColor;
}

body.theme-material.dark-theme .task-card-due-inline-overdue {
  color: #f87171;
}

body.theme-material.dark-theme .task-card-due-inline-overdue .task-card-due-inline-icon {
  opacity: 1;
}

body.theme-material.dark-theme .task-card-created {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .task-card-priority-high {
  color: #fb923c;
}

body.theme-material.dark-theme .task-card-priority-medium {
  color: #60a5fa;
}

body.theme-material.dark-theme .task-card-priority-low {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .task-card-priority-urgent {
  color: #ef4444;
}

body.theme-material.dark-theme .task-card-avatar,
body.theme-material.dark-theme .assignee-chip-avatar {
  background: var(--color-brand-primary-soft);
  color: var(--color-brand-accent);
}

body.theme-material.dark-theme .task-card-avatar-more {
  background: var(--color-bg-hover);
  color: var(--color-text-secondary);
}

/* ============================================================
   MAIN STICKY TOOLBAR (center column)
============================================================ */
body.theme-material .main-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0 12px;
  margin: 0 0 14px;
  background: var(--color-bg-surface-alt);
  isolation: isolate;
}

body.theme-material .main-toolbar::after {
  content: "";
  position: absolute;
  left: -32px;
  right: -32px;
  bottom: -1px;
  height: 1px;
  background: var(--color-border-default);
  pointer-events: none;
}

body.theme-material .main-toolbar::before {
  content: "";
  position: absolute;
  top: -56px;
  left: -40px;
  right: -40px;
  bottom: -2px;
  background: var(--color-bg-surface-alt);
  z-index: -1;
  pointer-events: none;
}

body.theme-material .main-search-trigger {
  height: 44px;
  width: 100%;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  cursor: text;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

body.theme-material .main-search-trigger:hover {
  border-color: var(--color-border-strong);
  box-shadow: none;
}

body.theme-material .main-search-trigger:active,
body.theme-material .main-search-trigger:focus-within {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

body.theme-material .main-search-trigger-icon {
  flex: 0 0 auto;
  opacity: 0.85;
}

body.theme-material .main-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.2;
}

body.theme-material .main-search-input::placeholder {
  color: var(--color-text-secondary);
}

body.theme-material .main-search-global-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

body.theme-material .main-search-global-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}

body.theme-material .main-search-global-btn.is-active {
  width: auto;
  min-width: 0;
  padding: 0 10px 0 8px;
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

body.theme-material .main-search-global-btn:active {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

body.theme-material .main-search-global-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

body.theme-material .main-search-global-btn-label {
  display: none;
  font-family: var(--font-family-body);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

body.theme-material .main-search-global-btn.is-active .main-search-global-btn-label {
  display: inline;
}

body.theme-material .main-search-global-btn-label-mobile {
  display: none;
}

body.theme-material .main-search-global-btn.is-active .main-search-global-btn-label-desktop {
  display: inline;
}

body.theme-material .main-search-clear-btn {
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 0;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.theme-material .main-search-clear-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.theme-material .main-search-trigger.has-value .main-search-clear-btn {
  display: inline-flex;
}

body.theme-material .main-search-clear-btn:hover {
  background: var(--color-brand-primary-soft);
  color: var(--color-text-primary);
}

body.theme-material .main-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.theme-material :is(.main-toolbar-actions, .main-title-actions) .bulk-select-btn {
  min-width: 116px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
}

body.theme-material :is(.main-toolbar-actions, .main-title-actions) .bulk-select-btn.active {
  background: transparent;
}

body.theme-material :is(.main-toolbar-actions, .main-title-actions) .bulk-select-btn.active:hover {
  background: var(--color-brand-primary-soft);
  transform: translateY(-1px);
}

body.theme-material :is(.main-toolbar-actions, .main-title-actions) .bulk-select-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M152,40a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,40Zm-8,168H112a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM208,48V72a8,8,0,0,0,16,0V48a16,16,0,0,0-16-16H184a8,8,0,0,0,0,16Zm8,56a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V112A8,8,0,0,0,216,104ZM40,152a8,8,0,0,0,8-8V112a8,8,0,0,0-16,0v32A8,8,0,0,0,40,152Zm32,56H48V184a8,8,0,0,0-16,0v24a16,16,0,0,0,16,16H72a8,8,0,0,0,0-16ZM72,32H48A16,16,0,0,0,32,48V72a8,8,0,0,0,16,0V48H72a8,8,0,0,0,0-16ZM240,208H224V192a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V224h16a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M152,40a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,40Zm-8,168H112a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM208,48V72a8,8,0,0,0,16,0V48a16,16,0,0,0-16-16H184a8,8,0,0,0,0,16Zm8,56a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V112A8,8,0,0,0,216,104ZM40,152a8,8,0,0,0,8-8V112a8,8,0,0,0-16,0v32A8,8,0,0,0,40,152Zm32,56H48V184a8,8,0,0,0-16,0v24a16,16,0,0,0,16,16H72a8,8,0,0,0,0-16ZM72,32H48A16,16,0,0,0,32,48V72a8,8,0,0,0,16,0V48H72a8,8,0,0,0,0-16ZM240,208H224V192a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V224h16a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material :is(.main-toolbar-actions, .main-title-actions) .bulk-select-btn.active::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208ZM165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208ZM165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .main-toolbar-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-surface-alt);
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

body.theme-material .main-toolbar-btn:hover {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

body.theme-material .main-toolbar-btn:focus-visible {
  outline: 2px solid var(--color-focus-border);
  outline-offset: 2px;
}

body.theme-material .main-toolbar-btn-icon {
  width: 42px;
  padding: 0;
}

body.theme-material #main-filter-btn {
  min-width: 104px;
}

body.theme-material #main-sort-btn {
  min-width: 132px;
}

body.theme-material .main-toolbar-btn-primary {
  min-width: 152px;
}

body.theme-material .main-toolbar-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.theme-material .main-toolbar-plus svg {
  width: 16px;
  height: 16px;
}

body.theme-material .main-fab-add {
  display: none;
}

body.theme-material .main-title-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

body.theme-material .main-title-row .main-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

body.theme-material #add-task-btn-legacy {
  display: none;
}

body.theme-material .main-title-row #refresh-tasks-btn,
body.theme-material .main-title-row #sort-tasks-btn {
  display: none;
}

body.theme-material .main-title-row .main-title {
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.theme-material .filters-accordion-section {
  display: none;
}

body.theme-material .filters-accordion-section.expanded {
  display: block;
}

body.theme-material .filters-accordion-filter-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

body.theme-material .filters-badge {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-brand-primary);
  flex-shrink: 0;
}

body.theme-material .filters-badge.active {
  display: inline-block;
}

body.theme-material .filters-counter {
  display: none;
  margin: 0 0 12px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

body.theme-material .filters-counter.visible {
  display: block;
}

body.theme-material .filters-accordion-trigger {
  display: none;
}

body.theme-material #main-filter-btn.is-active {
  border: none;
  background: var(--color-brand-primary-soft);
  box-shadow: none;
  color: var(--color-text-primary);
}

body.theme-material.dark-theme .main-toolbar {
  background: var(--color-bg-surface);
}

body.theme-material.dark-theme .main-toolbar::after {
  background: var(--color-border-default);
}

body.theme-material.dark-theme .main-toolbar::before {
  background: var(--color-bg-surface);
}

body.theme-material.dark-theme .main-toolbar,
body.theme-material.dark-theme .main-toolbar::before,
body.theme-material.dark-theme .main-toolbar::after {
  background: var(--color-bg-surface) !important;
}

body.theme-material.dark-theme .main-toolbar::after {
  background: var(--color-border-strong) !important;
}

body.theme-material.dark-theme .main-search-trigger {
  border-color: var(--color-border-strong);
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
}

body.theme-material.dark-theme .main-search-trigger:hover {
  border-color: var(--color-border-strong);
  box-shadow: none;
}

body.theme-material.dark-theme .main-search-trigger:active,
body.theme-material.dark-theme .main-search-trigger:focus-within {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

body.theme-material.dark-theme .main-search-input {
  color: var(--color-text-primary);
}

body.theme-material.dark-theme .main-search-input::placeholder {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .main-search-global-btn {
  color: #94a3b8;
}

body.theme-material.dark-theme .main-search-global-btn:hover {
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
}

body.theme-material.dark-theme .main-search-global-btn.is-active {
  background: rgba(59, 130, 246, 0.24);
  color: #dbeafe;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
}

body.theme-material.dark-theme .main-search-global-btn:active {
  background: rgba(59, 130, 246, 0.2);
  color: #dbeafe;
}

body.theme-material.dark-theme .main-search-clear-btn {
  color: var(--color-text-primary);
}

body.theme-material.dark-theme .main-search-clear-btn:hover {
  background: rgba(59, 130, 246, 0.22);
  color: #dbeafe;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.42);
}

body.theme-material.dark-theme .main-search-clear-btn:active {
  background: rgba(59, 130, 246, 0.3);
  color: #eff6ff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55);
}

body.theme-material.dark-theme .main-toolbar-btn {
  border-color: var(--color-border-strong);
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
}

body.theme-material.dark-theme .main-toolbar-btn:hover {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

body.theme-material.dark-theme #main-filter-btn.is-active {
  border: none;
  background: var(--color-bg-hover);
  box-shadow: none;
  color: var(--color-text-primary);
}

body.theme-material.dark-theme :is(.main-toolbar-actions, .main-title-actions) .bulk-select-btn.active {
  background: transparent;
  color: var(--color-brand-primary-foreground);
  border: none;
  box-shadow: none;
}

body.theme-material.dark-theme :is(.main-toolbar-actions, .main-title-actions) .bulk-select-btn.active:hover {
  background: var(--color-brand-primary-soft);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  body.theme-material .main-search-global-btn.is-active {
    gap: 4px;
    padding: 0 8px 0 6px;
  }

  body.theme-material .main-search-global-btn.is-active .main-search-global-btn-label {
    font-size: 12px;
  }

  body.theme-material .main-search-global-btn.is-active .main-search-global-btn-label-desktop {
    display: none;
  }

  body.theme-material .main-search-global-btn.is-active .main-search-global-btn-label-mobile {
    display: inline;
  }

  body.theme-material #bulk-select-btn {
    display: none !important;
  }

  /* Mobile compact mode: hide assignees in task cards (visible in task editor/info only) */
  body.theme-material .app-container.tasks-compact-view .task-card-assignees {
    display: none !important;
  }

  /* Mobile compact mode: hide priority icon; priority is shown by left checkbox(done) color */
  body.theme-material .app-container.tasks-compact-view .task-card-priority-footer {
    display: none !important;
  }

  /* Mobile compact mode: tighter horizontal spacing to fit more task info */
  body.theme-material .app-container.tasks-compact-view .task-card {
    padding: 0 4px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card-content-right {
    margin-right: 4px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-content-right {
    margin-right: 2px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-done-btn {
    width: 22px;
    height: 22px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-done-btn .task-card-done-icon {
    width: 15px;
    height: 15px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card-due-inline,
  body.theme-material .app-container.tasks-compact-view .task-card-priority-footer {
    margin-left: 8px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-staff-view .task-card-category,
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-my-view .task-card-category {
    margin-left: 8px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card .task-card-category {
    display: inline-flex !important;
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0;
    margin-left: 8px;
    margin-right: 0;
    border-radius: 10px;
    overflow: visible;
  }

  body.theme-material .app-container.tasks-compact-view .task-card .task-card-category-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card .task-card-category-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.theme-material .app-container.tasks-compact-view .task-title {
    font-size: 14px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-title {
    font-size: 14px;
    font-weight: 400;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-title-full,
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-title-compact,
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-meta,
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-meta {
    display: none !important;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-mobile-compact-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-content {
    align-items: center;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-content-body {
    margin-left: 0;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-footer {
    align-self: center;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-footer-left {
    align-items: center;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-card-creator {
    align-self: center;
    margin-top: 0;
    transform: none;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch {
    display: block;
    padding: 0 8px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch > .task-switch-compact-desktop-row,
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch > .task-card-content,
  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch > .task-card-footer {
    display: none !important;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-mobile-row {
    min-height: 64px;
    width: 100%;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 6px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-mobile-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-mobile-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-mobile-row .task-card-creator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
    margin: 0;
    transform: none;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-switch .task-switch-compact-mobile-row .task-card-creator-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 10px;
  }

  /* Priority color by left checkbox/done button in compact cards */
  body.theme-material .app-container.tasks-compact-view .task-card .task-card-done-btn {
    color: var(--color-text-muted);
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-priority-2 .task-card-done-btn {
    color: #3b82f6;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-priority-1 .task-card-done-btn {
    color: #f97316;
  }

  body.theme-material .app-container.tasks-compact-view .task-card.task-card-priority-4 .task-card-done-btn {
    color: #ef4444;
  }

  body.theme-material.dark-theme .app-container.tasks-compact-view .task-card .task-card-done-btn {
    color: var(--color-text-secondary);
  }

  body.theme-material.dark-theme .app-container.tasks-compact-view .task-card.task-card-priority-2 .task-card-done-btn {
    color: #60a5fa;
  }

  body.theme-material.dark-theme .app-container.tasks-compact-view .task-card.task-card-priority-1 .task-card-done-btn {
    color: #fb923c;
  }

  body.theme-material.dark-theme .app-container.tasks-compact-view .task-card.task-card-priority-4 .task-card-done-btn {
    color: #ef4444;
  }

  /* Mobile detailed mode: same priority behavior as compact mode */
  body.theme-material .app-container:not(.tasks-compact-view) .task-card-priority-footer {
    display: none !important;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card .task-card-done-btn {
    color: var(--color-text-muted);
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-priority-2 .task-card-done-btn {
    color: #3b82f6;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-priority-1 .task-card-done-btn {
    color: #f97316;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-priority-4 .task-card-done-btn {
    color: #ef4444;
  }

  body.theme-material.dark-theme .app-container:not(.tasks-compact-view) .task-card .task-card-done-btn {
    color: var(--color-text-secondary);
  }

  body.theme-material.dark-theme .app-container:not(.tasks-compact-view) .task-card.task-card-priority-2 .task-card-done-btn {
    color: #60a5fa;
  }

  body.theme-material.dark-theme .app-container:not(.tasks-compact-view) .task-card.task-card-priority-1 .task-card-done-btn {
    color: #fb923c;
  }

  body.theme-material.dark-theme .app-container:not(.tasks-compact-view) .task-card.task-card-priority-4 .task-card-done-btn {
    color: #ef4444;
  }

  /* Mobile detailed mode: hide created date in card footer */
  body.theme-material .app-container:not(.tasks-compact-view) .task-card .task-card-created {
    display: none !important;
  }

  /* Mobile detailed mode: align assignee avatars to the right side */
  body.theme-material .app-container:not(.tasks-compact-view) .task-card .task-card-footer-left {
    width: 100%;
    grid-column: 1 / -1;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card .task-card-assignees {
    margin-left: 0;
    justify-content: flex-start;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-due .task-card-assignees {
    margin-left: auto;
    justify-content: flex-end;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-assignees:not(.task-card-footer-has-due):not(.task-card-footer-has-category) .task-card-assignees {
    margin-left: auto;
    justify-content: flex-end;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-category .task-card-footer-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-category .task-card-due-inline {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-category .task-card-assignees {
    flex: 0 0 auto;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-category .task-card-category {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 92px;
    margin-left: auto;
    margin-right: 0;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-category.task-card-footer-has-due .task-card-tags,
  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-footer-has-category.task-card-footer-has-assignees .task-card-tags {
    display: none !important;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-network .task-card-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-vpn .task-card-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-network .task-card-footer-left {
    width: auto;
    grid-column: 1;
    min-width: 0;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-vpn .task-card-footer-left {
    width: auto;
    grid-column: 1;
    min-width: 0;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-network .task-card-footer-right {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    align-items: center;
    justify-content: flex-end;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-vpn .task-card-footer-right {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    align-items: center;
    justify-content: flex-end;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-network .task-card-right-extra {
    margin-left: auto;
    margin-right: 4px;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-vpn .task-card-right-extra {
    margin-left: auto;
    margin-right: 4px;
  }

  body.theme-material .app-container:not(.tasks-compact-view) .task-card.task-card-network .task-card-right-extra .task-card-creator {
    margin: 0;
    align-self: center;
  }

  body.theme-material #add-task-btn {
    display: none !important;
  }

  body.theme-material .main-toolbar-actions {
    display: none !important;
  }

  body.theme-material .app-container.right-panel-open .main-fab-add,
  body.theme-material.history-open .main-fab-add {
    display: none !important;
  }

  body.theme-material .main-fab-add {
    display: none !important;
  }

  body.theme-material .main-fab-add:hover {
    background: var(--color-brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-3);
  }

  body.theme-material .main-fab-add:active {
    transform: translateY(0);
  }

  body.theme-material .main-fab-add svg {
    width: 24px;
    height: 24px;
  }
}

/* Bulk selection bottom bar (Material owner: this file) */
body.theme-material .bulk-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-surface-alt);
  border-top: 1px solid var(--color-border-default);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
}

body.theme-material .bulk-action-bar.visible {
  display: flex;
}

body.theme-material .bulk-action-count {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

body.theme-material .bulk-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.theme-material.dark-theme .bulk-action-bar {
  background: var(--color-sidebar-bg) !important;
  border-top: 1px solid var(--color-border-default) !important;
  box-shadow: var(--shadow-3);
}

body.theme-material .bulk-action-btn:focus-visible,
body.theme-material .bulk-action-bar .custom-select-trigger:focus-visible,
body.theme-material .task-card-selection-checkbox:focus-visible {
  outline: 2px solid var(--color-focus-border);
  outline-offset: 2px;
}

body.theme-material .bulk-action-done::before,
body.theme-material .bulk-action-delete::before,
body.theme-material .bulk-action-cancel::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  background-color: currentColor;
}

body.theme-material .bulk-action-done::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .bulk-action-done:hover::before {
  background-color: var(--color-brand-primary);
}

body.theme-material .bulk-action-delete::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .bulk-action-delete:hover::before {
  background-color: var(--color-danger);
}

body.theme-material .bulk-action-cancel::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material .bulk-action-cancel:hover::before {
  background-color: var(--chart-5);
}

/* Selection mode cards: checkbox styled like done button + selected animation */
body.theme-material .task-card-selection-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
body.theme-material .task-card-selection-body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
}
body.theme-material .task-card.selection-mode .task-card-selection-body .task-card-content {
  grid-column: 1 / -1;
}
body.theme-material .task-card.selection-mode .task-card-selection-body .task-card-footer {
  grid-column: 1 / -1;
}
body.theme-material .task-card.selection-mode .task-card-due-bar {
  margin-left: -52px;
  padding-left: 52px;
}
body.theme-material .task-card.selection-mode {
  cursor: default;
}
body.theme-material .task-card.selection-mode .task-card-done-btn {
  display: none;
}

body.theme-material .task-card-selection-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  margin-top: 12px;
  border-radius: 10px;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%2364748b' d='M152,40a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,40Zm-8,168H112a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM208,32H184a8,8,0,0,0,0,16h24V72a8,8,0,0,0,16,0V48A16,16,0,0,0,208,32Zm8,72a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V112A8,8,0,0,0,216,104Zm0,72a8,8,0,0,0-8,8v24H184a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V184A8,8,0,0,0,216,176ZM40,152a8,8,0,0,0,8-8V112a8,8,0,0,0-16,0v32A8,8,0,0,0,40,152Zm32,56H48V184a8,8,0,0,0-16,0v24a16,16,0,0,0,16,16H72a8,8,0,0,0,0-16ZM72,32H48A16,16,0,0,0,32,48V72a8,8,0,0,0,16,0V48H72a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E");
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

body.theme-material .task-card-selection-checkbox:hover {
  opacity: 0.9;
}

body.theme-material .task-card-selection-checkbox:checked {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%231d4ed8' d='M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z'/%3E%3C/svg%3E");
  transform: scale(1.03);
}

body.theme-material .task-card-selection-checkbox:checked + .task-card-selection-body .task-card-content {
  animation: bulkSelectPulse 160ms ease-out;
}

@keyframes bulkSelectPulse {
  0% { transform: scale(0.995); }
  100% { transform: scale(1); }
}

body.theme-material.dark-theme .task-card-selection-checkbox {
  border: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%237e94b4' d='M152,40a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,40Zm-8,168H112a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM208,32H184a8,8,0,0,0,0,16h24V72a8,8,0,0,0,16,0V48A16,16,0,0,0,208,32Zm8,72a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V112A8,8,0,0,0,216,104Zm0,72a8,8,0,0,0-8,8v24H184a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V184A8,8,0,0,0,216,176ZM40,152a8,8,0,0,0,8-8V112a8,8,0,0,0-16,0v32A8,8,0,0,0,40,152Zm32,56H48V184a8,8,0,0,0-16,0v24a16,16,0,0,0,16,16H72a8,8,0,0,0,0-16ZM72,32H48A16,16,0,0,0,32,48V72a8,8,0,0,0,16,0V48H72a8,8,0,0,0,0-16Z'/%3E%3C/svg%3E");
}

body.theme-material.dark-theme .task-card-selection-checkbox:hover {
  opacity: 0.9;
}

body.theme-material.dark-theme .task-card-selection-checkbox:checked {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23bfdbfe' d='M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z'/%3E%3C/svg%3E");
}

body.theme-material.dark-theme .task-card-selection-checkbox:checked + .task-card-selection-body .task-card-content {
  animation: bulkSelectPulse 160ms ease-out;
}


body.theme-material.dark-theme :is(
  .main-toolbar-btn,
  .main-toolbar-btn-primary,
  .main-search-trigger,
  .main-search-clear-btn
) svg {
  color: var(--color-text-primary);
  stroke: currentColor;
}

/* ============================================================
   FILTERS PANEL VISUAL ALIGNMENT (center column)
============================================================ */
body.theme-material .filters-accordion-section {
  display: block;
  background: var(--color-bg-surface-alt);
  border: 1px solid var(--color-border-default);
  border-radius: 14px;
  box-shadow: none;
  margin-top: 2px;
  margin-bottom: 14px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  z-index: 70;
}

body.theme-material .filters-accordion-section.expanded {
  border-color: var(--color-border-default);
  z-index: 90;
}

body.theme-material .filters-accordion-trigger {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 13px;
  color: var(--color-text-secondary);
  background: transparent;
  transition: background-color 0.16s ease, color 0.16s ease;
}

body.theme-material .filters-accordion-trigger:hover {
  background: var(--color-bg-muted);
}

body.theme-material .filters-accordion-title {
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}

body.theme-material .filters-accordion-icon {
  opacity: 0.78;
}

body.theme-material .filters-accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

body.theme-material .filters-accordion-section.expanded .filters-accordion-content {
  max-height: 520px;
  overflow: visible;
  border-top: none;
  border-radius: 14px;
}

body.theme-material .filters-accordion-content .filters-inner {
  padding: 14px 16px 12px;
  background: var(--color-bg-surface-alt);
  border-top: none;
  border-radius: 14px;
}

body.theme-material .filters-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px 16px;
  align-items: end;
}

body.theme-material .filter-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

body.theme-material .filters-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

body.theme-material .filter-select {
  /* Layout-only fallback: visual style lives in components/custom-select.css */
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.theme-material .filters-row-reset {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-default);
  display: flex;
  justify-content: flex-start;
}

body.theme-material .filter-reset-btn {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 8px;
}

body.theme-material .filter-reset-btn:hover {
  background: transparent;
  color: var(--color-brand-primary-hover);
}

body.theme-material.dark-theme .filters-accordion-section.expanded {
  background: var(--color-bg-surface-alt);
  border-color: var(--color-border-default);
}

body.theme-material.dark-theme .filters-accordion-content .filters-inner {
  background: var(--color-bg-surface-alt);
}

body.theme-material.dark-theme .filters-accordion-trigger {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .filters-accordion-trigger:hover {
  background: var(--color-bg-muted);
}

body.theme-material.dark-theme .filters-row-reset {
  border-top-color: var(--color-border-strong);
}

body.theme-material.dark-theme .filters-label {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .filter-reset-btn {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme .filter-reset-btn:hover {
  color: var(--color-brand-accent);
}

@media (max-width: 1200px) {
  body.theme-material .main-toolbar {
    grid-template-columns: 1fr;
  }

  body.theme-material .main-toolbar-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  body.theme-material .filters-accordion-section {
    width: 100%;
    overflow: hidden;
  }

  body.theme-material .filters-accordion-content .filters-inner {
    padding: 12px;
  }

  body.theme-material .filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  body.theme-material .filters-row-reset {
    margin-top: 10px;
    padding-top: 10px;
  }

  body.theme-material .main-title-row {
    gap: 8px;
    min-height: 40px;
  }

  body.theme-material .main-title-row .main-title {
    min-height: 40px;
    font-size: 24px;
  }

  body.theme-material .main-title-row .main-title-actions {
    gap: 6px;
    margin-left: auto;
    flex-wrap: nowrap;
  }

  body.theme-material .main-title-row .main-toolbar-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 8px;
    gap: 6px;
    border-radius: 10px;
    font-size: 14px;
  }

  body.theme-material .main-title-row #main-filter-btn {
    min-width: 42px;
    width: 42px;
    padding: 0;
    gap: 0;
  }

  body.theme-material .main-title-row #bulk-select-btn {
    min-width: 86px;
  }

  body.theme-material #main-filter-btn > span,
  body.theme-material #main-sort-btn > span {
    display: none !important;
  }

  body.theme-material .main-title-row #main-sort-btn {
    min-width: 42px !important;
    width: 42px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body.theme-material #main-sort-btn::before {
    margin: 0 !important;
  }

  body.theme-material .task-card {
    margin-bottom: 12px;
    min-height: 48px;
    padding: 0 18px;
    -webkit-tap-highlight-color: transparent;
  }

  body.theme-material .task-card-content {
    padding: 16px 0 10px;
    gap: 12px;
  }

  body.theme-material .task-card-footer {
    padding: 10px 0 14px;
  }

  body.theme-material .task-title {
    font-size: var(--text-lg);
  }

  body.theme-material .task-card-content-right {
    min-width: 74px;
  }

  body.theme-material .task-card-done-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  body.theme-material .task-card-done-btn svg,
  body.theme-material .task-card-done-icon {
    width: 20px;
    height: 20px;
  }

  body.theme-material .task-card.selection-mode .task-card-due-bar {
    margin-left: -50px;
    padding-left: 50px;
  }

  body.theme-material .filters-badge {
    width: 10px;
    height: 10px;
  }

  body.theme-material .filters-counter {
    font-size: 15px;
    margin-bottom: 14px;
  }

  body.theme-material .main-toolbar {
    top: 0;
    padding-top: 10px;
    z-index: 80;
  }

  body.theme-material .main-search-trigger {
    height: 42px;
  }

  body.theme-material .main-toolbar-btn {
    height: 42px;
  }

  body.theme-material .bulk-action-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--color-border-default);
    border-radius: 16px;
    box-shadow: var(--shadow-3);
    backdrop-filter: blur(8px);
    padding: 12px;
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    z-index: 2200;
  }

  body.theme-material .bulk-action-bar.visible {
    display: grid;
  }

  body.theme-material .bulk-action-count {
    min-width: 0;
    font-size: 16px;
    line-height: 1.25;
  }

  body.theme-material .bulk-action-bar .bulk-action-buttons {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  body.theme-material .bulk-action-bar .bulk-action-buttons > * {
    min-width: 0;
  }

  body.theme-material .bulk-action-bar .bulk-action-btn,
  body.theme-material .bulk-action-bar .custom-select-root,
  body.theme-material .bulk-action-bar .custom-select-trigger {
    min-height: 40px;
    height: 40px;
  }

  body.theme-material .bulk-action-bar .bulk-action-done,
  body.theme-material .bulk-action-bar .bulk-action-delete {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  body.theme-material .bulk-action-bar .bulk-action-move-wrap,
  body.theme-material .bulk-action-bar .custom-select-root {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  body.theme-material .bulk-action-bar .custom-select-trigger {
    width: 100%;
  }

  body.theme-material.dark-theme .bulk-action-bar {
    border-color: var(--color-border-strong);
    background: var(--color-sidebar-bg) !important;
  }

  body.theme-material .bulk-action-bar .bulk-action-cancel {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    justify-content: center;
  }

  body.theme-material .bulk-action-bar .bulk-action-cancel::before {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  body.theme-material.selection-mode .main-fab-add {
    display: none !important;
  }

}

@media (max-width: 560px) {
  body.theme-material .filters-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   FIGMA CENTER SYNC (2026-04-06)
   Scope: only center column (toolbar + title row + cards)
============================================================ */
body.theme-material .main {
  padding: 0;
  background: #ffffff;
}

body.theme-material .main,
body.theme-material .main * {
  font-family: var(--font-family-body);
}

body.theme-material .main-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(280px, 448px) 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 24px;
  margin: 0;
  background: #ffffff;
  border-bottom: 0.8px solid #e2e8f0;
}

body.theme-material .main-toolbar::before,
body.theme-material .main-toolbar::after {
  display: none;
}

body.theme-material .main-search-trigger {
  height: 38.6px;
  border-radius: 6px;
  border: 0.8px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  gap: 8px;
  padding: 0 12px;
  box-shadow: none;
}

body.theme-material .main-search-trigger:hover,
body.theme-material .main-search-trigger:focus-within {
  border-color: #cbd5e1;
  box-shadow: none;
}

body.theme-material .main-search-trigger-icon {
  width: 16px;
  height: 16px;
  opacity: 1;
}

body.theme-material .main-search-input {
  font-size: 14px;
  line-height: 20px;
  color: #0f172a;
}

body.theme-material .main-search-input::placeholder {
  color: rgba(15, 23, 42, 0.5);
}

body.theme-material .main-search-trigger.is-global-active {
  gap: 6px;
}

body.theme-material .main-search-trigger.is-global-active:not(.has-text) .main-search-input {
  flex: 0 1 0;
  width: 0;
}

body.theme-material .main-search-trigger.is-global-active:not(.has-text) .main-search-input::placeholder {
  color: transparent;
}

body.theme-material .main-toolbar-actions {
  width: 100%;
  justify-content: flex-end;
}

body.theme-material .main-toolbar-btn-primary {
  min-width: 145px;
  height: 37px;
  border: none;
  border-radius: 6px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  gap: 8px;
}

body.theme-material .main-toolbar-btn-primary:hover {
  border: none;
  background: #2563eb;
  box-shadow: none;
}

body.theme-material .main-title-row {
  margin-top: 0;
  min-height: 66.4px;
  padding: 16px 24px;
  border-bottom: 0.8px solid #e2e8f0;
  gap: 8px;
  align-items: center;
}

body.theme-material .main-title-row .main-title {
  margin: 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #0f172a;
}

body.theme-material .main-title-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #3b82f6;
  flex: 0 0 auto;
}

body.theme-material .main-title-icon-wrap:empty {
  display: none;
}

body.theme-material .main-title-icon-wrap .category-item-icon {
  width: 22px;
  height: 22px;
}

body.theme-material .main-title-icon-wrap svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
}

body.theme-material .main-title-text {
  display: inline-block;
}

body.theme-material .main-title-row .main-title-actions {
  gap: 8px;
  margin-left: auto;
}

body.theme-material .main-title-row #refresh-tasks-btn,
body.theme-material .main-title-row #sort-tasks-btn {
  display: none !important;
}

body.theme-material .main-title-actions .main-toolbar-btn,
body.theme-material .main-title-actions .bulk-select-btn {
  height: 44px;
  border: 0.8px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  padding: 0 12px;
  gap: 8px;
}

body.theme-material .main-title-actions .main-toolbar-btn:hover,
body.theme-material .main-title-actions .bulk-select-btn:hover {
  border-color: #cbd5e1;
  box-shadow: none;
  transform: none;
  background: #f8fafc;
}

body.theme-material #main-filter-btn {
  width: 98px;
  min-width: 98px;
  max-width: 98px;
}

body.theme-material #main-sort-btn {
  min-width: 128px;
}

body.theme-material .main-title-actions .bulk-select-btn {
  min-width: 106px;
}

body.theme-material #main-sort-btn > svg {
  display: none;
}

body.theme-material #main-sort-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpolyline points='112 176 80 208 48 176' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='80' y1='48' x2='80' y2='208' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpolyline points='144 80 176 48 208 80' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='176' y1='208' x2='176' y2='48' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpolyline points='112 176 80 208 48 176' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='80' y1='48' x2='80' y2='208' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpolyline points='144 80 176 48 208 80' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='176' y1='208' x2='176' y2='48' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E") no-repeat center/contain;
  transform: none;
  transition: transform 0.22s ease;
}

body.theme-material #main-sort-btn[data-sort-order="oldest"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M144 176L176 208L208 176' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M176 48V208' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M112 80L80 48L48 80' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M80 208V48' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M144 176L176 208L208 176' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M176 48V208' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M112 80L80 48L48 80' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M80 208V48' fill='none' stroke='black' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  transform: none;
}

body.theme-material #task-list,
body.theme-material #completed-list,
body.theme-material .filters-counter,
body.theme-material .completed-title {
  margin-left: 24px;
  margin-right: 24px;
}

body.theme-material .task-card {
  border: 0.8px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 16.8px;
  margin-bottom: 12px;
}

body.theme-material .task-card:hover {
  border-color: #3b82f6;
  box-shadow: none;
  background: #ffffff;
}

body.theme-material .task-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  box-shadow: none;
}

body.theme-material .task-card-content {
  padding: 16.8px 0 12px;
  gap: 12px;
}

body.theme-material .task-title.task-title-with-icon::before {
  display: none;
}

body.theme-material .task-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: #0f172a;
}

body.theme-material .task-subtitle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #64748b;
}

body.theme-material .task-card-footer {
  border-top: 0.8px solid #e2e8f0;
  padding: 12px 0 12px;
}

body.theme-material .task-card-due-inline {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #64748b;
}

body.theme-material .task-card-due-inline.task-card-due-inline-overdue {
  color: #ef4444;
}

body.theme-material .task-card-due-inline-icon {
  opacity: 1;
}

body.theme-material .task-card-assignees {
  gap: 0;
}

body.theme-material .task-card-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1.6px solid #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

body.theme-material .task-card-assignees .task-card-avatar + .task-card-avatar {
  margin-left: -8px;
}

body.theme-material .task-card-avatar-more {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1.6px solid #ffffff;
  font-size: 12px;
}

body.theme-material .task-card-tags {
  gap: 8px;
}

body.theme-material .task-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

body.theme-material .task-card-created {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #64748b;
}

/* ============================================================
   HOTFIX: center parity tweaks from review
============================================================ */
body.theme-material .main-toolbar {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 12px 24px !important;
  box-sizing: border-box !important;
}

body.theme-material .main-toolbar .main-toolbar-btn-primary,
body.theme-material .main-toolbar #add-task-btn {
  min-width: 145px !important;
  height: 37px !important;
  border-radius: 6px !important;
  border: none !important;
  background: #3b82f6 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body.theme-material .main-toolbar #add-task-btn:hover {
  background: #2563eb !important;
}

body.theme-material .main-toolbar #add-task-btn.is-disabled,
body.theme-material .main-toolbar #add-task-btn:disabled,
body.theme-material #add-task-fab-btn.is-disabled,
body.theme-material #add-task-fab-btn:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

body.theme-material .main-toolbar #add-task-btn.is-disabled:hover,
body.theme-material .main-toolbar #add-task-btn:disabled:hover,
body.theme-material #add-task-fab-btn.is-disabled:hover,
body.theme-material #add-task-fab-btn:disabled:hover {
  background: #cbd5e1 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  transform: none !important;
}

body.theme-material.dark-theme .main-toolbar #add-task-btn.is-disabled,
body.theme-material.dark-theme .main-toolbar #add-task-btn:disabled,
body.theme-material.dark-theme #add-task-fab-btn.is-disabled,
body.theme-material.dark-theme #add-task-fab-btn:disabled {
  background: #334155 !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

body.theme-material .main-title-row {
  border-bottom: 0.8px solid #e2e8f0 !important;
}

body.theme-material .filters-accordion-section,
body.theme-material .filters-accordion-section.expanded {
  display: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.theme-material .main-title-actions .main-toolbar-btn,
body.theme-material .main-title-actions .bulk-select-btn,
body.theme-material #main-filter-btn,
body.theme-material #main-sort-btn,
body.theme-material #bulk-select-btn {
  height: 33.6px !important;
  border: 0.8px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body.theme-material .main-title-actions .main-toolbar-btn:hover,
body.theme-material .main-title-actions .bulk-select-btn:hover,
body.theme-material #main-filter-btn:hover,
body.theme-material #main-sort-btn:hover,
body.theme-material #bulk-select-btn:hover {
  background: #f8fafc !important;
  border-color: #d6e0ef !important;
  color: #0f172a !important;
  box-shadow: none !important;
  transform: none !important;
}

body.theme-material .task-card-avatar,
body.theme-material .task-card-avatar-more {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 999px !important;
  border: 1.6px solid #ffffff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  font-family: var(--font-family-body) !important;
}

body.theme-material .task-card-avatar {
  background: linear-gradient(135deg, var(--avatar-start, #3b82f6) 0%, var(--avatar-end, #2563eb) 100%) !important;
  color: #ffffff !important;
}

body.theme-material .task-card-avatar-more {
  background: #e2e8f0 !important;
  color: #475569 !important;
}

body.theme-material.dark-theme .task-card-avatar,
body.theme-material.dark-theme .task-card-avatar-more {
  border-color: #111827 !important;
}

body.theme-material .task-card-assignees .task-card-avatar + .task-card-avatar,
body.theme-material .task-card-assignees .task-card-avatar + .task-card-avatar-more,
body.theme-material .task-card-assignees .task-card-avatar-more + .task-card-avatar {
  margin-left: -8px !important;
}

/* spacing tweak: cards offset */
body.theme-material #task-list,
body.theme-material #completed-list {
  margin-left: 24px !important;
  margin-right: 24px !important;
}

body.theme-material #task-list {
  margin-top: 16px !important;
}

/* selected task color */
body.theme-material .task-card.active,
body.theme-material .task-card.selection-checked {
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 1px #3B82F6 !important;
}

/* selected card inner divider same as regular card */
body.theme-material .task-card.active .task-card-footer {
  border-top-color: #e2e8f0 !important;
}

/* disable compact mode for title actions when right panel is open */
body.theme-material .app-container.right-panel-open #main-filter-btn,
body.theme-material .app-container.right-panel-open #main-sort-btn,
body.theme-material .app-container.right-panel-open #bulk-select-btn {
  width: auto !important;
  min-width: 98px !important;
  max-width: none !important;
  padding: 0 12px !important;
  gap: 8px !important;
}

body.theme-material .app-container.right-panel-open #main-sort-btn {
  min-width: 128px !important;
}

body.theme-material .app-container.right-panel-open #bulk-select-btn {
  min-width: 106px !important;
  font-size: 14px !important;
}

body.theme-material .app-container.right-panel-open #main-filter-btn > span,
body.theme-material .app-container.right-panel-open #main-sort-btn > span {
  display: inline !important;
}

/* ============================================================
   DARK FIGMA PARITY: toolbar + cards typography/colors
============================================================ */
body.theme-material.dark-theme .main-toolbar {
  background: #111827 !important;
  border-bottom-color: #1e293b !important;
}

body.theme-material.dark-theme .main-search-trigger {
  border-color: #1e293b !important;
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

body.theme-material.dark-theme .main-search-trigger:hover,
body.theme-material.dark-theme .main-search-trigger:focus-within {
  border-color: #3b82f6 !important;
}

body.theme-material.dark-theme .main-search-input {
  color: #f1f5f9 !important;
  font-family: var(--font-family-body) !important;
}

body.theme-material.dark-theme .main-search-input::placeholder {
  color: rgba(241, 245, 249, 0.5) !important;
}

body.theme-material.dark-theme .main-search-trigger.is-global-active:not(.has-text) .main-search-input::placeholder {
  color: transparent !important;
}

body.theme-material.dark-theme .main-title-row {
  background: #111827 !important;
  border-bottom-color: #1e293b !important;
}

body.theme-material.dark-theme .main-title-row .main-title {
  color: #f1f5f9 !important;
  font-family: var(--font-family-heading) !important;
}

body.theme-material.dark-theme .main-title-actions .main-toolbar-btn,
body.theme-material.dark-theme .main-title-actions .bulk-select-btn,
body.theme-material.dark-theme #main-filter-btn,
body.theme-material.dark-theme #main-sort-btn,
body.theme-material.dark-theme #bulk-select-btn {
  border-color: var(--color-border-default) !important;
  background: var(--color-bg-surface) !important;
  color: var(--color-text-primary) !important;
  font-family: var(--font-family-body) !important;
}

body.theme-material.dark-theme .main-title-actions .main-toolbar-btn:hover,
body.theme-material.dark-theme .main-title-actions .bulk-select-btn:hover,
body.theme-material.dark-theme #main-filter-btn:hover,
body.theme-material.dark-theme #main-sort-btn:hover,
body.theme-material.dark-theme #bulk-select-btn:hover {
  background: var(--color-bg-hover) !important;
  border-color: var(--color-border-strong) !important;
  color: var(--color-text-primary) !important;
  transform: none !important;
}

body.theme-material.dark-theme .task-card {
  border-color: #1e293b !important;
  background: #111827 !important;
}

body.theme-material.dark-theme .task-card:hover {
  border-color: #3b82f6 !important;
  background: #111827 !important;
}

body.theme-material.dark-theme .task-card.active,
body.theme-material.dark-theme .task-card.selection-checked {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.05) !important;
  box-shadow: 0 0 0 1px #3b82f6 !important;
}

body.theme-material.dark-theme .task-title {
  color: #f1f5f9 !important;
  font-family: var(--font-family-body) !important;
  font-weight: 400 !important;
}

body.theme-material.dark-theme .task-subtitle,
body.theme-material.dark-theme .task-card-due-inline,
body.theme-material.dark-theme .task-card-created {
  color: #94a3b8 !important;
  font-family: var(--font-family-body) !important;
}

body.theme-material.dark-theme .task-card-due-inline.task-card-due-inline-overdue {
  color: #f87171 !important;
}

body.theme-material.dark-theme .task-card-footer,
body.theme-material.dark-theme .task-card.active .task-card-footer {
  border-top-color: #1e293b !important;
}

body.theme-material.dark-theme .task-card-avatar-more {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

/* ============================================================
   STICKY LAYERING: keep title/actions row above cards
============================================================ */
body.theme-material .main-title-row {
  position: sticky !important;
  top: 64px !important;
  z-index: 58 !important;
  background: #ffffff !important;
}

body.theme-material.dark-theme .main-title-row {
  background: #111827 !important;
}

@media (max-width: 900px) {
  body.theme-material .main-title-row {
    min-height: 52px !important;
    padding: 8px 16px !important;
    gap: 8px !important;
  }

  body.theme-material .main-title-row .main-title {
    min-height: 24px !important;
    gap: 7px !important;
    font-size: 18px !important;
    line-height: 24px !important;
    min-width: 0;
  }

  body.theme-material .main-title-icon-wrap,
  body.theme-material .main-title-icon-wrap .category-item-icon,
  body.theme-material .main-title-icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }

  body.theme-material .main-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.theme-material .main-title-row .main-title-actions {
    gap: 8px !important;
    flex: 0 0 auto;
  }

  body.theme-material .main-title-actions .main-toolbar-btn,
  body.theme-material .main-title-actions .bulk-select-btn,
  body.theme-material #main-filter-btn,
  body.theme-material #main-sort-btn {
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 6px !important;
  }

  body.theme-material .main-title-row #main-filter-btn,
  body.theme-material .main-title-row #main-sort-btn {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body.theme-material .main-title-row #main-filter-btn svg,
  body.theme-material #main-sort-btn::before {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
  }
}

/* ============================================================
   FILTERS MODAL (FIGMA STYLE)
============================================================ */
body.theme-material .filters-modal-overlay {
  background: rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.theme-material .filters-modal-card {
  width: min(512px, calc(100vw - 28px));
  max-width: 512px !important;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #d9e2f1;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

body.theme-material .filters-modal-header {
  background: var(--app-modal-header-bg);
}

body.theme-material .filters-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--app-modal-body-padding);
  display: grid;
  gap: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c8d3e6 transparent;
}

body.theme-material .filters-modal-content::-webkit-scrollbar,
body.theme-material .global-search-modal-content::-webkit-scrollbar,
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar,
body.theme-material .filters-tags-modal-list::-webkit-scrollbar,
body.theme-material .filters-range-modal-body::-webkit-scrollbar { width: 8px; }

body.theme-material .filters-modal-content::-webkit-scrollbar-track,
body.theme-material .global-search-modal-content::-webkit-scrollbar-track,
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar-track,
body.theme-material .filters-tags-modal-list::-webkit-scrollbar-track,
body.theme-material .filters-range-modal-body::-webkit-scrollbar-track { background: transparent; }

body.theme-material .filters-modal-content::-webkit-scrollbar-thumb,
body.theme-material .global-search-modal-content::-webkit-scrollbar-thumb,
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar-thumb,
body.theme-material .filters-tags-modal-list::-webkit-scrollbar-thumb,
body.theme-material .filters-range-modal-body::-webkit-scrollbar-thumb {
  background: #c8d3e6;
  border-radius: 8px;
}

body.theme-material .filters-modal-content::-webkit-scrollbar-thumb:hover,
body.theme-material .global-search-modal-content::-webkit-scrollbar-thumb:hover,
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar-thumb:hover,
body.theme-material .filters-tags-modal-list::-webkit-scrollbar-thumb:hover,
body.theme-material .filters-range-modal-body::-webkit-scrollbar-thumb:hover { background: #afbdd5; }

body.theme-material .filters-modal-content::-webkit-scrollbar-button,
body.theme-material .global-search-modal-content::-webkit-scrollbar-button,
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar-button,
body.theme-material .filters-tags-modal-list::-webkit-scrollbar-button,
body.theme-material .filters-range-modal-body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

body.theme-material .filters-modal-section {
  display: grid;
  gap: 8px;
  position: relative;
}

body.theme-material .filters-modal-label {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #334155;
}

body.theme-material .filters-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9.6px;
}

body.theme-material .filters-modal-option {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid #d9e2f1;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-material .filters-modal-option.is-active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

body.theme-material .filters-modal-option:not(.is-active):hover {
  border-color: #c3d0e4;
  background: #f3f6fb;
  color: #1e293b;
}

body.theme-material .filters-modal-hidden-select {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

body.theme-material .filters-modal-custom-date-wrap {
  display: flex;
  justify-content: center;
}

body.theme-material .filters-modal-custom-date-btn {
  width: 100%;
}

body.theme-material .filters-modal-date-section .filters-modal-custom-date-btn {
  justify-self: stretch;
}

body.theme-material .filters-modal-custom-date-btn.is-active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

body.theme-material .filters-modal-assignee-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid #d9e2f1;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  padding: 0 36px 0 12px;
  position: relative;
  cursor: pointer;
}

body.theme-material .filters-modal-assignee-btn::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: translateY(-50%);
}

body.theme-material .filters-modal-assignee-btn:hover {
  border-color: #b7c7e5;
  background: #f8fafc;
}

body.theme-material .filters-modal-assignee-btn.is-active {
  border-color: #3b82f6;
}

body.theme-material .global-search-modal-overlay {
  background: rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1410;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.theme-material .global-search-modal-card {
  width: min(560px, calc(100vw - 36px));
  max-width: 560px !important;
  max-height: min(calc(100vh - 40px), 880px);
  display: flex;
  flex-direction: column;
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  background: var(--app-modal-body-bg);
}

body.theme-material .global-search-modal-header,
body.theme-material .global-search-modal-actions {
  flex: 0 0 auto;
}

body.theme-material .global-search-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--app-modal-body-padding);
  display: grid;
  gap: 12px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #c8d3e6 transparent;
}

body.theme-material .global-search-modal-content::-webkit-scrollbar { width: 8px; }
body.theme-material .global-search-modal-content::-webkit-scrollbar-track { background: transparent; }
body.theme-material .global-search-modal-content::-webkit-scrollbar-thumb { background: #c8d3e6; border-radius: 8px; }
body.theme-material .global-search-modal-content::-webkit-scrollbar-thumb:hover { background: #afbdd5; }

body.theme-material .global-search-modal-section {
  display: grid;
  gap: 8px;
  position: relative;
}

body.theme-material .global-search-input {
  width: 100%;
  min-height: 38.6px;
  border-radius: 6px;
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-surface-alt);
  color: var(--color-text-primary);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  font-family: inherit;
  letter-spacing: normal;
  outline: none;
  box-shadow: none;
  transition: border-color 0s ease, box-shadow 0s ease, background-color 0s ease;
  -webkit-appearance: none;
  appearance: none;
}

body.theme-material .global-search-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.65;
  font-weight: 400;
}

body.theme-material .global-search-input:hover {
  border-color: var(--color-border-default);
  background: var(--color-bg-surface-alt);
}

body.theme-material .global-search-input:focus {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

body.theme-material .global-search-textarea {
  min-height: 96px;
  resize: vertical;
  padding: 8px 12px;
}

@media (max-height: 900px) {
  body.theme-material .global-search-modal-overlay {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body.theme-material .global-search-modal-card {
    max-height: calc(100vh - 32px);
  }

  body.theme-material .global-search-modal-header {
    padding: var(--app-modal-header-padding);
  }

  body.theme-material .global-search-modal-content {
    padding: 16px 24px 18px;
    gap: 10px;
  }

  body.theme-material .global-search-modal-actions {
    margin-top: 0;
    padding: 14px 24px 16px;
  }
}

@media (max-width: 900px) {
  body.theme-material .main-search-input,
  body.theme-material .global-search-input,
  body.theme-material #global-search-modal .modal-field-section .modal-input,
  body.theme-material .global-search-textarea {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  body.theme-material .global-search-modal-card {
    width: 100%;
    max-width: none !important;
    height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    border-radius: 10px 10px 0 0;
  }

  body.theme-material .global-search-modal-overlay {
    position: fixed !important;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) 0 !important;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    overscroll-behavior: contain;
  }

  body.theme-material .global-search-modal-header {
    padding: 14px 16px;
  }

  body.theme-material .global-search-modal-content {
    padding: 12px 16px 14px;
    gap: 10px;
  }

  body.theme-material .global-search-modal-actions {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  }

  body.theme-material #global-search-modal .modal-field-grid,
  body.theme-material #global-search-modal .modal-field-grid-network {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.theme-material .filters-assignees-modal-overlay {
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1450;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.theme-material .filters-assignees-modal-card {
  width: min(560px, calc(100vw - 36px));
  max-width: 560px !important;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #d9e2f1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

body.theme-material .filters-assignees-modal-title-icon {
  background: #eaf2ff;
  color: #3b82f6;
}

body.theme-material .filters-assignees-modal-title-icon svg {
  width: 19px !important;
  height: 19px !important;
  display: block;
}

body.theme-material .filters-assignees-modal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.theme-material .filters-assignees-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: var(--app-modal-body-padding);
}

body.theme-material .filters-assignees-modal-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid #d9e2f1;
  border-radius: 12px;
  padding: 0 16px;
  color: #94a3b8;
  background: #fff;
  margin-bottom: 14px;
}

body.theme-material .filters-assignees-modal-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  color: #0f172a;
}

body.theme-material .filters-assignees-modal-search-input::placeholder {
  color: #b0bacc;
}

body.theme-material .filters-assignees-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 10px;
  margin-right: -10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c8d3e6 transparent;
}

body.theme-material .filters-assignees-modal-list::-webkit-scrollbar { width: 8px; }
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar-track { background: transparent; }
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar-thumb { background: #c8d3e6; border-radius: 8px; }
body.theme-material .filters-assignees-modal-list::-webkit-scrollbar-thumb:hover { background: #afbdd5; }

body.theme-material .filters-assignees-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 0 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

body.theme-material .filters-assignees-modal-row:hover {
  border-color: #d6e0ef;
}

body.theme-material .filters-assignees-modal-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.theme-material .filters-assignees-modal-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  background-image: linear-gradient(135deg, var(--avatar-start, #3b82f6), var(--avatar-end, #2563eb));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-material .filters-assignees-modal-name {
  font-family: var(--font-family-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-material .filters-assignees-modal-user {
  gap: 12px;
}


body.theme-material .filters-tags-modal-overlay {
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1450;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.theme-material .filters-tags-modal-card {
  width: min(560px, calc(100vw - 36px));
  max-width: 560px !important;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #d9e2f1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

body.theme-material .filters-tags-modal-title-icon {
  background: #eaf2ff;
  color: #3b82f6;
}

body.theme-material .filters-tags-modal-title-icon svg {
  width: 19px !important;
  height: 19px !important;
  display: block;
}

body.theme-material .filters-tags-modal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.theme-material .filters-tags-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: var(--app-modal-body-padding);
}

body.theme-material .filters-tags-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 10px;
  margin-right: -10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c8d3e6 transparent;
}

body.theme-material .filters-tags-modal-list::-webkit-scrollbar { width: 8px; }
body.theme-material .filters-tags-modal-list::-webkit-scrollbar-track { background: transparent; }
body.theme-material .filters-tags-modal-list::-webkit-scrollbar-thumb { background: #c8d3e6; border-radius: 8px; }
body.theme-material .filters-tags-modal-list::-webkit-scrollbar-thumb:hover { background: #afbdd5; }

body.theme-material .filters-tags-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 0 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

body.theme-material .filters-tags-modal-row:hover {
  border-color: #d6e0ef;
}

body.theme-material .filters-tags-modal-row-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.theme-material .filters-tags-modal-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #3b82f6;
  background: #eaf2ff;
  flex: 0 0 auto;
  padding: 9px;
  box-sizing: border-box;
}

body.theme-material .filters-lists-modal-row-icon {
  color: #3b82f6;
}

body.theme-material .filters-lists-modal-row--no-possibility .filters-tags-modal-row-icon {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

body.theme-material .filters-lists-modal-row-icon--no-possibility {
  color: #dc2626;
}

body.theme-material .filters-lists-modal-row-icon svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
}

body.theme-material .filters-lists-modal-row--no-possibility .filters-tags-modal-row-name {
  color: #dc2626;
}

body.theme-material .filters-tags-modal-row-name {
  font-family: var(--font-family-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* List-picker checkbox contract: native input stores state, SVG span renders UI. */
body.theme-material .filters-list-picker-checkbox-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body.theme-material .filters-list-picker-checkbox-native {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

body.theme-material .filters-list-picker-checkbox-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Crect x='40' y='40' width='176' height='176' rx='8' fill='none' stroke='%23c9ced7' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

body.theme-material .filters-list-picker-checkbox-native:checked + .filters-list-picker-checkbox-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Crect x='40' y='40' width='176' height='176' rx='8' fill='%232563eb' stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpolyline points='88 136 112 160 168 104' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
}

body.theme-material .filters-list-picker-checkbox-native:focus-visible + .filters-list-picker-checkbox-icon {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

body.theme-material.dark-theme .filters-list-picker-checkbox-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Crect x='40' y='40' width='176' height='176' rx='8' fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
}

body.theme-material.dark-theme .filters-list-picker-checkbox-native:checked + .filters-list-picker-checkbox-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Crect x='40' y='40' width='176' height='176' rx='8' fill='%232563eb' stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpolyline points='88 136 112 160 168 104' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
}

body.theme-material .filters-range-modal-overlay {
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1450;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.theme-material .filters-range-modal-card {
  width: min(860px, calc(100vw - 36px));
  max-width: 860px !important;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #d9e2f1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

body.theme-material .filters-range-modal-title-icon {
  background: #eaf2ff;
  color: #3b82f6;
}

body.theme-material .filters-range-modal-title-icon svg {
  width: var(--app-modal-title-icon-svg-size);
  height: var(--app-modal-title-icon-svg-size);
  display: block;
}

body.theme-material .filters-range-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--app-modal-body-padding);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c8d3e6 transparent;
}

body.theme-material .filters-range-calendars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.theme-material .filters-range-calendar {
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

body.theme-material .filters-range-calendar-title {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
}

body.theme-material .filters-range-month-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

body.theme-material .filters-range-month-label {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: #1e293b;
}

body.theme-material .filters-range-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

body.theme-material .filters-range-nav:hover {
  background: #f1f5f9;
  color: #1e293b;
}

body.theme-material .filters-range-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

body.theme-material .filters-range-nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.theme-material .filters-range-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 8px;
}

body.theme-material .filters-range-weekdays span {
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: #64748b;
}

body.theme-material .filters-range-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

body.theme-material .filters-range-day-spacer {
  height: 36px;
}

body.theme-material .filters-range-day-btn {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #1e293b;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
}

body.theme-material .filters-range-day-btn:hover {
  background: #eff6ff;
}

body.theme-material .filters-range-day-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

body.theme-material .filters-range-day-btn.today {
  border-color: #3b82f6;
  color: #3b82f6;
}

body.theme-material .filters-range-day-btn.selected {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

body.theme-material .filters-range-selected {
  margin-top: 14px;
  font-size: 13px;
  line-height: 18px;
  color: #64748b;
}

body.theme-material .filters-range-selected span {
  color: #1e293b;
  font-weight: 600;
}

body.theme-material .filters-range-error {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 16px;
  color: #ef4444;
}

body.theme-material.dark-theme .filters-range-calendar {
  border-color: #24324a;
  background: #0f172a;
}

body.theme-material.dark-theme .filters-range-modal-card {
  border: 0.8px solid #1e293b;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.theme-material.dark-theme .filters-range-modal-title-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

body.theme-material.dark-theme .filters-range-calendar-title,
body.theme-material.dark-theme .filters-range-weekdays span,
body.theme-material.dark-theme .filters-range-selected {
  color: #94a3b8;
}

body.theme-material.dark-theme .filters-range-month-label,
body.theme-material.dark-theme .filters-range-day-btn,
body.theme-material.dark-theme .filters-range-selected span {
  color: #e2e8f0;
}

body.theme-material.dark-theme .filters-range-nav {
  color: #94a3b8;
}

body.theme-material.dark-theme .filters-range-nav:hover,
body.theme-material.dark-theme .filters-range-day-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

body.theme-material.dark-theme .filters-range-day-btn.today {
  border-color: #3b82f6;
  color: #60a5fa;
}

body.theme-material.dark-theme .filters-range-day-btn.selected {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

@media (max-width: 900px) {
  body.theme-material .filters-range-calendars {
    grid-template-columns: 1fr;
  }
}

body.theme-material .filters-modal-card .custom-select-root {
  position: relative;
  width: 100%;
}

body.theme-material .filters-modal-card select.custom-select-native {
  display: none !important;
}

body.theme-material .filters-modal-card .custom-select-root.is-open {
  z-index: 120;
}

body.theme-material .filters-modal-card .custom-select-trigger {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid #d9e2f1;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 0 34px 0 12px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

body.theme-material .filters-modal-card .custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: translateY(-50%);
}

body.theme-material .filters-modal-card .custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border-radius: 10px;
  border: 1px solid #d9e2f1;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

body.theme-material .filters-modal-card .custom-select-root.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.theme-material .filters-modal-card .custom-select-option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
}

body.theme-material .filters-modal-card .custom-select-option:hover {
  background: #eff6ff;
}

body.theme-material .filters-modal-card .custom-select-option.is-selected {
  background: #dbeafe;
  color: #1d4ed8;
}

body.theme-material .list-actions-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 2px;
}

body.theme-material .list-actions-modal-actions .modal-btn {
  min-width: 116px;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

body.theme-material .list-actions-modal-actions .modal-btn-secondary {
  border: 1px solid #d9e2f1;
  color: #64748b !important;
  background: #ffffff !important;
}

body.theme-material .list-actions-modal-actions .modal-btn-primary {
  min-width: 136px;
}

body.theme-material .list-actions-modal-actions .modal-btn:hover,
body.theme-material .list-actions-modal-actions .modal-btn:active {
  transform: none !important;
}

/* ============================================================
   FILTERS MODAL - DARK THEME (Figma node 98:3015 colors)
============================================================ */
body.theme-material.dark-theme .filters-modal-overlay {
  background: rgba(71, 85, 105, 0.65);
}

body.theme-material.dark-theme .filters-modal-card {
  border: 0.8px solid #1e293b;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.theme-material.dark-theme .filters-modal-content {
  background: #0f172a;
}

body.theme-material.dark-theme .filters-modal-title-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

body.theme-material.dark-theme .filters-modal-label {
  color: #f1f5f9;
  font-weight: 400;
}

body.theme-material.dark-theme .filters-modal-option {
  border: 0.8px solid #1e293b;
  background: transparent;
  color: #f1f5f9;
  font-weight: 400;
}

body.theme-material.dark-theme .filters-modal-option.is-active,
body.theme-material.dark-theme .filters-modal-custom-date-btn.is-active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

body.theme-material.dark-theme .filters-modal-option:not(.is-active):hover {
  border-color: #334155;
  background: rgba(59, 130, 246, 0.05);
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-modal-assignee-btn {
  border: 0.8px solid #1e293b;
  background: #1e293b;
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-modal-assignee-btn:hover {
  border-color: #334155;
  background: #1e293b;
}

body.theme-material.dark-theme .filters-modal-assignee-btn.is-active {
  border-color: #3b82f6;
}

body.theme-material.dark-theme .global-search-modal-card {
  border-color: #1e293b;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.theme-material.dark-theme .global-search-input {
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
}

body.theme-material.dark-theme #global-search-modal .global-search-input::placeholder {
  color: #7c8aa5;
  opacity: 0.72;
}

body.theme-material.dark-theme .global-search-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.65;
}

body.theme-material.dark-theme .global-search-input:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-muted);
}

body.theme-material.dark-theme .global-search-input:focus {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

body.theme-material.dark-theme .filters-modal-card .custom-select-trigger {
  border: 0.8px solid #1e293b;
  background: #1e293b;
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-modal-card .custom-select-menu {
  border: 0.8px solid #1e293b;
  background: #1e293b;
}

body.theme-material.dark-theme .filters-modal-card .custom-select-option {
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-modal-card .custom-select-option:hover {
  background: rgba(59, 130, 246, 0.1);
}

body.theme-material.dark-theme .filters-modal-card .custom-select-option.is-selected {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

body.theme-material.dark-theme .list-actions-modal-actions .modal-btn-secondary {
  border: 0.8px solid #1e293b;
  background: transparent !important;
  color: #f1f5f9 !important;
}

body.theme-material.dark-theme .list-actions-modal-actions .modal-btn-secondary:hover {
  border-color: #334155;
  background: rgba(59, 130, 246, 0.05) !important;
  color: #f1f5f9 !important;
}

body.theme-material.dark-theme .list-actions-modal-actions .modal-btn-primary {
  background: #3b82f6 !important;
  border: 0.8px solid #3b82f6 !important;
  color: #ffffff !important;
}

body.theme-material.dark-theme .list-actions-modal-actions .modal-btn-primary:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

/* Dark theme: Assignees modal */
body.theme-material.dark-theme .filters-assignees-modal-card {
  border: 0.8px solid #1e293b;
}

body.theme-material.dark-theme .filters-assignees-modal-title-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

body.theme-material.dark-theme .filters-assignees-modal-name {
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-assignees-modal-search {
  border-color: #1e293b;
  background: #0f172a;
  color: #94a3b8;
}

body.theme-material.dark-theme .filters-assignees-modal-search-input {
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-assignees-modal-search-input::placeholder {
  color: #7c8aa5;
}

body.theme-material.dark-theme .filters-assignees-modal-row {
  border-color: #1e293b;
  background: #0f172a;
}

body.theme-material.dark-theme .filters-assignees-modal-row:hover {
  border-color: #334155;
}

body.theme-material.dark-theme .filters-assignees-modal-list {
  scrollbar-color: #64748b transparent;
}

body.theme-material.dark-theme .filters-modal-content {
  scrollbar-color: #64748b transparent;
}

body.theme-material.dark-theme .filters-modal-content::-webkit-scrollbar-thumb {
  background: #64748b;
}

body.theme-material.dark-theme .filters-modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body.theme-material.dark-theme .filters-assignees-modal-list::-webkit-scrollbar-thumb {
  background: #64748b;
}

body.theme-material.dark-theme .filters-assignees-modal-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body.theme-material.dark-theme .global-search-modal-content {
  scrollbar-color: #64748b transparent;
}

body.theme-material.dark-theme .global-search-modal-content::-webkit-scrollbar-thumb {
  background: #64748b;
}

body.theme-material.dark-theme .global-search-modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body.theme-material.dark-theme .filters-range-modal-body {
  scrollbar-color: #64748b transparent;
}

body.theme-material.dark-theme .filters-range-modal-body::-webkit-scrollbar-thumb {
  background: #64748b;
}

body.theme-material.dark-theme .filters-range-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dark theme: Tags modal */
body.theme-material.dark-theme .filters-tags-modal-card {
  border: 0.8px solid #1e293b;
}

body.theme-material.dark-theme .filters-tags-modal-title-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

body.theme-material.dark-theme .filters-tags-modal-row-name {
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-tags-modal-row-icon {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.14);
}

body.theme-material.dark-theme .filters-lists-modal-row-icon {
  color: #60a5fa;
}

body.theme-material.dark-theme .filters-lists-modal-row--no-possibility .filters-tags-modal-row-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

body.theme-material.dark-theme .filters-lists-modal-row-icon--no-possibility {
  color: #f87171;
}

body.theme-material.dark-theme .filters-lists-modal-row--no-possibility .filters-tags-modal-row-name {
  color: #f87171;
}

body.theme-material.dark-theme .filters-tags-modal-row {
  border-color: #1e293b;
  background: #0f172a;
}

body.theme-material.dark-theme .filters-tags-modal-row:hover {
  border-color: #334155;
}

body.theme-material.dark-theme .filters-tags-modal-list {
  scrollbar-color: #64748b transparent;
}

body.theme-material.dark-theme .filters-tags-modal-list::-webkit-scrollbar-thumb {
  background: #64748b;
}

body.theme-material.dark-theme .filters-tags-modal-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Filters footer actions: app-modal contract only. */
body.theme-material :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
).app-modal-footer {
  margin-top: 0;
  padding: var(--app-modal-footer-padding);
  border-top: 1px solid var(--app-modal-border);
  background: var(--app-modal-header-bg);
}

body.theme-material :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: var(--app-modal-footer-button-secondary-min-width);
  height: var(--app-modal-footer-button-height);
  border-radius: var(--app-modal-footer-button-radius);
  padding: 0 var(--app-modal-footer-button-padding-x);
  font-size: var(--app-modal-footer-button-font-size);
  line-height: var(--app-modal-footer-button-line-height);
  font-weight: var(--app-modal-footer-button-weight);
  font-family: var(--font-family-body);
}

body.theme-material :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-secondary {
  width: auto;
  background: #ffffff !important;
  color: #64748b !important;
  border: 0.8px solid #d9e2f1 !important;
}

body.theme-material :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-secondary:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #d6e0ef !important;
}

body.theme-material :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-primary {
  width: auto;
  min-width: var(--app-modal-footer-button-primary-min-width);
  background: #3b82f6 !important;
  color: #ffffff !important;
  border: 0.8px solid #3b82f6 !important;
}

body.theme-material :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-primary:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

body.theme-material.dark-theme :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) {
  border-top-color: var(--color-border-strong);
}

body.theme-material.dark-theme :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-secondary {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

body.theme-material.dark-theme :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-secondary:hover {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}

body.theme-material.dark-theme :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-primary {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

body.theme-material.dark-theme :is(
  .filters-modal-actions,
  .global-search-modal-actions,
  .filters-assignees-modal-actions,
  .filters-tags-modal-actions,
  .filters-range-modal-actions
) .modal-btn-primary:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

/* Filters close "X": mirror admin modal close button behavior */
body.theme-material :is(
  .filters-assignees-modal-clear,
  .filters-tags-modal-clear,
  .filters-modal-close,
  .global-search-modal-close,
  .filters-assignees-modal-close,
  .filters-tags-modal-close,
  .filters-range-modal-close
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
  outline: none;
}

body.theme-material :is(
  .filters-assignees-modal-clear,
  .filters-tags-modal-clear,
  .filters-modal-close,
  .global-search-modal-close,
  .filters-assignees-modal-close,
  .filters-tags-modal-close,
  .filters-range-modal-close
):hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

body.theme-material :is(
  .filters-assignees-modal-clear,
  .filters-tags-modal-clear,
  .filters-modal-close,
  .global-search-modal-close,
  .filters-assignees-modal-close,
  .filters-tags-modal-close,
  .filters-range-modal-close
):focus-visible {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

body.theme-material :is(
  .filters-assignees-modal-clear,
  .filters-tags-modal-clear,
  .filters-modal-close,
  .global-search-modal-close,
  .filters-assignees-modal-close,
  .filters-tags-modal-close,
  .filters-range-modal-close
) svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.theme-material.dark-theme :is(
  .filters-assignees-modal-clear,
  .filters-tags-modal-clear,
  .filters-modal-close,
  .global-search-modal-close,
  .filters-assignees-modal-close,
  .filters-tags-modal-close,
  .filters-range-modal-close
) {
  background: transparent;
  color: var(--color-text-muted);
}

body.theme-material.dark-theme :is(
  .filters-assignees-modal-clear,
  .filters-tags-modal-clear,
  .filters-modal-close,
  .filters-assignees-modal-close,
  .filters-tags-modal-close,
  .filters-range-modal-close
):hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

/* Filters inner buttons: align with admin button language */
body.theme-material .filters-modal-option,
body.theme-material .filters-modal-assignee-btn,
body.theme-material .filters-modal-custom-date-btn {
  min-height: 37.6px;
  border-radius: 6px;
  border: 0.8px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  font-family: var(--font-family-body);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.theme-material .filters-modal-option:hover,
body.theme-material .filters-modal-assignee-btn:hover,
body.theme-material .filters-modal-custom-date-btn:hover {
  border-color: #d6e0ef;
  background: #f8fafc;
  color: #0f172a;
}

body.theme-material .filters-modal-option.is-active,
body.theme-material .filters-modal-assignee-btn.is-active,
body.theme-material .filters-modal-custom-date-btn.is-active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

body.theme-material.dark-theme .filters-modal-option,
body.theme-material.dark-theme .filters-modal-assignee-btn,
body.theme-material.dark-theme .filters-modal-custom-date-btn {
  border-color: #334155;
  background: #0f172a;
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-modal-option:hover,
body.theme-material.dark-theme .filters-modal-assignee-btn:hover,
body.theme-material.dark-theme .filters-modal-custom-date-btn:hover {
  border-color: #475569;
  background: #1e293b;
  color: #f1f5f9;
}

body.theme-material.dark-theme .filters-modal-option.is-active,
body.theme-material.dark-theme .filters-modal-assignee-btn.is-active,
body.theme-material.dark-theme .filters-modal-custom-date-btn.is-active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="3"] {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="2"] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="1"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="4"] {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #ea580c;
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option:hover {
  filter: saturate(1.08);
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option.is-active {
  color: var(--color-text-primary);
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="3"] {
  border-color: var(--color-border-strong);
  background: var(--color-bg-surface);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.22);
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="2"] {
  border-color: #3b82f6;
  background: #eaf2ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22);
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="1"] {
  border-color: #ef4444;
  background: #ffecec;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22);
}

body.theme-material [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="4"] {
  border-color: #f97316;
  background: #fff3e8;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.24);
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="3"] {
  border-color: #334155;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="2"] {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="1"] {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option[data-value="4"] {
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option:hover {
  filter: saturate(1.12);
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="3"] {
  border-color: #475569;
  background: #111827;
  color: #f1f5f9;
  box-shadow: none;
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="2"] {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  box-shadow: none;
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="1"] {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  box-shadow: none;
}

body.theme-material.dark-theme [data-filter-buttons="filter-priority"] .filters-modal-option.is-active[data-value="4"] {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  box-shadow: none;
}

@media (max-width: 900px) {
  body.theme-material .filters-modal-overlay {
    position: fixed !important;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) 0 !important;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 7000;
  }

  body.theme-material .filters-modal-card {
    width: 100%;
    max-width: none !important;
    height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
  }

  body.theme-material .filters-modal-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--app-modal-header-bg);
    padding: 14px 16px;
  }

  body.theme-material .filters-modal-title-icon {
    width: var(--app-modal-title-icon-size);
    height: var(--app-modal-title-icon-size);
    flex: 0 0 var(--app-modal-title-icon-size);
  }

  body.theme-material .filters-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 14px;
    gap: 10px;
    scrollbar-width: thin;
  }

  body.theme-material .filters-modal-section {
    gap: 7px;
  }

  body.theme-material .filters-modal-grid {
    gap: 8px;
  }

  body.theme-material .filters-modal-date-section .filters-modal-grid {
    grid-template-columns: 1fr;
  }

  body.theme-material .filters-modal-option,
  body.theme-material .filters-modal-assignee-btn,
  body.theme-material .filters-modal-custom-date-btn {
    min-height: 42px;
    width: 100%;
    font-size: 14px;
    line-height: 18px;
  }

  body.theme-material .filters-modal-actions {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
    background: var(--app-modal-header-bg);
  }

  body.theme-material.dark-theme .filters-modal-header,
  body.theme-material.dark-theme .filters-modal-actions {
    background: var(--app-modal-header-bg);
  }

  body.theme-material.dark-theme .filters-modal-header {
    background: var(--app-modal-header-bg);
  }

  body.theme-material .filters-modal-actions .modal-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: var(--app-modal-footer-button-secondary-min-width);
  }

  body.theme-material .filters-modal-actions .modal-btn-primary {
    min-width: var(--app-modal-footer-button-primary-min-width);
  }

  body.theme-material .filters-assignees-modal-overlay {
    position: fixed !important;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) 0 !important;
    align-items: stretch;
    justify-content: center;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 7100;
  }

  body.theme-material .filters-assignees-modal-card {
    width: 100%;
    max-width: none !important;
    height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
  }

  body.theme-material .filters-assignees-modal-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--app-modal-header-bg);
    padding: 16px 16px 12px;
  }

  body.theme-material .filters-assignees-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 10px 24px 14px 16px;
  }

  body.theme-material .filters-assignees-modal-search {
    min-height: 46px;
    padding: 0 14px;
    margin-bottom: 12px;
  }

  body.theme-material .filters-assignees-modal-search-input {
    font-size: 14px;
    line-height: 20px;
  }

  body.theme-material .filters-assignees-modal-list {
    min-height: 0;
    max-height: none;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 12px;
    margin-right: -12px;
    scrollbar-gutter: stable;
  }

  body.theme-material .filters-assignees-modal-row {
    min-height: 82px;
    padding: 0 14px;
    border-radius: 10px;
  }

  body.theme-material .filters-assignees-modal-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 14px;
  }

  body.theme-material .filters-assignees-modal-user {
    gap: 12px;
  }

  body.theme-material .filters-assignees-modal-actions {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 14px 16px max(12px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  body.theme-material .filters-assignees-modal-actions .modal-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: var(--app-modal-footer-button-secondary-min-width);
  }

  body.theme-material .filters-assignees-modal-actions .modal-btn-primary {
    min-width: var(--app-modal-footer-button-primary-min-width);
  }

  body.theme-material .filters-tags-modal-overlay {
    position: fixed !important;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) 0 !important;
    align-items: stretch;
    justify-content: center;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 7100;
  }

  body.theme-material .filters-tags-modal-card {
    width: 100%;
    max-width: none !important;
    height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
  }

  body.theme-material .filters-tags-modal-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--app-modal-header-bg);
    padding: 16px 16px 12px;
  }

  body.theme-material .filters-tags-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 10px 24px 14px 16px;
  }

  body.theme-material .filters-tags-modal-list {
    min-height: 0;
    max-height: none;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 12px;
    margin-right: -12px;
    scrollbar-gutter: stable;
  }

  body.theme-material .filters-tags-modal-row {
    min-height: 82px;
    padding: 0 14px;
    border-radius: 10px;
  }

  body.theme-material .filters-tags-modal-row-icon {
    width: 38px;
    height: 38px;
    padding: 10px;
  }

  body.theme-material .filters-tags-modal-row-left {
    gap: 12px;
  }

  body.theme-material .filters-tags-modal-actions {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 14px 16px max(12px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  body.theme-material .filters-tags-modal-actions .modal-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: var(--app-modal-footer-button-secondary-min-width);
  }

  body.theme-material .filters-tags-modal-actions .modal-btn-primary {
    min-width: var(--app-modal-footer-button-primary-min-width);
  }

  body.theme-material .filters-range-modal-overlay {
    position: fixed !important;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) 0 !important;
    align-items: stretch;
    justify-content: center;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 7100;
  }

  body.theme-material .filters-range-modal-card {
    width: 100%;
    max-width: none !important;
    height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 18px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
  }

  body.theme-material .filters-range-modal-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--app-modal-header-bg);
    padding: 16px 16px 12px;
  }

  body.theme-material .filters-range-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 14px;
  }

  body.theme-material .filters-range-calendars {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.theme-material .filters-range-calendar {
    padding: 14px;
    border-radius: 10px;
  }

  body.theme-material .filters-range-modal-actions {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 14px 16px max(12px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  body.theme-material .filters-range-modal-actions .modal-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: var(--app-modal-footer-button-secondary-min-width);
  }

  body.theme-material .filters-range-modal-actions .modal-btn-primary {
    min-width: var(--app-modal-footer-button-primary-min-width);
  }

  body.theme-material .filters-list-picker-checkbox-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
  }
}

body.theme-material .task-card-creator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  color: #64748b;
  font-size: 12px;
}

body.theme-material .task-card-creator-label {
  color: #64748b;
}

body.theme-material .task-card-creator-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-family-body);
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--avatar-start, #3b82f6), var(--avatar-end, #2563eb));
}

body.theme-material .task-card-creator-name {
  color: #334155;
  font-weight: 500;
}

body.theme-material.dark-theme .task-card-creator,
body.theme-material.dark-theme .task-card-creator-label {
  color: #94a3b8;
}

body.theme-material.dark-theme .task-card-creator-name {
  color: #e2e8f0;
}

body.theme-material .task-card-creator-inline {
  color: #64748b;
  gap: 4px;
}

body.theme-material .task-card-creator-initials {
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.theme-material .task-switch-meta {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}

body.theme-material .task-switch-link-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

body.theme-material .task-switch-qinq-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

body.theme-material .task-switch-link-label,
body.theme-material .task-switch-link-from {
  color: #64748b;
  font-weight: 400;
  letter-spacing: 0;
}

body.theme-material .task-switch-link-port {
  color: #64748b;
  font-weight: 400;
}

body.theme-material .task-switch-link-tag {
  color: var(--color-brand-primary);
  background: var(--color-brand-primary-soft);
  font-weight: 600;
}

body.theme-material .task-switch-link-tag.task-switch-link-tag-external {
  color: #15803d;
  background: #dcfce7;
}

body.theme-material .task-switch-qinq-tag {
  color: #047857;
  background: #d1fae5;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.theme-material .task-switch-qinq-value {
  color: #0f766e;
  background: #ccfbf1;
}

body.theme-material .task-switch-copy-tag {
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

body.theme-material .task-switch-copy-tag:hover {
  filter: brightness(0.95);
}

body.theme-material .task-switch-copy-tag:active {
  transform: translateY(1px);
}

body.theme-material .task-vpn-ip-tag {
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.theme-material .task-vpn-fix-tag {
  color: #b91c1c;
  background: #fee2e2;
  font-weight: 700;
}

body.theme-material .task-vpn-router-model-tag {
  font-weight: 400;
}

body.theme-material .task-vpn-router-model-mikrotik {
  color: #1d4ed8;
  background: #dbeafe;
}

body.theme-material .task-vpn-router-model-keenetic {
  color: #047857;
  background: #d1fae5;
}

body.theme-material .task-vpn-copy-tag {
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

body.theme-material .task-vpn-copy-tag:hover {
  filter: brightness(0.95);
}

body.theme-material .task-vpn-copy-tag:active {
  transform: translateY(1px);
}

body.theme-material.dark-theme .task-switch-meta,
body.theme-material.dark-theme .task-switch-link-label,
body.theme-material.dark-theme .task-switch-link-from,
body.theme-material.dark-theme .task-switch-link-port,
body.theme-material.dark-theme .task-switch-qinq-wrap,
body.theme-material.dark-theme .task-card-creator-inline {
  color: #94a3b8;
}

body.theme-material.dark-theme .task-switch-link-tag.task-switch-link-tag-external {
  color: #86efac;
  background: rgba(22, 101, 52, 0.32);
}

body.theme-material.dark-theme .task-switch-qinq-tag {
  color: #86efac;
  background: rgba(5, 150, 105, 0.28);
}

body.theme-material.dark-theme .task-switch-qinq-value {
  color: #5eead4;
  background: rgba(13, 148, 136, 0.28);
}

body.theme-material.dark-theme .task-vpn-ip-tag {
  color: #5eead4;
  background: rgba(13, 148, 136, 0.28);
}

body.theme-material.dark-theme .task-vpn-fix-tag {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.38);
}

body.theme-material.dark-theme .task-vpn-router-model-mikrotik {
  color: #93c5fd;
  background: rgba(30, 64, 175, 0.36);
}

body.theme-material.dark-theme .task-vpn-router-model-keenetic {
  color: #86efac;
  background: rgba(5, 150, 105, 0.28);
}

body.theme-material #main-filter-btn.is-active {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

body.theme-material #main-filter-btn.is-disabled,
body.theme-material #main-filter-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none;
}

body.theme-material.dark-theme #main-filter-btn.is-active {
  background: rgba(59, 130, 246, 0.28) !important;
  color: #dbeafe !important;
  border: 1px solid rgba(96, 165, 250, 0.55) !important;
}
