.search-box{flex:1;position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:14px;width:15px;height:15px;color:var(--text-tertiary, #c7c7cc);pointer-events:none}.search-input{width:100%;padding:10px 14px 10px 40px;border:1px solid var(--border-subtle, rgba(0, 0, 0, .06));border-radius:10px;background:var(--surface-1, #fff);font-size:15px;color:var(--text-primary, #000);outline:none;transition:all .2s ease}.search-input::placeholder{color:var(--text-tertiary, #c7c7cc)}.search-input:focus{background:var(--surface-1, #fff);border-color:#00000024;box-shadow:0 0 0 3px #007aff2e}@media (max-width: 768px){.search-input{padding:12px 14px 12px 42px;font-size:16px}.search-icon{left:14px;width:18px;height:18px}}@media (max-width: 480px){.search-box{width:100%}}.notes-nav{flex:1;overflow-y:auto;padding:8px;scrollbar-gutter:stable}.notes-container{display:flex;flex-direction:column;gap:8px}.notes-nav.density-compact .notes-container{gap:6px}.note-group-header{padding:10px 12px 6px;font-size:11px;font-weight:600;color:var(--text-tertiary, #c7c7cc);text-transform:uppercase;letter-spacing:.6px}.note-group-list{list-style:none;padding:0;margin:0}.note-group{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}.note-item-wrapper{margin-bottom:2px;content-visibility:auto;contain-intrinsic-size:96px}.note-item{width:100%;display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--border-subtle, rgba(0, 0, 0, .06));border-radius:12px;background:var(--surface-1, #fff);cursor:pointer;text-align:left;transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;position:relative}.notes-nav.density-compact .note-item{padding:9px 10px;border-radius:10px}.notes-nav.density-compact .note-item:before{top:10px;bottom:10px}.notes-nav.density-compact .note-title{font-size:14px}.notes-nav.density-compact .note-preview{font-size:12px;margin-bottom:6px}.notes-nav.density-compact .note-date{font-size:11px}.notes-nav.density-compact .note-action-btn{width:26px;height:26px}.note-item:before{content:"";position:absolute;left:8px;top:14px;bottom:14px;width:3px;border-radius:999px;background:transparent}.note-item:hover{border-color:#0000001f;box-shadow:var(--shadow-soft, 0 2px 8px rgba(0, 0, 0, .08));transform:translateY(-1px)}.note-item:active{transform:translateY(0);box-shadow:none}.note-item.selected{background:#ffd60a29;border-color:#ffd60a66;box-shadow:none}.note-item.selected:before{background:var(--accent-warm, #ffd60a)}.note-item.favorite:before{background:var(--accent-warm, #ffd60a);opacity:.7}.note-item:focus-visible{outline:2px solid var(--primary, #007aff);outline-offset:2px}.note-item-content{flex:1;min-width:0}.note-item-header{display:flex;align-items:center;gap:6px;margin-bottom:4px;padding-left:6px}.note-title{font-size:15px;font-weight:500;color:var(--text-primary, #000);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-title.empty{color:var(--text-secondary, #8e8e93);font-style:italic}.favorite-icon{width:14px;height:14px;flex-shrink:0}.note-preview{font-size:13px;color:var(--text-secondary, #8e8e93);margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4;padding-left:6px}.note-item-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-left:6px}.note-date{font-size:12px;color:var(--text-tertiary, #c7c7cc)}.note-tags{display:flex;gap:4px;overflow:hidden}.note-tag{font-size:11px;color:var(--primary, #007aff);background:#007aff1a;padding:2px 6px;border-radius:4px;white-space:nowrap}.note-item-actions{display:flex;flex-direction:column;gap:4px;opacity:0;transition:opacity .15s ease}.note-item:hover .note-item-actions{opacity:1}.note-action-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;border-radius:8px;background:var(--surface-1, #fff);cursor:pointer;transition:all .15s ease;box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.note-action-btn:hover{background:var(--surface-2, #f5f5f7)}.note-action-btn svg{width:16px;height:16px}.notes-loading{padding:8px}.skeleton-note{padding:12px;border-radius:10px;margin-bottom:8px}.skeleton-line{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;border-radius:4px;animation:shimmer 1.5s infinite}.skeleton-note .title{height:16px;width:60%;margin-bottom:8px}.skeleton-note .content{height:14px;width:90%;margin-bottom:6px}.skeleton-note .footer{height:12px;width:30%}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.notes-empty{padding:32px 24px;text-align:center;color:var(--text-secondary, #8e8e93)}.notes-empty svg{width:48px;height:48px;margin-bottom:16px;color:var(--text-tertiary, #c7c7cc)}.notes-empty p{font-size:15px;font-weight:500;color:var(--text-primary, #000);margin:0 0 8px}.notes-empty span{font-size:13px;color:var(--text-tertiary, #c7c7cc)}@media (prefers-color-scheme: dark){.note-item:hover{border-color:#ffffff29;box-shadow:var(--shadow-soft, 0 2px 8px rgba(0, 0, 0, .4))}.note-item.selected{background:#ffd60a2e;border-color:#ffd60a59}.skeleton-line{background:linear-gradient(90deg,#2c2c2e 25%,#3a3a3c,#2c2c2e 75%);background-size:200% 100%}.note-action-btn:hover{background:#ffffff14}}@media (max-width: 768px){.note-item-actions{opacity:1}.note-item{padding:14px}.note-title{font-size:16px}.note-preview{font-size:14px}}@media (max-width: 480px){.note-item{padding:12px;border-radius:12px}.note-item-header{margin-bottom:6px}.note-title{font-size:15px}.note-preview{font-size:13px;margin-bottom:6px}.note-item-footer{flex-wrap:wrap;gap:4px}.note-date{font-size:11px}.note-tag{font-size:10px;padding:2px 5px}.note-action-btn{width:32px;height:32px}.note-action-btn svg{width:18px;height:18px}}.folder-list{padding:12px 8px}.folder-section{margin-bottom:12px}.folder-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;margin-bottom:4px}.folder-title{font-size:13px;font-weight:600;color:var(--text-secondary, #8e8e93);text-transform:uppercase;letter-spacing:.6px}.add-folder-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:var(--surface-1, #fff);color:var(--text-secondary, #8e8e93);cursor:pointer;transition:all .15s ease;box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.add-folder-btn:hover{background:var(--surface-2, #f5f5f7);color:var(--primary, #007aff)}.add-folder-btn svg{width:14px;height:14px}.add-folder-form{display:flex;gap:8px;padding:8px 12px}.add-folder-form input{flex:1;padding:8px 12px;border:1px solid var(--border-subtle, rgba(0, 0, 0, .06));border-radius:8px;font-size:14px;outline:none;background:var(--surface-1, #fff)}.add-folder-form input:focus{border-color:var(--primary, #007aff)}.add-folder-form button{padding:8px 12px;background:var(--primary, #007aff);color:#fff;border:none;border-radius:8px;font-size:13px;cursor:pointer}.folder-items{list-style:none;padding:0;margin:0}.folder-item{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;cursor:pointer;transition:all .15s ease;text-align:left;position:relative}.folder-item:before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:3px;border-radius:999px;background:transparent}.folder-item:hover{background:var(--surface-1, #fff);border-color:var(--border-subtle, rgba(0, 0, 0, .06))}.folder-item.active{background:#ffd60a2e;border-color:#ffd60a66}.folder-item.active:before{background:var(--accent-warm, #ffd60a)}.folder-item.active .folder-name{color:var(--text-primary, #000);font-weight:500}.folder-icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:var(--text-secondary, #8e8e93)}.folder-item.active .folder-icon{color:var(--accent-warm, #ffd60a)}.folder-icon svg{width:16px;height:16px}.folder-name{flex:1;font-size:15px;color:var(--text-primary, #000)}.folder-menu-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:var(--surface-1, #fff);color:var(--text-tertiary, #c7c7cc);cursor:pointer;opacity:0;transition:all .15s ease;box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.folder-item:hover .folder-menu-btn{opacity:1}.folder-menu-btn:hover{background:var(--surface-2, #f5f5f7);color:var(--text-primary, #000)}.folder-menu-btn svg{width:14px;height:14px}.folder-menu{position:absolute;right:8px;top:100%;background:var(--surface-1, #fff);border-radius:12px;box-shadow:0 4px 20px #00000026;overflow:hidden;z-index:100;border:1px solid var(--border-subtle, rgba(0, 0, 0, .06))}.folder-menu button{width:100%;padding:10px 16px;border:none;background:transparent;color:var(--danger, #ff3b30);font-size:14px;cursor:pointer;text-align:left}.folder-menu button:hover{background:var(--surface-2, #f5f5f7)}.folder-footer{padding:12px;border-top:1px solid var(--separator, #e5e5e5);margin-top:8px}.new-note-folder-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;background:var(--primary, #007aff);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:500;cursor:pointer;transition:all .2s ease;box-shadow:var(--shadow-soft, 0 2px 8px rgba(0, 0, 0, .08))}.new-note-folder-btn:hover{background:var(--primary-hover, #0056b3)}.new-note-folder-btn svg{width:18px;height:18px}@media (prefers-color-scheme: dark){.folder-title{color:#8e8e93}.folder-item:hover{background:#ffffff14}.folder-item.active{background:#ffd60a33;border-color:#ffd60a59}.folder-menu{background:#1c1c1e;border-color:#ffffff14}.folder-menu button:hover{background:#ffffff1a}}@media (max-width: 768px){.folder-menu-btn{opacity:1}.folder-item{padding:12px 14px}.folder-name{font-size:16px}}@media (max-width: 480px){.folder-list{padding:8px}.folder-item{padding:14px 12px;border-radius:10px}.folder-icon{width:22px;height:22px}.folder-name{font-size:15px}.folder-item:active{background:#007aff1a}.new-note-folder-btn{padding:14px;font-size:16px}}.sidebar{width:280px;min-width:280px;background:var(--bg-sidebar, #f2f2f7);display:flex;flex-direction:column;border-right:1px solid var(--separator, #e5e5e5);transition:background-color .3s ease,border-color .3s ease;position:relative}.sidebar-header{padding:16px;display:flex;gap:12px;align-items:center;background:var(--surface-2, #f5f5f7);border-bottom:1px solid var(--separator, #e5e5e5)}.new-note-btn{width:36px;height:36px;border-radius:10px;background:var(--primary, #007aff);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease;flex-shrink:0;box-shadow:var(--shadow-soft, 0 2px 8px rgba(0, 0, 0, .08))}.new-note-btn:hover{background:var(--primary-hover, #0056b3);transform:translateY(-1px)}.new-note-btn svg{width:20px;height:20px}.notes-nav{flex:1;overflow-y:auto;padding:0 8px}.nav-section-header{padding:8px 12px;font-size:13px;font-weight:500;color:var(--text-secondary, #8e8e93)}.notes-list{list-style:none;padding:0;margin:0}.sidebar-footer{padding:12px 16px;border-top:1px solid var(--separator, #e5e5e5);display:flex;gap:8px;transition:border-color .3s ease;background:var(--surface-2, #f5f5f7);align-items:center}.density-toggle-btn{width:36px;height:36px;border-radius:10px;background:var(--surface-1, #fff);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-secondary, #8e8e93);transition:all .2s ease;box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.density-toggle-btn:hover{background:var(--surface-2, #f5f5f7);color:var(--primary, #007aff)}.density-toggle-btn svg{width:18px;height:18px}.theme-toggle-btn,.delete-mode-btn{width:36px;height:36px;border-radius:10px;background:var(--surface-1, #fff);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-primary, #333);transition:all .2s ease;box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.sidebar-resizer{position:absolute;top:0;right:-4px;width:8px;height:100%;cursor:col-resize;z-index:5;touch-action:none}.sidebar-resizer:after{content:"";position:absolute;top:8px;bottom:8px;left:3px;width:2px;border-radius:999px;background:transparent;transition:background .2s ease}.sidebar-resizer:hover:after,.sidebar-resizer:active:after{background:var(--separator, #e5e5e5)}.theme-toggle-btn:hover,.delete-mode-btn:hover{background:var(--surface-2, #f5f5f7);color:var(--primary, #007aff)}.delete-mode-btn.active{background:#ff3b30;color:#fff;box-shadow:none}.theme-toggle-btn .sun-icon{display:none}.theme-toggle-btn .moon-icon,.theme-toggle-btn.active .sun-icon{display:block}.theme-toggle-btn.active .moon-icon{display:none}.theme-toggle-btn.active{background:#ffd60a2e;color:var(--accent-warm, #ffd60a);box-shadow:none}.theme-toggle-btn svg,.delete-mode-btn svg{width:20px;height:20px}@media (max-width: 768px){.sidebar{position:fixed;top:0;left:0;bottom:0;width:85%;max-width:320px;z-index:999;transform:translate(-100%);transition:transform .3s ease;box-shadow:4px 0 24px #0003}.sidebar.mobile-open{transform:translate(0)}.sidebar-header{padding-top:80px}}@media (max-width: 480px){.sidebar{width:100%;max-width:100%}}.toolbar{display:flex;align-items:center;gap:4px;padding:8px 10px;margin-bottom:12px;flex-wrap:wrap;background:var(--surface-2, #f5f5f7);border-radius:var(--radius-md, 12px);border:1px solid var(--border-subtle, rgba(0, 0, 0, .06))}.toolbar-group{padding:2px;border-radius:10px;background:var(--surface-1, #fff);box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.toolbar-group{display:flex;align-items:center;gap:2px}.toolbar-divider{width:1px;height:24px;background:var(--separator, #e5e5e5);margin:0 8px}.toolbar-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;border-radius:8px;background:var(--surface-1, #fff);cursor:pointer;color:var(--text-secondary, #8e8e93);transition:all .15s ease;box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.toolbar-btn:hover{background:var(--surface-1, #fff);color:var(--primary, #007aff);box-shadow:inset 0 0 0 1px #007aff33}.toolbar-btn.active{background:#007aff1f;color:var(--primary, #007aff);box-shadow:inset 0 0 0 1px #007aff4d}.toolbar-btn svg{width:16px;height:16px}.toolbar-btn{font-size:14px;font-weight:600}.toolbar-btn.active,.toolbar-btn:hover{background:#007aff1f;color:var(--primary, #007aff)}@media (max-width: 768px){.toolbar{overflow-x:auto;gap:2px;padding:6px 8px;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.toolbar-group{flex-shrink:0}.toolbar-btn{width:36px;height:36px;min-width:36px}.toolbar-btn svg{width:18px;height:18px}.toolbar-divider{margin:0 6px;height:20px}}@media (max-width: 480px){.toolbar{padding:8px;gap:4px}.toolbar-btn{width:40px;height:40px;min-width:40px;border-radius:8px}.toolbar-btn svg{width:20px;height:20px}}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--surface-2, #f5f5f7)}.welcome-screen{flex:1;display:flex;align-items:center;justify-content:center}.welcome-content{text-align:center;color:var(--text-secondary, #8e8e93)}.welcome-icon{width:64px;height:64px;margin-bottom:16px;color:var(--text-tertiary, #c7c7cc)}.welcome-content h1{font-size:28px;font-weight:500;color:var(--text-primary, #000);margin:0 0 8px}.welcome-content p{font-size:15px;margin:0}.editor-container{flex:1;display:flex;flex-direction:column;padding:24px 40px 32px;max-width:860px;width:100%;margin:20px auto 28px;background:var(--surface-1, #fff);border-radius:var(--radius-lg, 16px);box-shadow:var(--shadow-card, 0 6px 18px rgba(0, 0, 0, .08));border:1px solid var(--border-subtle, rgba(0, 0, 0, .06))}.editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding:12px 12px 12px 8px;border-bottom:1px solid var(--separator, #e5e5e5);background:var(--surface-2, #f5f5f7);border-radius:var(--radius-md, 12px);gap:12px}.editor-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.save-status{font-size:13px;padding:4px 10px;border-radius:999px;transition:all .2s ease;background:var(--surface-1, #fff);box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.save-status.saved{color:var(--success, #34c759)}.save-status.saving{color:var(--warning, #ff9500)}.save-status.unsaved{color:var(--text-secondary, #8e8e93)}.cloud-save-status{font-size:12px;padding:4px 10px;border-radius:999px;background:var(--surface-1, #fff);color:var(--text-secondary, #8e8e93);box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.cloud-save-status.success{color:var(--success, #34c759)}.cloud-save-status.error{color:var(--danger, #ff3b30)}.cloud-save-status.info{color:var(--primary, #007aff)}.share-status{font-size:12px;padding:4px 10px;border-radius:999px;background:var(--surface-1, #fff);color:var(--text-secondary, #8e8e93);box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.share-status.success{color:var(--success, #34c759)}.share-status.error{color:var(--danger, #ff3b30)}.share-status.info{color:var(--primary, #007aff)}.note-date{font-size:13px;color:var(--text-secondary, #8e8e93)}.word-count{font-size:13px;color:var(--text-tertiary, #c7c7cc)}.editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.action-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;border-radius:8px;background:var(--surface-1, #fff);color:var(--text-secondary, #8e8e93);cursor:pointer;transition:all .2s ease;box-shadow:inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .06))}.action-btn:hover:not(:disabled){background:var(--surface-2, #f5f5f7);color:var(--primary, #007aff)}.action-btn:disabled{opacity:.3;cursor:not-allowed}.action-btn svg{width:18px;height:18px}.action-btn.save-btn{width:36px;height:32px}.delete-confirm-btn{padding:8px 16px;background:#ff3b30;color:#fff;border:none;border-radius:10px;font-size:14px;cursor:pointer;transition:all .2s ease}.delete-confirm-btn:hover{background:#d63027}.editor-title{width:100%;padding:6px 2px 10px;border:none;border-bottom:1px solid var(--separator, #e5e5e5);font-size:30px;font-weight:600;color:var(--text-primary, #000);outline:none;background:transparent;margin-bottom:16px;letter-spacing:-.01em}.editor-title::placeholder{color:var(--text-tertiary, #c7c7cc)}.editor-title:focus{border-bottom-color:#0003}.editor-wrapper{flex:1;overflow-y:auto;padding:4px 2px}.editor-content{min-height:200px;outline:none;font-size:16px;line-height:1.7;color:var(--text-primary, #000)}.editor-content:empty:before{content:attr(data-placeholder);color:var(--text-tertiary, #c7c7cc);pointer-events:none}.editor-content p{margin:0 0 8px}.editor-content h1{font-size:24px;font-weight:600;margin:16px 0 8px}.editor-content h2{font-size:20px;font-weight:600;margin:14px 0 6px}.editor-content h3{font-size:16px;font-weight:600;margin:12px 0 4px}.editor-content ul,.editor-content ol{padding-left:24px;margin:8px 0}.editor-content blockquote{border-left:3px solid var(--primary, #007aff);margin:12px 0;color:var(--text-secondary, #8e8e93);font-style:italic;background:var(--surface-2, #f5f5f7);border-radius:var(--radius-sm, 8px);padding:10px 14px}.editor-content code{background:var(--surface-2, rgba(0, 0, 0, .05));padding:2px 6px;border-radius:6px;font-family:SF Mono,Monaco,monospace;font-size:14px}.editor-content pre{background:var(--surface-2, rgba(0, 0, 0, .05));padding:16px;border-radius:10px;overflow-x:auto;margin:12px 0}.editor-content pre code{background:transparent;padding:0}.editor-content hr{border:none;border-top:1px solid var(--separator, #e5e5e5);margin:16px 0}.editor-link{color:var(--primary, #007aff);text-decoration:none;cursor:pointer}.editor-link:hover{text-decoration:underline}.editor-content img{max-width:100%;height:auto;border-radius:8px;margin:12px 0}@media (max-width: 768px){.editor-container{padding:16px 18px 20px;margin:12px 12px 20px}.editor-header{flex-direction:column;align-items:flex-start;gap:8px}.editor-info{flex-wrap:wrap;gap:8px}.editor-title,.welcome-content h1{font-size:24px}}@media (max-width: 480px){.editor-container{padding:12px 14px 18px;margin:10px 10px 16px;border-radius:var(--radius-md, 12px)}.editor-header{gap:12px}.editor-info{width:100%}.save-status,.note-date,.word-count{font-size:12px}.editor-actions{width:100%;justify-content:flex-start}.action-btn{width:36px;height:36px}.delete-confirm-btn{padding:10px 16px;font-size:14px}.editor-title{font-size:20px;padding:6px 0}.editor-content{font-size:15px;line-height:1.5}.editor-content h1{font-size:20px}.editor-content h2{font-size:18px}.editor-content h3{font-size:16px}.welcome-screen{padding:24px}.welcome-icon{width:48px;height:48px}}.export-menu{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--bg-main, #fff);border-radius:12px;box-shadow:0 20px 60px #0003;width:90%;max-width:400px;z-index:1000;overflow:hidden}.export-menu-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border-color, #e5e5e5)}.export-menu-header h3{margin:0;font-size:18px;font-weight:600;color:var(--text-primary, #000)}.close-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:transparent;color:var(--text-secondary, #8e8e93);cursor:pointer;transition:all .2s ease}.close-btn:hover{background:var(--bg-hover, rgba(0, 122, 255, .1));color:var(--text-primary, #000)}.export-options{padding:12px}.export-option{width:100%;display:flex;align-items:center;gap:16px;padding:14px 16px;border:none;border-radius:10px;background:transparent;cursor:pointer;transition:all .2s ease;text-align:left}.export-option:hover:not(:disabled){background:var(--bg-hover, rgba(0, 122, 255, .08))}.export-option:disabled{opacity:.5;cursor:not-allowed}.export-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--bg-sidebar, #f2f2f7);color:var(--primary, #007aff)}.export-icon svg{width:20px;height:20px}.export-info{display:flex;flex-direction:column;gap:2px}.export-title{font-size:15px;font-weight:500;color:var(--text-primary, #000)}.export-desc{font-size:13px;color:var(--text-secondary, #8e8e93)}.share-option{border:2px solid var(--primary, #007aff);background:#007aff0d}.share-option:hover:not(:disabled){background:#007aff1a}.share-url-container{padding:12px 16px;background:var(--bg-sidebar, #f2f2f7);border-radius:10px;margin-top:8px}.share-url-box{display:flex;gap:8px}.share-url-input{flex:1;padding:10px 12px;border:1px solid var(--border-color, #e5e5e5);border-radius:6px;font-size:13px;background:var(--bg-main, #fff);color:var(--text-primary, #000);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-url-input:focus{outline:none;border-color:var(--primary, #007aff)}.share-url-copy-btn{padding:8px 16px;background:var(--primary, #007aff);color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease}.share-url-copy-btn:hover{background:var(--primary-hover, #0056b3)}.share-url-close-btn{width:32px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--bg-hover, rgba(0, 122, 255, .1));color:var(--text-secondary, #8e8e93);border:none;border-radius:6px;font-size:18px;cursor:pointer;transition:all .2s ease}.share-url-close-btn:hover{background:#0000001a;color:var(--text-primary, #000)}.share-url-hint{margin:8px 0 0;font-size:12px;color:var(--text-tertiary, #c7c7cc)}.share-revoke-btn{margin-top:12px;padding:8px 16px;background:transparent;color:#ff3b30;border:1px solid #ff3b30;border-radius:6px;font-size:13px;cursor:pointer;width:100%;transition:all .2s ease}.share-revoke-btn:hover{background:#ff3b30;color:#fff}@media (prefers-color-scheme: dark){.export-menu{background:#1c1c1e;border-color:#38383a}.export-menu-header{border-color:#38383a}.export-menu-header h3{color:#fff}.export-option:hover:not(:disabled){background:#ffffff1a}.export-icon{background:#2c2c2e}.export-title{color:#fff}.share-url-container{background:#2c2c2e}.share-url-input{background:#1c1c1e;border-color:#38383a;color:#fff}.share-url-hint{color:#8e8e93}.share-revoke-btn{color:#ff3b30;border-color:#ff3b30}.share-revoke-btn:hover{background:#ff3b30;color:#fff}}@media (max-width: 480px){.export-menu{width:95%;max-width:none;border-radius:16px}.export-menu-header{padding:14px 16px}.export-menu-header h3{font-size:17px}.close-btn{width:36px;height:36px}.export-option{padding:12px 14px;gap:12px}.export-icon{width:44px;height:44px}.export-icon svg{width:22px;height:22px}.export-title{font-size:16px}.export-desc{font-size:12px}}.app-container{display:flex;height:100vh;width:100%;overflow:hidden;background:var(--surface-2, #f5f5f7)}.app-container.dark{--bg-sidebar: #1c1c1e;--bg-main: #000000;--bg-hover: rgba(255, 255, 255, .1);--text-primary: #ffffff;--text-secondary: #8e8e93;--text-tertiary: #636366;--border-color: #38383a}@media (max-width: 768px){.app-container{flex-direction:column;padding-top:68px}}@media (max-width: 480px){.app-container.mobile-view{padding-top:68px}}.gist-sync-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:none;border-radius:8px;background:transparent;color:var(--text-secondary, #8e8e93);cursor:pointer;transition:all .2s ease;position:relative}.gist-sync-btn:hover{background:var(--bg-hover, rgba(0, 122, 255, .1));color:var(--text-primary, #000)}.gist-sync-btn svg{width:20px;height:20px}.gist-sync-btn.configured{color:var(--primary, #007aff)}.sync-indicator{position:absolute;top:6px;right:6px;width:8px;height:8px;background:#34c759;border-radius:50%;border:2px solid var(--bg-main, #fff)}.gist-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;padding:20px}.gist-modal{background:var(--bg-main, #fff);border-radius:16px;width:100%;max-width:420px;max-height:90vh;overflow:hidden;box-shadow:0 20px 60px #0003}.gist-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color, #e5e5e5)}.gist-modal-header h3{margin:0;font-size:18px;font-weight:600}.close-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;border-radius:8px;background:transparent;color:var(--text-secondary);cursor:pointer}.close-btn:hover{background:var(--bg-hover)}.close-btn svg{width:18px;height:18px}.gist-modal-content{padding:24px;overflow-y:auto;max-height:calc(90vh - 80px)}.mode-toggle{display:flex;gap:8px;margin-bottom:20px;padding:4px;background:var(--bg-sidebar, #f2f2f7);border-radius:10px}.mode-toggle button{flex:1;padding:10px;border:none;border-radius:8px;background:transparent;color:var(--text-secondary);font-size:14px;cursor:pointer;transition:all .2s ease}.mode-toggle button.active{background:var(--bg-main, #fff);color:var(--text-primary);box-shadow:0 2px 8px #0000001a}.setup-section{display:flex;flex-direction:column;gap:16px}.help-text{margin:0;font-size:14px;color:var(--text-secondary);line-height:1.5;text-align:center}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:13px;font-weight:500;color:var(--text-primary)}.form-group input{padding:12px 14px;border:1px solid var(--border-color, #e5e5e5);border-radius:10px;font-size:15px;background:var(--bg-main);color:var(--text-primary)}.form-group input:focus{outline:none;border-color:var(--primary, #007aff);box-shadow:0 0 0 3px #007aff1a}.form-group small{font-size:12px;color:var(--text-secondary)}.btn-primary,.btn-secondary,.btn-text{padding:12px 20px;border:none;border-radius:10px;font-size:15px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary{background:var(--primary, #007aff);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover, #0056b3)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--bg-sidebar, #f2f2f7);color:var(--text-primary)}.btn-secondary:hover:not(:disabled){background:var(--border-color, #e5e5e5)}.btn-text{background:transparent;color:var(--text-secondary)}.btn-text:hover{color:var(--danger, #ff3b30)}.button-group{display:flex;gap:10px}.button-group button{flex:1}.connected-section{margin-top:20px;padding-top:20px;border-top:1px solid var(--border-color);display:flex;flex-direction:column;gap:16px;align-items:center}.connection-status{display:flex;align-items:center;gap:8px;font-size:14px;color:#34c759;font-weight:500}.status-dot{width:8px;height:8px;background:#34c759;border-radius:50%}.sync-actions{display:flex;gap:10px;width:100%}.sync-actions button{flex:1}.status-message{margin-top:16px;padding:12px 16px;border-radius:10px;font-size:14px;text-align:center}.status-message.success{background:#34c7591a;color:#34c759}.status-message.error{background:#ff3b301a;color:#ff3b30}.status-message.info{background:#007aff1a;color:var(--primary)}@media (prefers-color-scheme: dark){.gist-modal{background:#1c1c1e}.gist-modal-header{border-color:#38383a}.mode-toggle{background:#2c2c2e}.mode-toggle button.active{background:#1c1c1e}.form-group input{background:#2c2c2e;border-color:#38383a;color:#fff}.btn-secondary{background:#2c2c2e;color:#fff}.sync-indicator{border-color:#1c1c1e}}@media (max-width: 480px){.gist-modal-overlay{padding:0;align-items:flex-end}.gist-modal{max-height:85vh;border-radius:20px 20px 0 0}}.error-boundary{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:var(--bg-main, #fff)}.error-content{text-align:center;max-width:400px}.error-icon{width:64px;height:64px;color:var(--danger, #ff3b30);margin-bottom:24px}.error-content h2{font-size:24px;font-weight:600;color:var(--text-primary, #000);margin:0 0 8px}.error-content p{font-size:15px;color:var(--text-secondary, #8e8e93);margin:0 0 24px}.error-actions{display:flex;gap:12px;justify-content:center}.retry-btn,.reload-btn{padding:12px 24px;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer;transition:all .2s ease}.retry-btn{background:var(--primary, #007aff);color:#fff;border:none}.retry-btn:hover{background:var(--primary-hover, #0056b3)}.reload-btn{background:transparent;color:var(--text-primary, #000);border:1px solid var(--border-color, #e5e5e5)}.reload-btn:hover{background:var(--bg-hover, rgba(0, 122, 255, .08))}*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-main, #fff);color:var(--text-primary, #000);transition:background-color .3s ease,color .3s ease}body{background:var(--surface-2, #f5f5f7)}:root{--primary: #007aff;--primary-hover: #0056b3;--primary-light: rgba(0, 122, 255, .1);--accent-warm: #ffcc00;--bg-sidebar: #f2f2f7;--bg-main: #ffffff;--bg-hover: rgba(0, 122, 255, .08);--surface-1: #ffffff;--surface-2: #f5f5f7;--surface-3: #ededf1;--shadow-soft: 0 2px 8px rgba(0, 0, 0, .08);--shadow-card: 0 6px 18px rgba(0, 0, 0, .08);--text-primary: #000000;--text-secondary: #8e8e93;--text-tertiary: #c7c7cc;--border-color: #e5e5e5;--border-subtle: rgba(0, 0, 0, .06);--separator: rgba(60, 60, 67, .12);--radius-xs: 6px;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--success: #34c759;--warning: #ff9500;--danger: #ff3b30;--transition-fast: .15s ease;--transition-normal: .25s ease;--transition-slow: .35s ease}html.dark{--primary: #0a84ff;--primary-hover: #409cff;--primary-light: rgba(10, 132, 255, .2);--accent-warm: #ffd60a;--bg-sidebar: #1c1c1e;--bg-main: #000000;--bg-hover: rgba(255, 255, 255, .1);--surface-1: #111113;--surface-2: #1c1c1e;--surface-3: #2c2c2e;--shadow-soft: 0 2px 10px rgba(0, 0, 0, .5);--shadow-card: 0 10px 24px rgba(0, 0, 0, .45);--text-primary: #ffffff;--text-secondary: #8e8e93;--text-tertiary: #636366;--border-color: #38383a;--border-subtle: rgba(255, 255, 255, .08);--separator: rgba(84, 84, 88, .6)}@media (prefers-color-scheme: dark){:root{--bg-sidebar: #1c1c1e;--bg-main: #000000;--bg-hover: rgba(255, 255, 255, .1);--surface-1: #111113;--surface-2: #1c1c1e;--surface-3: #2c2c2e;--shadow-soft: 0 2px 10px rgba(0, 0, 0, .5);--shadow-card: 0 10px 24px rgba(0, 0, 0, .45);--text-primary: #ffffff;--text-secondary: #8e8e93;--text-tertiary: #636366;--border-color: #38383a;--border-subtle: rgba(255, 255, 255, .08);--separator: rgba(84, 84, 88, .6);--accent-warm: #ffd60a}}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--text-tertiary, #c7c7cc);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary, #8e8e93)}*:focus-visible{outline:2px solid var(--primary, #007aff);outline-offset:2px}::selection{background:#007aff4d}button{font-family:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}*{-webkit-tap-highlight-color:transparent}input,textarea,[contenteditable]{touch-action:manipulation}input,textarea{font-family:inherit}a{color:var(--primary, #007aff);text-decoration:none}a:hover{text-decoration:underline}.mobile-menu-btn{position:fixed;top:12px;left:12px;z-index:1001;width:44px;height:44px;border-radius:10px;background:var(--bg-main, #fff);border:1px solid var(--border-color, #e5e5e5);cursor:pointer;display:none;align-items:center;justify-content:center;color:var(--text-primary, #000);box-shadow:0 2px 8px #0000001a;transition:all .2s ease}.mobile-menu-btn:hover{background:var(--bg-hover, rgba(0, 122, 255, .1))}.mobile-menu-btn svg{width:22px;height:22px}.mobile-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;z-index:998;display:none}.gist-sync-container{position:fixed;bottom:20px;right:20px;z-index:100}.gist-sync-container .gist-sync-btn{width:48px;height:48px;background:var(--bg-main, #fff);border:1px solid var(--border-color, #e5e5e5);border-radius:50%;box-shadow:0 4px 12px #00000026}.gist-sync-container .gist-sync-btn:hover{background:var(--bg-hover, rgba(0, 122, 255, .1));transform:translateY(-2px)}.gist-sync-container .gist-sync-btn svg{width:24px;height:24px}@media (max-width: 768px){.mobile-menu-btn{display:flex}.gist-sync-container{bottom:16px;right:16px}.mobile-overlay{display:block}}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
