*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:DM Sans,sans-serif;background:#fff;color:#8e8888}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ddd;border-radius:2px}.note-body .note-cb{cursor:pointer;-webkit-user-select:none;user-select:none;font-size:13px;line-height:1}.note-body .note-cb.done{opacity:.65}.note-body b,.note-body strong{font-weight:700}.note-body i,.note-body em{font-style:italic}.note-body u{text-decoration:underline}.preview-scroll::-webkit-scrollbar{width:5px}.preview-scroll::-webkit-scrollbar-thumb{background:#80808073;border-radius:3px}.dark{color-scheme:dark}.dark body{background:#5a5a5a;color:#e8e8e8}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .15s ease}button{cursor:pointer;background:none;border:none;font-family:inherit}input,textarea,select{font-family:inherit}a{text-decoration:none;color:inherit}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.modal-box{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px #00000026;width:100%;max-width:480px;max-height:90vh;display:flex;flex-direction:column}.dark .modal-box{background:#4d4d4d;border:1px solid #5a5a5a;color:#f0f0f0}.form-input{width:100%;height:32px;border-radius:6px;border:1px solid #e5e7eb;padding:0 10px;font-size:12px;background:transparent;color:inherit;outline:none;transition:border-color .15s}.form-input:focus{border-color:#3a3a3a}.dark .form-input{border-color:#666;background:#666;color:#f0f0f0}.form-textarea{width:100%;border-radius:6px;border:1px solid #e5e7eb;padding:8px 10px;font-size:12px;background:transparent;color:inherit;outline:none;resize:none;transition:border-color .15s;min-height:60px}.form-textarea:focus{border-color:#3a3a3a}.dark .form-textarea{border-color:#666;background:#666;color:#f0f0f0}.form-select{width:100%;height:32px;border-radius:6px;border:1px solid #e5e7eb;padding:0 10px;font-size:12px;background:#fff;color:inherit;outline:none}.dark .form-select{border-color:#666;background:#666;color:#f0f0f0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s;border:none;font-family:inherit;padding:0 16px;height:32px}.btn-dark{background:#8e8888;color:#fff}.btn-dark:hover{background:#7a7474}.dark .btn-dark{background:#6e6e6e;color:#fff;border:1px solid #7e7e7e}.dark .btn-dark:hover{background:#7e7e7e}.dark .btn-dark:disabled{background:#555;color:#888}.btn-outline{background:transparent;border:1px solid #999898;color:#8e8888}.btn-outline:hover{background:#f9fafb}.dark .btn-outline{border-color:#666;color:#d0d0d0}.dark .btn-outline:hover{background:#666}.btn-ghost{background:transparent;color:#3a3a3a}.btn-ghost:hover{background:#f3f4f6}.dark .btn-ghost:hover{background:#ffffff1a}.btn-danger{background:transparent;color:#ef4444}.btn-danger:hover{background:#fef2f2}.color-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;display:inline-block}.switch{position:relative;display:inline-block;width:36px;height:20px}.switch input{opacity:0;width:0;height:0}.switch-slider{position:absolute;cursor:pointer;top:0;right:0;bottom:0;left:0;background:#d1d5db;border-radius:20px;transition:.2s}.switch-slider:before{content:"";position:absolute;height:16px;width:16px;left:2px;bottom:2px;background:#fff;border-radius:50%;transition:.2s}input:checked+.switch-slider{background:#8e8888}.dark input:checked+.switch-slider{background:#727272}input:checked+.switch-slider:before{transform:translate(16px)}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}.cal-cell{padding:6px;min-height:100px;cursor:pointer;transition:background .1s}.cal-cell:hover{background:#f9fafb}.dark .cal-cell:hover{background:#ffffff0a}.time-grid{display:flex;flex:1;overflow:hidden}.hour-labels{width:56px;flex-shrink:0;position:relative}.hour-row{position:relative}.event-chip{border-radius:4px;padding:1px 6px;font-size:11px;font-weight:500;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:opacity .1s;display:flex;align-items:center;gap:4px;width:100%}.event-chip:hover{opacity:.85}.event-chip-timed{position:absolute;left:4px;right:4px;border-radius:6px;padding:3px 6px;font-size:11px;font-weight:500;cursor:pointer;overflow:hidden;transition:opacity .1s;z-index:20}.event-chip-timed:hover{opacity:.85}.sidebar{width:224px;flex-shrink:0;border-right:1px solid #999898;background:#d4d4d4;display:flex;flex-direction:column;overflow:hidden}.dark .sidebar{border-color:#3e3e3e;background:#424242}.notes-panel{flex-shrink:0;border-left:1px solid #999898;background:#fff;display:flex;flex-direction:column;overflow:hidden;min-width:200px;max-width:600px}.dark .notes-panel{border-color:#4d4d4d;background:#5a5a5a}.notes-resize-handle{width:5px;flex-shrink:0;cursor:col-resize;background:transparent;transition:background .15s;position:relative;z-index:1}.notes-resize-handle:hover,.notes-resize-handle.dragging{background:#3b82f6}.app-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #cccccc;background:#f0f0f0;flex-shrink:0;gap:6px;flex-wrap:wrap;min-height:48px}.dark .app-header{border-color:#383838;background:#3d3d3d}.mini-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px}.mini-cal-day{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer;transition:background .1s}.mini-cal-day:hover{background:#f0f0f0}.dark .mini-cal-day:hover{background:#ffffff1a}.preview-drag-handle:hover .preview-drag-dots{opacity:.55!important}.preview-card{background:#fff;border-radius:16px;box-shadow:0 8px 40px #00000026;border:1px solid #999898;width:320px}.dark .preview-card{background:#4d4d4d;border-color:#5a5a5a}.note-card{border-radius:12px;border:1px solid;padding:10px;cursor:pointer;transition:box-shadow .1s}.note-card:hover{box-shadow:0 2px 8px #00000014}.tab-btn{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:30px;border-radius:8px;font-size:12px;font-weight:500;border:1px solid #999898;color:#3a3a3a;background:transparent;transition:all .15s;white-space:nowrap}.tab-btn span{display:none}@media(min-width:700px){.tab-btn span{display:inline}}.btn{white-space:nowrap}.tab-btn:hover{border-color:#d1d5db}.tab-btn.active{background:#8e8888;color:#fff;border-color:#8e8888}.dark .tab-btn{border-color:#5a5a5a;color:#c8c8c8}.dark .tab-btn.active{background:#686868;color:#fff;border-color:#686868}.view-switcher{display:flex;background:#f3f4f6;border-radius:8px;padding:2px}.dark .view-switcher{background:#333}.view-btn{padding:3px 8px;border-radius:6px;font-size:11px;font-weight:500;color:#7a7a7a;transition:all .15s;text-transform:capitalize;white-space:nowrap}.view-btn.active{background:#fff;color:#8e8888;box-shadow:0 1px 3px #00000014}.dark .view-btn.active{background:#6a6a6a;color:#fff}.dark .view-btn{color:#7a7a7a}.people-card{border:1px solid #999898;border-radius:12px;padding:12px;cursor:pointer;transition:all .15s;background:#fff}.people-card:hover{border-color:#d1d5db;box-shadow:0 2px 8px #0000000f}.dark .people-card{border-color:#636363;background:#525252}.dark .people-card:hover{border-color:gray}.avatar{border-radius:50%;background:#8e8888;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0}.pill{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:20px;font-size:11px;background:#f3f4f6;color:#374151}.dark .pill{background:#636363;color:#e0e0e0}.dark .btn-ghost{color:#a8a8a8}
