@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--navy:#123565;--navy2:#0d2b53;--blue:#2878d5;--pale:#eaf3ff;--ink:#17263c;--muted:#718096;--line:#e5eaf1;--bg:#f4f7fb;--red:#e34d4d;--redp:#fff0ef;--green:#19845a;--greenp:#e9f7f0;--shadow:0 10px 28px rgba(22,49,84,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif}.app-shell{max-width:520px;min-height:100svh;margin:0 auto;background:#fff;box-shadow:0 0 50px #122b4a12;position:relative;padding-bottom:88px}.topbar{height:92px;background:linear-gradient(125deg,var(--navy2),var(--navy));color:white;padding:calc(env(safe-area-inset-top) + 14px) 22px 14px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:14px;background:#ffffff20;display:grid;place-items:center;font-size:25px}.brand-title{font:800 18px Manrope,sans-serif;letter-spacing:-.3px}.brand-subtitle{font-size:11px;color:#c8d8ed;margin-top:2px}.avatar{border:1px solid #ffffff70;background:#ffffff20;color:#fff;border-radius:50%;width:40px;height:40px;font-weight:700;font-size:17px}main{padding:22px 18px 28px}.page{display:none}.page.active{display:block}.eyebrow{font-size:10px;letter-spacing:1.45px;font-weight:700;color:#8493a8}.date-heading,.section-head{display:flex;align-items:center;justify-content:space-between;margin:4px 2px 20px}.date-heading h1,.section-head h1{font:800 25px Manrope,sans-serif;margin:5px 0 0;letter-spacing:-.8px}.date-icon{font-size:30px;color:var(--blue);background:var(--pale);width:48px;height:48px;border-radius:16px;display:grid;place-items:center}.section-head{margin-bottom:18px}.icon-button{border:0;background:var(--pale);color:var(--blue);width:44px;height:44px;border-radius:15px;font-size:28px;line-height:1}.card{border:1px solid var(--line);border-radius:18px;padding:16px;margin:12px 0;box-shadow:var(--shadow);background:white}.card-label{font-size:10px;letter-spacing:1.3px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:7px}.card h2{font:700 17px Manrope,sans-serif;margin:9px 0 6px}.card p{margin:5px 0;color:#56657a;font-size:14px;line-height:1.5}.exam-card{border-color:#ffd4d1;background:linear-gradient(130deg,#fff7f6,#fff)}.exam-card .card-label{color:#d34c46}.exam-card h2{color:#9d302d}.exam-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#6b7584;margin-top:12px}.exam-meta span{display:flex;align-items:center;gap:5px}.task-card{display:flex;gap:12px;align-items:flex-start}.check{appearance:none;flex:0 0 23px;width:23px;height:23px;border:2px solid #a7b6c8;border-radius:8px;margin:1px 0 0;background:white;cursor:pointer}.check:checked{background:var(--green);border-color:var(--green);position:relative}.check:checked:after{content:'✓';color:white;position:absolute;inset:0;display:grid;place-items:center;font-size:15px;font-weight:bold}.task-copy{flex:1;min-width:0}.task-copy h2{margin:0 0 4px;font-size:15px}.task-copy p{white-space:pre-line}.done .task-copy h2,.done .task-copy p{text-decoration:line-through;color:#9aa5b3}.tag{font-size:10px;font-weight:700;padding:5px 8px;border-radius:20px;background:#edf3fa;color:#60718a;white-space:nowrap}.tag.red{background:var(--redp);color:#c6423c}.tag.blue{background:var(--pale);color:#2169bb}.tag.green{background:var(--greenp);color:var(--green)}.summary-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.summary-box{padding:14px;border-radius:16px;background:#f4f8fd;border:1px solid #e9eff7}.summary-number{font:800 23px Manrope;color:var(--navy)}.summary-label{font-size:11px;color:var(--muted);margin-top:2px}.empty{padding:20px;border:1px dashed #d5deea;border-radius:16px;text-align:center;color:var(--muted);font-size:13px}.primary-button,.secondary-button,.danger-button{border:0;border-radius:13px;padding:13px 15px;font:700 13px 'DM Sans';cursor:pointer}.primary-button{background:var(--blue);color:white}.secondary-button{background:var(--pale);color:#1e65b5}.danger-button{background:#fff0ef;color:#c4433e}.full{width:100%;margin-top:10px}.month-switch{display:flex;align-items:center;justify-content:space-between;margin:18px 0 14px}.month-switch h2{font:700 16px Manrope;margin:0}.round-button{border:1px solid var(--line);background:white;border-radius:50%;width:34px;height:34px;font-size:22px;color:var(--navy)}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekday,.day-cell{min-height:42px;display:grid;place-items:center;font-size:12px}.weekday{color:#8996a8;font-size:10px;font-weight:700}.day-cell{border:0;background:white;border-radius:12px;color:#33445b;position:relative}.day-cell.muted{color:#c1c9d4}.day-cell.today{outline:1px solid var(--blue);color:var(--blue);font-weight:700}.day-cell.selected{background:var(--navy);color:white}.day-cell.has-items:after{content:'';position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:#e45a50}.day-cell.selected.has-items:after{background:white}.selected-day{margin-top:24px}.selected-day h3{font:700 15px Manrope}.filter-row{display:flex;gap:7px;margin:0 0 14px}.filter{border:1px solid var(--line);background:white;border-radius:20px;padding:8px 13px;font-size:11px;color:#66758a}.filter.active{background:var(--navy);color:white;border-color:var(--navy)}.settings-card{display:flex;gap:13px;padding:15px;border:1px solid var(--line);border-radius:16px;margin:11px 0}.settings-icon{width:38px;height:38px;background:#f1f6fc;border-radius:12px;display:grid;place-items:center;font-size:18px}.settings-card strong{font:700 14px Manrope}.settings-card p{font-size:12px;color:var(--muted);line-height:1.45;margin:4px 0}.setting-grow{flex:1}.status-pill{font-size:10px;color:#9a6b24;background:#fff5df;border-radius:20px;padding:5px 9px;display:inline-block;margin-top:5px}.settings-actions{display:grid;gap:9px;margin-top:20px}.file-label{text-align:center;display:block}.file-label input{display:none}.fine-print{font-size:10px;line-height:1.5;color:#98a3b1;margin:18px 3px}.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);height:calc(76px + env(safe-area-inset-bottom));padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(16px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:5}.tab{border:0;background:transparent;color:#8794a5;font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:13px}.tab span{font-size:23px;line-height:1.1}.tab.active{color:var(--navy);background:#edf5ff;font-weight:700}.modal-backdrop{position:fixed;inset:0;background:#0b1e36a8;z-index:10;display:flex;align-items:flex-end;justify-content:center}.modal-backdrop[hidden]{display:none}.modal{width:min(100%,520px);max-height:92svh;overflow:auto;background:white;border-radius:24px 24px 0 0;padding:22px 18px calc(25px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px #071a3333}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal h2{font:800 21px Manrope;margin:4px 0 14px}.close-button{border:0;background:#f0f3f7;border-radius:50%;width:34px;height:34px;font-size:23px;color:#526176}.type-switch{display:flex;gap:7px;margin:4px 0 17px}.type-option{flex:1;border:1px solid var(--line);background:white;border-radius:11px;padding:10px 4px;font-size:11px}.type-option.active{background:var(--pale);border-color:#b9d7fa;color:#1c65b6;font-weight:700}form label{display:block;font-size:11px;font-weight:700;color:#5d6b7d;margin:11px 0}input,textarea{font:14px 'DM Sans';color:var(--ink)}form input,form textarea,.import-area textarea{display:block;width:100%;border:1px solid #dce3ec;border-radius:11px;padding:12px;margin-top:6px;outline:none;background:#fbfcfe}form input:focus,form textarea:focus,.import-area textarea:focus{border-color:var(--blue)}.form-note{font-size:10px;color:#8b97a7;line-height:1.45;margin:10px 0}.import-area{border-top:1px solid var(--line);margin-top:22px;padding-top:17px}.import-title{font:700 14px Manrope}.import-area p{font-size:11px;color:var(--muted);line-height:1.45}.import-area textarea{resize:vertical}.parse-result{font-size:12px;background:#f3f8ff;border-radius:12px;padding:12px;margin-top:10px}.toast{position:fixed;bottom:92px;left:50%;transform:translate(-50%,20px);background:#18395f;color:white;border-radius:30px;padding:11px 17px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.item-row{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid #eef1f5}.item-row:last-child{border-bottom:0}.item-date{width:43px;flex:0 0 43px;border-radius:11px;background:#f0f5fb;text-align:center;padding:7px 3px;color:#315c8e;font-size:10px;font-weight:700}.item-row strong{font-size:13px}.item-row p{font-size:11px;color:var(--muted);margin:4px 0;white-space:pre-line}.delete-button{border:0;background:transparent;color:#b1bbc8;font-size:18px;margin-left:auto}.small-note{font-size:10px;color:#99a4b1}
@media(min-width:600px){body{padding:22px 0}.app-shell{min-height:calc(100svh - 44px);border-radius:24px;overflow:hidden}.tabbar{bottom:22px;border-radius:0 0 24px 24px}.modal{border-radius:24px;margin-bottom:20px}.modal-backdrop{align-items:center}}
