html {
  font-size: 15px;
}

body {
  background: #f4f7fb;
  color: #202631;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
}

.app-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 28px 18px 48px;
}

.page-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-heading h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.page-subtitle {
  color: #667085;
  margin: 6px 0 0;
}

.eyebrow {
  color: #667085;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.toolbar-panel,
.task-board,
.task-row,
.empty-state,
.table-panel,
.login-panel {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

.toolbar-panel,
.table-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.task-board {
  padding: 18px;
}

.list-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.participant-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding-right: 6px;
}

.participant-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.task-list {
  display: grid;
  gap: 12px;
}

.list-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.list-header span {
  color: #667085;
  font-size: .9rem;
}

.task-row {
  padding: 14px 16px;
}

.task-row.due-overdue {
  border-left: 4px solid #e11d48;
}

.task-row.due-today {
  border-left: 4px solid #f59e0b;
}

.task-row summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
}

.task-summary-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.task-row summary::-webkit-details-marker {
  display: none;
}

.task-row strong,
.task-row small {
  display: block;
}

.task-row small {
  color: #667085;
  margin-top: 2px;
}

.status-pill {
  background: #edf4ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}

.status-inprogress {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.status-done {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #15803d;
}

.status-archived {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #4b5563;
}

.priority-pill {
  background: #f8fafc;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  color: #475467;
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}

.priority-high,
.priority-urgent {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.deadline-pill {
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}

.deadline-pill.danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.deadline-pill.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.participants-line {
  color: #475467 !important;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.status-tab {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
}

.status-tab:hover {
  color: #1d4ed8;
}

.status-tab.active {
  background: #edf4ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.status-tab span {
  background: rgba(255, 255, 255, .82);
  border-radius: 999px;
  color: inherit;
  font-size: .78rem;
  min-width: 24px;
  padding: 2px 7px;
  text-align: center;
}

.filter-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.success-toast {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-weight: 700;
}

.empty-state {
  color: #667085;
  padding: 24px;
  text-align: center;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
}

.login-panel {
  max-width: 460px;
  padding: 28px;
  width: 100%;
}

.form-control,
.form-select,
.btn {
  border-radius: 7px;
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .task-row summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-summary-meta {
    justify-content: flex-start;
  }

  .filter-actions {
    flex-direction: column;
  }
}
