:root{
  --bg:#0d0f1a;
  --panel:#111426;
  --muted:#0f1222;
  --text:#e6e8f2;
  --sub:#b6bad3;
  --accent:#6cf0c2;
  --accent-2:#7aa2ff;
  --danger:#ff6b6b;
  --border:#232846;
  --grid-gap:16px;
  --chip:#0e1225;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:linear-gradient(180deg,#0b0d18, var(--bg) 140px);
}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}

/* Top gradient bar (Home left, Title center, Follow right) */
.topbar{
  position:sticky;top:0;z-index:60;
  background:linear-gradient(90deg,#6f6fe3,#30d283);
  border-bottom:1px solid rgba(0,0,0,.3);
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.bar-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:12px 0;
}
.bar-title{
  justify-self:center;
  font-weight:800;
  letter-spacing:.4px;
  font-size:20px;
  text-shadow:0 1px 0 rgba(0,0,0,.35);
}
.chip{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 16px;border-radius:999px;
  background:var(--chip);
  border:1px solid rgba(255,255,255,.08);
  color:var(--text);
  text-decoration:none;
  box-shadow:0 3px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
  transition:.2s ease;
}
.chip .icon{width:20px;height:20px}
.chip:hover{transform:translateY(-1px);filter:brightness(1.05)}
.chip.home{
  justify-self:start;
  background:linear-gradient(180deg,#45d58f,#37c882);
  color:#0b0d18;border-color:rgba(0,0,0,.2);font-weight:700;
}
.chip.follow{
  justify-self:end;
  background:#0b1328;
  color:#eef2ff;
}

/* Panels and inputs */
.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  margin:20px 0;
  box-shadow:0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.02);
}
.panel.muted{background:var(--muted)}
.panel h2{margin:0 0 14px;font-size:20px}
.panel h3{margin:6px 0 10px}

.grid{display:grid;gap:var(--grid-gap);grid-template-columns:repeat(6,1fr);align-items:end}
.grid .field{grid-column:span 2}
.grid .actions{grid-column:span 2;display:flex;gap:10px;align-items:center}
.grid.halves{grid-template-columns:1fr 1fr;align-items:start}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.grid.halves{grid-template-columns:1fr}}
.field label{display:block;margin:0 0 6px;color:var(--sub)}
.field input, .field select{
  width:100%;padding:10px 12px;border-radius:10px;border:1px solid var(--border);
  background:#0e1120;color:var(--text);outline:none
}
.field small{display:block;color:var(--sub);opacity:.85;margin-top:6px}

.btn{
  appearance:none;border:1px solid var(--border);background:#121632;color:var(--text);
  padding:10px 14px;border-radius:10px;cursor:pointer;transition:.2s ease;box-shadow:0 2px 0 rgba(0,0,0,.25)
}
.btn:hover{transform:translateY(-1px);border-color:#2a3058}
.btn.primary{background:linear-gradient(180deg,#7aa2ff,#587eff);color:#0b0d18;border-color:#668bff}

.table-scroller{overflow:auto;border:1px solid var(--border);border-radius:12px}
table{width:100%;border-collapse:collapse;min-width:560px}
thead th{position:sticky;top:0;background:#121632;color:var(--sub);font-weight:600}
th,td{padding:10px;border-bottom:1px solid var(--border);text-align:left}
tbody tr:hover{background:#0e1225}
td:last-child{text-align:right}

.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:#0e1225;color:var(--sub)}
.badge .dot{width:10px;height:10px;border-radius:50%}

/* Gantt */
.gantt{margin-top:14px}
.gantt-axis{display:flex;gap:12px;color:var(--sub);font-size:12px;margin-bottom:6px}
.gantt-track{
  position:relative;
  display:flex;
  align-items:stretch;
  height:56px;
  background:#0b0f22;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.segment{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  color:#0b0d18;font-weight:700;text-shadow:0 1px 0 rgba(255,255,255,.2);
  border-right:1px dashed rgba(0,0,0,.25);
  min-width:18px;
}
.segment .label{background:rgba(255,255,255,.85);padding:2px 6px;border-radius:8px}
.segment.idle{background:repeating-linear-gradient(-45deg, #171b33, #171b33 8px, #0c1024 8px, #0c1024 16px);color:var(--sub)}
.segment:last-child{border-right:0}

.summary{margin-top:10px;color:var(--sub)}
.explain{margin:6px 0 0;max-height:360px;overflow:auto}
.explain li{margin:6px 0;background:#0f1222;border:1px solid var(--border);border-radius:10px;padding:8px 10px;color:#d6d9ee}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  margin-top:40px;
  color:var(--sub);
  background:var(--muted);
}
.site-footer .wrap{padding:14px 20px}
