:root{
  --bg:#0b1020;
  --panel:#111a33;
  --panel2:#0f1630;
  --text:#e9eefc;
  --muted:#b8c2e6;
  --line:rgba(255,255,255,.10);
  --accent:#7aa7ff;
  --ok:#2dd4bf;
  --warn:#fbbf24;
  --risk:#fb7185;
  --todo:#93c5fd;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1100px 600px at 15% 0%, rgba(122,167,255,.18), transparent 55%),
              radial-gradient(900px 520px at 95% 15%, rgba(45,212,191,.12), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1080px; margin:0 auto; padding:28px 18px 60px}

.header{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:flex-end;
  justify-content:space-between;
  padding:20px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}

h1{margin:0; font-size:26px; letter-spacing:.2px}
.subtitle{margin:6px 0 0; color:var(--muted); font-size:14px}

.badges{display:flex; gap:8px; flex-wrap:wrap}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}

.grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:16px; margin-top:16px}
@media (max-width: 920px){ .grid{grid-template-columns:1fr} }

.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border-radius:16px;
  padding:16px 16px;
  box-shadow:var(--shadow);
}
.card h2{margin:0 0 10px; font-size:18px}
.card h3{margin:14px 0 8px; font-size:15px; color:var(--text)}

.kv{display:flex; flex-wrap:wrap; gap:10px; margin-top:8px}
.kv .pill{
  font-size:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
}

.small{font-size:13px; color:var(--muted)}

.table-wrap{overflow:auto; border-radius:12px; border:1px solid var(--line)}
table{width:100%; border-collapse:collapse; min-width:740px; background:rgba(17,26,51,.35)}
th,td{padding:10px 10px; border-bottom:1px solid var(--line); vertical-align:top}
th{position:sticky; top:0; background:rgba(17,26,51,.85); text-align:left; font-size:12px; letter-spacing:.2px; text-transform:uppercase; color:var(--muted)}
tr:last-child td{border-bottom:none}

.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.status::before{content:""; width:8px; height:8px; border-radius:999px; background:var(--todo)}
.status.done{color:rgba(45,212,191,.95)}
.status.done::before{background:var(--ok)}
.status.inprogress{color:rgba(251,191,36,.95)}
.status.inprogress::before{background:var(--warn)}
.status.blocked{color:rgba(251,113,133,.95)}
.status.blocked::before{background:var(--risk)}

.filters{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:8px 0 12px}
label{font-size:13px; color:var(--muted)}
select,input[type="search"]{
  appearance:none;
  padding:9px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
input[type="search"]{min-width:260px}

.section{margin-top:16px}
.section > h2{margin:0 0 10px; font-size:18px}

.details{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.02);
  margin:10px 0;
}
.details > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  font-weight:600;
}
.details > summary::-webkit-details-marker{display:none}
.details[open]{background:rgba(255,255,255,.03)}
.details .meta{font-family:var(--mono); font-size:12px; color:var(--muted)}

.ul{margin:8px 0 0 18px; color:var(--muted)}

.callout{
  border-left:3px solid var(--accent);
  padding:10px 12px;
  background:rgba(122,167,255,.08);
  border-radius:12px;
  color:var(--muted);
}

.sep{border:none; border-top:1px solid var(--line); margin:14px 0}

.agents{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px}
@media (max-width: 920px){ .agents{grid-template-columns:1fr} }

.agent{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
}
.agent-head{display:flex; gap:10px; align-items:center}
.agent-key{
  width:28px; height:28px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  font-family:var(--mono);
  color:var(--muted);
}
.agent-name{font-weight:700}
.agent-goal{margin:8px 0 0; color:var(--muted)}

.footer{margin-top:20px; color:var(--muted); font-size:12px}

code,kbd{font-family:var(--mono)}
