:root{font-family:Inter,system-ui,-apple-system,sans-serif;color-scheme:light dark;color:#172235;background:#f4f6fa}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.app{max-width:700px;margin:auto;min-height:100dvh;background:#fff;padding:18px 18px 30px}header,.brand,.nav,.modalhead,.actions{display:flex;align-items:center;justify-content:space-between}.brand{gap:12px;color:#1976d2}.brand div{display:flex;flex-direction:column}.brand strong{font-size:22px}.brand small{font-size:12px;color:#8893a3}.plus,.primary{border:0;border-radius:12px;background:#1976d2;color:#fff;padding:12px}.modes{display:flex;background:#edf1f6;border-radius:12px;padding:4px;margin-top:22px}.modes button{flex:1;background:none;border:0;padding:9px;border-radius:9px;color:#4f5a6c}.modes .active{background:#fff;color:#1976d2;box-shadow:0 1px 5px #0001}.nav{margin:13px 0}.nav h2{text-transform:capitalize;font-size:18px}.nav button,.modalhead button{border:0;background:none;color:inherit}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.weekday{text-align:center;color:#8c96a3;font-size:12px;padding:9px 0}.day{min-height:62px;background:#f7f9fc;border:1px solid transparent;border-radius:9px;color:inherit;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px}.day.muted{color:#b7c0cb}.day.selected{border-color:#1976d2;background:#e9f3ff;font-weight:700}.dots{display:flex;gap:3px;min-height:6px}.dots i{display:block;border-radius:20px;width:6px;height:6px}.blue{--event:#4d95ea}.green{--event:#3baf77}.red{--event:#f06a6a}.purple{--event:#9d78db}.orange{--event:#e99a42}.dots i{background:var(--event)}section{margin-top:24px}section h3{text-transform:capitalize;font-size:16px}.empty{color:#8b96a5;text-align:center;padding:30px 0}.error{color:#9b2828;background:#ffeded;padding:12px;border-radius:10px;margin:10px 0}.event{border-left:4px solid var(--event);background:#f4f7fc;border-radius:10px;padding:12px;display:flex;gap:10px;margin:8px 0}.complete{width:24px;height:24px;align-self:center;border:1px solid #9cacc0;border-radius:50%;background:#fff;color:#1976d2}.eventbody{display:flex;flex-direction:column;align-items:start;gap:5px;flex:1;border:0;background:none;text-align:left;color:inherit}.eventbody small{color:#758196}.done{text-decoration:line-through;opacity:.5}.quickDays{display:flex;gap:6px}.quickDays button{border:1px solid #d4dbe5;background:#fff;border-radius:9px;padding:10px;flex:1}.quickDays .active{background:#e9f3ff;border-color:#1976d2}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#1118;display:flex;justify-content:center;align-items:end;z-index:20}.modal{background:#fff;border-radius:22px 22px 0 0;padding:20px;max-width:700px;width:100%;max-height:92dvh;overflow:auto}.modalhead{margin-bottom:12px}.modal label{display:block;font-size:13px;margin:12px 0;color:#556174}.modal input,.modal textarea,.modal select{display:block;width:100%;padding:12px;background:#f6f8fb;color:#172235;border:1px solid #d9dfeb;border-radius:10px;margin-top:6px}.modal textarea{min-height:65px}.actions{gap:10px;justify-content:flex-end}.delete{border:0;color:#c73737;background:#ffe9e9;padding:12px;border-radius:10px;margin-right:auto}footer{text-align:center;color:#9aabb8;font-size:11px;margin-top:40px}@media(prefers-color-scheme:dark){:root{background:#101820;color:#eaf1fa}.app,.modal{background:#17202c}.modes{background:#222f3d}.modes .active{background:#344253;color:#fff}.day,.event{background:#253141}.day.selected{background:#243d58}.quickDays button{background:#223041;color:#eaf1fa}.modal input,.modal textarea,.modal select{background:#243243;color:#fff;border-color:#44556a}}
