* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", Roboto, sans-serif; background: #f1f5f9; color: #0f172a; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #0f172a; color: #fff; }
header .logo { font-weight: 600; letter-spacing: .2px; }
header .right { display: inline-flex; align-items: center; gap: 4px; }
header a { color: #7dd3fc; text-decoration: none; margin: 0 4px; }
.who { color: #cbd5e1; margin-left: 8px; }
.msg { color: #166534; background: #dcfce7; padding: 8px 10px; border-radius: 8px; margin: 0 0 12px; }
main { max-width: 1000px; margin: 22px auto; padding: 0 16px; }
h2 { margin: 0 0 12px; font-size: 16px; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.narrow { max-width: 360px; margin: 64px auto; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input, .row select { padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.row input[name="task"] { flex: 1; min-width: 220px; }
.spacer { flex: 1; }

button { padding: 8px 14px; border: 0; border-radius: 8px; background: #0ea5e9; color: #fff; cursor: pointer; font-size: 14px; }
button:hover { background: #0284c7; }
button.danger { background: #ef4444; padding: 6px 10px; }
button.danger:hover { background: #dc2626; }
.role { background: #334155; color: #cbd5e1; padding: 1px 7px; border-radius: 4px; font-size: 11px; text-transform: uppercase; margin: 0 6px; }

.filters { margin-bottom: 10px; }
a.clear { color: #64748b; font-size: 13px; text-decoration: none; }

table.tasks { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.tasks th, .tasks td { padding: 10px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; font-size: 14px; }
.tasks th { background: #f8fafc; color: #475569; font-weight: 600; }

.badge { padding: 2px 9px; border-radius: 999px; background: #e2e8f0; font-size: 12px; white-space: nowrap; }
.st-Blocked .badge { background: #fee2e2; color: #b91c1c; }
.st-Done .badge { background: #dcfce7; color: #166534; }
.st-Done td { opacity: .65; }
.st-Assigned .badge { background: #e0f2fe; color: #075985; }
.st-NeedsReview .badge { background: #fef9c3; color: #854d0e; }
.st-InProgress .badge { background: #ede9fe; color: #5b21b6; }

.muted { color: #94a3b8; }
.small { font-size: 12px; }
.muted.small { margin-top: 4px; }

.inline { display: flex; gap: 6px; }
.inline select, .inline input { padding: 6px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; }
.inline input { flex: 1; min-width: 70px; }
.inline button { padding: 6px 10px; }

.error { color: #b91c1c; }
label { display: block; margin-bottom: 12px; font-size: 14px; }
label select, label input { display: block; width: 100%; margin-top: 4px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; }
