*{box-sizing:border-box}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;margin:0;background:#fffaf3;color:#222}
header{background:#6c4bd8;color:#fff;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:5}
header h1{font-size:18px;margin:0}button{background:#6c4bd8;color:#fff;border:0;border-radius:10px;padding:9px 13px;font-size:15px;min-height:42px;cursor:pointer}
button.small{padding:6px 10px;min-height:36px;font-size:14px}button.ghost{background:#eee;color:#333}button.plus{background:#e8e2ff;color:#3b2a7a;font-weight:700}
main{max-width:680px;margin:0 auto;padding:10px 12px 30px}.week{color:#555;font-size:14px;margin:2px 0 8px}
.tabs{display:flex;gap:8px;margin:10px 0}.tabs button{flex:1}.tabs .on{background:#6c4bd8;color:#fff}.tabs .off{background:#eee;color:#333}
.row{display:flex;gap:10px;align-items:flex-start;padding:9px 6px;border-bottom:1px solid #eee}.row input[type=checkbox]{width:26px;height:26px;flex:none;margin-top:1px}
.row .grow{flex:1;min-width:0}.meta{color:#777;font-size:13px}.bar{background:#eee;border-radius:99px;height:8px;overflow:hidden;margin:5px 0}.bar>div{background:#2e9e5b;height:100%}
h2{margin:16px 0 4px;font-size:17px}.note{background:#fff4d6;border-radius:10px;padding:8px 10px;margin:7px 0;font-size:15px}
.sub{margin-left:36px;padding:6px;border-bottom:1px dashed #eee;font-size:15px}input,textarea,select{width:100%;padding:10px;font-size:16px;border:2px solid #ddd;border-radius:10px;margin:5px 0}
details{margin-top:4px}summary{color:#6c4bd8;font-size:13px;cursor:pointer}.card{border:1px solid #eee;border-radius:12px;padding:10px;margin:10px 0;background:#fff}
.doneItem{color:#444}.hist details{border-bottom:1px solid #eee;padding:8px 0}.hist-comp{padding:5px 0;border-bottom:1px dashed #f0e9dc}a{color:#6c4bd8;text-decoration:none}
