:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #687386;
  --line: #dfe5ef;
  --blue: #2457a6;
  --blue-soft: #eaf1ff;
  --green: #16794c;
  --yellow: #8a6200;
  --red: #b42318;
  --shadow: 0 10px 25px rgba(23,32,51,.08);
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
a { color: var(--blue); }
.topbar { background:#fff; border-bottom:1px solid var(--line); padding:18px 22px; position:sticky; top:0; z-index:5; }
.topbar h1 { margin:0; font-size:22px; letter-spacing:-.02em; }
.topbar p { margin:5px 0 0; color:var(--muted); font-size:14px; }
.container { max-width: 1240px; margin: 24px auto 60px; padding: 0 18px; }
.grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:18px; box-shadow:var(--shadow); }
.metric .num { font-size:32px; font-weight:800; line-height:1; }
.metric .label { color:var(--muted); margin-top:6px; font-size:14px; }
.filters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin-bottom:18px; }
.filters label { font-size:12px; color:var(--muted); display:block; margin-bottom:5px; }
select, input[type=text], textarea { width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; color:var(--ink); }
button, .button { border:0; border-radius:12px; background:var(--blue); color:#fff; padding:10px 14px; cursor:pointer; font-weight:700; text-decoration:none; display:inline-block; }
button.secondary, .button.secondary { background:#eef2f8; color:var(--ink); }
.project { margin-bottom:18px; }
.project-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.project-head h2 { margin:0; font-size:20px; }
.project-meta { color:var(--muted); font-size:13px; }
.task { display:grid; grid-template-columns: 42px minmax(0,1fr) 130px 140px 120px; gap:12px; align-items:start; border-top:1px solid var(--line); padding:14px 0; }
.task:first-of-type { border-top:0; }
.check-btn { width:30px; height:30px; border-radius:50%; border:2px solid var(--line); background:#fff; color:transparent; padding:0; }
.check-btn.done { background:var(--green); border-color:var(--green); color:#fff; }
.task-title { font-weight:750; }
.task-title.done { text-decoration: line-through; color:var(--muted); }
.task-notes { color:var(--muted); font-size:13px; margin-top:5px; }
.badge { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800; white-space:nowrap; }
.p-high { background:#fee4e2; color:var(--red); }
.p-medium { background:#fff6d6; color:var(--yellow); }
.p-low { background:#e7f7ef; color:var(--green); }
.status { background:#eef2f8; color:#39465c; }
.status.Complete { background:#e7f7ef; color:var(--green); }
.status.Blocked { background:#fee4e2; color:var(--red); }
.status.In\ Progress { background:#eaf1ff; color:var(--blue); }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.inline-form { display:inline; }
.footer-note { color:var(--muted); font-size:13px; text-align:center; margin-top:30px; }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
.full { grid-column: 1 / -1; }
.alert { padding:12px 14px; border-radius:14px; background:#fff6d6; border:1px solid #f4d36a; margin-bottom:14px; }
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .task { grid-template-columns: 42px minmax(0,1fr); }
  .task > .badge, .task > .status, .task > .actions { grid-column: 2; justify-content:flex-start; }
  .form-grid { grid-template-columns: 1fr; }
}
input[type=email], input[type=password] { width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; color:var(--ink); }
label { font-size:12px; color:var(--muted); display:block; margin-bottom:5px; font-weight:700; }
.login-body { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:22px; }
.login-wrap { width:100%; max-width:440px; }
.login-card h1 { margin-top:0; font-size:24px; }
.login-card label { margin-top:12px; }
.muted { color:var(--muted); }
.topbar-row { display:flex; align-items:center; justify-content:space-between; gap:16px; max-width:1240px; margin:0 auto; }
.top-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.user-pill { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; background:var(--blue-soft); color:var(--blue); padding:8px 12px; font-weight:800; font-size:13px; }
@media (max-width: 700px) {
  .topbar-row { align-items:flex-start; flex-direction:column; }
  .top-actions { justify-content:flex-start; }
}
