:root{
  --bg:#0f1117;
  --panel:#171b24;
  --card:#1c2230;
  --line:#2d3447;
  --text:#f5f7ff;
  --muted:#95a0b8;
  --accent:#5eead4;
  --good:#22c55e;
  --warn:#f59e0b;
  --plan:#64748b;
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:Inter,Arial,sans-serif;
  background:linear-gradient(180deg,#0b0d12,#111722);
  color:var(--text);
  padding:40px 18px;
}
a {
  text-decoration: none;
  color: white;
}
.wrap{max-width:920px;margin:auto}
.topbar{
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:28px;
}
h1{font-size:38px}
.sub{color:var(--muted);margin-top:6px}
button{
  border:0;
  cursor:pointer;
  width: 80px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  color:#081018;
  background:var(--accent);
  transition:.2s ease;
}
#logoutBtn {
  background: darkred;
}
button:hover{transform:translateY(-2px)}
.timeline{
  position:relative;
  padding-left:42px;
}
.timeline::before{
  content:"";
  position:absolute;
  left:14px;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(var(--accent),transparent);
}
.item{
  position:relative;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  padding:20px;
  border-radius:18px;
  margin-bottom:18px;
}
.item::before{
  content:"";
  position:absolute;
  left:-35px;
  top:26px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 6px rgba(94,234,212,.12);
}
.row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.title{font-size:22px;font-weight:700}
.date{color:var(--muted)}
.desc{
  color:#d8ddec;
  margin:12px 0 14px;
  line-height:1.5;
}
.badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.done{background:rgba(34,197,94,.16);color:#86efac}
.progress{background:rgba(245,158,11,.16);color:#fcd34d}
.planned{background:rgba(100,116,139,.22);color:#d5dbe7}
.bar{
  height:8px;
  background:#22293a;
  border-radius:99px;
  margin-top:14px;
  overflow:hidden;
}
.fill{
  height:100%;
  background:linear-gradient(90deg,var(--accent),#3b82f6);
}
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:1000;
}
.overlay.show{display:flex}
.modal{
  width:min(900px,100%);
  background:var(--panel);
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  padding:22px;
}
.modal h2{margin-bottom:14px}
textarea{
  width:100%;
  height:420px;
  resize:vertical;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:#0e131d;
  color:#e8edff;
  padding:16px;
  font-family:monospace;
  font-size:14px;
}
.actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:14px;
  flex-wrap:wrap;
}
.secondary{
  background:#2a3244;
  color:#fff;
}
.note{
  color:var(--muted);
  font-size:13px;
  margin-top:10px;
}
@media(max-width:700px){
  h1{font-size:30px}
  textarea{height:320px}
}