:root{--bg:#faf8f4;--card:#fff;--ink:#2a2a2a;--mute:#6b6b6b;--line:#e6e1d8;--accent:#6b4fbb;--ok:#2e7d4f;--warn:#b26a00;--bad:#b3261e}
*{box-sizing:border-box}body{margin:0;font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--ink)}
header{background:#fff;border-bottom:1px solid var(--line);padding:.6rem 1.2rem;display:flex;gap:1.2rem;align-items:center}
header a{color:var(--ink);text-decoration:none;font-weight:500}header .brand{font-weight:700;color:var(--accent)}
.badge{display:inline-block;padding:0 .5em;border-radius:1em;font-size:.8em;background:#eee}
.badge.ok,.badge.completed,.badge.done{background:#e3f3e9;color:var(--ok)}.badge.stale,.badge.failed{background:#fbe6e4;color:var(--bad)}
.badge.to_verify,.badge.review,.badge.paused,.badge.open{background:#fff1dc;color:var(--warn)}.badge.active,.badge.running{background:#ece7fb;color:var(--accent)}
main{max-width:1180px;margin:1.2rem auto;padding:0 1rem}.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:1rem 1.2rem;margin-bottom:1rem}
h1{font-size:1.5rem;margin:.2rem 0 1rem}h2{font-size:1.15rem;margin:.2rem 0 .8rem}table{border-collapse:collapse;width:100%}
td,th{border-bottom:1px solid var(--line);padding:.35rem .4rem;text-align:left;vertical-align:top}th{font-weight:600;color:var(--mute);font-size:.9em}
textarea,input,select{font:inherit;padding:.4rem;border:1px solid var(--line);border-radius:6px;background:#fff}textarea{width:100%}
button{font:inherit;padding:.4rem .9rem;border-radius:6px;border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer}
button.ghost{background:#fff;color:var(--accent)}.row{display:flex;gap:1rem;flex-wrap:wrap}.col{flex:1;min-width:280px}
.plan li{list-style:none;margin:.2rem 0}.plan .termine::before{content:"✔ ";color:var(--ok)}.plan .en_cours::before{content:"▶ ";color:var(--accent)}.plan .a_faire::before{content:"○ ";color:var(--mute)}
.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}.pagecard img{width:100%;border-radius:6px;aspect-ratio:1;object-fit:cover;background:#eee}
.mute{color:var(--mute)}pre{white-space:pre-wrap;background:#f6f4ef;padding:.6rem;border-radius:6px;font-size:.85em;max-height:420px;overflow:auto}
.flash{padding:.6rem 1rem;border-radius:8px;margin-bottom:1rem}.flash.ok{background:#e3f3e9}.flash.err{background:#fbe6e4}.flash.warn{background:#fff1dc}
.thumbs img{height:150px;margin:.2rem;border:1px solid var(--line)}a{color:var(--accent)}
header .spacer{flex:1}form.inline{display:inline;margin:0}button.small{padding:.15rem .6rem;font-size:.85em}.narrow{max-width:520px;margin:2rem auto}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem}.stat{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:.8rem 1rem}.stat strong{display:block;font-size:1.6rem;color:var(--accent)}
.progress{background:#eee;border-radius:6px;height:8px;min-width:120px}.progress span{display:block;height:8px;border-radius:6px;background:var(--accent)}
