*{box-sizing:border-box;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}body{color:#1f2937;-webkit-tap-highlight-color:#0000;background-color:#f9fafb}.app-container{background-color:#f9fafb;max-width:480px;min-height:100vh;margin:0 auto;padding-bottom:90px;position:relative;box-shadow:0 0 20px #0000000d}.app-header{z-index:10;background:#fff;border-bottom:1px solid #e5e7eb;padding:20px;position:sticky;top:0}.app-header h1{color:#1f2937;font-size:22px;font-weight:800}.content-wrapper{padding:16px}.tab-nav{background:#e5e7eb;border-radius:12px;margin-bottom:20px;padding:4px;display:flex}.tab-nav .tab-btn{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:8px;padding:10px;font-size:14px;font-weight:600;transition:all .2s;display:flex}.tab-nav .tab-btn.active{color:#2563eb;background:#fff;box-shadow:0 1px 3px #0000001a}.card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin-bottom:20px;padding:16px;box-shadow:0 2px 4px #00000005}.calendar-header{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.calendar-header h3{text-transform:capitalize;font-size:16px;font-weight:700}.calendar-header button{cursor:pointer;background:0 0;border:1px solid #e5e7eb;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.calendar-header button:hover{background:#f3f4f6}.week-days{text-align:center;grid-template-columns:repeat(7,1fr);margin-bottom:8px;display:grid}.week-days span{color:#9ca3af;text-transform:uppercase;font-size:11px;font-weight:700}.days-grid{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.day-cell{cursor:pointer;background-color:#fff;border:2px solid #0000;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;height:52px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:relative}.day-cell .solar{z-index:2;font-size:14px;font-weight:600}.day-cell .lunar{color:#9ca3af;z-index:2;margin-top:2px;font-size:10px}.day-cell .dot{display:none}.day-cell.type-work{color:#fff;background-color:#2563eb;box-shadow:0 4px 6px -1px #2563eb4d}.day-cell.type-work .lunar{color:#fffc}.day-cell.type-personal{color:#fff;background-color:#ef4444;box-shadow:0 4px 6px -1px #ef44444d}.day-cell.type-personal .lunar{color:#fffc}.day-cell.type-health{color:#fff;background-color:#22c55e;box-shadow:0 4px 6px -1px #10b9814d}.day-cell.type-health .lunar{color:#fffc}.day-cell:hover{transform:translateY(-2px)}.day-cell.today{border-color:#2563eb}.day-cell.today:not(.type-work):not(.type-personal):not(.type-health),.day-cell.today:not(.type-work):not(.type-personal):not(.type-health) .lunar{color:#2563eb}.day-cell.selected{border-color:#1f2937;transform:scale(.95)}.day-cell.selected:not(.type-work):not(.type-personal):not(.type-health){color:#fff;background-color:#1f2937}.day-cell.selected:not(.type-work):not(.type-personal):not(.type-health) .lunar{color:#ffffffb3}.event-item{background:#fff;border:1px solid #f3f4f6;border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:10px;padding:14px;display:flex;box-shadow:0 1px 2px #00000005}.event-item h4{color:#1f2937;margin-bottom:4px;font-size:15px;font-weight:600}.event-item .time{color:#6b7280;align-items:center;gap:4px;font-size:12px;display:flex}.event-item .tag{text-transform:uppercase;border-radius:20px;padding:4px 10px;font-size:10px;font-weight:700}.event-item .tag.work{color:#1e40af;background:#dbeafe}.event-item .tag.personal{color:#991b1b;background:#fee2e2}.event-item .tag.health{color:#166534;background:#dcfce7}.form-control{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;outline:none;width:100%;margin-bottom:15px;padding:12px;font-size:14px}.form-control:focus{background:#fff;border-color:#2563eb}.fab-btn{color:#fff;cursor:pointer;z-index:50;background:#2563eb;border:none;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;transition:transform .2s;display:flex;position:fixed;bottom:25px;right:25px;box-shadow:0 4px 15px #2563eb66}.fab-btn:active{transform:scale(.95)}.modal-overlay{z-index:100;background:#00000080;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal-overlay .modal-content{background:#fff;border-radius:20px;width:100%;max-width:360px;padding:24px;animation:.2s ease-out popIn}.type-selector{gap:8px;margin-bottom:20px;display:flex}.type-selector button{cursor:pointer;color:#6b7280;background:#fff;border:1px solid #e5e7eb;border-radius:8px;flex:1;padding:8px;font-size:12px;font-weight:600}.type-selector button.selected{color:#fff;border:none}.type-selector button.selected.work{background:#2563eb}.type-selector button.selected.personal{background:#ef4444}.type-selector button.selected.health{background:#22c55e}.modal-actions{gap:10px;display:flex}.modal-actions button{cursor:pointer;border:none;border-radius:10px;flex:1;padding:12px;font-weight:600}.modal-actions button.cancel{color:#6b7280;background:#f3f4f6}.modal-actions button.save{color:#fff;background:#2563eb}@keyframes popIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
