:root{--accent:#e6a700;--accent-strong:#c98f00;--bg:#fff;--sidebar-bg:#f5f4f2;--border:#e3e1de;--text:#1d1d1f;--text-secondary:#86868b;--selected:#ffe58a;--danger:#d64545;--radius:8px;color:var(--text);-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);font-size:15px;line-height:1.5}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:none}button:disabled{opacity:.5;cursor:default}input{font:inherit;color:inherit}.splash{flex-direction:column;justify-content:center;align-items:center;gap:20px;height:100%;display:flex}.splash-icon{font-size:56px}.spinner{border:2.5px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.auth-page{background:var(--sidebar-bg);justify-content:center;align-items:center;min-height:100%;padding:24px;display:flex}.auth-card{background:var(--bg);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:16px;width:100%;max-width:360px;padding:32px;display:flex;box-shadow:0 4px 24px #0000000f}.auth-logo{text-align:center;font-size:40px}.auth-card h1{text-align:center;margin:0;font-size:24px;font-weight:700}.auth-subtitle{text-align:center;color:var(--text-secondary);margin:-8px 0 0;font-size:14px}.auth-card label{color:var(--text-secondary);flex-direction:column;gap:6px;font-size:13px;font-weight:600;display:flex}.auth-card input{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);padding:10px 12px;font-size:15px}.auth-card input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #e6a70033}.btn-primary{border-radius:var(--radius);background:var(--accent);color:#fff;padding:10px;font-weight:600;transition:background .15s}.btn-primary:hover:not(:disabled){background:var(--accent-strong)}.form-error{color:var(--danger);border-radius:var(--radius);background:#fdecec;padding:10px 12px;font-size:13px}.field-error{color:var(--danger);font-size:12px;font-weight:400}.auth-switch{text-align:center;color:var(--text-secondary);margin:0;font-size:13px}.auth-switch a{color:var(--accent-strong);font-weight:600;text-decoration:none}.app-shell{grid-template-columns:320px 1fr;height:100%;display:grid}.sidebar{background:var(--sidebar-bg);border-right:1px solid var(--border);flex-direction:column;min-height:0;display:flex}.sidebar-header{justify-content:space-between;align-items:center;gap:8px;padding:12px 12px 4px;display:flex}.btn-icon{border-radius:var(--radius);width:34px;height:34px;color:var(--accent-strong);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.btn-icon:hover:not(:disabled){background:#0000000f}.btn-danger{color:var(--danger)}.sidebar-search{padding:8px 12px}.sidebar-search input{background:#0000000f;border:none;border-radius:10px;width:100%;padding:7px 12px;font-size:14px}.sidebar-search input:focus{outline:2px solid var(--accent)}.note-list{flex-direction:column;flex:1;gap:2px;padding:4px 12px 12px;display:flex;overflow-y:auto}.note-list-message{text-align:center;color:var(--text-secondary);padding:24px 12px;font-size:14px}.note-list-message p{margin:0 0 8px}.btn-link{color:var(--accent-strong);font-weight:600}.btn-link:hover{text-decoration:underline}.note-item{text-align:left;border-radius:var(--radius);flex-direction:column;gap:2px;width:100%;padding:10px 12px;display:flex}.note-item:hover{background:#0000000d}.note-item.selected{background:var(--selected)}.note-item-title{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.note-item-meta{color:var(--text-secondary);gap:8px;min-width:0;font-size:13px;display:flex}.note-item-time{flex-shrink:0}.note-item-snippet{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.user-menu{min-width:0;position:relative}.user-menu-trigger{border-radius:var(--radius);align-items:center;gap:8px;max-width:100%;padding:4px 8px 4px 4px;display:flex}.user-menu-trigger:hover{background:#0000000f}.user-avatar{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:13px;font-weight:700;display:inline-flex}.user-name{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;overflow:hidden}.user-menu-dropdown{z-index:20;background:var(--bg);border:1px solid var(--border);border-radius:10px;flex-direction:column;min-width:200px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 30px #0000001f}.user-menu-email{color:var(--text-secondary);border-bottom:1px solid var(--border);white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px;padding:8px 10px;font-size:12px;overflow:hidden}.user-menu-dropdown button{text-align:left;border-radius:6px;padding:8px 10px;font-size:14px}.user-menu-dropdown button:hover:not(:disabled){background:#0000000f}.user-menu-separator{background:var(--border);height:1px;margin:4px 0}.editor-pane{flex-direction:column;min-width:0;min-height:0;display:flex}.empty-state{height:100%;color:var(--text-secondary);flex-direction:column;flex:1;justify-content:center;align-items:center;display:flex}.empty-state p{margin:4px 0;font-size:17px;font-weight:600}.empty-state .empty-hint{font-size:14px;font-weight:400}.note-editor{flex-direction:column;height:100%;min-height:0;display:flex}.editor-header{align-items:center;gap:8px;padding:10px 16px 0;display:flex}.back-button{display:none}.save-indicator{color:var(--text-secondary);min-height:1em;margin-right:auto;font-size:12px}.save-indicator.save-error{color:var(--danger)}.editor-title{background:0 0;border:none;outline:none;padding:8px 24px 0;font-size:26px;font-weight:700}.editor-title::placeholder{color:var(--text-secondary);opacity:.5}.toolbar{border-bottom:1px solid var(--border);background:var(--bg);flex-wrap:wrap;align-items:center;gap:2px;padding:8px 20px;display:flex}.toolbar-btn{min-width:30px;height:30px;color:var(--text);border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0 6px;font-size:13px;display:inline-flex}.toolbar-btn:hover:not(:disabled){background:#0000000f}.toolbar-btn.active{background:var(--selected);color:var(--accent-strong)}.toolbar-divider{background:var(--border);flex-shrink:0;width:1px;height:18px;margin:0 6px}.editor-body{cursor:text;flex:1;overflow-y:auto}.editor-body .tiptap{outline:none;max-width:820px;min-height:100%;padding:16px 24px 48px}.tiptap p{margin:.4em 0}.tiptap h1,.tiptap h2,.tiptap h3{margin:.8em 0 .3em;line-height:1.25}.tiptap blockquote{border-left:3px solid var(--accent);color:var(--text-secondary);margin:.6em 0;padding-left:14px}.tiptap pre{border-radius:var(--radius);background:#f2f2f2;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;overflow-x:auto}.tiptap code{background:#f2f2f2;border-radius:4px;padding:1px 4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}.tiptap pre code{background:0 0;padding:0}.tiptap img{border-radius:var(--radius);max-width:100%;height:auto}.tiptap img.ProseMirror-selectednode{outline:2px solid var(--accent)}.tiptap div[data-youtube-video]{margin:.6em 0}.tiptap div[data-youtube-video] iframe{border-radius:var(--radius);aspect-ratio:16/9;border:none;width:640px;max-width:100%;height:auto}.tiptap ul,.tiptap ol{padding-left:1.4em}.tiptap ul[data-type=taskList]{padding-left:.2em;list-style:none}.tiptap ul[data-type=taskList] li{align-items:flex-start;gap:8px;display:flex}.tiptap ul[data-type=taskList] li>label{margin-top:3px}.tiptap ul[data-type=taskList] li>div{flex:1}.tiptap ul[data-type=taskList] input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}.tiptap ul[data-type=taskList] li[data-checked=true]>div{color:var(--text-secondary);text-decoration:line-through}.tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;color:var(--text-secondary);opacity:.6}@media (width<=768px){.app-shell{grid-template-columns:1fr}.app-shell.show-list .editor-pane,.app-shell.show-editor .sidebar{display:none}.back-button{display:inline-flex}.editor-title{padding:8px 16px 0}.toolbar{flex-wrap:nowrap;padding:8px 12px;overflow-x:auto}.editor-body .tiptap{padding:12px 16px 48px}}
