/* Task Follow-up — amber workbench accents on shared Basalt tokens */

.task-shell {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(245, 158, 11, 0.14), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(251, 146, 60, 0.08), transparent 50%),
    var(--bg);
}

.project-title {
  margin: 14px 12px 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FDE68A;
}

.sidebar-note,
.side-links {
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.nav-count {
  margin-left: auto;
  min-width: 1.4rem;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.16);
  color: #FDBA74;
  font-size: 11px;
  text-align: center;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.text-link {
  color: var(--muted);
  font-size: 13px;
}

.text-link:hover,
.text-link:focus-visible {
  color: #FDBA74;
  text-decoration: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.clock-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clock-input,
.field,
.area,
select.field {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.clock-input {
  width: auto;
  color-scheme: dark;
}

.field:hover,
.area:hover,
.clock-input:hover,
select.field:hover {
  border-color: rgba(251, 146, 60, 0.55);
}

.field:focus,
.area:focus,
.clock-input:focus,
select.field:focus,
.chip-btn:focus-visible,
.btn:focus-visible,
.nav-item:focus-visible,
.text-link:focus-visible {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.task-shell .btn-primary {
  background: linear-gradient(180deg, #FBBF24, #F59E0B);
  color: #1C1406;
  border-color: transparent;
}

.task-shell .btn-primary:hover {
  filter: brightness(1.05);
}

.task-shell .nav-item.active {
  background: rgba(245, 158, 11, 0.12);
  color: #FDE68A;
  box-shadow: inset 2px 0 0 #F59E0B;
}

.task-shell .chip.accent,
.task-shell .badge.accent {
  color: #FDBA74;
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.source-note {
  margin-top: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stat.overdue { box-shadow: inset 3px 0 0 var(--danger); }
.stat.today { box-shadow: inset 3px 0 0 #F59E0B; }
.stat.upcoming { box-shadow: inset 3px 0 0 var(--accent-2); }
.stat.done { box-shadow: inset 3px 0 0 var(--ok); }

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(280px, 100%);
}

.chip-btn { cursor: pointer; }

.chip-btn[aria-pressed="true"] {
  color: #1C1406;
  background: #F59E0B;
  border-color: #F59E0B;
}

.task-list,
.reminder-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.task-card,
.reminder-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
}

.task-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-4);
}

.task-card:hover,
.reminder-card:hover {
  border-color: rgba(251, 146, 60, 0.45);
}

.bucket-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-id {
  font-family: var(--mono);
  font-size: 12px;
  color: #FDBA74;
}

.edit-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.7fr;
  gap: 10px;
}

.edit-grid label,
.notes-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.area {
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.pill.overdue { color: var(--danger); border-color: rgba(251, 113, 133, 0.45); background: rgba(251, 113, 133, 0.1); }
.pill.today { color: #FDBA74; border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.12); }
.pill.upcoming { color: var(--accent-2); border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }
.pill.done { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }

.reminder-card header,
.reminder-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.reminder-copy {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.digest-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: inset 3px 0 0 #F59E0B;
}

.digest-status {
  color: var(--muted);
}

.audit-wrap {
  overflow: auto;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 980px) {
  .stat-row,
  .edit-grid,
  .task-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
