:root{--primary: #6C47FF;--primary-dark: #4E2FD4;--accent: #FF6B6B;--success: #22C55E;--warning: #F59E0B;--bg: #FFFFFF;--surface: #F8F7FF;--card: #FFFFFF;--border: #E5E3F5;--text: #1A1A2E;--text-2: #6B7280;--text-3: #9CA3AF;--input-bg: #F3F2FF}@media (prefers-color-scheme: dark){:root{--bg: #0F0E1A;--surface: #1A1929;--card: #1E1D30;--border: #2D2B45;--text: #F0EEFF;--text-2: #A09BC0;--text-3: #6B6890;--input-bg: #1A1929}}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button{font-family:inherit;border:none;background:none;cursor:pointer;color:inherit}input,textarea{font-family:inherit;border:none;outline:none;background:none;color:var(--text)}a{color:var(--primary);text-decoration:none}.app-shell{max-width:560px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;position:relative}.auth-page{min-height:100vh;min-height:100dvh;background:linear-gradient(160deg,#6c47ff,#4e2fd4 55%,#1a0a4e);display:flex;align-items:center;justify-content:center;padding:24px}.auth-inner{width:100%;max-width:420px}.auth-logo{text-align:center;margin-bottom:32px}.auth-logo-mark{width:80px;height:80px;border-radius:24px;background:#fff3;display:inline-flex;align-items:center;justify-content:center;font-size:40px;margin-bottom:16px}.auth-logo h1{color:#fff;font-size:34px;font-weight:800;letter-spacing:-.5px}.auth-logo p{color:#ffffffb3;font-size:16px;margin-top:4px}.auth-card{background:var(--card);border-radius:24px;padding:24px;box-shadow:0 20px 60px #0000004d}.auth-card h2{font-size:22px;margin-bottom:20px}.field{display:flex;align-items:center;gap:10px;background:var(--input-bg);border:1px solid var(--border);border-radius:12px;padding:0 14px;margin-bottom:14px}.field input{flex:1;padding:15px 0;font-size:16px}.field .toggle-eye{font-size:16px;opacity:.5}.btn-primary{width:100%;background:var(--primary);color:#fff;font-size:16px;font-weight:700;padding:15px;border-radius:12px;margin-top:6px;transition:background .15s}.btn-primary:hover{background:var(--primary-dark)}.btn-primary:disabled{opacity:.6;cursor:default}.auth-switch{text-align:center;margin-top:20px;font-size:14px;color:var(--text-2)}.auth-switch button{color:var(--primary);font-weight:700;font-size:14px}.auth-error{background:#ff6b6b20;color:#e5484d;border-radius:10px;padding:10px 14px;font-size:14px;margin-bottom:14px}.top-bar{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px;position:sticky;top:0;background:var(--bg);z-index:10}.top-bar .greeting{font-size:13px;color:var(--text-2)}.top-bar .username{font-size:21px;font-weight:700}.avatar-btn{width:42px;height:42px;border-radius:50%;background:var(--surface);border:2px solid #6C47FF40;display:flex;align-items:center;justify-content:center;font-size:18px}.search-bar{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin:8px 16px 12px}.search-bar input{flex:1;font-size:16px}.search-bar .clear-btn{color:var(--text-3);font-size:14px}.note-list{padding:0 16px 120px}.note-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:10px;cursor:pointer;transition:transform .1s,box-shadow .15s}.note-card:hover{box-shadow:0 4px 16px #6c47ff1f}.note-card-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:12px;color:var(--text-3)}.note-card-head .type-icon{font-size:13px}.note-card-head .time{flex:1}.note-card h3{font-size:16px;font-weight:600;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-card .preview{font-size:14px;color:var(--text-2);line-height:1.45;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.tag-chip{background:var(--surface);border-radius:999px;padding:3px 10px;font-size:12px;color:var(--primary)}.note-card-foot{display:flex;align-items:center;gap:12px}.icon-btn{font-size:18px;padding:4px;line-height:1}.shared-badge{display:inline-flex;align-items:center;gap:4px;background:var(--surface);border-radius:999px;padding:3px 10px;font-size:12px;color:var(--primary)}.note-card-foot .spacer{flex:1}.empty-state{text-align:center;padding:80px 32px;color:var(--text-3)}.empty-state .big-icon{font-size:56px;margin-bottom:16px}.empty-state h3{color:var(--text);font-size:20px;margin-bottom:6px}.empty-state p{font-size:15px}.spinner{margin:60px auto;width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.fab{position:fixed;bottom:92px;right:calc(50% - 256px);width:62px;height:62px;border-radius:50%;background:var(--primary);color:#fff;font-size:30px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px #6c47ff73;transition:transform .1s;z-index:20}@media (max-width: 600px){.fab{right:20px}}.fab:active{transform:scale(.92)}.tab-bar{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:560px;display:flex;background:var(--card);border-top:1px solid var(--border);padding:8px 0 calc(10px + env(safe-area-inset-bottom));z-index:20}.tab-bar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:var(--text-3);padding:6px 0}.tab-bar button.active{color:var(--primary)}.tab-bar button .tab-icon{font-size:22px}.editor-page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.editor-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:10}.editor-bar .back-btn{font-size:22px;padding:4px 8px 4px 0}.editor-bar .save-status{flex:1;text-align:center;font-size:12px;color:var(--text-3)}.editor-bar .action-btn{font-size:20px;padding:4px 6px}.type-row{display:flex;gap:8px;padding:12px 16px 4px;overflow-x:auto;scrollbar-width:none}.type-row::-webkit-scrollbar{display:none}.type-pill{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:8px 14px;font-size:14px;font-weight:500;color:var(--text-2);white-space:nowrap}.type-pill.selected{background:var(--primary);border-color:var(--primary);color:#fff}.editor-body{flex:1;padding:16px 20px 140px}.journal-stamp{font-size:14px;color:var(--primary);font-weight:600;margin-bottom:12px}.title-input{width:100%;font-size:26px;font-weight:700;margin-bottom:14px}.content-input{width:100%;font-size:17px;line-height:1.65;resize:none;min-height:50vh}.meeting-input{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:13px 14px;font-size:15px;margin-bottom:14px}textarea.meeting-input{resize:vertical;min-height:80px}.check-item{display:flex;align-items:center;gap:10px;margin-bottom:10px}.check-item input[type=checkbox]{width:22px;height:22px;accent-color:var(--success)}.check-item input[type=text]{flex:1;font-size:17px;padding:4px 0}.check-item input[type=text].done{text-decoration:line-through;color:var(--text-3)}.check-item .remove-btn{color:var(--text-3);font-size:16px}.add-item-btn{display:inline-flex;align-items:center;gap:6px;color:var(--primary);font-size:15px;padding:8px 0}.tags-section{margin-top:24px}.tag-input-row{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:8px 14px;margin-top:8px}.tag-input-row input{flex:1;font-size:14px;padding:4px 0}.tag-chip.removable{cursor:pointer}.tag-chip.removable:after{content:" ×";opacity:.6}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:40;display:flex;align-items:flex-end;justify-content:center}.share-sheet{background:var(--card);border-radius:24px 24px 0 0;padding:20px 24px calc(28px + env(safe-area-inset-bottom));width:100%;max-width:560px;animation:slide-up .22s ease-out}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.sheet-handle{width:40px;height:4px;background:var(--border);border-radius:999px;margin:0 auto 16px}.share-sheet h3{text-align:center;font-size:20px;margin-bottom:2px}.share-sheet .share-note-title{text-align:center;font-size:13px;color:var(--text-2);margin-bottom:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:20px}.share-opt{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px;color:var(--text-2)}.share-opt .circle{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px}.btn-cancel{width:100%;background:var(--surface);color:var(--text-2);font-size:16px;font-weight:600;padding:14px;border-radius:12px}.shared-view{max-width:640px;margin:0 auto;padding:32px 24px 80px}.shared-view .brand{display:flex;align-items:center;gap:10px;margin-bottom:32px;font-weight:800;font-size:18px}.shared-view .brand .mark{width:34px;height:34px;border-radius:10px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px}.shared-view h1{font-size:28px;margin-bottom:8px}.shared-view .meta{font-size:13px;color:var(--text-3);margin-bottom:28px}.shared-view .note-content{font-size:17px;line-height:1.7;white-space:pre-wrap}.shared-view .cta{margin-top:48px;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:16px;text-align:center;font-size:14px;color:var(--text-2)}.page-heading{padding:18px 20px 4px}.page-heading h2{font-size:26px;font-weight:800}.page-heading p{font-size:13px;color:var(--text-3);margin-top:2px}.share-record{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:10px}.share-record .rec-head{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-3);margin-bottom:8px}.share-record .rec-head .method{flex:1;text-transform:capitalize}.perm-badge{border-radius:999px;padding:2px 10px;font-size:11px;font-weight:600;text-transform:capitalize;background:#6c47ff20;color:var(--primary)}.share-record h4{font-size:15px;margin-bottom:2px}.share-record .rec-preview{font-size:13px;color:var(--text-2);margin-bottom:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.copy-link-btn{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border-radius:8px;padding:6px 12px;font-size:12px;font-weight:600;color:var(--primary)}.profile-page{padding:0 20px 120px}.profile-avatar{width:96px;height:96px;border-radius:50%;background:var(--surface);border:3px solid #6C47FF40;display:flex;align-items:center;justify-content:center;font-size:40px;margin:24px auto 10px}.profile-avatar{position:relative;overflow:visible;cursor:pointer}.profile-avatar img,.avatar-btn img{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar-btn{overflow:hidden;padding:0}.avatar-edit-badge{position:absolute;bottom:0;right:0;width:30px;height:30px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;font-size:14px;border:2px solid var(--bg)}.profile-photo-hint{text-align:center;font-size:12px;color:var(--text-3);margin-bottom:4px}.profile-email{text-align:center;color:var(--text-2);font-size:14px;margin-bottom:28px}.profile-section{margin-bottom:26px}.profile-section .section-label{font-size:12px;font-weight:700;color:var(--text-3);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}.profile-field{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.profile-field input{flex:1;font-size:15px}.profile-field .value{color:var(--text-2);font-size:13px}.btn-danger-outline{width:100%;border:1px solid #FF6B6B66;color:var(--accent);font-size:16px;font-weight:600;padding:14px;border-radius:12px;margin-top:10px}.version-note{text-align:center;font-size:12px;color:var(--text-3);margin-top:32px}.toast{position:fixed;bottom:100px;left:50%;transform:translate(-50%);background:var(--text);color:var(--bg);font-size:14px;font-weight:600;padding:10px 20px;border-radius:999px;z-index:60;animation:toast-in .2s ease-out}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}
