:root {
  --background: #f6f8fb;
  --text: #172033;
  --muted: #596579;
  --border: #d7dde8;
  --accent: #1f6feb;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
body.tasks-page { margin: 0; min-height: 100vh; background: var(--background); color: var(--text); font-family: system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
.tasks-shell { width: min(1500px, calc(100% - 24px)); margin: 0 auto; padding: 28px 0 40px; }
.tasks-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tasks-header p { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tasks-header h1, .task-edit-shell h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.tasks-header span { color: var(--muted); font-size: 13px; }
.tasks-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tasks-tabs a { border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--muted); padding: 7px 10px; text-decoration: none; }
.tasks-tabs a.active { border-color: var(--accent); color: var(--accent); }
.tasks-panel { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); overflow: hidden; }
.tasks-table-wrap { overflow-x: auto; }
.tasks-table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 14px; }
.tasks-table th, .tasks-table td { border-bottom: 1px solid #edf0f5; padding: 10px 11px; text-align: left; vertical-align: top; }
.tasks-table th { background: #f9fbfe; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.tasks-table th a { color: inherit; text-decoration: none; }
.tasks-table th a:hover, .tasks-table th a:focus-visible, .tasks-title { color: var(--accent); }
.tasks-table tbody tr:hover { background: #f9fbfe; }
.tasks-id { color: var(--muted); font-variant-numeric: tabular-nums; }
.tasks-title { font-weight: 650; text-decoration: none; }
.tasks-comment { max-width: 260px; color: var(--muted); }
.tasks-actions { display: flex; gap: 6px; }
.tasks-actions form { margin: 0; }
.tasks-actions button, .task-edit-form button { min-height: 32px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; padding: 0 10px; font-weight: 650; }
.tasks-actions .button-muted { border-color: var(--border); background: #fff; color: var(--muted); }
.tasks-empty { color: var(--muted); text-align: center !important; padding: 28px !important; }
.task-edit-shell { width: min(720px, calc(100% - 24px)); margin: 0 auto; padding: 28px 0 40px; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--accent); text-decoration: none; }
.task-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); padding: 18px; }
.task-edit-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.task-edit-form input, .task-edit-form select, .task-edit-form textarea { width: 100%; min-height: 40px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); padding: 8px 10px; }
.task-edit-form textarea { min-height: 110px; resize: vertical; }
.form-wide, .form-actions { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-actions a { color: var(--muted); text-decoration: none; }
@media (max-width: 640px) {
  .tasks-shell, .task-edit-shell { width: calc(100% - 20px); padding-top: 18px; }
  .tasks-header { align-items: start; }
  .task-edit-form { grid-template-columns: 1fr; }
  .form-wide, .form-actions { grid-column: auto; }
}
