.titlebar{height:26px;background:linear-gradient(145deg,#f5f5f5,#e8e8e8);border-bottom:0 solid #e0e0e0;display:flex;justify-content:space-between;align-items:center;user-select:none;-webkit-user-select:none;flex-shrink:0;position:relative;z-index:1000}.titlebar.is-quick-note{background:linear-gradient(90deg,#e8e8e8,#f5f5f5)}.titlebar.is-quick-note .titlebar-button{width:34px}.titlebar-title{-webkit-app-region:drag}.titlebar-title img{-webkit-app-region:no-drag}.titlebar-logo{display:inline-flex;align-items:center;cursor:pointer}.titlebar-logo,.titlebar-logo img{-webkit-app-region:no-drag;pointer-events:auto}.titlebar-button,.titlebar-buttons{-webkit-app-region:no-drag}.titlebar-title{flex:1 1;min-width:0;padding-left:12px;font-size:12px;font-weight:500;color:#333;cursor:default;display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.titlebar-button,.titlebar-buttons{display:flex;height:100%}.titlebar-button{width:46px;border:none;background:#0000;color:#333;cursor:pointer;align-items:center;justify-content:center;transition:background-color .15s ease;padding:0}.titlebar-button:hover{background-color:#e5e5e5}.titlebar-button.close:hover{background-color:#e81123;color:#fff}.titlebar-button.always-on-top.active{background-color:#dc150b;color:#fff}.titlebar-button.always-on-top.active:hover{background-color:#c01309;color:#fff}.titlebar-button svg{pointer-events:none}.titlebar *{-webkit-user-select:none;user-select:none}.titlebar-button.panel-toggle{width:32px}.titlebar-button.panel-toggle svg rect{transition:fill .15s ease}.titlebar-button.panel-toggle:hover{background-color:#e5e5e5}.note-detail{flex:1 1;min-width:300px;height:100%;background:linear-gradient(145deg,#f5f5f5,#e8e8e8);display:flex;flex-direction:column;border-radius:12px;box-shadow:0 4px 12px #0000001a;overflow:hidden;border-top:1px solid #0000001a;position:relative}.note-title-row{justify-content:space-between;gap:20px;margin-bottom:12px}.note-actions,.note-title-row{display:flex;align-items:flex-start}.note-actions{gap:12px;flex-shrink:0}.action-btn{width:39px;height:39px;border:none;background-color:#f8f9fa;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;transition:background-color .2s ease;color:#000}.action-btn:hover{color:#000}.action-btn:first-child:hover,.action-btn:hover{background-color:#e9ecef}.action-btn:first-child:hover svg{stroke:#e62828;transform:scale(1.05);transition:transform .2s ease,fill .2s ease}.action-btn:nth-child(2):hover{background-color:#e9ecef}.action-btn:nth-child(2):hover svg{fill:#fbbf24;stroke:#fbbf24;transition:transform .2s ease,fill .2s ease}.action-btn.favorite-active{background-color:#f8f9fa}.action-btn.favorite-active svg{fill:#fbbf24;stroke:#fbbf24;transition:transform .2s ease,fill .2s ease}.action-btn.favorite-active:hover{background-color:#e9ecef}.action-btn:nth-child(3):hover svg{transform:scale(1.08);transition:transform .2s ease,fill .2s ease}.note-detail-content{flex:1 1;padding:30px 30px 550px;overflow-y:auto}.note-meta{margin-bottom:15px}.note-detail-title{font-size:28px;font-weight:700;color:#212529;margin:0;line-height:1.2;flex:1 1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;cursor:pointer;display:flex;align-items:center;gap:10px}.offline-icon{display:inline-flex;align-items:center;justify-content:center;color:#dc3545;flex-shrink:0}.offline-icon svg{width:20px;height:20px}.note-detail-title-input{font-size:28px;font-weight:700;color:#212529;margin:0;line-height:1.2;flex:1 1;min-width:0;border:none;outline:none;background:#0000;padding:0}.note-detail-date{font-size:14px;font-weight:500;color:#6c757d;margin-bottom:16px}.deleted-note-label-compact{display:flex;align-items:center;gap:6px;padding:6px 12px;background-color:#f11b10;border:1px solid #dc3545;border-radius:6px;color:#000;font-size:13px;font-weight:600;white-space:nowrap;margin-top:3px}.deleted-note-label-compact svg{flex-shrink:0;stroke:#000}.note-detail-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.tag{gap:6px;padding:4px 12px;border-radius:16px;font-size:14px;font-weight:500;text-transform:lowercase}.tag,.tag-close{display:flex;align-items:center}.tag-close{background:none;border:none;cursor:pointer;padding:0;justify-content:center;opacity:.6;transition:opacity .2s ease}.tag-close:hover{opacity:1}.tag-nature{background-color:#e8f5e8}.tag-nature,.tag-nature .tag-close{color:#2e7d32}.tag-goals{background-color:#e3f2fd}.tag-goals,.tag-goals .tag-close{color:#1565c0}.tag-work{background-color:#fce4ec}.tag-work,.tag-work .tag-close{color:#c2185b}.note-detail-image{margin-bottom:30px;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001a}.note-detail-image img{width:100%;height:auto;display:block}.note-detail-text{font-size:16px;line-height:1.6;color:#495057}.note-detail-text p{margin-bottom:20px}.note-detail-text p:last-child{margin-bottom:0}.note-detail-text strong{font-weight:600;color:#212529}.note-detail-text em{font-style:italic;color:#212529}.note-detail-text.editable{border:2px solid #0000;border-radius:8px;padding:16px;background-color:#fafbfc;transition:all .3s ease;outline:none;cursor:text}.note-detail-text.editable:hover{background-color:#f8f9fa;border-color:#e9ecef}.note-detail-text.editable:focus{background-color:#fff;border-color:#80bdff;box-shadow:0 0 0 3px #007bff1a}.note-detail-content{position:relative}.note-detail-text{transition:min-height .3s ease,background-color .2s ease,border-color .2s ease}.note-editor-wrapper{position:relative}.note-editor-wrapper .editor-toolbar{position:-webkit-sticky;position:sticky;top:-30px;z-index:100;background-color:#fff;margin-left:-30px;margin-right:-30px;padding-left:30px;padding-right:30px;border-radius:0}.note-editor-wrapper .editor-toolbar.collapsed{position:-webkit-sticky;position:sticky;top:-30px;background-color:initial;margin-left:0;margin-right:0;padding-left:0;padding-right:0}.note-editor-wrapper .rich-editor-surface-wrapper{transform:scale(var(--zoom-level,1));transform-origin:top left;width:calc(100% / var(--zoom-level, 1))}.note-editor-wrapper .rich-editor-surface-wrapper.print-view{transform:none;width:100%;overflow:visible}.note-editor-container{margin-top:25px}.note-editor-container .rich-text-editor{background:#0000;border:none}.note-editor-container .editor-content{background:#0000;border:none;outline:none}.note-editor-container .editor-content:focus{outline:none;border:none;box-shadow:none}.note-editor-container .editor-content img{max-width:100%;height:auto;border-radius:8px;margin:16px 0;box-shadow:0 2px 8px #0000001a}.note-editor-container .editor-tag{background-color:#e3f2fd;color:#1565c0;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:500;margin:0 4px;display:inline-block;-webkit-user-select:none;user-select:none}.note-editor-container .editor-content b,.note-editor-container .editor-content strong{font-weight:700}.note-editor-container .editor-content em,.note-editor-container .editor-content i{font-style:italic}.note-editor-container .editor-content u{text-decoration:underline}.note-editor-container .editor-content s,.note-editor-container .editor-content strike{text-decoration:line-through}.note-editor-container .editor-content span{display:inline}.note-editor-container .editor-content ul{list-style-type:disc;margin-left:20px;padding-left:10px}.note-editor-container .editor-content ol{list-style-type:decimal;margin-left:20px;padding-left:10px}.note-editor-container .editor-content li{margin-bottom:5px}.note-editor-container .editor-content [style*="text-align: center"]{text-align:center}.note-editor-container .editor-content [style*="text-align: right"]{text-align:right}.note-editor-container .editor-content [style*="text-align: left"]{text-align:left}.note-detail.quick-note-layout{background:#f8f8f8;border-radius:0;box-shadow:none;overflow:visible;height:auto;min-height:100%}.note-detail.quick-note-layout .note-detail-content{background-color:#f8f8f8;padding:0 10px 60vh;overflow-y:visible}.note-detail.quick-note-layout .note-meta{margin-bottom:0}.note-detail.quick-note-layout .note-detail-title,.note-detail.quick-note-layout .note-detail-title-input,.note-detail.quick-note-layout .note-title-row{display:none}.note-detail.quick-note-layout .note-detail-tags{margin-bottom:6px}.note-detail.quick-note-layout .tag{padding:.5px 5px;font-size:11px;font-weight:500;border-radius:12px;margin-top:4px}.note-detail.quick-note-layout .note-meta:has(.note-detail-tags:empty){margin-bottom:3px}.note-detail.quick-note-layout .note-editor-wrapper .editor-toolbar{top:0;margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}.note-detail.quick-note-layout .note-editor-wrapper .editor-toolbar.collapsed{top:0}.toolbar-toggle-btn{width:28px;height:28px;border:1px solid #e0e0e0;background-color:#fff;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;color:#666;flex-shrink:0;position:fixed;top:8px;right:12px;z-index:100;box-shadow:0 1px 3px #0000001a}.toolbar-toggle-btn:hover{background-color:#f8f8f8;border-color:#f11b10;color:#f11b10}.toolbar-toggle-btn svg{transition:transform .2s ease}.share-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.share-modal{background:#fff;border-radius:12px;width:100%;max-width:480px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-height:90vh;display:flex;flex-direction:column}.share-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e5e7eb}.share-modal-header h2{margin:0;font-size:18px;font-weight:600;color:#111827}.share-modal-close{background:none;border:none;font-size:24px;color:#6b7280;cursor:pointer;padding:0;line-height:1}.share-modal-close:hover{color:#111827}.share-modal-body{padding:20px;overflow-y:auto;flex:1 1}.history-author{display:inline-flex;align-items:center;gap:6px}.history-author-dot{width:10px;height:10px;border-radius:999px;display:inline-block;flex-shrink:0}.history-author-text{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.history-version-html .author-highlight{position:relative;border-radius:4px;padding:0 2px;cursor:help}.history-version-html .author-highlight:after{content:attr(data-user-name);position:absolute;bottom:120%;left:50%;transform:translateX(-50%);background:#111827;color:#fff;padding:4px 8px;border-radius:6px;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:20}.history-version-html .author-highlight:hover:after{opacity:1}.share-section{margin-bottom:20px}.share-section:last-child{margin-bottom:0}.share-label{display:block;font-size:13px;font-weight:500;color:#374151;margin-bottom:8px}.share-owner{gap:10px}.owner-avatar,.share-owner{display:flex;align-items:center}.owner-avatar{width:32px;height:32px;border-radius:50%;background:#f11b10;color:#fff;justify-content:center;font-size:12px;font-weight:600;overflow:hidden}.owner-avatar img{width:100%;height:100%;object-fit:cover;display:block}.share-permission-options,.share-visibility-options{display:flex;gap:8px}.permission-btn,.visibility-btn{flex:1 1;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;font-size:14px;cursor:pointer;transition:all .15s ease}.permission-btn:hover,.visibility-btn:hover{background:#f9fafb;border-color:#9ca3af}.permission-btn.active,.visibility-btn.active{background:#fef2f2;border-color:#f11b10;color:#f11b10}.share-link-container{display:flex;gap:8px}.share-link-input{flex:1 1;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:13px;color:#374151;background:#f9fafb}.share-link-input:focus{outline:none;border-color:#f11b10}.copy-link-btn{padding:10px 24px;background-color:#f11b10;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);white-space:nowrap;letter-spacing:.3px}.copy-link-btn:hover{background-color:#dc150b;transform:translateY(-1px);box-shadow:0 4px 12px #f11b1033}.copy-link-btn:active{transform:translateY(0)}.invite-section{display:flex;gap:10px;margin-bottom:20px}.invite-input-container{flex:1 1}.invite-input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;box-sizing:border-box}.invite-input:focus{outline:none;border-color:#f11b10}.invite-btn{padding:10px 16px;background-color:#f11b10;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background .15s ease;white-space:nowrap}.invite-btn:hover{background-color:#d91710}.invite-btn:disabled{background-color:#e5e7eb;color:#9ca3af;cursor:not-allowed}.history-modal-actions{display:flex;align-items:center;gap:8px}.history-modal-error{color:#dc2626;font-size:13px;margin-bottom:12px}.history-modal-status{text-align:center;color:#6b7280;padding:18px 0}.history-versions-list{display:flex;flex-direction:column;gap:12px}.history-btn-primary{padding:6px 14px;height:32px;font-size:13px;background:#111827}.history-btn-secondary{padding:6px 14px;height:32px;font-size:13px;background:#f3f4f6;color:#111827}.history-version-card{border:1px solid #e5e7eb;border-left-width:4px;border-radius:12px;padding:12px}.history-version-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.history-version-main{flex:1 1;min-width:0}.history-version-title{font-weight:700;font-size:13px;color:#111827}.history-version-meta{font-size:12px;color:#6b7280;margin-top:2px}.history-version-actions{display:flex;gap:8px}.history-version-preview{margin-top:10px;font-size:13px;color:#374151;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.history-version-expanded{margin-top:10px;border-top:1px solid #e5e7eb;padding-top:10px}.history-version-rename-input{width:100%;max-width:260px;height:30px;border-radius:10px;border:1px solid #d1d5db;padding:0 10px;font-size:13px}.history-version-rename-input:focus{outline:none;border-color:#f11b10}.access-list{display:flex;flex-direction:column;gap:12px;max-height:200px;overflow-y:auto;margin-bottom:20px;padding-right:4px}.access-list::-webkit-scrollbar{width:6px}.access-list::-webkit-scrollbar-track{background:#0000}.access-list::-webkit-scrollbar-thumb{background-color:#e5e7eb;border-radius:3px}.access-item{justify-content:space-between}.access-item,.access-user{display:flex;align-items:center}.access-user{gap:10px}.access-user-avatar{width:32px;height:32px;border-radius:50%;background:#e5e7eb;color:#374151;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;overflow:hidden;flex-shrink:0}.access-user-avatar img{width:100%;height:100%;object-fit:cover}.access-user-info{display:flex;flex-direction:column}.access-email{font-size:14px;color:#111827;font-weight:500}.access-role{font-size:12px;color:#6b7280}.access-actions{display:flex;align-items:center;gap:8px}.permission-select{border:none;background:#0000;font-size:13px;color:#6b7280;padding:4px;cursor:pointer;border-radius:4px;outline:none}.permission-select:hover{background:#f3f4f6;color:#111827}.remove-access-btn{background:none;border:none;color:#9ca3af;cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.remove-access-btn:hover{color:#ef4444;background:#fee2e2}.request-access-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #f3f4f6}.toggle-label{font-size:14px;color:#374151;font-weight:500}.toggle-switch-input{display:none}.toggle-switch-label{display:block;width:44px;height:24px;background:#e5e7eb;border-radius:24px;position:relative;cursor:pointer;transition:background .2s}.toggle-switch-label:after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 2px #0000001a}.toggle-switch-input:checked+.toggle-switch-label{background:#f11b10}.toggle-switch-input:checked+.toggle-switch-label:after{transform:translateX(20px)}.modal-footer{display:flex;justify-content:flex-end;padding:16px 20px;border-top:1px solid #e5e7eb;background:#0000}.done-btn{padding:6px 25px;background-color:#f11b10;color:#fff;border:none;border-radius:999px;font-weight:600;cursor:pointer;font-size:14px;transition:all .2s ease}.done-btn:hover{background-color:#dc150b}.permission-btn:disabled,.visibility-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none;background-color:#f3f4f6;border-color:#e5e7eb;color:#9ca3af}.quick-note-layout .note-context-menu{padding:4px 0!important;min-width:140px!important;border-radius:6px!important}.quick-note-layout .note-context-menu-item{padding:6px 12px!important;font-size:13px!important;gap:8px!important}.quick-note-layout .note-context-menu-item svg{width:14px!important;height:14px!important}.quick-note-layout .note-context-menu-divider{margin:4px 0!important}.unlock-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:40px;text-align:center}.unlock-icon{color:#9ca3af;margin-bottom:24px;opacity:.8}.unlock-title{font-size:24px;font-weight:700;color:#111827;margin:0 0 8px}.unlock-description{font-size:15px;color:#6b7280;margin:0 0 32px}.unlock-form{display:flex;flex-direction:column;gap:16px;width:100%;max-width:320px}.unlock-input{width:100%;padding:12px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:16px;transition:all .2s ease;outline:none;background-color:#f9fafb}.unlock-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a;background-color:#fff}.unlock-btn{background:linear-gradient(135deg,#f11b10,#e2160b);color:#fff;border:none;padding:12px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:8px}.unlock-btn:hover{background-color:#1d4ed8;transform:translateY(-1px)}.unlock-btn:active{transform:translateY(0)}.unlock-btn-secondary{background-color:initial;color:#dc2626;border:1px solid #dc26264d;padding:12px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;margin-top:8px}.unlock-btn-secondary:hover{background-color:#fef2f2;border-color:#dc2626}.unlock-error{color:#dc2626;font-size:14px;margin-top:-8px;text-align:left;display:flex;align-items:center;gap:6px}.request-message{font-size:13px;color:#666;background-color:#f9fafb;padding:8px;border-radius:6px;width:100%;font-style:italic;box-sizing:border-box;margin-top:4px}.offline-feedback-modal{background:#fff;border-radius:20px;width:100%;max-width:400px;padding:32px;text-align:center;box-shadow:0 25px 50px -12px #00000040;animation:modal-slide-up .3s ease-out}@keyframes modal-slide-up{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.offline-modal-icon{width:64px;height:64px;background:#fef2f2;color:#f11b10;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 24px}.offline-modal-title{font-size:22px;font-weight:700;color:#111827;margin:0 0 12px}.offline-modal-desc{font-size:15px;color:#6b7280;line-height:1.5;margin:0 0 32px}.offline-modal-actions{display:flex;flex-direction:column;gap:12px}.offline-continue-btn{padding:14px;background:#f11b10;color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s}.offline-continue-btn:hover{background:#dc150b;transform:translateY(-1px)}.offline-wait-btn{padding:14px;background:#f3f4f6;color:#374151;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s}.offline-wait-btn:hover{background:#e5e7eb}.tag-manager-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0000004d;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .15s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.tag-manager-dropdown{background:#fff;border:1px solid #dee2e6;border-radius:8px;box-shadow:0 10px 40px #0003;padding:0;overflow:hidden;min-width:320px;max-width:400px;animation:slideUp .2s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.tag-manager-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background-color:#f8f9fa;border-bottom:1px solid #e5e7eb;margin-bottom:12px}.tag-manager-title{margin:0;font-size:14px;font-weight:700;color:#111827}.tag-manager-close{background:#0000;border:none;font-size:20px;line-height:1;color:#6b7280;cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.tag-manager-close:hover{background-color:#f3f4f6;color:#111827}.tag-manager-input-section{padding:0 16px;margin-bottom:12px}.tag-manager-input{width:100%;padding:8px 10px;border:1px solid #dee2e6;border-radius:6px;font-size:13px;outline:none;transition:border-color .2s ease;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.tag-manager-input:focus{border-color:#3b82f6}.tag-manager-input::placeholder{color:#9ca3af}.tag-manager-color-section{padding:0 16px;margin-bottom:12px}.tag-manager-color-label{font-size:12px;font-weight:500;color:#666;margin-bottom:6px}.tag-manager-color-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:4px;gap:4px}.tag-manager-color-swatch{width:100%;aspect-ratio:1;min-width:24px;min-height:24px;border:2px solid #0000;border-radius:4px;cursor:pointer;padding:0;transition:all .15s ease;outline:none}.tag-manager-color-swatch:hover{transform:scale(1.1);box-shadow:0 2px 6px #0003}.tag-manager-color-swatch.selected{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633;transform:scale(1.05)}.tag-manager-add-btn-wrapper{padding:0 16px;margin-bottom:12px}.tag-manager-add-btn{width:100%;background:#2563eb;color:#fff;border:none;padding:8px 12px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:background-color .2s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.tag-manager-add-btn:hover{background:#1d4ed8}.tag-manager-add-btn:active{background:#1e40af;transform:scale(.98)}.tag-manager-add-icon{font-size:16px;line-height:1;font-weight:400}.tag-manager-current-section{padding:12px 16px;border-top:1px solid #e5e7eb;background-color:#fdfdfd}.tag-manager-current-label{font-size:12px;font-weight:500;color:#666;margin-bottom:6px}.tag-manager-current-tags{display:flex;gap:6px;flex-wrap:wrap}.tag-manager-tag{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500;color:#1f2937;transition:all .15s ease}.tag-manager-tag:hover{filter:brightness(.95)}.tag-manager-tag-name{line-height:1}.tag-manager-tag-delete{border:none;background:#0000;color:#991b1b;cursor:pointer;padding:0;margin:0;font-size:16px;line-height:1;font-weight:700;width:14px;height:14px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .15s ease}.tag-manager-tag-delete:hover{background:#00000026;transform:scale(1.15)}.tag-manager-tag-delete:active{transform:scale(.95)}.rich-editor{display:flex;flex-direction:column;font-family:Roboto,sans-serif}.rich-editor-loading{padding:8px 12px;font-size:14px;color:#6b7280}.editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:6px 8px;border-bottom:1px solid #e5e7eb;background-color:#f9fafb;border-radius:8px 8px 0 0;-webkit-user-select:none;user-select:none}.editor-toolbar.collapsed{padding:4px 8px;background-color:initial;border-bottom:none;width:auto;display:inline-flex}.toolbar-btn{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 4px;border:1px solid #0000;background:#0000;border-radius:6px;font-size:14px;cursor:pointer;color:#374151;transition:all .15s ease}.toolbar-btn.is-active,.toolbar-btn:hover{background-color:#f11b10;border-color:#f11b10;color:#fff}.toolbar-btn.disabled{opacity:.4;cursor:not-allowed}.toolbar-btn.disabled:hover{background-color:initial;border-color:#0000}.toolbar-btn.toolbar-toggle{font-size:12px;min-width:22px;height:22px}.toolbar-divider{width:1px;height:16px;background-color:#d1d5db;margin:0 2px}.font-size-stepper{display:inline-flex;align-items:center;border:1px solid #d1d5db;border-radius:6px;overflow:hidden;height:26px}.font-size-btn{display:flex;align-items:center;justify-content:center;width:20px;height:100%;border:none;background:#0000;cursor:pointer;color:#374151;font-size:14px;font-weight:500;padding:0}.font-size-btn:hover{background-color:#f11b10;color:#fff}.font-size-btn:active{background-color:#d1d5db}.font-size-input{width:28px;height:100%;border:1px solid #d1d5db;border-top:none;border-bottom:none;text-align:center;font-size:13px;color:#374151;background:#fff;outline:none;padding:0;-webkit-appearance:textfield;appearance:textfield}.font-size-input::-webkit-inner-spin-button,.font-size-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.font-size-input:focus{background-color:#eff6ff}.toolbar-color-picker-wrapper{position:relative;display:inline-flex}.toolbar-color-picker-wrapper .toolbar-btn{position:relative;padding-bottom:4px}.toolbar-color-picker-wrapper .color-indicator{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:14px;height:3px;border-radius:1px}.toolbar-color-dropdown{position:absolute;top:100%;left:0;z-index:1000;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:180px}.toolbar-color-dropdown .color-picker-grid{display:grid;grid-template-columns:repeat(6,1fr)!important;grid-gap:4px;gap:4px;margin-bottom:8px;justify-items:center}.color-swatch{width:24px;height:24px;border:1px solid #e5e7eb;border-radius:4px;cursor:pointer;transition:transform .1s ease,box-shadow .1s ease}.color-swatch:hover{transform:scale(1.15);box-shadow:0 2px 8px #0003;z-index:1}.color-reset-btn{width:100%;padding:6px 12px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;font-size:12px;color:#374151;cursor:pointer;transition:background-color .15s ease}.color-reset-btn:hover{background-color:#e5e7eb}.dark-theme .toolbar-color-dropdown{background:#1f2937;border-color:#374151;box-shadow:0 4px 12px #0006}.dark-theme .color-swatch{border-color:#374151}.dark-theme .color-reset-btn{background:#374151;border-color:#4b5563;color:#d1d5db}.dark-theme .color-reset-btn:hover{background-color:#4b5563;color:#f3f4f6}.rich-editor-surface-wrapper{padding:12px 16px;background-color:#fff}.rich-editor.quick-note-mode .rich-editor-surface-wrapper{padding:0}.rich-editor-surface-wrapper.format-painter-active,.rich-editor-surface-wrapper.format-painter-active .rich-editor-surface-inner{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cline x1='1' y1='0' x2='1' y2='20' stroke='%23000' stroke-width='2'/%3E%3Cg transform='translate(6, 2) scale(0.7)'%3E%3Cpath d='M10 2v2' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 2v4' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 1 10,text}.rich-editor-surface{min-height:120px}.rich-editor-surface .rich-editor-surface-inner{outline:none;padding-bottom:900px;font-size:14px;color:#111827}.rich-editor-surface .rich-editor-surface-inner ::selection{background-color:#f11b1080}.rich-editor-surface .rich-editor-surface-inner .fake-selection{background-color:#f11b104d}.dark-theme .rich-editor-surface .rich-editor-surface-inner .fake-selection{background-color:#f11b1066}.rich-editor-surface .rich-editor-surface-inner p{margin:0}.rich-editor-surface .rich-editor-surface-inner h1,.rich-editor-surface .rich-editor-surface-inner h2,.rich-editor-surface .rich-editor-surface-inner h3{margin:1em 0 .5em}.rich-editor-surface .rich-editor-surface-inner ol,.rich-editor-surface .rich-editor-surface-inner ul{padding-left:1.5em;margin:.5em 0}.rich-editor-surface .rich-editor-surface-inner blockquote{border-left:3px solid #d1d5db;padding-left:1em;margin:.5em 0;color:#6b7280}.rich-editor-surface .rich-editor-surface-inner code{background-color:#f3f4f6;padding:0 4px;border-radius:4px}.rich-editor-surface .rich-editor-surface-inner pre code{background-color:initial;padding:0;border-radius:0}.rich-editor-surface .rich-editor-surface-inner pre{background-color:#f6f8fa;padding:12px 16px;border-radius:6px;overflow-x:auto;font-family:Monaco,Menlo,Consolas,monospace;font-size:14px}.rich-editor-surface .rich-editor-surface-inner .code-block-wrapper pre,.rich-editor-surface .rich-editor-surface-inner pre{color:#24292f;white-space:pre!important;word-wrap:normal!important;overflow-wrap:normal!important;word-break:normal!important}.rich-editor-surface .rich-editor-surface-inner .code-block-wrapper pre{background-color:initial}.rich-editor-surface .rich-editor-surface-inner .code-block-wrapper pre code{white-space:pre!important;word-wrap:normal!important;overflow-wrap:normal!important;word-break:normal!important;overflow:visible!important}.rich-editor-surface .rich-editor-surface-inner .code-block-wrapper pre code *,.rich-editor-surface .rich-editor-surface-inner .code-block-wrapper pre code span{white-space:pre!important;word-wrap:normal!important;overflow-wrap:normal!important;word-break:normal!important}.rich-editor-surface .rich-editor-surface-inner img{max-width:100%;height:auto}.rich-editor-surface .rich-editor-surface-inner table{border-collapse:collapse;width:100%;margin:1em 0}.rich-editor-surface .rich-editor-surface-inner td,.rich-editor-surface .rich-editor-surface-inner th{border:1px solid #d1d5db;padding:8px 12px;text-align:left}.rich-editor-surface .rich-editor-surface-inner th{background-color:#f3f4f6;font-weight:600}.rich-editor-surface .rich-editor-surface-inner td,.rich-editor-surface .rich-editor-surface-inner th{position:relative}.rich-editor-surface .rich-editor-surface-inner td.selectedCell>*,.rich-editor-surface .rich-editor-surface-inner th.selectedCell>*{background-color:#f11b1080}.toolbar-btn.has-tags{position:relative;color:#f59e0b}.toolbar-btn.has-tags svg{fill:#f59e0b}.toolbar-btn .tag-count{position:absolute;top:-4px;right:-4px;background-color:#f59e0b;color:#fff;font-size:10px;font-weight:600;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 4px}.code-block-wrapper{position:relative;margin:16px 0;border-radius:8px;background-color:#f6f8fa!important;border:1px solid #d0d7de;overflow-x:auto}.code-block-wrapper:hover{border-color:#c0c7ce}.code-block-wrapper .copy-button{position:absolute;top:8px;right:12px;display:flex;align-items:center;justify-content:center;padding:6px;border:none;border-radius:6px;background-color:#0000000d;cursor:pointer;opacity:0;transition:opacity .2s ease,background-color .2s ease;z-index:2;color:#57606a}.code-block-wrapper .copy-button svg{width:16px;height:16px}.code-block-wrapper:hover .copy-button{opacity:1}.code-block-wrapper .copy-button:hover{background-color:#0000001a}.code-block-content{display:flex;overflow-x:auto}.code-block-wrapper .line-numbers{flex-shrink:0;padding:16px 12px 16px 16px;text-align:right;color:#6e7781;background-color:initial;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,Consolas,monospace;font-size:14px;line-height:1.2;-webkit-user-select:none;user-select:none;border-right:1px solid #d0d7de}.code-block-wrapper .line-numbers span{display:block}.code-block-wrapper pre{margin:0!important;padding:16px!important;overflow-x:auto;background-color:initial!important;border:none!important;border-radius:0;color:#24292f!important;flex:1 1;min-width:0}.code-block-wrapper pre::-webkit-scrollbar,.code-block-wrapper::-webkit-scrollbar{display:none}.code-block-wrapper,.code-block-wrapper pre{-ms-overflow-style:none;scrollbar-width:none}.code-block-wrapper code,.code-block-wrapper pre code{font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,Consolas,monospace!important;font-size:14px!important;line-height:1.2!important;font-weight:500!important;color:#24292f!important;background-color:initial!important;display:block;white-space:pre!important;word-wrap:normal!important;overflow-wrap:normal!important;word-break:normal!important;overflow:visible!important;tab-size:2!important}.code-block-wrapper pre code *,.code-block-wrapper pre code span{white-space:pre!important;word-wrap:normal!important;overflow-wrap:normal!important;word-break:normal!important}.code-block-wrapper pre code:focus,.code-block-wrapper pre code:focus-visible{outline:none!important}.code-block-wrapper .hljs{background:#0000!important;color:#24292f!important}.code-block-wrapper .hljs-comment,.code-block-wrapper .hljs-quote{color:#6a737d;font-style:italic}.code-block-wrapper .hljs-keyword,.code-block-wrapper .hljs-selector-tag,.code-block-wrapper .hljs-subst{color:#d73a49;font-weight:600}.code-block-wrapper .hljs-literal,.code-block-wrapper .hljs-number,.code-block-wrapper .hljs-tag .hljs-attr,.code-block-wrapper .hljs-template-variable,.code-block-wrapper .hljs-variable{color:#005cc5}.code-block-wrapper .hljs-doctag,.code-block-wrapper .hljs-string{color:#032f62}.code-block-wrapper .hljs-class .hljs-title,.code-block-wrapper .hljs-section,.code-block-wrapper .hljs-selector-id,.code-block-wrapper .hljs-title,.code-block-wrapper .hljs-type{color:#6f42c1;font-weight:600}.code-block-wrapper .hljs-attribute,.code-block-wrapper .hljs-name,.code-block-wrapper .hljs-tag{color:#22863a;font-weight:600}.code-block-wrapper .hljs-link,.code-block-wrapper .hljs-regexp{color:#032f62}.code-block-wrapper .hljs-bullet,.code-block-wrapper .hljs-symbol{color:#e36209}.code-block-wrapper .hljs-built_in,.code-block-wrapper .hljs-builtin-name{color:#005cc5}.code-block-wrapper .hljs-meta{color:#6a737d}.code-block-context-menu{background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;padding:4px 0;min-width:180px}.code-block-context-menu-item{display:flex;align-items:center;gap:12px;padding:6px 16px;cursor:pointer;color:#000;font-size:14px;font-weight:500;border-radius:6px}.code-block-context-menu-item:hover{background:linear-gradient(90deg,#dc150b,#f11b10);color:#fff}.code-block-context-menu-item:hover svg{color:#fff;stroke:#fff}.code-block-context-menu-item svg{width:16px;height:16px;flex-shrink:0}.code-block-context-menu-item.danger{color:#dc2626}.code-block-context-menu-item.danger:hover{color:#fff}.code-block-context-menu-item.danger:hover svg{color:#fff;stroke:#fff}.code-block-context-menu-divider{height:1px;background-color:#e5e5e5;margin:4px 2px}.table-wrapper{margin:16px 0}.table-context-menu{background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;padding:4px 0;min-width:180px}.table-context-menu-item{display:flex;align-items:center;gap:12px;padding:6px 16px;cursor:pointer;color:#000;font-size:14px;font-weight:500;border-radius:6px}.table-context-menu-item:hover{background:linear-gradient(90deg,#dc150b,#f11b10);color:#fff}.table-context-menu-item:hover svg{color:#fff;stroke:#fff}.table-context-menu-item svg{width:16px;height:16px;flex-shrink:0}.table-context-menu-item.danger{color:#dc2626}.table-context-menu-item.danger:hover{color:#fff}.table-context-menu-item.danger:hover svg{color:#fff;stroke:#fff}.table-context-menu-divider{height:1px;background-color:#e5e5e5;margin:4px 2px}.table-context-menu-item.has-submenu{position:relative;justify-content:flex-start}.table-context-menu-item.has-submenu .submenu-arrow{margin-left:auto}.table-cell-color-submenu{position:absolute;left:calc(100% - 4px);top:-4px;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;padding:8px 8px 8px 12px;display:grid;grid-template-columns:repeat(4,1fr);grid-gap:6px;gap:6px}.table-cell-color-submenu.submenu-left{left:auto;right:calc(100% - 4px);padding-left:8px;padding-right:12px}.table-context-menu-item.has-submenu.submenu-open{background:linear-gradient(90deg,#dc150b,#f11b10);color:#fff}.table-context-menu-item.has-submenu.submenu-open svg{stroke:#fff}.table-cell-color-item{width:24px;height:24px;border-radius:4px;cursor:pointer;transition:transform .15s,box-shadow .15s}.table-cell-color-item:hover{transform:scale(1.15);box-shadow:0 2px 6px #00000040}.table-cell-color-item.color-none{background-color:#fff;border:2px dashed #d1d5db}.table-cell-color-item.color-yellow{background-color:#fef3c7}.table-cell-color-item.color-green{background-color:#dcfce7}.table-cell-color-item.color-blue{background-color:#dbeafe}.table-cell-color-item.color-pink{background-color:#fce7f3}.table-cell-color-item.color-purple{background-color:#f3e8ff}.table-cell-color-item.color-red{background-color:#fed7d7}.table-cell-color-item.color-gray{background-color:#e5e7eb}.table-add-column-bar,.table-add-row-bar{display:flex;align-items:center;justify-content:center;background-color:#e5e7eb;cursor:pointer;transition:background-color .2s}.table-add-row-bar{height:16px;border-radius:4px}.table-add-column-bar{width:16px;border-radius:4px}.table-add-column-bar:hover,.table-add-row-bar:hover{background-color:#d1d5db}.table-add-icon{font-size:18px;font-weight:800;color:#6b7280;line-height:0;transform:translateY(-2px);-webkit-user-select:none;user-select:none}.resizable-image-wrapper{display:inline-flex;vertical-align:bottom;margin:0 4px;padding-right:2px;max-width:100%}.resizable-image-container{position:relative;display:inline-block;max-width:100%}.resizable-image-container img{display:block;max-width:100%;height:auto;border-radius:4px}.resizable-image-container.selected{outline:2px solid #f11b10;outline-offset:2px}.resizable-image-container.resizing{-webkit-user-select:none;user-select:none}.resizable-image-container.cropping{cursor:crosshair;overflow:hidden}.resizable-image-container .resize-handle{position:absolute;width:16px;height:16px;background-color:#f11b10;border:2px solid #fff;border-radius:50%;cursor:se-resize;box-shadow:0 2px 4px #0003;z-index:10}.resizable-image-container .resize-handle:hover{background-color:#dc150b;transform:scale(1.1)}.resizable-image-container .crop-button{position:absolute;width:24px;height:24px;background-color:#f11b10;border:2px solid #fff;border-radius:50%;cursor:pointer;box-shadow:0 2px 4px #0003;z-index:10;display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;transition:background-color .2s,transform .2s}.resizable-image-container .crop-button:hover{background-color:#dc150b;transform:scale(1.1)}.resizable-image-container .rotate-button{position:absolute;width:24px;height:24px;background-color:#f11b10;border:2px solid #fff;border-radius:50%;cursor:pointer;box-shadow:0 2px 4px #0003;z-index:10;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff;transition:background-color .2s,transform .2s}.resizable-image-container .rotate-button:hover{background-color:#dc150b;transform:scale(1.1)}.crop-overlay{top:0;left:0;right:0;bottom:0;z-index:5}.crop-overlay,.crop-selection{position:absolute;pointer-events:none}.crop-selection{border:1px solid #000;box-shadow:0 0 0 9999px #00000080;z-index:6}.crop-actions{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:10}.crop-action-btn{width:36px;height:36px;border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;box-shadow:0 2px 8px #0000004d;transition:transform .2s,opacity .2s}.crop-action-btn:hover{transform:scale(1.1)}.crop-action-btn.apply{background-color:#22c55e;color:#fff}.crop-action-btn.apply:hover{background-color:#16a34a}.crop-action-btn.cancel{background-color:#ef4444;color:#fff}.crop-action-btn.cancel:hover{background-color:#dc2626}.resizable-youtube-wrapper{display:block;margin:16px 0}.resizable-youtube-container{position:relative;display:inline-block;max-width:100%}.resizable-youtube-container iframe{display:block;max-width:100%;border-radius:4px}.resizable-youtube-container.selected{outline:2px solid #f11b10;outline-offset:2px}.resizable-youtube-container.resizing{-webkit-user-select:none;user-select:none}.resizable-youtube-container .resize-handle{position:absolute;width:16px;height:16px;background-color:#f11b10;border:2px solid #fff;border-radius:50%;cursor:se-resize;box-shadow:0 2px 4px #0003;z-index:10}.resizable-youtube-container .resize-handle:hover{background-color:#dc150b;transform:scale(1.1)}.context-menu-shortcut{margin-left:auto;font-size:11px;color:#9ca3af;padding-left:16px}.emoji-picker-submenu{position:absolute;left:100%;top:0;margin-left:4px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px;display:grid;grid-template-columns:repeat(6,1fr);grid-gap:4px;gap:4px;width:220px;box-shadow:0 4px 12px #00000026}.emoji-picker-submenu.submenu-left{left:auto;right:100%;margin-left:0;margin-right:4px}.emoji-picker-item{width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:18px;background:#0000;border:none;border-radius:4px;cursor:pointer;transition:background-color .15s}.emoji-picker-item:hover{background-color:#f3f4f6}.rich-editor-surface .rich-editor-surface-inner details.details-block{border:1px solid #e5e7eb;border-radius:8px;margin:12px 0;background-color:#f9fafb}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary{padding:10px 16px;cursor:pointer;font-weight:500;list-style:none;display:flex;align-items:center;gap:8px;min-height:20px;border-radius:7px;color:#111827}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary::-webkit-details-marker{display:none}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary .details-toggle-btn{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;border-radius:4px;transition:background-color .15s ease}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary .details-toggle-btn:hover{background-color:#e5e7eb}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary .details-toggle-btn:before{content:"";width:0;height:0;border-left:6px solid #6b7280;border-top:5px solid #0000;border-bottom:5px solid #0000;transition:transform .2s ease}.rich-editor-surface .rich-editor-surface-inner details.details-block[open]>summary.details-summary .details-toggle-btn:before{transform:rotate(90deg)}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary .details-summary-text{flex:1 1;min-width:0;position:relative}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary .details-summary-text:empty:before,.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary .details-summary-text:has(br:only-child):before{content:"Enter title...";color:#9ca3af;font-weight:400;position:absolute;top:0;left:0;pointer-events:none}.rich-editor-surface .rich-editor-surface-inner details.details-block>.details-content{padding:12px 16px 12px 30px;color:#374151}.rich-editor-surface .rich-editor-surface-inner details.details-block:not([open])>.details-content{display:none}.rich-editor-surface .rich-editor-surface-inner details.details-block>.details-content>p:first-child{margin-top:0}.rich-editor-surface .rich-editor-surface-inner details.details-block:hover{border-color:#d1d5db}.rich-editor-surface .rich-editor-surface-inner details.details-block>summary.details-summary:hover{background-color:#f3f4f6}.more-tools-submenu{position:absolute;left:100%;bottom:0;margin-left:4px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:4px 0;min-width:160px;box-shadow:0 4px 12px #00000026}.more-tools-submenu.submenu-left{left:auto;right:100%;margin-left:0;margin-right:4px}.more-tools-submenu .table-context-menu-item{padding:8px 16px;color:#000!important}.more-tools-submenu .table-context-menu-item svg{color:#000!important;stroke:#000!important}.more-tools-submenu .table-context-menu-item:hover{color:#fff!important}.more-tools-submenu .table-context-menu-item:hover svg{color:#fff!important;stroke:#fff!important}.more-tools-submenu .check-icon{margin-left:auto;color:#22c55e}.capitalization-submenu{position:absolute;left:0;right:auto;top:calc(100% + 4px);margin:4px 0 0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:4px 0;min-width:140px;box-shadow:0 4px 12px #00000026}.capitalization-submenu.submenu-left{left:auto;right:0;margin-left:0;margin-right:0}.capitalization-submenu .table-context-menu-item{padding:8px 16px;color:#000!important}.capitalization-submenu .table-context-menu-item svg{color:#000!important;stroke:#000!important}.capitalization-submenu .table-context-menu-item:hover{color:#fff!important}.capitalization-submenu .table-context-menu-item:hover svg{color:#fff!important;stroke:#fff!important}.rich-editor-surface-wrapper.print-view{background-color:initial;padding:24px;overflow:visible;display:flex;justify-content:center}.rich-editor-surface-wrapper.print-view .rich-editor-surface{background-color:#fff;width:816px;flex-shrink:0;padding:72px;box-shadow:0 2px 8px #00000026;border:1px solid #8a8b8b;border-radius:2px;min-height:1056px;transform:scale(var(--zoom-level,1));transform-origin:top center}.rich-editor-surface-wrapper.print-view .rich-editor-surface .rich-editor-surface-inner{min-height:auto;padding-bottom:300px}.rich-editor-surface .rich-editor-surface-inner a{color:#2563eb;text-decoration:underline;cursor:text}.rich-editor-surface-wrapper.ctrl-pressed .rich-editor-surface-inner a{cursor:pointer}.rich-editor-surface-wrapper.ctrl-pressed .rich-editor-surface-inner a:hover{color:#1d4ed8}.dark-theme .font-size-stepper{border-color:#374151}.dark-theme .font-size-btn{color:#9ca3af}.dark-theme .font-size-btn:hover{background-color:#f11b10;color:#fff}.dark-theme .font-size-input{background-color:initial;color:#9ca3af;border-left-color:#374151;border-right-color:#374151}.dark-theme .font-size-input:focus{background-color:#374151}.table-context-menu.quick-note-layout{padding:2px 0!important;min-width:auto!important;width:-webkit-max-content!important;width:max-content!important;max-width:100vw!important;max-height:80vh;overflow-y:auto}.table-context-menu.quick-note-layout .table-context-menu-item{padding:3px 6px!important;font-size:12px!important;gap:4px!important;min-height:24px}.table-context-menu.quick-note-layout .table-context-menu-item svg{width:12px!important;height:12px!important}.table-context-menu.quick-note-layout .context-menu-shortcut{display:none!important}.table-context-menu.quick-note-layout .table-context-menu-divider{margin:2px 0!important}.table-context-menu.quick-note-layout .table-context-menu-item.has-submenu{flex-wrap:wrap!important;height:auto!important;align-items:flex-start!important}.table-context-menu.quick-note-layout .capitalization-submenu,.table-context-menu.quick-note-layout .emoji-picker-submenu,.table-context-menu.quick-note-layout .more-tools-submenu,.table-context-menu.quick-note-layout .table-cell-color-submenu{position:relative!important;left:auto!important;right:auto!important;top:auto!important;flex-basis:100%!important;margin:2px auto 0!important;box-shadow:none!important;border:1px solid #e5e7eb!important;background-color:#f9fafb!important;padding:4px!important;z-index:10!important;min-width:auto!important;width:-webkit-max-content!important;width:max-content!important;max-width:100vw!important}.table-context-menu.quick-note-layout .emoji-picker-submenu{position:absolute!important;left:0!important;right:auto!important;top:calc(100% + 4px)!important;margin:0!important;box-shadow:none!important;border:1px solid #e5e7eb!important;background-color:#f9fafb!important;padding:2px!important;z-index:10!important;min-width:auto!important;width:-webkit-max-content!important;width:max-content!important;max-width:100vw!important;display:grid!important;grid-template-columns:repeat(4,0fr)!important;max-height:120px!important;overflow-y:auto!important;grid-gap:1px!important;gap:1px!important}.table-context-menu.quick-note-layout .emoji-picker-item{padding:4px!important;font-size:16px!important;display:flex!important;align-items:center!important;justify-content:center!important}.table-context-menu.quick-note-layout .more-tools-submenu{position:absolute!important;left:0!important;top:calc(100% + 4px)!important;margin:0!important}.table-context-menu.quick-note-layout .capitalization-submenu,.table-context-menu.quick-note-layout .more-tools-submenu{right:auto!important;box-shadow:none!important;border:1px solid #e5e7eb!important;background-color:#f9fafb!important;padding:4px!important;z-index:10!important;min-width:auto!important;width:-webkit-max-content!important;width:max-content!important;max-width:100vw!important;display:flex!important;flex-direction:column!important}.table-context-menu.quick-note-layout .capitalization-submenu{position:relative!important;left:auto!important;top:auto!important;margin:4px 0 0!important}.table-context-menu.quick-note-layout .table-cell-color-submenu{position:absolute!important;left:0!important;right:auto!important;top:calc(100% + 4px)!important;margin:0!important;box-shadow:none!important;border:1px solid #e5e7eb!important;background-color:#f9fafb!important;padding:4px!important;z-index:10!important;display:grid!important;grid-template-columns:repeat(4,0fr)!important}.code-block-context-menu.quick-note-layout,.table-context-menu.quick-note-layout .table-cell-color-submenu{min-width:auto!important;width:-webkit-max-content!important;width:max-content!important;max-width:100vw!important}.code-block-context-menu.quick-note-layout{padding:2px 0!important;max-height:80vh;overflow-y:auto}.code-block-context-menu.quick-note-layout .code-block-context-menu-item{padding:3px 6px!important;font-size:12px!important;gap:4px!important;min-height:24px}.code-block-context-menu.quick-note-layout .code-block-context-menu-item svg{width:12px!important;height:12px!important}.code-block-context-menu.quick-note-layout .code-block-context-menu-divider{margin:2px 0!important}.code-block-context-menu.quick-note-layout::-webkit-scrollbar,.table-context-menu.quick-note-layout .emoji-picker-submenu::-webkit-scrollbar,.table-context-menu.quick-note-layout .more-tools-submenu::-webkit-scrollbar,.table-context-menu.quick-note-layout .table-cell-color-submenu::-webkit-scrollbar,.table-context-menu.quick-note-layout::-webkit-scrollbar{width:2px!important;height:2px!important}.code-block-context-menu.quick-note-layout::-webkit-scrollbar-track,.table-context-menu.quick-note-layout .emoji-picker-submenu::-webkit-scrollbar-track,.table-context-menu.quick-note-layout .more-tools-submenu::-webkit-scrollbar-track,.table-context-menu.quick-note-layout .table-cell-color-submenu::-webkit-scrollbar-track,.table-context-menu.quick-note-layout::-webkit-scrollbar-track{background:#0000!important}.code-block-context-menu.quick-note-layout::-webkit-scrollbar-thumb,.table-context-menu.quick-note-layout .emoji-picker-submenu::-webkit-scrollbar-thumb,.table-context-menu.quick-note-layout .more-tools-submenu::-webkit-scrollbar-thumb,.table-context-menu.quick-note-layout .table-cell-color-submenu::-webkit-scrollbar-thumb,.table-context-menu.quick-note-layout::-webkit-scrollbar-thumb{background-color:#d1d5db!important;border-radius:1px!important}.code-block-context-menu.quick-note-layout::-webkit-scrollbar-thumb:hover,.table-context-menu.quick-note-layout .emoji-picker-submenu::-webkit-scrollbar-thumb:hover,.table-context-menu.quick-note-layout .more-tools-submenu::-webkit-scrollbar-thumb:hover,.table-context-menu.quick-note-layout .table-cell-color-submenu::-webkit-scrollbar-thumb:hover,.table-context-menu.quick-note-layout::-webkit-scrollbar-thumb:hover{background-color:#9ca3af!important}.link-preview-popover{width:420px;max-width:calc(100vw - 20px);background:#f5f5f8;border:1px solid #d1d5df;border-radius:16px;box-shadow:0 16px 28px #0000002e;padding:12px}.link-preview-popover.quick-note-mode{width:220px;padding:6px}.link-preview-popover.quick-note-mode .link-preview-header{gap:4px}.link-preview-popover.quick-note-mode .link-preview-favicon-wrap{width:20px;height:20px;border-radius:4px}.link-preview-popover.quick-note-mode .link-preview-favicon{width:16px;height:16px}.link-preview-popover.quick-note-mode .link-preview-title{font-size:11px;font-weight:600}.link-preview-popover.quick-note-mode .link-preview-url{font-size:9px}.link-preview-popover.quick-note-mode .link-preview-header-actions .header-action-btn{width:16px;height:16px;border-radius:4px;padding:0}.link-preview-header{display:flex;align-items:center;gap:10px}.link-preview-favicon-wrap{width:22px;height:22px;border-radius:6px;overflow:hidden;flex-shrink:0;background:#0000;border:1px solid #0000;display:flex;align-items:center;justify-content:center}.link-preview-open-target{cursor:pointer}.link-preview-header-text.link-preview-open-target:hover .link-preview-title{text-decoration:underline}.link-preview-favicon-wrap.loaded{background:#f3f4f6;border-color:#e5e7eb}.link-preview-favicon{width:16px;height:16px;object-fit:contain;display:block}.link-preview-header-text{flex:1 1;min-width:0}.link-preview-title{font-size:15px;font-weight:700;color:#2563eb}.link-preview-title,.link-preview-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-url{font-size:13px;font-weight:500;color:#6b7280}.link-preview-header-actions{display:flex;align-items:center;gap:6px}.header-action-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#0000;border:none;border-radius:6px;cursor:pointer;color:#666;padding:0}.header-action-btn:hover{background:#f11b101a;color:#f11b10}.header-action-btn svg{width:18px;height:18px}.link-preview-icon-btn{width:30px;height:30px;border-radius:10px;border:1px solid #0000;background:#0000;color:#6b7280;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.link-preview-icon-btn:hover{background:#f3f4f6;border-color:#e5e7eb;color:#111827}.link-preview-action-btn.success{background:#f11b101a;color:#f11b10}.link-preview-icon-btn.danger{color:#dc2626}.link-preview-icon-btn.danger:hover{background:#fee2e2;border-color:#fecaca;color:#dc2626}.dark-theme .link-preview-popover,[data-theme=dark] .link-preview-popover{background:#0f111b;border-color:#262935;box-shadow:0 16px 28px #000000a6}.dark-theme .link-preview-favicon-wrap.loaded,[data-theme=dark] .link-preview-favicon-wrap.loaded{background:#151721;border-color:#2b2c37}[data-theme=dark] .link-preview-title{color:#e0f2fe}[data-theme=dark] .link-preview-url{color:#94a3b8}.dark-theme .header-action-btn,.dark-theme .link-preview-icon-btn,[data-theme=dark] .header-action-btn,[data-theme=dark] .link-preview-icon-btn{color:#d1d5db}.dark-theme .header-action-btn:hover,[data-theme=dark] .header-action-btn:hover{background:#f11b1040;color:#fff}.dark-theme .link-preview-icon-btn:hover,[data-theme=dark] .link-preview-icon-btn:hover{background:#2c3039;border-color:#2c3039;color:#fff}.dark-theme .link-preview-icon-btn.danger:hover,[data-theme=dark] .link-preview-icon-btn.danger:hover{background:#4d1014;border-color:#4d1014;color:#fee2e2}.dark-theme .link-preview-action-btn.success,[data-theme=dark] .link-preview-action-btn.success{background:#f11b1040;color:#f97316}.zoom-bar{position:absolute;bottom:0;left:0;right:0;height:32px;background-color:#f5f5f5;border-top:1px solid #e0e0e0;justify-content:space-between;padding:0 16px;z-index:100}.zoom-bar,.zoom-bar-left{display:flex;align-items:center}.zoom-bar-left{gap:12px}.word-count{font-size:12px;color:#666;white-space:nowrap}.spell-check-btn{display:flex;align-items:center;gap:4px;padding:2px 8px;border:none;background:#0000;cursor:pointer;border-radius:4px;color:#999;font-size:11px;transition:background-color .15s,color .15s}.spell-check-btn:hover{background-color:#e5e5e5;color:#666}.spell-check-btn.active{color:#333}.spell-check-btn.active svg{color:#22c55e}.zoom-controls{gap:8px}.zoom-btn,.zoom-controls{display:flex;align-items:center}.zoom-btn{justify-content:center;width:24px;height:24px;border:none;background:#0000;cursor:pointer;border-radius:4px;color:#666;transition:background-color .15s,color .15s}.zoom-btn:hover{background-color:#e5e5e5;color:#333}.zoom-btn:active{background-color:#d5d5d5}.zoom-slider-container{position:relative;width:200px;height:24px;display:flex;align-items:center}.zoom-slider{-webkit-appearance:none;appearance:none;width:100%;height:3px;background:#333;border-radius:2px;outline:none;cursor:pointer}.zoom-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1px;height:1px;background:#0000;cursor:pointer}.zoom-slider::-moz-range-thumb{width:1px;height:1px;background:#0000;border:none;cursor:pointer}.zoom-slider-thumb{position:absolute;width:14px;height:14px;background-color:#f11b10;border:2px solid #f11b10;border-radius:50%;transform:translateX(-50%);pointer-events:auto;cursor:pointer;transition:transform .1s,box-shadow .1s}.zoom-slider-thumb:hover{transform:translateX(-50%) scale(1.1);box-shadow:0 2px 4px #0003}.zoom-slider-thumb:active{transform:translateX(-50%) scale(.95)}.dark-theme .zoom-bar,[data-theme=dark] .zoom-bar{background-color:#2d2d2d;border-top-color:#404040}.dark-theme .zoom-btn,[data-theme=dark] .zoom-btn{color:#999}.dark-theme .zoom-btn:hover,[data-theme=dark] .zoom-btn:hover{background-color:#404040;color:#fff}.dark-theme .zoom-slider,[data-theme=dark] .zoom-slider{background:#666}.dark-theme .word-count,[data-theme=dark] .word-count{color:#999}.dark-theme .spell-check-btn,[data-theme=dark] .spell-check-btn{color:#666}.dark-theme .spell-check-btn:hover,[data-theme=dark] .spell-check-btn:hover{background-color:#404040;color:#999}.dark-theme .spell-check-btn.active,[data-theme=dark] .spell-check-btn.active{color:#ccc}