.task-files-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-files-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.task-file-row,
.task-file-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-file-actions,
.task-file-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-file-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.task-file-name,
.task-file-picked {
  font-size: 13px;
  color: #111827;
}

.task-file-error {
  font-size: 12px;
  color: #b91c1c;
}

.task-upload-label {
  width: fit-content;
}

.file-selected {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.task-action-btn {
  min-width: 132px;
  font-weight: 600;
}

.task-action-btn--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.task-action-btn--success {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}

.task-action-btn--warning {
  background: #fff7ed;
  color: #c2410c;
  border-color: #f97316;
}

.task-action-btn--danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #dc2626;
}

.tasks-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tasks-filter-row {
  padding: 0;
}

.recurring-section {
  margin-top: 8px;
}

.tasks-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.recurring-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.task-card {
  border-radius: 20px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  border: 3px solid transparent;
}

.task-card--new {
  border-color: #2563eb;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.78), rgba(255, 255, 255, 0.98));
}

.task-card--work {
  border-color: #16a34a;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.76), rgba(255, 255, 255, 0.98));
}

.task-card--review {
  border-color: #f97316;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.78), rgba(255, 255, 255, 0.98));
}

.task-card--overdue {
  border-color: #dc2626;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.8), rgba(255, 255, 255, 0.98));
}

.task-card--done {
  border-color: #15803d;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.72), rgba(255, 255, 255, 0.98));
}

.task-card--private {
  border-color: #7c3aed;
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.78), rgba(255, 255, 255, 0.98));
}

.task-card--recurring {
  border-color: #4338ca;
  background: linear-gradient(180deg, rgba(224, 231, 255, 0.82), rgba(255, 255, 255, 0.98));
}

.card--analytics {
  border-color: #7c3aed;
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.78), rgba(255, 255, 255, 0.98));
}

.task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.task-card-status-line {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.task-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.task-card-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.task-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.task-card-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.task-card-meta-item span {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.task-card-meta-item strong {
  font-size: 13px;
  color: #0f172a;
}

.task-card-description {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.task-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.task-card--compact {
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  border-width: 1px;
}

.task-card--slim {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.task-card--slim .badge {
  font-size: 10px;
  padding: 4px 8px;
  font-weight: 600;
  border-width: 1px;
}

.task-card-extra {
  margin-bottom: 14px;
}

.task-open-btn {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .tasks-card-list {
    grid-template-columns: 1fr;
  }

  .recurring-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .card--done {
    grid-column: span 1;
  }

  .task-card-meta {
    grid-template-columns: 1fr;
  }

  .task-card-title {
    font-size: 18px;
  }

  .task-card-actions {
    grid-template-columns: 1fr 1fr;
  }
}
