:root{
  --max: 960px;
  --pad: 18px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --border: 1px solid rgba(0,0,0,.12);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
}
a{ color:inherit; text-decoration:none; }
.container{ max-width:var(--max); margin:0 auto; padding:0 var(--pad); }

.header{
  position:sticky; top:0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px var(--pad);
  gap: 12px; flex-wrap: wrap;
}
.logo{ font-weight:700; }
.nav-right{ display:flex; gap:12px; flex-wrap:wrap; opacity:.9; }
.link{ padding:8px 10px; border-radius:999px; border: var(--border); }
.link.danger{ opacity:.85; }

.hero{ padding: 28px 0 10px; }
.hero h1{ margin:0 0 6px; font-size:34px; }
.sub{ margin:0 0 12px; opacity:.8; max-width:70ch; }

.stats{ display:flex; flex-wrap:wrap; gap:10px; margin: 10px 0 0; }
.pill{
  border: var(--border);
  border-radius:999px;
  padding: 6px 10px;
  font-size: 14px;
  opacity: .9;
}

.panel{ display:grid; gap:14px; padding: 14px 0 26px; }
.card{
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.row{ display:grid; gap:12px; grid-template-columns: 1fr; }
@media (min-width: 820px){
  .row{ grid-template-columns: repeat(4, 1fr); }
  .hero h1{ font-size:44px; }
}

.field{ display:flex; flex-direction:column; gap:6px; }
label{ font-weight:600; font-size:14px; opacity:.9; }
input, select, textarea{
  padding: 10px 12px;
  border-radius: 12px;
  border: var(--border);
  font: inherit;
}
textarea{ resize: vertical; }
.hint{ font-size: 12px; opacity:.7; margin-top:-2px; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.btn{
  padding: 10px 14px;
  border-radius: 999px;
  border: var(--border);
  box-shadow: var(--shadow);
  background: white;
  cursor:pointer;
}
.btn.ghost{ box-shadow:none; opacity:.9; }

.error{ margin: 10px 0 0; color: #a00; min-height: 1.2em; }

.list h2{ margin:0 0 10px; font-size: 20px; }
.item{
  display:grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}
.item .meta{ opacity:.75; font-size: 13px; }
.item .title{ font-weight: 700; }
.item.done{ opacity:.7; }
.item-actions{ display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; }
.small{
  padding: 8px 10px;
  border-radius: 999px;
  border: var(--border);
  background: white;
  cursor:pointer;
  opacity:.9;
}

.muted{ opacity:.75; }
.footer{
  border-top: 1px solid rgba(0,0,0,.08);
  text-align:center;
  padding: 22px var(--pad);
  opacity:.75;
}
