/* Minimal, propre, mobile-first */
:root{
  --bg:#0b0f14;
  --card:#111827;
  --muted:#9ca3af;
  --text:#e5e7eb;
  --accent:#22c55e;
  --accent2:#60a5fa;
  --danger:#ef4444;
  --border: rgba(255,255,255,.08);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --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(1200px 500px at 20% -20%, rgba(34,197,94,.25), transparent),
              radial-gradient(900px 400px at 90% 0%, rgba(96,165,250,.18), transparent),
              var(--bg);
  color:var(--text);
}
.container{max-width:1000px; margin:0 auto; padding:18px}
.header{display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  border-radius:14px;
}
.brand-name{font-weight:700; letter-spacing:.2px}
.brand-tagline{color:var(--muted); font-size:.9rem}

.hero{padding:22px 0 12px}
h1{font-size:clamp(1.6rem, 3.2vw, 2.4rem); line-height:1.15; margin:10px 0 10px}
.sub{color:var(--muted); max-width:70ch; margin:0 0 16px}
.pill{
  display:inline-block;
  padding:.15rem .55rem;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.05);
  color:var(--text);
}

.card{
  background: rgba(17,24,39,.78);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  backdrop-filter: blur(10px);
}
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 720px){
  .grid{grid-template-columns: 1fr 1fr}
}
.field span{display:block; font-weight:600; margin-bottom:6px}
.field input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
.field input:focus{border-color: rgba(34,197,94,.55); box-shadow: 0 0 0 3px rgba(34,197,94,.15)}
.field small{display:block; margin-top:6px; color:var(--muted)}

.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
button, a.ghost{
  border:1px solid var(--border);
  background: rgba(34,197,94,.16);
  color:var(--text);
  padding:10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:650;
}
button:hover, a.ghost:hover{filter:brightness(1.08)}
button.secondary{background: rgba(96,165,250,.15)}
a.ghost{
  text-decoration:none;
  background: rgba(255,255,255,.05);
  font-weight:600;
}
.status{margin-top:10px; color:var(--muted); min-height:1.3em}
.status.err{color: var(--danger)}
.status.ok{color: var(--accent)}

.results{margin-top:18px}
.results-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.results-head h2{margin:6px 0 0}
.next{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding:10px 12px;
  min-width: 260px;
}
.next-title{color:var(--muted); font-size:.9rem}
.next-main{font-weight:800; margin-top:4px}
.next-sub{color:var(--muted); font-size:.9rem; margin-top:2px}

.toolbar{
  display:flex; align-items:center; gap:14px;
  padding:12px 0 10px;
  flex-wrap:wrap;
}
.check{display:flex; align-items:center; gap:8px; color:var(--muted)}
.check input{accent-color: var(--accent)}
.cards{display:grid; grid-template-columns: 1fr; gap:12px}
@media (min-width: 840px){
  .cards{grid-template-columns: 1fr 1fr}
}

.cardItem{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  background: rgba(255,255,255,.04);
}
.row{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.dateBig{font-size:1.25rem; font-weight:900}
.badges{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.badge{
  font-size:.78rem;
  padding:.2rem .55rem;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.22);
  color:var(--text);
}
.badge.b1{outline:1px solid rgba(34,197,94,.25)}
.badge.b2{outline:1px solid rgba(96,165,250,.25)}
.badge.b3{outline:1px solid rgba(244,63,94,.25)}
.meta{margin-top:8px; color:var(--muted)}
.meta code{font-family:var(--mono); font-size:.92rem}

.footer{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; color:var(--muted); padding-bottom:28px}
.muted{opacity:.85}
.notes{margin-top:14px; color:var(--muted)}
.notes summary{cursor:pointer}
