:root{
  --bg: #0f1220;
  --card: #171a2b;
  --muted: #9aa3b2;
  --text: #e6ebff;
  --accent: #6aa9ff;
  --accent-2: #8ef6d1;
  --danger: #ff8a8a;
  --ring: #27304a;
  --shadow: rgba(0,0,0,0.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(1200px 600px at 100% -10%, #1a1d30, var(--bg));
  color:var(--text);
}

.site-header{
  padding:28px 22px 10px;
  max-width:1100px;
  margin:0 auto;
}
.site-header h1{margin:0;font-size: clamp(28px, 4vw, 40px)}
.tagline{margin:8px 0 0;color:var(--muted)}

.controls{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(15,18,32,0.8), rgba(15,18,32,0.35));
  border-bottom:1px solid var(--ring);
  padding:14px 22px;
}
.controls .row{
  display:flex; gap:10px; align-items:center;
  max-width:1100px; margin:6px auto;
  flex-wrap:wrap;
}
.controls input, .controls select, .controls button{
  height:40px; border-radius:10px; border:1px solid var(--ring);
  background:#0f1323; color:var(--text); padding:0 12px;
  outline:none;
}
.controls input:focus, .controls select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106,169,255,0.2);
}
.controls .ghost{
  background:transparent; border:1px dashed var(--ring); color:var(--muted);
}
.meta{color:var(--muted); font-size:14px}
.progress{
  flex:1; height:10px; background:#0b0e1a; border-radius:999px;
  box-shadow: inset 0 0 0 1px var(--ring);
  overflow:hidden; min-width:160px;
}
.progress-bar{
  height:100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition:width .25s ease;
}

.cards{
  max-width:1100px; margin:16px auto 80px; padding:0 22px;
  display:grid; gap:14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card{
  background:linear-gradient(180deg, #191c2e, var(--card));
  border:1px solid var(--ring); border-radius:16px;
  box-shadow: 0 10px 24px var(--shadow);
  padding:16px; display:flex; flex-direction:column; gap:10px;
}
.card h3{margin:0 0 2px; font-size:18px}
.badges{display:flex; gap:8px; flex-wrap:wrap}
.badge{
  font-size:12px; padding:4px 8px; border-radius:999px;
  background:#0d1222; color:var(--muted); border:1px solid var(--ring);
}
.links{display:flex; gap:8px; flex-wrap:wrap}
a.btn{
  text-decoration:none; color:var(--text);
  background:#0f1323; border:1px solid var(--ring);
  padding:8px 10px; border-radius:10px; font-size:14px;
}
a.btn:hover{border-color:var(--accent)}

.actions{
  display:flex; gap:8px; align-items:center; margin-top:auto;
}
.toggle{
  appearance:none; width:22px; height:22px; display:inline-grid; place-items:center;
  border-radius:6px; border:1px solid var(--ring); background:#0f1323; cursor:pointer;
}
.toggle:checked{
  background:linear-gradient(180deg, #0c1c0f, #0d2a18);
  border-color:#1c5b32;
}
.toggle:checked::after{content:"✓"; color:#9af5c9; font-weight:700}
.toggle:not(:checked)::after{content:""}

.done-label{font-size:14px; color:var(--muted)}
.site-footer{
  border-top:1px solid var(--ring);
  color:var(--muted);
  max-width:1100px; margin:30px auto 0; padding:18px 22px;
}
