.titlebar{height:32px;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-title{-webkit-app-region:drag}.titlebar-logo,.titlebar-title img{-webkit-app-region:no-drag}.titlebar-logo{display:inline-flex;align-items:center}.titlebar-logo img{pointer-events:auto}.titlebar-button,.titlebar-buttons,.titlebar-logo img{-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}.note-detail{flex:1 1;min-width:300px;background-color:#fff;display:flex;flex-direction:column;border-radius:12px;box-shadow:0 4px 12px #0000001a;overflow:hidden;border-top:1px solid #0000001a}.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:none;transform:scale(1.35);transition:transform .2s ease,fill .2s ease}.action-btn.favorite-active{background-color:#f8f9fa}.action-btn.favorite-active svg{fill:#fbbf24;stroke:none;transform:scale(1.35);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{word-wrap:break-word;overflow-wrap:break-word;cursor:pointer}.note-detail-title,.note-detail-title-input{font-size:28px;font-weight:700;color:#212529;margin:0;line-height:1.2;flex:1 1;min-width:0}.note-detail-title-input{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-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{border-radius:0;box-shadow:none;overflow:visible;height:auto;min-height:100%}.note-detail.quick-note-layout .note-detail-content{padding:4px 16px 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}.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}.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}.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:#3b82f6;color:#fff;justify-content:center;font-size:12px;font-weight:600}.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:#eff6ff;border-color:#3b82f6;color:#1d4ed8}.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:#3b82f6}.copy-link-btn{padding:10px 20px;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s ease;white-space:nowrap}.copy-link-btn:hover{background:#2563eb}